bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/18663] gold/testsuite/script_test_1.cc is incompatible with GC


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/18663] gold/testsuite/script_test_1.cc is incompatible with GCC 5
Date: Wed, 22 Jul 2015 10:41:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18663

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by H.J. Lu <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b2af7dd40a4f3b570aef71daf11b9dfce9a5d13

commit 5b2af7dd40a4f3b570aef71daf11b9dfce9a5d13
Author: H.J. Lu <address@hidden>
Date:   Wed Jul 22 03:36:42 2015 -0700

    Don't compare symbol addresses directly

    GCC 5 will fold symbol address comparison, assuming each symbol has a
    different address, which leads to abort.  We should use separate
    functions to compare symbol address.

        PR gold/18663
        * testsuite/Makefile.am (script_test_1_SOURCES): Set to
        script_test_1a.cc script_test_1b.cc.
        (script_test_11_r.o): Replace script_test_11.o with
        script_test_11a.o script_test_11b.o.
        (script_test_11.o): Removed.
        (script_test_11a.o): New.
        (script_test_11b.o): Likewise.
        * testsuite/Makefile.in: Regenerated.
        * testsuite/script_test_1.h: New file.
        * testsuite/script_test_1b.cc: Likewise.
        * testsuite/script_test_11.h: Likewise.
        * testsuite/script_test_11b.c: Likewise.
        * testsuite/script_test_1.cc: Renamed to ...
        * testsuite/script_test_1a.cc: This.
        Include "script_test_1.h".
        (main): Call check_int and check_ptr.
        * testsuite/script_test_11.c: Renamed to ...
        * testsuite/script_test_11a.c: This.
        Include "script_test_11.h".
        (main): Call ptr_equal.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]