Commit Graph

58596 Commits

Author SHA1 Message Date
Eric Botcazou
d3157fb66d sol2.h (__enable_execute_stack): ANSIfy function definition.
* config/sol2.h (__enable_execute_stack): ANSIfy function
	definition.

From-SVN: r82487
2004-05-31 15:15:08 +00:00
Eric Botcazou
6661a85ff7 parser.c (cp_parser_simple_type_specifier): Explicitly test against NULL_TREE.
* parser.c (cp_parser_simple_type_specifier): Explicitly test
	against NULL_TREE.

From-SVN: r82486
2004-05-31 14:59:00 +00:00
Bryce McKinlay
1aae9cdcf2 jcf-write.c (generate_bytecode_conditional): Correct handling of unordered conditionals.
* jcf-write.c (generate_bytecode_conditional): Correct handling
	of unordered conditionals. Add comment.

From-SVN: r82485
2004-05-31 15:54:37 +01:00
Danny Smith
b47785f4ab * pex-win32.c (fix_argv): Expand comment.
From-SVN: r82482
2004-05-31 10:32:58 +00:00
Danny Smith
421563d59a c-incpath.c (add_path): Canonicalize paths to use '/' if HAVE_DOS_BASED_FILESYSTEM.
* c-incpath.c (add_path): Canonicalize paths to use '/' if
	HAVE_DOS_BASED_FILESYSTEM.

From-SVN: r82481
2004-05-31 10:30:00 +00:00
Steven Bosscher
1c052514f6 tree-ssa-dom.c (record_equivalences_from_incoming_edge): Only look at case labels if the immediate dominator is also the only predecessor.
* tree-ssa-dom.c (record_equivalences_from_incoming_edge):
	Only look at case labels if the immediate dominator is also
	the only predecessor.  Don't look for more case labels if the
	first seen is a case range.

From-SVN: r82480
2004-05-31 10:18:36 +00:00
Michael Koch
58128b9da1 SequenceInputStream.java: Rename enum to e because enum is a keyword in Java 1.5.
2004-05-31  Michael Koch  <konqueror@gmx.de>

	* java/io/SequenceInputStream.java:
	Rename enum to e because enum is a keyword in Java 1.5.

From-SVN: r82479
2004-05-31 09:23:05 +00:00
Michael Koch
771b9ca31f CompilerProcess.java: Fixed javadoc to by XHTML compliant.
2004-05-31  Michael Koch  <konqueror@gmx.de>

	* gnu/java/rmi/rmic/CompilerProcess.java:
	Fixed javadoc to by XHTML compliant.

From-SVN: r82478
2004-05-31 09:17:33 +00:00
Kazu Hirata
e784e64956 * builtins.c: Add a prototype for fold_builtin_strchr().
From-SVN: r82477
2004-05-31 09:13:33 +00:00
Kazu Hirata
324f9dfb93 call.c, [...]: Fix comment formatting.
* call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c,
	typeck.c: Fix comment formatting.

From-SVN: r82476
2004-05-31 08:42:32 +00:00
Paolo Bonzini
1999435c8a revert: combine.c (gen_binary): Remove.
2004-05-31  Paolo Bonzini  <bonzini@gnu.org>

	Revert this patch:
	2004-05-27  Paolo Bonzini  <bonzini@gnu.org>

	* combine.c (gen_binary): Remove.
	(known_cond, simplify_shift_const
	find_split_point, combine_simplify_rtx,
	simplify_if_then_else, simplify_set,
	simplify_logical, expand_field_assignment,
	extract_left_shift, force_to_mode,
	if_then_else_cond, apply_distributive_law,
	simplify_and_const_int, simplify_shift_const,
	gen_lowpart_for_combine, simplify_comparison,
	reversed_comparison): Replace with
	simplify_gen_binary, simplify_gen_relational or
	distribute_and_simplify_rtx.
	(distribute_and_simplify_rtx): New function.

From-SVN: r82475
2004-05-31 06:59:47 +00:00
John David Anglin
97509a89b1 pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands when generating PIC code.
* pa.c (emit_move_sequence): Fix loading of non 14-bit CONST operands
	when generating PIC code.

From-SVN: r82474
2004-05-31 02:07:40 +00:00
GCC Administrator
d1eea9c043 Daily bump.
From-SVN: r82472
2004-05-31 00:16:13 +00:00
Andrew Pinski
3c79fa86db c-decl.c (c_expand_body_1): Remove and fold back into ...
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
2004-05-30 16:53:32 -07:00
Roger Sayle
1b0f3e79b1 fold-const.c (combine_comparisons, [...]): Use constant_boolean_node where appropriate.
* 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
2004-05-30 22:23:19 +00:00
Roger Sayle
29d64660c7 c-tree.texi (Expressions): Document FLOOR_DIV_EXPR...
* 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
2004-05-30 22:20:07 +00:00
Andreas Jaeger
96b8a6154e re PR libfortran/11800 ([gfortan] libgfortran should be multi-libed)
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
2004-05-30 23:58:10 +02:00
Andreas Jaeger
78dd5e36d9 config-ml.in: Pass FFLAGS and ADAFLAGS for multilibs, handle F77 like CC.
* 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
2004-05-30 23:54:22 +02:00
Steven Bosscher
b3dd9f3535 re PR tree-optimization/14819 ([tree-ssa] strchr is not folded at tree-level)
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
2004-05-30 21:05:20 +00:00
Kazu Hirata
9cf737f89f bb-reorder.c, [...]: Fix comment formatting.
* 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
2004-05-30 18:32:31 +00:00
Steven Bosscher
0f1f6967a2 gimplify.c (sort_case_labels): New.
* 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
2004-05-30 18:19:18 +00:00
Andreas Jaeger
bd0a5aab91 * lang-specs.h: Add missing initializers for .ii.
From-SVN: r82461
2004-05-30 20:04:30 +02:00
Graham Stott
0fb4f4b86a target-supports.exp (check_iconv_available): Fix fallout from 2004-05-28 patch.
* lib/target-supports.exp (check_iconv_available): Fix fallout
	from 2004-05-28 patch.

From-SVN: r82460
2004-05-30 17:51:46 +00:00
Tobias Schlüter
9471628798 re PR fortran/14067 (no warning when character data statement overflows declared size)
PR fortran/14067
* trans-const.c (gfc_conv_string_init): Allow variable string
length lower than initialization string length.

From-SVN: r82457
2004-05-30 18:33:28 +02:00
Andrew Pinski
d22b7e1406 fold-const.c (fold): Make sure the type is of BOOLEAN_TYPE.
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
2004-05-30 09:18:59 -07:00
Gabriel Dos Reis
a4ddde0dee std_complex.h (complex<_Tp>): Properly indent to follow C++STYLE.
* 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
2004-05-30 14:41:39 +00:00
Paul Brook
7b5b57b7dc re PR fortran/15620 (Statement functions and optimization cause IC)
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
2004-05-30 14:37:25 +00:00
Mark Wielaard
7a70d70c54 Toolkit.java (loadSystemColors): Implement.
2004-05-30  Mark Wielaard  <mark@klomp.org>

	* java/awt/Toolkit.java (loadSystemColors): Implement.

From-SVN: r82451
2004-05-30 13:53:58 +00:00
Michael Koch
071917b066 System.java: Reordered imports.
2004-05-30  Michael Koch  <konqueror@gmx.de>

	* java/lang/System.java: Reordered imports.

From-SVN: r82450
2004-05-30 13:48:03 +00:00
Michael Koch
289f9db7db 2004-05-30 Michael Koch <konqueror@gmx.de>
* 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
2004-05-30 13:42:24 +00:00
Michael Koch
1b2545bcf2 2004-05-30 Michael Koch <konqueror@gmx.de>
* java/nio/Buffer.java
	(limit): Fixed off by one error.
	* java/nio/CharBuffer.java
	(wrap): Fixed arguments, added javadocs.

From-SVN: r82448
2004-05-30 13:38:20 +00:00
Michael Koch
74c2dbf7a1 BeanInfoEmbryo.java, [...]: Rename enum to e because enum is a keyword in Java 1.5.
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
2004-05-30 13:35:15 +00:00
Michael Koch
27d14326c7 MPN.java, Arc2D.java: Fixed javadocs all over.
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
2004-05-30 13:31:33 +00:00
Michael Koch
933592af79 2004-05-30 Michael Koch <konqueror@gmx.de>
* 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
2004-05-30 13:16:34 +00:00
Steven G. Kargl
5f251c2603 iresolve.c (gfc_resolve_random_number): Clean up conditional.
* 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
2004-05-30 10:49:50 +00:00
Andreas Jaeger
ebeb17c7bb random.c: Include unistd.h for close and read prototypes...
* 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
2004-05-30 11:53:10 +02:00
Kazu Hirata
1ea7e6ad84 c-common.c, [...]: Fix comment typos.
* 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
2004-05-30 07:12:58 +00:00
Geoffrey Keating
b453c95fd3 Index: libcpp/ChangeLog
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
2004-05-30 00:49:06 +00:00
GCC Administrator
666e5d7b94 Daily bump.
From-SVN: r82436
2004-05-30 00:16:13 +00:00
Jason Merrill
be00f578ec gimplify.c (gimplify_expr): Don't build a statement list if no gimplification was necessary.
* gimplify.c (gimplify_expr): Don't build a statement list
        if no gimplification was necessary.

From-SVN: r82429
2004-05-29 16:24:37 -04:00
Joseph Myers
ca09cd34f1 pretty-print.c (pp_base_format_text): Support %< instead of %` and %> as well as %'.
* pretty-print.c (pp_base_format_text): Support %< instead of %`
	and %> as well as %'.
	* c-format.c: Use %< and %>.
	(gcc_diag_char_table, gcc_cdiag_char_table,
	gcc_cxxdiag_char_table): Update.

From-SVN: r82428
2004-05-29 21:10:10 +01:00
Andrew Pinski
9e953fed92 gcc_update (libbanshee/configure): Depend on libbanshee/configure.ac instead of libbanshee/configure.in
2004-05-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * gcc_update (libbanshee/configure): Depend on
        libbanshee/configure.ac instead of libbanshee/configure.in

From-SVN: r82427
2004-05-29 12:51:26 -07:00
Joseph Myers
5305f6d718 * c-typeck.c (common_type): Correct comment.
From-SVN: r82426
2004-05-29 19:40:27 +01:00
Kelley Cook
50796c52d9 configure.in: Rename to ...
2004-05-28  Kelley Cook  <kcook@gcc.gnu.org>

	* configure.in: Rename to ...
	* configure.ac: this.  Update to modern autoconf style.
	Correct AC_INIT macro with the actual package name.
	Replace gcc_AC_HEADER_STDBOOL and GCC_AC_C__BOOL with AC_HEADER_STDBOOL.
	* acinclude.m4, stamp.h-in: Delete.
	* config.h, configure: Regenerate with autoconf 2.59.
	* aclocal.m4, Makefile.in: Regenerate with automake 1.7.9.
	* engine/Makefile.in: Likewise.
	* libcompat/Makefile.in: Likewise.
	* points-to/Makefile.in: Likewise.

From-SVN: r82425
2004-05-29 17:46:24 +00:00
Bernardo Innocenti
72edf1464d Fix typo in previous patch.
From-SVN: r82422
2004-05-29 17:22:39 +02:00
Peter Barada
28bad6d14d m68k.c (CONST_METHOD): Add MVZ, MVS.
* config/m68k/m68k.c (CONST_METHOD): Add MVZ, MVS.
	* config/m68k/m68k.c (const_method): Likewise.
	* config/m68k/m68k.c (const_int_cost): Likewise.
	* config/m68k/m68k.c (const_int_cost): Likewise.
	* config/m68k/m68k.c (output_move_const_into_data_reg): Likewise.

From-SVN: r82421
2004-05-29 17:17:50 +02:00
Peter Barada
d1fe6168c0 m68k.h (EXTRA_CONSTRAINT): add 'U' for register offset addressing.
* config/m68k/m68k.h(EXTRA_CONSTRAINT): add 'U' for register offset
	addressing.
	* config/m68k/m68k.md: Add 'U,U' alternative to ColdFire variants of
	movsi,movhi,movqi insn patterns.

From-SVN: r82420
2004-05-29 17:10:41 +02:00
Richard B. Kreckel
803cb0b5c9 re PR libstdc++/14600 (__gnu_cxx::stdio_sync_filebuf should expose internal FILE*)
2004-05-29  Richard B. Kreckel  <Richard.Kreckel@Framatome-ANP.com>
            Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/14600
	* include/ext/stdio_sync_filebuf.h (stdio_sync_filebuf::file): New.
	* include/ext/stdio_filebuf.h (stdio_filebuf::file): New.
	* config/io/basic_file_stdio.cc (__basic_file::file): New.
	* config/io/basic_file_stdio.h: Define.

Co-Authored-By: Benjamin Kosnik <bkoz@redhat.com>

From-SVN: r82419
2004-05-29 14:40:59 +00:00
Steven G. Kargl
e73c80ae86 * simplify.c (gfc_simplify_log): Remove useless line of code.
From-SVN: r82418
2004-05-29 11:33:30 +00:00
Ranjit Mathew
5ba9535490 jacks.xfail: Update for post tree-ssa merge results.
* testsuite/libjava.jacks/jacks.xfail: Update for post tree-ssa merge
	results.

From-SVN: r82417
2004-05-29 05:13:57 +00:00