[Bug ipa/59265] [4.9 Regression] Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006
octoploid at yandex dot com
gcc-bugzilla@gcc.gnu.org
Sat Dec 14 20:35:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59265
--- Comment #2 from Markus Trippelsdorf <octoploid at yandex dot com> ---
Here's a reduced testcase that works without any gcda file:
markus@x4 testcase % < test.ii
class A {
int m_fn1() const;
unsigned m_fn2() const;
};
class B {
public:
virtual void m_fn1();
};
class C final : B {
C();
virtual void m_fn2() { m_fn1(); }
};
int a;
unsigned A::m_fn2() const {
if (m_fn1())
return 0;
a = m_fn2();
}
C::C() {}
markus@x4 testcase % c++ -c -fprofile-use -O2 -std=c++11 test.ii
test.ii: In member function ‘virtual void C::m_fn2()’:
test.ii:19:9: internal compiler error: Segmentation fault
C::C() {}
More information about the Gcc-bugs
mailing list