* config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Nov 2002 21:36:37 +0000 (21:36 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Nov 2002 21:36:37 +0000 (21:36 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58729 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/h8300.h

index 67a4646..6e38b11 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.h (CAN_ELIMINATE): Simplify.
+
 2002-11-01  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
 
        * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): New.
index d0db90a..4d4fcaa 100644 (file)
@@ -575,10 +575,7 @@ enum reg_class {
    All other eliminations are valid.  */
 
 #define CAN_ELIMINATE(FROM, TO)                                        \
- ((((FROM) == ARG_POINTER_REGNUM || (FROM) == RETURN_ADDRESS_POINTER_REGNUM) \
-   && (TO) == STACK_POINTER_REGNUM)                            \
-  ? ! frame_pointer_needed                                     \
-  : 1)
+  ((TO) == STACK_POINTER_REGNUM ? ! frame_pointer_needed : 1)
 
 /* Define the offset between two registers, one to be eliminated, and the other
    its replacement, at the start of a routine.  */