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: [PATCH, committed] PPC405 atomic support (PR target/21760)


On Mon, Jun 27, 2005 at 01:18:15PM -0400, David Edelsohn wrote:
> *** rs6000.c	25 Jun 2005 01:22:07 -0000	1.843
> --- rs6000.c	27 Jun 2005 17:10:42 -0000
> *************** rs6000_file_start (void)
> *** 1850,1855 ****
> --- 1850,1863 ----
>   	    }
>   	}
>   
> + #ifdef CONFIG_PPC405CR
> +       if (rs6000_cpu == PROCESSOR_PPC405)
> + 	{
> + 	  fprint (file, "%s PPC405CR_ERRATUM77", start);
> + 	  start = "";
> + 	}
> + #endif

  Wouldn't it be better to use "if (PPC405_ERRATUM77)" since rs6000.h
  defines PPC405_ERRATUM77 to zero if it wasn't defined through the
  config.gcc.

  Gunther

>   /* If configured for PPC405, support PPC405CR Erratum77.  */
> ! #ifdef CONFIG_PPC405CR
>   #define PPC405_ERRATUM77 (rs6000_cpu == PROCESSOR_PPC405)
>   #else
>   #define PPC405_ERRATUM77 0


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