This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MIPS port and fixincludes
On Tue, Jan 18, 2000 at 05:04:48PM -0500, Gavin Romig-Koch wrote:
[...]
> I think this section should only bother transforming identifiers
> that arn't already in the ansi reserved namespace. You started
> down this trail by not transforming id's starting with more than
> one underscore, but names starting with one underscore and an
> uppercase letter (like "_MIPSEB") are also already in the ansi
> reserved space.
I was wondering about that myself. There might have been some
historical reason, but %P leaves _MIPSEB alone so it seems safe to
make fixincludes do likewise.
> Also, it makes sense to me that, if fixincludes is going to make
> these ansi-fy-ing transformations, it should make the same ones
> that the 'P' spec does. The 'P' spec transforms the id "_mips" into
> "___mips__" and "___mips" (each starting with three underscores).
That looks wrong to me - I'd prefer to change the 'P' spec. I doubt
anyone is expecting the current behavior.
We do seem to prefer __mips__ to __mips, though.
zw