Commit 6e0eea31 by Nathan Sidwell Committed by Nathan Sidwell

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
parent 03345deb
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> 2005-12-28 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/25394 Fix PR tree-optimization/25394
......
...@@ -2669,6 +2669,25 @@ case "${target}" in ...@@ -2669,6 +2669,25 @@ case "${target}" in
esac 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-*-*) powerpc*-*-* | rs6000-*-*)
supported_defaults="cpu float tune" supported_defaults="cpu float tune"
...@@ -2923,6 +2942,7 @@ do ...@@ -2923,6 +2942,7 @@ do
;; ;;
*) *)
echo "This target does not support --with-$option." 2>&1 echo "This target does not support --with-$option." 2>&1
echo "Valid --with options are: $supported_defaults" 2>&1
exit 1 exit 1
;; ;;
esac esac
......
...@@ -1654,11 +1654,7 @@ void mt_add_loop (void) ...@@ -1654,11 +1654,7 @@ void mt_add_loop (void)
filling. */ filling. */
#define MAX_LOOP_LENGTH (200 * 4) #define MAX_LOOP_LENGTH (200 * 4)
/* We need to keep a vector of basic blocks */ /* We need to keep a vector of loops */
DEF_VEC_P (basic_block);
DEF_VEC_ALLOC_P (basic_block,heap);
/* And a vector of loops */
typedef struct loop_info *loop_info; typedef struct loop_info *loop_info;
DEF_VEC_P (loop_info); DEF_VEC_P (loop_info);
DEF_VEC_ALLOC_P (loop_info,heap); DEF_VEC_ALLOC_P (loop_info,heap);
......
...@@ -38,6 +38,11 @@ enum epilogue_type ...@@ -38,6 +38,11 @@ enum epilogue_type
extern enum processor_type mt_cpu; 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 /* A C string constant that tells the GCC driver program options to pass to
the assembler. */ the assembler. */
#undef ASM_SPEC #undef ASM_SPEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment