[Bug pch/47699] New: Support PCH without #include

olafvdspek at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 11 16:35:00 GMT 2011


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.



More information about the Gcc-bugs mailing list