This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]