diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2008-04-24 17:58:47 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2008-04-24 17:58:47 +0000 |
commit | 94f4765cb0ddef2405895f865e4f3baef3d32beb (patch) | |
tree | b29168eff315fb2a24421df727b98911dde4d80d /gcc | |
parent | 27995ee1b8257f1ad72929bdbfff8ebf06d052f9 (diff) | |
download | gcc-94f4765cb0ddef2405895f865e4f3baef3d32beb.zip gcc-94f4765cb0ddef2405895f865e4f3baef3d32beb.tar.gz gcc-94f4765cb0ddef2405895f865e4f3baef3d32beb.tar.bz2 |
rs6000.opt (mspe): Remove Var property.
* config/rs6000/rs6000.opt (mspe): Remove Var property.
(misel): Likewise.
* config/rs6000/rs6000.h (rs6000_spe): Declare.
(rs6000_isel): Likewise.
* config/rs6000/rs6000.c (rs6000_spe): New variable.
(rs6000_isel): New variable.
(rs6000_handle_option): Handle OPT_mspe and OPT_misel.
Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
From-SVN: r134643
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 11 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 16 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.opt | 4 |
4 files changed, 31 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 09609f2..b12617c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2008-04-03 Nathan Froyd <froydnj@codesourcery.com> + Nathan Sidwell <nathan@codesourcery.com> + + * config/rs6000/rs6000.opt (mspe): Remove Var property. + (misel): Likewise. + * config/rs6000/rs6000.h (rs6000_spe): Declare. + (rs6000_isel): Likewise. + * config/rs6000/rs6000.c (rs6000_spe): New variable. + (rs6000_isel): New variable. + (rs6000_handle_option): Handle OPT_mspe and OPT_misel. + 2008-04-24 Jakub Jelinek <jakub@redhat.com> PR c++/35758 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 8811ea5..bf20963 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -174,9 +174,15 @@ int rs6000_ieeequad; /* Nonzero to use AltiVec ABI. */ int rs6000_altivec_abi; +/* Nonzero if we want SPE SIMD instructions. */ +int rs6000_spe; + /* Nonzero if we want SPE ABI extensions. */ int rs6000_spe_abi; +/* Nonzero to use isel instructions. */ +int rs6000_isel; + /* Nonzero if floating point operations are done in the GPRs. */ int rs6000_float_gprs = 0; @@ -2177,11 +2183,21 @@ rs6000_handle_option (size_t code, const char *arg, int value) rs6000_parse_yes_no_option ("vrsave", arg, &(TARGET_ALTIVEC_VRSAVE)); break; + case OPT_misel: + rs6000_explicit_options.isel = true; + rs6000_isel = value; + break; + case OPT_misel_: rs6000_explicit_options.isel = true; rs6000_parse_yes_no_option ("isel", arg, &(rs6000_isel)); break; + case OPT_mspe: + rs6000_explicit_options.spe = true; + rs6000_spe = value; + break; + case OPT_mspe_: rs6000_explicit_options.spe = true; rs6000_parse_yes_no_option ("spe", arg, &(rs6000_spe)); diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 62f1d38..ed20d8b 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -367,6 +367,8 @@ extern int rs6000_long_double_type_size; extern int rs6000_ieeequad; extern int rs6000_altivec_abi; extern int rs6000_spe_abi; +extern int rs6000_spe; +extern int rs6000_isel; extern int rs6000_float_gprs; extern int rs6000_alignment_flags; extern const char *rs6000_sched_insert_nops_str; diff --git a/gcc/config/rs6000/rs6000.opt b/gcc/config/rs6000/rs6000.opt index 18ee828..6ad682f 100644 --- a/gcc/config/rs6000/rs6000.opt +++ b/gcc/config/rs6000/rs6000.opt @@ -190,7 +190,7 @@ Target RejectNegative Joined -mvrsave=yes/no Deprecated option. Use -mvrsave/-mno-vrsave instead misel -Target Var(rs6000_isel) +Target Generate isel instructions misel= @@ -198,7 +198,7 @@ Target RejectNegative Joined -misel=yes/no Deprecated option. Use -misel/-mno-isel instead mspe -Target Var(rs6000_spe) +Target Generate SPE SIMD instructions on E500 mpaired |