From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23724 invoked by alias); 21 May 2015 06:49:06 -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 23703 invoked by uid 48); 21 May 2015 06:49:02 -0000 From: "usignao at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/66233] New: internal compiler error: in expand_fix, at optabs.c:5358 Date: Thu, 21 May 2015 06:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: usignao at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: 2015-05/txt/msg01713.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66233 Bug ID: 66233 Summary: internal compiler error: in expand_fix, at optabs.c:5358 Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: usignao at gmail dot com Target Milestone: --- Hello! The error is produced by the following (invalid) code /* oops.c */ unsigned int pData[5]; void f() { int i; for(i=3D0; i<5; i++) { pData[i] =3D (float) i; } } $ gcc -O3 -Wall -Wextra -o oops.o -c oops.c oops.c: In function =E2=80=98f=E2=80=99: oops.c:6:12: internal compiler error: in expand_fix, at optabs.c:5358 pData[i] =3D (float) i; ^ No warnings are given. I'm on Linux x64, gcc version is 4.9.2, but accordin= g to the godbolt.org all the versions from 4.8 up to 5.1.0 are also affected. >>From gcc-bugs-return-486874-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 21 06:50:16 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51764 invoked by alias); 21 May 2015 06:50:16 -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 48773 invoked by uid 55); 21 May 2015 06:50:12 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52952] Wformat location info is bad (wrong column number) Date: Thu, 21 May 2015 06:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 2015-05/txt/msg01714.txt.bz2 Content-length: 2032 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52952 --- Comment #38 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- Author: manu Date: Thu May 21 06:49:38 2015 New Revision: 223470 URL: https://gcc.gnu.org/viewcvs?rev=3D223470&root=3Dgcc&view=3Drev Log: gcc/testsuite/ChangeLog: 2015-05-21 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez PR c/52952 * gcc.dg/redecl-4.c: Update column numbers. * gcc.dg/format/bitfld-1.c: Likewise. * gcc.dg/format/attr-2.c: Likewise. * gcc.dg/format/attr-6.c: Likewise. * gcc.dg/format/attr-7.c (baz): Likewise. * gcc.dg/format/asm_fprintf-1.c: Likewise. * gcc.dg/format/attr-4.c: Likewise. * gcc.dg/format/branch-1.c: Likewise. * gcc.dg/format/c90-printf-1.c: Likewise. Add tests for column locations within strings with embedded escape sequences. gcc/c-family/ChangeLog: 2015-05-21 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez PR c/52952 * c-format.c (location_column_from_byte_offset): New. (location_from_offset): New. (struct format_wanted_type): Add offset_loc field. (check_format_info): Move handling of location for extra arguments closer to the point of warning. (check_format_info_main): Pass the result of location_from_offset to warning_at. (format_type_warning): Pass the result of location_from_offset to warning_at. Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-format.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/format/asm_fprintf-1.c trunk/gcc/testsuite/gcc.dg/format/attr-2.c trunk/gcc/testsuite/gcc.dg/format/attr-4.c trunk/gcc/testsuite/gcc.dg/format/attr-6.c trunk/gcc/testsuite/gcc.dg/format/attr-7.c trunk/gcc/testsuite/gcc.dg/format/bitfld-1.c trunk/gcc/testsuite/gcc.dg/format/branch-1.c trunk/gcc/testsuite/gcc.dg/format/c90-printf-1.c trunk/gcc/testsuite/gcc.dg/redecl-4.c >>From gcc-bugs-return-486875-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 21 07:06:37 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101899 invoked by alias); 21 May 2015 07:06:37 -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 101824 invoked by uid 48); 21 May 2015 07:06:33 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52952] Wformat location info is bad (wrong column number) Date: Thu, 21 May 2015 07:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: 2015-05/txt/msg01715.txt.bz2 Content-length: 476 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52952 --- Comment #39 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- A summary of what is still pending: 1. Handle macros #define c " %d " __builtin_printf(c, 0.5); 2. Handle non-contiguous strings: __builtin_printf(" %" "d ", 0.5); 3. Handle const arrays: const char a[] =3D " %d "; __builtin_printf(a, 0.5); I have an idea on how to fix 1 and 2 but no idea how to fix 3. >>From gcc-bugs-return-486876-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 21 07:08:41 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105420 invoked by alias); 21 May 2015 07:08:41 -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 105362 invoked by uid 48); 21 May 2015 07:08:37 -0000 From: "ossman at cendio dot se" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/61955] libsanitizer fails to compile on RHEL4 Date: Thu, 21 May 2015 07:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ossman at cendio dot se X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-05/txt/msg01716.txt.bz2 Content-length: 1010 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61955 Pierre Ossman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ossman at cendio dot se --- Comment #4 from Pierre Ossman --- Unfortunately the git history doesn't go further back than 2.6.12 so I don't know when aio_abi.h got added. But the code only needs the enum, so something like this should work: #include /* aio_abi.h was added in 2.6.10 (FIXME: check this) */ #if LINUX_VERSION_CODE < 132624 enum { IOCB_CMD_PREAD = 0, IOCB_CMD_PWRITE = 1, IOCB_CMD_FSYNC = 2, IOCB_CMD_FDSYNC = 3, IOCB_CMD_NOOP = 6, }; #else #include_next #endif /* IOCB_CMD_PREADV/PWRITEV has been added in 2.6.19 */ #if LINUX_VERSION_CODE < 132627 #define IOCB_CMD_PREADV 7 #define IOCB_CMD_PWRITEV 8 #endif