public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/95580] New: [11 Regression] ICE in tree_strip_any_location_wrapper at gcc/tree.h:4011 since r11-959-gb825a22890740f34
@ 2020-06-08 15:23 marxin at gcc dot gnu.org
  2020-06-08 15:23 ` [Bug tree-optimization/95580] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-08 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 95580
           Summary: [11 Regression] ICE in tree_strip_any_location_wrapper
                    at gcc/tree.h:4011 since r11-959-gb825a22890740f34
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: msebor at gcc dot gnu.org
  Target Milestone: ---

I see the following ICE:

$ cat ov.i
int main(int p1, char **p2) {
  long a = sizeof(void);
  if (__builtin_strcmp(p2[1], "")) {
    void *p = __builtin_malloc(4);
    ((char *)p)[a] ^= 1;
  }
  if (__builtin_strcmp(p2[1], "quarantine"))
    for (int i;; i++)
      ;
}

$ gcc ov.i -O1 -Wextra -fno-tree-dse -c
‘*(
during GIMPLE pass: uninit
In function ‘main’:
Segmentation fault
    1 | int main(int p1, char **p2) {
      |     ^~~~
0xdb19cf crash_signal
        /home/marxin/Programming/gcc/gcc/toplev.c:328
0x7ffff78b852f ???
       
/usr/src/debug/glibc-2.31-5.9.x86_64/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x105c38a location_wrapper_p(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.h:3999
0x105c38a tree_strip_any_location_wrapper(tree_node*)
        /home/marxin/Programming/gcc/gcc/tree.h:4011
0x105c38a integer_onep(tree_node const*)
        /home/marxin/Programming/gcc/gcc/tree.c:2573
0x8b5f22 c_pretty_printer::unary_expression(tree_node*)
        /home/marxin/Programming/gcc/gcc/c-family/c-pretty-print.c:1792
0x821f7d c_tree_printer
        /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:317
0x821f7d c_tree_printer
        /home/marxin/Programming/gcc/gcc/c/c-objc-common.c:254
0x18221ac pp_format(pretty_printer*, text_info*)
        /home/marxin/Programming/gcc/gcc/pretty-print.c:1475
0x18073be diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1159
0x1809928 diagnostic_impl
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1309
0x1809928 warning_at(unsigned int, int, char const*, ...)
        /home/marxin/Programming/gcc/gcc/diagnostic.c:1446
0xfb998c maybe_warn_operand
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:431
0xfbb666 warn_uninitialized_vars
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:640
0xfbfb72 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.c:2936
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] 7+ messages in thread

end of thread, other threads:[~2020-06-14 10:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-08 15:23 [Bug tree-optimization/95580] New: [11 Regression] ICE in tree_strip_any_location_wrapper at gcc/tree.h:4011 since r11-959-gb825a22890740f34 marxin at gcc dot gnu.org
2020-06-08 15:23 ` [Bug tree-optimization/95580] " marxin at gcc dot gnu.org
2020-06-08 17:25 ` [Bug c/95580] " jakub at gcc dot gnu.org
2020-06-08 17:31 ` jakub at gcc dot gnu.org
2020-06-09  6:40 ` cvs-commit at gcc dot gnu.org
2020-06-09  6:40 ` jakub at gcc dot gnu.org
2020-06-14 10:07 ` cvs-commit 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).