call.c (joust): Only prefer a non-builtin candidate to a builtin one if...
authorJason Merrill <jason@redhat.com>
Wed, 25 Jul 2001 15:04:32 +0000 (11:04 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 25 Jul 2001 15:04:32 +0000 (11:04 -0400)
commit08ac397c043f41656afacca215910e4847d90429
tree1ff1db2f3cbcf8e88fb53dffde7dfb01277d772d
parentea0eceb16511d7e3e6ab0fb78e6641b8aed4e829
call.c (joust): Only prefer a non-builtin candidate to a builtin one if...

        * 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.

From-SVN: r44358
13 files changed:
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 [new file with mode: 0644]
gcc/testsuite/g++.dg/init/init-ref2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/other/init-ref1.C [deleted file]
gcc/testsuite/g++.dg/other/init-ref2.C [deleted file]
gcc/testsuite/g++.dg/overload/builtin1.C [new file with mode: 0644]