public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/33473]  New: GCC does not correctly generate dependencies correctly for precompiled headers
@ 2007-09-18 13:33 rswan at signetic dot ca
  2007-09-18 13:38 ` [Bug preprocessor/33473] " rswan at signetic dot ca
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rswan at signetic dot ca @ 2007-09-18 13:33 UTC (permalink / raw)
  To: gcc-bugs

Hello;

GCC does not correctly generate dependencies correctly with g++ -MD when
precompiled headers are used. I've attached an example which generates main.d
while compiling main.cpp. main.cpp includes include/bink.h. When the include
path contains the precompiled bink.h.gch (only), main.d does not contain any
dependency on bink.h.gch.

When the compiler includes bink.h, main.d includes the dependency.

I get the same behavior with version 3.4.6 and 4.1.2

> gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)


-- 
           Summary: GCC does not correctly generate dependencies correctly
                    for precompiled headers
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rswan at signetic dot ca


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


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

* [Bug preprocessor/33473] GCC does not correctly generate dependencies correctly for precompiled headers
  2007-09-18 13:33 [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers rswan at signetic dot ca
@ 2007-09-18 13:38 ` rswan at signetic dot ca
  2007-09-20  0:46 ` [Bug preprocessor/33473] GCC does not correctly generate dependencies " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rswan at signetic dot ca @ 2007-09-18 13:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rswan at signetic dot ca  2007-09-18 13:38 -------
Created an attachment (id=14221)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14221&action=view)
testcase archive

Extract archive. Invoke make within gch_bug directory. Bug seen in generated
main.d dependency output. Optionally edit Makefile (see comments within) to
demonstrate correct behaviour when not using precompiled headers.


-- 


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


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

* [Bug preprocessor/33473] GCC does not correctly generate dependencies for precompiled headers
  2007-09-18 13:33 [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers rswan at signetic dot ca
  2007-09-18 13:38 ` [Bug preprocessor/33473] " rswan at signetic dot ca
@ 2007-09-20  0:46 ` pinskia at gcc dot gnu dot org
  2007-09-20  1:11 ` rswan at signetic dot ca
  2007-11-28 19:07 ` tromey at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-09-20  0:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-09-20 00:46 -------
I think this is a dup of bug 14933.


-- 


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


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

* [Bug preprocessor/33473] GCC does not correctly generate dependencies for precompiled headers
  2007-09-18 13:33 [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers rswan at signetic dot ca
  2007-09-18 13:38 ` [Bug preprocessor/33473] " rswan at signetic dot ca
  2007-09-20  0:46 ` [Bug preprocessor/33473] GCC does not correctly generate dependencies " pinskia at gcc dot gnu dot org
@ 2007-09-20  1:11 ` rswan at signetic dot ca
  2007-11-28 19:07 ` tromey at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rswan at signetic dot ca @ 2007-09-20  1:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rswan at signetic dot ca  2007-09-20 01:10 -------
(In reply to comment #2)
> I think this is a dup of bug 14933.
> 
I agree. Sorry. Should I mark it as a duplicate?


-- 


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


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

* [Bug preprocessor/33473] GCC does not correctly generate dependencies for precompiled headers
  2007-09-18 13:33 [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers rswan at signetic dot ca
                   ` (2 preceding siblings ...)
  2007-09-20  1:11 ` rswan at signetic dot ca
@ 2007-11-28 19:07 ` tromey at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-11-28 19:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from tromey at gcc dot gnu dot org  2007-11-28 19:07 -------


*** This bug has been marked as a duplicate of 14933 ***


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-11-28 19:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-18 13:33 [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers rswan at signetic dot ca
2007-09-18 13:38 ` [Bug preprocessor/33473] " rswan at signetic dot ca
2007-09-20  0:46 ` [Bug preprocessor/33473] GCC does not correctly generate dependencies " pinskia at gcc dot gnu dot org
2007-09-20  1:11 ` rswan at signetic dot ca
2007-11-28 19:07 ` 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).