aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2005-12-28 22:37:42 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2005-12-28 22:37:42 +0000
commit6e0eea31374c18e8456dd42e8052029107579312 (patch)
tree69734e74bcb1c8dd31ac374c9fccbf2c819fe104 /gcc
parent03345deb5e9e0b9c4442338366467a8050164a53 (diff)
downloadgcc-6e0eea31374c18e8456dd42e8052029107579312.zip
gcc-6e0eea31374c18e8456dd42e8052029107579312.tar.gz
gcc-6e0eea31374c18e8456dd42e8052029107579312.tar.bz2
config.gcc (mt-*-*): Add --with-arch support.
* config.gcc (mt-*-*): Add --with-arch support. (--with): Print accepted options on error. * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define. * config/mt/mt.c (DEF_VEC_P(basic_block), DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here. From-SVN: r109124
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config.gcc20
-rw-r--r--gcc/config/mt/mt.c6
-rw-r--r--gcc/config/mt/mt.h5
4 files changed, 35 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2b7ff26..c06baee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2005-12-28 Nathan Sidwell <nathan@codesourcery.com>
+
+ * config.gcc (mt-*-*): Add --with-arch support.
+ (--with): Print accepted options on error.
+ * config/mt/mt.h (OPTION_DEFAULT_SPECS): Define.
+
+ * config/mt/mt.c (DEF_VEC_P(basic_block),
+ DEF_VEC_ALLOC_P(basic_bloc,heap)): Remove from here.
+
2005-12-28 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/25394
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 6c8a2d4..5e2216c 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2669,6 +2669,25 @@ case "${target}" in
esac
;;
+ mt-*-*)
+ supported_defaults="arch"
+
+ case "$with_arch" in
+ "" \
+ | ms1-64-001 \
+ | ms1-16-002 \
+ | ms1-16-003 \
+ | ms2 \
+ | "")
+ # OK
+ ;;
+ *)
+ echo "Unknown arch used in --with-arch=$with_arch" 1>&2
+ exit 1
+ ;;
+ esac
+ ;;
+
powerpc*-*-* | rs6000-*-*)
supported_defaults="cpu float tune"
@@ -2923,6 +2942,7 @@ do
;;
*)
echo "This target does not support --with-$option." 2>&1
+ echo "Valid --with options are: $supported_defaults" 2>&1
exit 1
;;
esac
diff --git a/gcc/config/mt/mt.c b/gcc/config/mt/mt.c
index 6ee7ce9..2906e3c 100644
--- a/gcc/config/mt/mt.c
+++ b/gcc/config/mt/mt.c
@@ -1654,11 +1654,7 @@ void mt_add_loop (void)
filling. */
#define MAX_LOOP_LENGTH (200 * 4)
-/* We need to keep a vector of basic blocks */
-DEF_VEC_P (basic_block);
-DEF_VEC_ALLOC_P (basic_block,heap);
-
-/* And a vector of loops */
+/* We need to keep a vector of loops */
typedef struct loop_info *loop_info;
DEF_VEC_P (loop_info);
DEF_VEC_ALLOC_P (loop_info,heap);
diff --git a/gcc/config/mt/mt.h b/gcc/config/mt/mt.h
index 3b5bb6a..9764d7f 100644
--- a/gcc/config/mt/mt.h
+++ b/gcc/config/mt/mt.h
@@ -38,6 +38,11 @@ enum epilogue_type
extern enum processor_type mt_cpu;
+/* Support for a compile-time default CPU, et cetera. The rules are:
+ --with-arch is ignored if -march is specified. */
+#define OPTION_DEFAULT_SPECS \
+ {"arch", "%{!march=*:-march=%(VALUE)}" }
+
/* A C string constant that tells the GCC driver program options to pass to
the assembler. */
#undef ASM_SPEC