aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-04-26 00:40:12 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-04-26 00:40:12 -0700
commitb84a3874349ccc870c3d278b874d43763efbc9bb (patch)
treef89357e36b49124025bfcd5e54bb2778e043f4e6 /gcc/c-common.h
parent4d7ea4fc78df072028a41875a967d49f9b4c9dea (diff)
downloadgcc-b84a3874349ccc870c3d278b874d43763efbc9bb.zip
gcc-b84a3874349ccc870c3d278b874d43763efbc9bb.tar.gz
gcc-b84a3874349ccc870c3d278b874d43763efbc9bb.tar.bz2
c-common.c (fix_string_type): Split out of ...
* c-common.c (fix_string_type): Split out of ... (combine_strings): ... here. Take a varray, not a tree list. (c_expand_builtin_printf): Use fix_string_type. * c-common.h: Update decls. * c-parse.in (string): Remove. Update all uses to use STRING instead, and not call combine_strings. (yylexstring): New. (_yylex): Use it. * c-typeck.c (simple_asm_stmt): Don't call combine_strings. (build_asm_stmt): Likewise. * objc/objc-act.c (my_build_string): Use fix_string_type. (build_objc_string_object): Build varray for combine_strings. * parse.y (string): Remove. Update all uses to use STRING instead, and not call combine_strings. * rtti.c (tinfo_name): Use fix_string_type. * semantics.c (finish_asm_stmt): Don't call combine_strings. * spew.c (yylexstring): New. (read_token): Use it. * g++.dg/parse/concat1.C: New. * gcc.dg/concat2.c: New. From-SVN: r52790
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index f44b0c3..873fa4a 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -530,12 +530,13 @@ extern tree c_expand_expr_stmt PARAMS ((tree));
extern void c_expand_start_cond PARAMS ((tree, int, tree));
extern void c_finish_then PARAMS ((void));
extern void c_expand_start_else PARAMS ((void));
-extern void c_finish_else PARAMS ((void));
+extern void c_finish_else PARAMS ((void));
extern void c_expand_end_cond PARAMS ((void));
/* Validate the expression after `case' and apply default promotions. */
extern tree check_case_value PARAMS ((tree));
-/* Concatenate a list of STRING_CST nodes into one STRING_CST. */
-extern tree combine_strings PARAMS ((tree));
+extern tree fix_string_type PARAMS ((tree));
+struct varray_head_tag;
+extern tree combine_strings PARAMS ((struct varray_head_tag *));
extern void constant_expression_warning PARAMS ((tree));
extern tree convert_and_check PARAMS ((tree, tree));
extern void overflow_warning PARAMS ((tree));