[Bug c/29968] integer division by zero with optimization

2023-04-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29968 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #6 from Andrew Pin

[Bug c/29968] integer division by zero with optimization

2023-04-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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.

[Bug c/29968] integer division by zero with optimization

2023-04-20 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
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

[Bug c/29968] integer division by zero with optimization

2006-11-28 Thread pinskia at gcc dot gnu dot org
--- 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 ---

[Bug c/29968] integer division by zero with optimization

2006-11-24 Thread schwab at suse dot de
--- 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

[Bug c/29968] integer division by zero with optimization

2006-11-24 Thread tiamat at komi dot mts dot ru
--- 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