public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/30246]  New: ggdb3 information lost using temporary preprocessed file ?
@ 2006-12-18 10:01 sb7206 at gmail dot com
  2006-12-18 10:09 ` [Bug driver/30246] -ggdb3 " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: sb7206 at gmail dot com @ 2006-12-18 10:01 UTC (permalink / raw)
  To: gcc-bugs

Hello,

Objects generated using '-ggdb3' are different if the compilation process is
split in 2 steps (preprocessing and then compilation) or not.

The issue can be reproduced for the following 'main.c' code using the commands
'gcc -ggdb3 -c main.c' and 'gcc -ggdb3 -c main.c -E > main.i; gcc
-ggdb3 -c main.i'.

The resulting sizes are respectively 15400 and 3992 bytes. Using
'-ggdb2' the generated objects are the same. I guess some debugging
information is lost when the compilation process is split into two steps but as
 anyway the macro information generated using 'ggdb3' is not usable with gcc
3.4.5 I did not investigated.
Does anybody know if this is the expected behavior or if it is a bug?
Does a workaround exist?

Thanks in advance and best regards,
Serge

PS: we use gcc 3.4.5 on a Linux/Suse Linux Enterprise Server 9 but the
behavior is the same on Solaris 10 (same gcc version).

The main.c code:
#include <stdio.h>
int main(int argc, char **argv)
{
 printf("Hello\n");
 return 0;
}


-- 
           Summary: ggdb3 information lost using temporary preprocessed file
                    ?
           Product: gcc
           Version: 3.4.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sb7206 at gmail dot com


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


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

* [Bug driver/30246] -ggdb3 information lost using temporary preprocessed file ?
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
@ 2006-12-18 10:09 ` pinskia at gcc dot gnu dot org
  2006-12-18 11:16 ` sb7206 at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-18 10:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-12-18 10:09 -------
What is happening is that -ggdb3 does not enable -dD for the preprocessor.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|preprocessor                |driver
            Summary|ggdb3 information lost using|-ggdb3 information lost
                   |temporary preprocessed file |using temporary preprocessed
                   |?                           |file ?


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


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

* [Bug driver/30246] -ggdb3 information lost using temporary preprocessed file ?
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
  2006-12-18 10:09 ` [Bug driver/30246] -ggdb3 " pinskia at gcc dot gnu dot org
@ 2006-12-18 11:16 ` sb7206 at gmail dot com
  2007-01-07  0:49 ` [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: sb7206 at gmail dot com @ 2006-12-18 11:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from sb7206 at gmail dot com  2006-12-18 11:16 -------
The workaround is ok for me (but is it the expected behavior?).

Best regards,
Serge


-- 


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


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

* [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
  2006-12-18 10:09 ` [Bug driver/30246] -ggdb3 " pinskia at gcc dot gnu dot org
  2006-12-18 11:16 ` sb7206 at gmail dot com
@ 2007-01-07  0:49 ` pinskia at gcc dot gnu dot org
  2007-01-20  6:23 ` tromey at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-07  0:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-01-07 00:49 -------
Confirmed as of today, this is not a regression, a work around is to do -ggdb
-g3.


-- 

pinskia 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-01-07 00:49:47
               date|                            |
            Summary|-ggdb3 information lost     |-ggdb3 does not cause -dD to
                   |using temporary preprocessed|be passed to cc1 for
                   |file ?                      |preprocessing


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


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

* [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
                   ` (2 preceding siblings ...)
  2007-01-07  0:49 ` [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing pinskia at gcc dot gnu dot org
@ 2007-01-20  6:23 ` tromey at gcc dot gnu dot org
  2007-01-22  2:45 ` patchapp at dberlin dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-20  6:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tromey at gcc dot gnu dot org  2007-01-20 06:23 -------
I'm testing a patch to add -dD when -ggdb3 is passed.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-01-07 00:49:47         |2007-01-20 06:23:33
               date|                            |


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


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

* [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
                   ` (3 preceding siblings ...)
  2007-01-20  6:23 ` tromey at gcc dot gnu dot org
@ 2007-01-22  2:45 ` patchapp at dberlin dot org
  2007-02-03 19:35 ` tromey at gcc dot gnu dot org
  2007-02-03 19:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: patchapp at dberlin dot org @ 2007-01-22  2:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from patchapp at dberlin dot org  2007-01-22 02:45 -------
Subject: Bug number PR driver/30246

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01757.html


-- 


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


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

* [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
                   ` (4 preceding siblings ...)
  2007-01-22  2:45 ` patchapp at dberlin dot org
@ 2007-02-03 19:35 ` tromey at gcc dot gnu dot org
  2007-02-03 19:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-02-03 19:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from tromey at gcc dot gnu dot org  2007-02-03 19:35 -------
Subject: Bug 30246

Author: tromey
Date: Sat Feb  3 19:35:06 2007
New Revision: 121549

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121549
Log:
        PR driver/30246
        * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
        -gcoff3, -gxcoff3, -gvms3 implies -dD.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc.c


-- 


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


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

* [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing
  2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
                   ` (5 preceding siblings ...)
  2007-02-03 19:35 ` tromey at gcc dot gnu dot org
@ 2007-02-03 19:38 ` tromey at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-02-03 19:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from tromey at gcc dot gnu dot org  2007-02-03 19:38 -------
Fix checked in.


-- 

tromey at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2007-02-03 19:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-18 10:01 [Bug preprocessor/30246] New: ggdb3 information lost using temporary preprocessed file ? sb7206 at gmail dot com
2006-12-18 10:09 ` [Bug driver/30246] -ggdb3 " pinskia at gcc dot gnu dot org
2006-12-18 11:16 ` sb7206 at gmail dot com
2007-01-07  0:49 ` [Bug driver/30246] -ggdb3 does not cause -dD to be passed to cc1 for preprocessing pinskia at gcc dot gnu dot org
2007-01-20  6:23 ` tromey at gcc dot gnu dot org
2007-01-22  2:45 ` patchapp at dberlin dot org
2007-02-03 19:35 ` tromey at gcc dot gnu dot org
2007-02-03 19:38 ` tromey at gcc dot gnu dot 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).