Part of the patch to add support for the R100. Accidentally omitted from the checkin.
authorNick Clifton <nickc@gcc.gnu.org>
Wed, 5 Jun 2013 07:31:38 +0000 (07:31 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 5 Jun 2013 07:31:38 +0000 (07:31 +0000)
From-SVN: r199681

gcc/common/config/rx/rx-common.c

index 946c93a499bbaa2da4558ec16b9dde3e8c17930b..4186148318ed9b281b94fe865c5a7a9b68211529 100644 (file)
@@ -51,13 +51,16 @@ rx_handle_option (struct gcc_options *opts,
       return value >= 0 && value <= 4;
 
     case OPT_mcpu_:
-      if ((enum rx_cpu_types) value == RX200)
+      if ((enum rx_cpu_types) value == RX200 || 
+          (enum rx_cpu_types) value == RX100)
        opts->x_target_flags |= MASK_NO_USE_FPU;
       break;
       
     case OPT_fpu:
       if (opts->x_rx_cpu_type == RX200)
        error_at (loc, "the RX200 cpu does not have FPU hardware");
+      else if (opts->x_rx_cpu_type == RX100)
+       error_at (loc, "the RX100 cpu does not have FPU hardware");
       break;
 
     default: