This is the mail archive of the gcc-bugs@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]

Re: build failure on hppa2.0-hp-hpux10.20




  In message <200101160036.QAA06946@racerx.synopsys.com>you write:
  > If the vendor assembler is used, today's CVS gcc fails to build at a very
  > early stage on HPUX 10.20.  The first command that fails is
  > 
  > ./xgcc -B./ -B/u/jbuck/gcc-cvs-hp/hppa2.0-hp-hpux10.20/bin/ -isystem \
  > /u/jbuck/gcc-cvs-hp/hppa2.0-hp-hpux10.20/include -O2 -DIN_GCC -W -Wall \
  > -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem \
  > ./include -fPIC -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
  > -I. -I. -I/u/jbuck/gnu/src/cvs/gcc/gcc \
  > -I/u/jbuck/gnu/src/cvs/gcc/gcc/. -I/u/jbuck/gnu/src/cvs/gcc/gcc/config \
  > -I/u/jbuck/gnu/src/cvs/gcc/gcc/../include -DUSE_COLLECT2 -DL_muldi3 -S \
  > /u/jbuck/gnu/src/cvs/gcc/gcc/libgcc2.c
  > 
  > The failure is
  > as: "libgcc2.s", line 10: error 1051: Illegal symbol in opcode position - :
  > 
  > The reason for the failure is the label
  > 
  > gcc2_compiled.:
  > 
  > which is not in the right format.
  > 
  > (Yes, I know that gas is preferred and -g can't work without it, but
  > that's probably why this wasn't noticed).
Thanks.  The attached patch fixes the problem (which has been broken since
the PA port was twiddled to use dbxelf.h instead of duplicating its 
functionality).

	* config/pa/som.h  (ASM_IDENTIFY_GCC): Define.
	(ASM_IDENTIFY_GCC_AFTER_SOURCE): Likewise.

Index: som.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/pa/som.h,v
retrieving revision 1.13
diff -c -3 -p -r1.13 som.h
*** som.h	2000/11/17 06:05:26	1.13
--- som.h	2001/03/01 18:40:17
*************** Boston, MA 02111-1307, USA.  */
*** 26,31 ****
--- 26,37 ----
     from other embedded stabs implementations.  */
  #undef DBX_USE_BINCL
  
+ #undef ASM_IDENTIFY_GCC
+ #define ASM_IDENTIFY_GCC(FILE)
+ 
+ #undef ASM_IDENTIFY_GCC_AFTER_SOURCE
+ #define ASM_IDENTIFY_GCC_AFTER_SOURCE(FILE)
+ 
  /* We make the first line stab special to avoid adding several
     gross hacks to GAS.  */
  #undef  ASM_OUTPUT_SOURCE_LINE



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