public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed
@ 2022-10-18 17:43 gscfq@t-online.de
  2022-10-18 17:53 ` [Bug c/107306] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2022-10-18 17:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107306
           Summary: [12/13 Regression] ICE: verify_gimple failed
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r12 and file gcc.target/i386/pr101636.c :


$ gcc-13-20221016 -c pr101636.c -fgimple
pr101636.c: In function 'bar':
pr101636.c:93:1: error: incorrect type of vector 'constructor' elements
   93 | }
      | ^
{_150, _149, _148, _147, _146, _145, _144, _143, _142, _141, _140, _139, _138,
_137, _136, _135}

_151 = {_150, _149, _148, _147, _146, _145, _144, _143, _142, _141, _140, _139,
_138, _137, _136, _135};
during IPA pass: *free_lang_data
pr101636.c:93:1: internal compiler error: verify_gimple failed
0xf31434 verify_gimple_in_cfg(function*, bool)
        ../../gcc/tree-cfg.cc:5649
0xdce16e execute_function_todo
        ../../gcc/passes.cc:2091
0xdceb8d do_per_function
        ../../gcc/passes.cc:1701
0xdcebf2 execute_todo
        ../../gcc/passes.cc:2145

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

* [Bug c/107306] [12/13 Regression] ICE: verify_gimple failed
  2022-10-18 17:43 [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed gscfq@t-online.de
@ 2022-10-18 17:53 ` pinskia at gcc dot gnu.org
  2022-10-19  7:18 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-18 17:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect this is invalid gimple without the options supplied in the dg
command.

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

* [Bug c/107306] [12/13 Regression] ICE: verify_gimple failed
  2022-10-18 17:43 [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed gscfq@t-online.de
  2022-10-18 17:53 ` [Bug c/107306] " pinskia at gcc dot gnu.org
@ 2022-10-19  7:18 ` rguenth at gcc dot gnu.org
  2022-10-20  9:29 ` cvs-commit at gcc dot gnu.org
  2022-10-20  9:31 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-19  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Target Milestone|---                         |12.3
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-10-19
             Blocks|                            |101057

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
See the other PR.  (please avoid fuzzing with -fgimple)

Also all GIMPLE IL "errors" will end up flagged as internal compiler error.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101057
[Bug 101057] [gimplefe] GIMPLE frontend issues

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

* [Bug c/107306] [12/13 Regression] ICE: verify_gimple failed
  2022-10-18 17:43 [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed gscfq@t-online.de
  2022-10-18 17:53 ` [Bug c/107306] " pinskia at gcc dot gnu.org
  2022-10-19  7:18 ` rguenth at gcc dot gnu.org
@ 2022-10-20  9:29 ` cvs-commit at gcc dot gnu.org
  2022-10-20  9:31 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-20  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:8e2b5cf7cde999582d1b8fff021faa487c8e34b0

commit r13-3397-g8e2b5cf7cde999582d1b8fff021faa487c8e34b0
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Oct 19 14:12:11 2022 +0200

    c/107305 - avoid ICEing with invalid GIMPLE input to the GIMPLE FE

    The GIMPLE FE was designed to defer semantic error checking to the
    GIMPLE IL verifier.  But that can end up causing spurious ICEs
    earlier and in fact it will report an internal error.  The following
    tries to improve the situation by explicitely calling into the
    verifier from the parser and intructing it to not ICE but instead
    zap the parsed body after an error is discovered.

            PR c/107305
            PR c/107306
    gcc/c/
            * gimple-parser.cc (c_parser_parse_gimple_body): Verify
            the parsed IL and zap the body on error.

    gcc/
            * tree-cfg.h (verify_gimple_in_seq): Add parameter to
            indicate whether to emit an ICE.  Add return value.
            (verify_gimple_in_cfg): Likewise.
            * tree-cfg.cc (verify_gimple_in_seq): Likewise.
            (verify_gimple_in_cfg): Likewise.

    gcc/testsuite/
            * gcc.dg/gimplefe-error-15.c: New testcase.

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

* [Bug c/107306] [12/13 Regression] ICE: verify_gimple failed
  2022-10-18 17:43 [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2022-10-20  9:29 ` cvs-commit at gcc dot gnu.org
@ 2022-10-20  9:31 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-20  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|12.3                        |13.0
      Known to work|                            |13.0
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed by reporting it as error only.  Not going to backport, -fgimple is for
dev only.

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

end of thread, other threads:[~2022-10-20  9:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18 17:43 [Bug c/107306] New: [12/13 Regression] ICE: verify_gimple failed gscfq@t-online.de
2022-10-18 17:53 ` [Bug c/107306] " pinskia at gcc dot gnu.org
2022-10-19  7:18 ` rguenth at gcc dot gnu.org
2022-10-20  9:29 ` cvs-commit at gcc dot gnu.org
2022-10-20  9:31 ` 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).