This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31798] lib1funcs.asm:1000: undefined reference to `raise'
- From: "rearnsha at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2007 13:22:11 -0000
- Subject: [Bug target/31798] lib1funcs.asm:1000: undefined reference to `raise'
- References: <bug-31798-14494@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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