This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13258] strings used for the extern keyword are being translated by the -fexec-charset option
- From: "zack at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2003 18:56:54 -0000
- Subject: [Bug c++/13258] strings used for the extern keyword are being translated by the -fexec-charset option
- References: <20031201143859.13258.darcypj@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zack at codesourcery dot com 2003-12-01 18:56 -------
Subject: Re: strings used for the extern keyword are being
translated by the -fexec-charset option
That sounds plausible, with a couple caveats:
- it is a design constraint of cpplib that it not use any global variables
- cpplib's lookahead facility is not really designed for use outside
of the macro expander; it may be possible to use it for this, but it
probably isn't feasible to use it for __attribute__.
I would be thinking in terms of setting a flag on the token itself.
Another possibility is to let the conversion happen and then
back-convert in the parser when necessary; a new cppcharset.c
interface could be added for this. Your idea is cleaner, though, if
it can be made to work.
If you have time to look into a patch that would be appreciated;
I will get to it eventually but I cannot promise any timeframe.
zw
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13258