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]

[RFA] - fix for GCC 3.x on Windows



Here is a patch to fix GCC 3.x build failure. The build fails while compiling
varasm.c with the following output:

<<
 gcc -c  -DIN_GCC    -O2 -gnatpn -g    -DHAVE_CONFIG_H   -DCYGWIN_CROSS_DIR=\"/h
ome/obry/dev-gnat/nbuild/install/pentium-mingw32msv\" -I. -I. -I. -I./. -I./conf
ig -I./../include varasm.c -o varasm.o
 varasm.c: In function `assemble_integer':
 varasm.c:1936: `ASM_QUAD' undeclared (first use in this function)
 varasm.c:1936: (Each undeclared identifier is reported only once
 varasm.c:1936: for each function it appears in.)
 make[1]: *** [varasm.o] Error 1
 make[1]: Leaving directory `D:/home/obry/dev-gnat/nbuild/gnatbuild/src/gcc'
 make: *** [all-gcc] Error 2
>>


Here is the simle patch:
<<
*** gcc/config/i386/bsd.h.orig Thu Oct 11 14:54:20 2001
--- gcc/config/i386/bsd.h Thu Oct 11 14:54:46 2001
***************
*** 43,48 ****
--- 43,49 ----
  #define ASM_BYTE_OP "\t.byte\t"
  #define ASM_SHORT "\t.word\t"
  #define ASM_LONG "\t.long\t"
+ #define ASM_QUAD "\t.quad\t"
  
  /* Output at beginning of assembler file.
     ??? I am skeptical of this -- RMS.  */
>>

and the proposed ChangeLog entry:
<<
2001-10-11  Pascal Obry  <obry@gnat.com>

	* config/i386/bsd.h (ASM_QUAD): Define.
>>

Pascal Obry.
Ada Core Technologies.


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