This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/79255] [6/7 Regression] PGO bootstrap fails on x86_64/ppc64le building Ada
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Mar 2017 16:59:03 +0000
- Subject: [Bug bootstrap/79255] [6/7 Regression] PGO bootstrap fails on x86_64/ppc64le building Ada
- Auto-submitted: auto-generated
- References: <bug-79255-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79255
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Short C testcase that ICEs without the patch:
/* PR bootstrap/79255 */
/* { dg-do compile } */
/* { dg-options "-O2 -g -fno-toplevel-reorder -Wno-attributes" } */
static inline __attribute__((always_inline)) int foo (int x);
int
baz (void)
{
return foo (3) + foo (6) + foo (9);
}
static inline __attribute__((always_inline)) int
foo (int x)
{
auto inline int __attribute__((noinline)) bar (int x)
{
return x + 3;
}
return bar (x) + bar (x + 2);
}
and succeeds with the patch.