PR middle-end/56791
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2013 23:58:43 +0000 (23:58 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2013 23:58:43 +0000 (23:58 +0000)
* config/pa/pa.c (pa_option_override): Disable auto increment and
decrement instructions until reload is completed.

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

gcc/ChangeLog
gcc/config/pa/pa.c

index 2358b4a..6f7454e 100644 (file)
@@ -1,5 +1,9 @@
 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
 
+       PR middle-end/56791
+       * config/pa/pa.c (pa_option_override): Disable auto increment and
+       decrement instructions until reload is completed.
+
        * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
        __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
        and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
index b6f5410..260830f 100644 (file)
@@ -513,6 +513,12 @@ pa_option_override (void)
       write_symbols = NO_DEBUG;
     }
 
+#ifdef AUTO_INC_DEC
+  /* FIXME: Disable auto increment and decrement processing until reload
+     is completed.  See PR middle-end 56791.  */
+  flag_auto_inc_dec = reload_completed;
+#endif
+
   /* We only support the "big PIC" model now.  And we always generate PIC
      code when in 64bit mode.  */
   if (flag_pic == 1 || TARGET_64BIT)