[Bug target/31798] lib1funcs.asm:1000: undefined reference to `raise'
rearnsha at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 29 13:22:00 GMT 2007
------- Comment #1 from rearnsha at gcc dot gnu dot org 2007-05-29 13:22 -------
The __div0 function is called by the division routines when an attempt to
divide by zero is detected. On a linux system, it is expected that this will
cause SIGFPE to be raise(3)d, so the default implementation of this call does
precisely this.
There's two ways you can avoid this problem when trying to build uboot (which
isn't a linux application).
1) Provide your own implementation of __div0 that does the right thing for your
system.
2) Use a different configuration of the compiler.
Either way, this isn't a bug in the compiler.
--
rearnsha at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31798
More information about the Gcc-bugs
mailing list