diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2004-02-27 02:01:10 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2004-02-27 02:01:10 +0000 |
commit | 2152660651dd8d705e788e30dc9e6baa68706ab3 (patch) | |
tree | e038a62a69bfb1693a9ec4eefdb706a3fe353e15 /gcc/c-pragma.h | |
parent | 26d8bbbbc39d3621e926b393138125800a5dc90a (diff) | |
download | gcc-2152660651dd8d705e788e30dc9e6baa68706ab3.tar.gz |
target-supports.exp (check-iconv-available): New function.
2004-02-26 Eric Christopher <echristo@redhat.com>
* lib/target-supports.exp (check-iconv-available): New function.
* lib/gcc-dg.exp (dg-require-iconv): New function.
Use above.
* gcc.dg/charset: New directory.
* gcc.dg/charset/charset.exp: New file.
* gcc.dg/charset/asm1.c: Ditto.
* gcc.dg/charset/asm2.c: Ditto.
* gcc.dg/charset/asm3.c: Ditto.
* gcc.dg/charset/asm4.c: Ditto.
* gcc.dg/charset/asm5.c: Ditto.
* gcc.dg/charset/attribute1.c: Ditto.
* gcc.dg/charset/attribute2.c: Ditto.
* gcc.dg/charset/string1.c: Ditto.
* g++.dg/charset: New directory.
* g++.dg/dg.exp: Add here. Special options.
* g++.dg/charset/charset.exp: New file.
* g++.dg/charset/asm1.c: Ditto.
* g++.dg/charset/asm2.c: Ditto.
* g++.dg/charset/asm3.c: Ditto.
* g++.dg/charset/asm4.c: Ditto.
* g++.dg/charset/attribute1.c: Ditto.
* g++.dg/charset/attribute2.c: Ditto.
* g++.dg/charset/extern1.cc: Ditto.
* g++.dg/charset/extern2.cc: Ditto.
* g++.dg/charset/string1.c: Ditto.
2004-02-26 Eric Christopher <echristo@redhat.com>
* c-lex.c (c_lex_string_translate): New variable.
(lex_string): Use to determine string translation.
* c-pragma.h: Prototype.
* c-parse.in (start_string_translation): New. Set above.
(stop_string_translation): Ditto.
(attribute, attribute_list, asm_def, asm_stmt,
asm_operand): Use above functions.
* cp/parser.c (cp_parser_declaration): Translate strings
unless token is RID_EXTERN. Set c_lex_string_translate
for recursive use.
(cp_parser_asm_definition): Only translate argument strings
to asms.
(cp_parser_asm_operand_list): Ditto.
(cp_parser_attribute_list): Do not translate attribute strings.
From-SVN: r78548
Diffstat (limited to 'gcc/c-pragma.h')
-rw-r--r-- | gcc/c-pragma.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-pragma.h b/gcc/c-pragma.h index a1469db1742..397b02d6840 100644 --- a/gcc/c-pragma.h +++ b/gcc/c-pragma.h @@ -57,4 +57,8 @@ extern void add_to_renaming_pragma_list (tree, tree); extern int c_lex (tree *); extern int c_lex_with_flags (tree *, unsigned char *); +/* If true, then lex strings into the execution character set. + Otherwise, lex strings into the host character set. */ +extern bool c_lex_string_translate; + #endif /* GCC_C_PRAGMA_H */ |