This is the mail archive of the gcc@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]

3.0 bootstrap failure linux-sparc (gen-num-limits): PATCH



Hello,

Maybe this has been reported before ...

I had this gen-num-limits crash while building libstdc++-v3 on
sparc-unknown-linux-gnu.  The problem is that gen-num-limits tries
(amoungst others) to divide by zero and see what happens.  On most
platforms, this either works and results in a NaN, or fails with a SIGFPE
or a SIGBUS.  The latter two are trapped in gen-num-limits.cc.  On
sparc-unknown-linux-gnu, it happens to generate a SIGILL (illegal
instruction).  I just added two one liners to trap this too, and the build
went perfectly.

(file in gcc-3.0/libstdc++-v3/src)

>>>> diff gen-num-limits.cc gen-num-limits.cc.orig
183d182
<   signal_adapter (signal, SIGILL, signal_handler);
187d185
<   signal_adapter (signal, SIGILL, signal_handler);

Do I need to report this patch anywhere else, or is this enough?

Greetings, 

Bert.

-- 
---------- eMail Bert.Deknuydt.no@spam.esat.kuleuven.ac.be -----------
B.DeKnuydt, PSI-KULeuven                            Tel. +32-16-321880
Kasteelpark Arenberg 10          /|    | ||
B-3001 Leuven-Heverlee        _,_)|  4_|_||
FLANDERS, BELGIUM            / .                    Fax. +32-16-321838
-------------- http://www.esat.kuleuven.ac.be/~deknuydt --------------
        Or shall man have what he wishes? Nay! Qur'An 53, 24


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