Revision 762e8230

b/Makefile.target
89 89
endif
90 90

  
91 91
ifeq ($(ARCH),sparc)
92
  CFLAGS+=-ffixed-g2 -ffixed-g3
93 92
  ifneq ($(CONFIG_SOLARIS),yes)
94
    CFLAGS+=-ffixed-g1 -ffixed-g6
95 93
    HELPER_CFLAGS+=-ffixed-i0
96 94
  endif
97 95
endif
98 96

  
99
ifeq ($(ARCH),sparc64)
100
  ifneq ($(CONFIG_SOLARIS),yes)
101
    CFLAGS+=-ffixed-g5 -ffixed-g6 -ffixed-g7
102
  else
103
    CFLAGS+=-ffixed-g1 -ffixed-g4 -ffixed-g5 -ffixed-g7
104
  endif
105
endif
106

  
107 97
ifeq ($(ARCH),alpha)
108 98
# Ensure there's only a single GP
109 99
CFLAGS+=-msmall-data
b/configure
498 498
               ARCH_CFLAGS="${SP_CFLAGS}"
499 499
               ARCH_LDFLAGS="${SP_LDFLAGS}"
500 500
           fi
501
           ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g2 -ffixed-g3"
502
           if test "$solaris" = "no" ; then
503
               ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g6"
504
           fi
501 505
           ;;
502 506
    sparc64) if test -z "$sparc_cpu" ; then
503 507
               ARCH_CFLAGS="-m64 -mcpu=ultrasparc -D__sparc_v9__"
......
506 510
               ARCH_CFLAGS="${SP_CFLAGS}"
507 511
               ARCH_LDFLAGS="${SP_LDFLAGS}"
508 512
           fi
513
           if test "$solaris" = "no" ; then
514
               ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g5 -ffixed-g6 -ffixed-g7"
515
           else
516
               ARCH_CFLAGS="$ARCH_CFLAGS -ffixed-g1 -ffixed-g5 -ffixed-g6 -ffixed-g7"
517
           fi
509 518
           ;;
510 519
    s390)
511 520
           ARCH_CFLAGS="-march=z900"

Also available in: Unified diff