public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest,  at tree-sra.c:2376
@ 2021-07-26 16:45 gscfq@t-online.de
  2021-07-27  0:12 ` [Bug tree-optimization/101626] " pinskia at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gscfq@t-online.de @ 2021-07-26 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101626
           Summary: [12 Regression] ICE in verify_sra_access_forest, at
                    tree-sra.c:2376
           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: ---

Changed between 20210502 and 20210509.
(gcc configured with --enable-checking=yes)

Affects a bunch of testsuite files at -O1+,
e.g. pr36373*.c, pr39120.c, pr50444.c :


$ cat pr39120.c
struct X { int *p; } x;

struct X __attribute__((noinline))
foo(int *p) { struct X x; x.p = p; return x; }

void __attribute((noinline))
bar() { *x.p = 1; }

extern void abort (void);
int main()
{
  int i = 0;
  x = foo(&i);
  bar();
  if (i != 1)
    abort ();
  return 0;
}


$ gcc-12-20210725 -c pr39120.c -O2 -fsso-struct=big-endian
during GIMPLE pass: esra
pr39120.c: In function 'foo':
pr39120.c:18:1: internal compiler error: in verify_sra_access_forest, at
tree-sra.c:2376
   18 | }
      | ^
0xee585c verify_sra_access_forest(access*)
        ../../gcc/tree-sra.c:2376
0xee5af1 verify_all_sra_access_forests()
        ../../gcc/tree-sra.c:2420
0xee9d45 analyze_all_variable_accesses
        ../../gcc/tree-sra.c:3480
0xeea7c6 perform_intra_sra
        ../../gcc/tree-sra.c:4564

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
@ 2021-07-27  0:12 ` pinskia at gcc dot gnu.org
  2021-07-27 15:06 ` jamborm at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27  0:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |tree-optimization
                 CC|                            |pinskia at gcc dot gnu.org
   Target Milestone|---                         |12.0

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
  2021-07-27  0:12 ` [Bug tree-optimization/101626] " pinskia at gcc dot gnu.org
@ 2021-07-27 15:06 ` jamborm at gcc dot gnu.org
  2021-08-03 12:46 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 since r12-622-ge2bc5b6c04df8200 marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jamborm at gcc dot gnu.org @ 2021-07-27 15:06 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Jambor <jamborm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-07-27
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Jambor <jamborm at gcc dot gnu.org> ---
Confirmed.  I will have a look (although probably unfortunately only later in
August).

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 since r12-622-ge2bc5b6c04df8200
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
  2021-07-27  0:12 ` [Bug tree-optimization/101626] " pinskia at gcc dot gnu.org
  2021-07-27 15:06 ` jamborm at gcc dot gnu.org
@ 2021-08-03 12:46 ` marxin at gcc dot gnu.org
  2021-08-04 17:16 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 ebotcazou at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-03 12:46 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |verify_sra_access_forest,   |verify_sra_access_forest,
                   |at tree-sra.c:2376          |at tree-sra.c:2376 since
                   |                            |r12-622-ge2bc5b6c04df8200

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-622-ge2bc5b6c04df8200.

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2021-08-03 12:46 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 since r12-622-ge2bc5b6c04df8200 marxin at gcc dot gnu.org
@ 2021-08-04 17:16 ` ebotcazou at gcc dot gnu.org
  2021-08-05  8:25 ` cvs-commit at gcc dot gnu.org
  2021-08-05  8:27 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-08-04 17:16 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |ebotcazou at gcc dot gnu.org
            Summary|[12 Regression] ICE in      |[12 Regression] ICE in
                   |verify_sra_access_forest,   |verify_sra_access_forest,
                   |at tree-sra.c:2376 since    |at tree-sra.c:2376
                   |r12-622-ge2bc5b6c04df8200   |
                 CC|ebotcazou at gcc dot gnu.org       |
             Status|NEW                         |ASSIGNED

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Fixing.

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2021-08-04 17:16 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 ebotcazou at gcc dot gnu.org
@ 2021-08-05  8:25 ` cvs-commit at gcc dot gnu.org
  2021-08-05  8:27 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-08-05  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:

https://gcc.gnu.org/g:4e3129b0caceec008a940aa5eada253cd0f0b3ec

commit r12-2755-g4e3129b0caceec008a940aa5eada253cd0f0b3ec
Author: Eric Botcazou <ebotcazou@gcc.gnu.org>
Date:   Thu Aug 5 10:21:30 2021 +0200

    Fix oversight in handling of reverse SSO in SRA pass

    The scalar storage order does not apply to pointer and vector components.

    gcc/
            PR tree-optimization/101626
            * tree-sra.c (propagate_subaccesses_from_rhs): Do not set the
            reverse scalar storage order on a pointer or vector component.

    gcc/testsuite/
            * gcc.dg/sso-15.c: New test.

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

* [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376
  2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
                   ` (4 preceding siblings ...)
  2021-08-05  8:25 ` cvs-commit at gcc dot gnu.org
@ 2021-08-05  8:27 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-08-05  8:27 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks for reporting the problem.

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

end of thread, other threads:[~2021-08-05  8:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 16:45 [Bug c/101626] New: [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 gscfq@t-online.de
2021-07-27  0:12 ` [Bug tree-optimization/101626] " pinskia at gcc dot gnu.org
2021-07-27 15:06 ` jamborm at gcc dot gnu.org
2021-08-03 12:46 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 since r12-622-ge2bc5b6c04df8200 marxin at gcc dot gnu.org
2021-08-04 17:16 ` [Bug tree-optimization/101626] [12 Regression] ICE in verify_sra_access_forest, at tree-sra.c:2376 ebotcazou at gcc dot gnu.org
2021-08-05  8:25 ` cvs-commit at gcc dot gnu.org
2021-08-05  8:27 ` ebotcazou 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).