Commit Graph

32560 Commits

Author SHA1 Message Date
Jeff Law
d15eac34aa Daily bump.
From-SVN: r38570
2000-12-31 01:45:07 -07:00
Richard Henderson
711d4bb3ce dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
* dbxout.c (dbxout_block): Invert logic on eliding LBRAC/RBRAC.
        Initialize variables properly for DBX_LBRAC_FIRST.

From-SVN: r38569
2000-12-30 23:22:28 -08:00
Richard Kenner
27fb3e162e * expr.c (expand_expr, case COMPONENT_REF): Fix typo in last change.
From-SVN: r38568
2000-12-30 20:53:54 -05:00
Kaveh Ghazi
e396cb7b29 Oops, fix style nit.
From-SVN: r38567
2000-12-30 18:16:16 +00:00
Kaveh R. Ghazi
019fa094da * builtins.c (validate_arglist): New function, use it.
From-SVN: r38566
2000-12-30 18:15:04 +00:00
Robert Lipe
17b8888b84 Remove COFF support from i?86-pc-sco3.2v5.
2000-12-29  Robert Lipe <robertl@sco.com>

        Remove COFF support from i?86-pc-sco3.2v5.
        * i386/sco5.h (PREFERRED_DEBUGGING_TYPE): Change to Dwarf II.
        (TARGET_ELF): Now always true.
        (SUBTARGET_SWTICHES: )Remove -mcoff.

        * i386/t-sco5 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
        MULTILIB_EXCEPTION): Nuke coff.
        (CRTSTUFF_T_CFLAGS_S):  Deleted.
        (TARGET_LIBGCC2_CFLAGS): Added.

From-SVN: r38565
2000-12-30 17:14:52 +00:00
Jeffrey Oldham
965a9c31d9 20001009-2.c (foo): Test only works for signed char, not default char.
2000-12-30  Jeffrey Oldham  <oldham@codesourcery.com>

	* gcc.c-torture/execute/20001009-2.c (foo): Test only works for
	signed char, not default char.

From-SVN: r38564
2000-12-30 16:59:52 +00:00
Jeffrey Oldham
9b961b950c crash18.C: Fails on mips*-sgi-irix*.
2000-12-30  Jeffrey Oldham  <oldham@codesourcery.com>

	* g++.old-deja/g++.other/crash18.C: Fails on mips*-sgi-irix*.

From-SVN: r38563
2000-12-30 16:47:17 +00:00
Philip Blundell
f18969c010 Fix typos.
From-SVN: r38562
2000-12-30 16:34:00 +00:00
Jeffrey Oldham
2df88e9f58 defaults.h (BUILD_VA_LIST_TYPE): New definition.
2000-12-30  Jeffrey Oldham  <oldham@codesourcery.com>

	* defaults.h (BUILD_VA_LIST_TYPE): New definition.
	* tree.c (build_common_tree_nodes_2): Ensure the va_list_type_node
	is a copy, not an alias.

From-SVN: r38561
2000-12-30 15:31:49 +00:00
Richard Kenner
b367c41628 * calls.c (calls_function_1, case CONSTRUCTOR): New case.
From-SVN: r38560
2000-12-30 09:52:15 -05:00
Richard Kenner
1da68f560d alias.c (alias_sets_conflict_p): New function.
* alias.c (alias_sets_conflict_p): New function.
	(mems_in_disjoint_alias_sets_p): Use it.
	(readonly_fields_p): Moved from expr.c; check for record type.
	(objects_must_conflict_p): New function.
	* calls.c (expand_call): Use assign_temp as much as possible, use
	readonly variant if assigned once, and don't set memory attributes.
	(emit_library_call_value_1, store_one_arg): Likewise.
	* integrate.c (expand_inline_function): Likewise.
	* stmt.c (expand_asm_operands, expand_return): Likewise.
	* expr.c (copy_blkmode_from_reg, store_constructor): Likewise.
	(store_field, save_noncopied_parts, expand_expr): Likewise.
	(expand_expr_unaligned): Likewise.
	(readonly_fields_p): Moved to alias.c.
	(safe_from_p): Rework handling of SAVE_EXPR.
	MEMs ony conflict if alias sets conflict; likewise for INDIRECT_REF.
	* function.c (struct temp_slot): Delete field ALIAS_SET; add TYPE.
	(assign_stack_for_temp): Use objects_must_confict_p.
	Set all memory attributes from type, if specified.
	(mark_temp_slot): Mark TYPE field.
	* tree.h (alias_sets_conflict_p, readonly_fields_p): New decls.
	(objects_must_conflict_p): Likewise.

	* stmt.c (expand_decl): Don't use assign_stack_temp in error case.
	(add_case_node): No need to copy nodes anymore.

From-SVN: r38559
2000-12-30 08:10:51 -05:00
Bryce McKinlay
2e9ab75de4 Forgot these in last commit.
From-SVN: r38558
2000-12-30 12:22:15 +00:00
Bryce McKinlay
e301621d19 For boehm-gc:
* configure.in: Rename THREADLIB to THREADLIBS.
	* Makefile.am (LINK): Add $(THREADLIBS) to libtool command line. This
	ensures that we link the correct version of the linuxthreads semaphore
	functions.
	* Makefile.in: Rebuilt.
	* configure: Rebuilt.

	* linux_thread.c (GC_thr_init, GC_suspend_handler): Add SIGABRT to the
	list of signals which are not blocked during suspend in the NO_SIGNALS
	case.

For libjava:
	* Makefile.am (libgcj_la_LIBADD): Add $(THREADLIBS). This ensures that
	the correct versions of various linuxthreads functions get linked.
	* Makefile.in: Rebuilt.
	* java/lang/natThread.cc (finalize_native): New static function. Call
	_Jv_ThreadDestroyData.
	(initialize_native): Register finalizer for "data".
	* include/posix-threads.h (_Jv_ThreadInitData): New simpler prototype.
	(_Jv_ThreadDestroyData): New prototype.
	* include/win32-threads.h: Ditto.
	* include/no-threads.h: Ditto.
	* posix-threads.cc (_Jv_ThreadInitData): Implement new prototype.
	(_Jv_ThreadDestroyData): New function. Free native thread "data" and
	move mutex and condition variable destroy code from:
	(really_start): ...here.
	(_Jv_ThreadStart): Set PTHREAD_CREATE_DETACHED.
	* win32-threads.cc (_Jv_ThreadInitData): Implement new prototype.
	(_Jv_ThreadDestroyData): Implemented.
	* nogc.cc (_Jv_AllocObject): Use "void *" not "ptr_t".
	(_Jv_AllocArray): Ditto.

From-SVN: r38557
2000-12-30 12:18:39 +00:00
Marek Michalkiewicz
4c2f5b4fd3 * MAINTAINERS: Add myself as avr port co-maintainer.
From-SVN: r38556
2000-12-30 11:56:57 +00:00
Jeff Law
c582434717 Daily bump.
From-SVN: r38555
2000-12-30 01:45:08 -07:00
Alexandre Oliva
b94544e45f sh.c (split_branches): Don't dereference re-computed `beyond' before checking it's non-NULL.
* config/sh/sh.c (split_branches): Don't dereference re-computed
`beyond' before checking it's non-NULL.

From-SVN: r38554
2000-12-30 07:53:35 +00:00
David Billinghurst
d05e34f296 * lib/g++.exp: Use sh to exec ${odir_v3}/tests_flags
From-SVN: r38553
2000-12-29 15:25:57 -07:00
Robert Lipe
b57d6be879 Remove COFF support from i?86-pc-sco3.2v5.
* i386/sco5.h (PREFERRED_DEBUGGING_TYPE): Change to Dwarf II.
        (TARGET_ELF): Now always true.
        (SUBTARGET_SWTICHES: )Remove -mcoff.

        * i386/t-sco5 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
        MULTILIB_EXCEPTION): Nuke coff.
        (CRTSTUFF_T_CFLAGS_S):  Deleted.
        (TARGET_LIBGCC2_CFLAGS): Added.

From-SVN: r38552
2000-12-29 22:15:03 +00:00
Alexandre Oliva
e1b4533c2a varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO twice.
* varasm.c (output_constant_def): Don't ENCODE_SECTION_INFO
twice.  Update desc->rtl and ->label, in case ENCODE_SECTION_INFO
modifies them.

From-SVN: r38551
2000-12-29 20:34:20 +00:00
DJ Delorie
584932e9b4 fnmatch.c: Make the note about the origins of this file more accurate...
* fnmatch.c: Make the note about the origins of this file more
accurate, at least until we can sync with glibc.
* getopt.c: Ditto.
* getopt1.c: Ditto.
* md5.c: Ditto.
* obstack.c: Ditto.

From-SVN: r38550
2000-12-29 14:37:03 -05:00
Bernd Schmidt
b5d37c6fc2 Improve alias analysis on ia64
From-SVN: r38549
2000-12-29 18:18:50 +00:00
Bernd Schmidt
de10dbf5be Add a comment
From-SVN: r38548
2000-12-29 17:52:57 +00:00
Bernd Schmidt
6152c64aab Compute REG_N_SETS for ORIGINAL_REGNOs.
From-SVN: r38547
2000-12-29 17:48:08 +00:00
Bernd Schmidt
08394eefae Introduce ORIGINAL_REGNO macro
From-SVN: r38546
2000-12-29 17:35:57 +00:00
Richard Kenner
5538d8a004 tree.c (get_set_constructor_bits): Use host_integerp and tree_low_cst.
* tree.c (get_set_constructor_bits): Use host_integerp and
	tree_low_cst.

From-SVN: r38545
2000-12-29 12:18:22 -05:00
Jakub Jelinek
77f5250d6f * decl.c (init_decl_processing): Fix sign of wchar_type_node.
From-SVN: r38537
2000-12-29 15:43:24 +01:00
Richard Kenner
c2fd66f48e local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.
2000-12-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN.

*** local-alloc.c	2000/11/30 21:40:33	1.75
--- local-alloc.c	2000/12/29 13:10:59
*************** update_equiv_regs ()
*** 1141,1146 ****
  		  rtx new_insn;

! 		  new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)),
! 					       insn);
  		  REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
  		  REG_NOTES (equiv_insn) = 0;
--- 1141,1145 ----
  		  rtx new_insn;

! 		  new_insn = emit_insn_before (PATTERN (equiv_insn), insn);
  		  REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn);
  		  REG_NOTES (equiv_insn) = 0;

From-SVN: r38536
2000-12-29 08:13:42 -05:00
Richard Kenner
e1a132c650 toplev.c (main): Call xmalloc_set_program_name.
* toplev.c (main): Call xmalloc_set_program_name.
	* gcc.c (main): Likewise.

From-SVN: r38535
2000-12-29 08:09:35 -05:00
Philip Blundell
5184f7c5e1 Fix typo.
From-SVN: r38534
2000-12-29 12:49:37 +00:00
Richard Henderson
50f9ca2f0c New test.
From-SVN: r38533
2000-12-29 03:57:30 -08:00
Richard Henderson
c17f08e1a8 alpha.c (alpha_expand_block_move): Initialize src_align and dst_align in bits.
* config/alpha/alpha.c (alpha_expand_block_move): Initialize
        src_align and dst_align in bits.  Do unaligned quadword loads
        if possible for BWX too.
        (alpha_expand_block_clear): Initialize align in bits.  Track
        small leading offsets into a larger alignment.  Play games with
        stq_u for large 4-byte aligned blocks.  Use load/mask/store
        for appropreately aligned heads and tails.

From-SVN: r38532
2000-12-29 03:51:01 -08:00
Richard Henderson
12db0efc8e 20001117-1.c (__cyg_profile_func_enter): Define.
* gcc.dg/20001117-1.c (__cyg_profile_func_enter): Define.
        (__cyg_profile_func_exit): Define.

From-SVN: r38531
2000-12-29 01:27:22 -08:00
Mark Mitchell
31a714f6d8 class.c (pushclass): Remove #if 0'd code.
* class.c (pushclass): Remove #if 0'd code.
	* cp-tree.h (overload_template_name): Remove.
	* decl.c (store_bindings): Simplify.
	(pop_from_top_level): Likewise.
	* pt.c (overload_template_name): Remove.
	(instantiate_decl): Don't call push_to_top_level if it's not
	needed.

From-SVN: r38530
2000-12-29 09:20:46 +00:00
Jeff Law
d40fb37362 Daily bump.
From-SVN: r38529
2000-12-29 01:45:07 -07:00
Alexandre Oliva
f523247a94 function.c (assign_parms): Convert arguments passed by reference to the right mode.
* function.c (assign_parms): Convert arguments passed by
reference to the right mode.

From-SVN: r38528
2000-12-29 08:38:19 +00:00
Geoffrey Keating
fb8b656c65 c-parse.in (select_or_iter_stmt): Use truthvalue_conversion on the condition of a FOR statement...
2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

	* c-parse.in (select_or_iter_stmt): Use truthvalue_conversion
	on the condition of a FOR statement, so that it gets typechecked
	and optimised.

2000-12-28  Geoffrey Keating  <geoffk@redhat.com>

	* gcc.dg/noncompile/20001228-1.c: New test.

From-SVN: r38527
2000-12-29 08:27:40 +00:00
Alexandre Oliva
6894017546 c-decl.c (grokdeclarator): Prevent crash in case of overflow in array size.
* c-decl.c (grokdeclarator): Prevent crash in case of overflow in
array size.

From-SVN: r38526
2000-12-29 08:03:56 +00:00
Mark Mitchell
7e7d951756 Add comment
From-SVN: r38525
2000-12-29 06:09:44 +00:00
Mark Mitchell
414ea4aa86 pt.c (register_local_specialization): Don't return a value.
* pt.c (register_local_specialization): Don't return a value.
	(lookup_template_class): Use move-to-front heuristic when looking
	up template instantiations.
	(instantiate_decl): Only push_to_top_level when we're actually
	going to instantiate the template.

From-SVN: r38524
2000-12-29 06:08:00 +00:00
Alexandre Oliva
6b5273c31e calls.c (emit_library_call_value_1): Add to call_fusage the stack slot assigned to argument passed by reference.
* calls.c (emit_library_call_value_1): Add to call_fusage the
stack slot assigned to argument passed by reference.

From-SVN: r38523
2000-12-29 04:36:00 +00:00
Hans-Peter Nilsson
cd372c39a8 * g++.dg/vtgc1.C: New test.
From-SVN: r38522
2000-12-29 02:57:08 +00:00
Hans-Peter Nilsson
6f18f7e9b7 search.c (binfo_for_vtable): Return least derived class, not most.
* search.c (binfo_for_vtable): Return least derived class, not
	most.  Handle secondary vtables.

From-SVN: r38521
2000-12-29 02:41:05 +00:00
Jeffrey Oldham
328a8516f5 toplev.h (extern really_sorry): Remove extern declaration for nonexistent function.
2000-12-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* toplev.h (extern really_sorry): Remove extern declaration for
        nonexistent function.

From-SVN: r38520
2000-12-29 01:45:53 +00:00
Geoffrey Keating
3ba35c91c1 Alan forgot his name...
From-SVN: r38519
2000-12-28 23:58:29 +00:00
Geoffrey Keating
f33f0c3a01 * gcc.dg/20001228-1.c: New test.
From-SVN: r38518
2000-12-28 23:56:49 +00:00
Geoffrey Keating
bc5137ae0f * gcc.c-torture/execute/20001228-1.c: New test.
From-SVN: r38517
2000-12-28 23:50:38 +00:00
Jeff Sturm
4c58589f1a DriverManager.java (getConnection): Don't set user/password properties if null.
2000-12-27  Jeff Sturm  <jeff.sturm@commerceone.com>

	* java/sql/DriverManager.java (getConnection): Don't set
	user/password properties if null.

From-SVN: r38516
2000-12-28 22:21:36 +00:00
Robert Lipe
347d73aac2 jartool.c (MAXPATHLEN): Provide if not defined.
2000-12-28  Robert Lipe <robertl@sco.com>

        * jartool.c (MAXPATHLEN): Provide if not defined.

From-SVN: r38515
2000-12-28 21:47:37 +00:00
Jeffrey Oldham
212addfac7 varasm.c (initializer_constant_valid_p): Indicate subtraction of pointers to the same string constant is absolute.
2000-12-28  Jeffrey Oldham  <oldham@codesourcery.com>

	* varasm.c (initializer_constant_valid_p): Indicate subtraction of
	pointers to the same string constant is absolute.

From-SVN: r38514
2000-12-28 19:35:56 +00:00