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: [PATCH] Add target hook in C front end


On Mon, Dec 17, 2001 at 10:58:18PM +0000, Joseph S. Myers wrote:
> 
> Sometimes it may be best to leave solving a problem until other changes
> have been made that facilitate it.  I think this is such a case.  The
> relevant other changes are either making cpp0 be a special mode of cc1
> (and preferably merging tradcpp into cc1 as well), or a specs redesign
> that makes it easy for the driver and back end to come to the same
> conclusion about the type of size_t.

Here's an alternate idea.  What if we add an option-processing hook to
libcpp?  It would be as simple as "all -m switches are handed to this
callback routine."  The MIPS back end could then define this hook to
calculate the appropriate value for __SIZE_TYPE__ and pass it to
cpp_define.  If properly written it would work correctly both with the
standalone and integrated preprocessors.

I don't think we need to bother getting __SIZE_TYPE__ right in
tradcpp, and I do not see why Joseph thinks merging it back into
cpplib is desirable.  Keep in mind that we will be removing
traditional mode compilation in 3.2, which means the only remaining
use for tradcpp is to macro-process things which are not C and
therefore do not care what size_t is.

zw


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