public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/39771] New: ftrapv does not work
@ 2009-04-14 19:38 jv244 at cam dot ac dot uk
2009-04-14 20:00 ` [Bug middle-end/39771] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-04-14 19:38 UTC (permalink / raw)
To: gcc-bugs
The following program doesn't generate a trap AFAICT, even though there is a
signed overflow on a multiplication
CALL FOO(1000000)
END
SUBROUTINE FOO(a)
INTEGER :: a
write(6,*) a*a
END SUBROUTINE FOO
> gfortran -ftrapv test.f90
> ./a.out
-727379968
fails for both
gcc version 4.4.0 20090414 (prerelease) [gcc-4_4-branch revision 146034] (GCC)
gcc version 4.5.0 20090414 (experimental) [trunk revision 146031] (GCC)
--
Summary: ftrapv does not work
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39771
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-14 20:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-14 19:38 [Bug middle-end/39771] New: ftrapv does not work jv244 at cam dot ac dot uk
2009-04-14 20:00 ` [Bug middle-end/39771] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).