Commit Graph

22165 Commits

Author SHA1 Message Date
Mark Mitchell
b2ef49c88b typeck.c (build_const_cast): Disallow use of const_cast to anything but a pointer or reference type.
* typeck.c (build_const_cast): Disallow use of const_cast to
	anything but a pointer or reference type.

From-SVN: r26708
1999-04-30 12:17:10 +00:00
Tom Tromey
a0e894a8cc StringBuffer.java (ensureCapacity): Don't resize vector when shared.
* java/lang/StringBuffer.java (ensureCapacity): Don't resize
	vector when shared.
	* java/util/Locale.java (Locale(String,String)): Implement in
	terms of 3-argument version; variant now defaults to empty
	string.
	(toString): Assume variant is not null.
	(equals): Assume all strings are not null.
	(Locale): Throw NullPointerException if any argument is null.
	* java/util/ResourceBundle.java (getBundle): Don't try the base
	name; now implicit in partialGetBundle call.
	(trySomeGetBundle): Search for parent bundles and call setParent
	as required.
	(partialGetBundle): Added `langStop' argument.  Use
	`Locale.toString' to compute bundleName.
	(resource_cache): New static field.
	(partialGetBundle): Cache the returned resource bundle.  Now
	synchronized.
	* gnu/gcj/text/LocaleData_en.java (contents): [collatorRule] Added
	missing `<'.
	* mauve-libgcj: Enable Collator and RuleBasedCollator.
	* java/text/natCollator.cc (decomposeCharacter): `base' now
	`const'.
	* Makefile.in: Rebuilt.
	* Makefile.am (ordinary_java_source_files): Added
	CollationElementIterator, CollationKey, Collator,
	RuleBasedCollator.
	(nat_source_files): Added natCollator.cc.
	* java/text/RuleBasedCollator.java (ceiNext): No longer static.
	(compare): Pass `this' to CollationElementIterator constructor.
	(getCollationElementIterator): Likewise.
	(ceiNext): Fix off-by-one error when finding initial substring.
	(next): Correctly mask off bits when computing return value.
	Fixed return values when one string is shorter than the other.
	* java/text/CollationElementIterator.java (collator): New field.
	(CollationElementIterator): Added collator argument.
	(next): Call ceiNext on collator object.

From-SVN: r26707
1999-04-30 09:31:00 +00:00
Nathan Sidwell
1c609c4cbe decl.c (cp_finish_decl): Don't permit arrays of abstract or signature type.
* decl.c (cp_finish_decl): Don't permit arrays of abstract or
	signature type.

From-SVN: r26706
1999-04-30 02:19:00 +00:00
Jeff Law
0c42bebfad Daily bump.
From-SVN: r26705
1999-04-29 18:45:03 -06:00
Mark Mitchell
5c7a310f81 emit-rtl.c (start_sequence): Expand comments.
* emit-rtl.c (start_sequence): Expand comments.
	(start_sequence_for_rtl_expr): Likewise.
	(push_to_sequence): Likewise.
	(end_sequence): Likewise.
	* expr.c (inhibit_defer_pop): Likewise.
	* expr.h (inhibit_defer_pop): Likewise.
	(NO_DEFER_POP): Likewise.
	(OK_DEFER_POP): Likewise.

From-SVN: r26704
1999-04-29 23:01:29 +00:00
Mark Mitchell
1a6580ec80 decl2.c (do_static_destruction): Remove obsolete FIXME comment.
* decl2.c (do_static_destruction): Remove obsolete FIXME comment.
	(finish_file): Indent comments properly.

From-SVN: r26703
1999-04-29 22:39:31 +00:00
Robert Lipe
4431070510 configure.in (i?86-UnixWare7*-sysv): Set thread_file to 'posix' --enable-threads[={yes,pthreads,posix}] is passed as...
* configure.in (i?86-UnixWare7*-sysv): Set thread_file to 'posix'
        --enable-threads[={yes,pthreads,posix}] is passed as a command
        line parameter to configure.
        * config/i386/sysv5.h (LIB_SPEC): Add support for '-pthread'.
        (CPP_SPEC): Likewise.

From-SVN: r26702
1999-04-29 20:20:15 +00:00
Robert Lipe
01e3900529 configure.in (i?86-UnixWare7*-sysv): Set thread_file to 'posix' --enable-threads[={yes,pthreads,posix}] is passed as...
Thu Apr 29 22:13:46 1999  Robert Lipe  <robertlipe@usa.net>
	* configure.in (i?86-UnixWare7*-sysv): Set thread_file to 'posix'
	--enable-threads[={yes,pthreads,posix}] is passed as a command
	line parameter to configure.
	* config/i386/sysv5.h (LIB_SPEC): Add support for '-pthread'.
	(CPP_SPEC): Likewise.

From-SVN: r26701
1999-04-29 20:19:35 +00:00
Richard Henderson
b94c0f4fea decl2.c (do_static_initialization): Call do_pending_stack_adjust.
* decl2.c (do_static_initialization): Call do_pending_stack_adjust.
        (do_static_destruction): Likewise.

From-SVN: r26700
1999-04-29 10:43:16 -07:00
Richard Henderson
7cae975e66 emit-rtl.c (operand_subword): Religiously mask and sign-extend from 32-bits to HOST_WIDE_INT.
* emit-rtl.c (operand_subword): Religiously mask and sign-extend
        from 32-bits to HOST_WIDE_INT.

From-SVN: r26699
1999-04-29 10:24:37 -07:00
Bruce Korb
b56a20f600 new regex header name
From-SVN: r26698
1999-04-29 15:39:07 +00:00
Robert Lipe
f7d920fd94 new regex header name
From-SVN: r26697
1999-04-29 15:38:02 +00:00
Robert Lipe
5b61e89fda regex.c, regex.h: Removed.
Thu Apr 29 15:58:52 1999  Robert Lipe  <robertlipe@usa.net>
        * fixinc/regex.c, fixinc/regex.h: Removed.   Replace with...
        * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Imported from GDB 4.18.
        * fixinc/Makefile.in (OBJ, HDR): Handle name changes from above.
        (gnu-regex.o): Define REGEX_MALLOC to avoid memory leak.

From-SVN: r26696
1999-04-29 14:08:18 +00:00
Mark Mitchell
8938bb764b Fix test to correctly reflect problem
From-SVN: r26695
1999-04-29 13:41:32 +00:00
Richard Henderson
062e7fd882 calls.c (emit_call_1): Pass rounded_stack_size to emit_call instead of the unrounded size.
* calls.c (emit_call_1): Pass rounded_stack_size to emit_call
        instead of the unrounded size.

From-SVN: r26694
1999-04-29 05:54:19 -07:00
Mark Mitchell
d8e8b2b997 New failing test
From-SVN: r26693
1999-04-29 09:46:12 +00:00
Nathan Sidwell
7f477e818a cp-tree.h (TYPE_NOTHROW_P): New macro.
* cp-tree.h (TYPE_NOTHROW_P): New macro.
	* decl2.c (delete_sanity): Warn on deleting void *.
	* init.c (build_new_1): Use TYPE_NOTHROW_P.
	* typeck.c (c_expand_return): cp_pedwarn on returning NULL from
	throwing operator new.

From-SVN: r26692
1999-04-29 08:33:55 +00:00
Nathan Sidwell
9939c435d2 * streambuf.h (ios::~ios): Use operator delete[] to remove _arrays.
From-SVN: r26691
1999-04-29 08:32:13 +00:00
Jeff Law
4c6eb8f55d Daily bump.
From-SVN: r26690
1999-04-28 18:46:34 -06:00
Bruce Korb
fef01b2183 Makesure the result shell script is writable
From-SVN: r26689
1999-04-28 14:42:03 +00:00
Mark Mitchell
bc639f9058 * pt.c (tsubst_friend_class): Check for NULL.
From-SVN: r26688
1999-04-28 13:14:20 +00:00
Zack Weinberg
94ff101fbd Adjust so it actually tests something other than a preprocessor quirk; mark XFAIL
From-SVN: r26687
1999-04-28 06:46:53 +00:00
Nathan Sidwell
0d504ef06b cp-tree.h (build_component_addr): Remove prototype.
* cp-tree.h (build_component_addr): Remove prototype.
	* typeck.c (build_component_addr): Make static. Remove MSG
	argument.
	(build_component_addr): Remove MSG parameter, clean up
	comment.
	(build_x_function_call): Use cp_error.
	(build_unary_op): Adjust call of build_component_addr.

From-SVN: r26686
1999-04-28 03:53:54 +00:00
Andreas Schwab
9dd2b10068 * search.c (binfo_for_vtable): Initialize bfvi.var.
From-SVN: r26685
1999-04-28 02:47:34 +00:00
Andreas Schwab
41a12ce742 m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit constant with an address register.
* config/m68k/m68k.md (cmpsi+1): Use cmp.w when comparing a 16 bit
	constant with an address register.

From-SVN: r26684
1999-04-28 01:48:20 +00:00
Jeff Law
9eab711783 Daily bump.
From-SVN: r26683
1999-04-27 18:45:05 -06:00
Jeffrey A Law
74c065e008 Bump for snapshot
From-SVN: r26681
1999-04-27 18:16:48 -06:00
Andrew MacLeod
6af57aae0e rtl.h (REG_EH_REGION): Update comment to indicate a value of -1 indicates no throw and no nonlocal gotos.
Tue Apr 27 19:50:25 EDT 1999  Andrew MacLeod  <amacleod@cygnus.com>
	* rtl.h (REG_EH_REGION): Update comment to indicate a value of -1
	indicates no throw and no nonlocal gotos.
	* optabs.c (emit_libcall_block): Emit REG_EH_REGION with a value
	of -1 instead of 0 to indicate a nonlocal goto won't happen either.
	* flow.c (count_basic_blocks, find_basic_blocks_1): Ignore libcall
	blocks, look for REG_EH_REGION note exclusively.
	(make_edges): Check for REG_EH_REGION > 0 for specified handlers.

From-SVN: r26680
1999-04-27 17:08:37 +00:00
Alexandre Oliva
ceff9b1445 Fixed some old ChangeLog entries I wrote before becoming aware of the GNU
coding standards.

From-SVN: r26679
1999-04-27 13:27:29 +00:00
David Edelsohn
bfc79d3b30 rs6000.h (read_only_data_section, [...]): Align CSECT on doubleword boundary for 64-bit target.
* rs6000.h (read_only_data_section, private_data_section,
	read_only_private_data_section, toc_section): Align CSECT on
	doubleword boundary for 64-bit target.
	(DATA_SECTION_ASM_OP): Likewise.
	* rs6000.c (rs6000_stack_info): Leaf procedure stack limit is 288.

From-SVN: r26678
1999-04-27 08:39:58 -04:00
Joern Rennecke
a5cf6c1c94 Added colon.
From-SVN: r26677
1999-04-27 13:27:18 +01:00
J"orn Rennecke
ea3cbda501 sh.md (insv): Use copy_addr_to_reg.
* sh.md (insv): Use copy_addr_to_reg.
	* final.c (insn_lengths_max_uid) New variable.
	(init_insn_lengths, shorten_branches): Set it.
	(get_attr_lengths): Test insn uid against insn_lengths_max_uid.

From-SVN: r26676
1999-04-27 13:23:20 +01:00
Nathan Sidwell
f915e937d9 * rtti.c (build_x_typeid): Check rtti is enabled.
From-SVN: r26675
1999-04-27 09:41:33 +00:00
Zack Weinberg
0118fd7deb New test - regression for expr.c bug
From-SVN: r26674
1999-04-27 05:57:31 +00:00
Zack Weinberg
76bbe0281d expr.c (emit_move_insn_1): Abort if MODE argument is invalid.
1999-04-27 08:32 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* expr.c (emit_move_insn_1): Abort if MODE argument is invalid.
	(compare): Punt if TREE_OPERAND (exp, 0) is an ERROR_MARK.

From-SVN: r26673
1999-04-27 05:34:43 +00:00
Anthony Green
d2e0d40a13 expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to create internal labels.
* expr.c (generate_name): Use ASM_GENERATE_INTERNAL_LABEL to
	create internal labels.
	(lookup_label): Ditto.

From-SVN: r26672
1999-04-27 05:18:11 +00:00
Jeff Law
8d1ce18d08 Daily bump.
From-SVN: r26671
1999-04-26 18:45:04 -06:00
Jeffrey A Law
e6980e1bce Makefile.in (ORDINARY_FLAGS_TO_PASS): Renmaed from FLAGS_TO_PASS.
* Makefile.in (ORDINARY_FLAGS_TO_PASS): Renmaed from FLAGS_TO_PASS.
        Remove "CC".
        (FLAGS_TO_PASS): New variable.

From-SVN: r26670
1999-04-26 18:39:48 -06:00
Mark Mitchell
86eab6f69a search.c (is_subobject_of_p): Make sure we're looking at the right baseclasses.
* search.c (is_subobject_of_p): Make sure we're looking at the
	right baseclasses.

From-SVN: r26669
1999-04-27 00:02:52 +00:00
Marc Espie
93dfdf16a5 * Make-lang.in (cplib2.ready): Don't depend on phony targets.
From-SVN: r26668
1999-04-26 19:50:36 -04:00
Nick Burrett
6a6fc514ba arm.md (nop): Output instruction using output_asm_insn to fix assembler dialect problems.
* arm.md (nop): Output instruction using output_asm_insn to fix
        assembler dialect problems.

From-SVN: r26667
1999-04-26 17:42:11 -06:00
Robert Lipe
5d55e5cda6 * Makefile.in (fixinc.sh): Fix dependencies.
From-SVN: r26666
1999-04-26 17:00:53 -06:00
Robert Lipe
26e2e81da0 inclhack.def (avoid_bool): Enable match if typedefs are prepended by spaces.
* fixinc/inclhack.def (avoid_bool): Enable match if typedefs are
        prepended by spaces.
        (sco5_stat_wrappers): New fix.   Make sys/stat.h C++ safe.
        * fixinc/fixincl.sh, fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.

From-SVN: r26665
1999-04-26 16:57:01 -06:00
Mumit Khan
6a9c4aed1a function.c (put_var_into_stack): Change ptr_mode to Pmode in setup for chkr_set_right_libfunc calls.
* function.c (put_var_into_stack): Change ptr_mode to Pmode
        in setup for chkr_set_right_libfunc calls.
        (assign_params): Likewise.
        * expr.c (emit_push_insn): Change ptr_mode to Pmode in
        setup for chkr_copy_bitmap_libfunc and chkr_set_right_libfunc calls.
        (expand_assignment): Change ptr_mode to Pmode in
        setup for chkr_add_libfunc and chkr_copy_bitmap_libfunc.
        (store_expr): Change ptr_mode to Pmode in
        setup for chkr_add_libfunc and chkr_copy_bitmap_libfunc.
        (expand_expr): Change ptr_mode to Pmode in
        setup for chkr_check_addr_libfunc.
        (expand_builtin): Change ptr_mode to Pmode in
        setup for chkr_check_str_libfunc, chkr_copy_bitmap_libfunc and
        chkr_check_addr_libfunc.
        * calls.c (rtx_for_function_call): Change ptr_mode to Pmode in
        setup for chkr_check_exec_libfunc.
        (expand_call): Change ptr_mode to Pmode in
        setup for chkr_set_right_libfunc.
        (expand_call): Change ptr_mode to Pmode in
        setup for chkr_set_right_libfunc.
        (store_one_arg): Change ptr_mode to Pmode in
        setup for chkr_set_right_libfunc.

Co-Authored-By: Donn Terry <donn@interix.com>

From-SVN: r26664
1999-04-26 16:51:09 -06:00
Mumit Khan
112cedb09b c-parse.in (absdcl1): Allow attributes in explicit typespecs.
* c-parse.in (absdcl1): Allow attributes in explicit typespecs.
        (%expect): Update.
        * c-parse.y: Regenerate.
        * c-parse.c: Likewise.
        * objc/objc-parse.c: Likewise.
        * objc/objc-parse.y: Likewise.

Co-Authored-By: Donn Terry <donn@interix.com>

From-SVN: r26663
1999-04-26 16:35:58 -06:00
Jason Merrill
0f92adae32 c-pragma.c (push_alignment): Don't ignore alignments greater than 4 bytes.
* c-pragma.c (push_alignment): Don't ignore alignments greater than
	4 bytes.
	(handle_pragma_token): Likewise.
	* c-pragma.c: Support for #pragma pack (push, <id>, <n>).
	(struct align_stack): Add id field.
	(push_alignment, pop_alignment): Take id parameter.
	(handle_pragma_token): Add necessary states.
	* c-pragma.h (enum pragma_state): Add necessary states.

From-SVN: r26662
1999-04-26 17:18:08 -04:00
Alexandre Petit-Bianco
7f1d48663e class.c (layout_class_method): Generate <clinit>'s rtl for interfaces.
Sat Apr 24 16:50:19 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* class.c (layout_class_method): Generate <clinit>'s rtl for
 	interfaces.
	* decl.c (complete_start_java_method): Don't call _Jv_InitClass
 	for interfaces' <clinit>.
	* expr.c (lookup_field): Search for fields in interfaces.
	(expand_invoke): Fixed indentation.
	(expand_java_field_op): Likewise. Use IS_CLINIT.
	* parse.h (JPRIMITIVE_TYPE_OR_VOID_P): Macro removed.
	(IS_CLINIT): New macro.
	* parse.y (type_declaration:): Call maybe_generate_clinit after an
 	interface was parsed.
	(maybe_generate_clinit): Don't generate if the current class is an
 	interface with only fields of primitive types.
	(reset_method_name): Use IS_CLINIT.
	(java_complete_expand_method): Expand <clinit> when it exists for
 	interfaces. Use IS_CLINIT.
	(resolve_expression_name): Use DECL_CONTEXT instead of
 	current_class to build static field references.
	(java_complete_lhs): Use IS__CLINIT. Don't use SAVE_EXPR on
 	ARRAY_REF when doing xreferencing.
	(check_final_assignment): Fixed typo in leading comment. Use
 	IS_CLINIT.
	(patch_array_ref): Don't fully expand array references when
 	xreferencing.
	(patch_return): Use IS_CLINIT.
	(patch_throw_statement): Likewise.

From-SVN: r26661
1999-04-26 12:09:37 -07:00
Michael Hayes
ccd63d90d1 * config/c4x/c4x.md (*cmpqf, *cmpqf_noov, *cmpqi_test,
*cmpqi_test_noov): Remove ? modifier from constraints list.
	(*smulqi3_highpart_clobber, *umulqi3_highpart_clobber): Swap
	output strings to match new constraint ordering.

From-SVN: r26660
1999-04-26 19:05:06 +00:00
Zack Weinberg
3caee4a8ee cpphash.c (dump_definition): New function.
1999-04-26 19:16 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
	* cpphash.c (dump_definition): New function.
	* cpphash.h: Prototype it.
	* cpplib.c (handle_directive): Don't output anything here.
	Streamline.
	(pass_thru_directive): Take a length, not a pointer to the
	end.  All callers changed.
	(do_define): Handle -dD, -dN, -g3 entirely here.  Streamline.
	(do_include): Handle -dI here.
	(do_ident): Correct to match cccp.
	(do_pragma): Copy the pragma through here.
	(do_assert, do_unassert): Tidy.
	* cppinit.c (cpp_finish): If -dM was specified, walk the macro
	hash table and call dump_definition on all the entries.
	* cppmain.c: cpp_finish may produce output.

From-SVN: r26659
1999-04-26 16:41:02 +00:00
Mark Mitchell
641be6fea8 toplev.c (compile_file): Move call to check_global_declarations after output_exception_table to restore...
�
	* toplev.c (compile_file): Move call to check_global_declarations
	after output_exception_table to restore behavior as it was before
	1999-04-22 change.

From-SVN: r26658
1999-04-26 09:03:01 -07:00