public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101035] New: ICE: in wide_int_to_tree_1, at tree.c:1751
@ 2021-06-11 18:12 cnsun at uwaterloo dot ca
  2021-11-28  0:04 ` [Bug c/101035] " pinskia at gcc dot gnu.org
  2021-11-28  1:02 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-06-11 18:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101035
           Summary: ICE: in wide_int_to_tree_1, at tree.c:1751
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210610 (experimental) [master revision
:697cc07ce:edec2660ff4890ecf8cc191f7c92cf527de51fe2] (GCC)

$ cat mutant.c
__GIMPLE
foo() { t1_1 = __builtin_abs->next; }

$ gcc-trunk -fgimple mutant.c
mutant.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | foo() { t1_1 = __builtin_abs->next; }
      | ^~~
mutant.c: In function ‘foo’:
mutant.c:2:14: error: base variable or SSA name undeclared before ‘=’ token
    2 | foo() { t1_1 = __builtin_abs->next; }
      |              ^
mutant.c:2:14: internal compiler error: in wide_int_to_tree_1, at tree.c:1751
0x7ce2c8 wide_int_to_tree_1
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/tree.c:1751
0x1217cd0 wide_int_to_tree(tree_node*, poly_int<1u,
generic_wide_int<wide_int_ref_storage<false, true> > > const&)
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/tree.c:1863
0x1217cd0 build_int_cst(tree_node*, poly_int<1u, long>)
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/tree.c:1503
0x1219918 build_simple_mem_ref_loc(unsigned int, tree_node*)
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/tree.c:5174
0x95a5db c_parser_gimple_postfix_expression_after_primary
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:1834
0x95a5db c_parser_gimple_postfix_expression
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:1712
0x95b374 c_parser_gimple_binary_expression
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:922
0x95c66f c_parser_gimple_statement
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:859
0x95c66f c_parser_gimple_compound_statement
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:650
0x95c66f c_parser_gimple_compound_statement
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:381
0x95ea87 c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/gimple-parser.c:253
0x94db47 c_parser_declaration_or_fndef
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/c-parser.c:2533
0x955423 c_parser_external_declaration
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/c-parser.c:1777
0x955e89 c_parser_translation_unit
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/c-parser.c:1650
0x955e89 c_parse_file()
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c/c-parser.c:22104
0x9b7245 c_common_parse_file()
        /tmp/tmp.GWysxNSsSH-gcc-builder/gcc/gcc/c-family/c-opts.c:1219
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] 3+ messages in thread

* [Bug c/101035] ICE: in wide_int_to_tree_1, at tree.c:1751
  2021-06-11 18:12 [Bug c/101035] New: ICE: in wide_int_to_tree_1, at tree.c:1751 cnsun at uwaterloo dot ca
@ 2021-11-28  0:04 ` pinskia at gcc dot gnu.org
  2021-11-28  1:02 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-28  0:04 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks fixed on the trunk.

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

* [Bug c/101035] ICE: in wide_int_to_tree_1, at tree.c:1751
  2021-06-11 18:12 [Bug c/101035] New: ICE: in wide_int_to_tree_1, at tree.c:1751 cnsun at uwaterloo dot ca
  2021-11-28  0:04 ` [Bug c/101035] " pinskia at gcc dot gnu.org
@ 2021-11-28  1:02 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-28  1:02 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needs-bisection             |
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=102763

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r12-4431 which fixed PR 102763.

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

end of thread, other threads:[~2021-11-28  1:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11 18:12 [Bug c/101035] New: ICE: in wide_int_to_tree_1, at tree.c:1751 cnsun at uwaterloo dot ca
2021-11-28  0:04 ` [Bug c/101035] " pinskia at gcc dot gnu.org
2021-11-28  1:02 ` pinskia 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).