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]
Other format: [Raw text]

[PATCH]: Fix PR target/7361 (HC11 port)


Hi!

I've committed the following patch to fix PR 7361.
Committed on mainline only since I don't know if branches are open...

	Stephane

2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>

	PR target/7361
	* config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
	constant addresses only on 68HC12.

Index: config/m68hc11/m68hc11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/m68hc11.c,v
retrieving revision 1.48
diff -u -p -r1.48 m68hc11.c
--- config/m68hc11/m68hc11.c	16 Jul 2002 22:23:59 -0000	1.48
+++ config/m68hc11/m68hc11.c	22 Jul 2002 19:34:06 -0000
@@ -660,7 +660,7 @@ go_if_legitimate_address_internal (opera
      enum machine_mode mode;
      int strict;
 {
-  if (CONSTANT_ADDRESS_P (operand))
+  if (CONSTANT_ADDRESS_P (operand) && TARGET_M6812)
     {
       /* Reject the global variables if they are too wide.  This forces
          a load of their address in a register and generates smaller code.  */

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