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]
Other format: [Raw text]

Re: Division by zero


On 2/10/07, Robert Dewar <dewar@adacore.com> wrote:
Jie Zhang wrote:

> The code I posted in my first email is from libgloss/libnosys/_exit.c.
> It's used to cause an exception deliberately. From your replies, it
> seems it should find another way to do that.

Any code that tries to raise an exception deliberately is certainly
depending on undefined behavior, so it has to be very careful about
how it is written!

I'm going to use an asm ().

Jie


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