public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/32083] bug in transfer integer->real->integer Date: Fri, 25 May 2007 10:45:00 -0000 [thread overview] Message-ID: <20070525104503.1780.qmail@sourceware.org> (raw) In-Reply-To: <bug-32083-11277@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from dfranke at gcc dot gnu dot org 2007-05-25 11:45 ------- Shortened testcase to compare variable vs. parameter in tree dump: $> cat pr32083.f90 PROGRAM TestInfinite integer(8), parameter :: bit_pattern_NegInf_i8_p = -4503599627370496_8 integer(8) :: bit_pattern_NegInf_i8 = -4503599627370496_8 integer(8) :: i real(8) :: r r = transfer(bit_pattern_NegInf_i8,r) i = transfer(r,i) r = transfer(bit_pattern_NegInf_i8_p,r) i = transfer(r,i) END PROGRAM TestInfinite $> gfortran-svn -Wall -std=f95 -fdump-tree-original pr32083.f90 $> cat pr32083.f90.003t.original MAIN__ () { static int8 bit_pattern_neginf_i8 = -0x10000000000000; real8 r; int8 i; _gfortran_set_std (2, 11, 0, 0, 0); { real8 transfer.0; __builtin_memcpy ((void *) &transfer.0, (void *) &bit_pattern_neginf_i8, 8); r = transfer.0; } { int8 transfer.1; __builtin_memcpy ((void *) &transfer.1, (void *) &r, 8); i = transfer.1; } r = Inf; { int8 transfer.2; __builtin_memcpy ((void *) &transfer.2, (void *) &r, 8); i = transfer.2; } } While the first two transfer operations are translated into corresponding blocks, the third is not. Observe the line r = Inf; -- dfranke at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dfranke at gcc dot gnu dot | |org OtherBugsDependingO| |31237 nThis| | Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-05-25 11:45:00 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32083
next prev parent reply other threads:[~2007-05-25 10:45 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-25 10:17 [Bug fortran/32083] New: " kloedej at knmi dot nl 2007-05-25 10:45 ` dfranke at gcc dot gnu dot org [this message] 2007-05-25 11:37 ` [Bug fortran/32083] [Regression 4.3] " burnus at gcc dot gnu dot org 2007-05-26 21:11 ` burnus at gcc dot gnu dot org 2007-05-26 22:00 ` patchapp at dberlin dot org 2007-05-27 8:10 ` [Bug middle-end/32083] [4.3 Regression] " burnus at gcc dot gnu dot org 2007-05-27 8:18 ` burnus at gcc dot gnu dot org 2007-05-27 13:57 ` burnus at gcc dot gnu dot org 2007-05-29 7:30 ` kloedej at knmi dot nl
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070525104503.1780.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).