PR rtl-optimization/52175
* reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
to frame-related instructions.
gcc/testsuite/
PR rtl-optimization/52175
* gcc.c-torture/compile/pr52175.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184128
138bc75d-0d04-0410-961f-
82ee72b054a4
+2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
+
+ PR rtl-optimization/52175
+ * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
+ to frame-related instructions.
+
2012-02-10 Jason Merrill <jason@redhat.com>
PR c++/51910
2012-02-10 Jason Merrill <jason@redhat.com>
PR c++/51910
if (delay_list == 0 && likely
&& new_thread && !ANY_RETURN_P (new_thread)
&& NONJUMP_INSN_P (new_thread)
if (delay_list == 0 && likely
&& new_thread && !ANY_RETURN_P (new_thread)
&& NONJUMP_INSN_P (new_thread)
+ && !RTX_FRAME_RELATED_P (new_thread)
&& GET_CODE (PATTERN (new_thread)) != ASM_INPUT
&& asm_noperands (PATTERN (new_thread)) < 0)
{
&& GET_CODE (PATTERN (new_thread)) != ASM_INPUT
&& asm_noperands (PATTERN (new_thread)) < 0)
{
+2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
+
+ PR rtl-optimization/52175
+ * gcc.c-torture/compile/pr52175.c: New test.
+
2012-02-10 Jason Merrill <jason@redhat.com>
PR c++/51910
2012-02-10 Jason Merrill <jason@redhat.com>
PR c++/51910
--- /dev/null
+void bad (void);
+char *foo (char *src, char **last)
+{
+ char *dst;
+ int ch;
+ dst = src = (src ? src : *last);
+
+ if (*src == 0)
+ return 0;
+
+ while (src[0])
+ {
+ if (!src[1])
+ {
+ bad ();
+ break;
+ }
+ *dst = *src;
+ dst += 1;
+ src += 2;
+ }
+ *last = src;
+ *dst = 0;
+ return *last;
+}