]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgcc/crtstuff.c
Makefile.in (CRTSTUFF_CFLAGS): New.
authorRichard Henderson <rth@redhat.com>
Sun, 27 Jan 2002 04:18:12 +0000 (20:18 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 27 Jan 2002 04:18:12 +0000 (20:18 -0800)
commitcea3bd3e5a0a40eb90809bf90063da4911ba23b0
treee5878dd8630022a33d8797b199100a5b12fc5c7f
parent1f9131b7db56276783f0276f2083c208dbf05709
Makefile.in (CRTSTUFF_CFLAGS): New.

* Makefile.in (CRTSTUFF_CFLAGS): New.
(crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
* config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
crtstuff.c instead of alpha assembly version.
* crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
not FORCE_{INIT,FINI}_SECTION_ALIGN.
(__do_global_dtors_aux): Mark used.
(frame_dummy, __do_global_ctors_aux): Mark used.
(fini_dummy, init_dummy): Remove.

* config/alpha/crtbegin.asm: Remove file.
* config/alpha/crtend.asm: Remove file.
* config/alpha/t-crtbe: Remove file.
* config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
(LINK_EH_SPEC): New.

* config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
calling constructors.
* config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.

* config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
* config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
CRT_END_INIT_DUMMY hack.
* config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
FORCE_{INIT,FINI}_SECTION_ALIGN.

* config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
FORCE_{INIT,FINI}_SECTION_ALIGN.

* config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
invocation sequence.
* config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.

* doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
(FORCE_CODE_SECTION_ALIGN): New.

From-SVN: r49261
17 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/config.gcc
gcc/config/alpha/crtbegin.asm [deleted file]
gcc/config/alpha/crtend.asm [deleted file]
gcc/config/alpha/elf.h
gcc/config/alpha/t-crtbe [deleted file]
gcc/config/cris/cris.h
gcc/config/cris/linux.h
gcc/config/i386/i386.h
gcc/config/i386/linux.h
gcc/config/i386/sol2.h
gcc/config/mcore/mcore-elf.h
gcc/config/s390/s390.h
gcc/config/sh/sh.h
gcc/crtstuff.c
gcc/doc/tm.texi