1. 27 Apr, 2005 5 commits
    • [multiple changes] · 5984f989
      2005-04-27  Michael Koch  <konqueror@gmx.de>
      
      	* java/nio/charset/Charset.java (providers2): Renamed from 'providers'
      	to work around CNI limitation.
      
      2005-04-27  Sven de Marothy  <sven@physto.se>
      
      	* java/nio/charset/Charset.java:
      	(defaultCharset()): New method.
      	Status updated to 1.5
      
      2005-04-27  Sven de Marothy  <sven@physto.se>
      
      	* java/nio/charset/Charset.java: Cached encoders shouldn't be static.
      
      2005-04-27  Sven de Marothy  <sven@physto.se>
      
      	* java/nio/charset/Charset.java: Reset cached de/encoders.
      
      2005-04-27  Robert Schuster <thebohemian@gmx.net>
      
      	* java/nio/charset/Charset.java (forName): Throws
      	IllegalArgumentException when argument is null
      	and added documentation.
      
      2005-04-27  Ito Kazumitsu  <kaz@maczuka.gcd.org>
      
      	* java/nio/charset/Charset.java (providers):
      	New method to make an array of CharsetProviders defined in
      	META-INF/services/java.nio.charset.spi.CharsetProvider.
      	(charsetForName, availableCharsets): Use the
      	new method providers().
      
      From-SVN: r98816
      Michael Koch committed
    • vax.c (legitimate_constant_address_p): New. · fbf55580
      2005-04-27  Matt Thomas <matt@3am-software.com>
      
              * config/vax/vax.c (legitimate_constant_address_p): New.  Formerly
                      CONSTANT_ADDRESS_P in config/vax/vax.h
              (legitimate_constant_p): Added.  Formerly CONSTANT_P in vax.h.
              (INDEX_REGISTER_P): New.
              (BASE_REGISTER_P): New.
              (indirectable_constant_address_p): New.  Adapted from
                      INDIRECTABLE_CONSTANT_ADDRESS_P in vax.h.
                      Use SYMBOL_REF_LOCAL_P.
              (indirectable_address_p): New.  Adapted from
                      INDIRECTABLE_ADDRESS_P in vax.h.
              (nonindexed_address_p): New.  Adapted from
                      GO_IF_NONINDEXED_ADDRESS in vax.h.
              (index_temp_p): New.  Adapted from
                      INDEX_TERM_P in vax.h.
              (reg_plus_index_p): New.  Adapted from
                      GO_IF_REG_PLUS_INDEX in vax.h.
              (legitimate_address_p): New.  Adapted from
                      GO_IF_LEGITIMATE_ADDRESS in vax.h
              (vax_mode_dependent_address_p): New.  Adapted from
                      GO_IF_MODE_DEPENDENT_ADDRESS in vax.h
              * config/vax/vax.h (CONSTANT_ADDRESS_P): Use
                      legitimate_constant_address_p
              (CONSTANT_P): Use legitimate_constant_p.
              (INDIRECTABLE_CONSTANT_ADDRESS_P): Removed.
              (INDIRECTABLE_ADDRESS_P): Removed.
              (GO_IF_NONINDEXED_ADDRESS): Removed.
              (INDEX_TEMP_P): Removed.
              (GO_IF_REG_PLUS_INDEX): Removed.
              (GO_IF_LEGITIMATE_ADDRESS): Use legitimate_address_p.
                      Two definitions, depending on whether REG_OK_STRICT is defined.
              (GO_IF_MODE_DEPENDENT_ADDRESS): Use vax_mode_dependent_address_p.
                      Two definitions, depending on whether REG_OK_STRICT is defined.
              * config/vax/vax-protos.h (legitimate_constant_address_p): Prototype
                      added.
              (legitimate_constant_p): Prototype added.
              (legitimate_address_p): Prototype added.
              (vax_mode_dependent_address_p): Prototype added.
      
      From-SVN: r98814
      Matt Thomas committed
    • * tree.h (phi_arg_d): Expand a comment in phi_arg_d. · 5dbc71f8
      From-SVN: r98813
      Kazu Hirata committed
    • re PR c/21213 (segfault declaring a transparent union) · eb3490b9
      	PR c/21213
      	* c-decl.c (finish_struct): Don't dereference NULL TYPE_FIELDS of
      	transparent union.
      
      testsuite:
      	* gcc.dg/transparent-union-3.c: New test.
      
      From-SVN: r98808
      Joseph Myers committed
    • Daily bump. · 968744fc
      [[Split portion of a mixed commit.]]
      
      From-SVN: r98805.2
      GCC Administrator committed
  2. 26 Apr, 2005 35 commits
    • re PR c/20740 (cc1 segfaults) · 5e49f16b
      	PR c/20740
      	* c-format.c (init_dynamic_asm_fprintf_info): Give errors, not
      	assertion failures, if __gcc_host_wide_int__ is not properly
      	defined.
      	(init_dynamic_diag_info): Give errors, not assertion failures, if
      	location_t, tree or __gcc_host_wide_int__ are not properly
      	defined.
      
      testsuite:
      	* gcc.dg/format/asm_fprintf-2.c, gcc.dg/format/asm_fprintf-3.c,
      	gcc.dg/format/asm_fprintf-4.c, gcc.dg/format/asm_fprintf-5.c,
      	gcc.dg/format/gcc_diag-2.c, gcc.dg/format/gcc_diag-3.c,
      	gcc.dg/format/gcc_diag-4.c, gcc.dg/format/gcc_diag-5.c,
      	gcc.dg/format/gcc_diag-6.c, gcc.dg/format/gcc_diag-7.c ,
      	gcc.dg/format/gcc_diag-8.c, gcc.dg/format/gcc_diag-9.c: New tests.
      
      From-SVN: r98800
      Joseph Myers committed
    • tree.h (tree_phi_node): Add a comment about the order of PHI arguments. · 4b0ec99a
      	* tree.h (tree_phi_node): Add a comment about the order of PHI
      	arguments.
      
      From-SVN: r98798
      Kazu Hirata committed
    • tree-ssa-loop-ivopts.c (ivopts_data, [...]): Use the VEC API instead of VARRAY. · 69ebd99d
      	* tree-ssa-loop-ivopts.c (ivopts_data, decl_rtl_to_reset,
      	n_iv_uses, iv_use, n_iv_cands, iv_cand,
      	tree_ssa_iv_optimize_init, record_use, add_candidate_1,
      	prepare_decl_rtl, free_loop_data,
      	tree_ssa_iv_optimize_finalize): Use the VEC API instead of
      	VARRAY.
      
      From-SVN: r98797
      Kazu Hirata committed
    • Add PR to ChangeLog. · f5b092e3
      From-SVN: r98796
      David Edelsohn committed
    • InetAddress.java: Made all hexadecimal numbers lowercase. · 9d8dadd8
      2005-04-26  Michael Koch  <konqueror@gmx.de>
      
      	* java/net/InetAddress.java: Made all hexadecimal numbers lowercase.
      	Fixed typos in javadocs.
      	(isSiteLocalAddress): Fixed handling of byte values.
      	(isMCLinkLocal): Likewise.
      	* java/net/Inet4Address.java
      	(isMulticastAddress): Call super method.
      	(isLoopbackAddress): Likewise.
      	(isAnyLocalAddress): Likewise.
      	(isLinkLocalAddress): Likewise.
      	(isSiteLocalAddress): Likewise.
      	(isMCGlobal): Likewise.
      	(isMCNodeLocal): Likewise.
      	(isMCLinkLocal): Likewise.
      	(isMCSiteLocal): Likewise.
      	(isMCOrgLocal): Likewise.
      	(getHostAddress): Likewise.
      
      From-SVN: r98795
      Michael Koch committed
    • 2005-04-26 Sven de Marothy <sven@physto.se> · 52b26143
      	* java/net/InetAddress.java
      	(toString): Don't print empty hostnames.
      
      From-SVN: r98793
      Sven de Marothy committed
    • re PR libgcj/21136 ([4.0 only] tryLock waits for the lock, and lock doesn't) · 31f0451e
      2005-04-26  Luca Barbieri  <luca.barbieri@gmail.com>
      
      	PR libgcj/21136:
      	* gnu/java/nio/channels/FileChannelImpl.java (tryLock): Pass
      	'false' to native lock().
      	(lock): Pass 'true' to native lock().
      
      From-SVN: r98792
      Luca Barbieri committed
    • InetAddress.java: Fixed typos in javadocs. · 583db391
      2005-04-26  Michael Koch  <konqueror@gmx.de>
      
      	* java/net/InetAddress.java:
      	Fixed typos in javadocs.
      
      From-SVN: r98791
      Michael Koch committed
    • re PR libgcj/21020 (java.lang.NoSuchFieldError regression from earlier 4.0.0 snapshot) · 88b886f5
      2005-04-26  Andrew Haley  <aph@redhat.com>
      
      	PR libgcj/21020:
      	* jni.cc (_Jv_JNI_GetAnyFieldID): Use class' loader to find
      	field's type.
      
      From-SVN: r98789
      Andrew Haley committed
    • rewind.c (st_rewind): Flush the stream when resetting the mode from WRITING to READING. · 9adcdfb3
              * io/rewind.c (st_rewind): Flush the stream when resetting the mode
              from WRITING to READING.
      
      From-SVN: r98788
      David Edelsohn committed
    • ParserDelegator.java (callBack, gnu): Now package-private. · 2705487a
      	* javax/swing/text/html/parser/ParserDelegator.java (callBack,
      	gnu): Now package-private.
      	* javax/swing/text/html/parser/DocumentParser.java (parser,
      	callBack, gnu): Now package-private.
      	* javax/swing/text/StringContent.java (content, setOffset,
      	checkLocation): Now package-private.
      	* javax/swing/text/JTextComponent.java (doc): Now
      	package-private.
      	* javax/swing/plaf/basic/BasicToolBarUI.java (owner,
      	lastGoodOrientation, origParent, borders, cachedBounds,
      	cachedOrientation, DragWindow): Now package-private.
      	* javax/swing/plaf/basic/BasicTabbedPaneUI.java (incrButton,
      	decrButton, viewport, panel, currentScrollLocation, layoutManager,
      	tabAreaRect, contentRect, createIncreaseButton,
      	createDecreaseButton, findPointForIndex): Now package-private.
      	* javax/swing/plaf/basic/BasicSplitPaneDivider.java
      	(currentDividerLocation, moveDividerTo): Now package-private.
      	* javax/swing/plaf/basic/BasicSliderUI.java (findClosestTick): Now
      	package-private.
      	* javax/swing/plaf/basic/BasicScrollBarUI.java
      	(calculatePreferredSize, valueForYPosition, valueForXPosition):
      	Now package-private.
      	* javax/swing/plaf/basic/BasicPopupMenuUI.java
      	(topWindowListener): Now package-private.
      	* javax/swing/plaf/basic/BasicOptionPaneUI.java (iconSize,
      	OK_STRING, YES_STRING, NO_STRING, CANCEL_STRING): Now constants.
      	(messageAreaContainer, buttonContainer, resetSelectedValue): Now
      	package-private.
      	* javax/swing/plaf/basic/BasicListUI.java (damageLayout): Now
      	package-private.
      	* javax/swing/plaf/basic/BasicInternalFrameTitlePane.java (title):
      	Now package-private.
      	* javax/swing/plaf/basic/BasicDesktopIconUI.java (button): Now
      	package-private.
      	* javax/swing/plaf/basic/BasicComboBoxUI.java (largestItemSize,
      	borderInsets): Now package-private.
      	(arrowButtonWidth): Likewise.  Now a constant.
      	* javax/swing/plaf/basic/BasicColorChooserUI.java (chooser, pane,
      	makeTabs, updatePreviewPanel): Now package-private.
      	* javax/swing/plaf/basic/BasicArrowButton.java (shadow,
      	darkShadow, highlight): Now package-private.
      	* javax/swing/colorchooser/DefaultSwatchChooserPanel.java
      	(addColorToQueue): Now package-private.
      	* javax/swing/colorchooser/DefaultRGBChooserPanel.java
      	(spinnerChange, sliderChange, updateChange, R, G, B, RSpinner,
      	GSpinner, BSpinner): Now package-private.
      	* javax/swing/colorchooser/DefaultHSBChooserPanel.java
      	(gradientImage, trackImage, slider, hRadio, sRadio, bRadio,
      	hSpinner, sSpinner, bSpinner, gradientPoint, internalChange,
      	spinnerTrigger, locked, handlingMouse, updateImage, updateSlider,
      	updateTrack): Now package-private.
      	* javax/swing/TransferHandler.java (clipboard): Now
      	package-private.
      	* javax/swing/ToolTipManager.java (showTip, hideTip): Now
      	package-private.
      	* javax/swing/Timer.java (drainEvents, queueEvent): Now
      	package-private.
      	* javax/swing/RepaintManager.java (globalManager): Now
      	package-private.
      	* javax/swing/JFormattedTextField.java (editValid): Now
      	package-private.
      	* javax/swing/JColorChooser.java (makeModal): Now
      	package-private.
      	* java/awt/geom/GeneralPath.java (rule, types, xpoints, ypoints,
      	index, path): Now package-private.
      	* java/awt/geom/Area.java (solids, holes, cubicCubicIntersect,
      	lineQuadIntersect, lineCubicIntersect, linesIntersect,
      	pointEquals): Now package-private.
      	* java/awt/geom/Arc2D.java (type): Now package-private.
      	* java/awt/Window.java (windowFocusOwner): Now package-private.
      	* java/awt/TextComponent.java (editable, selectionStart,
      	selectionEnd, text, getIndexAtPoint, getCharacterBounds): Now
      	package-private.
      	* java/awt/MenuItem.java (actionCommand, enabled, label): Now
      	package-private.
      	* java/awt/MenuComponent.java (focusListener): Now
      	package-private.
      	* java/awt/Frame.java (state): Now package-private.
      	* java/awt/Choice.java (pItems): Now package-private.
      	* java/awt/Checkbox.java (state): Now package-private.
      	* java/awt/Button.java (actionCommand, label): Now
      	package-private.
      	* gnu/javax/swing/text/html/parser/support/Parser.java
      	(attributes, _handleEndTag_remaining, _handleStartTag): Now
      	package-private.
      	* gnu/java/beans/decoder/PersistenceParser.java (javaHandler): Now
      	package-private.
      	* gnu/java/awt/peer/gtk/GdkGraphics2D.java (paint, stroke, fg, bg,
      	clip, transform, font, comp): Now package-private.
      
      From-SVN: r98786
      Tom Tromey committed
    • Robot.java (waitForIdle): Call invokeAndWait in a static way. · 2500ada2
      	* java/awt/Robot.java (waitForIdle): Call invokeAndWait in a
      	static way.
      
      From-SVN: r98785
      Tom Tromey committed
    • arm.md (thumb_mulsi3): Use two-operand assembly form. · d08e2ccb
      2005-04-26  Paul Brook  <paul@codesourcery.com>
      
      	* config/arm/arm.md (thumb_mulsi3): Use two-operand assembly form.
      
      [[Split portion of a mixed commit.]]
      
      From-SVN: r98783.2
      Paul Brook committed
    • mips.c (mips_legitimize_tls_address): Use gcc_unreachable. · 107a4b41
      	* config/mips/mips.c (mips_legitimize_tls_address): Use
      	gcc_unreachable.
      
      	* config/mmix/mmix.c (mmix_assemble_integer): Use gcc_assert.
      	* config/mmix/crti.asm (_init): Reword comment to avoid 'abort'.
      	* config/mmix/mmix.md (nonlocal_goto_receiver): Likewise.
      
      	* config/sparc/sparc.h (enum reg_class): Reword comment to avoid
      	'abort'.
      
      From-SVN: r98782
      Nathan Sidwell committed
    • tree-flow-inline.h (op_iter_next_must_and_may_def): New. · db30731a
      
      	* tree-flow-inline.h (op_iter_next_must_and_may_def): New.
      	(op_iter_init_must_and_may_def): Likewise.
      	(unmodifiable_var_p): Move to a later point in the file.
      	* tree-ssa-operands.h (FOR_EACH_SSA_MUST_AND_MAY_DEF_OPERAND): New.
      	* tree-ssa-dse.c (need_imm_uses_for): Remove, no longer needed.
      	(dse_record_phis): Directly check for virtual operands rather than
      	using need_imm_uses_for.
      	(dse_optimize_stmt): Handle V_MUST_DEF operands.  Handle case where
      	store has multiple V_{MAY,MUST}_DEF operands.
      
      From-SVN: r98780
      Jeff Law committed
    • ssa-dse-1.c: New test. · 5635785a
      	* gcc.dg/tree-ssa/ssa-dse-1.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-2.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-3.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-4.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-5.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-6.c: New test.
      	* gcc.dg/tree-ssa/ssa-dse-7.c: New test.
      
      From-SVN: r98779
      Jeff Law committed
    • tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt. · b1ca239f
      
      2005-04-26  Andrew MacLeod  <amacleod@redhat.com>
      
      	* tree-cfg.c (bsi_replace): Delink immediate uses for the original stmt.
      
      From-SVN: r98778
      Andrew MacLeod committed
    • tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a call to find_edge… · d0e12fc6
      tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a call to find_edge outside a loop to go through a PHI chain.
      
      	* tree-cfg.c (lv_adjust_loop_header_phi): Speed up moving a
      	call to find_edge outside a loop to go through a PHI chain.
      
      From-SVN: r98776
      Kazu Hirata committed
    • re PR tree-optimization/17598 (an extra addition when comparing address of &a->b and &c->b.) · 70a390bb
      2004-04-26  Richard Guenther  <rguenth@gcc.gnu.org>
      
      	PR tree-optimization/17598
      	* fold-const.c (fold_binary): Fold comparisons of addresses
      	of COMPONENT_REFs which reference the same field to
      	comparisons of the addresses of the base objects.
      
      	* gcc.dg/tree-ssa/pr17598.c: New testcase.
      
      From-SVN: r98775
      Richard Guenther committed
    • arm.c (arm_return_in_msb): New function. · 866af8a9
      	* config/arm/arm.c (arm_return_in_msb): New function.
      	(arm_must_pass_in_stack): New function.
      	(TARGET_RETURN_IN_MSB): Define target hook.
      	(TARGET_MUST_PASS_IN_STACK): Define target hook.
      	(arm_function_value): Pad small aggregate return.
      	(arm_pad_arg_upward): New function.
      	(arm_pad_reg_upward): New function.
      	* config/arm/arm.h (PROMOTE_FUNCTION_MODE): Include complex values.
      	(FUNCTION_ARG_PADDING): Define macro.
      	(BLOCK_REG_PADDING): Define macro.
      	(PAD_VARARGS_DOWN): Correct padding for AAPCS.
      	* config/arm/arm-protos.h (arm_pad_arg_upward): Declare function.
      	(arm_pad_reg_upward): Declare function.
      
      From-SVN: r98774
      Julian Brown committed
    • re PR libstdc++/21131 (Mismatch in comments for m4 config macros in libstdc++) · 747d0b96
      2005-04-26  Jones Desougi  <jones@ingate.com>
      
      	PR libstdc++/21131
      	* linkage.m4: Fix comments.
      
      From-SVN: r98771
      Jones Desougi committed
    • re PR tree-optimization/21047 (ASSERT_EXPR handling in fold never triggers.) · cb4819f0
      	PR tree-optimization/21047
      	* fold-const.c (fold_binary): Abort on ASSERT_EXPR.
      	(fold): Don't handle ASSERT_EXPR.
      
      From-SVN: r98770
      Kazu Hirata committed
    • basic-block.h (ei_cond): New. · f3522a84
      	* basic-block.h (ei_cond): New.
      	(FOR_EACH_EDGE): Call ei_cond.
      
      From-SVN: r98769
      Kazu Hirata committed
    • re PR libstdc++/21209 (signed integer overflow in num_get<>::_M_extract_int) · 44ecf603
      2005-04-26  Paolo Carlini  <pcarlini@suse.de>
      
      	PR libstdc++/21209
      	* include/bits/locale_facets.tcc (_M_extract_int): Avoid signed
      	integer overflow, always use a suited unsigned type in the main
      	parsing loop.
      	(struct __to_unsigned_type): New.
      	* testsuite/22_locale/num_get/get/char/16.cc: New.
      	* testsuite/22_locale/num_get/get/wchar_t/16.cc: Likewise.
      
      From-SVN: r98768
      Paolo Carlini committed
    • URL.java (URL(URL,String,URLStreamHandler)): Add spec to MalformedURLException. · c5796266
      2005-04-26  Mark Wielaard  <mark@klomp.org>
      
      	* java/net/URL.java (URL(URL,String,URLStreamHandler)): Add spec
      	to MalformedURLException.
      
      From-SVN: r98767
      Mark Wielaard committed
    • AccessControlContext.java: Reformated. · bb07973c
      2005-04-26  Michael Koch  <konqueror@gmx.de>
      
      	* java/security/AccessControlContext.java:
      	Reformated.
      	(protectedDomains): Renamed from 'protectionDomain'.
      	* java/security/AccessController.java:
      	Reformatted.
      
      From-SVN: r98766
      Michael Koch committed
    • 2005-04-26 Jeroen Frijters <jeroen@frijters.net> · 6f3a3283
      	* gnu/java/security/action/GetSecurityPropertyAction.java
      	(GetSecurityPropertyAction): Implement PrivilegedAction instead
      	of extending GetPropertyAction.
      	(name): New field.
      	(value): Likewise.
      	(setParamters): New methods.
      	(GetSecurityPropertyAction): Use new setParameters methods.
      
      From-SVN: r98765
      Jeroen Frijters committed
    • Security.java, [...]: Modified to use SystemProperties. · a79f940a
      2005-04-26  Jeroen Frijters  <jeroen@frijters.net>
      
      	* java/security/Security.java,
      	java/security/cert/X509CRLSelector.java,
      	java/security/cert/X509CertSelector.java:
      	Modified to use SystemProperties.
      
      From-SVN: r98764
      Jeroen Frijters committed
    • 2005-04-26 Michael Koch <konqueror@gmx.de> · 57fc4832
      	* java/lang/System.java
      	(setSecurityManager): Fixed comment.
      	(getSecurityManager): Removed obsolete comment.
      
      From-SVN: r98763
      Michael Koch committed
    • sched-deps.c (sched_analyze_1): On STACK_REGS targets... · c3bdeea8
      
      	* sched-deps.c (sched_analyze_1): On STACK_REGS targets, x87, treat
      	all writes to any stack register as a read/write dependency on
      	FIRST_STACK_REG.
      	(sched_analyze_2): Likewise, for reads from any stack register.
      
      From-SVN: r98762
      Roger Sayle committed
    • darwin.c (darwin_encode_section_info): Always set MACHO_SYMBOL_STATIC for all !… · d6ff8575
      darwin.c (darwin_encode_section_info): Always set MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
      
              * config/darwin.c (darwin_encode_section_info): Always set
              MACHO_SYMBOL_STATIC for all ! TREE_PUBLIC symbols.
      
      
              * objc.dg/fix-and-continue-1.m: Add.
      
      From-SVN: r98755
      Mike Stump committed
    • collect2.c, [...]: Replace calls to `unlock_stream' with `unlock_std_streams'. · 2653bb0c
      	* collect2.c, gcc.c, gcov-dump.c, gcov.c, gen-protos.c,
      	gensupport.c, protoize.c, toplev.c: Replace calls to
      	`unlock_stream' with `unlock_std_streams'.
      
      java:
      	* gjavah.c, jcf-dump.c, jv-scan.c, jvgenmain.c: Replace calls
      	to `unlock_stream' with `unlock_std_streams'.
      
      From-SVN: r98753
      Kaveh R. Ghazi committed
    • * java/awt/AWTKeyStroke.java (vktable): Now package-private. · 3e591bd2
      From-SVN: r98752
      Tom Tromey committed
    • Daily bump. · 0d767acf
      [[Split portion of a mixed commit.]]
      
      From-SVN: r98749.2
      GCC Administrator committed