public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header
       [not found] <bug-67068-4@http.gcc.gnu.org/bugzilla/>
@ 2015-07-30 16:53 ` kargl at gcc dot gnu.org
  2015-07-30 18:24 ` mwglass at sandia dot gov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu.org @ 2015-07-30 16:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67068

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org ---
(In reply to Mike Glass from comment #0)
> Using gfortran-5.2.0 with openmpi 1.8.7 on a Linux RHEL system.
> 
> When compiling a FORTRAN file  with "-freal-4-real-8 -fdefault-double-8
> -fdefault-real-8"

What happens if you don't use the options?  You
did read the document for the -fdefault-* right?
Did you compile everything, and I mean everything,
with those options?


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

* [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header
       [not found] <bug-67068-4@http.gcc.gnu.org/bugzilla/>
  2015-07-30 16:53 ` [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header kargl at gcc dot gnu.org
@ 2015-07-30 18:24 ` mwglass at sandia dot gov
  2015-07-30 18:37 ` sgk at troutmask dot apl.washington.edu
  2015-07-30 19:41 ` anlauf at gmx dot de
  3 siblings, 0 replies; 4+ messages in thread
From: mwglass at sandia dot gov @ 2015-07-30 18:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67068

--- Comment #2 from Mike Glass <mwglass at sandia dot gov> ---
Yes, all the FORTRAN code is compiled with those options. We want to mimic the
behavior of the Intel compiler when we add the '-r8' flag to their compiler:

Makes default real and complex declarations, constants, functions, and
intrinsics 8 bytes long. REAL declarations are treated as DOUBLE PRECISION
(REAL(KIND=8)) and COMPLEX declarations are treated as DOUBLE COMPLEX
(COMPLEX(KIND=8)). Real and complex constants of unspecified KIND are evaluated
in double precision (KIND=8).


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

* [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header
       [not found] <bug-67068-4@http.gcc.gnu.org/bugzilla/>
  2015-07-30 16:53 ` [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header kargl at gcc dot gnu.org
  2015-07-30 18:24 ` mwglass at sandia dot gov
@ 2015-07-30 18:37 ` sgk at troutmask dot apl.washington.edu
  2015-07-30 19:41 ` anlauf at gmx dot de
  3 siblings, 0 replies; 4+ messages in thread
From: sgk at troutmask dot apl.washington.edu @ 2015-07-30 18:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67068

--- Comment #3 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, Jul 30, 2015 at 06:24:19PM +0000, mwglass at sandia dot gov wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67068
> 
> --- Comment #2 from Mike Glass <mwglass at sandia dot gov> ---
> Yes, all the FORTRAN code is compiled with those options. We want to mimic the
> behavior of the Intel compiler when we add the '-r8' flag to their compiler:
> 
> Makes default real and complex declarations, constants, functions, and
> intrinsics 8 bytes long. REAL declarations are treated as DOUBLE PRECISION
> (REAL(KIND=8)) and COMPLEX declarations are treated as DOUBLE COMPLEX
> (COMPLEX(KIND=8)). Real and complex constants of unspecified KIND are evaluated
> in double precision (KIND=8).
> 

You should only need -freal-4-real-8.  

If your code uses COMMON or EQUIVALENCE, you may also
want to use -finteger-4-integer-8

In addition, it is advisable to never mix the 
-fdefault-* and -freal-* options.  These do 
different things internally, and may in fact
cause conflicts.


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

* [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header
       [not found] <bug-67068-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-07-30 18:37 ` sgk at troutmask dot apl.washington.edu
@ 2015-07-30 19:41 ` anlauf at gmx dot de
  3 siblings, 0 replies; 4+ messages in thread
From: anlauf at gmx dot de @ 2015-07-30 19:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67068

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #4 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Mike Glass from comment #2)
> Yes, all the FORTRAN code is compiled with those options. We want to mimic
> the behavior of the Intel compiler when we add the '-r8' flag to their
> compiler:
> 
> Makes default real and complex declarations, constants, functions, and
> intrinsics 8 bytes long. REAL declarations are treated as DOUBLE PRECISION
> (REAL(KIND=8)) and COMPLEX declarations are treated as DOUBLE COMPLEX
> (COMPLEX(KIND=8)). Real and complex constants of unspecified KIND are
> evaluated in double precision (KIND=8).

Is there a reason you don't "use mpi"?


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

end of thread, other threads:[~2015-07-30 19:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-67068-4@http.gcc.gnu.org/bugzilla/>
2015-07-30 16:53 ` [Bug fortran/67068] Ambiguous interfaces generated when including open mip fortran header kargl at gcc dot gnu.org
2015-07-30 18:24 ` mwglass at sandia dot gov
2015-07-30 18:37 ` sgk at troutmask dot apl.washington.edu
2015-07-30 19:41 ` anlauf at gmx dot de

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).