1. 04 May, 2007 1 commit
    • crtstuff.c (HIDDEN_DTOR_LIST_END): New macro. · 3fc95619
      	* crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
      	(__do_global_dtors_aux): Use more paranoid loop to run
      	destructors if HIDDEN_DTOR_LIST_END.
      	(__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
      
      Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
      
      From-SVN: r124444
      Ulrich Drepper committed
  2. 18 Jan, 2007 1 commit
    • config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file. · abe92a04
      gcc/
      	* config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
      	* config/flat.h: New file.
      	* crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
      	OBJECT_FORMAT_FLAT.
      	* config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
      	indirect references for -msep-data or -mid-shared-library.
      	Do not use PC-relative code addresses either.
      	* config/m68k/m68k.c (override_options): Restrict -fPIC error
      	to -mpcrel.
      	* config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
      	for shared libraries and crt1.o for executables.  Use crti.o and
      	crtbegin.o.
      	(ENDFILE_SPEC): Use crtend.o and crtn.o.
      	(LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
      	Do not add -elf2flt or -shared-lib-id options here.
      	(LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
      	Pass -shared-lib-id if -mid-shared-library, taking the library
      	identifier from -mshared-library-id if given, otherwise
      	defaulting to 0.
      	(EH_FRAME_IN_DATA_SECTION): Do not undefine.
      	(INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
      	(TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
      	and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
      	(DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
      	* config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
      	and crtend.o.
      	* config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
      	jump sequence for ISA A and ISA A+.
      	(PICJUMP): Likewise.
      
      From-SVN: r120912
      Richard Sandiford committed
  3. 16 May, 2006 1 commit
  4. 15 Nov, 2005 1 commit
  5. 25 Jun, 2005 1 commit
  6. 11 May, 2005 1 commit
  7. 10 May, 2005 1 commit
  8. 09 May, 2005 1 commit
    • crtstuff.c, [...]: Update copyright. · c3d4c143
      	* crtstuff.c, integrate.h, tree-scalar-evolution.h,
      	config/alpha/unicosmk.h, config/arc/arc.md,
      	config/arm/bpabi.h, config/arm/coff.h, config/arm/elf.h,
      	config/arm/ieee754-df.S, config/arm/ieee754-sf.S,
      	config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
      	config/arm/semi.h, config/arm/uclinux-elf.h,
      	config/arm/wince-pe.h, config/fr30/fr30.c,
      	config/rs6000/altivec.h: Update copyright.
      
      From-SVN: r99447
      Kazu Hirata committed
  9. 08 May, 2005 1 commit
    • Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh · 232b67d9
      	* Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh
      	* aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New.
      	* configure.ac (enable_checking): Fix typos in runtime_checking.
      	(ENABLE_RUNTIME_CHECKING): Mark as target template.
      	(xm_file): Prepend auto-host.h
      	(HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template.
      	* mkconfig.sh: Do not automatically define USED_FOR_TARGET in
      	tconfig.h.
      	* crtstuff.c: Do not include auto-host.h.
      	(IN_LIBGCC2): Do not define.
      	* gcov-io.h: Include tconfig.h, not auto-host.h.
      	* libgcc2.c: Do not include auto-host.h.
      	(abort): Do not undefine.
      	* libgcov.c: Remove unneeded comment about config.h.
      	* unwind-dw2-fde-glibc.c: Do not inlude auto-host.h.
      	* config.in, configure: Regenerated.
      
      Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
      
      From-SVN: r99386
      Nathan Sidwell committed
  10. 29 Apr, 2005 1 commit
    • crtstuff.c: Handle targets that use .init_array. · 7abc66b1
      	* crtstuff.c: Handle targets that use .init_array.
      	* function.c (HAS_INIT_SECTION): Do not define. Instead, make sure
      	that INVOKE__main is set correctly.
      	(expand_main_function): Test INVOKE__main.
      	* libgcc2.c: Do not define __main when using .init_array.
      	* config/arm/arm.c (arm_elf_asm_constructor): New function.
      	* config/arm/arm.h (CTORS_SECTION_ASM_OP): Define, with specialized
      	libgcc version.
      	(DTORS_SECTION_ASM_OP): Likewise.
      	(CTOR_LIST_BEGIN): Define specially when in libgcc.
      	(CTOR_LIST_END): Likewise.
      	(DTOR_LIST_BEGIN): Likewise.
      	(DTOR_LIST_END): Likewise.
      	* config/arm/bpapi.h (INIT_SECTION_ASM_OP): Do not define it.
      	(FINI_SECTION_ASM_OP): Likewise.
      	(INIT_ARRAY_SECTION_ASM_OP): Define.
      	(FINI_ARRAY_SECTION_ASM_OP): Likewise.
      	* config/arm/elf.h (TARGET_ASM_CONSTRUCTOR): Define.
      	(SUPPORTS_INIT_PRIORITY): Evaluate to false for EABI based targets.
      	* doc/tm.texi (INIT_ARRAY_SECTION_ASM_OP): Document.
      	(FINI_ARRAY_SECTION_ASM_OP): Likewise.
      
      Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
      Co-Authored-By: Paul Brook <paul@codesourcery.com>
      
      From-SVN: r98986
      Julian Brown committed
  11. 24 Nov, 2004 1 commit
    • crtstuff.c (IN_LIBGCC2): Define it. · 1a35e62d
      2004-11-24  Mark Mitchell  <mark@codesourcery.com>
                  Joseph Myers  <joseph@codesourcery.com>
      
      	* crtstuff.c (IN_LIBGCC2): Define it.
      	(EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
      	instead of HAVE_LD_RO_RW_SECTION_MIXING.
      	* defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
      	* dwarf2out.c (named_section_eh_frame_section): Check
      	EH_TABLES_CAN_BE_READ_ONLY.
      	* except.c (default_exception_section): Likewise.
      	* config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
      	* doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
      
      Co-Authored-By: Joseph Myers <joseph@codesourcery.com>
      
      From-SVN: r91160
      Mark Mitchell committed
  12. 13 Oct, 2004 1 commit
  13. 18 Sep, 2004 1 commit
    • alias.c, [...]: Fix comment typos. · 454ff5cb
      	* alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
      	gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
      	optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
      	tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
      	tree-ssa-operands.c, tree-ssa-phiopt.c,
      	tree-ssa-threadupdate.c: Fix comment typos.
      
      From-SVN: r87707
      Kazu Hirata committed
  14. 21 Jan, 2004 2 commits
    • alias.c, [...]: Update copyright. · d9221e01
      	* alias.c, basic-block.h, c-common.c, c-common.h,
      	c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
      	calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
      	combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
      	cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
      	defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
      	expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
      	genautomata.c, genconditions.c, genemit.c, genflags.c,
      	gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
      	ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
      	langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
      	line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
      	ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
      	rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
      	target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
      	unwind.h, varray.c, varray.h: Update copyright.
      
      From-SVN: r76302
      Kazu Hirata committed
    • crtstuff.c (frame_dummy, [...]): Call _Jv_RegisterClasses through a function pointer. · bfccaa6f
      	* crtstuff.c (frame_dummy, __do_global_ctors_1): Call
      	_Jv_RegisterClasses through a function pointer.
      
      From-SVN: r76287
      Jakub Jelinek committed
  15. 21 Nov, 2003 1 commit
  16. 31 Oct, 2003 1 commit
    • 2003-10-31 Andreas Jaeger <aj@suse.de>, · a30794da
                  Zack Weinberg  <zack@codesourcery.com>
      
      
              * crtstuff.c (__register_frame_info, __register_frame_info_bases)
              (__deregister_frame_info, __deregister_frame_info_bases):
              Constify void * argument.
              * unwind-dw2-fde.h (struct fde_vector):
              Constify 'orig_data' and 'array' fields.
              (__register_frame_info, __register_frame_info_bases)
              (__deregister_frame_info, __deregister_frame_info_bases):
              Constify void * argument.
              (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
              return values, and casts of type fde *, struct dwarf_fde *,
              and struct dwarf_cie *.
              * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
              (__deregister_frame_info, __deregister_frame_info_bases):
              Constify void * argument.
              (get_cie_encoding, ): Constify struct dwarf_cie * argument.
              (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
              (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
              fde_split, SWAP, frame_downheap, frame_heapsort)
              (classify_object_over_fdes, add_fdes, linear_search_fdes,
              binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
              binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
              Constify arguments, local variables, return values, and casts
              of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
              Use const pointer types in sizeof expressions, for clarity.
              * unwind-dw2-fde-glibc.c
              (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
              (struct unw_eh_callback_data): Constify 'ret' field.
      
      Co-Authored-By: Zack Weinberg <zack@codesourcery.com>
      
      From-SVN: r73155
      Andreas Jaeger committed
  17. 28 Oct, 2003 1 commit
    • irix6-libc-compat.c (inet_makeaddr): Prototype. · 525996eb
      	* config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
      	* crtstuff.c (__do_global_ctors_1): Move prototype.
      	* unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
      	appropriate.
      	* unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
      	Mark parameter with __attribute__((unused)).
      
      From-SVN: r72999
      Kaveh R. Ghazi committed
  18. 07 Jun, 2003 1 commit
  19. 04 Jun, 2003 1 commit
    • uwin.h: Remove SUBTARGET_PROLOGUE. · f691dc3b
      	* config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
      
      	* config/i386/i386.c (ix86_expand_prologue): Do not use
      	SUBTARGET_PROLOGUE.
      
      	* system.h: Poision SUBTARGET_PROLOGUE.
      
      	* config/arm/arm-protos.h: Remove unused rdate_section prototype.
      
      	* output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
      	dependend code.
      
      	* system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
      
      	* system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
      	INSN_CACHE_LINE_WIDTH.
      
      	* libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
      	(__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
      	INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
      
      	* doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
      	INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
      
      	* dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
      	(dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
      	(dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
      	(dbxout_block): Remove usage of DBX_LBRAC_FIRST.
      	(dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
      	(dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
      
      	* doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
      	DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
      	DBX_WORKING_DIRECTORY.
      
      	* system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
      	DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
      
      	* config/frv/frv-protos.h: Remove unused const_section
      	declaration.
      	* config/vax/vax-protos.h: Likewise.
      
      	* output.h: Remove CONST_SECTION_ASM_OP usage.
      
      	* system.h: Poison CONST_SECTION_ASM_OP.
      
      	* crtstuff.c (__do_global_dtors_aux): Remove usage of CRT_GET_RFIB_TEXT
      	(frame_dummy): Likewise.
      	* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
      	* system.h: Poison CRT_GET_RFIB_TEXT.
      
      From-SVN: r67423
      Andreas Jaeger committed
  20. 16 Dec, 2002 1 commit
  21. 26 Nov, 2002 1 commit
    • varasm.c (default_exception_section): Move to... · 96d0f4dc
      	* varasm.c (default_exception_section): Move to...
      	* except.c (default_exception_section): ... here. Make
      	.gcc_except_table read-only if it is not expected to have any
      	dynamic relocations and linker handles it.
      	* dwarf2out.c (default_eh_frame_section): Make .eh_frame read-only
      	if it is not expected to have any dynamic relocations and linker
      	handles it.
      	* configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Check what ld does
      	when linking read-only and read-write sections together.
      	* configure, config.in: Rebuilt.
      	* crtstuff.c (EH_FRAME_SECTION_CONST): Define.
      	(__EH_FRAME_BEGIN__, __FRAME_END__): Add it.
      
      From-SVN: r59507
      Jakub Jelinek committed
  22. 07 Nov, 2002 1 commit
    • Index: ChangeLog · 3cfe49da
      2002-11-05  Geoffrey Keating  <geoffk@apple.com>
      
      	* config.gcc: Don't create crtbegin, crtend on Darwin; do create
      	crt2.o.  Rearrange t-darwin makefiles.
      	* crtstuff.c [OBJECT_FORMAT_MACHO]: Delete.
      	* unwind-dw2-fde-darwin.c: New.
      	* unwind-dw2-fde-glibc.c: Correct comment.
      	* unwind-dw2-fde.c (__register_frame_info_bases)
      	[DWARF2_OBJECT_END_PTR_EXTENSION]: Clear fde_end.
      	(classify_object_over_fdes): Use last_fde.
      	(add_fdes): Likewise.
      	(linear_search_fdes): Likewise.
      	* unwind-dw2-fde.h (struct object)
      	[DWARF2_OBJECT_END_PTR_EXTENSION]: Add fde_end field.
      	(last_fde): New.
      	* config/darwin.h (STARTFILE_SPEC): Include crt2.o not crtbegin.o.
      	(ENDFILE_SPEC): No crtend.o.
      	* config/t-darwin: New.
      	* config/i386/t-darwin: Delete.
      	* config/darwin-crt2.c: New.
      	* config/rs6000/t-darwin: Delete contents duplicated in t-rs6000
      	or config/t-darwin.
      
      Index: testsuite/ChangeLog
      2002-11-05  Geoffrey Keating  <geoffk@apple.com>
      
      	* g++.old-deja/g++.eh/badalloc1.C: XFAIL excess errors test on
      	Darwin.
      
      From-SVN: r58877
      Geoffrey Keating committed
  23. 13 Sep, 2002 1 commit
    • target.h (struct gcc_target): New field terminate_dw2_eh_frame_info. · 7606e68f
              * target.h (struct gcc_target): New field
              terminate_dw2_eh_frame_info.
              * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
              (TARGET_INITIALIZER): Add it.
              * dwarf2out.c (output_call_frame_info): Use target hook.
              * dwarf2asm.c (dw2_asm_output_delta): Use macro
              ASM_OUTPUT_DWARF_DELTA if defined.
              * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
              (ASM_OUTPUT_DWARF_DELTA): Ditto.
              (ASM_OUTPUT_DWARF_OFFSET): Ditto.
              (ASM_OUTPUT_DWARF_PCREL): Ditto.
              * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
              (powerpc-*-darwin*): Ditto.
              * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
              to work correctly for Darwin.
              * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
              (STARTFILE_SPEC): Add crtbegin.o.
              (ENDFILE_SPEC): Define.
              (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
              (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
              (ASM_OUTPUT_DWARF_DELTA): Define.
              (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
              * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
      
      From-SVN: r57089
      Stan Shebs committed
  24. 04 Jun, 2002 1 commit
  25. 26 Feb, 2002 1 commit
    • attribs.c (c_common_attribute_table): Add visibility. · 47bd70b5
      	* attribs.c (c_common_attribute_table): Add visibility.
      	(handle_visibility_attribute): New function.
      	* varasm.c (assemble_visibility): New function.
      	* output.h (assemble_visibility): Add prototype.
      	* tree.h (MODULE_LOCAL_P): Define.
      	* crtstuff.c (__dso_handle): Use visibility attribute.
      	* config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
      	for MODULE_LOCAL_P symbols too.
      	* config/ia64/ia64.c (ia64_encode_section_info): Handle
      	MODULE_LOCAL_P symbols the same way as local symbols.
      	Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
      	into .sdata/.sbss by the user.
      	* doc/extend.texi (Function Attributes): Document visibility
      	attribute.
      
      	* gcc.dg/ia64-visibility-1.c: New test.
      
      From-SVN: r50061
      Jakub Jelinek committed
  26. 05 Feb, 2002 1 commit
  27. 27 Jan, 2002 1 commit
    • Makefile.in (CRTSTUFF_CFLAGS): New. · cea3bd3e
      	* 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
      Richard Henderson committed
  28. 25 Jan, 2002 1 commit
  29. 15 Dec, 2001 1 commit
    • configure.in: Check for ld. · 275b60d6
      	* configure.in: Check for ld.
      	(HAVE_LD_EH_FRAME_HDR): Define if ld supports --eh-frame-hdr option.
      	* configure, config.in: Rebuilt.
      	* config.gcc: Add crtbeginT.o to extra_parts where needed.
      	* config/t-linux (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde-glibc
      	frame unwinding on Linux.
      	* config/t-linux-gnulibc1 (LIB2ADDEH, LIB2ADDEHDEP): Use unwind-dw2-fde
      	frame unwinding.
      	* config/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
      	(LINK_EH_SPEC): Define.
      	* config/i386/gnu.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
      	* config/ia64/linux.h (STARTFILE_SPEC, LINK_EH_SPEC): Define.
      	* config/ia64/fde-glibc.c (_Unwind_IteratePhdrCallback): Don't
      	iterate further if pc falls into current library, but fde was not
      	found.
      	* config/sparc/linux.h (STARTFILE_SPEC): Use crtbeginT.o for -static
      	if using glibc.
      	(LINK_EH_SPEC): Define.
      	* config/sparc/linux64.h (STARTFILE_SPEC32, STARTFILE_SPEC64):
      	Use crtbeginT.o for -static.
      	(LINK_EH_SPEC): Define.
      	* config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
      	* Makefile.in (crtbeginT.o): Add rule.
      	* gcc.c (init_gcc_specs): For -static-libgcc, use -lgcc -lgcc_eh.
      	If neither -static-libgcc nor -shared-libgcc is passed and -shared,
      	use -lgcc if LINK_EH_SPEC is defined and -lgcc_s -lgcc if not.
      	If none of the above switches are passed, use -lgcc -lgcc_eh.
      	(init_spec): If LINK_EH_SPEC is defined, prepend it to link_spec.
      	* mklibgcc.in: Don't include LIB2ADDEH objects into libgcc.a if
      	creating libgcc_s.so, put them into separate libgcc_eh.a instead.
      	* unwind-dw2-fde.c: Don't include any headers if this file
      	is included from other .c file.
      	* unwind-dw2-fde-glibc.c: New file.
      	* crtstuff.c (USE_PT_GNU_EH_FRAME, USE_EH_FRAME_REGISTRY): Define.
      	Use it instead of EH_FRAME_SECTION_NAME where appropriate.
      
      From-SVN: r48039
      Jakub Jelinek committed
  30. 26 Oct, 2001 1 commit
  31. 10 Oct, 2001 1 commit
    • calls.c: Fix formatting. · 6d2f8887
      	* calls.c: Fix formatting.
      	* c-decl.c: Likewise.
      	* cfgcleanup.c: Likewise.
      	* combine.c: Likewise.
      	* cppfiles.c: Likewise.
      	* cpplib.c: Likewise.
      	* cppmacro.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* dwarf2out.c: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* gcse.c: Likewise.
      	* genattrtab.c: Likewise.
      	* ggc-page.c: Likewise.
      	* integrate.c: Likewise.
      	* libgcc2.c: Likewise.
      	* loop.c: Likewise.
      	* optabs.c: Likewise.
      	* profile.c: Likewise.
      	* protoize.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reload1.c: Likewise.
      	* reload.c: Likewise.
      	* reorg.c: Likewise.
      	* resource.c: Likewise.
      	* sched-rgn.c: Likewise.
      	* sdbout.c: Likewise.
      	* stmt.c: Likewise.
      	* toplev.c: Likewise.
      	* varasm.c: Likewise.
      
      From-SVN: r46145
      Kazu Hirata committed
  32. 22 Aug, 2001 1 commit
    • Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      	* Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
      	bitmap.h, builtin-types.def, builtins.c, builtins.def,
      	c-aux-info.c, c-common.c, c-common.def, c-common.h,
      	c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
      	c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
      	c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
      	caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
      	conditions.h, config.gcc, configure.frag, configure.in,
      	conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
      	cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
      	dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
      	doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
      	dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
      	emit-rtl.c, errors.c, errors.h, except.c, except.h,
      	exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
      	fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
      	function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
      	gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
      	gencheck.c, gencodes.c, genconfig.c, genemit.c,
      	genextract.c, genflags.c, gengenrtl.c, genmultilib,
      	genopinit.c, genoutput.c, genpeep.c, genrecog.c,
      	gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
      	ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
      	graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
      	gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
      	gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
      	hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
      	integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
      	libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
      	machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
      	mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
      	mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
      	params.h, predict.c, predict.def, predict.h, prefix.c,
      	prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
      	read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
      	regclass.c, regmove.c, regrename.c, regs.h, reload.c,
      	reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
      	rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
      	sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
      	sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
      	ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
      	stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
      	tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
      	tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
      	unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
      	unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
      	xcoffout.h: replace "GNU CC" with "GCC".
      
      From-SVN: r45105
      Lars Brinkhoff committed
  33. 21 Aug, 2001 1 commit
    • crtstuff.c: Fix thinko last change. · 29d2c7a5
              * crtstuff.c: Fix thinko last change.  Move list tails to start
              of CRT_END section.  Tidy ifdefs.
              (__EH_FRAME_BEGIN__): Always static for ELF.
              (__do_global_ctors_1): Rename from __frame_dummy.
              * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
              name change; don't hide __EH_FRAME_BEGIN__.
      
      From-SVN: r45075
      Richard Henderson committed
  34. 20 Aug, 2001 1 commit
  35. 19 Aug, 2001 1 commit
  36. 17 Aug, 2001 1 commit
  37. 09 Aug, 2001 1 commit
  38. 08 Aug, 2001 1 commit
    • class.c (emit_register_classes): Use assemble_jcr if possible. · 6351543d
      2001-08-08  Anthony Green  <green@redhat.com>
      
      	* java/class.c (emit_register_classes): Use assemble_jcr if
      	possible.  Keep the original mechanism as a fallback.
      	* defaults.h (JCR_SECTION_NAME): Define if we have named section
      	and weak symbol support.
      	* crtstuff.c (__JCR_LIST__): Define.
      	(__JCR_END__): Define.
      	(_Jv_RegiserClasses): Define weak symbol if possible.
      	(__do_global_ctors_aux): Register classes for ELF targets with
      	weak symbol support.
      
      From-SVN: r44731
      Anthony Green committed
  39. 04 Aug, 2001 1 commit
    • target.h (gcc_target): Add asm_out.named_section, section_type_flags, have_named_sections. · 7c262518
      	* target.h (gcc_target): Add asm_out.named_section,
      	section_type_flags, have_named_sections.
      	* target-def.h (TARGET_ASM_NAMED_SECTION): New.
      	(TARGET_HAVE_NAMED_SECTIONS): New.
      	(TARGET_SECTION_TYPE_FLAGS): New.
      
      	* Makefile.in (toplev.o): Depend on TARGET_H.
      	(varasm.o, dbxout.o): Likewise.
      	* c-common.c (decl_attributes): Check targetm.have_named_sections
      	instead of ifdef ASM_OUTPUT_SECTION_NAME.
      	* dbxout.c (dbxout_function_decl): Likewise.
      	(dbxout_function_end): Likewise.
      	* toplev.c (compile_file): Likewise.
      	* varasm.c (exception_section): Likewise.
      	* cp/decl2.c (finish_objects): Likewise.
      
      	* defaults.h (EH_FRAME_SECTION): Remove.
      	(EH_FRAME_SECTION_ASM_OP): Remove.
      	(EH_FRAME_SECTION_NAME): New.
      	(UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
      	(UNIQUE_SECTION_P): Remove.
      	* dwarf2out.c (SECTION_FORMAT): Remove.
      	(ASM_OUTPUT_SECTION): Remove.
      	(output_call_frame_info): Use named_section_flags.
      	(output_comp_unit, dwarf2out_start_source_file): Likewise.
      	(dwarf2out_end_source_file, dwarf2out_define): Likewise.
      	(dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
      	* varasm.c (in_eh_frame, eh_frame_section): Remove.
      	(named_section_flags): New.
      	(named_section): Use it and targetm.section_type_flags.
      	(resolve_unique_section): New.
      	(assemble_start_function): Use it.
      	(asm_emit_uninitialised, assemble_variable): Likewise.
      	(default_section_type_flags): New.
      	(default_no_named_section, default_elf_asm_named_section): New.
      	(default_coff_asm_named_section, default_pe_asm_named_section): New.
      	* output.h: Update varasm.c decls.
      	(SECTION_*): New flags.
      
      	* crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
      	(__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
      
      	* config/elfos.h (UNIQUE_SECTION_P): Remove.
      	* config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
      	* config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
      	* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
      	* config/i386/i386-interix.h, config/i386/win32.h: Likewise.
      	* config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
      	* config/mips/elf.h, config/mips/elf64.h: Likewise.
      	* config/mips/iris6gld.h, config/mips/mips.h: Likewise.
      	* config/pa/pa64-hpux.h,
      
      	* config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
      	(TARGET_ASM_NAMED_SECTION): New.
      	* config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
      	* config/alpha/vms.h, config/arm/coff.h: Likewise.
      	* config/arm/conix-elf.h, config/arm/elf.h: Likewise.
      	* config/arm/linux-elf.h, config/arm/pe.h: Likewise.
      	* config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
      	* config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
      	* config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
      	* config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
      	* config/i386/sco5.h, config/i386/win32.h: Likewise.
      	* config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
      	* config/mcore/mcore.h, config/mips/elf.h: Likewise.
      	* config/mips/elf64.h, config/mips/iris6.h: Likewise.
      	* config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
      	* config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
      	* config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
      	* config/sparc/sysv4.h: Likewise.
      
      	* config/nextstep.h: Error until named sections implemented.
      
      	* config/a29k/a29k.c (a29k_asm_named_section): New.
      	* config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
      	(vms_section_type_flags, vms_asm_named_section): New.
      	* config/arm/arm.c (arm_elf_asm_named_section): New.
      	* config/avr/avr.c (asm_output_section_name): Remove.
      	* config/avr/avr-protos.h: Update.
      	* config/c4x/c4x.c (c4x_asm_named_section): New.
      	* config/h8300/h8300.c (h8300_asm_named_section): New.
      	* config/i386/i386.c (sco_asm_named_section): New.
      	* config/i386/winnt.c (SECTION_PE_SHARED): New.
      	(i386_pe_section_type_flags): New.
      	(i386_pe_asm_named_section): New.
      	* config/i386/i386-protos.h: Update.
      	* config/m68k/m68k.c (m68k_coff_asm_named_section): New.
      	* config/mcore/mcore.c (mcore_asm_named_section): New.
      	* config/mips/mips.c (iris6_asm_named_section): New.
      	* config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
      	instead of UNIQUE_SECTION_P.
      	* config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
      	(xcoff_asm_named_section): New.
      	* config/sh/sh.c (sh_asm_named_section): New.
      	* config/sparc/sparc.c (sparc_elf_asm_named_section): New.
      
      	* config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
      	* config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
      	(EH_FRAME_SECTION_NAME): New.
      	(EXCEPTION_SECTION): New.
      	* config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
      	(DEBUG_*_SECTION): Remove.
      	* config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
      	* config/mips/iris6.h (DEBUG_*_SECTION): Remove.
      	(EH_FRAME_SECTION_ASM_OP): Remove.
      
      	* doc/tm.texi (UNIQUE_SECTION_P): Remove.
      	(ASM_OUTPUT_SECTION_NAME): Remove.
      	(TARGET_ASM_NAMED_SECTION): New.
      	(TARGET_HAVE_NAMED_SECTIONS): New.
      	(TARGET_SECTION_TYPE_FLAGS): New.
      	(EH_FRAME_SECTION_ASM_OP): Remove.
      	(EH_FRAME_SECTION_NAME): New.
      
      From-SVN: r44623
      Richard Henderson committed