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]

DJGPP: enable dwarf2 and silence fixincl messages


Hello once again,
Now that I have enough memory to satisfy genattrtab, I can now bootstrap gcc. 
At least I could before updating the repository. fixincludes complains about 
certain predefines. I fixed the ones involving DJGPP, but one still remains. 
Is this the reason bootstrap fails here?

(MAKE="c:/djgpp/bin/make.exe"; srcdir=`cd /cvs/gcc/gcc/fixinc && pwd` ; \
CC="gcc"; CFLAGS="-g"; LDFLAGS=""; \
WARN_CFLAGS="-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-
prototypes -Wtraditional -pedantic -Wno-long-long"; \
export MAKE srcdir CC CFLAGS LDFLAGS WARN_CFLAGS; cd ./fixinc && \
c:/djgpp/bin/sh.exe ${srcdir}/mkfixinc.sh i586-pc-msdosdjgpp i586-pc-
msdosdjgpp)
constructing ../fixinc.sh for i586-pc-msdosdjgpp to run on i586-pc-msdosdjgpp
c:/djgpp/bin/make.exe TARGETS=twoprocess SHELL="c:/djgpp/bin/sh.exe" CC="gcc" 
CFLAGS="-g -DSEPARATE_FIX_PROC" LDFLAGS="" install-bin
make.exe[2]: Entering directory `d:/cvs/gcc/build/gcc/fixinc'
c:/djgpp/bin/sh.exe /cvs/gcc/gcc/fixinc/genfixes machname.h
Forbidden identifiers: i386 
cd /cvs/gcc/gcc/fixinc ; c:/djgpp/bin/sh.exe ./genfixes /cvs/gcc/gcc/fixinc/fixincl.x
make.exe[2]: *** [/cvs/gcc/gcc/fixinc/fixincl.x] Error 127
make.exe[2]: Leaving directory `d:/cvs/gcc/build/gcc/fixinc'
make.exe[1]: *** [fixinc.sh] Error 2
make.exe[1]: Leaving directory `d:/cvs/gcc/build/gcc'
make.exe: *** [all-gcc] Error 2

My patch turns on dwarf2 support and removes the 'forbidden identifiers' that 
fixincludes had complained about.

2001-01-02  Mark Elbrecht  <snowball3@bigfoot.com>

	* config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
	  (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
	  (UNALIGNED_SHORT_ASM_OP): Define.
	  (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.

Index: gcc/gcc/config/i386/djgpp.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/djgpp.h,v
retrieving revision 1.19
diff -c -p -r1.19 djgpp.h
*** djgpp.h	2000/11/02 23:29:09	1.19
--- djgpp.h	2001/01/02 22:15:36
*************** Boston, MA 02111-1307, USA.  */
*** 20,25 ****
--- 20,28 ----
  
  #include "dbxcoff.h"
  
+ /* Support generation of DWARF2 debugging info.  */
+ #define DWARF2_DEBUGGING_INFO
+ 
  /* Don't assume anything about the header files. */
  #define NO_IMPLICIT_EXTERN_C
  
*************** Boston, MA 02111-1307, USA.  */
*** 75,80 ****
--- 78,95 ----
  #undef TEXT_SECTION_ASM_OP
  #define TEXT_SECTION_ASM_OP "\t.section .text"
  
+ /* How to output an unaligned integer.  */
+ #undef UNALIGNED_INT_ASM_OP
+ #define UNALIGNED_INT_ASM_OP "\t.long\t"
+ 
+ /* How to output an unaligned double length integer.  */
+ #undef UNALIGNED_DOUBLE_INT_ASM_OP
+ #define UNALIGNED_DOUBLE_INT_ASM_OP "\t.quad\t"
+ 
+ /* How to output an unaligned half length intenger.  */
+ #undef UNALIGNED_SHORT_ASM_OP
+ #define UNALIGNED_SHORT_ASM_OP "\t.short\t"
+ 
  /* Tell GCC where our standard include directory is.  */
  #undef STANDARD_INCLUDE_DIR
  #define STANDARD_INCLUDE_DIR "/dev/env/DJDIR/include/"
*************** Boston, MA 02111-1307, USA.  */
*** 88,94 ****
          (((NAME)[0] >= 'A') && ((NAME)[0] <= 'z') && ((NAME)[1] == ':')))
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-DGO32 -DDJGPP=2 -D__MSDOS__ -Asystem=msdos"
  
  /* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined.  */
  #undef CPP_SPEC
--- 103,109 ----
          (((NAME)[0] >= 'A') && ((NAME)[0] <= 'z') && ((NAME)[1] == ':')))
  
  #undef CPP_PREDEFINES
! #define CPP_PREDEFINES "-D__MSDOS__ -Asystem=msdos"
  
  /* Include <sys/version.h> so __DJGPP__ and __DJGPP_MINOR__ are defined.  */
  #undef CPP_SPEC


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