diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-07-11 13:41:30 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2007-07-11 13:41:30 +0000 |
commit | 039cb258334f8c69acd5de99c33f781cff49c535 (patch) | |
tree | 126234b47f6f04ccf88b262a03f6a266370e05c3 /gcc | |
parent | 9e32002f0d583eb8bba204d112dc0a5038f2d899 (diff) | |
download | gcc-039cb258334f8c69acd5de99c33f781cff49c535.zip gcc-039cb258334f8c69acd5de99c33f781cff49c535.tar.gz gcc-039cb258334f8c69acd5de99c33f781cff49c535.tar.bz2 |
spu.c (spu_optimization_options): Remove setting of parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
* config/spu/spu.c (spu_optimization_options): Remove setting of
parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
(spu_override_options): Move it here.
From-SVN: r126549
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/spu/spu.c | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bddc4a6..a90b025 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-07-11 Ulrich Weigand <uweigand@de.ibm.com> + + * config/spu/spu.c (spu_optimization_options): Remove setting of + parameter PARAM_MAX_COMPLETELY_PEEL_TIMES. + (spu_override_options): Move it here. + 2007-07-11 Richard Sandiford <richard@codesourcery.com> * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and diff --git a/gcc/config/spu/spu.c b/gcc/config/spu/spu.c index 3b7baaf..7e28167 100644 --- a/gcc/config/spu/spu.c +++ b/gcc/config/spu/spu.c @@ -266,11 +266,6 @@ struct gcc_target targetm = TARGET_INITIALIZER; void spu_optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED) { - /* Small loops will be unpeeled at -O3. For SPU it is more important - to keep code small by default. */ - if (!flag_unroll_loops && !flag_peel_loops) - PARAM_VALUE (PARAM_MAX_COMPLETELY_PEEL_TIMES) = 1; - /* Override some of the default param values. With so many registers larger values are better for these params. */ MAX_PENDING_LIST_LENGTH = 128; @@ -286,6 +281,12 @@ spu_optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED) void spu_override_options (void) { + /* Small loops will be unpeeled at -O3. For SPU it is more important + to keep code small by default. */ + if (!flag_unroll_loops && !flag_peel_loops + && !PARAM_SET_P (PARAM_MAX_COMPLETELY_PEEL_TIMES)) + PARAM_VALUE (PARAM_MAX_COMPLETELY_PEEL_TIMES) = 1; + flag_omit_frame_pointer = 1; if (align_functions < 8) |