This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
Test case gcc.c-torture/excecute/20010122-1.c fails the execution tests for optimization levels -O1, -O2, -O3-g and -Os while passing for -O0. Tests were run with simulavr for the atmega128. I do not have a clear opinion about what is going wrong. The fact that the test passes for -O0 is reason for being suspicious, however. Yours, Björn
Also fails -O0 in latest 4.3 HEAD: http://gcc.gnu.org/ml/gcc-testresults/2007-05/msg01434.html but -O0 still passes in 4.2.1 20070525: http://gcc.gnu.org/ml/gcc-testresults/2007-05/msg01304.html
*** This bug has been marked as a duplicate of 21080 ***
Subject: Bug 21078 Author: hutchinsonandy Date: Sun Nov 15 04:10:20 2009 New Revision: 154188 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154188 Log: PR target/21078, 21080 * config/avr/avr.c (avr_return_addr_rtx): New function for builtin_return_address. (expand_prologue): Calculate stack usage. (avr_asm_function_end_prologue): Output stack size and offset label. * config/avr/avr.h (RETURN_ADDR_RTX): Replace. (machine_function): Add stack_usage. * config/avr/avr-protos.h (avr_return_addr_rtx): New function. Modified: trunk/gcc/ChangeLog trunk/gcc/config/avr/avr-protos.h trunk/gcc/config/avr/avr.c trunk/gcc/config/avr/avr.h