[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Stack use - possible bug
From: |
Jan Waclawek |
Subject: |
Re: [avr-gcc-list] Stack use - possible bug |
Date: |
Wed, 9 Jun 2010 19:49:26 +0200 |
>> For -O0 it works but upgrading to -Os makes the code non functional.
>
>Indeed. The bug is present only with -O2, -O3 and -Os. -O0 and -O1 produces
>stack frame of expected size...
Narrowed the problem down to -fstrict-aliasing (with no optimization flags
otherwise). Accrodingly, using -Os (or >= -O2) together with
-fno-strict-aliasing produces the expected stack frame size.
The same applies for the example with inlined functions provided by Wouter,
which further enhances my belief that it is the same bug.
Reading about what -fstrict-aliasing is intended to achieve makes me
incrementally understand less and less... :-(
JW
- [avr-gcc-list] Re: Stack use - possible bug, (continued)
- Re: [avr-gcc-list] Stack use - possible bug, Dale, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Paulo Marques, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Dale, 2010/06/09
- RE: [avr-gcc-list] Stack use - possible bug, Weddington, Eric, 2010/06/09
- RE: [avr-gcc-list] Stack use - possible bug, Jan Waclawek, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Wouter van Gulik, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Jan Waclawek, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Wouter van Gulik, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Jan Waclawek, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug,
Jan Waclawek <=
- RE: [avr-gcc-list] Stack use - possible bug, Weddington, Eric, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Paulo Marques, 2010/06/09
- RE: [avr-gcc-list] Stack use - possible bug, Colin O'Flynn, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Paulo Marques, 2010/06/09
- RE: [avr-gcc-list] Stack use - possible bug, Weddington, Eric, 2010/06/09
- Re: [avr-gcc-list] Stack use - possible bug, Jan Waclawek, 2010/06/09