From: John David Anglin Date: Fri, 20 Sep 2013 23:58:43 +0000 (+0000) Subject: re PR middle-end/56791 (Segmentation fault in stage2 gengenrtl -- Incorrect instructi... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=96ce28a308fd1bd2c227475b4998a60709885aa0;p=gcc.git re PR middle-end/56791 (Segmentation fault in stage2 gengenrtl -- Incorrect instruction sequence generated by reload) PR middle-end/56791 * config/pa/pa.c (pa_option_override): Disable auto increment and decrement instructions until reload is completed. From-SVN: r202807 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2358b4a74ab..6f7454e8377 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2013-09-20 John David Anglin + 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. diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index b6f54108214..260830f00d7 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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)