Commit Graph

39254 Commits

Author SHA1 Message Date
Tom Tromey
0854b1c4ba * java-tree.h: Fixed typo.
From-SVN: r47805
2001-12-09 06:03:42 +00:00
Tom Tromey
5fcab23524 gjavah.c (decompile_method): Don't decompile to `return this' for static methods.
* gjavah.c (decompile_method): Don't decompile to `return this'
	for static methods.

From-SVN: r47804
2001-12-09 05:14:19 +00:00
Tom Tromey
7b35f6c94f gjavah.c (cxx_keywords): Re-sorted.
* gjavah.c (cxx_keywords): Re-sorted.
	* lex.c (cxx_keywords): Re-sorted.

From-SVN: r47803
2001-12-09 05:06:45 +00:00
Tom Tromey
897c9e66de gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything else.
* gjavah.c (HANDLE_METHOD): Set `decompiled' before doing anything
	else.

From-SVN: r47802
2001-12-09 01:30:00 +00:00
Tom Tromey
4440ffc4a5 gjavah.c (print_namelet): Clear subnamelets.
* gjavah.c (print_namelet): Clear subnamelets.
	(HANDLE_METHOD): Set `method_printed' earlier.

From-SVN: r47801
2001-12-09 01:26:30 +00:00
Tom Tromey
91c6dda6c7 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/reflect/Method.h): ObjectInputStream now
	a friend.
	* java/lang/natClass.cc (getSignature): Only look at elements of
	non-null parameters.
	(getPrivateMethod): Removed old FIXME comment.
	* java/io/natObjectInputStream.cc (allocateObject): Removed old
	FIXME comment.
	(callConstructor): Simply use `NULL' for value of parameters.
	(ObjectClass): Removed.
	(ClassClass): Likewise.
	* java/io/ObjectInputStream.java (readObject): Fixed typo.

From-SVN: r47800
2001-12-09 00:17:07 +00:00
Tom Tromey
3297bb4667 verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): Handle case of array whose component type is not prepared.
* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow):
	Handle case of array whose component type is not prepared.

From-SVN: r47799
2001-12-09 00:14:00 +00:00
Aldy Hernandez
ecbcf7b319 c-common.h (rid): Add RID_CHOOSE_EXPR and RID_TYPES_COMPATIBLE_P.
* c-common.h (rid): Add RID_CHOOSE_EXPR and
        RID_TYPES_COMPATIBLE_P.

        * c-parse.in (reswords): Add __builtin_choose_expr.
        Add __builtin_types_compatible_p.
        Add CHOOSE_EXPR token.
	Add TYPES_COMPATIBLE_P token.
        Add production for CHOOSE_EXPR.
        Add production for TYPES_COMPATIBLE_P.

        * doc/extend.texi (__builtin_choose_expr): Add documentation.
        (__builtin_types_compatible_p): Likewise.

From-SVN: r47798
2001-12-08 22:34:54 +00:00
Aldy Hernandez
1ec9bf8aa0 builtin-types-compatible-p.c: New.
2001-10-08  Aldy Hernandez  <aldyh@redhat.com>

        * testsuite/gcc.c-torture/execute/builtin-types-compatible-p.c: New.

        * testsuite/gcc.c-torture/gcc.dg/builtin-choose-expr.c: New.

From-SVN: r47797
2001-12-08 22:29:03 +00:00
David Edelsohn
79dc3d44fb stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN to unions.
* stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
        to unions.

From-SVN: r47796
2001-12-08 14:43:07 -05:00
Neil Booth
78e7853794 c-parse.in: Take string literals in assembler constructs, not expressions.
* c-parse.in: Take string literals in assembler constructs,
	not expressions.
	* c-typeck.c (build_asm_stmt, simple_asm_stmt): No need to
	check the strings are STRING_CSTs.

From-SVN: r47795
2001-12-08 19:13:04 +00:00
John David Anglin
46af705afa semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in call to build_aggr_init.
* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
	call to build_aggr_init.
	* cp-tree.h (DIRECT_BIND): Document new use of DIRECT_BIND.

From-SVN: r47793
2001-12-08 15:44:23 +00:00
Neil Booth
cb97d97dee c-lex.c (c_lex): Peek a token ahead for a string to concatenate...
* c-lex.c (c_lex): Peek a token ahead for a string to concatenate,
	using combine_strings to do the concatenation.
	* c-parse.in: Replace uses of the string non-terminal with STRING.
	Don't attempt string concatenation.
	(OBJC_STRING): New terminal.
	(string): Remove non-terminal.
	(_yylex): Call combine_strings on function names.  Generate
	OBJC_STRING terminals; don't pass '@' on to yacc.
	* c-typeck.c (simple_asm_stmt): Don't concatenate strings here.
	(build_asm_stmt): Similarly.
cp:
	* parse.y: Replace uses of the string non-terminal with STRING.
	Don't perform string concatentaion here.
	(string): Remove non-terminal.
	* semantics.c (finish_asm_stmt): Don't concatenate strings here.

From-SVN: r47792
2001-12-08 12:01:59 +00:00
Kaveh R. Ghazi
18d6067bcd * rtlanal.c (get_jump_table_offset): Delete unused variable.
From-SVN: r47791
2001-12-08 11:22:57 +00:00
Richard Earnshaw
fa980e6b68 arm.md (VUNSPEC_PREFETCH): Delete constant definition.
* arm.md (VUNSPEC_PREFETCH): Delete constant definition.
(prefetch): Rewrite using PREFETCH RTL primitive.
* arm.h (arm_builtins): Delete ARM_BUILTIN_PREFETCH).
* arm.c (arm_init_builtins): Don't initialize a builtin for
__builtin_prefetch here.
(arm_expand_builtin): Dont expand __builtin_prefetch here.

From-SVN: r47790
2001-12-08 11:16:59 +00:00
Richard Earnshaw
fd9245b7ec Oops, this didn't get commited with final.c patch.
From-SVN: r47789
2001-12-08 11:05:46 +00:00
Richard Earnshaw
9f4524f299 final.c (cleanup_subreg_operands): Use recog_data.operand_loc in test for a subreg.
* final.c (cleanup_subreg_operands):  Use recog_data.operand_loc
in test for a subreg.

From-SVN: r47788
2001-12-08 10:49:49 +00:00
GCC Administrator
da8c84e8df Daily bump.
From-SVN: r47787
2001-12-08 08:16:41 +00:00
John David Anglin
be0063829a rtl.c (rtx_equal_p): Check for null pointers when comparing rtx strings.
* rtl.c (rtx_equal_p): Check for null pointers when comparing rtx
	strings.

From-SVN: r47785
2001-12-08 06:11:25 +00:00
Richard Henderson
e9d7407e3a * gcc.dg/cpp/ucs.c: Adjust expected warning for 64-bit hosts.
From-SVN: r47784
2001-12-07 17:51:04 -08:00
Nathan Myers
7814a308e4 atomicity.h (struct __Atomicity_lock<__inst>): Add.
libstdc++/5037
        * config/cpu/sparc/sparc32/bits/atomicity.h
        (struct __Atomicity_lock<__inst>): Add.
        (__Atomicity_lock<__inst>::_S_atomicity_lock): Add.
        (__exchange_and_add): Use __Atomicity_lock<0>::_S_atomicity_lock
        instead of lock local to static function.
        (__atomic_add): Likewise.

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

From-SVN: r47782
2001-12-08 00:59:11 +00:00
Tom Tromey
941a878b35 ClassLoader.java (defineClass): Rethrow any LinkageError.
* java/lang/ClassLoader.java (defineClass): Rethrow any
	LinkageError.

From-SVN: r47780
2001-12-07 23:34:12 +00:00
Tom Tromey
cb47fb054c ThreadGroup.java (uncaughtException): Print message to System.err.
* java/lang/ThreadGroup.java (uncaughtException): Print message to
	System.err.  Required by spec.

From-SVN: r47779
2001-12-07 23:32:24 +00:00
Phil Edwards
d0c250155a globals.cc: Remove __GTHREADS guard.
2001-12-07  Phil Edwards  <pme@gcc.gnu.org>

	* src/globals.cc:  Remove __GTHREADS guard.

From-SVN: r47778
2001-12-07 23:13:23 +00:00
Richard Henderson
ad706f5437 * doc/extend.texi: Fix typo last change.
From-SVN: r47777
2001-12-07 15:00:16 -08:00
Richard Henderson
4b7b9007a3 * c-decl.c (c_language): Remove duplicate.
From-SVN: r47776
2001-12-07 14:19:47 -08:00
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