This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Reducing large testcases
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: <gcc at gcc dot gnu dot org>
- Date: Mon, 13 Jan 2003 11:24:00 +0100 (CET)
- Subject: 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/