Commit Graph

67990 Commits

Author SHA1 Message Date
GCC Administrator
f8f9fb4526 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99089.2
2005-05-02 00:16:24 +00:00
Kazu Hirata
0fdc587ba2 dwarf2out.c (decl_scope_table, [...]): Use VEC instead of VARRAY.
* dwarf2out.c (decl_scope_table, push_decl_scope,
	pop_decl_scope, scope_die_for, dwarf2out_init): Use VEC
	instead of VARRAY.

From-SVN: r99086
2005-05-01 23:37:50 +00:00
Kazu Hirata
26caf96068 * global.c (calculate_reg_pav): Use VEC instead of VARRAY.
From-SVN: r99085
2005-05-01 23:34:24 +00:00
Kazu Hirata
ec23484219 gimplify.c (gimplify_compound_lval): Use VEC instead of VARRAY.
* gimplify.c (gimplify_compound_lval): Use VEC instead of
	VARRAY.

From-SVN: r99083
2005-05-01 23:23:33 +00:00
Andrew Pinski
05d475bf21 re PR c++/14391 (-fno-weak vs. __GXX_WEAK__)
2005-05-01  Mark Mitchell  <mark@codesourcery.com>

        PR C++/14391
        * c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
        if !flag_weak.
        * doc/cpp.texi (__DEPRECATED): Document.
        (__EXCEPTIONS): Likewise.
        (__GXX_WEAK__): Likewise.

From-SVN: r99082
2005-05-01 15:20:44 -07:00
Mark Mitchell
aee7846e90 c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1 if !flag_weak.
* c-cppbuiltin.c (c_cpp_builtins): Do not define __GXX_WEAK__ to 1
	if !flag_weak.
	* doc/cpp.texi (__DEPRECATED): Document.
	(__EXCEPTIONS): Likewise.
	(__GXX_WEAK__): Likewise.

	* g++.dg/cpp/weak.C: New test.

From-SVN: r99080
2005-05-01 20:30:40 +00:00
Mark Mitchell
3a57c6cb0c function.c (INVOKE__main): Do not define.
* function.c (INVOKE__main): Do not define.
	(expand_main_function): Check HAS_INIT_SECTION when determining
	whether or not to call __main.

From-SVN: r99076
2005-05-01 18:23:27 +00:00
Paolo Carlini
df1de1a353 os_defines.h: Remove obsolete __off_t, __off64_t, __ssize_t defines.
2005-05-01  Paolo Carlini  <pcarlini@suse.de>

	* config/os/aix/os_defines.h: Remove obsolete __off_t,
	__off64_t, __ssize_t defines.
	* config/os/djgpp/os_defines.h: Likewise.
	* config/os/hpux/os_defines.h: Likewise.
	* config/os/irix/irix5.2/os_defines.h: Likewise.
	* config/os/irix/irix6.5/os_defines.h: Likewise.
	* config/os/solaris/solaris2.5/os_defines.h: Likewise.
	* config/os/solaris/solaris2.6/os_defines.h: Likewise.
	* config/os/solaris/solaris2.7/os_defines.h: Likewise.
	* docs/html/17_intro/porting.html: Don't discuss the defines.
	* docs/html/17_intro/porting.texi: Likewise.

From-SVN: r99072
2005-05-01 16:26:43 +00:00
Kazu Hirata
1e1def1ca1 * tree-ssa-loop-ivopts.c: Fix a comment typo.
From-SVN: r99071
2005-05-01 15:30:05 +00:00
Paul Brook
2a86f5154b arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
2005-01-05  Paul Brook  <paul@codesourcery.com>

	* config/arm/arm.h (ARM_EMIT_TRAMPOLINE_CACHE_CLEAR): Define.
	(INITIALIZE_TRAMPOLINE): Use it.
	* config/arm/linux-gas.h (INITIALIZE_TRAMPOLINE): Remove.
	* config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Remove.
	* config/arm/netbsd-elf.h (INITIALIZE_TRAMPOLINE): Remove.

From-SVN: r99068
2005-05-01 15:28:53 +00:00
Gerald Pfeifer
d8fcd0856b install.texi (Specific): Omit dots in the @anchors names for i?86-*-sco3.2v5*...
* doc/install.texi (Specific): Omit dots in the @anchors names
	for i?86-*-sco3.2v5*, i?86-*-solaris2.10, and sparc-sun-solaris2.7.
	Omit underscores for x86_64-*-* and the "all ELF targets" entry.

From-SVN: r99067
2005-05-01 13:39:37 +00:00
Joseph Myers
a192121adb * zh_CN.po: New file.
From-SVN: r99064
2005-05-01 11:56:28 +01:00
Zdenek Dvorak
9be872b77b re PR tree-optimization/18316 (Missed IV optimization)
PR tree-optimization/18316
	PR tree-optimization/19126
	* tree.c (build_int_cst_type): Avoid shift by size of type.
	* tree-scalar-evolution.c (simple_iv): Add allow_nonconstant_step
	argument.
	* tree-scalar-evolution.h (simple_iv): Declaration changed.
	* tree-ssa-loop-ivopts.c (struct iv_cand): Add depends_on
	field.
	(dump_cand): Dump depends_on information.
	(determine_biv_step): Add argument to simple_iv call.
	(contains_abnormal_ssa_name_p): Handle case expr == NULL.
	(find_bivs, find_givs_in_stmt_scev): Do not require step to be a
	constant.
	(add_candidate_1): Record depends_on for candidates.
	(tree_int_cst_sign_bit, constant_multiple_of): New functions.
	(get_computation_at, get_computation_cost_at, may_eliminate_iv):
	Handle ivs with nonconstant step.
	(iv_ca_set_remove_invariants, iv_ca_set_add_invariants): New functions.
	(iv_ca_set_no_cp, iv_ca_set_cp): Handle cand->depends_on.
	(create_new_iv): Unshare the step before passing it to create_iv.
	(free_loop_data): Free cand->depends_on.
	(build_addr_strip_iref): New function.
	(find_interesting_uses_address): Use build_addr_strip_iref.
	(strip_offset_1): Split the recursive part from strip_offset.
	Strip constant offset component_refs and array_refs.
	(strip_offset): Split the recursive part to strip_offset_1.
	(add_address_candidates): Removed.
	(add_derived_ivs_candidates): Do not use add_address_candidates.
	(add_iv_value_candidates): Add candidates with stripped constant
	offset.  Consider all candidates with initial value 0 important.
	(struct affine_tree_combination): New.
	(aff_combination_const, aff_combination_elt, aff_combination_scale,
	aff_combination_add_elt, aff_combination_add,
	tree_to_aff_combination, add_elt_to_tree, aff_combination_to_tree,
	fold_affine_sum): New functions.
	(get_computation_at): Use fold_affine_sum.
	* tree-ssa-loop-manip.c (create_iv): Handle ivs with nonconstant step.
	* tree-ssa-loop-niter.c (number_of_iterations_exit): Add argument
	to simple_iv call.

	* gcc.dg/tree-ssa/loop-8.c: New test.

From-SVN: r99059
2005-05-01 08:08:14 +00:00
Michael Matz
600f3598c7 i386.md (movmemsi): Also active when TARGET_INLINE_ALL_STRINGOPS.
* config/i386/i386.md (movmemsi): Also active when
        TARGET_INLINE_ALL_STRINGOPS.
        * gcc.dg/inline-mcpy.c: New test.

From-SVN: r99054
2005-05-01 00:48:43 +00:00
GCC Administrator
af650adaf9 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99052.2
2005-05-01 00:16:36 +00:00
Thomas Koenig
8e249b232d re PR libfortran/18958 ([4.0 only] eoshift segfaults when shifting off the end of an array)
2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/18958
        libgfortran.h:  Change typedef of index_type from size_t
        to ssize_t.

2005-04-30  Thomas Koenig  <Thomas.Koenig@online.de>

        PR libfortran/18958
        * gfortran.dg/eoshift.f90:  New test case.

From-SVN: r99047
2005-04-30 20:51:39 +00:00
Eric Botcazou
f1aa042fee re PR target/20633 ([4.0 only] libgcc2.c:1623: error: size of array 'compile_type_assert' is negative)
PR bootstrap/20633
	* config/freebsd-spec.h (FBSD_CPP_SPEC): Add %(cpp_arch).

From-SVN: r99046
2005-04-30 20:38:46 +00:00
Paul Brook
4c5f989813 bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in thumb mode.
2005-04-30  Paul Brook  <paul@codesourcery.com>

	* config/arm/bpabi.h (RENAME_LIBRARY_SET): Always use .thumb_set in
	thumb mode.
	* config/arm/ieee754-df.S: Use __INTERWORKING_STUBS__.
	* config/arm/ieee754-sf.S: Ditto.
	* config/arm/lib1funcs.asm: Define and use __INTERWORKING_STUBS__.
	(FUNC_ALIAS): Use .thumb_set for thumb routines.

From-SVN: r99043
2005-04-30 19:40:53 +00:00
Paul Thomas
f6c7d65b66 Fix matmul PR18857 and supply testcase
From-SVN: r99041
2005-04-30 18:17:54 +00:00
Kazu Hirata
078885f2b7 tree-ssanames.c: Fix a comment typo.
* tree-ssanames.c: Fix a comment typo.
	* doc/options.texi: Fix a typo.

From-SVN: r99038
2005-04-30 16:05:21 +00:00
Nathan Sidwell
8c44087253 h8300.c (byte_reg): Use gcc_assert and gcc_unreachable as appropriate.
* config/h8300/h8300.c (byte_reg): Use gcc_assert and
	gcc_unreachable as appropriate.
	(split_adds_subs, cond_string, print_operand,
	h8300_initial_elimination_offset, h8300_classify_operand,
	h8300_unary_length, h8300_short_immediate_length,
	h8300_bitfield_length, h8300_binary_length,
	h8300_insn_length_from_table, compute_mov_length, output_plussi,
	compute_plussi_length, compute_plussi_cc, output_logical_op,
	compute_logical_op_length, compute_logical_op_cc,
	output_h8sx_shift, get_shift_alg, h8300_shift_needs_scratch_p,
	output_a_shift, compute_a_shift_length, compute_a_shift_cc,
	output_a_rotate, compute_a_rotate_length, fix_bit_operand,
	h8300_regs_ok_for_stm): Likewise.
	* config/h8300/h8300.md (*movsi_h8300, *movsf_h8300,
	monitor_prologue): Likewise.

From-SVN: r99037
2005-04-30 16:04:24 +00:00
Kazu Hirata
edd954e620 loop-invariant.c (invariants, [...]): Use VEC instead of VARRAY.
* loop-invariant.c (invariants, create_new_invariant,
	get_inv_cost, best_gain_for_invariant,
	find_invariants_to_move, move_invariants,
	init_inv_motion_data, free_inv_motion_data): Use VEC instead
	of VARRAY.

From-SVN: r99035
2005-04-30 15:01:47 +00:00
Paolo Carlini
544f9440ab re PR libstdc++/21286 (filebuf::xsgetn vs pipes)
2005-04-29  Paolo Carlini  <pcarlini@suse.de>
	    Nathan Myers  <ncm@cantrip.org>

	PR libstdc++/21286
	* include/bits/fstream.tcc (basic_filebuf<>::xsgetn):
	Loop on short reads; remove the work-around for
	libstdc++/20806, not needed anymore.

Co-Authored-By: Nathan Myers <ncm@cantrip.org>

From-SVN: r99033
2005-04-30 06:54:08 +00:00
Richard Henderson
bbf9b9139b function.c (instantiate_decls): Remove valid_only argument.
* function.c (instantiate_decls): Remove valid_only argument.
        (instantiate_decls_1, instantiate_decl): Likewise.
        (instantiate_virtual_regs_1): Delete.
        (instantiate_virtual_regs_lossage): Delete.
        (instantiate_virtual_regs_in_rtx): New.
        (safe_insn_predicate): New.
        (instantiate_virtual_regs_in_insn): New.
        (instantiate_virtual_regs): Update to match all that.  Only run
        instantiate_decls once.

From-SVN: r99032
2005-04-29 20:17:53 -07:00
GCC Administrator
afd4e04805 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r99028.2
2005-04-30 00:16:30 +00:00
Michael Koch
bf5d810ff1 2005-04-29 Michael Koch <konqueror@gmx.de>
* java/net/NetworkInterface.java
	(static): Removed.
	(NetworkInterface(String,InetAddress)): Made package-private.
	(NetworkInterface(String,InetAddress[])): New constructor.
	(getRealNetworkInterfaces): Removed.
	(getByName): Use VMNetworkInterface.getInterfaces().
	(getByInetAddress): Likewise.
	(getNetworkInterfaces): Likewise.
	* java/net/VMNetworkInterface.java,
	java/net/natVMNetworkInterfaceNoNet.cc,
	java/net/natVMNetworkInterfacePosix.c,c
	java/net/natVMNetworkInterfaceWin32.cc: New files.
	* java/net/natNetworkInterfaceNoNet.cc,
	java/net/natNetworkInterfacePosix.cc,
	 java/net/natNetworkInterfaceWin32.cc: Removed.
	* configure.ac
	* Makefile.am
	* configure, Makefile.in: Regenerated.

From-SVN: r99021
2005-04-29 22:10:09 +00:00
Richard Henderson
2d82317df0 gengtype.c (write_func_for_structure): Split out ...
* gengtype.c (write_func_for_structure): Split out ...
        (output_type_enum): ... new function.  Fix thinko accessing
        TYPE_PARAM_STRUCT data.

Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>

From-SVN: r99020
2005-04-29 14:42:27 -07:00
Tom Tromey
22e8617b22 tree.c (build_block): Removed unused 'tags' argument.
gcc:
	* tree.c (build_block): Removed unused 'tags' argument.
	* tree.h (build_block): Removed argument.
gcc/java:
	* expr.c (build_jni_stub): Updated for change to build_block.
gcc/treelang:
	* treetree.c (poplevel): Updated for change to build_block.
gcc/fortran:
	* f95-lang.c (poplevel): Updated for change to build_block.

From-SVN: r99019
2005-04-29 20:27:58 +00:00
Andrew Pinski
5e4b794a4d expr.c (force_evaluation_order): Declare 'saved' earlier.
2005-04-29  Andrew Pinski  <pinskia@gcc.gnu.org>

	* expr.c (force_evaluation_order): Declare 'saved' earlier.

From-SVN: r99018
2005-04-29 20:19:42 +00:00
Andrew Haley
cfbb263896 Class.h (_Jv_ResolvePoolEntry): Declare as friend.
2005-04-29  Andrew Haley  <aph@redhat.com>

	* java/lang/Class.h (_Jv_ResolvePoolEntry): Declare as friend.

From-SVN: r99016
2005-04-29 20:02:47 +00:00
Andrew Pinski
13ea650c58 re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize)
2005-04-29  Devang Patel  <dpatel@apple.com>

        PR tree-optimization/21272
        PR tree-optimization/21266
        * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.

From-SVN: r99013
2005-04-29 11:50:57 -07:00
Paolo Carlini
a70c902e06 re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT> __cache_type;" in std::numpunct<CharT> makes specialization impossible)
2005-04-29  Paolo Carlini  <pcarlini@suse.de>

	PR libstdc++/21238
	* include/bits/locale_facets.tcc (num_get::_M_extract_float,
	num_get::_M_extract_int, num_get::do_get(bool&),
	num_put::_M_insert_int, num_put::_M_insert_float,
	num_put::do_put(bool), money_get::_M_extract,
	money_put::_M_insert): Adjust the __cache_type typedef not to
	forward to a numpunct/moneypunct typedef.
	* testsuite/testsuite_character.h: Add pod_uint and its numpunct
	and moneypunct specializations.
	* testsuite/testsuite_character.cc: Add numpunct<pod_uint>::id
	and moneypunct<pod_uint>::id.
	* testsuite/22_locale/num_get/3.cc: New.
	* testsuite/22_locale/num_put/3.cc: Likewise.
	* testsuite/22_locale/money_get/3.cc: Likewise.
	* testsuite/22_locale/money_put/3.cc: Likewise.

	* include/bits/locale_facets.tcc (money_put::_M_insert,
	time_get::_M_extract_name): Prefer operator== to operator!=
	on char_types.

From-SVN: r99012
2005-04-29 18:50:00 +00:00
Dalibor Topic
b61ae8b261 2005-04-29 Dalibor Topic <robilad@kaffe.org>
* java/nio/channels/FileChannelImpl.java
	(FileChannelImpl(String, int)): Removed.
	(FileChannelImpl(File, int)): Added. Check if opened file is a
	directory.
	* java/io/FileInputStream.java(FileInputStream): Fixed javadocs.
	Call FileChannelImpl(File, int).
	* java/io/FileOutputStream.java (FileInputStream): Call
	FileChannelImpl(File, int).
	* java/io/RandomAccessFile.java (RandomAccessFile):
	Call FileChannelImpl(File, int). Switched constructors around.

From-SVN: r99011
2005-04-29 18:47:42 +00:00
Andrew Haley
2c80f01549 re PR java/19285 (Interfaces not initialized by static field access)
2005-04-28  Andrew Haley  <aph@redhat.com>

        PR java/19285
        * java-tree.h (soft_resolvepoolentry_node): New.
        (alloc_constant_fieldref): Declare.
        * expr.c (expand_java_field_op): Don't call class_init for
        accesses to static fields with indirect dispatch.
        * builtins.c (initialize_builtins): Add "__builtin_expect".
        * decl.c (soft_resolvepoolentry_node): New variable.
        (java_init_decl_processing): Create a decl for
        "_Jv_ResolvePoolEntry".
        * class.c (build_fieldref_cache_entry): New function.
        (build_static_field_ref): Rewrite for indirect dispatch.
        * constants.c (find_name_and_type_constant_tree): New function.
        (alloc_constant_fieldref): Likewise.
        (build_constants_constructor): Handle CONSTANT_Fieldref and
        CONSTANT_NameAndType.

        PR java/21115
        * expr.c (force_evaluation_order): Convert outgoing args smaller
        than integer.

From-SVN: r99010
2005-04-29 18:43:25 +00:00
Michael Matz
a68b179c86 re PR rtl-optimization/21144 (Apparent infinite loop in reload)
PR rtl-optimization/21144
        * postreload.c (reload_cse_move2add): Check for VOIDmode.

From-SVN: r99008
2005-04-29 18:39:22 +00:00
Andrew Haley
f3dc41fe8e re PR java/19285 (Interfaces not initialized by static field access)
2005-04-27  Andrew Haley  <aph@redhat.com>

        PR java/19285
        * prims.cc (_Jv_ResolvePoolEntry): New function.
        * include/jvm.h (_Jv_Linker::find_field): New arg: found_class.
        * link.cc (_Jv_Linker::find_field): New arg: found_class.
        (resolve_pool_entry): Initialize the class in which a field is
        found.
        (link_symbol_table): Pass new arg to found_class.

From-SVN: r99006
2005-04-29 18:35:36 +00:00
Bob Wilson
528a7d2262 xtensa.h (OPTIMIZATION_OPTIONS): Define to disable flag_reorder_blocks.
* config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Define to disable
	flag_reorder_blocks.

From-SVN: r99000
2005-04-29 16:40:52 +00:00
Kazu Hirata
d54485660a re PR tree-optimization/21030 (ICE in set_value_range building 176.gcc with -O2)
gcc/
	PR tree-optimization/21030
	* tree-vrp.c (adjust_range_with_scev): Do not create invalid
	ranges where VR->MAX is smaller than VR->MIN.

testsuite/
	PR tree-optimization/21030
	* gcc.dg/tree-ssa/pr21030.c: New.

From-SVN: r98999
2005-04-29 16:23:18 +00:00
Devang Patel
7dcc58cdbc re PR tree-optimization/21272 (SSA_NAME def follows use with -ftree-vectorize)
PR tree-optimization/21272
        * tree-if-conv.c (find_phi_replacement_condition): Fix think-o.

        * gcc.dg/vect/vect-ifcvt-10.c: New.

From-SVN: r98998
2005-04-29 09:10:12 -07:00
Kazu Hirata
d566f6ef98 * tree-flow-inline.h, tree-ssa-operands.c: Fix comment typos.
From-SVN: r98994
2005-04-29 15:34:45 +00:00
Jakub Jelinek
d198b59ab1 [multiple changes]
2005-04-29  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/13082
	PR fortran/18824
	* trans-expr.c (gfc_conv_variable): Handle return values in functions
	with alternate entry points.
	* resolve.c (resolve_entries): Remove unnecessary string termination
	after snprintf.  Set result of entry master.
	If all entries have the same type, set entry master's type
	to that common type, otherwise set mixed_entry_master attribute.
	* trans-types.c (gfc_get_mixed_entry_union): New function.
	(gfc_get_function_type): Use it for mixed_entry_master functions.
	* gfortran.h (symbol_attribute): Add mixed_entry_master bit.
	* decl.c (gfc_match_entry): Set entry->result properly for
	function ENTRY.
	* trans-decl.c (gfc_get_symbol_decl): For entry_master, skip over
	__entry argument.
	(build_entry_thunks): Handle return values in entry thunks.
	Clear BT_CHARACTER's ts.cl->backend_decl, so that it is not
	shared between multiple contexts.
	(gfc_get_fake_result_decl): Use DECL_ARGUMENTS from
	current_function_decl instead of sym->backend_decl.  Skip over
	entry master's entry id argument.  For mixed_entry_master entries or
	their results, return a COMPONENT_REF of the fake result.
	(gfc_trans_deferred_vars): Don't warn about missing return value if
	at least one entry point uses RESULT.
	(gfc_generate_function_code): For entry master returning
	CHARACTER, copy ts.cl->backend_decl to all entry result syms.
	* trans-array.c (gfc_trans_dummy_array_bias): Don't consider return
	values optional just because they are in entry master.

	* gfortran.dg/entry_4.f90: New test.
	* gfortran.fortran-torture/execute/entry_1.f90: New test.
	* gfortran.fortran-torture/execute/entry_2.f90: New test.
	* gfortran.fortran-torture/execute/entry_3.f90: New test.
	* gfortran.fortran-torture/execute/entry_4.f90: New test.
	* gfortran.fortran-torture/execute/entry_5.f90: New test.
	* gfortran.fortran-torture/execute/entry_6.f90: New test.
	* gfortran.fortran-torture/execute/entry_7.f90: New test.

2005-04-29  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>

	* gfortran.fortran-torture/execute/entry_8.f90: New test.

From-SVN: r98993
2005-04-29 17:31:39 +02:00
Kazu Hirata
be12e697e4 tree-flow-inline.h: Fix a comment typo.
* tree-flow-inline.h: Fix a comment typo.
	* doc/tree-ssa.texi: Fix a typo.

From-SVN: r98992
2005-04-29 15:06:07 +00:00
Nathan Sidwell
4e81e7c201 fr30.c (fr30_expand_prologue): Use gcc_assert and gcc_unreachable as appropriate.
* config/fr30/fr30.c (fr30_expand_prologue): Use gcc_assert and
	gcc_unreachable as appropriate.
	(fr30_expand_epilogue, fr30_setup_incoming_varargs,
	fr30_print_operand, fr30_move_double): Likewise.
	* config/fr30/fr30.md (*movsi_internal, *movsf_internal): Likewise.

From-SVN: r98991
2005-04-29 14:45:43 +00:00
Francois-Xavier Coudert
1fb2002d69 configure.ac: Check for ftruncate and chsize.
* configure.ac: Check for ftruncate and chsize.
	* io/unix.c (fd_truncate): Provide chsize as alternative to
	ftruncate.
	* config.h.in: Regenerate.
	* configure: Regenerate.

From-SVN: r98989
2005-04-29 14:24:04 +00:00
Mark Mitchell
88c6057f1d arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a definition has already been provided.
* config/arm/arm.h (ARM_EABI_CTORS_SECTION_OP): Do not define if a
	definition has already been provided.
	(ARM_EABI_DTORS_SECTION_OP): Likewise.
	* config/arm/symbian.h (ARM_EABI_CTORS_SECTION_OP): Define.
	(ARM_EABI_DTORS_SECTION_OP): Likewise.

From-SVN: r98988
2005-04-29 14:22:10 +00:00
Jim Tison
9e811ecd1a s390.md ("prologue_tpf", [...]): Alter trace hooks calls to improve performance.
2005-04-29  Jim Tison  <jtison@us.ibm.com>

        * config/s390/s390.md ("prologue_tpf", "epilogue_tpf"): Alter
        trace hooks calls to improve performance.

From-SVN: r98987
2005-04-29 14:17:15 +00:00
Julian Brown
7abc66b142 crtstuff.c: Handle targets that use .init_array.
* 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
2005-04-29 14:09:45 +00:00
Paolo Bonzini
aa9dcfc4a4 configure: Regenerate.
2005-04-29  Paolo Bonzini  <bonzini@gnu.org>

	* configure: Regenerate.

config:
2005-04-29  Paolo Bonzini  <bonzini@gnu.org>

	* acx.m4 (ACX_PROG_GNAT): Remove stray break.

From-SVN: r98985
2005-04-29 13:54:56 +00:00
Ralf Corsepius
d266a2ff52 Fix typo in previous patch.
From-SVN: r98984
2005-04-29 15:15:01 +02:00
Ralf Corsepius
d948c2019d configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*, powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
2005-05-29  Ralf Corsepius  <ralf.corsepius@rtems.org>

	* configure.ac: Add i*86-*-rtems*, sparc*-*-rtems*,
	powerpc-*rtems*, arm*-*-rtems*, sh-*-rtems*.
	* configure: Regenerate.

From-SVN: r98983
2005-04-29 15:03:43 +02:00