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



> 
> (a) There is nothing MIPS-specific about the issue, a fix must be
> architecture-independent, arranging that on all architectures that
> __SIZE_TYPE__ agrees with the internal size_t without the fragility of
> specs.

Ok. My solution appears platform independent. I wanted to make it a
function in the target struct, but the language specificness of the
problem is not allowing this. I'm not sure what your objection is here.

> 
> (b) It is well-established that __SIZE_TYPE__ is a macro, not a typedef,
> expanding to the normal C name of the relevant type.  This is, for
> example, relied on in the format checking tests to determine the
> corresponding signed type.  Did your patch pass c99-scanf-1.c?

It failed a few of the cases that I was in the middle of tracking down.
I was looking first at the validity of the testcase and then to see what
I had done that would possibly change the behavior (though i remember
some not passing before my patch either :) Aldy's question raises a
point though as well. Is it "well-established" or "standards defined"?

-eric

-- 
Fridays are not "pants optional"


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