Remove old NT leftovers in rs6000/ppc-asm.h

Geoffrey Keating geoffk@romulus.sfbay.redhat.com
Tue Jun 11 15:22:00 GMT 2002


Yuk.

Tested on powerpc-eabisim & bootstrapped & tested on powerpc-aix4.3.

-- 
Geoff Keating <geoffk@redhat.com>

===File ~/patches/rs6000-nontppcasm.patch===================
2002-06-10  Geoffrey Keating  <geoffk@redhat.com>

	* config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.

Index: config/rs6000/ppc-asm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/ppc-asm.h,v
retrieving revision 1.2
diff -p -u -p -r1.2 ppc-asm.h
--- config/rs6000/ppc-asm.h	15 Feb 2002 21:04:53 -0000	1.2
+++ config/rs6000/ppc-asm.h	11 Jun 2002 22:20:25 -0000
@@ -2,7 +2,6 @@
 /* Under winnt, 1) gas supports the following as names and 2) in particular
    defining "toc" breaks the FUNC_START macro as ".toc" becomes ".2" */
 
-#if !defined(__WINNT__)
 #define r0	0
 #define sp	1
 #define toc	2
@@ -77,7 +76,6 @@
 #define f29	29
 #define f30	30
 #define f31	31
-#endif
 
 /*
  * Macros to glue together two tokens.
@@ -121,43 +119,6 @@ GLUE(.,name):
 #define FUNC_END(name) \
 GLUE(.L,name): \
 	.size GLUE(.,name),GLUE(.L,name)-GLUE(.,name)
-
-#elif defined(__WINNT__)
-#define FUNC_NAME(name) GLUE(..,name)
-#define JUMP_TARGET(name) FUNC_NAME(name)
-#define FUNC_START(name) \
-	.pdata; \
-	.align 2; \
-	.ualong GLUE(..,name),GLUE(name,.e),0,0,GLUE(..,name); \
-	.reldata; \
-name: \
-	.ualong GLUE(..,name),.toc; \
-	.section .text; \
-	.globl name; \
-	.globl GLUE(..,name); \
-GLUE(..,name):
-
-#define FUNC_END(name) \
-GLUE(name,.e): ; \
-GLUE(FE_MOT_RESVD..,name):
-
-#elif defined(_CALL_NT)
-#define FUNC_NAME(name) GLUE(..,name)
-#define JUMP_TARGET(name) FUNC_NAME(name)
-#define FUNC_START(name) \
-	.section DESC_SECTION,"aw"; \
-name: \
-	.long GLUE(..,name); \
-	.long _GLOBAL_OFFSET_TABLE_; \
-	.previous; \
-	.type GLUE(..,name),@function; \
-	.globl name; \
-	.globl GLUE(..,name); \
-GLUE(..,name):
-
-#define FUNC_END(name) \
-GLUE(.L,name): \
-	.size GLUE(..,name),GLUE(.L,name)-GLUE(..,name)
 
 #elif defined (__powerpc64__)
 #define FUNC_NAME(name) GLUE(.,name)
============================================================



More information about the Gcc-patches mailing list