diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2005-05-26 05:28:04 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2005-05-26 05:28:04 +0000 |
commit | 55bea00ab059beb1a892c190adce0fe590aabb7a (patch) | |
tree | a7580587eb22cfa0994cf37a2c34b225a64d7577 /gcc/config/cris | |
parent | 97471d8f5fe2ae5e17ae37af6f9945631a892214 (diff) | |
download | gcc-55bea00ab059beb1a892c190adce0fe590aabb7a.zip gcc-55bea00ab059beb1a892c190adce0fe590aabb7a.tar.gz gcc-55bea00ab059beb1a892c190adce0fe590aabb7a.tar.bz2 |
opt-functions.awk (var_type): New function.
* opt-functions.awk (var_type): New function.
(var_set): Use CLVC_STRING if var_type returns "const char *".
* opth-gen.awk: Use var_type to find out the types of variables.
Don't print comments above each "extern" definition.
* optc-gen.awk: Use var_type in the same way.
* opts.h (cl_var_cond): Rename to...
(cl_var_type): ...this. Add CLVC_STRING.
(cl_option): Make "flag_var" a "void *" pointer. Replace "var_cond"
with "var_type".
* opts.c (handle_option, option_enabled): Update after above name
change. Cast flag_var before using it. Handle CLVC_STRING.
* config/alpha/alpha.h (alpha_tls_size): Delete.
* config/alpha/alpha.c (alpha_tls_size, alpha_cpu_string)
(alpha_tune_string, alpha_tp_string, alpha_fprm_string)
(alpha_fptm_string, alpha_mlat_string): Delete.
(alpha_handle_option): Don't set the above variables here. Use the
integer argument to check the validity of -mtls-size=.
* config/alpha/alpha.opt (mcpu=, mtune=, mfp-rounding-mode=)
(mfp-trap-mode=, mtrap-precision=, mmemory-latency=): Add Var()s.
(mtls-size=): Likewise. Convert to a UInteger and initialize the
variable to 32.
* config/arc/arc.c (arc_cpu_string, arc_text_string)
(arc_data_string, arc_rodata_string): Delete.
(arc_handle_option): Don't set the above variables here.
* config/arc/arc.opt (mcpu=, mtext=, mdata=, mrodata=): Add Var()s
and initialize them.
* config/arm/arm.c (target_fpu_name, target_fpe_name)
(target_float_abi_name, target_abi_name, structure_size_string)
(arm_pic_register_string): Delete.
(arm_handle_option): Don't set the above variables here, except
in the handling of -mhard-float and -msoft-float.
* config/arm/arm.opt (mabi=, mfloat-abi=, mfp=, mfpe=, mfpu=)
(mpic-register=, mstructure-size-boundary=): Add Var()s.
* config/avr/avr.c (avr_init_stack, avr_mcu_name, TARGET_HANDLE_OPTION)
(avr_handle_option): Delete.
* config/avr/avr.opt (mmcu=, minit-stack=): Add Var()s and initialize
them.
* config/bfin/bfin.c (bfin_library_id): Delete.
(bfin_handle_option): Don't set it.
* config/bfin/bfin.opt (mshared-library-id=): Add Var().
* config/c4x/c4x.h (c4x_rpts_cycles): Delete.
* config/c4x/c4x.c (c4x_rpts_cycles): Delete.
(c4x_handle_option): Don't set c4x_rpts_cycles here.
* config/c4x/c4x.opt (mrpts=): Add Var().
* config/cris/aout.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't set
cris_elinux_stacksize_str here.
* config/cris/aout.opt (melinux-stacksize=): Add Var().
* config/cris/cris.h (cris_max_stackframe_str, cris_cpu_str)
(cris_tune_str, cris_elinux_stacksize_str): Delete.
* config/cris/cris.c (cris_max_stackframe_str, cris_cpu_str)
(cris_tune_str, cris_elinux_stacksize_str): Delete.
(cris_handle_option): Don't set the above variables here.
* config/cris/cris.opt (mcpu=, march=, mtune=, mmax-stackframe=)
(max-stackframe=): Add Var()s.
* config/i386/i386.h (ix86_tune_string, ix86_arch_string): Delete.
* config/i386/i386.c (ix86_cmodel_string, ix86_asm_string)
(ix86_tls_dialect_string, ix86_tune_string, ix86_arch_string)
(ix86_fpmath_string, ix86_regparm_string, ix86_align_loops_string)
(ix86_align_jumps_string, ix86_preferred_stack_boundary_string)
(ix86_branch_cost_string, ix86_align_funcs_string): Delete.
(ix86_handle_option): Don't set the above variables here.
* config/i386/i386.opt (malign-functions=, malign-jumps=)
(malign-loops=, march=, masm=, mbranch-cost=, mcmodel=, mfpmath=)
(mpreferred-stack-boundary=, mregparm=, mtls-dialect=, mtune=): Add
Var()s.
* config/ia64/ia64.h (ia64_tls_size): Delete.
* config/ia64/ia64.c (ia64_tls_size): Delete.
(ia64_handle_option): Treat -mtls-size= as a UInteger option,
reading the integer argument from the "value" parameter. Don't
set ia64_tls_size here.
* config/ia64/ia64.opt (mtls-size=): Turn into a UInteger option.
Add Var() and Init().
* config/m32r/m32r.h (m32r_cache_flush_func): Delete.
(m32r_cache_flush_trap): Delete.
* config/m32r/m32r.c (m32r_cache_flush_func): Delete.
(m32r_cache_flush_trap): Delete.
(m32r_handle_option): Don't set the above variables when handling
-mflush-func= and -mflush-trap=.
* config/m32r/m32r.opt (-mflush-func=, -mflush-trap=): Add Var()s
and Init()s.
* config/mips/mips.h (mips_cache_flush_func): Delete.
* config/mips/mips.c (mips_arch_string, mips_tune_string)
(mips_cache_flush_func): Delete.
(mips_handle_option): Don't set the above variables when handling
-march=, -mtune= and -mflush-func=.
* config/mips/mips.opt (march=, mflush-func=, mtune=): Add Var()s.
* config/s390/s390.c (s390_arch_string): Delete.
(s390_handle_option): Don't set it here.
* config/s390/s390.opt (march=): Add Var().
* config/sparc/sparc.h (sparc_cmodel_string): Delete.
* config/sparc/sparc.c (sparc_cmodel_string): Delete.
(sparc_handle_option): Don't set it here.
* config/sparc/sparc.opt (mcmodel=): Add Var().
From-SVN: r100185
Diffstat (limited to 'gcc/config/cris')
-rw-r--r-- | gcc/config/cris/aout.h | 4 | ||||
-rw-r--r-- | gcc/config/cris/aout.opt | 4 | ||||
-rw-r--r-- | gcc/config/cris/cris.c | 26 | ||||
-rw-r--r-- | gcc/config/cris/cris.h | 14 | ||||
-rw-r--r-- | gcc/config/cris/cris.opt | 10 |
5 files changed, 8 insertions, 50 deletions
diff --git a/gcc/config/cris/aout.h b/gcc/config/cris/aout.h index 0b6e61e..f39676c 100644 --- a/gcc/config/cris/aout.h +++ b/gcc/config/cris/aout.h @@ -94,10 +94,6 @@ Boston, MA 02111-1307, USA. */ + MASK_ALIGN_BY_32); \ break; \ \ - case OPT_melinux_stacksize_: \ - cris_elinux_stacksize_str = (ARG); \ - break; \ - \ default: \ break; \ } \ diff --git a/gcc/config/cris/aout.opt b/gcc/config/cris/aout.opt index f51dc2e..b821d57 100644 --- a/gcc/config/cris/aout.opt +++ b/gcc/config/cris/aout.opt @@ -27,6 +27,8 @@ melinux Target Report RejectNegative Compile for the MMU-less Etrax 100-based elinux system +;; We don't parse it currently; it's just passed on to the linker. +;; We might want to do something here someday. melinux-stacksize= -Target Report RejectNegative Joined +Target Report RejectNegative Joined Var(cris_elinux_stacksize_str) -melinux-stacksize=SIZE For elinux, request a specified stack-size for this program diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 81e3ce6..0bc8b8c 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -132,18 +132,6 @@ static tree cris_md_asm_clobbers (tree, tree, tree); static bool cris_handle_option (size_t, const char *, int); -/* This is the argument from the "-max-stack-stackframe=" option. */ -const char *cris_max_stackframe_str; - -/* This is the argument from the "-march=" option. */ -const char *cris_cpu_str; - -/* This is the argument from the "-mtune=" option. */ -const char *cris_tune_str; - -/* This is the argument from the "-melinux-stacksize=" option. */ -const char *cris_elinux_stacksize_str; - /* This is the parsed result of the "-max-stack-stackframe=" option. If it (still) is zero, then there was no such option given. */ int cris_max_stackframe = 0; @@ -2073,20 +2061,6 @@ cris_handle_option (size_t code, const char *arg, int value ATTRIBUTE_UNUSED) + MASK_DATA_ALIGN); break; - case OPT_max_stackframe_: - case OPT_mmax_stackframe_: - cris_max_stackframe_str = arg; - break; - - case OPT_march_: - case OPT_mcpu_: - cris_cpu_str = arg; - break; - - case OPT_mtune_: - cris_tune_str = arg; - break; - default: break; } diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index bdf4823..4f998d0 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -75,23 +75,9 @@ Boston, MA 02111-1307, USA. */ ((MODE) != BLKmode ? GET_MODE_SIZE (MODE) \ : (unsigned) int_size_in_bytes (TYPE)) -/* Check for max allowed stackframe. A "const char *" to be parsed. */ -extern const char *cris_max_stackframe_str; - -/* Which CPU version this is. A "const char *" to be parsed. */ -extern const char *cris_cpu_str; - /* Which CPU version this is. The parsed and adjusted cris_cpu_str. */ extern int cris_cpu_version; -/* Which CPU version to tune for. A "const char *" to be parsed. */ -extern const char *cris_tune_str; - -/* The argument to "-melinux-stacksize=". We don't parse it currently; - it's just passed on to the linker. We might want to do something - here someday. */ -extern const char *cris_elinux_stacksize_str; - /* Changing the order used to be necessary to put the fourth __make_dp argument (a DImode parameter) in registers, to fit with the libfunc parameter passing scheme used for intrinsic functions. FIXME: Check diff --git a/gcc/config/cris/cris.opt b/gcc/config/cris/cris.opt index 0aad8e7..c828f61 100644 --- a/gcc/config/cris/cris.opt +++ b/gcc/config/cris/cris.opt @@ -159,22 +159,22 @@ Target Report RejectNegative Override -mbest-lib-options mcpu= -Target Report RejectNegative Joined Undocumented +Target Report RejectNegative Joined Undocumented Var(cris_cpu_str) march= -Target Report RejectNegative Joined +Target Report RejectNegative Joined Var(cris_cpu_str) VarExists -march=ARCH Generate code for the specified chip or CPU version mtune= -Target Report RejectNegative Joined +Target Report RejectNegative Joined Var(cris_tune_str) -mtune=ARCH Tune alignment for the specified chip or CPU version mmax-stackframe= -Target Report RejectNegative Joined +Target Report RejectNegative Joined Var(cris_max_stackframe_str) -mmax-stackframe=SIZE Warn when a stackframe is larger than the specified size max-stackframe= -Target Report RejectNegative Joined Undocumented +Target Report RejectNegative Joined Undocumented Var(cris_max_stackframe_str) VarExists ; TARGET_SVINTO: Currently this just affects alignment. FIXME: ; Redundant with TARGET_ALIGN_BY_32, or put machine stuff here? |