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]

'partial preprocessing' option request.


Bit of a strange one prehaps...

But i would like a -E type flag which instead of outputing fully
preprocessed files - did 'just about everything' but missed a few steps.
a) it didnt expand #include <whatever>
b) It left the #define lines behind
c) whatever else is required so that resultant file produced same -E output
as original file.

My reasoning being, when someone (whos not highly experienced) is minimising
a testcase from some broken code - its unlikely that they will want 'part'
of a header included using <> style includes.  But disentangling everything
else Is something to help work on the minimisation process. - minimising
from that 'half unwrapped' stage should reduce the number of system headers
included and complete most of the reduction work that matters most - and so
then a full preprocessed file can be produced which either - will be simpler
to minimise then the original - or will be less work for whoever tries to
minimise the testcase once its submited.

Regards,
Gareth


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