https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79893
Bug ID: 79893
Summary: ICE in s390_adjust_builtin_arglist in
gcc/config/s390/s390-c.c:679
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 40888
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40888&action=edit
test-case
Following test-case from LLVM ICEs:
$ s390x-linux-gnu-gcc builtins-systemz-zvector-error.c
...
/home/marxin/BIG/Programming/llvm-project/clang/test/CodeGen/builtins-systemz-zvector-error.c:235:3:
internal compiler error: in tree_to_uhwi, at tree.c:7344
0xe07242 tree_to_uhwi(tree_node const*)
.././../gcc/tree.c:7344
0x6d009e s390_adjust_builtin_arglist
.././../gcc/config/s390/s390-c.c:679
0x6d009e s390_resolve_overloaded_builtin(unsigned int, tree_node*, void*)
.././../gcc/config/s390/s390-c.c:987
0x6003c5 c_build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc,
vl_embed>*)
.././../gcc/c/c-typeck.c:3175
0x628029 c_parser_postfix_expression_after_primary
.././../gcc/c/c-parser.c:8425
0x615f90 c_parser_postfix_expression
.././../gcc/c/c-parser.c:8238
0x6218aa c_parser_unary_expression
.././../gcc/c/c-parser.c:7053
0x6226b7 c_parser_cast_expression
.././../gcc/c/c-parser.c:6882
0x6228d2 c_parser_binary_expression
.././../gcc/c/c-parser.c:6691
0x6235b5 c_parser_conditional_expression
.././../gcc/c/c-parser.c:6459
0x623d10 c_parser_expr_no_commas
.././../gcc/c/c-parser.c:6376
0x623d8a c_parser_expr_no_commas
.././../gcc/c/c-parser.c:6418
0x623f92 c_parser_expression
.././../gcc/c/c-parser.c:8576
0x626819 c_parser_expression_conv
.././../gcc/c/c-parser.c:8609
0x63a259 c_parser_statement_after_labels
.././../gcc/c/c-parser.c:5394
0x63c027 c_parser_compound_statement_nostart
.././../gcc/c/c-parser.c:4908
0x63c77e c_parser_compound_statement
.././../gcc/c/c-parser.c:4741
0x637bbc c_parser_declaration_or_fndef
.././../gcc/c/c-parser.c:2113
0x63fb8b c_parser_external_declaration
.././../gcc/c/c-parser.c:1469
0x6405e9 c_parser_translation_unit
.././../gcc/c/c-parser.c:1349