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]

Re: Reducing large testcases


On Mon, Jan 13, 2003 at 11:24:00AM +0100, Richard Guenther wrote:
> 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?
 
See Wolfgang Bangerth's document about doing just that, submitted just
last week: http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00749.html.
It needs some more editing before being added to our web pages, but it
should have lots of good ideas for you.  If you save the file and run
'patch' you'll get a real html file; or just edit it, removing the
"+" from the start of each line.

Please let us know if this information was helpful, and any suggestions
you might have for improving it.

Jains


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