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

            Bug ID: 69272
           Summary: [6 Regression] ICE: in c_builtin_function, at
                    c/c-decl.c:4020 with -fgnu-tm
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz
  Target Milestone: ---
            Target: x86_64-*

Compiler output:
$ echo '' | x86_64-pc-linux-gnu-gcc -fgnu-tm -x c -
<built-in>: internal compiler error: in c_builtin_function, at c/c-decl.c:4020
0x5cd6cb c_builtin_function(tree_node*)
        /repo/gcc-trunk/gcc/c/c-decl.c:4020
0x9ad54b add_builtin_function_common
        /repo/gcc-trunk/gcc/langhooks.c:572
0x9ae24e add_builtin_function(char const*, tree_node*, int, built_in_class,
char const*, tree_node*)
        /repo/gcc-trunk/gcc/langhooks.c:588
0xe0d539 tm_define_builtin
        /repo/gcc-trunk/gcc/tree.c:10339
0xe2cfaa build_tm_vector_builtins
        /repo/gcc-trunk/gcc/tree.c:10405
0xe2cfaa build_common_builtin_nodes()
        /repo/gcc-trunk/gcc/tree.c:10708
0x67f505 c_define_builtins
        /repo/gcc-trunk/gcc/c-family/c-common.c:5211
0x67f505 c_common_nodes_and_builtins()
        /repo/gcc-trunk/gcc/c-family/c-common.c:5657
0x5cd4e9 c_init_decl_processing()
        /repo/gcc-trunk/gcc/c/c-decl.c:3940
0x61a178 c_objc_common_init()
        /repo/gcc-trunk/gcc/c/c-objc-common.c:60
0x5bd370 lang_dependent_init
        /repo/gcc-trunk/gcc/toplev.c:1753
0x5bd370 do_compile
        /repo/gcc-trunk/gcc/toplev.c:1971
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Even empty input file triggers this problem.

Tested revisions:
r232361 - ICE
r232341 - ICE
r232287 - OK

Reply via email to