This is the mail archive of the gcc-patches@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: [PATCH] fix exec-charset


On Thu, 12 Feb 2004, Eric Christopher wrote:

>  /* Full-blown asm statement with inputs, outputs, clobbers, and
>     volatile tag allowed.  */
>  asm_stmt:
> -	ASM_KEYWORD maybe_volatile '(' asm_argument ')' ';'
> +	asm_keyword maybe_volatile '(' asm_argument ')'
> +	   start_string_translation ';'

I think you need to be more fine-grained here; couldn't an input operand
contain arbitrary expressions including string literals that should be in
the execution charset?  I.e., asm_operand should have translation off for
the string but on for the expression.

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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