Commit d5355cb2 by John David Anglin Committed by John David Anglin

Makefile.in (tm_defines): New configuration variable.

	* Makefile.in (tm_defines): New configuration variable.
	(cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
	Pass tm_defines in TM_DEFINES.
	(cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
	* config.gcc (tm_defines): New configuration variable.
	(hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
	pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
	* configure.in: Substitute tm_defines.
	* configure: Rebuilt.
	* mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
	* doc/install.texi: Update.
	* pa/pa-700.h: Delete file.
	* pa/pa-7100.h: Delete file.

From-SVN: r54648
parent 8dcb27ed
2002-06-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
* Makefile.in (tm_defines): New configuration variable.
(cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
Pass tm_defines in TM_DEFINES.
(cs-tm_p.h): Rename DEFINES to XM_DEFINES. Pass TM_DEFINES.
* config.gcc (tm_defines): New configuration variable.
(hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
pa-7100.h headers. Change hppa1* scheduling default to 7100LC.
* configure.in: Substitute tm_defines.
* configure: Rebuilt.
* mkconfig.sh: Rename DEFINES to XM_DEFINES. Output TM_DEFINES.
* doc/install.texi: Update.
* pa/pa-700.h: Delete file.
* pa/pa-7100.h: Delete file.
2002-06-15 Roger Sayle <roger@eyesopen.com> 2002-06-15 Roger Sayle <roger@eyesopen.com>
* fold-const.c (comparison_to_compcode): New function to convert * fold-const.c (comparison_to_compcode): New function to convert
......
...@@ -259,6 +259,7 @@ tmake_file=@dep_tmake_file@ ...@@ -259,6 +259,7 @@ tmake_file=@dep_tmake_file@
out_file=$(srcdir)/config/@out_file@ out_file=$(srcdir)/config/@out_file@
out_object_file=@out_object_file@ out_object_file=@out_object_file@
md_file=$(srcdir)/config/@md_file@ md_file=$(srcdir)/config/@md_file@
tm_defines=@tm_defines@
tm_p_file_list=@tm_p_file_list@ tm_p_file_list=@tm_p_file_list@
tm_p_file=@tm_p_file@ tm_p_file=@tm_p_file@
build_xm_file_list=@build_xm_file_list@ build_xm_file_list=@build_xm_file_list@
...@@ -845,22 +846,26 @@ tconfig.h: cs-tconfig.h ; @true ...@@ -845,22 +846,26 @@ tconfig.h: cs-tconfig.h ; @true
tm_p.h: cs-tm_p.h ; @true tm_p.h: cs-tm_p.h ; @true
cs-config.h: Makefile cs-config.h: Makefile
HEADERS="$(host_xm_file)" DEFINES="$(host_xm_defines)" \ TM_DEFINES="$(tm_defines)" \
HEADERS="$(host_xm_file)" XM_DEFINES="$(host_xm_defines)" \
TARGET_CPU_DEFAULT="$(target_cpu_default)" \ TARGET_CPU_DEFAULT="$(target_cpu_default)" \
$(SHELL) $(srcdir)/mkconfig.sh config.h $(SHELL) $(srcdir)/mkconfig.sh config.h
cs-hconfig.h: Makefile cs-hconfig.h: Makefile
HEADERS="$(build_xm_file)" DEFINES="$(build_xm_defines)" \ TM_DEFINES="$(tm_defines)" \
HEADERS="$(build_xm_file)" XM_DEFINES="$(build_xm_defines)" \
TARGET_CPU_DEFAULT="$(target_cpu_default)" \ TARGET_CPU_DEFAULT="$(target_cpu_default)" \
$(SHELL) $(srcdir)/mkconfig.sh hconfig.h $(SHELL) $(srcdir)/mkconfig.sh hconfig.h
cs-tconfig.h: Makefile cs-tconfig.h: Makefile
HEADERS="$(xm_file)" DEFINES="$(xm_defines)" \ TM_DEFINES="$(tm_defines)" \
HEADERS="$(xm_file)" XM_DEFINES="$(xm_defines)" \
TARGET_CPU_DEFAULT="" \ TARGET_CPU_DEFAULT="" \
$(SHELL) $(srcdir)/mkconfig.sh tconfig.h $(SHELL) $(srcdir)/mkconfig.sh tconfig.h
cs-tm_p.h: Makefile cs-tm_p.h: Makefile
HEADERS="$(tm_p_file)" DEFINES="" TARGET_CPU_DEFAULT="" \ TM_DEFINES="" \
HEADERS="$(tm_p_file)" XM_DEFINES="" TARGET_CPU_DEFAULT="" \
$(SHELL) $(srcdir)/mkconfig.sh tm_p.h $(SHELL) $(srcdir)/mkconfig.sh tm_p.h
# Don't automatically run autoconf, since configure.in might be accidentally # Don't automatically run autoconf, since configure.in might be accidentally
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
# #
# cpu_type The name of the cpu, if different from machine. # cpu_type The name of the cpu, if different from machine.
# #
# tm_defines List of target macros to define for all compilations.
#
# tm_file A list of target macro files, if different from # tm_file A list of target macro files, if different from
# "$cpu_type/$cpu_type.h". Usually it's constructed # "$cpu_type/$cpu_type.h". Usually it's constructed
# per target in a way like this: # per target in a way like this:
...@@ -188,6 +190,7 @@ extra_host_objs= ...@@ -188,6 +190,7 @@ extra_host_objs=
extra_gcc_objs= extra_gcc_objs=
c_target_objs= c_target_objs=
cxx_target_objs= cxx_target_objs=
tm_defines=
xm_defines= xm_defines=
float_format= float_format=
# Set this to force installation and use of collect2. # Set this to force installation and use of collect2.
...@@ -2850,11 +2853,8 @@ hppa*-*-* | parisc*-*-*) ...@@ -2850,11 +2853,8 @@ hppa*-*-* | parisc*-*-*)
target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY" target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
fi fi
case $machine in case $machine in
hppa1.0* | parisc1.0*) hppa1* | parisc1*)
tm_file="pa/pa-700.h ${tm_file}" tm_defines="TARGET_SCHED_DEFAULT=\\\"7100LC\\\""
;;
hppa1.1* | parisc1.1*)
tm_file="pa/pa-7100.h ${tm_file}"
;; ;;
esac esac
;; ;;
......
/* Definitions of target machine for GNU compiler, for HPs using the
PA700 scheduling model.
Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef TARGET_SCHED_DEFAULT
#define TARGET_SCHED_DEFAULT "700"
#endif
/* Definitions of target machine for GNU compiler, for HPs using the
PA7100 scheduling model.
Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef TARGET_SCHED_DEFAULT
#define TARGET_SCHED_DEFAULT "7100"
#endif
...@@ -2244,7 +2244,7 @@ EOF ...@@ -2244,7 +2244,7 @@ EOF
fi fi
# Find some useful tools # Find some useful tools
for ac_prog in gawk mawk nawk awk for ac_prog in mawk gawk nawk awk
do do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
...@@ -8373,6 +8373,7 @@ ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xma ...@@ -8373,6 +8373,7 @@ ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xma
# Echo that links are built # Echo that links are built
if test x$host = x$target if test x$host = x$target
then then
...@@ -8684,6 +8685,7 @@ s%@symbolic_link@%$symbolic_link%g ...@@ -8684,6 +8685,7 @@ s%@symbolic_link@%$symbolic_link%g
s%@thread_file@%$thread_file%g s%@thread_file@%$thread_file%g
s%@tm_file_list@%$tm_file_list%g s%@tm_file_list@%$tm_file_list%g
s%@tm_file@%$tm_file%g s%@tm_file@%$tm_file%g
s%@tm_defines@%$tm_defines%g
s%@tm_p_file_list@%$tm_p_file_list%g s%@tm_p_file_list@%$tm_p_file_list%g
s%@tm_p_file@%$tm_p_file%g s%@tm_p_file@%$tm_p_file%g
s%@xm_file@%$xm_file%g s%@xm_file@%$xm_file%g
......
...@@ -2595,6 +2595,7 @@ AC_SUBST(symbolic_link) ...@@ -2595,6 +2595,7 @@ AC_SUBST(symbolic_link)
AC_SUBST(thread_file) AC_SUBST(thread_file)
AC_SUBST(tm_file_list) AC_SUBST(tm_file_list)
AC_SUBST(tm_file) AC_SUBST(tm_file)
AC_SUBST(tm_defines)
AC_SUBST(tm_p_file_list) AC_SUBST(tm_p_file_list)
AC_SUBST(tm_p_file) AC_SUBST(tm_p_file)
AC_SUBST(xm_file) AC_SUBST(xm_file)
......
...@@ -1997,12 +1997,11 @@ If you wish to use pa-risc 2.0 architecture support, you must use either ...@@ -1997,12 +1997,11 @@ If you wish to use pa-risc 2.0 architecture support, you must use either
the HP assembler, gas/binutils 2.11 or a recent the HP assembler, gas/binutils 2.11 or a recent
@uref{ftp://sources.redhat.com/pub/binutils/snapshots,,snapshot of gas}. @uref{ftp://sources.redhat.com/pub/binutils/snapshots,,snapshot of gas}.
There are three default scheduling models for instructions. They There are two default scheduling models for instructions. These are
are PROCESSOR_700, PROCESSOR_7100 and PROCESSOR_8000. They are selected PROCESSOR_7100LC and PROCESSOR_8000. They are selected from the pa-risc
based on the the pa-risc architecture specified for the target machine architecture specified for the target machine when configuring.
when configuring. PROCESSOR_8000 is the default model. PROCESSOR_700 PROCESSOR_8000 is the default. PROCESSOR_7100LC is selected when
and PROCESSOR_7100 are selected by specifying either @samp{hppa1.0} or the target is a @samp{hppa1*} machine.
@samp{hppa1.1}, respectively.
The PROCESSOR_8000 model is not well suited to older processors. Thus, The PROCESSOR_8000 model is not well suited to older processors. Thus,
it is important to completely specify the machine architecture when it is important to completely specify the machine architecture when
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
# Generate gcc's config.h, which is not your normal autoconf-generated # Generate gcc's config.h, which is not your normal autoconf-generated
# config.h (that's auto-(host|build).h). $1 is the file to generate. # config.h (that's auto-(host|build).h). $1 is the file to generate.
# HEADERS, DEFINES, and possibly TARGET_CPU_DEFAULT are expected to be # TM_DEFINES, HEADERS, XM_DEFINES, and possibly TARGET_CPU_DEFAULT are
# set in the environment. # expected to be set in the environment.
if [ -z "$1" ]; then if [ -z "$1" ]; then
echo "Usage: HEADERS='list' DEFINES='list' mkconfig.sh FILE" >&2 echo "Usage: TM_DEFINES='list' HEADERS='list' XM_DEFINES='list' mkconfig.sh FILE" >&2
exit 1 exit 1
fi fi
...@@ -19,6 +19,13 @@ if [ "$TARGET_CPU_DEFAULT" != "" ]; then ...@@ -19,6 +19,13 @@ if [ "$TARGET_CPU_DEFAULT" != "" ]; then
echo "#define TARGET_CPU_DEFAULT ($TARGET_CPU_DEFAULT)" >> ${output}T echo "#define TARGET_CPU_DEFAULT ($TARGET_CPU_DEFAULT)" >> ${output}T
fi fi
# Provide defines for other target machine macros to be used everywhere.
for def in $TM_DEFINES; do
echo "#ifndef $def" | sed 's/=.*//' >> ${output}T
echo "# define $def" | sed 's/=/ /' >> ${output}T
echo "#endif" >> ${output}T
done
# The first entry in HEADERS may be auto-host.h or auto-build.h; # The first entry in HEADERS may be auto-host.h or auto-build.h;
# it wants to be included even when not -DIN_GCC. # it wants to be included even when not -DIN_GCC.
if [ -n "$HEADERS" ]; then if [ -n "$HEADERS" ]; then
...@@ -63,7 +70,7 @@ if [ -n "$HEADERS" ]; then ...@@ -63,7 +70,7 @@ if [ -n "$HEADERS" ]; then
echo '#endif' >> ${output}T echo '#endif' >> ${output}T
fi fi
for def in $DEFINES; do for def in $XM_DEFINES; do
echo "#ifndef $def" | sed 's/=.*//' >> ${output}T echo "#ifndef $def" | sed 's/=.*//' >> ${output}T
echo "# define $def" | sed 's/=/ /' >> ${output}T echo "# define $def" | sed 's/=/ /' >> ${output}T
echo "#endif" >> ${output}T echo "#endif" >> ${output}T
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment