rs6000.c (rs6000_file_start): Note PPC405 erratum in verbose_asm output.

* 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
This commit is contained in:
David Edelsohn 2005-06-27 17:17:16 +00:00 committed by David Edelsohn
parent ec5537cc33
commit b0bfee6eb4
4 changed files with 22 additions and 2 deletions

View 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.

View 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 \

View 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)
{

View 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