This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Install two PCH files instead of one


This is actually fine too:

> %g++ -include bits/stdc++.h -g -O2 -Winvalid-pch 1.cc
> cc1plus: warning: /mnt/hd/bld/H-x86-gcc/include/c++/3.4/i686-pc-linux-gnu/bits/stdc++.h.gch/O0g: not used because `__NO_INLINE__' not defined

> Is the second one supposed to work? Does it work for you?

It would report two "not used" lines, the second explicitly naming O2g,
if it wasn't working. ;-)

This is part of the same issue I reported to Geoff.  It seems like
-Winvalid-pch should report if 1 PCH file can't be used if only 1 PCH
was consultable.  If there is a directory of PCH files, then I should
only be informed why each one couldn't be used iff none are actually
valid.  IMHO, the problem with the current algorithm is that it is
non-deterministic: depending on the order that the PCH files are
checked (and that order is documented to be non-deterministic), I
might get a warning or I might not.

Regards,
Loren


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]