This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] rs6000.c ELF bits inclusion


David/Geoff,

Could you guys test this patch for gcc-3_0-branch on the various AIX
versions you have access to?

I really need to get FreeBSD/PowerPC support into the gcc-3_0-branch.
(with as few changes as possible, cleanliness of rs6000/freebsd.h will not
be a concern)

-- 
-- David  (obrien@FreeBSD.org)


Index: elfos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/elfos.h,v
retrieving revision 1.25.2.1
diff -u -r1.25.2.1 elfos.h
--- elfos.h	2001/04/16 18:25:40	1.25.2.1
+++ elfos.h	2001/10/20 00:37:03
@@ -21,6 +21,10 @@
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+
+/* Define a symbol indicating that we are using elfos.h.  */
+#define _USING_ELFOS_H
+
 /* The prefix to add to user-visible assembler symbols.
 
    For ELF systems the convention is *not* to prepend a leading
Index: rs6000/rs6000.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.c,v
retrieving revision 1.167.2.15
diff -u -r1.167.2.15 rs6000.c
--- rs6000.c	2001/09/25 17:59:04	1.167.2.15
+++ rs6000.c	2001/10/20 00:38:28
@@ -75,7 +75,7 @@
    get the address of the GOT section */
 int rs6000_pic_labelno;
 
-#ifdef USING_SVR4_H
+#ifdef _USING_ELFOS_H
 /* Which abi to adhere to */
 const char *rs6000_abi_name = RS6000_ABI_NAME;
 
@@ -442,7 +442,7 @@
 	    }
 	}
 
-#ifdef USING_SVR4_H
+#ifdef _USING_ELFOS_H
       switch (rs6000_sdata)
 	{
 	case SDATA_NONE: fprintf (file, "%s -msdata=none", start); start = ""; break;
@@ -7930,7 +7930,7 @@
    Do not define this macro if you put all constants in the read-only
    data section.  */
 
-#ifdef USING_SVR4_H
+#ifdef _USING_ELFOS_H
 
 void
 rs6000_select_rtx_section (mode, x)
@@ -8132,7 +8132,7 @@
     }
 }
 
-#endif /* USING_SVR4_H */
+#endif /* _USING_ELFOS_H */
 
 
 /* Return a REG that occurs in ADDR with coefficient 1.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]