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


>> I noticed you weren't using -include $(path)/stdc++.h. I didn't think
>> this worked (although I would certainly prefer it if it did): I thought
>> absolute paths only were allowed. Am I confused or doing something wrong?
>
>OK, I see you got it.  I should have mentioned that you had to
>manually delete the old targets out of install prefix.

Well. I got some of it. The auto-selection of the debug/optimized PCH is
not working for me.

This is fine:
%g++ -include bits/stdc++.h -g -O0 -Winvalid-pch 1.cc

This is not:
%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?

>> The other thing I just realized is that all the generated PCH files
>> should really be in the target include directory, not the toplevel one.
>
>Fully agreed.  I will fix that issue and commit it.

Ok.

-benjamin


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