GNU bug report logs - #20899
Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used

Previous Next

Package: libtool;

Reported by: Davin McCall <davmac <at> davmac.org>

Date: Thu, 25 Jun 2015 19:36:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Bob Friesenhahn <bfriesen <at> simple.dallas.tx.us>
To: Davin McCall <davmac <at> davmac.org>
Cc: 20899 <at> debbugs.gnu.org
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Date: Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
On Thu, 25 Jun 2015, Davin McCall wrote:

> Hi,
>
> I have discovered what I believe is a bug in libtool: It does not pass the 
> "-fno-strict-aliasing" compilation flag to the link stage. This is not 
> normally a problem, but is certainly a problem is "-flto" (link time 
> optimization) is used. In this case code that works correct only without 
> strict aliasing will incorrectly after being linked.

Does

  -Wl,--fno-strict-aliasing

work for you?  It might be necessary to also specify 
-fno-strict-aliasing if the compiler also uses this.

Bob
-- 
Bob Friesenhahn
bfriesen <at> simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




This bug report was last modified 10 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.