public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [pph] Do not emit PCH if generating PPH (issue4591061)
@ 2011-06-09 18:55 Diego Novillo
  2011-06-10 15:53 ` Diego Novillo
  0 siblings, 1 reply; 2+ messages in thread
From: Diego Novillo @ 2011-06-09 18:55 UTC (permalink / raw)
  To: reply, gchare, crowl, gcc-patches


We were trying to generate PCH and PPH information at the same time.
We never noticed because PPH is generated after PCH, so we were just
clobbering over the previous dump.

Found it by accident while debugging a GC ICE.  This should make
testing slightly faster.

Committed to the branch.



	* lang-specs.h (@c++-header): Do not emit PCH if any -fpph flag is
	present.

diff --git a/gcc/cp/lang-specs.h b/gcc/cp/lang-specs.h
index a73aba3..9943446 100644
--- a/gcc/cp/lang-specs.h
+++ b/gcc/cp/lang-specs.h
@@ -48,8 +48,8 @@ along with GCC; see the file COPYING3.  If not see
       cc1plus %{save-temps*|no-integrated-cpp:-fpreprocessed %{save-temps*:%b.ii} %{!save-temps*:%g.ii}}\
 	      %{!save-temps*:%{!no-integrated-cpp:%(cpp_unique_options)}}\
 	%(cc1_options) %2\
-	%{!fsyntax-only:%{!fdump-ada-spec*:-o %g.s %{!o*:--output-pch=%i.gch}\
-        %W{o*:--output-pch=%*}}%V}}}}",
+	%{!fsyntax-only:%{!fpph*:%{!fdump-ada-spec*:-o %g.s %{!o*:--output-pch=%i.gch}\
+        %W{o*:--output-pch=%*}}}%V}}}}",
      CPLUSPLUS_CPP_SPEC, 0, 0},
   {"@c++",
     "%{E|M|MM:cc1plus -E %(cpp_options) %2 %(cpp_debug_options)}\

--
This patch is available for review at http://codereview.appspot.com/4591061

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

end of thread, other threads:[~2011-06-10 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-09 18:55 [pph] Do not emit PCH if generating PPH (issue4591061) Diego Novillo
2011-06-10 15:53 ` Diego Novillo

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