Commit Graph

58573 Commits

Author SHA1 Message Date
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
Ranjit Mathew
edf74484b2 java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a local variable was initialised upon declaration.
* java-tree.h (DECL_LOCAL_FINAL_IUD): New macro to test if a
	local variable was initialised upon declaration.
	* parse.y (declare_local_variables): Set DECL_LOCAL_FINAL_IUD if
	variable was final and initialised upon declaration.
	* check-init.c (check_final_reassigned): Give error only if a blank
	final is not definitely unassigned or if an initialised final is
	reassigned.
	(check_bool_init): Respect JLS2 16.1.7 requirements for boolean
	assignment expressions. Remove case MODIFY_EXPR, label do_default.
	(check_init): Perform initialised-variable-removing-optimisation
	only on non-final local variables.

Co-Authored-By: Per Bothner <per@bothner.com>

From-SVN: r82416
2004-05-29 05:11:41 +00:00
Andrew Pinski
27e1a8d2ee c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.
2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        * c-semantics.c (emit_local_var): Remove code for DECL_INITIAL.

From-SVN: r82415
2004-05-28 20:51:05 -07:00
Andrew Pinski
f935f97b9f re PR target/15720 (function marked inline which is called directly isn't emitted)
2005-05-28  Andrew Pinski  <pinskia@physics.uc.edu>

        PR target/15720
        * config/darwin.c (machopic_indirect_call_target): Copy
        the SYMBOL_REF_DECL from the original RTX for the new
        stub RTX.

From-SVN: r82414
2004-05-28 19:55:23 -07:00
Ziemowit Laski
b63e5497f3 altivec-10.C: New test.
[gcc/testsuite/ChangeLog]
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

        * g++.dg/ext/altivec-10.C: New test.

From-SVN: r82413
2004-05-29 01:50:59 +00:00
Paul Brook
f659a11ff2 Typo in last patch.
From-SVN: r82412
2004-05-29 01:24:15 +00:00
Paul Brook
353c3b7e16 trans-common.c (find_equivalence): Find multiple rules.
* trans-common.c (find_equivalence): Find multiple rules.
testsuite/
	* gfortran.fortran-torture/execute/equiv_1.f90: New test.

From-SVN: r82411
2004-05-29 01:21:51 +00:00
GCC Administrator
b1243dd57b Daily bump.
From-SVN: r82407
2004-05-29 00:16:16 +00:00
Bryce McKinlay
70c39ccb6a Fix formatting.
From-SVN: r82404
2004-05-29 01:04:32 +01:00
Bryce McKinlay
138c4fd484 jcf-write.c (generate_bytecode_conditional): Handle binops UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
* jcf-write.c (generate_bytecode_conditional): Handle binops
	UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
	(generate_bytecode_insns): Likewise.

From-SVN: r82402
2004-05-29 00:59:49 +01:00
Mark Mitchell
b3dd05b10a re PR c++/15471 (Incorrect member pointer offsets in anonymous structs/unions)
PR c++/15471
	* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
	when determining the scope to use for a pointer to member.
	(lookup_anon_field): Give it external linkage.
	* cp-tree.h (lookup_anon_field): Declare it.
	* expr.c (cplus_expand_constant): Use it.

From-SVN: r82401
2004-05-28 23:34:39 +00:00
DJ Delorie
5182fafe48 * stor-layout.c (place_field): Revert erroneous commit.
From-SVN: r82398
2004-05-28 19:12:14 -04:00
Ziemowit Laski
690c364e3e altivec-16.c: New test.
[gcc/testsuite/ChangeLog]
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

        * gcc.dg/altivec-16.c: New test.

From-SVN: r82396
2004-05-28 23:08:58 +00:00
Mark Mitchell
c1cca8d4eb re PR c++/15083 (spurious "statement has no effect" warning)
PR c++/15083
	* decl2.c (delete_sanity): Set TREE_SIDE_EFFECTS on a DELETE_EXPR,
	even in a templat.e
	* init.c (build_new): Likewise.

	PR c++/15640
	* name-lookup.c (arg_assoc): Robustify.

	PR c++/15471
	* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
	when determining the scope to use for a pointer to member.

	PR c++/15083
	* g++.dg/warn/noeffect5.C: New test.

	PR c++/15471
	* g++.dg/expr/ptrmem4.C: New test.

	PR c++/15640
	* g++.dg/template/operator3.C: New test.

From-SVN: r82391
2004-05-28 22:35:50 +00:00
Janis Johnson
763ee179ed target-supports.exp (check_vmx_hw_available): New.
2004-05-28  Janis Johnson  <janis187@us.ibm.com>

	* lib/target-supports.exp (check_vmx_hw_available): New.
	* gcc.dg/vmx/vmx.exp: Use it to determine default action.

From-SVN: r82390
2004-05-28 22:31:44 +00:00
Janis Johnson
8dc84ef1bf target-supports.exp (check_alias_available, [...]): Use unique names for temporary files.
2004-05-28  Janis Johnson  <janis187@us.ibm.com>

	* lib/target-supports.exp (check_alias_available,
	check_iconv_available, check_named_sections_available): Use
	unique names for temporary files.

From-SVN: r82388
2004-05-28 22:28:22 +00:00
Ziemowit Laski
6b1db06ffd altivec-15.c: New test.
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

	* gcc.dg/altivec-15.c: New test.

From-SVN: r82387
2004-05-28 22:19:05 +00:00
Aldy Hernandez
5557d6723d fix typo in last commit....
From-SVN: r82386
2004-05-28 22:18:24 +00:00
Ziemowit Laski
bfefd4d590 altivec.h (vec_ctf, [...]): Remove type checks for integral parameters and literals from '..._args_eq' macros.
2004-05-28  Ziemowit Laski  <zlaski@apple.com>

	* config/rs6000/altivec.h (vec_ctf, vec_vcfsx, vec_vcfux, vec_cts,
	vec_ctu, vec_dss, vec_dst, vec_dstst, vec_dststt, vec_dstt, vec_ld,
	vec_ldl, vec_lvsl, vec_lvsr, vec_sld, vec_splat, vec_vspltw,
	vec_vsplth, vec_vspltb, vec_splat_s8, vec_splat_s16, vec_splat_s32,
	vec_splat_u8, vec_splat_u16, vec_splat_u32, vec_st, vec_stl,
	vec_ste): Remove type checks for integral parameters and literals
	from '..._args_eq' macros.

From-SVN: r82385
2004-05-28 22:17:21 +00:00
Aldy Hernandez
e851b37384 * c-common.c (fname_as_string): Fix xcalloc to xmalloc.
From-SVN: r82384
2004-05-28 22:05:45 +00:00
Aldy Hernandez
9e6f2e7dca decl.c (cp_make_fname_decl): Free return value from fname_as_string.
* decl.c (cp_make_fname_decl): Free return value from
	fname_as_string.

From-SVN: r82382
2004-05-28 21:58:15 +00:00
Aldy Hernandez
0d0bc03606 function.cc: New.
* testsuite/g++.dg/charset/function.cc: New.

	* testsuite/gcc.dg/charset/function.c: New.

	* c-decl.c (c_make_fname_decl): Free return value from
	fname_as_string.

	* cp/decl.c (cp_make_fname_decl): Free return value from
	fname_as_string.

	* c-common.c (fname_as_string): Translate if necessary.

From-SVN: r82381
2004-05-28 21:56:59 +00:00
Geoffrey Keating
4bb4ae964a * stringpool.c: Add comments to PCH saving/restoring routines.
From-SVN: r82380
2004-05-28 21:41:42 +00:00
Bryce McKinlay
711e31876f check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.
* check-init.c (check_init): Handle binops UNLT_EXPR, UNLE_EXPR,
    	UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, and LTGT_EXPR.

From-SVN: r82379
2004-05-28 21:52:49 +01:00