diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-11 00:35:31 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-11 00:35:31 +0000 |
commit | 93429286a167d407d4e27a2c4da7bc2eb0453bf7 (patch) | |
tree | 155dcbed4737fbe4a4c5d7dc4012a7669f301b86 /gcc/config/i386 | |
parent | 633beede7f0961739916facb0382f7294eca21bf (diff) | |
download | gcc-93429286a167d407d4e27a2c4da7bc2eb0453bf7.tar.gz |
* final.c (*_MAX_SKIP): Use *_max_skip variables.
* flags.h (align_loops_max_skip, align_jumps_max_skip,
align_labels_max_skip): New global variables.
* toplev.c (align_loops_max_skip, align_jumps_max_skip,
align_labels_max_skip): New global variables.
(toplev_main): Set new variables.
* i386.c (override_options): Set max_skip values.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46919 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r-- | gcc/config/i386/i386.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 47f8e7859f3..db06683ffc5 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -796,19 +796,21 @@ override_options () const int target_enable; /* Target flags to enable. */ const int target_disable; /* Target flags to disable. */ const int align_loop; /* Default alignments. */ + const int align_loop_max_skip; const int align_jump; + const int align_jump_max_skip; const int align_func; const int branch_cost; } const processor_target_table[PROCESSOR_max] = { - {&i386_cost, 0, 0, 2, 2, 2, 1}, - {&i486_cost, 0, 0, 4, 4, 4, 1}, - {&pentium_cost, 0, 0, -4, -4, -4, 1}, - {&pentiumpro_cost, 0, 0, 4, -4, 4, 1}, - {&k6_cost, 0, 0, -5, -5, 4, 1}, - {&athlon_cost, 0, 0, 4, -4, 4, 1}, - {&pentium4_cost, 0, 0, 2, 2, 2, 1} + {&i386_cost, 0, 0, 4, 3, 4, 3, 4, 1}, + {&i486_cost, 0, 0, 16, 15, 16, 15, 16, 1}, + {&pentium_cost, 0, 0, 16, 7, 16, 7, 16, 1}, + {&pentiumpro_cost, 0, 0, 16, 15, 16, 7, 16, 1}, + {&k6_cost, 0, 0, 32, 7, 32, 7, 32, 1}, + {&athlon_cost, 0, 0, 16, 7, 64, 7, 16, 1}, + {&pentium4_cost, 0, 0, 0, 0, 0, 0, 0, 1} }; static struct pta @@ -967,11 +969,19 @@ override_options () /* Default align_* from the processor table. */ #define abs(n) (n < 0 ? -n : n) if (align_loops == 0) - align_loops = 1 << abs (processor_target_table[ix86_cpu].align_loop); + { + align_loops = processor_target_table[ix86_cpu].align_loop; + align_loops_max_skip = processor_target_table[ix86_cpu].align_loop_max_skip; + } if (align_jumps == 0) - align_jumps = 1 << abs (processor_target_table[ix86_cpu].align_jump); + { + align_jumps = processor_target_table[ix86_cpu].align_jump; + align_jumps_max_skip = processor_target_table[ix86_cpu].align_jump_max_skip; + } if (align_functions == 0) - align_functions = 1 << abs (processor_target_table[ix86_cpu].align_func); + { + align_functions = processor_target_table[ix86_cpu].align_func; + } /* Validate -mpreferred-stack-boundary= value, or provide default. The default of 128 bits is for Pentium III's SSE __m128, but we |