Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools/gcc Add an inline ex script to modify configargs.h for...
details: https://anonhg.NetBSD.org/src/rev/d52af9e90366
branches: trunk
changeset: 768499:d52af9e90366
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 17 18:34:13 2011 +0000
description:
Add an inline ex script to modify configargs.h for powerpc to auto-enable
-msoft-float.
diffstat:
tools/gcc/mknative-gcc | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r ff6ed38d1cff -r d52af9e90366 tools/gcc/mknative-gcc
--- a/tools/gcc/mknative-gcc Wed Aug 17 18:33:03 2011 +0000
+++ b/tools/gcc/mknative-gcc Wed Aug 17 18:34:13 2011 +0000
@@ -1,5 +1,5 @@
#!/bin/sh
-# $NetBSD: mknative-gcc,v 1.61 2011/07/03 12:26:02 mrg Exp $
+# $NetBSD: mknative-gcc,v 1.62 2011/08/17 18:34:13 matt Exp $
#
# Shell script for generating all the constants needed for a native
# platform build of src/gnu/dist/gcc.
@@ -617,6 +617,32 @@
esac
for f in $hfiles; do
write_c $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h <$_TMPDIR/gcc/$f.h
+ if [ "${MACHINE_ARCH}" = "powerpc" -a "${f}" = "configargs" ]
+ then
+ ex <<__EOF__ $_OUTDIRBASE/usr.bin/$_subdir/arch/$MACHINE_ARCH/$f.h
+/configuration_arguments/ s/$//
+ya
+i
+#ifdef _SOFT_FLOAT_
+.
+pu
+s/";$/ -with-float=soft";/
+a
+#else
+#endif
+.
+. m +1
+/configure_default_options/ s/{ NULL.*$//
+a
+#ifdef _SOFT_FLOAT_
+ { "float", "soft" },
+#endif
+ { NULL, NULL }
+};
+.
+wq
+__EOF__
+ fi
done
# keep identical
Home |
Main Index |
Thread Index |
Old Index