https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29968
Andrew Pinski changed:
What|Removed |Added
Resolution|INVALID |DUPLICATE
--- Comment #6 from Andrew Pin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29968
--- Comment #5 from Andrew Pinski ---
(In reply to Vincent Lefèvre from comment #4)
> (In reply to Andreas Schwab from comment #2)
> > Your program is invoking undefined behaviour. You should not perform the
> > division if the divisor is zero.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29968
Vincent Lefèvre changed:
What|Removed |Added
CC||vincent-gcc at vinc17 dot net
--- Comm
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-29 05:59 ---
Just a further note here, divide by 0 is undefined behavior as defined by the C
standard.
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
---
--- Comment #2 from schwab at suse dot de 2006-11-24 10:34 ---
Your program is invoking undefined behaviour. You should not perform the
division if the divisor is zero.
--
schwab at suse dot de changed:
What|Removed |Added
--- Comment #1 from tiamat at komi dot mts dot ru 2006-11-24 10:31 ---
Created an attachment (id=12681)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12681&action=view)
preprocessed file test.i
$ gcc -v -save-temps -O3 test.c
Using built-in specs.
Target: sparc-linux-gnu
Configure