PA scheduling patch
law@redhat.com
law@redhat.com
Tue Apr 30 09:49:00 GMT 2002
I've been meaning to flip the default scheduling to PA8000 for a while
now. This patch finally does it. It also documents the newly added
capability to schedule for the PA7300 chip.
* pa.c (override_options): Default to PA8000 scheduling.
* invoke.texi (HP-PA options): Mention newly added 7300
scheduling parameter.
Index: pa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/pa/pa.c,v
retrieving revision 1.154
diff -c -3 -p -r1.154 pa.c
*** pa.c 29 Apr 2002 22:34:36 -0000 1.154
--- pa.c 30 Apr 2002 16:43:51 -0000
*************** struct gcc_target targetm = TARGET_INITI
*** 161,167 ****
void
override_options ()
{
! /* Default to 7100LC scheduling. */
if (pa_cpu_string && ! strcmp (pa_cpu_string, "7100"))
{
pa_cpu_string = "7100";
--- 161,167 ----
void
override_options ()
{
! /* Default to 8000 scheduling. */
if (pa_cpu_string && ! strcmp (pa_cpu_string, "7100"))
{
pa_cpu_string = "7100";
*************** override_options ()
*** 172,179 ****
pa_cpu_string = "700";
pa_cpu = PROCESSOR_700;
}
! else if (pa_cpu_string == NULL
! || ! strcmp (pa_cpu_string, "7100LC"))
{
pa_cpu_string = "7100LC";
pa_cpu = PROCESSOR_7100LC;
--- 172,178 ----
pa_cpu_string = "700";
pa_cpu = PROCESSOR_700;
}
! else if (pa_cpu_string && ! strcmp (pa_cpu_string, "7100LC"))
{
pa_cpu_string = "7100LC";
pa_cpu = PROCESSOR_7100LC;
*************** override_options ()
*** 188,194 ****
pa_cpu_string = "7300";
pa_cpu = PROCESSOR_7300;
}
! else if (pa_cpu_string && ! strcmp (pa_cpu_string, "8000"))
{
pa_cpu_string = "8000";
pa_cpu = PROCESSOR_8000;
--- 187,194 ----
pa_cpu_string = "7300";
pa_cpu = PROCESSOR_7300;
}
! else if (pa_cpu_string == NULL
! || ! strcmp (pa_cpu_string, "8000"))
{
pa_cpu_string = "8000";
pa_cpu = PROCESSOR_8000;
Index: doc/invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.140
diff -c -3 -p -r1.140 invoke.texi
*** doc/invoke.texi 29 Apr 2002 11:39:31 -0000 1.140
--- doc/invoke.texi 30 Apr 2002 16:44:42 -0000
*************** Enable the use of assembler directives o
*** 7649,7657 ****
@opindex mschedule
Schedule code according to the constraints for the machine type
@var{cpu-type}. The choices for @var{cpu-type} are @samp{700}
! @samp{7100}, @samp{7100LC}, @samp{7200}, and @samp{8000}. Refer to
! @file{/usr/lib/sched.models} on an HP-UX system to determine the
! proper scheduling option for your machine.
@item -mlinker-opt
@opindex mlinker-opt
--- 7649,7658 ----
@opindex mschedule
Schedule code according to the constraints for the machine type
@var{cpu-type}. The choices for @var{cpu-type} are @samp{700}
! @samp{7100}, @samp{7100LC}, @samp{7200}, @samp{7300} and @samp{8000}. Refer
! to @file{/usr/lib/sched.models} on an HP-UX system to determine the
! proper scheduling option for your machine. The default scheduling is
! @samp{8000}.
@item -mlinker-opt
@opindex mlinker-opt
More information about the Gcc-patches
mailing list