* Makefile.in (CRTSTUFF_CFLAGS): New.
commite1ff7102031f1660a3c4fb71136eb8f7aa7380a5
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Jan 2002 04:18:12 +0000 (27 04:18 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Jan 2002 04:18:12 +0000 (27 04:18 +0000)
treee5878dd8630022a33d8797b199100a5b12fc5c7f
parentb8d900e56170ea1bd7acd8e992270498e7120d17
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49261 138bc75d-0d04-0410-961f-82ee72b054a4
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