Use CRTs provided by Solaris
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Thu, 24 Sep 2015 08:51:39 +0000 (08:51 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 24 Sep 2015 08:51:39 +0000 (08:51 +0000)
commit2d11044217edd9168eafea1c8c60603f87b0e00d
tree025e93ec3292313d548bc0002efbee95ff405726
parentfcb901cdfac9321b0202d800621f06b2aafd5bee
Use CRTs provided by Solaris

gcc:
* configure.ac (gcc_cv_solaris_crts): New test.
* configure. Regenerate.
* config.in: Regenerate.
* config/sol2.h (STARTFILE_SPEC): Simplify, provide
HAVE_SOLARIS_CRTS variant.

libgcc:
* configure.ac (libgcc_cv_solaris_crts): New test.
* configure: Regenerate.
* config.in: Regenerate.
* config/sol2/crtp.c, config/sol2/crtpg.c: New files.
* config/gmon-sol2.c: Rename to ...
* config/sol2/gmon.c: ... this.
Include auto-target.h.
(internal_mcount): Wrap setup handling in !HAVE_SOLARIS_CRTS.
* config/t-sol2: Rename to ...
* config/sol2/t-sol2: ... this.
(gmon.o): Reflect renaming.
(crtp.o, crtpg.o): New rules.
* config.host (*-*-solaris2*): Reflect renaming.
Use system CRTs if present.
Remove default CRT case.

From-SVN: r228077
16 files changed:
gcc/ChangeLog
gcc/config.in
gcc/config/sol2.h
gcc/configure
gcc/configure.ac
libgcc/ChangeLog
libgcc/config.host
libgcc/config.in
libgcc/config/gmon-sol2.c [deleted file]
libgcc/config/sol2/crtp.c [new file with mode: 0644]
libgcc/config/sol2/crtpg.c [new file with mode: 0644]
libgcc/config/sol2/gmon.c [new file with mode: 0644]
libgcc/config/sol2/t-sol2 [new file with mode: 0644]
libgcc/config/t-sol2 [deleted file]
libgcc/configure
libgcc/configure.ac