This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/54625] [4.8 Regression] lto/profiledbootstrap broken


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

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2012-09-22 04:38:14 UTC ---
Firefox also fails during the last libxul link of an lto/profiled build:

...
/var/tmp/mozilla-central/js/src/jsmath.cpp: In function âmath_sinâ:
/var/tmp/mozilla-central/js/src/jsmath.cpp:589:0: internal compiler error:
Segmentation fault
     return cache->lookup(sin, x);
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[2]: *** [/tmp/cckLE2MY.ltrans20.ltrans.o] Error 1


I've reduced this error with delta & C-reduce:

markus@x4 moz2 % cat test.i
float a;
double sin ();
speex_resampler_init_frac ()
{
    a = sin (0);
}

markus@x4 moz2 % cat test.ii
extern "C" double sin (double);
typedef double UnaryFunType (double);
class A
{
public:
    int hash ();
    double lookup (UnaryFunType p1)
    {
        int a = hash ();
        if (p1)
            return 0;
    }
};
A b;
void
math_sin_impl ()
{
    b.lookup (sin);
}

markus@x4 moz2 % gcc -o test.o -c -flto -O2 test.i
markus@x4 moz2 % g++ -r -nostdlib test.o test.ii -flto -O2
lto1: internal compiler error: in cgraph_create_virtual_clone, at
cgraphclones.c:344
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: /var/tmp/foo/usr/local/bin/g++ returned 1 exit status
/usr/bin/ld: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]