diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-18 21:08:35 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-18 21:08:35 +0000 |
commit | e265a6da77f2623966ed1a19d1ab6b809ec97fef (patch) | |
tree | 8e12ef5e22b0f9baabc992a10805a642c7d0bec6 /gcc/expr.c | |
parent | 78d140c990f84aa03c72b5f074683bf3f7b6307f (diff) | |
download | gcc-e265a6da77f2623966ed1a19d1ab6b809ec97fef.tar.gz |
* emit-rtl.c (gen_const_mem): New.
* rtl.h (gen_const_mem): Declare.
* expr.c (do_tablejump): Use it.
* varasm.c (force_const_mem): Likewise.
* config/darwin.c (machopic_indirect_data_reference): Likewise.
(machopic_legitimize_pic_address): Likewise.
* config/arm/arm.c (legitimize_pic_address): Likewise.
* config/i386/i386.c (legitimize_pic_address): Likewise.
(legitimize_tls_address): Likewise.
* config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
* config/ia64/ia64.md (load_fptr): Likewise.
* config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
* config/pa/pa.c (legitimize_pic_address): Likewise.
* config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
(rs6000_emit_move): Likewise.
* config/s390/s390.c (legitimize_pic_address): Likewise.
(legitimize_tls_address): Likewise.
* config/s390/s390.md (casesi): Likewise.
* config/sh/sh.c (sh_reorg): Likewise.
* config/sparc/sparc.c (legitimize_pic_address): Likewise.
* config/v850/v850.md (casesi): Likewise.
* config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
* config/sh/sh.c (prepare_move_operands): Remove incorrect
use of MEM_READONLY_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/expr.c b/gcc/expr.c index a6c7e8e580e..c0f10d914bb 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -8737,9 +8737,7 @@ do_tablejump (rtx index, enum machine_mode mode, rtx range, rtx table_label, #endif index = memory_address_noforce (CASE_VECTOR_MODE, index); temp = gen_reg_rtx (CASE_VECTOR_MODE); - vector = gen_rtx_MEM (CASE_VECTOR_MODE, index); - MEM_READONLY_P (vector) = 1; - MEM_NOTRAP_P (vector) = 1; + vector = gen_const_mem (CASE_VECTOR_MODE, index); convert_move (temp, vector, 0); emit_jump_insn (gen_tablejump (temp, table_label)); |