public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
@ 2022-03-07 18:01 gscfq@t-online.de
  2022-03-07 18:03 ` [Bug tree-optimization/104825] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2022-03-07 18:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104825
           Summary: [12 Regression] ICE in ao_ref_init_from_ptr_and_range,
                    at tree-ssa-alias.cc:840
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20211121 and 20211128, at -O1+ :


$ cat z1.c
#include <string.h>
int foo (fmt)
char* fmt;
{
  return (strchr (fmt, '*') != 0
          || strchr (fmt, 'n') != 0);
}
void bar ()
{
  if ( foo (1) )
    __builtin_abort ();
}


$ gcc-12-20220306 -c z1.c
$
$ gcc-12-20220306 -c z1.c -O2
during GIMPLE pass: fre
z1.c: In function 'bar':
z1.c:12:1: internal compiler error: in ao_ref_init_from_ptr_and_range, at
tree-ssa-alias.cc:840
   12 | }
      | ^
0xcfa3f7 ao_ref_init_from_ptr_and_range(ao_ref*, tree_node*, bool, poly_int<1u,
long>, poly_int<1u, long>, poly_int<1u, long>)
        ../../gcc/tree-ssa-alias.cc:840
0xa0de1b modref_access_node::get_ao_ref(gcall const*, ao_ref*) const
        ../../gcc/ipa-modref-tree.cc:688
0xdc6283 visit_reference_op_call
        ../../gcc/tree-ssa-sccvn.cc:5143
0xdcfd58 visit_stmt
        ../../gcc/tree-ssa-sccvn.cc:5846
0xdd0aeb process_bb
        ../../gcc/tree-ssa-sccvn.cc:7481
0xdd25dd do_rpo_vn(function*, edge_def*, bitmap_head*, bool, bool,
vn_lookup_kind)
        ../../gcc/tree-ssa-sccvn.cc:7966
0xdd2f3b execute
        ../../gcc/tree-ssa-sccvn.cc:8232

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
@ 2022-03-07 18:03 ` pinskia at gcc dot gnu.org
  2022-03-08  7:19 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-03-07 18:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
  2022-03-07 18:03 ` [Bug tree-optimization/104825] " pinskia at gcc dot gnu.org
@ 2022-03-08  7:19 ` rguenth at gcc dot gnu.org
  2022-03-08  7:39 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08  7:19 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2022-03-08
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
  2022-03-07 18:03 ` [Bug tree-optimization/104825] " pinskia at gcc dot gnu.org
  2022-03-08  7:19 ` rguenth at gcc dot gnu.org
@ 2022-03-08  7:39 ` rguenth at gcc dot gnu.org
  2022-03-08  8:56 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08  7:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Similar to PR103987.  Testing patch.

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-03-08  7:39 ` rguenth at gcc dot gnu.org
@ 2022-03-08  8:56 ` cvs-commit at gcc dot gnu.org
  2022-03-08  9:18 ` rguenth at gcc dot gnu.org
  2022-04-07  8:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-03-08  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:dc46350d44c2949ec38deb028960f8040f8e8e5d

commit r12-7531-gdc46350d44c2949ec38deb028960f8040f8e8e5d
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Mar 8 08:42:58 2022 +0100

    tree-optimization/104825 - guard modref query

    The following makes sure to guard the modref query in VN on a
    pointer typed argument.

    2022-03-08  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/104825
            * tree-ssa-sccvn.cc (visit_reference_op_call): Properly
            guard modref get_ao_ref on a pointer typed argument.

            * gcc.dg/torture/pr104825.c: New testcase.

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2022-03-08  8:56 ` cvs-commit at gcc dot gnu.org
@ 2022-03-08  9:18 ` rguenth at gcc dot gnu.org
  2022-04-07  8:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08  9:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

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

* [Bug tree-optimization/104825] [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840
  2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2022-03-08  9:18 ` rguenth at gcc dot gnu.org
@ 2022-04-07  8:13 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-07  8:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104825
Bug 104825 depends on bug 105185, which changed state.

Bug 105185 Summary: [12 Regression] ICE in visit_reference_op_call, at tree-ssa-sccvn.cc:5144 since r12-7531-gdc46350d44c2949e
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105185

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

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

end of thread, other threads:[~2022-04-07  8:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 18:01 [Bug c/104825] New: [12 Regression] ICE in ao_ref_init_from_ptr_and_range, at tree-ssa-alias.cc:840 gscfq@t-online.de
2022-03-07 18:03 ` [Bug tree-optimization/104825] " pinskia at gcc dot gnu.org
2022-03-08  7:19 ` rguenth at gcc dot gnu.org
2022-03-08  7:39 ` rguenth at gcc dot gnu.org
2022-03-08  8:56 ` cvs-commit at gcc dot gnu.org
2022-03-08  9:18 ` rguenth at gcc dot gnu.org
2022-04-07  8:13 ` rguenth 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).