public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102009] New: ICE: in gimple_call_arg, at gimple.h:3272
@ 2021-08-22  4:16 cnsun at uwaterloo dot ca
  2021-08-22  4:22 ` [Bug tree-optimization/102009] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-08-22  4:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102009
           Summary: ICE: in gimple_call_arg, at gimple.h:3272
           Product: gcc
           Version: 12.0
            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.MRrxfWzUCx-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 20210821 (experimental) [master revision
:9e103620d:e92d0ff6b5e6d4b95c04fc3e326d40efeb136086] (GCC)

$ cat mutant.c
void *realloc();
ext2fs_resize_mem() { void *p = realloc(p); }

$ gcc-trunk  mutant.c
mutant.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | ext2fs_resize_mem() { void *p = realloc(p); }
      | ^~~~~~~~~~~~~~~~~
mutant.c: In function ‘ext2fs_resize_mem’:
mutant.c:2:33: warning: too few arguments to built-in function ‘realloc’
expecting 2 [-Wbuiltin-declaration-mismatch]
    2 | ext2fs_resize_mem() { void *p = realloc(p); }
      |                                 ^~~~~~~
mutant.c:1:7: note: declared here
    1 | void *realloc();
      |       ^~~~~~~
during GIMPLE pass: waccess
mutant.c:2:1: internal compiler error: in gimple_call_arg, at gimple.h:3272
    2 | ext2fs_resize_mem() { void *p = realloc(p); }
      | ^~~~~~~~~~~~~~~~~
0x6eab9c gimple_call_arg
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple.h:3272
0x6eab9c gimple_call_arg
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple.h:3270
0x6eab9c gimple_call_arg
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple.h:3280
0x6eab9c call_arg
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc:115
0x6eab9c check_alloca
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc:2492
0x6eab9c check_builtin
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc:2810
0x6eab9c check
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc:3285
0x6eab9c check
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc:3304
0x6eab9c execute
        /tmp/tmp.MRrxfWzUCx-gcc-builder/gcc/gcc/gimple-ssa-warn-access.cc: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] 8+ messages in thread

end of thread, other threads:[~2021-11-16 11:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-22  4:16 [Bug c/102009] New: ICE: in gimple_call_arg, at gimple.h:3272 cnsun at uwaterloo dot ca
2021-08-22  4:22 ` [Bug tree-optimization/102009] [12 Regression] " pinskia at gcc dot gnu.org
2021-08-22  4:27 ` pinskia at gcc dot gnu.org
2021-08-23  9:03 ` [Bug tree-optimization/102009] [12 Regression] ICE: in gimple_call_arg, at gimple.h:3272 by r12-2976 rguenth at gcc dot gnu.org
2021-11-15 16:41 ` jakub at gcc dot gnu.org
2021-11-15 16:58 ` msebor at gcc dot gnu.org
2021-11-16  9:19 ` cvs-commit at gcc dot gnu.org
2021-11-16 11:05 ` 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).