This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PCHs and 26_numerics/complex_value.cc
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Cc: bkoz <bkoz at redhat dot com>, Geoff Keating <geoffk at geoffk dot org>
- Date: Wed, 16 Apr 2003 19:53:54 +0200
- Subject: Re: PCHs and 26_numerics/complex_value.cc
If you use -Winvalid-pch when compiling this file you'll see that the
generated stdc++.h.gch files is not used. This is because
complex_value.cc is compiled without optimization, and thus __OPTIMIZE
or whatever is no longer defined.
Perhaps this is related...
Hi again.
Indeed, this is the only testsuite file build -O0, and here triggers
an endless loop in cc1plus.
The libstdc++.log entry is not particularly enlightening: the
compilation simply aborts with:
WARNING: program timed out.
compiler exited with status 1
FAIL: 26_numerics/complex_value.cc (test for excess errors)
Excess errors:
exit status is 1
The problem goes away if I either:
1- remove the -include /foo/stdc++.h.gch from the compilation line
2- remove the -O0 from the compilation line (of course).
3- remove completely /foo/stdc++.h.gch
Seems definitely a cc1plus problem with -include ad an invalid .gch file
which I have trouble debugging further...
Another data point, however. Adding -H to the compilation line doesn't
produce the expected list of included header files: everything goes as if
cc1plus, having diagnosed that a stdc++.h.gch is present but cannot be
used, is not able to go ahead and start including the various header
files according to the normal procedure (not using pch).
I hope to provide some more details later on today.
Paolo.