Preventing gcc from aligning stack???

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Sat Jan 22 2000 - 14:59:36 EST


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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:28 EST