[Bug target/60062] [4.7/4.8 Regression] wrong code (for code with the optimize attribute) at -O1 and above on x86_64-linux-gnu in 32-bit mode

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 6 07:57:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60062

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Mar  6 07:57:12 2014
New Revision: 208364

URL: http://gcc.gnu.org/viewcvs?rev=208364&root=gcc&view=rev
Log:
    Backport from mainline
    2014-02-08  Jakub Jelinek  <jakub@redhat.com>

    PR ipa/60026
    * ipa-cp.c (determine_versionability): Fail at -O0
    or __attribute__((optimize (0))) or -fno-ipa-cp functions.
    * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.

    2014-02-06  Jakub Jelinek  <jakub@redhat.com>

    PR target/60062
    * tree.h (opts_for_fn): New inline function.
    (opt_for_fn): Define.
    * config/i386/i386.c (ix86_function_regparm): Use
    opt_for_fn (decl, optimize) instead of optimize.

    * gcc.c-torture/execute/pr60062.c: New test.
    * gcc.c-torture/execute/pr60072.c: New test.

    2014-02-04  Jakub Jelinek  <jakub@redhat.com>

    PR ipa/60026
    * c-c++-common/torture/pr60026.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/torture/pr60026.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr60062.c
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/pr60072.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/i386/i386.c
    branches/gcc-4_8-branch/gcc/ipa-cp.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_8-branch/gcc/tree-sra.c
    branches/gcc-4_8-branch/gcc/tree.h



More information about the Gcc-bugs mailing list