public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100732] New: ICE: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824
@ 2021-05-23 17:07 cnsun at uwaterloo dot ca
  2021-05-24  7:35 ` [Bug tree-optimization/100732] [11/12 Regression] ICE with -Wall: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 since r11-959-gb825a22890740f34 marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-05-23 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100732
           Summary: ICE: in ao_ref_init_from_ptr_and_range, at
                    tree-ssa-alias.c:824
           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.bSd6dDcXdE-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 20210523 (experimental) [master revision
:c92372ce3:15d30d2f20794d29ceabcfd57d230d6387284115] (GCC)

$ cat mutant.c
d4(i) { __builtin_sprintf(d4, "%s", i); }

$ gcc-trunk -O3 -Wall mutant.c
mutant.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    1 | d4(i) { __builtin_sprintf(d4, "%s", i); }
      | ^~
mutant.c: In function ‘d4’:
mutant.c:1:1: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
mutant.c:1:27: warning: passing argument 1 of ‘__builtin_sprintf’ from
incompatible pointer type [-Wincompatible-pointer-types]
    1 | d4(i) { __builtin_sprintf(d4, "%s", i); }
      |                           ^~
      |                           |
      |                           int (*)()
mutant.c:1:27: note: expected ‘char *’ but argument is of type ‘int (*)()’
mutant.c:1:33: warning: format ‘%s’ expects argument of type ‘char *’, but
argument 3 has type ‘int’ [-Wformat=]
    1 | d4(i) { __builtin_sprintf(d4, "%s", i); }
      |                                ~^   ~
      |                                 |   |
      |                                 |   int
      |                                 char *
      |                                %d
mutant.c:1:41: warning: control reaches end of non-void function
[-Wreturn-type]
    1 | d4(i) { __builtin_sprintf(d4, "%s", i); }
      |                                         ^
during GIMPLE pass: uninit
mutant.c:1:1: internal compiler error: in ao_ref_init_from_ptr_and_range, at
tree-ssa-alias.c:824
    1 | d4(i) { __builtin_sprintf(d4, "%s", i); }
      | ^~
0x7750a5 ao_ref_init_from_ptr_and_range
        /tmp/tmp.bSd6dDcXdE-gcc-builder/gcc/gcc/tree-ssa-alias.c:824
0x113b3b1 maybe_warn_pass_by_reference
        /tmp/tmp.bSd6dDcXdE-gcc-builder/gcc/gcc/tree-ssa-uninit.c:545
0x113b3b1 warn_uninitialized_vars
        /tmp/tmp.bSd6dDcXdE-gcc-builder/gcc/gcc/tree-ssa-uninit.c:659
0x114056a execute
        /tmp/tmp.bSd6dDcXdE-gcc-builder/gcc/gcc/tree-ssa-uninit.c:3030
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-06-17 20:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 17:07 [Bug c/100732] New: ICE: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 cnsun at uwaterloo dot ca
2021-05-24  7:35 ` [Bug tree-optimization/100732] [11/12 Regression] ICE with -Wall: in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.c:824 since r11-959-gb825a22890740f34 marxin at gcc dot gnu.org
2021-05-25  7:28 ` rguenth at gcc dot gnu.org
2021-05-26 23:35 ` msebor at gcc dot gnu.org
2021-06-04 16:50 ` cvs-commit at gcc dot gnu.org
2021-06-04 16:51 ` [Bug tree-optimization/100732] [11 Regression] ICE on sprintf %s with integer argument msebor at gcc dot gnu.org
2021-06-17 20:08 ` cvs-commit at gcc dot gnu.org
2021-06-17 20:10 ` msebor 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).