public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
* Target control of Fortran options
@ 2018-10-03 21:04 Paul Koning
  2018-10-04  8:06 ` Richard Biener
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Koning @ 2018-10-03 21:04 UTC (permalink / raw)
  To: gfortran

In the C and C++ parts of GCC, the target has some ways to adjust the compiler options depending on target settings.  I'm looking for a way to do that with gfortran.

The specific issue is in pdp11, which has an option to specify that "float" is 8 bytes (same as "double") rather than 4 bytes.  And the 8 byte choice is the default.

As a result, if I invoke gfortran for that target, I get an ICE because real*4 can't be found.  If I say -fdefault-real-8 it works.

So what I'm hoping to do is to have the target switch processing code (for the TARGET_HANDLE_OPTION hook) react to the -mfloat32 and -mfloat64 switches by passing appropriate -fdefault-real-* switches to Fortran.  Is that possible?

	paul

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

end of thread, other threads:[~2018-10-05  8:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-03 21:04 Target control of Fortran options Paul Koning
2018-10-04  8:06 ` Richard Biener
2018-10-04 14:04   ` Paul Koning
2018-10-04 15:41     ` N.M. Maclaren
2018-10-04 15:48       ` Paul Koning
2018-10-04 16:20         ` N.M. Maclaren
     [not found]     ` <CAO9iq9F0oW35Ke3PjHM1hgZ_vjyq5H_gLYy=zLyUB5x1xBxrrg@mail.gmail.com>
2018-10-04 18:51       ` Paul Koning
2018-10-05  8:44         ` N.M. Maclaren

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