rs6000.c (rs6000_file_start): Note PPC405 erratum in verbose_asm output.
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 27 Jun 2005 17:17:16 +0000 (17:17 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 27 Jun 2005 17:17:16 +0000 (13:17 -0400)
* config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
in verbose_asm output.
* config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
CONFIG_PPC405CR.
* config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
405cr.

From-SVN: r101356

gcc/ChangeLog
gcc/config.gcc
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h

index 2ee61b3..4919e3b 100644 (file)
@@ -1,3 +1,12 @@
+2005-06-27  David Edelsohn  <edelsohn@gnu.org>
+
+       * config/rs6000/rs6000.c (rs6000_file_start): Note PPC405 erratum
+       in verbose_asm output.
+       * config/rs6000/rs6000.h (PPC405_ERRATUM77): Bracket with
+       CONFIG_PPC405CR.
+       * config.gcc (powerpc with_which): Define CONFIG_PPC405CR for
+       405cr.
+
 2005-06-27  Jakub Jelinek  <jakub@redhat.com>
 
        * builtin-attrs.def (DEF_ATTR_FOR_INT): Add for 5 and 6.
index a3f5663..66cced2 100644 (file)
@@ -2637,6 +2637,10 @@ case "${target}" in
                                with_which="with_$which"
                                eval $with_which=
                                ;;
+                       405cr)
+                               tm_defines="${tm_defines} CONFIG_PPC405CR"
+                               eval "with_$which=405"
+                               ;;
                        "" | common \
                        | power | power[2345] | powerpc | powerpc64 \
                        | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
index f29ba87..bd78eca 100644 (file)
@@ -1850,6 +1850,14 @@ rs6000_file_start (void)
            }
        }
 
+#ifdef CONFIG_PPC405CR
+      if (rs6000_cpu == PROCESSOR_PPC405)
+       {
+         fprint (file, "%s PPC405CR_ERRATUM77", start);
+         start = "";
+       }
+#endif
+
 #ifdef USING_ELFOS_H
       switch (rs6000_sdata)
        {
index 85ea2ea..fa7340f 100644 (file)
@@ -50,8 +50,7 @@
 #endif
 
 /* If configured for PPC405, support PPC405CR Erratum77.  */
-#define PPC405_CPU_DEFAULT ("405")
-#if #TARGET_CPU_DEFAULT == #PPC405_CPU_DEFAULT
+#ifdef CONFIG_PPC405CR
 #define PPC405_ERRATUM77 (rs6000_cpu == PROCESSOR_PPC405)
 #else
 #define PPC405_ERRATUM77 0