1. 14 Jan, 2001 3 commits
  2. 13 Jan, 2001 30 commits
  3. 12 Jan, 2001 7 commits
    • c-typeck.c (store_init_value): Don't require constant initializer elements with -pedantic -std=c99. · 8b6a5902
      	* c-typeck.c (store_init_value): Don't require constant initializer
      	elements with -pedantic -std=c99.
      	(digest_init): Change error about non-constant initializer elements
      	into pedwarn.
      	(constructor_range_end): Remove.
      	(constructor_incremental, designator_depth,
      	designator_errorneous): New variables.
      	(struct constructor_stack): Remove range_end, add incremental.
      	(struct constructor_range_stack, constructor_range_stack): New.
      	(struct initializer_stack): Add constructor_range_stack.
      	(finish_init): Set it.
      	(start_init): Likewise.  require_constant_elements for non-static
      	trees only if not flag_isoc99.
      	(really_start_incremental_init): Remove constructor_range_end, add
      	constructor_incremental.
      	(pop_init_level): Likewise.
      	(push_init_level): Likewise.  If implicit and the subobject had some
      	value set already, preinitialize the level with it.
      	Warn about missing braces only if not pushing due to designators.
      	(set_designator, push_range_stack): New functions.
      	(set_init_label): Use them.
      	(set_init_index): Likewise.  Remove constructor_range_end.
      	Error if designator index is outside of array bounds.
      	(add_pending_init): Compare values of purpose index trees, not the
      	trees themselves.  Allow overwriting of already initialized element.
      	Issue a warning if it had side-effects.
      	(set_nonincremental_init, set_nonincremental_init_from_string): New
      	functions.
      	(pending_init_member): Rename to...
      	(find_init_member): ...this function.  Call set_nonincremental_init
      	if necessary.  Compare values of purpose index trees, not the trees
      	themselves.  Return the actual value, not just non-zero if something
      	is found.
      	(output_init_element): Remove checks for duplicates.
      	If field has zero size, only check the initializer for correctness.
      	Call set_nonincremental_init if necessary.  Push RECORD/ARRAY into AVL
      	if constructor_incremental is zero.  Change error about initializers
      	not computable at load time into pedwarn.
      	(output_pending_init_elements): Compare bit positions, not
      	FIELD_DECLs to take into account zero-sized fields.
      	(process_init_element): Use constructor_range_stack to fill all
      	ranges in the designator lists from current level up.
      	* extend.texi: Update documentation for labeled elements.
      
      	* gcc.c-torture/execute/20000801-3.x: Remove.
      	* gcc.dg/c90-init-1.c: New test.
      	* gcc.dg/c99-init-1.c: New test.
      	* gcc.dg/c99-init-2.c: New test.
      	* gcc.dg/gnu99-init-1.c: New test.
      
      From-SVN: r38968
      Jakub Jelinek committed
    • natGtkComponentPeer.cc (getLocationOnScreen): Wrote. · fafc249b
      	* gnu/awt/gtk/natGtkComponentPeer.cc (getLocationOnScreen):
      	Wrote.
      	(setCursor): Wrote.
      	Include Cursor.h.
      	* gnu/awt/gtk/natGtkLabelPeer.cc: New file.
      	* gnu/awt/gtk/natGtkButtonPeer.cc: New file.
      	* gnu/awt/gtk/gtkcommon.h (class _Jv_GdkThreadLock): New class.
      	* gnu/awt/gtk/GtkLabelPeer.java: New file.
      	* gnu/awt/gtk/GtkButtonPeer.java: New file.
      
      From-SVN: r38967
      Tom Tromey committed
    • Reinstated part of the patch that is safe · ec7c0481
      From-SVN: r38966
      Alexandre Oliva committed
    • Reverted · c6ca5c69
      From-SVN: r38965
      Alexandre Oliva committed
    • calls.c (emit_library_call_value_1): Add USEs and CLOBBERs to function usage for… · f474c6f8
      calls.c (emit_library_call_value_1): Add USEs and CLOBBERs to function usage for arguments passed by reference.
      
      * calls.c (emit_library_call_value_1): Add USEs and CLOBBERs
      to function usage for arguments passed by reference.  Optimize
      callee-copied arguments.
      * regmove.c (find_related_toplev): Find uses in function usage.
      (replace_in_call_usage): New function.
      (fixup_match_1): Call it.
      * cse.c (cse_insn): Canonicalize registers in function usage.
      * reload1.c (replace_pseudos_in_call_usage): New function.
      (reload): Call it.
      
      From-SVN: r38964
      Alexandre Oliva committed
    • Makefile.in: Reverted yesterday's wrong patch. · 7dd232a8
      * Makefile.in: Reverted yesterday's wrong patch.  Installed the
      right version.
      
      From-SVN: r38963
      Alexandre Oliva committed
    • *: Fix dates. · 051d74bf
      
      2001-01-12  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* config/os/djgpp/bits/*: Fix dates.
      
      	* include/bits/basic_string.h (_S_find(const _CharT* __beg, const
      	_CharT* __end, _CharT __c): Remove.
      	* include/bits/basic_string.tcc: Substitute traits::find for _S_find.
      	* include/bits/char_traits.h: Tweak.
      
      From-SVN: r38962
      Benjamin Kosnik committed