LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] disturbing gcc 2.8.1 and glibc2.1 issue

[ILUG] disturbing gcc 2.8.1 and glibc2.1 issue

Caolan McNamara Caolan.McNamara at ul.ie
Tue Nov 30 21:40:19 GMT 1999


I have an odd one here, 

"gcc: Internal compiler error: program cc1 got fatal signal 6"

Happened after I upgraded my glibc to 2.1 . My gcc (2.8.1) appears
to have some difficulties with optimization and floating point numbers.

the following code triggers it

#include <math.h>
void testy(float b,float c);

void test()
{
  double
    amount,
    x_distance,
    y_distance,
    y_scale,
    factor,
    factor2;

    factor=pow(factor,-amount);
    testy(x_distance,
    y_scale+y_distance);
}

when compiled with 
gcc -O -c effects3.c -o effects3.o

Works fine without -O and works fine with -O2, also works fine if you modify
the code above in about any conceivable way. Tres odd. I can easily work around
it by using -O2 which I intended to use anyway. Just thought Id share.

C.

Real Life: Caolan McNamara           *  Doing: MSc in HCI
Work: Caolan.McNamara at ul.ie          *  Phone: +353-86-8790257
URL: http://www.csn.ul.ie/~caolan    *  Sig: an oblique strategy
Define an area as 'safe' and use it as an anchor




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell