Commit Graph

55667 Commits

Author SHA1 Message Date
Arnaud Charlet c01a939151 [multiple changes]
2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>

	* utils.c: Update copyright notice, missed in previous change.

2004-01-19  Vincent Celier  <celier@gnat.com>

	* mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
	args if Bind is True. Set First_ALI, if not already done.
	(Build_Library): For Stand Alone Libraries, extract from one ALI file
	an eventual --RTS switch, for gnatbind, and all backend switches +
	--RTS, for linking.

2004-01-19  Robert Dewar  <dewar@gnat.com>

	* sem_attr.adb, memtrack.adb: Minor reformatting

2004-01-19  Ed Schonberg  <schonberg@gnat.com>

	* exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
	that rename enumeration literals. This is properly done in sem_eval.

	* sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
	to functions that rename enumeration literals.

	* sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
	functions that rename enumeration literals.

From-SVN: r76146
2004-01-19 11:37:59 +01:00
Richard Henderson 5c9948f4e8 alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
* alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
        * alpha.md (UNSPEC_NT_LDA): Remove.
        (UNSPEC_CVTLQ, cvtlq): New.
        (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
        (extendsidi2_fix): Remove.
        (extendsidi2 splitter): Use cvtlq.
        (extendsidi2 fp peepholes): Remove.
        (cvtql): Use SFmode instead of SImode.
        (fix_trunc?fsi): Update to match.
        (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
        (movsi): Rename from movsi_nofix, remove f alternatives.
        (movsi_nt_vms): Similarly.
        (movsi_fix, movsi_nt_vms_fix): Remove.
        (nt_lda): Remove.
        * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.

From-SVN: r76145
2004-01-19 01:55:42 -08:00
Jan Hubicka 9b0436b739 cgraph.c (cgraph_remove_node): Fix removal from linked list.
* cgraph.c (cgraph_remove_node): Fix removal from linked list.
	* cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
	list.
	(cgraph_remove_unreachable_nodes): New function
	(cgraph_decide_inlining_of_small_function): Fix pasto.
	(cgraph_decide_inlining_incrementally): Fix pasto.
	(cgrpah_decide_inlining): Likewise; remove unreachable nodes.

From-SVN: r76142
2004-01-19 09:43:53 +00:00
Paolo Carlini 954b12d2dc basic_string.tcc (_S_construct(size_type, _CharT, const _Alloc&)): Remove redundant try/catch.
2004-01-19  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.tcc (_S_construct(size_type,
	_CharT, const _Alloc&)): Remove redundant try/catch.
	(_M_mutate(size_type, size_type, size_type)): Ditto.
	(_M_clone(const _Alloc&, size_type)): Ditto.

From-SVN: r76141
2004-01-19 08:53:32 +00:00
Steven Bosscher 8c80adb754 gengtype.c (header_file): Make it static.
* gengtype.c (header_file): Make it static.
	(write_types_process_field, write_enum_defn): Minor whitespace fixes.
	* gengtype.h (header_file): No longer extern.

From-SVN: r76140
2004-01-19 08:38:38 +00:00
Kazu Hirata 0ede749d96 defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
* defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
	* expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
	* stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.

From-SVN: r76138
2004-01-19 03:08:14 +00:00
Mark Mitchell 0f18efe35a Fix incorrect PR number.
From-SVN: r76135
2004-01-19 00:51:56 +00:00
Mark Mitchell b830b74cd4 re PR c++/13635 (ICE in register_specialization for specific order of template specialization)
PR c++/13635
	* pt.c (tsubst): Use finish_typeof.

	PR c++/13635
	* g++.dg/ext/typeof7.C: New test.

From-SVN: r76131
2004-01-19 00:47:59 +00:00
GCC Administrator 60fa6554f5 Daily bump.
From-SVN: r76128
2004-01-19 00:16:13 +00:00
Kazu Hirata 41cbdcd0a2 stmt.c (HAVE_casesi): Define it not already defined.
* stmt.c (HAVE_casesi): Define it not already defined.
	(HAVE_tablejump): Likewise.
	(expand_end_case_type): Resort to the binary tree method if
	neither casesi or tablejump is available.

From-SVN: r76120
2004-01-18 22:49:23 +00:00
Daniel Jacobowitz 5cfc5f84fb final.c (final_scan_insn): Make non-static again.
* final.c (final_scan_insn): Make non-static again.
	* output.h (final_scan_insn): Re-add prototype.
	* config/arc/arc.c (arc_output_function_epilogue): Add NULL
	to final_scan_insn call.
	* config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
	* config/mips/mips.c (mips_output_conditional_branch): Likewise.
	* config/pa/pa.c (output_lbranch, output_call): Likewise.
	* config/sh/sh.c (print_slot): Likewise.
	* config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
	(output_sibcall, sparc_flat_function_epilogue): Likewise.

From-SVN: r76117
2004-01-18 22:37:29 +00:00
Jan Hubicka 3348b696a8 basic-block.h (try_redirect_by_replacing_jump): Declare.
* basic-block.h (try_redirect_by_replacing_jump): Declare.
	* cfgcleanup.c (try_optimize_cfg): Use it.
	* cfgrtl.c (try_redirect_by_replacing_jump): Export.
	(rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
	Kill hack.
	(cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.

	Revert:
	2004-01-16  Geoffrey Keating  <geoffk@apple.com>

		* cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
		even after reload, just don't remove the actual jump tables.

From-SVN: r76115
2004-01-18 21:51:30 +00:00
Kazu Hirata 72d89d359c * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
From-SVN: r76113
2004-01-18 21:36:34 +00:00
Kazu Hirata 07b50aadc1 defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of the size of a pointer in bytes.
* defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
	the size of a pointer in bytes.

From-SVN: r76112
2004-01-18 21:25:06 +00:00
Roger Sayle 6e46ab25d4 builtins.c (expand_builtin_expect_jump): Fix thinko of reusing live "next" variable, which can lead to an infinite loop.
* builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
	live "next" variable, which can lead to an infinite loop.

From-SVN: r76111
2004-01-18 20:04:59 +00:00
Andrew Pinski b4be9e8e86 altivec.h: Wrap C++ functions in extern "C++" block.
2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>

	* config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
	block.

From-SVN: r76109
2004-01-18 11:50:18 -08:00
James A. Morrison f25bebe1c0 MAINTAINERS: Add myself to write-after-approval.
2004-01-18  James A. Morrison  <ja2morri@uwaterloo.ca>

        * MAINTAINERS: Add myself to write-after-approval.

From-SVN: r76108
2004-01-18 19:49:34 +00:00
Andrew Pinski 3ce5437aca rs6000.c (rs6000_special_round_type_align): Check for NULL in the chain and remove repeated code.
2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>

        * config/rs6000/rs6000.c (rs6000_special_round_type_align):
        Check for NULL in the chain and remove repeated code.

From-SVN: r76105
2004-01-18 07:45:51 -08:00
Jason Merrill aff5c451d2 re PR c++/11725 (Wrong return statement warning with -Wreturn-type in template class method)
PR c++/11725
        * except.c (build_throw): In a template, set
        current_function_returns_abnormally.

From-SVN: r76104
2004-01-18 10:38:08 -05:00
Jan Hubicka 20c361f30e coverage.c (checksum_string): Rename to ...
* coverage.c (checksum_string): Rename to ...
	(coverage_checksum_string): ... this one, Use crc32_string; recognize
	names containing random number and zero the number out in order to get
	match.

From-SVN: r76102
2004-01-18 15:10:23 +00:00
Richard Sandiford cacb5bba75 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
From-SVN: r76100
2004-01-18 14:01:52 +00:00
Joseph Myers daf2f1299b c-tree.texi, [...]: Remove trailing whitespace.
* doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
	doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
	doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
	doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
	doc/trouble.texi: Remove trailing whitespace.

From-SVN: r76098
2004-01-18 11:57:17 +00:00
Paolo Carlini bbad4221ec 2004-01-18 Paolo Carlini <pcarlini@suse.de>
* ChangeLog rotation.

From-SVN: r76093
2004-01-18 11:18:29 +00:00
Paolo Carlini acbab5bf1c basic_string.h (c_str()): Simplify, due to 21.3.4 the internal representation is always kept null-terminated.
2004-01-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (c_str()): Simplify, due to
	21.3.4 the internal representation is always kept null-terminated.
	* include/bits/basic_string.tcc (_M_clone): Null-terminate.
	* testsuite/21_strings/basic_string/element_access/char/4.cc: New.
	* testsuite/21_strings/basic_string/element_access/wchar_t/4.cc: Ditto.

From-SVN: r76092
2004-01-18 10:51:13 +00:00
Paolo Carlini 9c96a6896b basic_string.h (append(size_type, _CharT)): Moved inline...
2004-01-18  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/basic_string.h (append(size_type, _CharT)):
	Moved inline, just call _M_replace_aux, no source iterators at
	risk of being clobbered.
	(assign(size_type, _CharT)): Call directly _M_replace_aux.
	(_M_replace(iterator, iterator, _InputIterator, _InputIterator,
	input_iterator_tag)): Remove fifth unused argument.
	(_M_replace_dispatch(iterator, iterator, _InputIterator,
	_InputIterator, __false_type)): Update call.
	* include/bits/basic_string.tcc (replace(size_type, size_type,
	const _CharT*, size_type)): Update call.
	(_M_replace_aux(iterator, iterator, size_type, _CharT)): Tweak
	throw string literal.
	(_M_replace_safe(iterator, iterator, _ForwardIterator,
	_ForwardIterator)): Likewise.
	(_M_replace(iterator, iterator, _InputIterator, _InputIterator,
	input_iterator_tag)): Remove fifth unused argument.
	(append(size_type __n, _CharT __c)): Move inline.
	* src/string-inst.cc (S::_M_replace(S::iterator, S::iterator,
	const C*, const C*, input_iterator_tag)): Remove fifth unused
	argument.

From-SVN: r76091
2004-01-18 09:54:46 +00:00
Richard Sandiford 1c0f3facc4 Add PR number to last commit.
From-SVN: r76090
2004-01-18 09:45:32 +00:00
Richard Sandiford b85aed9ef7 mips.c: Include cfglayout.h.
* config/mips/mips.c: Include cfglayout.h.
	(TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
	(mips_unspec_offset_high): Add temporary register argument.
	(mips_load_call_address): New function, split out from...
	(mips_expand_call): ...here.
	(mips_output_cplocal): New function.
	(mips_output_function_prologue, mips_output_function_epilogue): Use it.
	(mips_emit_loadgp): New function, split out from...
	(mips_expand_prologue): ...here.
	(mips_output_mi_thunk): New function.

From-SVN: r76088
2004-01-18 09:42:11 +00:00
Bernardo Innocenti e5d95b6993 longlong.h (mc68020, [...]): Remove redundant checks for implied target predefines.
* longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
	mcpu32): Remove redundant checks for implied target predefines.

From-SVN: r76084
2004-01-18 06:07:35 +01:00
David Edelsohn a3d8a647d6 array-quals-1.c: xfail on powerpc*-*-aix*.
* gcc.dg/array-quals-1.c: xfail on powerpc*-*-aix*.
        * gcc.dg/const-elim-1.c: Same.

From-SVN: r76083
2004-01-17 23:39:34 -05:00
Andrew Pinski 19d66194e8 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/rs6000.c (rs6000_special_round_type_align):
        Return type is unsigned int not int.
        * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
        Likewise.

From-SVN: r76081
2004-01-17 19:46:56 -08:00
Joseph Myers 95fef11f10 contrib.texi, [...]: Consistently use "GNU/Linux" and "Microsoft Windows" terminology.
* doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
	doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
	"GNU/Linux" and "Microsoft Windows" terminology.

From-SVN: r76078
2004-01-18 02:10:34 +00:00
Joseph Myers 3ab51846c1 c-tree.texi, [...]: Use @smallexample instead of @example.
* doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
	doc/cppopts.texi, doc/extend.texi, doc/install.texi,
	doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
	doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
	@smallexample instead of @example.

From-SVN: r76075
2004-01-18 01:20:48 +00:00
Ziemowit Laski cfbed37cf8 objc-act.c (build_objc_method_call): Use target hooks instead of macros to determine if...
[gcc/ChangeLog]
2004-01-17  Ziemowit Laski  <zlaski@apple.com>

        * objc/objc-act.c (build_objc_method_call): Use target
        hooks instead of macros to determine if ..._stret
        dispatchers should be used (NeXT runtime only).

[gcc/testsuite/ChangeLog]
2004-01-17  Ziemowit Laski  <zlaski@apple.com>

        * objc.dg/stret-1.m: New.
        * objc.dg/stret-2.m: New.

From-SVN: r76072
2004-01-18 01:15:30 +00:00
GCC Administrator cec403bcea Daily bump.
From-SVN: r76068
2004-01-18 00:16:43 +00:00
Roger Sayle bef5105b4e builtins.c (expand_builtin_expect_jump): Fix mistake in my last patch.
* builtins.c (expand_builtin_expect_jump): Fix mistake in my
	last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.

From-SVN: r76064
2004-01-17 23:49:44 +00:00
Daniel Jacobowitz dd3adcf8a1 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
(emit_call_insn_before_sameloc, emit_insn_after_sameloc)
	(emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
	macros.
	* reload1.c (emit_reload_insns): Use them.
	* emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
	(emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
	for NULL PATTERN.

From-SVN: r76062
2004-01-17 22:14:17 +00:00
Daniel Jacobowitz 589fe865e0 final.c (SEEN_BB, [...]): Define.
* final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
	(final_scan_insn): Update to take an additional SEEN argument.  Emit
	a line note after the prologue.  Make static.
	(line_note_exists): Remove.
	(final): Don't initialize line_note_exists.  Update call to
	final_scan_insn.
	* output.h (final_scan_insn): Remove prologue.
	* function.c (set_insn_locators): Update comment.
	(thread_prologue_and_epilogue_insns): Add a comment.

From-SVN: r76060
2004-01-17 22:11:58 +00:00
Steven Bosscher 59415997a3 Makefile.in: Remove rule for ggc-simple.o.
* Makefile.in: Remove rule for ggc-simple.o.
	* configure.ac: Don't allow ggc-simple to be selected.
	* configure: Regenerate.
	* ggc-simple.c: Remove.

From-SVN: r76058
2004-01-17 21:03:57 +00:00
Andrew Pinski 95727fb877 re PR target/10781 (wrong class size and alignment with static class member)
2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/10781
        * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
        Prototype.
        * config/rs6000/rs6000.c (rs6000_special_round_type_align):
        New function.
        * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
        * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
        * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.

2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/10781
        * encoding.c (rs6000_special_round_type_align): Define.

From-SVN: r76043
2004-01-17 11:48:50 -08:00
Andrew Pinski 4bfaff4d24 fix dates on the Changelog.
From-SVN: r76041
2004-01-17 11:04:05 -08:00
Andrew Pinski 6f27961ac0 [multiple changes]
2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/11895
        * g++.dg/ext/vector1.C: New test.

2003-08-26  Fred Fish  <fnf@intrinsity.com>

        PR c++/11895
        * decl.c (reshape_init): Handle VECTOR_TYPE like ARRAY_TYPE,
        except don't call array_type_nelts() with a VECTOR_TYPE.

From-SVN: r76038
2004-01-17 10:59:46 -08:00
Gerald Pfeifer aeeb0e1b8c snapshot-README: Mention how the snapshot was generated.
* snapshot-README: Mention how the snapshot was generated.
	* snapshot-index.html: Ditto.  Further sync with snapshot-README.

From-SVN: r76037
2004-01-17 17:41:36 +00:00
Jan Hubicka 26c0473bc9 toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous commit.
* toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
	commit.

From-SVN: r76035
2004-01-17 12:28:57 +00:00
Jan Hubicka f2e16e973b toplev.c (HAVE_conditional_execution): Provide default.
* toplev.c (HAVE_conditional_execution): Provide default.
	(rest_of_handle_reorder_blocks): For conditional_execution target
	update liveness once after all transformations
	(rest_of_compilation): Do crossjumping before ce3.

From-SVN: r76032
2004-01-17 11:41:43 +00:00
Geoffrey Keating f103e34d1d re PR pch/13689 (GGC PCH breaks aliasing)
PR pch/13689
	* alias.c (new_alias_set): Mark last_alias_set for PCH.
	(get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
	for PCH.
	(get_frame_alias_set): Likewise, except rename it to 'frame_set'.
	* config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
	(get_TOC_alias_set): Mark 'set' for PCH.

From-SVN: r76031
2004-01-17 09:31:30 +00:00
Tom Tromey 19833df131 ChangeLog rotation
From-SVN: r76030
2004-01-17 08:40:41 +00:00
Geoffrey Keating ab530ea8b8 cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps even after reload, just don't remove the actual jump tables.
* cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
	even after reload, just don't remove the actual jump tables.

From-SVN: r76028
2004-01-17 07:46:49 +00:00
Joel Brobecker 53dd3be37f Fix my email address in the previous checkin.
From-SVN: r76026
2004-01-17 06:20:03 +00:00
J. Brobecker e7d23ce3b5 dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
* dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
        Remove checks for is_ada() and TREE_UNSIGNED.
        (subrange_type_die): Emit a byte_size attribute if the subrange
        type size is different from the base type size.
        (modified_type_die): Replace call to is_ada_subrange_type() by
        call to is_subrange_type().

From-SVN: r76025
2004-01-17 05:30:48 +00:00
Andrew Pinski cf5da2b9d8 typeck.c (find_method_in_interfaces): Move variable definition up.
2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>

        * typeck.c (find_method_in_interfaces): Move variable
        definition up.

From-SVN: r76021
2004-01-16 17:57:09 -08:00