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
Showing
- gcc/ChangeLog 40 additions, 0 deletionsgcc/ChangeLog
- gcc/Makefile.in 16 additions, 20 deletionsgcc/Makefile.in
- gcc/config.gcc 8 additions, 4 deletionsgcc/config.gcc
- gcc/config/alpha/crtbegin.asm 0 additions, 228 deletionsgcc/config/alpha/crtbegin.asm
- gcc/config/alpha/crtend.asm 0 additions, 113 deletionsgcc/config/alpha/crtend.asm
- gcc/config/alpha/elf.h 23 additions, 1 deletiongcc/config/alpha/elf.h
- gcc/config/alpha/t-crtbe 0 additions, 14 deletionsgcc/config/alpha/t-crtbe
- gcc/config/cris/cris.h 14 additions, 8 deletionsgcc/config/cris/cris.h
- gcc/config/cris/linux.h 2 additions, 2 deletionsgcc/config/cris/linux.h
- gcc/config/i386/i386.h 8 additions, 0 deletionsgcc/config/i386/i386.h
- gcc/config/i386/linux.h 16 additions, 15 deletionsgcc/config/i386/linux.h
- gcc/config/i386/sol2.h 2 additions, 4 deletionsgcc/config/i386/sol2.h
- gcc/config/mcore/mcore-elf.h 2 additions, 4 deletionsgcc/config/mcore/mcore-elf.h
- gcc/config/s390/s390.h 6 additions, 8 deletionsgcc/config/s390/s390.h
- gcc/config/sh/sh.h 5 additions, 11 deletionsgcc/config/sh/sh.h
- gcc/crtstuff.c 24 additions, 52 deletionsgcc/crtstuff.c
- gcc/doc/tm.texi 14 additions, 6 deletionsgcc/doc/tm.texi
Loading
Please register or sign in to comment