public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32969]  New: (rr)?spacing give wrong answers with -fdefault-integer-8
@ 2007-08-02 16:23 dominiq at lps dot ens dot fr
  2007-08-03  4:46 ` [Bug fortran/32969] " kargl at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dominiq at lps dot ens dot fr @ 2007-08-02 16:23 UTC (permalink / raw)
  To: gcc-bugs

With -fdefault-integer-8 the following code:

program test_rrspacing
  real x
  x = 3.0
  x = rrspacing(x)
  print *, x, spacing(x), spacing(3.0)
  x = 3.0
  x = spacing(x)
  print *, x
end

gives:

  0.7500000      1.6777216E+07  2.3841858E-07
  1.6777216E+07

instead of

  1.2582912E+07   1.000000      2.3841858E-07
  2.3841858E-07

Note that like PR32933 the code does not involve directly integers and as in
the original test of PR32770 it seems to be linked to bigendian platforms (PPC
here).


-- 
           Summary: (rr)?spacing give wrong answers with -fdefault-integer-8
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32969


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-08-04 16:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-02 16:23 [Bug fortran/32969] New: (rr)?spacing give wrong answers with -fdefault-integer-8 dominiq at lps dot ens dot fr
2007-08-03  4:46 ` [Bug fortran/32969] " kargl at gcc dot gnu dot org
2007-08-04 16:49 ` kargl at gcc dot gnu dot org
2007-08-04 16:53 ` kargl at gcc dot gnu dot org
2007-08-04 16:54 ` kargl 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).