public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Fix arm-linux bootstrap problem on cvs.
@ 2002-07-03  6:30 jeroen dobbelaere
  2002-07-03  8:34 ` Richard Earnshaw
  0 siblings, 1 reply; 19+ messages in thread
From: jeroen dobbelaere @ 2002-07-03  6:30 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 328 bytes --]

Attached patch fixes the bootstrapping problem of gcc (main cvs)
on the arm-linux target (with --enable-checking).

Currently bootstrapping (and this time without a problem
reaching stage1).

Is it OK to commit ?

Greetings,
-- 
Jeroen Dobbelaere
Embedded Software Engineer

ACUNIA Embedded Solutions
http://www.acunia.com/aes


[-- Attachment #2: gcc-head-arm-linux-build-jdo-1.patch --]
[-- Type: text/plain, Size: 2659 bytes --]

Index: gcc/gcc/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 1.14773
diff -u -r1.14773 ChangeLog
--- gcc/gcc/ChangeLog	3 Jul 2002 09:49:38 -0000	1.14773
+++ gcc/gcc/ChangeLog	3 Jul 2002 11:49:56 -0000
@@ -1,3 +1,15 @@
+2002-07-03  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
+
+	* config/arm/arm.c (emit_sfm): Omit RTX_FRAME_RELATED_P(dwarf) = 1
+	as this breaks the 'enable-checking'. The dwarf expression itself
+	is only used inside a 'RTX_FRAME_RELATED_EXPR' note.
+
+2002-07-03  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
+
+	* config/arm/arm.h (LEGITIMATE_PIC_OPERAND_P): Only use 
+	CONSTANT_POOL_ADDRESS_P on SYMBOL_REF's. Rearrange the
+	resulting expression following Richard Earnshaw's proposal.
+
 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
 
 	* optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
Index: gcc/gcc/config/arm/arm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.214
diff -u -r1.214 arm.c
--- gcc/gcc/config/arm/arm.c	1 Jul 2002 23:07:06 -0000	1.214
+++ gcc/gcc/config/arm/arm.c	3 Jul 2002 11:49:58 -0000
@@ -7922,7 +7922,6 @@
 
   par = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (count));
   dwarf = gen_rtx_PARALLEL (VOIDmode, rtvec_alloc (count));
-  RTX_FRAME_RELATED_P (dwarf) = 1;
 
   reg = gen_rtx_REG (XFmode, base_reg++);
 
Index: gcc/gcc/config/arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.152
diff -u -r1.152 arm.h
--- gcc/gcc/config/arm/arm.h	10 Jun 2002 22:35:45 -0000	1.152
+++ gcc/gcc/config/arm/arm.h	3 Jul 2002 11:49:58 -0000
@@ -2397,12 +2397,13 @@
 /* We can't directly access anything that contains a symbol,
    nor can we indirect via the constant pool.  */
 #define LEGITIMATE_PIC_OPERAND_P(X)					\
-	(   ! symbol_mentioned_p (X)					\
-	 && ! label_mentioned_p (X)					\
-	 && (! CONSTANT_POOL_ADDRESS_P (X)				\
-	     || (   ! symbol_mentioned_p (get_pool_constant (X))  	\
-	         && ! label_mentioned_p (get_pool_constant (X)))))
-     
+	(!(symbol_mentioned_p (X)					\
+	   || label_mentioned_p (X)					\
+	   || (GET_CODE (X) == SYMBOL_REF				\
+	       && CONSTANT_POOL_ADDRESS_P (X)				\
+	       && (symbol_mentioned_p (get_pool_constant (X))		\
+		   || label_mentioned_p (get_pool_constant (X))))))
+
 /* We need to know when we are making a constant pool; this determines
    whether data needs to be in the GOT or can be referenced via a GOT
    offset.  */

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2002-07-16 15:40 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03  6:30 Fix arm-linux bootstrap problem on cvs jeroen dobbelaere
2002-07-03  8:34 ` Richard Earnshaw
2002-07-03  8:41   ` jeroen dobbelaere
2002-07-03  8:42     ` Richard Earnshaw
2002-07-03  8:52       ` jeroen dobbelaere
2002-07-04  0:24       ` [patch] " jeroen dobbelaere
2002-07-05  1:36         ` Richard Earnshaw
2002-07-05  2:24           ` jeroen dobbelaere
2002-07-05  2:28             ` Andreas Schwab
2002-07-05  2:44               ` jeroen dobbelaere
2002-07-05  8:07           ` jeroen dobbelaere
2002-07-08  0:50             ` jeroen dobbelaere
2002-07-08  3:42               ` Richard Earnshaw
2002-07-12  0:55                 ` jeroen dobbelaere
2002-07-15  2:26                   ` Richard Earnshaw
2002-07-15  8:36                     ` jeroen dobbelaere
2002-07-15  8:47                       ` Richard Earnshaw
2002-07-16  1:03                         ` jeroen dobbelaere
2002-07-16  9:10                         ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).