gcc 4.0 compiles kernel with altivec

Anton Blanchard anton at samba.org
Wed Feb 16 20:01:35 EST 2005


Hi,

A recent gcc 4.0 snapshot is using altivec instructions in the kernel:

c0000000000d6434 <.wait_for_completion>:
c0000000000d6434:       7c 00 42 a6     mfvrsave r0

Its probably because we are passing the -mcpu=970 option:

ifeq ($(CONFIG_POWER4_ONLY),y)
ifeq ($(CONFIG_ALTIVEC),y)
        CFLAGS += $(call cc-option,-mcpu=970)
else

Anton



More information about the Linuxppc64-dev mailing list