OSDN Git Service

* config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
authordrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2004 23:47:14 +0000 (23:47 +0000)
committerdrow <drow@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Oct 2004 23:47:14 +0000 (23:47 +0000)
for 'f' if !TARGET_FPRS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89067 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index 440b475..c872a66 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
+       for 'f' if !TARGET_FPRS.
+
 2004-10-14  Richard Henderson  <rth@redhat.com>
 
        PR debug/14492
index 399f2e2..848b79d 100644 (file)
@@ -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_HARD_FLOAT && TARGET_FPRS) ? FLOAT_REGS : NO_REGS) \
    : (C) == 'b' ? BASE_REGS    \
    : (C) == 'h' ? SPECIAL_REGS \
    : (C) == 'q' ? MQ_REGS      \