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: [committed] Fix typo in rs6000.opt


On Fri, May 27, 2005 at 09:04:47PM -0400, Aldy Hernandez wrote:
> >>>>> "Richard" == Richard Sandiford <rsandifo@redhat.com> writes:
> 
>  > FWIW, I noticed a couple of other things while looking at this:
> 
>  >   - config/rs6000/linuxspe.h refers to "rs6000_abi_string".
>  >     This variable is declared extern in config/rs6000/rs6000.h
>  >     but doesn't seem to be defined anywhere.  Should it be
>  >     "rs6000_abi_name" instead?

Fixed with attached patch.  Committed.

	* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
	rs6000_explicit_options.

Index: config/rs6000/linuxspe.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linuxspe.h,v
retrieving revision 1.5
diff -c -p -r1.5 linuxspe.h
*** config/rs6000/linuxspe.h	21 Oct 2004 22:28:25 -0000	1.5
--- config/rs6000/linuxspe.h	8 Jun 2005 20:11:47 -0000
***************
*** 47,62 ****
  #define SUBSUBTARGET_OVERRIDE_OPTIONS \
    if (rs6000_select[1].string == NULL) \
      rs6000_cpu = PROCESSOR_PPC8540; \
!   if (rs6000_abi_string == NULL || strstr (rs6000_abi_string, "spe") == NULL) \
      rs6000_spe_abi = 1; \
!   if (rs6000_float_gprs_string == NULL) \
      rs6000_float_gprs = 1; \
    /* See note below.  */ \
!   /*if (rs6000_long_double_size_string == NULL)*/ \
    /*  rs6000_long_double_type_size = 128;*/ \
!   if (rs6000_spe_string == NULL) \
      rs6000_spe = 1; \
!   if (rs6000_isel_string == NULL) \
      rs6000_isel = 1; \
    if (target_flags & MASK_64BIT) \
      error ("-m64 not supported in this configuration")
--- 47,62 ----
  #define SUBSUBTARGET_OVERRIDE_OPTIONS \
    if (rs6000_select[1].string == NULL) \
      rs6000_cpu = PROCESSOR_PPC8540; \
!   if (!rs6000_explicit_options.abi) \
      rs6000_spe_abi = 1; \
!   if (!rs6000_explicit_options.float_gprs) \
      rs6000_float_gprs = 1; \
    /* See note below.  */ \
!   /*if (!rs6000_explicit_options.long_double)*/ \
    /*  rs6000_long_double_type_size = 128;*/ \
!   if (!rs6000_explicit_options.spe) \
      rs6000_spe = 1; \
!   if (!rs6000_explicit_options.isel) \
      rs6000_isel = 1; \
    if (target_flags & MASK_64BIT) \
      error ("-m64 not supported in this configuration")


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