public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
@ 2021-10-04  7:03 marxin at gcc dot gnu.org
  2021-10-04  7:03 ` [Bug tree-optimization/102585] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102585
           Summary: [12 Regression] ICE in final_scan_insn_1, at
                    final.c:2629 since r12-4038-g6de9f0c13b27c343
           Product: gcc
           Version: 12.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
  Target Milestone: ---

The following fails:

$ cat uninit.c
#pragma GCC optimize 0
void d_demangle_callback_Og() { int c = 0; }

$ gcc uninit.c -fvar-tracking-assignments-toggle -fno-var-tracking -c
during RTL pass: final
uninit.c: In function ‘d_demangle_callback_Og’:
uninit.c:2:44: internal compiler error: in final_scan_insn_1, at final.c:2629
    2 | void d_demangle_callback_Og() { int c = 0; }
      |                                            ^
0x6da26f final_scan_insn_1
        /home/marxin/Programming/gcc/gcc/final.c:2629
0xb7216f final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        /home/marxin/Programming/gcc/gcc/final.c:2940
0xb72266 final_1
        /home/marxin/Programming/gcc/gcc/final.c:1997
0xb72ed5 rest_of_handle_final
        /home/marxin/Programming/gcc/gcc/final.c:4285
0xb72ed5 execute
        /home/marxin/Programming/gcc/gcc/final.c:4363
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

* [Bug tree-optimization/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
@ 2021-10-04  7:03 ` marxin at gcc dot gnu.org
  2021-10-04  8:06 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04  7:03 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |11.2.0
      Known to fail|                            |12.0
   Last reconfirmed|                            |2021-10-04
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
   Target Milestone|---                         |12.0
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Mine.

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

* [Bug tree-optimization/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
  2021-10-04  7:03 ` [Bug tree-optimization/102585] " marxin at gcc dot gnu.org
@ 2021-10-04  8:06 ` rguenth at gcc dot gnu.org
  2021-10-04  8:35 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-04  8:06 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

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

* [Bug tree-optimization/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
  2021-10-04  7:03 ` [Bug tree-optimization/102585] " marxin at gcc dot gnu.org
  2021-10-04  8:06 ` rguenth at gcc dot gnu.org
@ 2021-10-04  8:35 ` marxin at gcc dot gnu.org
  2021-10-04  8:36 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04  8:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Happens also with -fno-var-tracking-assignments -fno-var-tracking -c.

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

* [Bug tree-optimization/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-10-04  8:35 ` marxin at gcc dot gnu.org
@ 2021-10-04  8:36 ` marxin at gcc dot gnu.org
  2021-10-21 13:20 ` [Bug debug/102585] " cvs-commit at gcc dot gnu.org
  2021-10-21 13:21 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-04  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #2)
> Happens also with -fno-var-tracking-assignments -fno-var-tracking -c.

Err. With -fvar-tracking-assignments -fno-var-tracking.

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

* [Bug debug/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-10-04  8:36 ` marxin at gcc dot gnu.org
@ 2021-10-21 13:20 ` cvs-commit at gcc dot gnu.org
  2021-10-21 13:21 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-21 13:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

commit r12-4608-gb4702276615ff8d43bc910e7a54fdd850ad8d461
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Oct 14 14:57:18 2021 +0200

    options: Fix variable tracking option processing.

            PR debug/102585
            PR bootstrap/102766

    gcc/ChangeLog:

            * opts.c (finish_options): Process flag_var_tracking* options
            here as they can be adjusted by optimize attribute.
            Process also flag_syntax_only and flag_gtoggle.
            * toplev.c (process_options): Remove it here.
            * common.opt: Make debug_nonbind_markers_p as PerFunction
            attribute as it depends on optimization level.

    gcc/testsuite/ChangeLog:

            * gcc.dg/pr102585.c: New test.

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

* [Bug debug/102585] [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343
  2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-10-21 13:20 ` [Bug debug/102585] " cvs-commit at gcc dot gnu.org
@ 2021-10-21 13:21 ` marxin at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-21 13:21 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed now.

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

end of thread, other threads:[~2021-10-21 13:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-04  7:03 [Bug tree-optimization/102585] New: [12 Regression] ICE in final_scan_insn_1, at final.c:2629 since r12-4038-g6de9f0c13b27c343 marxin at gcc dot gnu.org
2021-10-04  7:03 ` [Bug tree-optimization/102585] " marxin at gcc dot gnu.org
2021-10-04  8:06 ` rguenth at gcc dot gnu.org
2021-10-04  8:35 ` marxin at gcc dot gnu.org
2021-10-04  8:36 ` marxin at gcc dot gnu.org
2021-10-21 13:20 ` [Bug debug/102585] " cvs-commit at gcc dot gnu.org
2021-10-21 13:21 ` marxin 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).