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 inline-asm/19111] Alignment ignored if optimizing for size


------- Additional Comments From rth at gcc dot gnu dot org  2004-12-21 17:25 -------
If movaps crashes in main, it means your libc is broken and isn't aligning
the stack before main.  GCC does add some code to main to realign the end
of the stack, but that doesn't help main itself.  You'd have to move your
code to a new function like so:

    static int __attribute__((noinline)) main1 (int ac, char **av)
    {
      /* whatever */
    }
    int main(int ac, char **av)
    {
      return main1(ac, av);
    }

In either case, gcc has done all it can do.

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


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


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