* [PTX] unbreak libgfortran
@ 2016-08-29 19:13 Nathan Sidwell
0 siblings, 0 replies; only message in thread
From: Nathan Sidwell @ 2016-08-29 19:13 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Libgfortran's configure tests cause it to think localtime_r doesn't exist, and
then the build dies with an extern decl/static defn mismatch.
This hardwires the expected newlib reoutines, in the same manner as mips doesn.
nathan
[-- Attachment #2: gfort.patch --]
[-- Type: text/x-patch, Size: 2360 bytes --]
2016-08-29 Nathan Sidwell <nathan@acm.org>
* configure.ac (nvptx-*): Hardwire newlib.
* configure: Rebuilt.
Index: configure.ac
===================================================================
--- configure.ac (revision 239820)
+++ configure.ac (working copy)
@@ -276,6 +276,8 @@ AC_CHECK_MEMBERS([struct stat.st_blksize
case "${host}--x${with_newlib}" in
mips*--xyes)
hardwire_newlib=1;;
+ nvptx*--xyes)
+ hardwire_newlib=1;;
esac
# Check for library functions.
Index: configure
===================================================================
--- configure (revision 239820)
+++ configure (working copy)
@@ -10308,7 +10308,7 @@ _LT_EOF
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
else
- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
fi
aix_use_runtimelinking=no
@@ -14157,7 +14157,7 @@ _LT_EOF
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
else
- export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
fi
aix_use_runtimelinking=no
@@ -16471,6 +16471,8 @@ fi
case "${host}--x${with_newlib}" in
mips*--xyes)
hardwire_newlib=1;;
+ nvptx*--xyes)
+ hardwire_newlib=1;;
esac
# Check for library functions.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-29 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-29 19:13 [PTX] unbreak libgfortran Nathan Sidwell
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).