OSDN Git Service

* gcc/config/m68k/m68k.c (m68k_delegitimize_address): Also expect
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2010 19:45:55 +0000 (19:45 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 16 Nov 2010 19:45:55 +0000 (19:45 +0000)
LABEL_REF in UNSPEC operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166816 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68k/m68k.c

index 30a45df..9481c89 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
+       LABEL_REF in UNSPEC operand.
+
 2010-11-16  Jan Hubicka  <jh@suse.cz>
 
        * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
@@ -36,7 +41,7 @@
        Remove unused variable.
        (score_store_multiple_operation): Likewise.
        * config/score/score7.c (score7_return_in_memory): Constify arguments.
-        (score7_in_small_data_p, score7_function_value): Likewise.
+       (score7_in_small_data_p, score7_function_value): Likewise.
        (score7_trampoline_init): Use LCT_NORMAL.
        (score7_print_operand): Initialize code as UNKNOWN.
        * config/score/score3.h (score3_return_in_memory): Update prototype.
        (dwarf2out_init): Do not emit debug section switches here, allocate a
        vec for macinfo, when required.
        (dwarf2out_finish): First switch to debug_abbrev_section here.
-       debug_line_section,  debug_macinfo_section, Likewise.  
+       debug_line_section,  debug_macinfo_section, Likewise.
        Check that the pubtypes table has at least one unpruned entry before
        trying to emit it.
 
 
 2010-11-11  Richard Henderson  <rth@redhat.com>
 
-        * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
+       * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
 
 2010-11-11  Richard Henderson  <rth@redhat.com>
 
        with lowercase letters and remove trailing '.'.  Fix typo in
        diagnostic.
        * passes.c (position_pass): Start diagnostic with lowercase
-       letter. 
+       letter.
        * plugin.c (add_new_plugin, parse_plugin_arg_opt,
        register_callback, try_init_one_plugin): Start diagnostics with
        lowercase letters.
index 0132cbf..0805d3b 100644 (file)
@@ -4684,7 +4684,7 @@ m68k_delegitimize_address (rtx orig_x)
          && XINT (unspec, 1) != UNSPEC_RELOC32))
     return orig_x;
   x = XVECEXP (unspec, 0, 0);
-  gcc_assert (GET_CODE (x) == SYMBOL_REF);
+  gcc_assert (GET_CODE (x) == SYMBOL_REF || GET_CODE (x) == LABEL_REF);
   if (unspec != XEXP (addr.offset, 0))
     x = gen_rtx_PLUS (Pmode, x, XEXP (XEXP (addr.offset, 0), 1));
   if (addr.index)