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]

Re: Patch to rs6000/eabispe.h and rs6000/linuxspe.h to disallow -m64


This is OK. The alternative would be to define a special movsi pattern for !TARGET_FPRS (and then a dozen more for each possible register/flag combination), which doesn't sound like a winning approach to .md file design.

2004-10-14 Daniel Jacobowitz <dan@codesourcery.com>

	* config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
	for 'f' if !TARGET_FPRS.

Index: rs6000.h
===================================================================
RCS file: /home/drow/rsync/gcc-cvs/gcc/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.340
diff -u -p -r1.340 rs6000.h
--- rs6000.h 23 Sep 2004 14:34:29 -0000 1.340
+++ rs6000.h 14 Oct 2004 20:43:45 -0000
@@ -1283,7 +1283,7 @@ enum reg_class
/* Get reg_class from a letter such as appears in the machine description. */


 #define REG_CLASS_FROM_LETTER(C) \
-  ((C) == 'f' ? FLOAT_REGS	\
+  ((C) == 'f' ? (TARGET_FPRS ? FLOAT_REGS : NO_REGS)	\
    : (C) == 'b' ? BASE_REGS	\
    : (C) == 'h' ? SPECIAL_REGS	\
    : (C) == 'q' ? MQ_REGS	\

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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