[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage
From: |
Bob Friesenhahn |
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) |
User-agent: |
Alpine 2.01 (GSO 1266 2009-07-14) |
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
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/