OSDN Git Service

PR rtl-optimization/47918
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Oct 2011 10:48:32 +0000 (10:48 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Oct 2011 10:48:32 +0000 (10:48 +0000)
* reload1.c (set_initial_label_offsets): Use initial offsets
for labels on the nonlocal_goto_handler_labels chain.

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

gcc/ChangeLog
gcc/reload1.c

index 06a4352..ae569a8 100644 (file)
@@ -1,3 +1,10 @@
+2011-10-28  Julian Brown  <julian@codesourcery.com>
+
+       PR rtl-optimization/47918
+
+       * reload1.c (set_initial_label_offsets): Use initial offsets
+       for labels on the nonlocal_goto_handler_labels chain.
+
 2011-10-28  Iain Sandoe  <iains@gcc.gnu.org>
 
        * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): 
index 6070eaa..04a839e 100644 (file)
@@ -3918,6 +3918,10 @@ set_initial_label_offsets (void)
     if (XEXP (x, 0))
       set_label_offsets (XEXP (x, 0), NULL_RTX, 1);
 
+  for (x = nonlocal_goto_handler_labels; x; x = XEXP (x, 1))
+    if (XEXP (x, 0))
+      set_label_offsets (XEXP (x, 0), NULL_RTX, 1);
+
   for_each_eh_label (set_initial_eh_label_offset);
 }