public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94842] New: [8/9/10 Regression] internal compiler error: in gimplify_label_expr, at gimplify.c:2573
@ 2020-04-29  6:51 anbu1024.me at gmail dot com
  2020-04-29  7:18 ` [Bug c/94842] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: anbu1024.me at gmail dot com @ 2020-04-29  6:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94842

            Bug ID: 94842
           Summary: [8/9/10 Regression] internal compiler error: in
                    gimplify_label_expr, at gimplify.c:2573
           Product: gcc
           Version: 10.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 

_Atomic float x = 5 ;

void foo ( int arg_0 ) 
{ 
        void bar ( float arg_0 [ ( int ) ( x += 2 ) ] ) { } 
}

--------------------------------------------------------------------------------

$ gcc-10 --version
gcc (GCC) 10.0.1 20200419 (experimental)
Copyright (C) 2020 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-10 test.c 
test.c: In function ‘bar’:
test.c:6:27: internal compiler error: in gimplify_label_expr, at
gimplify.c:2573
    6 |  void bar ( float arg_0 [ ( int ) ( x += 2 ) ] ) { }
      |                           ^~~~~~~~~~~~~~~~~~
0x66df8d gimplify_label_expr
        ../../gcc-10-20200419/gcc/gimplify.c:2573
0xafd7d2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-10-20200419/gcc/gimplify.c:13847
0xb00bd6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-10-20200419/gcc/gimplify.c:6825
0xafe48b gimplify_statement_list
        ../../gcc-10-20200419/gcc/gimplify.c:1869
0xafe48b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-10-20200419/gcc/gimplify.c:14052
0xb12883 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-10-20200419/gcc/gimplify.c:6825
0xb12883 gimplify_compound_expr
        ../../gcc-10-20200419/gcc/gimplify.c:6025
0xafdb30 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-10-20200419/gcc/gimplify.c:13598
0xb031b0 internal_get_tmp_var
        ../../gcc-10-20200419/gcc/gimplify.c:619
0xb057ca get_initialized_tmp_var(tree_node*, gimple**, gimple**, bool)
        ../../gcc-10-20200419/gcc/gimplify.c:674
0xb057ca gimplify_save_expr
        ../../gcc-10-20200419/gcc/gimplify.c:6073
0xafdeb6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-10-20200419/gcc/gimplify.c:13908
0xb00bd6 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-10-20200419/gcc/gimplify.c:6825
0xafe48b gimplify_statement_list
        ../../gcc-10-20200419/gcc/gimplify.c:1869
0xafe48b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-10-20200419/gcc/gimplify.c:14052
0xb15927 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-10-20200419/gcc/gimplify.c:6825
0xb15927 gimplify_body(tree_node*, bool)
        ../../gcc-10-20200419/gcc/gimplify.c:14857
0xb15e53 gimplify_function_tree(tree_node*)
        ../../gcc-10-20200419/gcc/gimplify.c:15030
0xe49ee0 gimplify_all_functions
        ../../gcc-10-20200419/gcc/tree-nested.c:3521
0xe49ecf gimplify_all_functions
        ../../gcc-10-20200419/gcc/tree-nested.c:3524
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--------------------------------------------------------------------------------

$ gcc-9 --version
gcc (GCC) 9.3.1 20200425
Copyright (C) 2019 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-9 test.c 
test.c: In function ‘bar’:
test.c:6:27: internal compiler error: in gimplify_label_expr, at
gimplify.c:2498
    6 |  void bar ( float arg_0 [ ( int ) ( x += 2 ) ] ) { }
      |                           ^~~~~~~~~~~~~~~~~~
0x5b6fa9 gimplify_label_expr
        ../../gcc-9-20200425/gcc/gimplify.c:2498
0x5b6fa9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-9-20200425/gcc/gimplify.c:12750
0x86a736 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-9-20200425/gcc/gimplify.c:6721
0x86897b gimplify_statement_list
        ../../gcc-9-20200425/gcc/gimplify.c:1794
0x86897b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-9-20200425/gcc/gimplify.c:12940
0x86a736 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-9-20200425/gcc/gimplify.c:6721
0x86ae1b gimplify_compound_expr
        ../../gcc-9-20200425/gcc/gimplify.c:5930
0x868546 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-9-20200425/gcc/gimplify.c:12501
0x86c1b0 internal_get_tmp_var
        ../../gcc-9-20200425/gcc/gimplify.c:599
0x868327 get_initialized_tmp_var(tree_node*, gimple**, gimple**, bool)
        ../../gcc-9-20200425/gcc/gimplify.c:653
0x868327 gimplify_save_expr
        ../../gcc-9-20200425/gcc/gimplify.c:5978
0x868327 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-9-20200425/gcc/gimplify.c:12811
0x86a736 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-9-20200425/gcc/gimplify.c:6721
0x86897b gimplify_statement_list
        ../../gcc-9-20200425/gcc/gimplify.c:1794
0x86897b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-9-20200425/gcc/gimplify.c:12940
0x86a736 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-9-20200425/gcc/gimplify.c:6721
0x86ba16 gimplify_body(tree_node*, bool)
        ../../gcc-9-20200425/gcc/gimplify.c:13721
0x86bcc5 gimplify_function_tree(tree_node*)
        ../../gcc-9-20200425/gcc/gimplify.c:13865
0xb127bf gimplify_all_functions
        ../../gcc-9-20200425/gcc/tree-nested.c:3500
0xb127af gimplify_all_functions
        ../../gcc-9-20200425/gcc/tree-nested.c:3503
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

--------------------------------------------------------------------------------

$ gcc-8 --version
gcc (GCC) 8.4.1 20200424
Copyright (C) 2018 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-8 test.c 
test.c: In function ‘bar’:
test.c:6:27: internal compiler error: in gimplify_label_expr, at
gimplify.c:2455
  void bar ( float arg_0 [ ( int ) ( x += 2 ) ] ) { }
                           ^~~~~~~~~~~~~~~~~~
0x5b8fc1 gimplify_label_expr
        ../../gcc-8-20200424/gcc/gimplify.c:2454
0x5b8fc1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-8-20200424/gcc/gimplify.c:11804
0x856106 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-8-20200424/gcc/gimplify.c:6708
0x85456b gimplify_statement_list
        ../../gcc-8-20200424/gcc/gimplify.c:1770
0x85456b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-8-20200424/gcc/gimplify.c:11994
0x856106 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-8-20200424/gcc/gimplify.c:6708
0x8567eb gimplify_compound_expr
        ../../gcc-8-20200424/gcc/gimplify.c:5917
0x853e37 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-8-20200424/gcc/gimplify.c:11555
0x857cbf internal_get_tmp_var
        ../../gcc-8-20200424/gcc/gimplify.c:575
0x855299 get_initialized_tmp_var(tree_node*, gimple**, gimple**, bool)
        ../../gcc-8-20200424/gcc/gimplify.c:629
0x855299 gimplify_save_expr
        ../../gcc-8-20200424/gcc/gimplify.c:5965
0x855299 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-8-20200424/gcc/gimplify.c:11865
0x856106 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-8-20200424/gcc/gimplify.c:6708
0x85456b gimplify_statement_list
        ../../gcc-8-20200424/gcc/gimplify.c:1770
0x85456b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
        ../../gcc-8-20200424/gcc/gimplify.c:11994
0x856106 gimplify_stmt(tree_node**, gimple**)
        ../../gcc-8-20200424/gcc/gimplify.c:6708
0x85741e gimplify_body(tree_node*, bool)
        ../../gcc-8-20200424/gcc/gimplify.c:12767
0x8577c5 gimplify_function_tree(tree_node*)
        ../../gcc-8-20200424/gcc/gimplify.c:12932
0xae969f gimplify_all_functions
        ../../gcc-8-20200424/gcc/tree-nested.c:3316
0xae9681 gimplify_all_functions
        ../../gcc-8-20200424/gcc/tree-nested.c:3318
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-09-17 17:48 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29  6:51 [Bug c/94842] New: [8/9/10 Regression] internal compiler error: in gimplify_label_expr, at gimplify.c:2573 anbu1024.me at gmail dot com
2020-04-29  7:18 ` [Bug c/94842] " rguenth at gcc dot gnu.org
2020-04-29 13:28 ` jakub at gcc dot gnu.org
2020-04-29 21:27 ` joseph at codesourcery dot com
2020-04-30 10:32 ` jakub at gcc dot gnu.org
2020-04-30 10:33 ` jakub at gcc dot gnu.org
2020-04-30 19:49 ` [Bug c/94842] [8/9/10/11 " cvs-commit at gcc dot gnu.org
2020-04-30 19:49 ` [Bug c/94842] [8/9/10 " jakub at gcc dot gnu.org
2020-05-07 13:27 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:33 ` [Bug c/94842] [8/9 " jakub at gcc dot gnu.org
2020-05-08  3:02 ` paul.hua.gm at gmail dot com
2020-09-16 19:21 ` cvs-commit at gcc dot gnu.org
2020-09-17 17:48 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).