public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/31235]  New: Bootstrap comparison failure with -gstabs
@ 2007-03-16 22:43 feri1024 at t-email dot hu
  2007-03-16 22:50 ` [Bug bootstrap/31235] " joseph at codesourcery dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: feri1024 at t-email dot hu @ 2007-03-16 22:43 UTC (permalink / raw)
  To: gcc-bugs

Configured and built with:

../gcc-4.2-20070221/configure --enable-languages=c --enable-bootstrap
--disable-nls && make BOOT_CFLAGS="-gstabs"

The result is:

[...]
Comparing stages 2 and 3
warning: ./cc1-checksum.o differs
Bootstrap comparison failure!
./dbxout.o differs
./insn-emit.o differs
./varasm.o differs
[...]

I recompiled these sources with stage 2 and stage 3 compilers into assembly,
for dbxout.c I got the following:

--- dbxout-stage2.s     2007-03-16 21:27:01.000000000 +0100
+++ dbxout-stage3.s     2007-03-16 21:29:42.000000000 +0100
@@ -14245,12 +14245,12 @@
        leave
        ret
        .size   dbxout_block, .-dbxout_block
-       .stabs  "begin_label:(0,39)=ar(5,28);0;19;(0,2)",128,0,0,-52
+       .stabs  "begin_label:(0,30)",128,0,0,-52
        .stabn  192,0,0,.LFBB69-.LFBB69
        .stabs  "did_output:(0,1)",128,0,0,-32
        .stabs  "blocknum:(0,1)",128,0,0,-28
        .stabn  192,0,0,.LBB180-.LFBB69
-       .stabs  "buf:(0,39)",128,0,0,-72
+       .stabs  "buf:(0,30)",128,0,0,-72
        .stabs  "scope_start:(10,36)",128,0,0,-24
        .stabn  192,0,0,.LBB181-.LFBB69
        .stabs  "decl:(47,10)",128,0,0,-20

The other files differ in the same manner. It's very similar to
http://gcc.gnu.org/ml/gcc/2001-09/msg00882.html.


-- 
           Summary: Bootstrap comparison failure with -gstabs
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: feri1024 at t-email dot hu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31235


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

* [Bug bootstrap/31235] Bootstrap comparison failure with -gstabs
  2007-03-16 22:43 [Bug bootstrap/31235] New: Bootstrap comparison failure with -gstabs feri1024 at t-email dot hu
@ 2007-03-16 22:50 ` joseph at codesourcery dot com
  2007-03-31  1:23 ` wilson at gcc dot gnu dot org
  2007-03-31  1:24 ` wilson at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2007-03-16 22:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from joseph at codesourcery dot com  2007-03-16 22:50 -------
Subject: Re:   New: Bootstrap comparison failure with
 -gstabs

On Fri, 16 Mar 2007, feri1024 at t-email dot hu wrote:

> Configured and built with:
> 
> ../gcc-4.2-20070221/configure --enable-languages=c --enable-bootstrap
> --disable-nls && make BOOT_CFLAGS="-gstabs"
> 
> The result is:
> 
> [...]
> Comparing stages 2 and 3
> warning: ./cc1-checksum.o differs
> Bootstrap comparison failure!
> ./dbxout.o differs
> ./insn-emit.o differs
> ./varasm.o differs

The symptoms, including the need for a special BOOT_CFLAGS when 
configuring to trigger a bootstrap failure and the list of miscomparing 
files, seem just the same as the case I analysed and reported today as 
bug 31230.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31230


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31235


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

* [Bug bootstrap/31235] Bootstrap comparison failure with -gstabs
  2007-03-16 22:43 [Bug bootstrap/31235] New: Bootstrap comparison failure with -gstabs feri1024 at t-email dot hu
  2007-03-16 22:50 ` [Bug bootstrap/31235] " joseph at codesourcery dot com
@ 2007-03-31  1:23 ` wilson at gcc dot gnu dot org
  2007-03-31  1:24 ` wilson at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2007-03-31  1:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from wilson at gcc dot gnu dot org  2007-03-31 02:23 -------
I was able to reproduce this on an x86_64-linux machine following the
instructions.

Assuming this is the same conceptual problem as 31230, I tried the same patch,
in another file.  Just marking the array type domain type as used so it
wouldn't be garbage collected.  It was a little harder here since we didn't
have a convenient subroutine to call, so I had to move some code out of
dbxout_type into a new function, but effectively there is only a one line
actual code change here.

This survived a C-only BOOT_CFLAGS=-gstabs bootstrap, which seems to be good
evidence that it is working.

This patch is otherwise untested.  It needs a full bootstrap, gcc testsuite
run, and gdb testsuite run.


-- 

wilson at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-03-31 02:23:00
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31235


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

* [Bug bootstrap/31235] Bootstrap comparison failure with -gstabs
  2007-03-16 22:43 [Bug bootstrap/31235] New: Bootstrap comparison failure with -gstabs feri1024 at t-email dot hu
  2007-03-16 22:50 ` [Bug bootstrap/31235] " joseph at codesourcery dot com
  2007-03-31  1:23 ` wilson at gcc dot gnu dot org
@ 2007-03-31  1:24 ` wilson at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2007-03-31  1:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from wilson at gcc dot gnu dot org  2007-03-31 02:24 -------
Created an attachment (id=13305)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13305&action=view)
Mark array TYPE_DOMAIN as used to prevent garbage collection.

This has been tested with a C only BOOT_CFLAGS=-gstabs bootstrap.  It needs a
full bootstrap, gcc testsuite run, and gdb testsuite run.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31235


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

* [Bug bootstrap/31235] Bootstrap comparison failure with -gstabs
       [not found] <bug-31235-4@http.gcc.gnu.org/bugzilla/>
  2021-03-20 22:37 ` egallager at gcc dot gnu.org
@ 2022-12-01  1:31 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-01  1:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Stabs debugging support was removed r13-2361-g7e0db0cdf01e9c so closing as
won't fix.

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

* [Bug bootstrap/31235] Bootstrap comparison failure with -gstabs
       [not found] <bug-31235-4@http.gcc.gnu.org/bugzilla/>
@ 2021-03-20 22:37 ` egallager at gcc dot gnu.org
  2022-12-01  1:31 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-03-20 22:37 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=99457
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
Note that there has been discussion of deprecating stabs support recently:
https://gcc.gnu.org/pipermail/gcc-patches/2017-July/479552.html

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

end of thread, other threads:[~2022-12-01  1:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-16 22:43 [Bug bootstrap/31235] New: Bootstrap comparison failure with -gstabs feri1024 at t-email dot hu
2007-03-16 22:50 ` [Bug bootstrap/31235] " joseph at codesourcery dot com
2007-03-31  1:23 ` wilson at gcc dot gnu dot org
2007-03-31  1:24 ` wilson at gcc dot gnu dot org
     [not found] <bug-31235-4@http.gcc.gnu.org/bugzilla/>
2021-03-20 22:37 ` egallager at gcc dot gnu.org
2022-12-01  1:31 ` 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).