public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/67665] New: ICE when passing two empty files directly to cc1 with -g
@ 2015-09-21  9:21 jgreenhalgh at gcc dot gnu.org
  2021-12-26  6:47 ` [Bug c/67665] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jgreenhalgh at gcc dot gnu.org @ 2015-09-21  9:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67665
           Summary: ICE when passing two empty files directly to cc1 with
                    -g
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jgreenhalgh at gcc dot gnu.org
  Target Milestone: ---

I typoed inputs to a script, and ended up passing the same empty file twice to
cc1, that gave me an ICE with many recent versions of trunk (at least the last
month). There is no issue when doing the same through the driver, so this
really is a bit of an edge case...

To reproduce:

  touch foo.c
  .../build-gcc/gcc/cc1 foo.c foo.c -g

foo.c:1:0: internal compiler error: in
dwarf2out_register_main_translation_unit, at dwarf2out.c:22590
0x79a24e dwarf2out_register_main_translation_unit
        .../gcc-src/gcc/dwarf2out.c:22589
0x5ca751 pop_scope()
        .../gcc-src/gcc/c/c-decl.c:1193
0x5cad1f pop_file_scope()
        .../gcc-src/gcc/c/c-decl.c:1438
0x682ab7 c_common_parse_file()
        .../gcc-src/gcc/c-family/c-opts.c:1059
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c/67665] ICE when passing two empty files directly to cc1 with -g
  2015-09-21  9:21 [Bug debug/67665] New: ICE when passing two empty files directly to cc1 with -g jgreenhalgh at gcc dot gnu.org
@ 2021-12-26  6:47 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-26  6:47 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 8 by r8-150.

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

end of thread, other threads:[~2021-12-26  6:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-21  9:21 [Bug debug/67665] New: ICE when passing two empty files directly to cc1 with -g jgreenhalgh at gcc dot gnu.org
2021-12-26  6:47 ` [Bug c/67665] " pinskia 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).