This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] fix exec-charset
Eric Christopher <echristo@redhat.com> writes:
> On Thu, 2004-02-12 at 17:53, Richard Henderson wrote:
>> On Thu, Feb 12, 2004 at 05:13:15PM -0800, Eric Christopher wrote:
>> > Got an example to talk about?
>>
>> asm ("xx" : : "r"("translate") : "cc");
>
> Dammit.
Idea:
untrans_string: stop_string_translation STRING start_string_translation
then you can just substitute untrans_string for STRING wherever
necessary.
I am still worried about what happens if you have a parse error in between
the stop_string_translation and the STRING. I.e.
asm (not_a_string);
We need to make sure the translation mode doesn't get stuck on in this
case. See the "Lexical Tie-Ins and Error Recovery" section of the
Bison manual.
zw