From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5451 invoked by alias); 2 Jul 2014 22:24:08 -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 5276 invoked by uid 48); 2 Jul 2014 22:23:51 -0000 From: "josh at joshtriplett dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/61677] New: False positive with -Wmaybe-uninitialized (test case included) Date: Wed, 02 Jul 2014 22:24: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: josh at joshtriplett 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created 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: 2014-07/txt/msg00125.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61677 Bug ID: 61677 Summary: False positive with -Wmaybe-uninitialized (test case included) Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: josh at joshtriplett dot org Created attachment 33055 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D33055&action=3Dedit Test case for false positive in -Wmaybe-uninitialized With the attached file bug.i: $ gcc -Wall -O2 -c bug.i -o /dev/null In file included from scripts/kconfig/zconf.tab.c:2537:0: scripts/kconfig/menu.c: In function =E2=80=98get_symbol_str=E2=80=99: scripts/kconfig/menu.c:590:18: warning: =E2=80=98jump=E2=80=99 may be used = uninitialized in this function [-Wmaybe-uninitialized] In file included from scripts/kconfig/zconf.tab.c:2537:0: scripts/kconfig/menu.c:551:19: note: =E2=80=98jump=E2=80=99 was declared he= re The warning occurs in get_prompt_str, which initializes jump if (head && location), and subsequently uses jump if (head && location && ...). gcc --version says "gcc (Debian 4.9.0-9) 4.9.0" >>From gcc-bugs-return-455535-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 02 22:32:31 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13553 invoked by alias); 2 Jul 2014 22:32:29 -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 13119 invoked by uid 48); 2 Jul 2014 22:32:16 -0000 From: "larsbj at gullik dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61678] New: internal compiler error: in expand_expr_real_1, at expr.c:9467 Date: Wed, 02 Jul 2014 22:32: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.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: larsbj at gullik dot net 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter 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: 2014-07/txt/msg00126.txt.bz2 Content-length: 1460 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61678 Bug ID: 61678 Summary: internal compiler error: in expand_expr_real_1, at expr.c:9467 Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: larsbj at gullik dot net $ cat main.ii struct Test { Test(); }; Test::Test() { int w =3D 512; unsigned rgb_ref[1][w]; } Gives this error: $ /opt/gcc/gcc-trunk/bin/g++ -c main.ii main.ii: In constructor =E2=80=98Test::Test()=E2=80=99: main.ii:8:26: internal compiler error: in expand_expr_real_1, at expr.c:9467 unsigned rgb_ref[1][w]; ^ 0x77961b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/gcc/expr.c:9462 0x7825e5 expand_expr ../../gcc/gcc/expr.h:451 0x7825e5 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) ../../gcc/gcc/expr.c:8151 0x6c542e expand_gimple_stmt_1 ../../gcc/gcc/cfgexpand.c:3294 0x6c542e expand_gimple_stmt ../../gcc/gcc/cfgexpand.c:3354 0x6c656a expand_gimple_basic_block ../../gcc/gcc/cfgexpand.c:5192 0x6c8166 execute ../../gcc/gcc/cfgexpand.c:5799 This is with $ /opt/gcc/gcc-trunk/bin/g++ --version g++ (GCC) 4.10.0 20140702 (experimental) >>From gcc-bugs-return-455536-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 02 23:00:38 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22662 invoked by alias); 2 Jul 2014 23:00:36 -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 22291 invoked by uid 48); 2 Jul 2014 23:00:21 -0000 From: "gary at intrepid dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/61679] New: build fails with G++ 4.5.1 - prototype for hash_table does not match any in class Date: Wed, 02 Jul 2014 23:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gary at intrepid dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter 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: 2014-07/txt/msg00127.txt.bz2 Content-length: 2504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61679 Bug ID: 61679 Summary: build fails with G++ 4.5.1 - prototype for hash_table does not match any in class Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: gary at intrepid dot com This build failure shows up on a recent source version of GCC 4.10 (212138 2014-06-30). An attempt to bootstrap the compiler on an older system with = GCC 4.5.1 installed fails as follows: /a/gcc-4.5.1/bld/rls/bin/g++ -c -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -O0 -g3 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -= I. -I. -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/. -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/../include -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/../libcpp/include=20 -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/../libdecnumber -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/../libdecnumber/bid -I../libdecnumber -I/eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/../libbacktrac= e=20=20=20 -o attribs.o -MT attribs.o -MMD -MP -MF ./.deps/attribs.TPo /eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/attribs.c In file included from /eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/attribs.c:35= :0: /eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/hash-table.h:667:1: error: prototy= pe for =E2=80=98typename Descriptor::value_type** hash_table::find_empty_slot_for_expand(hashval_t)=E2=80=99 does not match any i= n class =E2=80=98hash_table=E2=80=99 /eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/hash-table.h:606:16: error: candid= ate is: hash_table::value_type** hash_table::find_empty_slot_for_expand(hashva= l_t) /eng/upc/dev/gary/gupc-gcc-trunk/src/gcc/hash-table.h:807:1: error: prototy= pe for =E2=80=98typename Descriptor::value_type* hash_table::find_with_hash(hash_table::compare_ty= pe*, hashval_t)=E2=80=99 does not match any in class =E2=80=98hash_table=E2=80=99 [...] >>From gcc-bugs-return-455537-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jul 02 23:24:42 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25895 invoked by alias); 2 Jul 2014 23:24: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 25828 invoked by uid 48); 2 Jul 2014 23:24:29 -0000 From: "longb at cray dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/61680] New: vectorization gives wrong answer for sandybridge target Date: Wed, 02 Jul 2014 23:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: longb at cray dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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: 2014-07/txt/msg00128.txt.bz2 Content-length: 879 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61680 Bug ID: 61680 Summary: vectorization gives wrong answer for sandybridge target Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: longb at cray dot com Created attachment 33056 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33056&action=edit test3.f90 Bad result: > gfortran -march=corei7-avx -O3 test3.f90 > ./a.out 10.000000000000000 Good result: > gfortran -march=corei7-avx -O3 -fno-tree-vectorize test3.f90 > ./a.out 13.114877048604001 > Version info: > gfortran --version GNU Fortran (GCC) 4.9.0 20140422 (Cray Inc.) Copyright (C) 2014 Free Software Foundation, Inc.