bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/14608] --detect-odr-violations doesn't work with GCC 4.7 and n


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gold/14608] --detect-odr-violations doesn't work with GCC 4.7 and newer
Date: Sat, 20 Dec 2014 16:16:24 +0000

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  bd040da1dbb7e6640440f306ddf993af98441851 (commit)
      from  13a1997e6688d79ee01f1b082f7a220901c8cf34 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit bd040da1dbb7e6640440f306ddf993af98441851
Author: H.J. Lu <address@hidden>
Date:   Sat Dec 20 08:05:45 2014 -0800

    Change SometimesInlineFunction to "return i * i * 3;"

    The debug_msg test has 2 implementations of SometimesInlineFunction:

    int SometimesInlineFunction(int i) { return i; }
    int SometimesInlineFunction(int i) { return i * i; }

    and One Definition Rule (ODR) violation detection expects they will be
    compiled into functions of different sizes.  Hower, on x86, GCC 4.7 and
    newer compile them into functions of the same size and ODR violation
    detection test fails.  This patch changes

    int SometimesInlineFunction(int i) { return i; }

    to

    int SometimesInlineFunction(int i) { return i * i * 3; }

    so that it will be compiled into a function of larger size.

        PR gold/14608
        * testsuite/debug_msg.cc (SometimesInlineFunction): Changed
        to "return i * i * 3;".

-----------------------------------------------------------------------

Summary of changes:
 gold/ChangeLog              |    6 ++++++
 gold/testsuite/debug_msg.cc |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

-- 
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]