endif
ifeq ($(ARCH),sparc)
- CFLAGS+=-ffixed-g2 -ffixed-g3
ifneq ($(CONFIG_SOLARIS),yes)
- CFLAGS+=-ffixed-g1 -ffixed-g6
HELPER_CFLAGS+=-ffixed-i0
endif
endif
-ifeq ($(ARCH),sparc64)
- ifneq ($(CONFIG_SOLARIS),yes)
- CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7
- else
- CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
- endif
-endif
-
ifeq ($(ARCH),alpha)
# Ensure there's only a single GP
CFLAGS+=-msmall-data
ARCH_CFLAGS="${SP_CFLAGS}"
ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3"
+ if test "$solaris" = "no" ; then
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g6"
+ fi
;;
sparc64) if test -z "$sparc_cpu" ; then
ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
ARCH_CFLAGS="${SP_CFLAGS}"
ARCH_LDFLAGS="${SP_LDFLAGS}"
fi
+ if test "$solaris" = "no" ; then
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7"
+ else
+ ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7"
+ fi
;;
s390)
ARCH_CFLAGS="-march=z900"