This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Update config.gcc for sparc-elf target use of sol2 headers/files
- From: Nick Clifton <nickc at redhat dot com>
- To: rth at redhat dot com, davem at redhat dot com, jakub at redhat dot com, ebotcazou at libertysurf dot fr
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 19 Jan 2005 18:14:18 +0000
- Subject: Update config.gcc for sparc-elf target use of sol2 headers/files
Hi Guys,
A toolchain configured as "--target=sparc-elf" will not build in the
current mainline sources because of the lack of the function
solaris_insert_attributes().
It seems to me that there are two ways to solve this problem -
remove the inclusion of sparc/sol2.h for the sparc-elf target or
else add the inclusion of the config/sol2.c file. I am proposing
the latter and I would like to ask for permission to apply this
patch ?
Cheers
gcc/ChangeLog
2005-01-19 Nick Clifton <nickc@redhat.com>
* config.gcc (sparc-elf): Add sol2.o and sol2-c.o object files
and associated headers and makefile fragment.
Index: gcc/config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.508
diff -c -3 -p -r1.508 config.gcc
*** gcc/config.gcc 18 Jan 2005 11:36:02 -0000 1.508
--- gcc/config.gcc 19 Jan 2005 17:58:15 -0000
*************** sparc-*-elf*)
*** 1892,1897 ****
--- 1892,1902 ----
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h sparc/sol2.h sparc/elf.h"
tmake_file="sparc/t-elf sparc/t-crtfm"
extra_parts="crti.o crtn.o crtbegin.o crtend.o"
+ tmake_file="t-sol2 ${tmake_file}"
+ c_target_objs="sol2-c.o"
+ cxx_target_objs="sol2-c.o"
+ tm_p_file="${tm_p_file} sol2-protos.h"
+ extra_objs="sol2.o"
use_fixproto=yes
;;
sparc-*-linux*) # SPARC's running GNU/Linux, libc6