* call.c (joust): Only prefer a non-builtin candidate to a builtin
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jul 2001 15:04:32 +0000 (15:04 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jul 2001 15:04:32 +0000 (15:04 +0000)
commitca106ab13ed659a3d82589640af478ed74882ee2
tree1ff1db2f3cbcf8e88fb53dffde7dfb01277d772d
parent162d880536958f718925814b009c10cbc147e644
    * call.c (joust): Only prefer a non-builtin candidate to a builtin
        one if they have the same signature.

        * cvt.c (build_up_reference): Take DECL parm.  Check TREE_STATIC on
        it rather than toplevel_bindings_p.  Give it a mangled name if static.
        (convert_to_reference): Adjust.
        * decl2.c (get_temp_name): Lose.
        * mangle.c (mangle_ref_init_variable): New fn.
        (mangle_guard_variable): Strip the ref-init header.
        * cp-tree.h: Adjust.
        * decl.c (cp_finish_decl): Add the DECL_STMT after processing the
        initializer.
        (grok_reference_init): Always use DECL_INITIAL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44358 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/mangle.c
gcc/testsuite/g++.dg/README [new file with mode: 0644]
gcc/testsuite/g++.dg/init/init-ref1.C [moved from gcc/testsuite/g++.dg/other/init-ref1.C with 100% similarity]
gcc/testsuite/g++.dg/init/init-ref2.C [moved from gcc/testsuite/g++.dg/other/init-ref2.C with 100% similarity]
gcc/testsuite/g++.dg/overload/builtin1.C [new file with mode: 0644]