public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug pch/47699] New: Support PCH without #include
@ 2011-02-11 16:35 olafvdspek at gmail dot com
  2011-02-11 16:43 ` [Bug pch/47699] " rguenth at gcc dot gnu.org
  2011-02-11 16:51 ` olafvdspek at gmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: olafvdspek at gmail dot com @ 2011-02-11 16:35 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Support PCH without #include
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: pch
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: olafvdspek@gmail.com


PCH looks for all.h.gch when it encounters #include "all.h". Projects that
don't use PCH probably don't have a #include "all.h" at the top of every source
file.

Could an option be added like VC /Yu (/Yu all.h.gch") that would cause the
compiler to use all.h.gch without an #include being present?

This would make using PCH simpler and less intrusive.


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

* [Bug pch/47699] Support PCH without #include
  2011-02-11 16:35 [Bug pch/47699] New: Support PCH without #include olafvdspek at gmail dot com
@ 2011-02-11 16:43 ` rguenth at gcc dot gnu.org
  2011-02-11 16:51 ` olafvdspek at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-02-11 16:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-11 16:35:47 UTC ---
-include all.h


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

* [Bug pch/47699] Support PCH without #include
  2011-02-11 16:35 [Bug pch/47699] New: Support PCH without #include olafvdspek at gmail dot com
  2011-02-11 16:43 ` [Bug pch/47699] " rguenth at gcc dot gnu.org
@ 2011-02-11 16:51 ` olafvdspek at gmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: olafvdspek at gmail dot com @ 2011-02-11 16:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Olaf van der Spek <olafvdspek at gmail dot com> 2011-02-11 16:44:21 UTC ---
Nice! I actually read about that at
http://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html but didn't realize
-include was a command line option.


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

end of thread, other threads:[~2011-02-11 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 16:35 [Bug pch/47699] New: Support PCH without #include olafvdspek at gmail dot com
2011-02-11 16:43 ` [Bug pch/47699] " rguenth at gcc dot gnu.org
2011-02-11 16:51 ` olafvdspek at gmail dot com

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).