From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10574 invoked by alias); 8 Feb 2015 15:35:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 10531 invoked by uid 55); 8 Feb 2015 15:35:49 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/62247] [5 Regression] FAIL: g++.dg/abi/anon3.C -std=c++98 scan-assembler .weak(_definition) Date: Sun, 08 Feb 2015 15:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00699.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62247 --- Comment #5 from dave.anglin at bell dot net --- On 2015-02-07, at 10:49 AM, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62247 > > --- Comment #3 from Jakub Jelinek --- > With cross-compiler I get the same anon3.s (no .weak occurrences in the > assembly) as in 4.9. As neither the test nor dg-require-weak seems to have > changed, I guess the important questions are: > 1) can you compare 4.9.2 and 5.0.0 generated assembly? Attached assembler output from 4.9.3 20150207. The assembly output from 5.0.0 is wierd. It has a few nop's which make up body of function: virtual void Heya::A::f() ... (insn 2 11 3 (set (mem/f/c:SI (reg/f:SI 28 %r28 [98]) [0 this+0 S4 A32]) (reg:SI 26 %r26 [ this ])) /test/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/an on3.C:14 40 {*pa.md:2204} (nil)) (note 3 2 8 NOTE_INSN_FUNCTION_BEG)(insn 8 3 18 (const_int 0 [0]) /test/gnu/gcc/gcc/gcc/testsuite/g++.dg/abi/anon3. C:14 213 {nop} (nil)) (note 18 8 19 NOTE_INSN_EPILOGUE_BEG) > 2) does the test in 4.9.2 PASS or is it UNSUPPORTED? The test passes in 4.9.2. > 3) has something changed in auto-host.h, such as previously HAVE_GAS_WEAK and > now no longer true or something similar? Both 4.9 and 5.0 have: /* Define if your assembler supports .weak. */ #ifndef USED_FOR_TARGET #define HAVE_GAS_WEAK 1 #endif /* Define if your assembler supports .weakref. */ #ifndef USED_FOR_TARGET #define HAVE_GAS_WEAKREF 1 #endif > 4) if there has been any change on the compiler side, can you bisect when did > that happen? Will try to narrow this down. Dave -- John David Anglin dave.anglin@bell.net