From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9173 invoked by alias); 22 Jul 2013 11:28:05 -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 988 invoked by uid 48); 22 Jul 2013 11:26:03 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/57950] wrong line numbers in error messages for inline assembler statements Date: Mon, 22 Jul 2013 11:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00995.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57950 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #3 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Andreas Schwab from comment #2) > GCC uses the line number of the start of the asm statement, so line 8 is > correct. "Correct" as "expected" but not as "desired". This is what Clang prints by comparison: asm-line-number.c:3:12: error: invalid instruction mnemonic 'foo' __asm__ ("foo\nfoo"); ^ :1:2: note: instantiated into assembly here foo ^~~ asm-line-number.c:3:18: error: invalid instruction mnemonic 'foo' __asm__ ("foo\nfoo"); ^ :2:1: note: instantiated into assembly here foo ^~~ asm-line-number.c:10:7: error: invalid instruction mnemonic 'foo' "foo" ^ :1:2: note: instantiated into assembly here foo ^~~ 3 errors generated. It seems difficult to get there without an integrated assembler, but GCC co= uld at least provide better locations to GAS (and GAS understand and print colu= mn numbers), so we could get: asm-line-number.c: Assembler messages: asm-line-number.c:3:12: Error: no such instruction: `foo' asm-line-number.c:3:18: Error: no such instruction: `foo' asm-line-number.c:10:7: Error: no such instruction: `foo' Any editor worth its salt would jump to the correct line and column in the sources. >>From gcc-bugs-return-426489-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 22 11:44:12 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29899 invoked by alias); 22 Jul 2013 11:44:12 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26889 invoked by uid 48); 22 Jul 2013 11:42:10 -0000 From: "f.heckenbach@fh-soft.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/57950] wrong line numbers in error messages for inline assembler statements Date: Mon, 22 Jul 2013 11:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 4.7.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: f.heckenbach@fh-soft.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00996.txt.bz2 Content-length: 1788 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57950 --- Comment #4 from Frank Heckenbach --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #3) > (In reply to Andreas Schwab from comment #2) > > GCC uses the line number of the start of the asm statement, so line 8 is > > correct. >=20 > "Correct" as "expected" but not as "desired". And it would only explain the latter messages, not the former ones reported as lines 3 and 4. > This is what Clang prints by comparison: >=20 > asm-line-number.c:3:12: error: invalid instruction mnemonic 'foo' > __asm__ ("foo\nfoo"); > ^ > :1:2: note: instantiated into assembly here > foo > ^~~ > asm-line-number.c:3:18: error: invalid instruction mnemonic 'foo' > __asm__ ("foo\nfoo"); > ^ > :2:1: note: instantiated into assembly here > foo > ^~~ > asm-line-number.c:10:7: error: invalid instruction mnemonic 'foo' > "foo" > ^ > :1:2: note: instantiated into assembly here > foo > ^~~ > 3 errors generated. >=20 > It seems difficult to get there without an integrated assembler, but GCC > could at least provide better locations to GAS (and GAS understand and pr= int > column numbers), so we could get: >=20 > asm-line-number.c: Assembler messages: > asm-line-number.c:3:12: Error: no such instruction: `foo' > asm-line-number.c:3:18: Error: no such instruction: `foo' > asm-line-number.c:10:7: Error: no such instruction: `foo' >=20 > Any editor worth its salt would jump to the correct line and column in the > sources. The clang output is indeed very nice, though to me, the wrong line numbers (at least in the presence of "\n") are the more serious problem than the lack of column numbers. >>From gcc-bugs-return-426490-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jul 22 12:07:48 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30374 invoked by alias); 22 Jul 2013 12:07:48 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27993 invoked by uid 48); 22 Jul 2013 12:05:46 -0000 From: "acrux at linuxmail dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/57591] gcc-4.8 libbacktrace btest failure on Linux ppc64 Date: Mon, 22 Jul 2013 12:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: acrux at linuxmail dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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: 2013-07/txt/msg00997.txt.bz2 Content-length: 147 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57591 --- Comment #4 from acrux --- same failure with gcc-4.8-20130718