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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Davin McCall <davmac@HIDDEN>; dated Thu, 25 Jun 2015 19:36:03 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at 20899 <at> debbugs.gnu.org:


Received: (at 20899) by debbugs.gnu.org; 27 Jun 2015 09:30:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 27 05:30:16 2015
Received: from localhost ([127.0.0.1]:58725 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z8mRC-0006EJ-F2
	for submit <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:15 -0400
Received: from mx2.kent.ac.uk ([129.12.21.33]:55717)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <davmac@HIDDEN>) id 1Z8mR2-0006DA-68
 for 20899 <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:07 -0400
Received: from mx3.kent.ac.uk ([129.12.21.34])
 by mx2.kent.ac.uk with esmtps (UNKNOWN:AES256-GCM-SHA384:256)
 (Exim 4.72) (envelope-from <davmac@HIDDEN>)
 id 1Z8mQv-0005fL-2n; Sat, 27 Jun 2015 10:29:57 +0100
Received: from host-84-9-123-131.dslgb.com ([84.9.123.131] helo=[192.168.1.39])
 by mx3.kent.ac.uk with esmtpsa (UNKNOWN:AES128-SHA:128) (Exim 4.72)
 (envelope-from <davmac@HIDDEN>)
 id 1Z8mQu-00030G-Mn; Sat, 27 Jun 2015 10:29:57 +0100
Message-ID: <558E6D19.9050000@HIDDEN>
Date: Sat, 27 Jun 2015 10:30:01 +0100
From: Davin McCall <davmac@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker
 stage when -flto is used
References: <558C4F4A.4040106@HIDDEN>
 <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
In-Reply-To: <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Kent-Spam-Score: -1.0
X-Kent-Spam-Bar: -
X-Kent-Spam-Report: No, tests=ALL_TRUSTED=-1
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: 20899
Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

Hi Bob,

On 26/06/15 03:31, Bob Friesenhahn wrote:
> 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

No. -Wl passes an option to the linker, but the linker does not accept 
the -fno-strict-aliasing option, and so using -Wl,-fno-strict-aliasing 
results in a link failure. It's my understanding that in LTO mode, gcc 
acts as a somewhat more complex frontend to the linker than usual, but 
it still passes -Wl,XXX options directly to the underlying linker. GNU 
ld then interprets '-fno-strict-aliasing' as its own '-f' option, used 
for a different purpose.

FWIW the libtool script contains a small bit of code with a comment 
header reading "Flags to be passed through unchanged, with rationale:". 
It includes -flto, but not -fno-strict-aliasing. If I add 
-fno-strict-aliasing to the list here, it does seem to work as I want, 
that is, -fno-strict-aliasing is visible on the link stage command line.

Davin





Information forwarded to bug-libtool@HIDDEN:
bug#20899; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 Jun 2015 09:30:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 27 05:30:22 2015
Received: from localhost ([127.0.0.1]:58727 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z8mRJ-0006EX-7V
	for submit <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:45874)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <davmac@HIDDEN>) id 1Z8mR8-0006Dj-V2
 for submit <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:12 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8mR2-0002bh-HX
 for submit <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:05 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:36462)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8mR2-0002bW-FM
 for submit <at> debbugs.gnu.org; Sat, 27 Jun 2015 05:30:04 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59381)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8mR1-0006Fh-HK
 for bug-libtool@HIDDEN; Sat, 27 Jun 2015 05:30:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8mQy-0002Vm-BQ
 for bug-libtool@HIDDEN; Sat, 27 Jun 2015 05:30:03 -0400
Received: from mx2.kent.ac.uk ([129.12.21.33]:52650)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8mQy-0002VZ-53
 for bug-libtool@HIDDEN; Sat, 27 Jun 2015 05:30:00 -0400
Received: from mx3.kent.ac.uk ([129.12.21.34])
 by mx2.kent.ac.uk with esmtps (UNKNOWN:AES256-GCM-SHA384:256)
 (Exim 4.72) (envelope-from <davmac@HIDDEN>)
 id 1Z8mQv-0005fL-2n; Sat, 27 Jun 2015 10:29:57 +0100
Received: from host-84-9-123-131.dslgb.com ([84.9.123.131] helo=[192.168.1.39])
 by mx3.kent.ac.uk with esmtpsa (UNKNOWN:AES128-SHA:128) (Exim 4.72)
 (envelope-from <davmac@HIDDEN>)
 id 1Z8mQu-00030G-Mn; Sat, 27 Jun 2015 10:29:57 +0100
Message-ID: <558E6D19.9050000@HIDDEN>
Date: Sat, 27 Jun 2015 10:30:01 +0100
From: Davin McCall <davmac@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Bob Friesenhahn <bfriesen@HIDDEN>
Subject: Re: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker
 stage when -flto is used
References: <558C4F4A.4040106@HIDDEN>
 <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
In-Reply-To: <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Kent-Spam-Score: -1.0
X-Kent-Spam-Bar: -
X-Kent-Spam-Report: No, tests=ALL_TRUSTED=-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

Hi Bob,

On 26/06/15 03:31, Bob Friesenhahn wrote:
> 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

No. -Wl passes an option to the linker, but the linker does not accept 
the -fno-strict-aliasing option, and so using -Wl,-fno-strict-aliasing 
results in a link failure. It's my understanding that in LTO mode, gcc 
acts as a somewhat more complex frontend to the linker than usual, but 
it still passes -Wl,XXX options directly to the underlying linker. GNU 
ld then interprets '-fno-strict-aliasing' as its own '-f' option, used 
for a different purpose.

FWIW the libtool script contains a small bit of code with a comment 
header reading "Flags to be passed through unchanged, with rationale:". 
It includes -flto, but not -fno-strict-aliasing. If I add 
-fno-strict-aliasing to the list here, it does seem to work as I want, 
that is, -fno-strict-aliasing is visible on the link stage command line.

Davin





Information forwarded to bug-libtool@HIDDEN:
bug#20899; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Jun 2015 02:42:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 22:42:39 2015
Received: from localhost ([127.0.0.1]:57674 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z8JbC-0008V4-SY
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:42:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57222)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8JbB-0008Us-0q
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:42:37 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8Jb4-0004aS-MI
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:42:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48396)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8Jb4-0004aO-JC
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:42:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:42480)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8Jb3-0004m3-Ju
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 22:42:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8Jb0-0004Z7-8D
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 22:42:29 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:37301)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8Jaz-0004XG-GD
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 22:42:26 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id t5Q2VUcf018488;
 Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
Date: Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Davin McCall <davmac@HIDDEN>
Subject: Re: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker
 stage when -flto is used
In-Reply-To: <558C4F4A.4040106@HIDDEN>
Message-ID: <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
References: <558C4F4A.4040106@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
X-detected-operating-system: by eggs.gnu.org: Solaris 10
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

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@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#20899; Package libtool. Full text available.

Message received at 20899 <at> debbugs.gnu.org:


Received: (at 20899) by debbugs.gnu.org; 26 Jun 2015 02:31:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 22:31:49 2015
Received: from localhost ([127.0.0.1]:57670 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z8JQj-0008Fj-4e
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:31:49 -0400
Received: from blade.simplesystems.org ([65.66.246.74]:37276)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <bfriesen@HIDDEN>) id 1Z8JQh-0008FT-Hz
 for 20899 <at> debbugs.gnu.org; Thu, 25 Jun 2015 22:31:48 -0400
Received: from freddy.simplesystems.org (freddy.simplesystems.org
 [65.66.246.65])
 by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id t5Q2VUcf018488;
 Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
Date: Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@HIDDEN>
X-X-Sender: bfriesen@HIDDEN
To: Davin McCall <davmac@HIDDEN>
Subject: Re: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker
 stage when -flto is used
In-Reply-To: <558C4F4A.4040106@HIDDEN>
Message-ID: <alpine.GSO.2.01.1506252130150.4186@HIDDEN>
References: <558C4F4A.4040106@HIDDEN>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
 (blade.simplesystems.org [65.66.246.90]);
 Thu, 25 Jun 2015 21:31:30 -0500 (CDT)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20899
Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

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@HIDDEN, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/




Information forwarded to bug-libtool@HIDDEN:
bug#20899; Package libtool. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Jun 2015 19:35:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 25 15:35:36 2015
Received: from localhost ([127.0.0.1]:57513 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Z8Cvv-0004qi-3o
	for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 15:35:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51736)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <davmac@HIDDEN>) id 1Z8CM8-0003vU-31
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 14:58:36 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8CM2-00012k-Aw
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 14:58:31 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34490)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8CM2-00012g-92
 for submit <at> debbugs.gnu.org; Thu, 25 Jun 2015 14:58:30 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:37000)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8CM1-0002Gr-Ce
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 14:58:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8CLw-00010r-5z
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 14:58:29 -0400
Received: from mx1.kent.ac.uk ([129.12.21.39]:49432)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <davmac@HIDDEN>) id 1Z8CLv-00010G-VY
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 14:58:24 -0400
Received: from mx7.kent.ac.uk ([129.12.21.38])
 by mx1.kent.ac.uk with esmtps (UNKNOWN:AES256-GCM-SHA384:256)
 (Exim 4.72) (envelope-from <davmac@HIDDEN>) id 1Z8CLs-0003qI-R8
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 19:58:20 +0100
Received: from host-84-9-123-131.dslgb.com ([84.9.123.131] helo=[192.168.1.39])
 by mx7.kent.ac.uk with esmtpsa (UNKNOWN:AES128-SHA:128) (Exim 4.72)
 (envelope-from <davmac@HIDDEN>) id 1Z8CLs-0006wZ-IR
 for bug-libtool@HIDDEN; Thu, 25 Jun 2015 19:58:20 +0100
Message-ID: <558C4F4A.4040106@HIDDEN>
Date: Thu, 25 Jun 2015 19:58:18 +0100
From: Davin McCall <davmac@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686;
 rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: bug-libtool@HIDDEN
Subject: Bug in libtool: -fno-strict-alias not passed to linker stage when
 -flto is used
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Kent-Spam-Score: -1.0
X-Kent-Spam-Bar: -
X-Kent-Spam-Report: No, tests=ALL_TRUSTED=-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.1 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 25 Jun 2015 15:35:33 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.1 (----)

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.

If you need any further information, please don't hesitate to ask.

Davin





Acknowledgement sent to Davin McCall <davmac@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#20899; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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