[power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran
Commit Message
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.
Jakub
Comments
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
@@ -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])
;;
*)
@@ -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