]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
* c-common.c (fix_string_type): Split out of ...
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Apr 2002 07:40:12 +0000 (07:40 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Apr 2002 07:40:12 +0000 (07:40 +0000)
commit070236f03795e1097dd291c3d606a0c27539fdf3
treef89357e36b49124025bfcd5e54bb2778e043f4e6
parentfa24a2cb78c39f86588694ba4b4201fb0f55b257
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52790 138bc75d-0d04-0410-961f-82ee72b054a4
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]