This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] sparc64-linux patchlet
- To: "David S. Miller" <davem at redhat dot com>
- Subject: [PATCH] sparc64-linux patchlet
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 14 Dec 1999 15:09:48 +0100
- Cc: gcc-patches at gcc dot gnu dot org
Hi!
We need to default to vtable_thunks like linux.h does, plus I think the
ASM_IDENTIFY_GCC define should go.
I wonder, is there any reason why linux64 BI_ARCH compiler defaults to
dwarf2 debugging while all other Linux targets (including sparc32)
default to stabs? One disadvantage of such state is that linux64 gcc -m32 -g
generates different debugging to linux32 gcc -g.
Can I change set PREFERRED_DEBUGGING_TYPE to DBX_DEBUG?
1999-12-14 Jakub Jelinek <jakub@redhat.com>
* config/sparc/linux64.h (DEFAULT_VTABLE_THUNKS): Define to 1.
(ASM_IDENTIFY_GCC): Remove.
--- gcc/config/sparc/linux64.h.jj Tue Dec 14 10:09:33 1999
+++ gcc/config/sparc/linux64.h Tue Dec 14 14:41:17 1999
@@ -26,6 +26,9 @@ Boston, MA 02111-1307, USA. */
/* Don't assume anything about the header files. */
#define NO_IMPLICIT_EXTERN_C
+#undef DEFAULT_VTABLE_THUNKS
+#define DEFAULT_VTABLE_THUNKS 1
+
#include <sparc/sysv4.h>
#undef MD_EXEC_PREFIX
@@ -328,11 +331,6 @@ do { \
#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
sprintf (LABEL, "*.L%s%d", PREFIX, NUM)
-
-/* Stabs doesn't use this, and it confuses a simulator. */
-/* ??? Need to see what DWARF needs, if anything. */
-#undef ASM_IDENTIFY_GCC
-#define ASM_IDENTIFY_GCC(FILE)
/* Define the names of various pseudo-ops used by the Sparc/svr4 assembler.
??? If ints are 64 bits then UNALIGNED_INT_ASM_OP (defined elsewhere) is
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.26 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________