]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
score.c (score_force_temporary): Delete function.
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Fri, 6 Dec 2013 04:34:34 +0000 (04:34 +0000)
committerJan-Benedict Glaw <jbglaw@gcc.gnu.org>
Fri, 6 Dec 2013 04:34:34 +0000 (04:34 +0000)
2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/score/score.c (score_force_temporary): Delete function.
(score_split_symbol): Ditto.
* config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
parentheses to silence ambiguity warning and reindent.

From-SVN: r205727

gcc/ChangeLog
gcc/config/score/score.c
gcc/config/score/score.h

index 6f8c8f2b01efad4eb173189ce2f344cc362a57ee..03e03d702bbc3484b94c43a1af96e96022509383 100644 (file)
@@ -1,3 +1,10 @@
+2013-12-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
+
+       * config/score/score.c (score_force_temporary): Delete function.
+       (score_split_symbol): Ditto.
+       * config/score/score.h (ASM_OUTPUT_ADDR_DIFF_ELT): Add extra
+       parentheses to silence ambiguity warning and reindent.
+
 2013-12-05  Marek Polacek  <polacek@redhat.com>
 
        * doc/invoke.texi: Document -fsanitize=signed-integer-overflow.
index 3fdf2ea9050108c6e08c8b41f9d996d5ce9ef354..30b49edb8c3fbaf0e0c82589d2577c3f9f62c5c6 100644 (file)
@@ -516,30 +516,6 @@ score_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
   reload_completed = 0;
 }
 
-/* Copy VALUE to a register and return that register.  If new psuedos
-   are allowed, copy it into a new register, otherwise use DEST.  */
-static rtx
-score_force_temporary (rtx dest, rtx value)
-{
-  if (can_create_pseudo_p ())
-    return force_reg (Pmode, value);
-  else
-    {
-      emit_move_insn (copy_rtx (dest), value);
-      return dest;
-    }
-}
-
-/* Return a LO_SUM expression for ADDR.  TEMP is as for score_force_temporary
-   and is used to load the high part into a register.  */
-static rtx
-score_split_symbol (rtx temp, rtx addr)
-{
-  rtx high = score_force_temporary (temp,
-                                     gen_rtx_HIGH (Pmode, copy_rtx (addr)));
-  return gen_rtx_LO_SUM (Pmode, high, addr);
-}
-
 /* Fill INFO with information about a single argument.  CUM is the
    cumulative state for earlier arguments.  MODE is the mode of this
    argument and TYPE is its type (if known).  NAMED is true if this
index 5ab78752c39566c0ef3a819dbdd34b0a25633ada..ca73401fc594e0cd9379a71fafe4bd794fcbd174 100644 (file)
@@ -755,13 +755,15 @@ typedef struct score_args
 /* Output of Dispatch Tables.  */
 /* This is how to output an element of a case-vector.  We can make the
    entries PC-relative in GP-relative when .gp(d)word is supported.  */
-#define ASM_OUTPUT_ADDR_DIFF_ELT(STREAM, BODY, VALUE, REL)                \
-  do {                                                                    \
-    if (TARGET_SCORE7)                                                    \
-      if (flag_pic)                                                       \
-        fprintf (STREAM, "\t.gpword %sL%d\n", LOCAL_LABEL_PREFIX, VALUE); \
-      else                                                                \
-        fprintf (STREAM, "\t.word %sL%d\n", LOCAL_LABEL_PREFIX, VALUE);   \
+#define ASM_OUTPUT_ADDR_DIFF_ELT(STREAM, BODY, VALUE, REL)                     \
+  do {                                                                         \
+    if (TARGET_SCORE7)                                                         \
+      {                                                                                \
+       if (flag_pic)                                                           \
+         fprintf (STREAM, "\t.gpword %sL%d\n", LOCAL_LABEL_PREFIX, VALUE);     \
+       else                                                                    \
+         fprintf (STREAM, "\t.word %sL%d\n", LOCAL_LABEL_PREFIX, VALUE);       \
+      }                                                                                \
   } while (0)
 
 /* Jump table alignment is explicit in ASM_OUTPUT_CASE_LABEL.  */