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 2ee61b3fe50275d546a4f7b57c496acf66d18509..4919e3bfebe5701323afc947425611a7a79b9a52 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 a3f56637e57dd808e4656fe6ea7f097f467ea60e..66cced208cac40889fd51c22f3fe1163609618a9 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 f29ba870dfa4c018793ccee77482e6aaf0f210ce..bd78ecab5e28f17465ee74eb32bc5e802347d41b 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 85ea2eadc67778c3eb63297ba3611d4590dde6f7..fa7340f393fc53d04b66fbff554947d9f27a8637 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