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]

[committed] Allow CONST_VECTOR for literal16


Thanks to Shantonu for noticing I'd forgotten this part too.

Tested on x86-darwin.

-eric

2006-09-10 Eric Christopher <echristo@apple.com>

        * config/darwin.c (machopic_select_rtx_section): Add
	CONST_VECTOR for literal16.
Index: config/darwin.c
===================================================================
--- config/darwin.c	(revision 116820)
+++ config/darwin.c	(revision 116821)
@@ -1242,7 +1242,8 @@ machopic_select_rtx_section (enum machin
   else if (TARGET_64BIT
 	   && GET_MODE_SIZE (mode) == 16
 	   && (GET_CODE (x) == CONST_INT
-	       || GET_CODE (x) == CONST_DOUBLE))
+	       || GET_CODE (x) == CONST_DOUBLE
+	       || GET_CODE (x) == CONST_VECTOR))
     return darwin_sections[literal16_section];
   else if (MACHOPIC_INDIRECT
 	   && (GET_CODE (x) == SYMBOL_REF

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