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: gcc-2.95.3, but not gcc-2.95.2, requires gas on hppa2.0-hp-hpux10.20


On Tue, 23 Jan 2001, Martin Buchholz wrote:

[Compiling on hppa2.0-hp-hpux10.20 without GNU as]

> make[3]: Entering directory `/usr/local/xemacs/gcc-2.95.3/gcc'
> ./xgcc -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B./ -I/usr/local/hppa2.0-hp-hpux10.20/include -O2   -DIN_GCC -DHAIFA    -O2 -O2 -I./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -O2 -I. -I/project/xemacs/import/gcc-2.95.3.test2/gcc -I/project/xemacs/import/gcc-2.95.3.test2/gcc/config -I/project/xemacs/import/gcc-2.95.3.test2/gcc/../include \
>   -c /project/xemacs/import/gcc-2.95.3.test2/gcc/cp/tinfo.cc
> cc1plus: warning: -g is only supported when using GAS on this processor,
> cc1plus: warning: -g option disabled.
> as: error 7403: undefined label - L$0175 (7403)

The patch below fixes it for me.  Could you verify it?


Bernd

--- gcc/varasm.c	Wed Jun  9 13:13:49 1999
+++ gcc/varasm.c	Wed Jan 24 14:16:12 2001
@@ -3493,6 +3493,18 @@

 	  pop_obstacks ();
 	}
+      if (GET_CODE (x) == LABEL_REF)
+	{
+	  extern rtx forced_labels;
+
+	  push_obstacks_nochange ();
+	  rtl_in_saveable_obstack ();
+
+	  forced_labels = gen_rtx_EXPR_LIST (VOIDmode,
+					     XEXP (x, 0),
+					     forced_labels);
+	  pop_obstacks ();
+	}

       /* Allocate a pool constant descriptor, fill it in, and chain it in.  */



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