Message ID | 20220103152307.GJ2664@tucnak |
---|---|
State | New |
Headers | show |
Series | [power-iee128] libgfortran: Use -mno-gnu-attribute in libgfortran | expand |
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
--- 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