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

            Bug ID: 69973
           Summary: ICE on excessive attribute vector_size
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

Attribute vector_size with a size of 1 << 29 or greater causes an ICE in all
tested versions of GCC all the way back to 4.5 on powerpc64le as well as
x86_64.

$ cat t.c && /build/gcc-trunk/gcc/xgcc -B /build/gcc-trunk/gcc -S -Wall -Wextra
-Wpedantic -o/dev/null -xc t.c
typedef int v4si __attribute__ ((vector_size (1 << 29)));
t.c:1:1: internal compiler error: in layout_type, at stor-layout.c:2209
 typedef int v4si __attribute__ ((vector_size (1 << 29)));
 ^~~~~~~
0x10d0fe37 layout_type(tree_node*)
        /src/gcc/trunk/gcc/stor-layout.c:2208
0x111dc6cb make_vector_type
        /src/gcc/trunk/gcc/tree.c:9890
0x111e0e9b build_vector_type(tree_node*, int)
        /src/gcc/trunk/gcc/tree.c:10703
0x10443b37 handle_vector_size_attribute
        /src/gcc/trunk/gcc/c-family/c-common.c:9013
0x102fccaf decl_attributes(tree_node**, tree_node*, int)
        /src/gcc/trunk/gcc/attribs.c:551
0x10315d2b c_decl_attributes
        /src/gcc/trunk/gcc/c/c-decl.c:4413
0x1031648b start_decl(c_declarator*, c_declspecs*, bool, tree_node*)
        /src/gcc/trunk/gcc/c/c-decl.c:4551
0x103a10a3 c_parser_declaration_or_fndef
        /src/gcc/trunk/gcc/c/c-parser.c:1965
0x1039fedf c_parser_external_declaration
        /src/gcc/trunk/gcc/c/c-parser.c:1551
0x1039f897 c_parser_translation_unit
        /src/gcc/trunk/gcc/c/c-parser.c:1429
0x103db91b c_parse_file()
        /src/gcc/trunk/gcc/c/c-parser.c:17843
0x10481e0b c_common_parse_file()
        /src/gcc/trunk/gcc/c-family/c-opts.c:1064
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.

Reply via email to