This is the mail archive of the gcc-patches@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: cpplib: Improve traditional preprocessing


So the only real solution is to stop after a certain depth; I stop
if a function-like macro was first expanded at least 20 expansions
ago.
Bite the bullet and make this a tunable parameter.  (No magic numbers!)

You may be able to steal some of the params.def stuff from GCC.

As a first step, you should at least put twenty in a global variable so
that it's clear what a subsequently-added command-line option should
change.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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