This is the mail archive of the gcc-bugs@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]

[Bug c++/13258] strings used for the extern keyword are being translated by the -fexec-charset option


------- 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


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