2002-09-17 23:50:03 +00:00
|
|
|
# Powerpc64 specific build options.
|
|
|
|
# this is ./sysdeps/powerpc/powerpc64/Makefile
|
|
|
|
|
2002-09-27 19:45:50 +00:00
|
|
|
# Each TOC entry takes 8 bytes and the TOC holds up to 2^16 bytes,
|
|
|
|
# or 8192 entries.
|
|
|
|
# If -fpic is not specified, the latest gcc-3.2.1 now generates
|
|
|
|
# different code for call stubs (without the TOC reload).
|
|
|
|
# Shared objects need the TOC reload so specify -fpic.
|
|
|
|
ifeq (yes,$(build-shared))
|
|
|
|
pic-ccflag = -fpic
|
|
|
|
endif
|
2002-09-17 23:50:03 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),csu)
|
2005-11-01 02:13:41 +00:00
|
|
|
sysdep_routines += hp-timing
|
|
|
|
elide-routines.os += hp-timing
|
2002-09-17 23:50:03 +00:00
|
|
|
ifneq ($(elf),no)
|
2005-08-04 21:35:51 +00:00
|
|
|
# The initfini generation code doesn't work in the presence of -fPIC, so
|
|
|
|
# we use -fpic instead which is much better.
|
|
|
|
CFLAGS-initfini.s += -fpic -O1
|
2002-09-17 23:50:03 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(subdir),elf)
|
|
|
|
# help gcc inline asm code from dl-machine.h
|
2004-02-20 06:07:55 +00:00
|
|
|
+cflags += -finline-limit=2000
|
2002-09-17 23:50:03 +00:00
|
|
|
endif
|
2004-10-06 22:09:35 +00:00
|
|
|
|
|
|
|
ifeq ($(subdir),gmon)
|
|
|
|
# The assembly functions assume that fp arg regs are not trashed.
|
|
|
|
# Compiling with -msoft-float ensures that fp regs are not used
|
|
|
|
# for moving memory around.
|
2004-12-22 20:10:10 +00:00
|
|
|
CFLAGS-mcount.c += -msoft-float
|
2004-10-06 22:09:35 +00:00
|
|
|
endif
|