From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 983833865460; Wed, 11 Aug 2021 07:42:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 983833865460 From: "anbu1024.me at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwMTg1OF0gTmV3OiBbMTIgUmVncmVzc2lvbl0gSUNF?= =?UTF-8?B?OiDigJh2ZXJpZnlfZ2ltcGxl4oCZIGZhaWxlZA==?= Date: Wed, 11 Aug 2021 07:42:59 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anbu1024.me 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2021 07:42:59 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101858 Bug ID: 101858 Summary: [12 Regression] ICE: =E2=80=98verify_gimple=E2=80=99 fa= iled Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat test.c=20 int foo(a) { if ( a < (int*)(1LL << a)) a =3D 0; return a; } ---------------------------------------------------------------- $ gcc-sp12 --version gcc (GCC) 12.0.0 20210729 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---------------------------------------------------------------- $ gcc-sp12 test.c=20 test.c: In function =E2=80=98foo=E2=80=99: test.c:2:5: warning: type of =E2=80=98a=E2=80=99 defaults to =E2=80=98int= =E2=80=99 [-Wimplicit-int] 2 | int foo(a) | ^~~ test.c:4:12: warning: comparison between pointer and integer 4 | if ( a < (int*)(1LL << a)) | ^ test.c:2:5: error: type mismatch in =E2=80=98rshift_expr=E2=80=99 2 | int foo(a) | ^~~ int * int * int _3 =3D _2 >> a; test.c:2:5: internal compiler error: =E2=80=98verify_gimple=E2=80=99 failed 0xecbccd verify_gimple_in_seq(gimple*) ../../gcc-12-20210801/gcc/tree-cfg.c:5183 0xbe644a gimplify_body(tree_node*, bool) ../../gcc-12-20210801/gcc/gimplify.c:15539 0xbe657d gimplify_function_tree(tree_node*) ../../gcc-12-20210801/gcc/gimplify.c:15610 0xa1ed77 cgraph_node::analyze() ../../gcc-12-20210801/gcc/cgraphunit.c:670 0xa218f7 analyze_functions ../../gcc-12-20210801/gcc/cgraphunit.c:1234 0xa225bd symbol_table::finalize_compilation_unit() ../../gcc-12-20210801/gcc/cgraphunit.c:2508 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---------------------------------------------------------------- $ gcc-sp11 --version gcc (GCC) 11.1.1 20210717 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ---------------------------------------------------------------- $ gcc-sp11 test.c=20 test.c: In function =E2=80=98foo=E2=80=99: test.c:2:5: warning: type of =E2=80=98a=E2=80=99 defaults to =E2=80=98int= =E2=80=99 [-Wimplicit-int] 2 | int foo(a) | ^~~ test.c:4:12: warning: comparison between pointer and integer 4 | if ( a < (int*)(1LL << a)) | ^ /usr/bin/ld: /lib/x86_64-linux-gnu/crt1.o: in function `_start': (.text+0x24): undefined reference to `main' collect2: error: ld returned 1 exit status=