Preventing gcc from aligning stack???

Jeff Garzik jgarzik en mandrakesoft.com
Dom Ene 23 04:58:25 CST 2000


Is this really necessary in modern gcc versions, such as 2.95 and
thereafter?

Snip 2.3.x arch/i386/Makefile:

# prevent gcc from keeping the stack 16 byte aligned
CFLAGS += $(shell if $(CC) -mpreferred-stack-boundary=2 -S -o /dev/null
-xc /dev/null >/dev/null 2>&1; then echo "-mpreferred-stack-boundary=2";
fi)                                                                                        

-- 
Jeff Garzik         | Andre the Giant has a posse.
Building 1024       |
MandrakeSoft, Inc.  |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda