Module Name: src
Committed By: matt
Date: Wed Aug 17 18:34:13 UTC 2011
Modified Files:
src/tools/gcc: mknative-gcc
Log Message:
Add an inline ex script to modify configargs.h for powerpc to auto-enable
-msoft-float.
To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/tools/gcc/mknative-gcc
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tools/gcc/mknative-gcc
diff -u src/tools/gcc/mknative-gcc:1.61 src/tools/gcc/mknative-gcc:1.62
--- src/tools/gcc/mknative-gcc:1.61 Sun Jul 3 12:26:02 2011
+++ src/tools/gcc/mknative-gcc Wed Aug 17 18:34:13 2011
@@ -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