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]

Re: Putting C++ code into gcc front end


On Wednesday, March 5, 2003, at 08:23 AM, Marc Espie wrote:
In article <6997EA81-4E6A-11D7-80F3-000393D76DAA at apple dot com> you write:
If you really want to be compliant, all external names have to be unique
within 6 characters, case-insensitive (3.1.2). Somehow I doubt that's
going to happen.

On the contrary, this is really easy to do. Just run nm, cut at six chars,
look at collisions. Then add an includ at config.h level which correctly
mangles the names to avoid collisions if wanted.

Actually, I didn't say it wasn't easy to do, I just doubted it would happen.
(And maintaining your scheme correctly over time seems even less likely.)
There's no real reason to IMO; long names have been portable (although
not standard) since I started writing in C in the mid-80s. I know of no
current environment that needs this restriction (obviously, none that
gcc currently builds in has it).



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