GNU logs - #20899, boring messages


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Resent-From: Davin McCall <davmac@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Thu, 25 Jun 2015 19:36:03 +0000
Resent-Message-ID: <handler.20899.B.143526093618649 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 20899
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: 20899 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.143526093618649
          (code B ref -1); Thu, 25 Jun 2015 19:36:03 +0000
Received: (at submit) by debbugs.gnu.org; 25 Jun 2015 19:35:36 +0000
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
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-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





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Davin McCall <davmac@HIDDEN>
Subject: bug#20899: Acknowledgement (Bug in libtool: -fno-strict-alias not
 passed to linker stage when -flto is used)
Message-ID: <handler.20899.B.143526093618649.ack <at> debbugs.gnu.org>
References: <558C4F4A.4040106@HIDDEN>
X-Gnu-PR-Message: ack 20899
X-Gnu-PR-Package: libtool
Reply-To: 20899 <at> debbugs.gnu.org
Date: Thu, 25 Jun 2015 19:36:05 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-libtool@HIDDEN

If you wish to submit further information on this problem, please
send it to 20899 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
20899: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20899
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Resent-From: Bob Friesenhahn <bfriesen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 26 Jun 2015 02:32:02 +0000
Resent-Message-ID: <handler.20899.B20899.143528590931731 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20899
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Davin McCall <davmac@HIDDEN>
Cc: 20899 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
Received: via spool by 20899-submit <at> debbugs.gnu.org id=B20899.143528590931731
          (code B ref 20899); Fri, 26 Jun 2015 02:32:02 +0000
Received: (at 20899) by debbugs.gnu.org; 26 Jun 2015 02:31:49 +0000
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
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-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/




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Resent-From: Bob Friesenhahn <bfriesen@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 26 Jun 2015 02:43:02 +0000
Resent-Message-ID: <handler.20899.B.143528655932682 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20899
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Davin McCall <davmac@HIDDEN>
Cc: 20899 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.143528655932682
          (code B ref -1); Fri, 26 Jun 2015 02:43:02 +0000
Received: (at submit) by debbugs.gnu.org; 26 Jun 2015 02:42:39 +0000
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
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-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/




Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Resent-From: Davin McCall <davmac@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 27 Jun 2015 09:31:03 +0000
Resent-Message-ID: <handler.20899.B.143539742223971 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20899
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Bob Friesenhahn <bfriesen@HIDDEN>
Cc: 20899 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.143539742223971
          (code B ref -1); Sat, 27 Jun 2015 09:31:03 +0000
Received: (at submit) by debbugs.gnu.org; 27 Jun 2015 09:30:22 +0000
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
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-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





Message sent to bug-libtool@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#20899: Bug in libtool: -fno-strict-alias not passed to linker stage when -flto is used
Resent-From: Davin McCall <davmac@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Sat, 27 Jun 2015 09:31:04 +0000
Resent-Message-ID: <handler.20899.B20899.143539741623957 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20899
X-GNU-PR-Package: libtool
X-GNU-PR-Keywords: 
To: Bob Friesenhahn <bfriesen@HIDDEN>
Cc: 20899 <at> debbugs.gnu.org
X-Debbugs-Original-Cc: 20899 <at> debbugs.gnu.org, bug-libtool@HIDDEN
Received: via spool by 20899-submit <at> debbugs.gnu.org id=B20899.143539741623957
          (code B ref 20899); Sat, 27 Jun 2015 09:31:04 +0000
Received: (at 20899) by debbugs.gnu.org; 27 Jun 2015 09:30:16 +0000
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
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-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






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.