This is the mail archive of the gcc-bugs@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]

[Bug c/30581] Deeply inlined static functions break stack creation



------- Comment #5 from rearnsha at gcc dot gnu dot org  2007-01-25 17:25 -------
--> volatile char buf[512] /*__attribute__ ((aligned (4)))*/;

WHat makes you think this buffer will be word-aligned?  One of your
sub-routines creates a variable with 33 bytes, and when inlining happens
there's nothing to stop the compiler from packing these structures onto the
stack and starting buf at something like stack-base+33.


-- 

rearnsha at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30581


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