This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH,AVR] Fix PR27386 wrong code generated.
- From: Andy H <hutchinsonandy at aim dot com>
- To: gcc-patches at gcc dot gnu dot org, Anatoly Sokolov <aesok at post dot ru>, "Weddington, Eric" <eweddington at cso dot atmel dot com>
- Date: Sun, 01 Jun 2008 14:05:13 -0400
- Subject: [PATCH,AVR] Fix PR27386 wrong code generated.
This patch fixes
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27386
for AVR target.
The failure is caused by emit_single_push_insn in expr.c which
generates wrong code for any POST_DEC target
with PUSH_ROUNDING defined.
For AVR we simply undefine push rounding in target (we don't need any!)
and thus avoid problem.
Bootstrapped and tested on AVR target against full testsuite. There were
no regressions and 20 less failures.
Ok for 4.4 mainline?
2008-06-01 Andy Hutchinson <hutchinsonandy@aim.com>
PR target/27386
* config/avr/avr.h: (PUSH_ROUNDING): Remove.
Attachment:
nopush.patch
Description: Text document