This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

Reducing large testcases


Hi!

Are there any possibilities to automatically do
- preprocessing _without_ including files from the system/libstdc++
  directories? (-nostdinc throws errors, any options to ignore those?)
  Including libstdc++ stuff makes preprocessed testcases depend on
  compiler version, even if it should not.
- -save-temps generating a file with only _used_ portions of code? Or
  a script to do this automatically, i.e. removing functions/classes
  and try if the test still compiles?

Or any other ideas on how to reduce a 100 line testcase that gets blown
up by -save-temps to 3MB because it uses a large C++ library?
You may want to look at PR9241 for an example generated with g++3.2
(does not compile with g++3.3 or g++3.4 due to libstd++ issues, but the
testcase applies for those compilers, too).

Any ideas?

Thanks, Richard.

--
Richard Guenther <richard.guenther@uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/


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