Add support for --enable-target-optspace to compile with -Os instead of -O2, and...
authorMichael Meissner <gnu@the-meissners.org>
Wed, 22 Apr 1998 16:32:24 +0000 (16:32 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Wed, 22 Apr 1998 16:32:24 +0000 (16:32 +0000)
ChangeLog
configure.in

index c18c04a..e671618 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Wed Apr 22 12:30:10 1998  Michael Meissner  <meissner@cygnus.com>
+
+       * configure.in (target_makefile_frag): If --enable-target-optspace,
+       use -Os to compile target libraries rather than -O2.  Default to
+       using -Os for d10v and m32r if --{enable,disable}-target-optspace is
+       not used.
+start-sanitize-d30v
+       * configure.in (target_cflags): Ditto for d30v.
+end-sanitize-d30v
+
+
 Tue Apr 21 23:06:54 1998  Tom Tromey  <tromey@cygnus.com>
 
        * Makefile.in (all-bfd): Depend on all-intl.
index fbf5f55..e95af52 100644 (file)
@@ -330,6 +330,28 @@ case "${target}" in
     ;;
 esac
 
+# If --enable-target-optspace always use -Os instead of -O2 to build
+# the target libraries, similarly if it is not specified, use -Os
+# on selected platforms.
+case "${enable_target_optspace}:${target}" in
+  yes:*)
+    target_makefile_frag="${target_makefile_frag} config/mt-ospace"
+    ;;
+  :m32r-* |  :d10v-*)
+    target_makefile_frag="${target_makefile_frag} config/mt-ospace"
+    ;;
+# start-sanitize-d30v
+  :d30v-*-*)
+    target_makefile_frag="${target_makefile_frag} config/mt-ospace"
+    ;;
+# end-sanitize-d30v
+  no:*)
+    ;;
+  *)
+    echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
+    ;;
+esac
+
 skipdirs=
 gasdir=gas
 use_gnu_ld=