1. 31 May, 2004 15 commits
  2. 30 May, 2004 25 commits
    • c-decl.c (c_expand_body_1): Remove and fold back into ... · 3c79fa86
      ChangeLog:
      	* c-decl.c (c_expand_body_1): Remove and fold back into ...
      	(c_expand_body): here.
      	(c_expand_decl): Move to ...
      	* c-common.c (c_expand_decl): Here and remove check for nested
      	functions.
      	* c-common.h (c_expand_decl): Add prototype.
      	* c-tree.h (c_expand_decl): Remove.
      
      cp/ChangeLog:
      	* cp-lang.c (cp_expand_decl): Remove.
      	(LANG_HOOKS_EXPAND_DECL): Use c_expand_decl.
      
      From-SVN: r82469
      Andrew Pinski committed
    • fold-const.c (combine_comparisons, [...]): Use constant_boolean_node where appropriate. · 1b0f3e79
      
      	* fold-const.c (combine_comparisons, optimize_bit_field_compare,
      	range_binop, fold_truthop, fold_binary_op_with_conditional_arg,
      	fold_mathfn_compare, fold_inf_compare, fold,
      	fold_relational_hi_lo, nondestructive_fold_binary_to_constant):
      	Use constant_boolean_node where appropriate.  Don't bother using
      	fold_convert on the second argument to omit_one_operand.
      
      From-SVN: r82468
      Roger Sayle committed
    • c-tree.texi (Expressions): Document FLOOR_DIV_EXPR... · 29d64660
      
      	* doc/c-tree.texi (Expressions): Document FLOOR_DIV_EXPR,
      	CEIL_DIV_EXPR, ROUND_DIV_EXPR, FLOOR_MOD_EXPR, CEIL_MOD_EXPR,
      	ROUND_MOD_EXPR, EXACT_DIV_EXPR.  Improve documentation of
      	TRUNC_DIV_EXPR, TRUNC_MOD_EXPR and comparison operations.
      	Add missing (but documented) tree nodes to the index.
      
      From-SVN: r82467
      Roger Sayle committed
    • re PR libfortran/11800 ([gfortan] libgfortran should be multi-libed) · 96b8a615
      	PR gfortran/11800
      	* Makefile.am (AM_CPPFLAGS): Renamed from INCLUDES.
      	(lib_LTLIBRARIES): Rename to ...
      	(toolexeclib_LTLIBRARIES): this for multilib support.
      	* configure.in: Rename to ...
      	* configure.ac: this.  Update to modern autoconf style, enable
      	multilibs, support --enable-version-specific-runtime-libs.
      	* Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* aclocal.m4: Regenerated.
      
      From-SVN: r82466
      Andreas Jaeger committed
    • config-ml.in: Pass FFLAGS and ADAFLAGS for multilibs, handle F77 like CC. · 78dd5e36
      	* config-ml.in: Pass FFLAGS and ADAFLAGS for multilibs, handle F77
      	like CC.
      
      Co-Authored-By: James E Wilson <wilson@specifixinc.com>
      
      From-SVN: r82465
      Andreas Jaeger committed
    • re PR tree-optimization/14819 ([tree-ssa] strchr is not folded at tree-level) · b3dd9f35
      	PR tree-optimization/14819
      	* builtins.c (fold_builtin_strchr): New.
      	(fold_builtin_1): Handle BUILT_IN_STRCHR and BUILT_IN_STRRCHR
      	with fold_builtin_strchr().
      
      From-SVN: r82464
      Steven Bosscher committed
    • bb-reorder.c, [...]: Fix comment formatting. · 9cf737f8
      	* bb-reorder.c, builtins.c, c-common.c, c-gimplify.c,
      	c-incpath.c, cgraphunit.c, ddg.c, defaults.h, dwarf2out.c,
      	expmed.c, flags.h, gcc.c, gensupport.c, gimplify.c, global.c,
      	passes.c, reg-stack.c, target.h, toplev.c, tree-alias-ander.c,
      	tree-alias-common.c, tree-cfg.c, tree-complex.c, tree-dfa.c,
      	tree-eh.c, tree-mudflap.c, tree-mudflap.h, tree-outof-ssa.c,
      	tree-phinodes.c, tree-pretty-print.c, tree-ssa-alias.c,
      	tree-ssa-ccp.c, tree-ssa-live.c, tree-ssa-live.h,
      	tree-ssa-pre.c, tree.h, value-prof.h, varasm.c: Fix comment
      	formatting.
      
      From-SVN: r82463
      Kazu Hirata committed
    • gimplify.c (sort_case_labels): New. · 0f1f6967
      	* gimplify.c (sort_case_labels): New.  Split out from...
      	(gimplify_switch_expr): ...here.  Use it.
      	* tree-eh.c (lower_try_finally_switch): Sort the labels of
      	the SWITCH_EXPR created here before leaving the function.
      	* tree.c (sort_case_labels): Add prototype.
      
      From-SVN: r82462
      Steven Bosscher committed
    • * lang-specs.h: Add missing initializers for .ii. · bd0a5aab
      From-SVN: r82461
      Andreas Jaeger committed
    • target-supports.exp (check_iconv_available): Fix fallout from 2004-05-28 patch. · 0fb4f4b8
      
      	* lib/target-supports.exp (check_iconv_available): Fix fallout
      	from 2004-05-28 patch.
      
      From-SVN: r82460
      Graham Stott committed
    • re PR fortran/14067 (no warning when character data statement overflows declared size) · 94716287
      PR fortran/14067
      * trans-const.c (gfc_conv_string_init): Allow variable string
      length lower than initialization string length.
      
      From-SVN: r82457
      Tobias Schlüter committed
    • fold-const.c (fold): Make sure the type is of BOOLEAN_TYPE. · d22b7e14
      2004-05-30  Andrew Pinski  <pinskia@physics.uc.edu>
      
              * fold-const.c (fold) [case TRUTH_NOT_EXPR]: Make sure the type is
              of BOOLEAN_TYPE.
      
      From-SVN: r82456
      Andrew Pinski committed
    • std_complex.h (complex<_Tp>): Properly indent to follow C++STYLE. · a4ddde0d
      	* include/std/std_complex.h (complex<_Tp>): Properly indent
      	to follow C++STYLE.
      	(complex<>::__rep): New.
      	(__complex_abs): New.  Dispatch to built-ins.
      	(abs): Use them.
      	(__complex_arg): New. Dispatch to built-ins.
      	(arg): Use it.
      	(__complex_cos): New. Dispatch to built-ins.
      	(cos): Use it.
      	(__complex_cosh): New. Dispatch to built-ins.
      	(cosh): Use it.
      	(__complex_exp): New. Dispatch to built-ins.
      	(exp): Use it.
      	(__complex_log): New. Dispatch to built-ins.
      	(log): Use it.
      	(__complex_sin): New. Dispatch to built-ins.
      	(sin): Use it.
      	(__complex_sinh): New. Dispatch to built-ins.
      	(sinh): Use it.
      	(__complex_sqrt): New. Dispatch to built-ins.
      	(sqrt): Use it.
      	(__complex_tan): New. Dispatch to built-ins.
      	(tan): Use it.
      	(__complex_tanh): New. Dispatch to built-ins.
      	(tanh): Use it.
      	(__complex_pow): New. Dispatch to built-ins.
      	(pow): Use it.
      
      From-SVN: r82453
      Gabriel Dos Reis committed
    • re PR fortran/15620 (Statement functions and optimization cause IC) · 7b5b57b7
      	PR fortran/15620
      	* trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
      	* trans-expr.c (gfc_trans_string_copy): New function.
      	(gfc_conv_statement_function): Use them.  Create temp vars.  Enforce
      	character lengths.
      	(gfc_conv_string_parameter): Use gfc_trans_string_copy.
      	* trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
      	* trans.h (struct gfc_saved_var): Define.
      	(gfc_shadow_sym, gfc_restore_sym): Add prototypes.
      testsuite/
      	* gfortran.fortran-torture/execute/st_function_1.f90: New test.
      	* gfortran.fortran-torture/execute/st_function_2.f90: New test.
      
      From-SVN: r82452
      Paul Brook committed
    • Toolkit.java (loadSystemColors): Implement. · 7a70d70c
      2004-05-30  Mark Wielaard  <mark@klomp.org>
      
      	* java/awt/Toolkit.java (loadSystemColors): Implement.
      
      From-SVN: r82451
      Mark Wielaard committed
    • System.java: Reordered imports. · 071917b0
      2004-05-30  Michael Koch  <konqueror@gmx.de>
      
      	* java/lang/System.java: Reordered imports.
      
      From-SVN: r82450
      Michael Koch committed
    • 2004-05-30 Michael Koch <konqueror@gmx.de> · 289f9db7
      	* java/text/DecimalFormat.java
      	(parse): Fixed parsing of decimal strings. Number of maximum
      	digits to be read should now work.
      	* java/text/SimpleDateFormat.java
      	(SimpleDateFormat): Set maximumFractionDigit to 0 for the number
      	formatter. This fixes DateFormatTest.
      
      From-SVN: r82449
      Michael Koch committed
    • 2004-05-30 Michael Koch <konqueror@gmx.de> · 1b2545bc
      	* java/nio/Buffer.java
      	(limit): Fixed off by one error.
      	* java/nio/CharBuffer.java
      	(wrap): Fixed arguments, added javadocs.
      
      From-SVN: r82448
      Michael Koch committed
    • BeanInfoEmbryo.java, [...]: Rename enum to e because enum is a keyword in Java 1.5. · 74c2dbf7
      2004-05-30  Michael Koch  <konqueror@gmx.de>
      
      	* gnu/java/beans/BeanInfoEmbryo.java,
      	java/awt/im/InputContext.java,
      	javax/swing/tree/DefaultMutableTreeNode.java:
      	Rename enum to e because enum is a keyword in Java 1.5.
      
      From-SVN: r82447
      Michael Koch committed
    • MPN.java, Arc2D.java: Fixed javadocs all over. · 27d14326
      2004-05-30  Michael Koch  <konqueror@gmx.de>
      
      	* gnu/java/math/MPN.java,
      	java/awt/geom/Arc2D.java:
      	Fixed javadocs all over.
      
      From-SVN: r82446
      Michael Koch committed
    • 2004-05-30 Michael Koch <konqueror@gmx.de> · 933592af
      	* java/awt/DefaultKeyboardFocusManager.java
      	(dispatchEvent): Call method to get key event dispatchers.
      	(dispatchKeyEvent): Call method to get key event post processors.
      	* javax/swing/JComponent.java
      	(listenerList): Made protected.
      	* javax/swing/JOptionPane.java
      	(message): Don't initialize.
      	(JOptionPane): Set message text.
      	* javax/swing/JPopupMenu.java
      	(show): Fixed typo in argument name.
      	* javax/swing/RepaintManager.java
      	(paintDirtyRegions): Use public API of java.util.Map.
      	* javax/swing/plaf/basic/BasicSplitPaneDivider.java
      	(positionForMouseEvent): Removed redundant ';'.
      	(continueDrag): Use method arguments.
      
      From-SVN: r82445
      Michael Koch committed
    • iresolve.c (gfc_resolve_random_number): Clean up conditional. · 5f251c26
      	* iresolve.c (gfc_resolve_random_number): Clean up conditional.
      libgfortran/
      	* libgfortran.h (random_seed): Update prototype.
      	* intrinsics/random.c: Disable old implementation and add new one.
      testsuite/
      	* gfortran.fortran-torture/execute/random_1.f90: New test.
      
      From-SVN: r82443
      Steven G. Kargl committed
    • random.c: Include unistd.h for close and read prototypes... · ebeb17c7
      	* intrinsics/random.c: Include unistd.h for close and read
      	prototypes, remove unneeded inclusion of assert.h.
      
      	* intrinsics/abort.c: Include stdlib.h for abort prototype, remove
      	unneeded inclusion of assert.h.
      
      From-SVN: r82442
      Andreas Jaeger committed
    • c-common.c, [...]: Fix comment typos. · 1ea7e6ad
      	* c-common.c, calls.c, cfgcleanup.c, cgraph.c, cgraphunit.c,
      	ddg.c, ddg.h, df.c, df.h, except.c, expr.c, flags.h,
      	fold-const.c, gcc.c, gimplify.c, haifa-sched.c,
      	modulo-sched.c, tree-inline.c, tree-into-ssa.c, tree-nested.c,
      	tree-nrv.c, tree-ssa-ccp.c, tree-ssa-dom.c, tree-ssa-live.c,
      	tree-ssa-loop.c, tree-ssa-pre.c, tree-tailcall.c, tree.h: Fix
      	comment typos.  Follow spelling conventions.
      
      From-SVN: r82439
      Kazu Hirata committed
    • Index: libcpp/ChangeLog · b453c95f
      2004-05-29  Geoffrey Keating  <geoffk@apple.com>
      
      	* symtab.c (ht_create): Set entries_owned.
      	(ht_destroy): Honour entries_owned.
      	(ht_expand): Likewise.
      	(ht_load): New.
      
      Index: libcpp/include/ChangeLog
      2004-05-29  Geoffrey Keating  <geoffk@apple.com>
      
      	* symtab.h (struct ht): New field 'entries_owned'
      	(ht_load): New prototype.
      
      Index: gcc/ChangeLog
      2004-05-29  Geoffrey Keating  <geoffk@apple.com>
      
      	* gengtype-yacc.y: Add NESTED_PTR token.
      	(option): Record `nested_ptr' option.
      	* gengtype-lex.l: Handle `nested_ptr' keyword.
      	* gengtype.c (walk_type): Process `nested_ptr' option.
      	* gengtype.h (struct nested_ptr_data): New.
      	* doc/gty.texi (GTY Options): Document `nested_ptr' option.
      	* stringpool.c (struct string_pool_data): Make 'entries' point to
      	ht_identifier instead of tree.
      	(gt_pch_save_stringpool): Don't adjust pointers.
      	(gt_pch_restore_stringpool): Call ht_load.
      
      From-SVN: r82438
      Geoffrey Keating committed