This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
XCOFF cleanup
- From: Ben Elliston <bje at wasabisystems dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 28 Nov 2003 14:27:59 +1100
- Subject: XCOFF cleanup
The following patch moves the C_* defines from dbxstclass.h into
xcoffout.h, where its purpose is more apparent. It also means we can
remove an unclearly named file. Tested by building for --target
rs6000-aix4.3.3. Okay to commit?
2003-11-28 Ben Elliston <bje@wasabisystems.com>
* xcoffout.h: Move dbxstclass.h's definitions to here.
* dbxstclass.h: Remove.
* xcoffout.c: Don't include dbxstclass.h.
Index: dbxstclass.h
===================================================================
RCS file: dbxstclass.h
diff -N dbxstclass.h
--- dbxstclass.h 16 Dec 1998 20:54:53 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-/* Storage classes in XCOFF object file format designed for DBX's use.
- This info is from the `Files Reference' manual for IBM's AIX version 3
- for the RS6000. */
-
-#define C_GSYM 0x80
-#define C_LSYM 0x81
-#define C_PSYM 0x82
-#define C_RSYM 0x83
-#define C_RPSYM 0x84
-#define C_STSYM 0x85
-
-#define C_BCOMM 0x87
-#define C_ECOML 0x88
-#define C_ECOMM 0x89
-#define C_DECL 0x8c
-#define C_ENTRY 0x8d
-#define C_FUN 0x8e
Index: xcoffout.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/xcoffout.c,v
retrieving revision 1.37
diff -u -p -r1.37 xcoffout.c
--- xcoffout.c 22 Sep 2003 05:09:18 -0000 1.37
+++ xcoffout.c 28 Nov 2003 01:02:42 -0000
@@ -39,7 +39,6 @@ Software Foundation, 59 Temple Place - S
#ifdef XCOFF_DEBUGGING_INFO
/* This defines the C_* storage classes. */
-#include "dbxstclass.h"
#include "xcoffout.h"
#include "dbxout.h"
#include "gstab.h"
Index: xcoffout.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/xcoffout.h,v
retrieving revision 1.21
diff -u -p -r1.21 xcoffout.h
--- xcoffout.h 6 Jul 2003 16:53:23 -0000 1.21
+++ xcoffout.h 28 Nov 2003 01:02:43 -0000
@@ -20,6 +20,23 @@ along with GCC; see the file COPYING. I
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA. */
+/* Storage classes in XCOFF object file format designed for DBX's use.
+ This info is from the `Files Reference' manual for IBM's AIX version 3
+ for the RS6000. */
+
+#define C_GSYM 0x80
+#define C_LSYM 0x81
+#define C_PSYM 0x82
+#define C_RSYM 0x83
+#define C_RPSYM 0x84
+#define C_STSYM 0x85
+
+#define C_BCOMM 0x87
+#define C_ECOML 0x88
+#define C_ECOMM 0x89
+#define C_DECL 0x8c
+#define C_ENTRY 0x8d
+#define C_FUN 0x8e
#define ASM_STABS_OP "\t.stabx\t"