* [power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran
[not found] ` <20220103103329.GR2646553@tucnak>
@ 2022-01-03 15:23 ` Jakub Jelinek
2022-01-03 15:27 ` Thomas Koenig
0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2022-01-03 15:23 UTC (permalink / raw)
To: Thomas Koenig
Cc: Michael Meissner, Bill Schmidt, fortran, Segher Boessenkool,
Peter Bergner, David Edelsohn, gcc-patches
On Mon, Jan 03, 2022 at 11:33:32AM +0100, Jakub Jelinek wrote:
> The idea behind this is that libstdc++ is written such that it can handle
> both IBM extended and IEEE quad long double, so its object files are
> compatible with both.
Now tested on powerpc64le-linux (and together with the regenerated file),
ok for power-ieee128?
2022-01-03 Jakub Jelinek <jakub@redhat.com>
* configure.ac (Use -mno-gnu-attribute together with
-mabi=ibmlongdouble or -mabi=ieeelongdouble.
* configure: Regenerated.
--- libgfortran/configure.ac.jj 2021-12-31 11:08:19.032835533 +0000
+++ libgfortran/configure.ac 2022-01-03 10:32:16.927834682 +0000
@@ -163,9 +163,9 @@ if test "x$GCC" = "xyes"; then
#error long double is double
#endif]],
[[(void) 0;]])],
- [AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble";
- AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble";
- CFLAGS="$CFLAGS -mabi=ibmlongdouble";
+ [AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
+ AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
+ CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
have_real_17=yes])
;;
*)
--- libgfortran/configure.jj 2021-12-31 11:08:19.032835533 +0000
+++ libgfortran/configure 2022-01-03 13:55:38.684926082 +0000
@@ -6025,9 +6025,9 @@ main ()
}
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
- AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble";
- AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble";
- CFLAGS="$CFLAGS -mabi=ibmlongdouble";
+ AM_FCFLAGS="$AM_FCFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
+ AM_CFLAGS="$AM_CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
+ CFLAGS="$CFLAGS -mabi=ibmlongdouble -mno-gnu-attribute";
have_real_17=yes
fi
rm -f conftest.err conftest.i conftest.$ac_ext
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran
2022-01-03 15:23 ` [power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran Jakub Jelinek
@ 2022-01-03 15:27 ` Thomas Koenig
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Koenig @ 2022-01-03 15:27 UTC (permalink / raw)
To: Jakub Jelinek
Cc: Michael Meissner, Bill Schmidt, fortran, Segher Boessenkool,
Peter Bergner, David Edelsohn, gcc-patches
Hi Jakub,
> On Mon, Jan 03, 2022 at 11:33:32AM +0100, Jakub Jelinek wrote:
>> The idea behind this is that libstdc++ is written such that it can handle
>> both IBM extended and IEEE quad long double, so its object files are
>> compatible with both.
>
> Now tested on powerpc64le-linux (and together with the regenerated file),
> ok for power-ieee128?
Since you posted it, I had already tested this and included it into the
patch I pushed a couple of minutes ago.
So, OK, and I already pushed it :-)
Thanks a lot for your help in this!
Best regards
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-03 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <63b5434e-f8fa-97b3-d357-e25094579b16@netcologne.de>
[not found] ` <bdc02706-a5ae-1389-906d-50c502b87d5f@linux.ibm.com>
[not found] ` <YYA2FMfDR0yehJLA@toto.the-meissners.org>
[not found] ` <541fa494-ce3c-50f2-367b-f0dd492dcf45@netcologne.de>
[not found] ` <ceeae9c4-32eb-f09d-430a-2e24a3e47b02@netcologne.de>
[not found] ` <20220103103329.GR2646553@tucnak>
2022-01-03 15:23 ` [power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran Jakub Jelinek
2022-01-03 15:27 ` Thomas Koenig
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).