public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/36649]  New: [4.3 Regression] -H option doesn't work as expected
@ 2008-06-27 10:29 rbuergel at web dot de
  2008-07-04 21:53 ` [Bug pch/36649] [4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: rbuergel at web dot de @ 2008-06-27 10:29 UTC (permalink / raw)
  To: gcc-bugs

touch err.h
echo "include \"err.h\" >> err.c
echo "include \<stdio.h\> >> err.c
echo "int main() {}" >> err.c



gcc -H err.h
gcc -H err.c prints:
! x9.h.gch
 x9.c
. /usr/include/stdio.h
[more headers...]
.. /usr/include/bits/sys_errlist.h
Multiple include guards may be useful for:
/usr/include/bits/stdio_lim.h


gcc err.h
gcc -H err.c prints:
! x9.h.gch
Multiple include guards may be useful for:
/usr/include/bits/stdio_lim.h


gcc -H err.h
gcc err.c prints:
 x9.c
[more headers...]
.. /usr/include/bits/sys_errlist.h
[no warning about possibly missing include guard]


Leading to the following conclusion: the option, whether the header
dependencies should be displayed or not is included in the precompiled header,
so processing a pch can turn it either on or off. I don't think, that this
behaviour is intended.

gcc-4.2.4 gets it imho right, printing all dependencies when -H is used, no
matter, if the pch was compiled -H or not.

If this kind of behaviour is desired, could someone point out the reason,
please?


-- 
           Summary: [4.3 Regression] -H option doesn't work as expected
           Product: gcc
           Version: 4.2.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: pch
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rbuergel at web dot de


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


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

end of thread, other threads:[~2008-07-31 19:17 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-27 10:29 [Bug pch/36649] New: [4.3 Regression] -H option doesn't work as expected rbuergel at web dot de
2008-07-04 21:53 ` [Bug pch/36649] [4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-07-18 16:56 ` [Bug preprocessor/36649] " rguenth at gcc dot gnu dot org
2008-07-29 20:47 ` jakub at gcc dot gnu dot org
2008-07-29 21:27 ` tromey at gcc dot gnu dot org
2008-07-29 22:36 ` jakub at gcc dot gnu dot org
2008-07-30  9:26 ` jakub at gcc dot gnu dot org
2008-07-31  8:02 ` jakub at gcc dot gnu dot org
2008-07-31  8:47 ` jakub at gcc dot gnu dot org
2008-07-31  8:52 ` jakub at gcc dot gnu dot org
2008-07-31 19:15 ` jakub at gcc dot gnu dot org
2008-07-31 19:17 ` jakub 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).