gcc 3.3 fix for 2.4

Hollis Blanchard hollisb at us.ibm.com
Thu Sep 11 02:03:06 EST 2003


Anton recently pushed this gcc 3.3 fix to Linus' 2.5 tree. The same fix
is needed for 2.4 (I modified the name to be like HAS_BIARCH).

Also, I think HAS_BIARCH needs to use $(CC) instead of gcc directly.

Could one of you please push this patch to ameslab 2.4? I'll attach it
as well in case it linewraps.

--
Hollis Blanchard
IBM Linux Technology Center

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-3.3-bss.diff
Type: application/octet-stream
Size: 853 bytes
Desc: not available
Url : http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20030910/bbbf919a/attachment.obj 
-------------- next part --------------


===== arch/ppc64/Makefile 1.4 vs edited =====
--- 1.4/arch/ppc64/Makefile	Mon Aug 25 23:47:42 2003
+++ edited/arch/ppc64/Makefile	Wed Sep 10 05:39:06 2003
@@ -19,7 +19,7 @@
  CHECKS		= checks
  endif

-HAS_BIARCH      := $(shell if gcc -m64 -S -o /dev/null -xc /dev/null >
/dev/null 2>&1; then echo y; else echo n; fi;)
+HAS_BIARCH      := $(shell if $(CC) -m64 -S -o /dev/null -xc /dev/null
 > /dev/null 2>&1; then echo y; else echo n; fi;)
  ifeq ($(HAS_BIARCH),y)
  AS              := $(AS) -64
  LD              := $(LD) -m elf64ppc
@@ -33,6 +33,11 @@
  		-mtraceback=full
  CPP		= $(CC) -E $(CFLAGS)

+HAVE_ZERO_BSS := $(shell if $(CC) -fno-zero-initialized-in-bss -S -o
/dev/null -xc /dev/null > /dev/null 2>&1; then echo y; else echo n; fi)
+
+ifeq ($(HAVE_ZERO_BSS),y)
+CFLAGS		+= -fno-zero-initialized-in-bss
+endif

  HEAD := arch/ppc64/kernel/head.o


More information about the Linuxppc64-dev mailing list