]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on...
authorJakub Jelinek <jakub@redhat.com>
Thu, 6 Mar 2014 07:57:12 +0000 (08:57 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 6 Mar 2014 07:57:12 +0000 (08:57 +0100)
commitf63ef0051b6470f35bdaa8367530075409727c79
treec579ab839f771c8ea2b9074941ff43f36c9ca3c6
parentd7f63cfa154c4c96a01dec9d8ba59db5d1ca085c
backport: re PR ipa/60026 (ICE at -O3 on valid code (with the optimize pragma) on x86_64-linux-gnu)

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.

From-SVN: r208364
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/torture/pr60026.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr60062.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr60072.c [new file with mode: 0644]
gcc/tree-sra.c
gcc/tree.h