1. 17 Aug, 2000 7 commits
  2. 16 Aug, 2000 20 commits
    • lib1funcs.asm (GLOBAL): Define. · acd50a92
      * config/sh/lib1funcs.asm (GLOBAL): Define.  Use for all
      references to GLOBAL symbols.  Use LOCAL where appropriate.
      
      From-SVN: r35752
      Niibe Yutaka committed
    • Makefile.am (libstdc++.INC): Renamed from INCLUDES. · 7d7aced2
      * src/Makefile.am (libstdc++.INC): Renamed from INCLUDES.
      * src/Makefile.in: Regenerate.
      
      From-SVN: r35751
      Alexandre Oliva committed
    • configure.in (libstdcxx_flags): Use libstdc++-v3/src/libstdc++.INC. · c9635443
      * configure.in (libstdcxx_flags): Use
      libstdc++-v3/src/libstdc++.INC.
      
      From-SVN: r35750
      Alexandre Oliva committed
    • * gcconfig.h [OSF1] (_end): Declare as `int'. · 7fedceab
      From-SVN: r35749
      Alexandre Oliva committed
    • ComponentDataBlitOp.java: New file. · 777e6d79
      	* gnu/gcj/awt/ComponentDataBlitOp.java: New file.
      	* gnu/gcj/awt/GLightweightPeer.java: New file.
      	* java/awt/BorderLayout.java: Implemented all methods.
      	* java/awt/Button.java (actionListener, actionCommand): Renamed
      	and modifier change.
      	(addNotify): Call super.
      	(dispatchEventImpl): New method.
      	(getListeners): New method.
      	(label): Made package-private, not private.
      	* java/awt/Canvas.java: Implemented class body.
      	* java/awt/Color.java (brighter): New method.
      	(darker): New method.
      	(hashCode): New method.
      	* java/awt/Component.java (visible, enabled, eventMask): Set defaults.
      	(getGraphicsConfiguration): Delegate to
      	getGraphicsConfigurationImpl().
      	(getGraphicsConfigurationImpl): New method.
      	(getToolkit): Only return value from peer if not null.
      	(isDisplayable): Check with parent.
      	(isShowing): No parent implies not showing.
      	(getForeground): Check parent property if local is null.
      	(getBackground): Likewise.
      	(getFont): Likewise.
      	(setForeground): Inform peer.
      	(setBackground): Likewise
      	(setLocale): Invalidate component.
      	(getColorModel): Implemented.
      	(setLocation): Invalidate, or ignore if no change.
      	(setSize): Invalidate, or ignore if no change.
      	(setBounds): Invalidate, or ignore if no change.
      	(isOpaque): By default, heavyweight implies opaque.
      	(isLightweight): Implemented.
      	(getMaximumSize): Implemented.
      	(doLayout): Implemented, NOP.
      	(validate): Implemented, NOP.
      	(invalidate): Only propagate to parent if parent was valid.
      	(getGraphics): Implemented.
      	(getFontMetrics): Implemented.
      	(update): Implemented.
      	(paintAll): Implemented.
      	(repaint): Implemented all repaint methods.
      	(print): Implemented.
      	(printAll): Implemented.
      	(createImage): Implemented.
      	(dispatchEvent): Give the peer a chance to handle the event.
      	(dispatchEventImpl): Dispatch paint events.
      	(enableEvents): Lightweights enable events on parent component.
      	(coalesceEvents): Coalesce paint events, and select event type
      	using a switch.
      	(coalescePaintEvents): New method.
      	(processEvent): Fix unfortunate ordering of statements, and call
      	correct method for MOUSE_CLICKED.
      	(processPaintEvent): New method.
      	(addNotify): Allow container to notify children before event
      	mask is set in peer.
      	(addNotifyContainerChildren): New method.
      	(removeNotify): Visibility should not change on removeNotify.
      	(paramString): Implemented.
      	(list): Implemented two of the list methods.
      	* Container (myInsets): Removed, insets are managed by peer.
      	(getInsets): Query peer.
      	(addImpl): Fix reparenting, enable events for lightweights,
      	initialize component array.
      	(validate): Call doLayout in validateTree() instead.
      	(validateTree): Do nothing if already valid. Call beginValidate(),
      	endValidate() on peer. Call validateTree() instead of validate()
      	for children that are containers. Mark valid after validation of
      	children.
      	(setFont): Partial implementation.
      	(paint): Implemented.
      	(visitChildren): New method.
      	(visitChild): New method.
      	(update): Implemented.
      	(print): Implemented.
      	(paintComponents): Implemented.
      	(printComponents): Consider translation and clipping.
      	(getComponentAt): Ignore invisible children. Return this if no
      	child match.
      	(addNotify): Call super.
      	(addNotifyContainerChildren): New method.
      	(paramString): Implemented.
      	(list): Implemented.
      	* java/awt/EventQueue (invokeAndWait): Get system event queue the
      	right way.
      	(invokeLater): Likewise.
      	(isDispatchThread): Likewise.
      	* java/awt/FontMetrics (getLeading): Formula change.
      	(getDescent): Consider leading also.
      	(getMaxAscent): Default to getAscent().
      	(getMaxDescent): Default to getDescent.
      	(getMaxAdvance): Return value signifying unknown.
      	(charWidth): Both methods implemented.
      	(charsWidth): Implemented.
      	(bytesWidth): Implemented.
      	(getWidths): Implemented.
      	* java/awt/Frame.java (NORMAL, ICONIFIED, iconImage, isResizable,
      	state): New fields.
      	(Frame): Rearragend constuctor chaining to disallow null being
      	passed as a graphics configuration.
      	(getTitle): Return empty string if null.
      	(dispose): Removed.
      	(getIconImage): New method.
      	(setIconImage): New method.
      	(finalize): New method.
      	(setMenuBar): Notify peer.
      	(isResizable): New method.
      	(setResizable): New method.
      	(getState): New method.
      	(getFont): Removed.
      	(remove): Implemented.
      	(removeNotify): New method.
      	(getFrames): New method.
      	* java/awt/Graphics.java: Implemented body of class.
      	* java/awt/Graphics2D.java: New file.
      	* java/awt/GraphicsConfiguration.java: Enabled part of the API.
      	* java/awt/Image.java: Implemented body of class.
      	* java/awt/Panel.java (Panel): Call correct super constructor.
      	(addNotify): Implemented.
      	* java/awt/Rectangle.java (isEmpty): Fixed reversed logic.
      	* java/awt/RenderingHints.java: New file.
      	* java/awt/Toolkit.java (createComponent): Implemented.
      	(getSystemEventQueue): Delegate to getSystemEventQueueImpl().
      	* java/awt/Window.java (Window): Two new constructors. Reordered
      	constructor chaining.
      	(getGraphicsConfigurationImpl): New method.
      	(finalize): Call super.
      	(addNotify): Call super.
      	(pack): Do layout stuff.
      	(show): Ensure that peer exists and that component is valid.
      	(dispose): Dispose owned children.
      	(getOwner): Simplify code, casting null pointers is valid.
      	(getGraphicsConfiguration): Ask peer if local value is null.
      	* java/awt/event/ActionEvent.java (getActionCommand): Renamed from
      	getcmd().
      	* java/awt/image/BufferedImage.java: New file.
      	* java/awt/image/RasterOp.java: New file.
      	* java/awt/peer/ComponentPeer.java (getGraphicsConfiguration):
      	More powerfull replacement for getColorModel().
      	(getColorModel) Removed.
      	(setEventMask) New method.
      	* Makefile.am: Added new files.
      	* Makefile.in: Rebuilt.
      
      From-SVN: r35748
      Rolf W. Rasmussen committed
    • configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld. · cfedbb1f
      	* configure.in (*-ibm-aix4.[12]*): Delete test for gnu ld.  Always
      	use t-aix41 when host == target.
      
      From-SVN: r35747
      Kaveh R. Ghazi committed
    • reload.c (push_secondary_reload): Revert last change. · 31989264
              * reload.c (push_secondary_reload): Revert last change.
              If we use a reload_in/out pattern, make the when the same
              as the primary reload.
              (find_reloads): Likewise.
      
      From-SVN: r35746
      Richard Henderson committed
    • configure.in (libstdcxx-v3): Fix test. · d84c5634
      
      2000-08-16  Manfred Hollstein  <manfredh@redhat.com>
      
      	* configure.in (libstdcxx-v3): Fix test.
      	* configure: Regenerate.
      
      From-SVN: r35745
      Manfred Hollstein committed
    • jvm.h (_Jv_HashCode): New hash code. · 3a593d5f
      2000-08-15  Andrew Haley  <aph@cygnus.com>
      
      	* include/jvm.h (_Jv_HashCode): New hash code.
      
      From-SVN: r35744
      Andrew Haley committed
    • calls.c (calls_function_1, [...]): Only test TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE. · 43db0363
      	* calls.c (calls_function_1, expand_call): Only test
      	TYPE_RETURNS_STACK_DEPRESSED for FUNCTION_TYPE.
      	* function.c (thread_prologue_and_epilogue_insns): Likewise.
      
      From-SVN: r35743
      Richard Kenner committed
    • combine.c (simplify_shift_const): Revert previous two changes. · 853d8828
              * combine.c (simplify_shift_const): Revert previous two
              changes.  If SHIFT_COUNT_TRUNCATED, crop the shift count
              before the main loop.
      
      From-SVN: r35742
      Richard Henderson committed
    • Daily bump. · cbd273a8
      From-SVN: r35741
      Jeff Law committed
    • New test. · 2b8b1ab6
      From-SVN: r35740
      Richard Henderson committed
    • combine.c (simplify_shift_const): Bound shift count when combining shifts. · 3e626beb
              * combine.c (simplify_shift_const): Bound shift count when
              combining shifts.
      
      From-SVN: r35739
      Richard Henderson committed
    • codecvt.h: New file. · 8e7c93fe
      
      2000-08-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* bits/codecvt.h: New file.
      	* src/codecvt.cc: New file.
      	* bits/std_locale.h: Add include here.
      	* src/Makefile.am (headers): Add codecvt.h
      	(sources): Add codecvt.cc.
      	* src/Makefile.in: Regenerate.
      	* bits/locale_facets.h (codecvt): Re-implement. Rename _Codecvt to
      	__codecvt_abstract_base in an attempt to point some light this way...
      	Move __enc_traits and codecvt bits to codecvt.h.
      	* src/locale-inst.cc: Remove codecvt<wchar_t, wchar_t, mbstate_t>
      	explicit instantiation. Separate out codecvt instantations, simplify.
      	* src/locale.cc: Move codecvt bits to codecvt.cc
      
      From-SVN: r35738
      Benjamin Kosnik committed
    • codecvt.h: New file. · 63511623
      
      2000-08-15  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>
      
      	* bits/codecvt.h: New file.
      	* src/codecvt.cc: New file.
      	* bits/std_locale.h: Add include here.
      	* src/Makefile.am (headers): Add codecvt.h
      	(sources): Add codecvt.cc.
      	* src/Makefile.in: Regenerate.
      	* bits/locale_facets.h (codecvt): Re-implement. Rename _Codecvt to
      	__codecvt_abstract_base in an attempt to point some light this way...
      	Move __enc_traits and codecvt bits to codecvt.h.
      	* src/locale-inst.cc: Remove codecvt<wchar_t, wchar_t, mbstate_t>
      	explicit instantiation. Separate out codecvt instantations, simplify.
      	* src/locale.cc: Move codecvt bits to codecvt.cc
      
      From-SVN: r35737
      Benjamin Kosnik committed
    • * java/io/ByteArrayOutputStream.java: Merged with Classpath. · fec1ce0a
      From-SVN: r35736
      Tom Tromey committed
    • calls.c (ECF_SP_DEPRESSED): New macro. · 0cba764e
      	* calls.c (ECF_SP_DEPRESSED): New macro.
      	(calls_function_1): Treat calling sp-depressed function as alloca.
      	(emit_call_1): Don't adjust SP if calling sp-depressed function.
      	(expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
      	If sp-depressed, ensure block saves and restores SP.
      	* fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
      	for INTEGER_TYPE.
      	* function.c (keep_stack_depressed): New function.
      	(thread_prologue_and_epilogue_insns): Call it.
      	* print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
      	to print DECL_OFFSET_ALIGN.
      	Print no-force-blk and transparent-union flags properly.
      	* stmt.c (expand_goto_internal): Don't restore stack if last block
      	and function returns with sp depressed.
      	(fixup_gotos): Likewise.
      	(save_stack_pointer): New function, from code in expand_decl.
      	(expand_decl): Call new function.
      	* tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
      	(TYPE_RETURNS_STACK_DEPRESSED): New macro.
      	(save_stack_pointer): New declaration.
      
      From-SVN: r35735
      Richard Kenner committed
    • calls.c (ECF_SP_DEPRESSED): New macro. · 7393c642
      	* calls.c (ECF_SP_DEPRESSED): New macro.
      	(calls_function_1): Treat calling sp-depressed function as alloca.
      	(emit_call_1): Don't adjust SP if calling sp-depressed function.
      	(expand_call): Set ECF_SP_DEPRESSED if TYPE_RETURNS_STACK_DEPRESSED.
      	If sp-depressed, ensure block saves and restores SP.
      	* fold-const.c (extract_muldiv): Only check TYPE_IS_SIZETYPE
      	for INTEGER_TYPE.
      	* function.c (keep_stack_depressed): New function.
      	(thread_prologue_and_epilogue_insns): Call it.
      	* print-tree.c (print_node): Use HOST_WIDE_INT_PRINT_UNSIGNED
      	to print DECL_OFFSET_ALIGN.
      	Print no-force-blk and transparent-union flags properly.
      	* stmt.c (expand_goto_internal): Don't restore stack if last block
      	and function returns with sp depressed.
      	(fixup_gotos): Likewise.
      	(save_stack_pointer): New function, from code in expand_decl.
      	(expand_decl): Call new function.
      	* tree.h (TYPE_IS_SIZETYPE): Call INTEGER_TYPE_CHECK.
      	(TYPE_RETURNS_STACK_DEPRESSED): New macro.
      	(save_stack_pointer): New declaration.
      
      From-SVN: r35734
      Richard Kenner committed
    • jcf-write.c (generate_bytecode_conditional): Re-installed lost Jan 6 2000 patch. · 81baa09a
      2000-08-14  Alexandre Petit-Bianco  <apbianco@cygnus.com>
      
              * jcf-write.c (generate_bytecode_conditional): Re-installed lost
              Jan 6 2000 patch.
              (generate_bytecode_insns): Check `nargs' before emitting it.
              * verify.c (merge_type_state): Fixed typo.
              * ChangeLog: Fixed typo in some jcf-write.c entries mentioning
              generate_bytecode_{conditional,insns}.
      
      (http://gcc.gnu.org/ml/gcc-patches/2000-08/msg00617.html)
      
      From-SVN: r35733
      Alexandre Petit-Bianco committed
  3. 15 Aug, 2000 13 commits
    • diagnostic.c (fatal_function): New variable. · f507188a
      	* diagnostic.c (fatal_function): New variable.
      	(set_fatal_function): New function.
      	(fatal): Call it.
      	* diagnostic.h (set_fatal_function): New declaration.
      
      From-SVN: r35732
      Richard Kenner committed
    • diagnostic.c (fatal_function): New variable. · 43b45e94
      	* diagnostic.c (fatal_function): New variable.
      	(set_fatal_function): New function.
      	(fatal): Call it.
      	* diagnostic.h (set_fatal_function): New declaration.
      
      From-SVN: r35731
      Richard Kenner committed
    • elf.h (DWARF2_DEBUGGING_INFO): Defined. · 56847207
      	* config/sh/elf.h (DWARF2_DEBUGGING_INFO): Defined.
      	(PREFERRED_DEBUGGING_TYPE): Set to dwarf2 info.
      	(DWARF2_ASM_LINE_DEBUG_INFO): Defined.
      
      From-SVN: r35730
      William Cohen committed
    • Minor whitespace fixes · 1156b23c
      From-SVN: r35729
      Richard Kenner committed
    • c90-array-lval-2.c, [...]: New tests. · 7300c8eb
      	* gcc.dg/c90-array-lval-2.c, gcc.dg/c90-const-expr-2.c,
      	gcc.dg/c99-array-lval-2.c, gcc.dg/c99-const-expr-2.c,
      	gcc.dg/c99-func-3.c, gcc.dg/c99-func-4.c: New tests.
      
      From-SVN: r35728
      Joseph Myers committed
    • tm.texi (LOCAL_REGNO): Document. · fa80e43d
             * tm.texi (LOCAL_REGNO): Document.
              * flow.c (LOCAL_REGNO, EPILOGUE_USES): Provide default.
              (mark_regs_live_at_end): Don't mark LOCAL_REGNO registers.
              * reload1.c (reload): Likewise when considering nonlocal labels.
      
              * config/ia64/ia64.h (LOCAL_REGNO): New.
              * config/sparc/sparc.h (LOCAL_REGNO): New.
      Last real change...
      
      From-SVN: r35722
      Jeff Law committed
    • tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo. · 6b72173a
              * tm.texi (FUNCTION_ARG_PARTIAL_NREGS): Fix a typo.
      
      One more...
      
      From-SVN: r35720
      Jeff Law committed
    • cppdefault.h (WINT_TYPE): Define. · 1a67c7d3
              * cppdefault.h (WINT_TYPE): Define.
              * cppinit.c (builtin_array): Define __WINT_TYPE__.
              * tradcpp.c (initialize_builtins): Define __WINT_TYPE__.
              * tm.texi (NO_BUILTIN_WINT_TYPE, WINT_TYPE): Document.
      Almost done.
      
      From-SVN: r35719
      Jeff Law committed
    • tm.texi (Register Classes): Clarify order of sub-initializers in REG_CLASS_CONTENTS. · 7c272079
              * tm.texi (Register Classes): Clarify order of sub-initializers
              in REG_CLASS_CONTENTS.
      Ho hum...
      
      From-SVN: r35718
      Michael Poole committed
    • tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions. · 7a6bd5ae
              * tm.texi (Addressing Modes): Clarify PRE/POST_MODIFY descriptions.
      
      Restoring tm.texi after corruption.
      
      From-SVN: r35717
      Jeff Law committed
    • cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY. · 864bcaa7
              * cse.c (canon_hash): Handle PRE_MODIFY/POST_MODIFY.
              (cse_insn): Likewise.
              (addr_affects_sp_p): Likewise.
              * expr.c (move_by_pieces): Likewise.
              (clear_by_pieces): Likewise.
              * gcse.c (oprs_unchanged_p): Likewise.
              * haifa-sched.c (sched_analyze_2): Likewise.
              * recog.c (offsettable_address_p): Likewise.
              * regclass.c (record_address_regs): Likewise.
              * reload.c (find_reusable_reload): Likewise.
              (push_reload): Likewise.
              (operands_match_p): Likewise.
              (decompose): Likewise.
              (find_reloads_address_1): Likewise.
              (find_inc_amount): Likewise.
              * reload1.c (elimination_effects): Likewise.
              * resource.c (mark_set_resources): Likewise.
              * flow.c (attempt_auto_inc): New function; mostly broken out
              of find_auto_inc.
              (find_auto_inc): Split into two functions and enhanced to
              generate POST_MODIFY.
              * rtl.def (PRE_MODIFY, POST_MODIFY): Adjust comment.
              * rtl.h (count_all_occurrences):  Declare.
              (HAVE_{PRE,POST}_MODIFY_{DISP,REG}): Provide default of 0 if not
              defined.
              * rtlanal.c (count_all_occurrences): New function.
              * tm.texi (HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_DISP,
              HAVE_POST_MODIFY_REG, HAVE_PRE_MODIFY_REG): Document.
      
              * config/ia64/ia64-protos.h (destination_operand): Declare.
              * config/ia64/ia64.c (destination_operand): New function.
              (ia64_print_operand): Handle POST_MODIFY.
              (rtx_needs_barrier): Likewise.
              * config/ia64/ia64.h (HAVE_POST_MODIFY_DISP): Define to 1.
              (HAVE_POST_MODIFY_REG): Define to 1.
              (MAX_REGS_PER_ADDRESS): Change to 2.
              (GO_IF_LEGITIMATE_ADDRESS): Accept POST_MODIFY too.
              (LEGITIMATE_ADDRESS_REG): New helper macro.
              (LEGITIMATE_ADDRESS_DISP): Likewise.
              (PREDICATE_CODES): Add entry for destination_operand.
              * config/ia64/ia64.md (all mov patterns): Use destination_operand
              predicate for operand 0.
      Restoring tm.texi after corruption.
      
      From-SVN: r35713
      Jeff Law committed
    • final.c (profile_function): Do not emit profile counters in the data section, if… · 980e2067
      final.c (profile_function): Do not emit profile counters in the data section, if NO_PROFILE_COUNTERS is defined.
      
              * final.c (profile_function): Do not emit profile counters in
              the data section, if NO_PROFILE_COUNTERS is defined.
              * tm.texi: Document NO_PROFILE_COUNTERS.  Update doc for
              FUNCTION_PROFILER.
      
              * config/i386/linux.h (NO_PROFILE_COUNTERS): Define.
              (FUNCTION_PROFILER): Just emit a call to mcount.
      Restoring tm.texi after corruption.
      
      From-SVN: r35709
      Jeff Law committed