]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-common.c
c-common.c (fix_string_type): Split out of ...
authorRichard Henderson <rth@redhat.com>
Fri, 26 Apr 2002 07:40:12 +0000 (00:40 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 26 Apr 2002 07:40:12 +0000 (00:40 -0700)
commitb84a3874349ccc870c3d278b874d43763efbc9bb
treef89357e36b49124025bfcd5e54bb2778e043f4e6
parent4d7ea4fc78df072028a41875a967d49f9b4c9dea
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
13 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-parse.in
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/parse.y
gcc/cp/rtti.c
gcc/cp/semantics.c
gcc/cp/spew.c
gcc/objc/objc-act.c
gcc/testsuite/g++.dg/parse/concat1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/concat2.c [new file with mode: 0644]