This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: sh-elf broken for egcs-971127 ?
- To: corsepiu at faw dot uni-ulm dot de
- Subject: Re: sh-elf broken for egcs-971127 ?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Fri, 28 Nov 1997 11:32:00 -0800
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <347EDE1D.470CC0B9@faw.uni-ulm.de>you write:
> Hi,
>
> I am trying to build egcs-971127 for sh-elf, but
> I get thousands of assembler-warnings for any call to
> xgcc during the build process.
Try this patch. It reverts the sh-elf port back to using stabs by default:
Index: elf.h
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/config/sh/elf.h,v
retrieving revision 1.1.1.1.2.1
diff -c -3 -p -r1.1.1.1.2.1 elf.h
*** elf.h 1997/11/25 23:53:30 1.1.1.1.2.1
--- elf.h 1997/11/28 19:29:39
*************** Boston, MA 02111-1307, USA. */
*** 25,30 ****
--- 25,34 ----
/* No SDB debugging info. */
#undef SDB_DEBUGGING_INFO
+ /* Prefer stabs. */
+ #undef PREFERRED_DEBUGGING_TYPE
+ #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
+
/* Undefine some macros defined in both sh.h and svr4.h. */
#undef IDENT_ASM_OP
#undef ASM_FILE_END
*************** Boston, MA 02111-1307, USA. */
*** 36,42 ****
#undef ASM_OUTPUT_CONSTRUCTOR
#undef ASM_OUTPUT_DESTRUCTOR
#undef ASM_DECLARE_FUNCTION_NAME
- #undef PREFERRED_DEBUGGING_TYPE
/* Be ELF-like. */
#include "svr4.h"
--- 40,45 ----