Commit Graph

39178 Commits

Author SHA1 Message Date
Dale Johannesen
c859cda607 darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
* config/rs6000/darwin.h: Set MAX_LONG_TYPE_SIZE to 32.
        * config/rs6000/rs6000.c (rs6000_emit_move): In Darwin-
        specific codegen, eliminate a register copy.
        (print_operand_address): Add support for Darwin's lo16(constant)
        syntax.
        (rs6000_machopic_legitimize_pic_address): Fix darwin-specific
        generation of addresses within very large data objects.
        (s8bit_cint_operand):  New.
        * config/rs6000/rs6000.md: Remove "iu" reference for 750/7400.
        Move "mtjmpr" to correct functional unit for 750/7400/7450.
        Add imul2 and imul3 insn types for multiplication by 16- and
        8-bit constants.
        Change tablejump patterns to strongly discourage using LR
        rather than CTR.
        Add %lo16 patterns for Darwin loads and stores.

From-SVN: r47775
2001-12-07 22:17:02 +00:00
Kaveh R. Ghazi
6246471c45 * alpha.md: Use (HOST_WIDE_INT)1<<63 in lieu of 0x8000000000000000.
From-SVN: r47774
2001-12-07 22:14:44 +00:00
Stephane Carrez
ecd7009474 sparc-ret.c: New file, test return corruption bug for ultrasparc.
* gcc.dg/sparc-ret.c: New file, test return corruption bug for
	ultrasparc.

From-SVN: r47773
2001-12-07 22:51:04 +01:00
Stephane Carrez
09ebda1bc4 sparc.c (epilogue_renumber): Do not replace %fp with %sp because it can cause the delayed instruction to...
* config/sparc/sparc.c (epilogue_renumber): Do not replace %fp
	with %sp because it can cause the delayed instruction to load
	below the stack.

From-SVN: r47772
2001-12-07 22:47:53 +01:00
Kaveh R. Ghazi
595b6314cf alpha.c (alpha_expand_unaligned_store, [...]): Use constm1_rtx in place of call to immed_double_const.
* alpha.c (alpha_expand_unaligned_store,
	alpha_expand_unaligned_store_words): Use constm1_rtx in place of
	call to immed_double_const.

From-SVN: r47770
2001-12-07 20:13:34 +00:00
Tom Tromey
286f759e56 verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC earlier, for error handling.
* verify.cc (_Jv_BytecodeVerifier::branch_prepass): Set start_PC
	earlier, for error handling.
	(_Jv_BytecodeVerifier::note_branch_target): Fixed branch target
	check.

From-SVN: r47769
2001-12-07 19:53:34 +00:00
Tom Tromey
8f25dc2806 lang.c (lang_f_options): Added optimize-static-class-initialization.
* lang.c (lang_f_options): Added
	optimize-static-class-initialization.
	(java_decode_option): Removed special case.

From-SVN: r47768
2001-12-07 19:01:19 +00:00
Paolo Carlini
46d360629c locale_facets.tcc (num_put::_M_convert_float): Extend comment, reduce __cs_size for non-fixed outputs.
2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/locale_facets.tcc (num_put::_M_convert_float):
	Extend comment, reduce __cs_size for non-fixed outputs.

From-SVN: r47767
2001-12-07 19:00:07 +00:00
Aldy Hernandez
9975c6d428 committed wrong rev. oops. fixing.
From-SVN: r47766
2001-12-07 18:59:27 +00:00
Aldy Hernandez
a73073aa6e new
From-SVN: r47765
2001-12-07 18:52:06 +00:00
Aldy Hernandez
1b9191d275 extend.texi (Variable Attributes): Document vector_size.
2001-12-07  Aldy Hernandez  <aldyh@redhat.com>

	* doc/extend.texi (Variable Attributes): Document vector_size.

        * attribs.c (c_common_attribute_table): Add vector_size.
	(handle_vector_size_attribute): New.
        (vector_size_helper): New.
	(decl_attributes): Relayout the decl after calculating attribs.

From-SVN: r47764
2001-12-07 18:49:16 +00:00
Per Bothner
a9040c7798 * check-init.c (check_init): Fix typo freeing memory twice.
From-SVN: r47763
2001-12-07 10:16:21 -08:00
Turly O'Connor
4519d6a340 MAINTAINERS (Write After Approval): Add myself.
* MAINTAINERS (Write After Approval): Add myself.
	* rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
	(rs6000_initialize_trampoline): Call __trampoline_setup for
	ABI_DARWIN too.
	* darwin-tramp.asm: New file, implements __trampoline_setup.
	* t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.

From-SVN: r47762
2001-12-07 17:41:40 +00:00
Turly O'Connor
84b256bb9c * t-darwin: LIB2FUNCS_EXTRA now includes darwin_tramp.asm.
From-SVN: r47761
2001-12-07 17:36:56 +00:00
Turly O'Connor
6f15f6985a * darwin-tramp.asm: New file, implements __trampoline_setup.
From-SVN: r47760
2001-12-07 17:35:03 +00:00
Turly O'Connor
4dabc42de3 rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
* rs6000.c (rs6000_trampoline_size): Handle ABI_DARWIN case.
	(rs6000_initialize_trampoline): Call __trampoline_setup for
	ABI_DARWIN too.

From-SVN: r47759
2001-12-07 17:34:21 +00:00
Turly O'Connor
2be27eec23 * MAINTAINERS: add self to write-after-approval crew.
From-SVN: r47758
2001-12-07 17:01:32 +00:00
Joseph Myers
73e2155a5a gcc.texi: Don't include install-old.texi.
* doc/gcc.texi: Don't include install-old.texi.  Adjust menu
	description for Trouble section.
	* doc/install-old.texi: Adjust for inclusion as chapter of new
	installation manual.
	* doc/install.texi, doc/include/fdl.texi, doc/install.texi2html:
	Adjust to include old installation chapter as chapter of new
	installation manual.

From-SVN: r47757
2001-12-07 16:57:28 +00:00
John Wehle
d644189f51 rtl.h (get_jump_table_offset): Declare.
* rtl.h (get_jump_table_offset): Declare.
	* rtlanal.c (get_jump_table_offset): Implement.

From-SVN: r47756
2001-12-07 16:10:03 +00:00
Richard Kenner
5af0b89c0d final.c (bb_head, [...]): Deleted; were used only by BB profiler code.
* final.c (bb_head, bb_tail, bb_file_label_num, bb_func_label_num):
	Deleted; were used only by BB profiler code.
	(sbb_head, sbb_tail, sbb_label_num): Likewise.
	(end_final): Delete now-unused vars I, PTR, and SPTR.

From-SVN: r47755
2001-12-07 07:31:06 -05:00
Paolo Carlini
cc89439188 basic_string.tcc (_M_mutate): Fix typo in the previous check in.
2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

	* include/bits/basic_string.tcc (_M_mutate): Fix typo
	in the previous check in.

From-SVN: r47754
2001-12-07 12:25:51 +00:00
Richard Kenner
65a07688cf expr.c (store_field): Remove warning.
* expr.c (store_field): Remove warning.
	(expand_expr, case COMPONENT_REF, case VIEW_CONVERT_EXPR): Likewise.
	(highest_pow2_factor, case MIN_EXPR, case MAX_EXPR): Add cases.
	(highest_pow2_factor, case *_DIV_EXPR): Only can do something if
	divisor constant power of 2.
	(highest_pow2_factor, case COMPOUND_EXPR): Look at operand 1.

From-SVN: r47753
2001-12-07 07:15:33 -05:00
Richard Kenner
f393dd7041 * g++-old.deja/g++.robertl/eb101.C: Deleted.
From-SVN: r47752
2001-12-07 06:35:32 -05:00
Paolo Carlini
79f57f2322 basic_string.tcc (_M_mutate, _M_clone): Implement exponential growth policy to meet linear amortized time requirements...
2001-12-06  Paolo Carlini  <pcarlini@unitus.it>
	    Loren J. Rittle <ljrittle@acm.org>

	* include/bits/basic_string.tcc (_M_mutate, _M_clone): Implement
	exponential growth policy to meet linear amortized time
	requirements of the standard.
        (_S_create): Adjust comment.

Co-Authored-By: Loren J. Rittle <ljrittle@acm.org>

From-SVN: r47750
2001-12-07 09:07:55 +00:00
GCC Administrator
d385b9dd9d Daily bump.
From-SVN: r47749
2001-12-07 08:17:17 +00:00
Kaveh R. Ghazi
999c746f86 alpha.c (function_arg): Cast value to HOST_WIDE_INT before shifting.
* alpha.c (function_arg): Cast value to HOST_WIDE_INT before
	shifting.

From-SVN: r47747
2001-12-07 05:13:10 +00:00
Tom Tromey
21366e6fe5 verify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.
* verify.cc (_Jv_BytecodeVerifier::FLAG_JSR_TARGET): Removed.
	(_Jv_BytecodeVerifier::note_branch_target): Likewise.

From-SVN: r47745
2001-12-07 03:30:47 +00:00
Aldy Hernandez
7d5f33bcc1 rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
2001-12-06  Aldy Hernandez  <aldyh@redhat.com>

	* rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): New.
        (DWARF_FRAME_REGISTERS): Delete.

From-SVN: r47744
2001-12-07 03:03:43 +00:00
Benjamin Kosnik
823b4f7daa [multiple changes]
2001-12-06  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3720
	* include/bits/locale_facets.tcc (num_put): Clean.
	(num_get::_M_extract_float): Change argument to string.
	(num_get::do_get(float)): Fixup.
	(num_get::do_get(double)): Same.
	(num_get::do_get(long double)): Same.
	(num_get::_M_extract_int): Add maximum length parameter, __max.
	(num_get::_M_extract_float): Correct zeros, use string.
	* include/bits/locale_facets.h (num_get::_M_extract_float): Change
	declaration here.
	* src/locale.cc (__num_base::_S_atoms): Remove x, X.
	* testsuite/27_io/istream_extractor_arith.cc (test13): Add.

2001-12-06  Philip Martin  <pmartin@uklinux.net>

	* testsuite/27_io/istream_extractor_arith.cc (test12): Add
	tests for excess input digits.

From-SVN: r47743
2001-12-07 02:58:36 +00:00
Janis Johnson
a2b1e91459 builtin-prefetch-1.c: Add checks for variable argument list.
* gcc.c-torture/execute/builtin-prefetch-1.c: Add checks for
        variable argument list.

From-SVN: r47742
2001-12-07 01:44:48 +00:00
Janis Johnson
e83d297b10 builtin-types.def (BT_FN_VOID_PTR_VAR): New.
* builtin-types.def (BT_FN_VOID_PTR_VAR): New.
	* builtins.def (BUILT_IN_PREFETCH): Change arguments.
	* builtins.c (expand_builtin_prefetch): Two arguments are now optional,
	with defaults for read prefetch with high degree of locality.
	* doc/extend.texi (__builtin_prefetch): Update documentation.
	* doc/md.texi (prefetch): Add documentation.

From-SVN: r47741
2001-12-07 01:42:35 +00:00
Tom Tromey
e94c6dee73 * libjava.compile/BlankFinal.java: Removed; incorrect test.
From-SVN: r47739
2001-12-07 00:12:56 +00:00
Paolo Carlini
21cf0a7365 MAINTAINERS (Write After Approval): Add myself.
2001-12-07  Paolo Carlini  <pcarlini@unitus.it>

	* MAINTAINERS (Write After Approval): Add myself.

From-SVN: r47738
2001-12-06 23:36:56 +00:00
Zack Weinberg
6be1431593 memcheck: Delete entire directory.
* gcc.c-torture/execute/memcheck: Delete entire directory.
        (files: blkarg.c blkarg.x driver.c driver.h t1.c t2.c t3.c
        t4.c t5.c t6.c t7.c t8.c t9.c template memcheck.exp)

From-SVN: r47737
2001-12-06 23:17:55 +00:00
Zack Weinberg
b4fcd7d228 memcheck: Delete entire directory.
* gcc.c-torture/execute/memcheck: Delete entire directory.
	(files: blkarg.c blkarg.x driver.c driver.h t1.c t2.c t3.c
	t4.c t5.c t6.c t7.c t8.c t9.c template memcheck.exp)

From-SVN: r47736
2001-12-06 23:15:17 +00:00
Per Bothner
5412ef6bba Restore support for static class initialization optimization.
From-SVN: r47735
2001-12-06 15:12:55 -08:00
Tom Tromey
c1bf99a2ab verify.cc (_Jv_BytecodeVerifier::type_val): Added unused_by_subroutine_type.
* verify.cc (_Jv_BytecodeVerifier::type_val): Added
	unused_by_subroutine_type.
	(_Jv_BytecodeVerifier::type::merge): Handle
	unused_by_subroutine_type.
	(_Jv_BytecodeVerifier::state::state): Added `ret_semantics'
	argument.
	(_Jv_BytecodeVerifier::state::copy): Likewise.
	(_Jv_BytecodeVerifier::push_jump_merge): Pass `ret_semantics' to
	state constructor.
	(_Jv_BytecodeVerifier::state::is_unmerged_ret_state): New method.
	(_Jv_BytecodeVerifier::pop_jump): Don't accept a jump which is
	from an unmerged ret.
	(_Jv_BytecodeVerifier::verify_instructions_0): Don't let an
	unmerged ret state skip verification in the fall-through case.
	(debug_print): New function.
	(_Jv_BytecodeVerifier::type::print): New method.
	(_Jv_BytecodeVerifier::state::print): New method.
	(_Jv_BytecodeVerifier::push_jump_merge): Print state.
	(_Jv_BytecodeVerifier::verify_instructions_0): Likewise.
	(_Jv_BytecodeVerifier::get_variable): Don't call note_variable.
	(_Jv_BytecodeVerifier::_Jv_BytecodeVerifier): Print debug
	information.

From-SVN: r47734
2001-12-06 23:06:11 +00:00
Richard Henderson
d06ba3c7e6 demangle.h (no_demangling): New.
* demangle.h (no_demangling): New.
        (NO_DEMANGLING_STYLE_STRING): New.

        * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
        (cplus_demangle): Support no_demangling.

From-SVN: r47733
2001-12-06 13:56:15 -08:00
Rainer Orth
6d638aac8a re PR libf2c/4826 (Build error for 3.0.2 on Tru64 Unix 5.1A)
* fixinc/inclhack.def (stdio_va_list): Handle __VA_LIST__ in Tru64
	UNIX V5.1A stdio.h.
	* fixinc/fixincl.x: Regenerate.
	Fixes PR libf2c/4826.

From-SVN: r47732
2001-12-06 21:52:42 +00:00
Aldy Hernandez
919543abfe tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
* doc/tm.texi (DWARF_FRAME_REGISTERS): Add documentation.
        (PRE_GCC3_DWARF_FRAME_REGISTERS): Same.

        * unwind-dw2.c (__frame_state_for): Change DWARF_FRAME_REGISTERS
        to PRE_GCC3_DWARF_FRAME_REGISTERS.
        (frame_state): Same.
        (PRE_GCC3_DWARF_FRAME_REGISTERS): Define if not already defined.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r47730
2001-12-06 21:38:03 +00:00
Phil Edwards
9d6a24bd51 std_bitset.h: Use GLIBCPP in multiple-inclusion guard.
2001-12-06  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/std_bitset.h:  Use GLIBCPP in multiple-inclusion guard.
	* include/bits/stl_algo.h:  Likewise.
	* include/bits/stl_algobase.h:  Likewise.
	* include/bits/stl_bvector.h:  Likewise.
	* include/bits/stl_deque.h:  Likewise.
	* include/bits/stl_function.h:  Likewise.
	* include/bits/stl_iterator.h:  Likewise.
	* include/bits/stl_iterator_base_funcs.h:  Likewise.
	* include/bits/stl_iterator_base_types.h:  Likewise.
	* include/bits/stl_list.h:  Likewise.
	* include/bits/stl_multimap.h:  Likewise.
	* include/bits/stl_multiset.h:  Likewise.
	* include/bits/stl_pair.h:  Likewise.
	* include/bits/stl_queue.h:  Likewise.
	* include/bits/stl_set.h:  Likewise.
	* include/bits/stl_stack.h:  Likewise.
	* include/bits/stl_tempbuf.h:  Likewise.
	* include/bits/stl_tree.h:  Likewise.
	* include/bits/stl_vector.h:  Likewise.

	* include/bits/stl_alloc.h:  Use our own multiple inclusion guards.
	Doxygenate more comments.  Correct historical artifacts in comments.
	(alloc, single_alloc):  Uglify non-standard names.
	(__default_alloc_template::_NFREELISTS):  Calculate from other
	parameters.
	(__default_alloc_template::_S_free_list):  Remove SunPro workaround.
	(__default_alloc_template::_Lock):  Mark as "unused".
	* include/backward/alloc.h:  Update.
	* include/bits/stl_bvector.h:  Likewise.
	* include/ext/ropeimpl.h:  Likewise.
	* include/ext/stl_hashtable.h:  Likewise.

From-SVN: r47729
2001-12-06 20:29:31 +00:00
Janis Johnson
a5eb2838c3 Fix typo in 2001-12-03 entry; now:
* doc/extend.texi: Document __builtin_prefetch.

From-SVN: r47728
2001-12-06 19:17:35 +00:00
Kaveh R. Ghazi
990290e85d * langhooks.c (lhd_staticp): Mark parameter with ATTRIBUTE_UNUSED.
From-SVN: r47727
2001-12-06 18:15:46 +00:00
H.J. Lu
7227d624a6 Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to reduce noise.
2001-12-06  H.J. Lu <hjl@gnu.org>

	* Makefile.in (.po.gmo): Use "-test -d po || mkdir po" to
	reduce noise.
	(.po.pox): Likewise.
	(o/$(PACKAGE).pot): Likewise.

From-SVN: r47726
2001-12-06 10:13:17 -08:00
Alexandre Oliva
a1a0fd4e18 tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
* tree.c (get_callee_fndecl): Move DECL_ABSTRACT_ORIGIN-following...
* tree-inline.c (expand_call_inline): ... here.

From-SVN: r47725
2001-12-06 17:58:23 +00:00
H.J. Lu
441f30d998 Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
2001-12-06  H.J. Lu <hjl@gnu.org>

	* Makefile.in (.po.gmo): Use "-mkdir po" for parallel build.
	(.po.pox): Likewise.
	(o/$(PACKAGE).pot): Likewise.

From-SVN: r47724
2001-12-06 09:49:09 -08:00
David O'Brien
c40409ce4d config.gcc: Include dbxelf.h before elfos.h.
2001-12-06  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc: Include dbxelf.h before elfos.h.
	* elfos.h: Don't include dbxelf.h, let config.gcc handle it.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20011205224713.D9059@redhat.com>

From-SVN: r47723
2001-12-06 17:34:55 +00:00
Zack Weinberg
55485cd9a2 cppfiles.c (open_file): If we've opened a directory by mistake, close it.
* cppfiles.c (open_file): If we've opened a directory by
	mistake, close it.
	(find_include_file): Avoid turning / into // or // into ///.

From-SVN: r47722
2001-12-06 16:41:18 +00:00
Nick Clifton
e04546dce3 Restore definition of STRUCT_VALUE_REGNUM,
From-SVN: r47721
2001-12-06 15:18:54 +00:00
Andrew MacLeod
69da3e3a72 flow.c (find_regno_partial): Return register, not the expression the register is in.
2001-12-06  Andrew MacLeod <amacleod@redhat.com>

	* flow.c (find_regno_partial): Return register, not the expression
	the register is in.

From-SVN: r47720
2001-12-06 14:39:11 +00:00