re PR target/4863 (arm/thumb: code for switch statements: branch out of range)
authorRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 18 Mar 2002 11:27:39 +0000 (11:27 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 18 Mar 2002 11:27:39 +0000 (11:27 +0000)
PR target/4863
* arm.md (tablejump): Make this a define_expand.  For PIC add the
offset to the base of the table.
(thumb_tablejump): Matcher for Thumb tablejump insn.
* config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
as the difference of two labels.
* config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
* config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
tables in the code.
* config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
* arm.c (get_jump_table_size): If the table is not in the text
section, return zero.

From-SVN: r50962

gcc/ChangeLog

index 42a48bbeb7bfe359b1acfe2c2cb46549fadb9828..f2425bae61b9d5d3c64809f8c2f695e4c15fb537 100644 (file)
@@ -1,5 +1,6 @@
 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
 
+       PR target/4863
        * arm.md (tablejump): Make this a define_expand.  For PIC add the
        offset to the base of the table.
        (thumb_tablejump): Matcher for Thumb tablejump insn.