Commit Graph

74152 Commits

Author SHA1 Message Date
Zdenek Dvorak
7490e6c410 cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
* cfgloop.c (flow_loop_dump): Do not dump loop->invalid field.
	* cfgloop.h (struct loop): Remove unused fields.

From-SVN: r111994
2006-03-13 12:05:03 +00:00
Kazu Hirata
c607590900 * doc/invoke.texi: Update dump file names.
From-SVN: r111993
2006-03-13 09:22:13 +00:00
Kazu Hirata
5abcfa7e79 invoke.texi (-fdump-rtl-loop): Remove.
* doc/invoke.texi (-fdump-rtl-loop): Remove.
	(-dL, -fdump-rtl-loop2): Update the dump file names

From-SVN: r111991
2006-03-13 09:03:03 +00:00
Richard Biener
0394ea7311 re PR middle-end/26630 (Incorrect result when subtracting, casting to short and back to int, adding and multiplying)
2006-03-13  Richard Guenther  <rguenther@suse.de>

        PR middle-end/26630
        * gcc.dg/torture/pr26630.c: New testcase.

From-SVN: r111990
2006-03-13 09:02:40 +00:00
GCC Administrator
76659655d6 Daily bump.
From-SVN: r111988
2006-03-13 00:17:04 +00:00
Joseph Myers
8a420cfb9c be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
	rw.po, sv.po, tr.po, vi.po, zh_CN.po: Update.
	* zh_TW.po: New file.

From-SVN: r111982
2006-03-13 00:13:59 +00:00
Joseph Myers
9be692c5e8 be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po,
	rw.po, sv.po, tr.po, zh_CN.po: Update.

From-SVN: r111981
2006-03-13 00:13:22 +00:00
Steven Bosscher
3d47ea88f3 predict.c (estimate_probability): Remove.
* predict.c (estimate_probability): Remove.
        * profile.c (rest_of_handle_branch_prob, pass_branch_prob): Remove.
        * basic-block.h (estimate_probability): Remove prototype.
        * passes.c (finish_optimization_passes): Dump branch prediction or
        profiling heuristics to the .profile tree dump.
        (init_optimization_passes): Unqueue pass_branch_prob.

        * doc/invoke.texi (-fdump-rtl-bp): Remove.

From-SVN: r111980
2006-03-12 22:58:22 +00:00
Howard Hinnant
189cd5056d 10097.cc: Fix race condition.
2006-03-12  Howard Hinnant  <hhinnant@apple.com>

	* testsuite/27_io/basic_filebuf/underflow/char/10097.cc:
	Fix race condition.
	* testsuite/27_io/objects/char/9661-1.cc: Likewise.
	* testsuite/27_io/objects/wchar_t/9661-1.cc: Likewise.

From-SVN: r111978
2006-03-12 10:34:36 +00:00
GCC Administrator
163659ade1 Daily bump.
From-SVN: r111975
2006-03-12 00:17:02 +00:00
Roger Sayle
37ad72f254 dependency.c (gfc_dep_compare_expr): Allow unary and binary operators to compare equal if their operands are equal.
* dependency.c (gfc_dep_compare_expr) <EXPR_OP>: Allow unary and
	binary operators to compare equal if their operands are equal.
	<EXPR_FUNCTION>: Allow "constant" intrinsic conversion functions
	to compare equal, if their operands are equal.

	* gfortran.dg/dependency_10.f90: New test case.
	* gfortran.dg/dependency_11.f90: Likewise.

From-SVN: r111970
2006-03-11 22:25:58 +00:00
Steven Bosscher
fc6c490eea rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
* rtl.def (LABEL_REF): Remove the field for LABEL_NEXTREF.
        * rtl.h (LABEL_NEXTREF): Remove field accessor.

From-SVN: r111969
2006-03-11 22:14:35 +00:00
Gabriel Dos Reis
920d7bf632 crontab: Don't build snapshot for 3.4.x anymore.
* crontab: Don't build snapshot for 3.4.x anymore.
        * update_version_svn (IGNORE_BRANCHES): Add 3_4-branch.

From-SVN: r111968
2006-03-11 19:29:41 +00:00
Eric Botcazou
9fb798d76c function.h (frame_offset_overflow): Declare.
* function.h (frame_offset_overflow): Declare.
	* function.c (frame_offset_overflow): New function.
	(assign_stack_local_1): Call it to detect that the offset overflows.
	* cfgexpand.c (alloc_stack_frame_space): Likewise.

From-SVN: r111964
2006-03-11 14:52:57 +00:00
Steven Bosscher
6dd3c0a599 sh.c: Include alloc-pool.h.
2006-03-11  Steven Bosscher  <stevenb.gcc@gmail.com>

	* config/sh/sh.c: Include alloc-pool.h.
	(label_ref_list_pool): New alloc pool.
	(label_ref_list_t): New type for lists of labels.
	(struct pool_node): Make wend a label_ref_list_t.
	(add_constant): Use the new type, eradicate LABEL_NEXTREF
	references.
	(dump_table): Likewise.
	(sh_reorg): Set up the alloc pool before using add_constant and
	dump_table, and destroy it when finishing.

From-SVN: r111963
2006-03-11 12:52:56 +00:00
Nick Clifton
59e47e7163 Remove accidental commit to this file
From-SVN: r111961
2006-03-11 09:16:55 +00:00
Nick Clifton
1348fb1ae9 Do not reference flag_strnegth_reduce
From-SVN: r111960
2006-03-11 09:10:22 +00:00
Richard Sandiford
a70ec38645 * config/mips/mips.c: Remove redundant comment.
From-SVN: r111959
2006-03-11 07:11:45 +00:00
GCC Administrator
c27e993130 Daily bump.
From-SVN: r111956
2006-03-11 00:17:32 +00:00
Erik Edelmann
8e119f1b63 symbol.c (check_conflict): Allow allocatable function results, except for elemental functions.
fortran/
2006-03-11  Erik Edelmann  <eedelman@gcc.gnu.org>

        * symbol.c (check_conflict): Allow allocatable function results,
        except for elemental functions.
        * trans-array.c (gfc_trans_allocate_temp_array): Rename to ...
        (gfc_trans_create_temp_array): ... this, and add new argument callee_alloc.
        (gfc_trans_array_constructor, gfc_conv_loop_setup): Update call
        to gfc_trans_allocate_temp_array.
        * trans-array.h (gfc_trans_allocate_temp_array): Update prototype.
        * trans-expr.c (gfc_conv_function_call): Use new arg of
        gfc_trans_create_temp_array avoid pre-allocation of temporary
        result variables of pointer AND allocatable functions.
        (gfc_trans_arrayfunc_assign): Return NULL for allocatable functions.
        * resolve.c (resolve_symbol): Copy value of 'allocatable' attribute
        from sym->result to sym.

testsuite/
2006-03-08  Paul Thomas  <pault@gcc.gnu.org>
            Erik Edelmann  <eedelman@gcc.gnu.org>

        * gfortran.dg/allocatable_function_1.f90: New.
        * gfortran.dg/allocatable_function_2.f90: New.

From-SVN: r111951
2006-03-10 23:28:38 +00:00
Tom Tromey
ea725d4524 re PR libgcj/25713 (GZIPOutputStream bad checksum)
libjava
	PR libgcj/25713:
	* java/util/zip/Deflater.java (flush): New method.
	* sources.am, Makefile.in: Rebuilt.
	* java/util/zip/DeflaterOutputStream.java: Removed.
	* java/util/zip/InflaterInputStream.java: Likewise.
	* java/util/zip/GZIPInputStream.java: Likewise.
	* java/util/zip/GZIPOutputStream.java: Likewise.
libjava/classpath
	For PR libgcj/25713:
	* java/util/zip/InflaterInputStream.java (read): Replaced with
	libgcj implementation.

From-SVN: r111949
2006-03-10 23:09:23 +00:00
Jason Merrill
21f9ec0c6a re PR middle-end/26004 (gcc errors on valid code [SVO])
PR c/26004
        * gimplify.c (gimplify_modify_expr_rhs): Don't do return slot opt if
        the target was declared 'register'.

From-SVN: r111947
2006-03-10 17:47:08 -05:00
Jason Merrill
e16187d98d run test
From-SVN: r111946
2006-03-10 17:43:10 -05:00
Jason Merrill
229970c41d PR c++/16387, c++/16389
PR c++/16387, c++/16389
        * typeck.c (cxx_alignof_expr, cxx_sizeof_expr): New functions.
        (cxx_sizeof_or_alignof_expr): Split out from here.

From-SVN: r111945
2006-03-10 17:40:41 -05:00
Andreas Tobler
1a919c5632 powerpc-signal.h: Fix typo in comment.
2006-03-10  Andreas Tobler  <a.tobler@schweiz.ch>

	* include/powerpc-signal.h: Fix typo in comment.

From-SVN: r111944
2006-03-10 23:31:15 +01:00
Mark Wielaard
8aa540d2f7 Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
       * scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
       * gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
       * java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
       * java/lang/Math.java: New override file.
       * java/lang/Character.java: Merged from Classpath.
       (start, end): Now 'int's.
       (canonicalName): New field.
       (CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
       (UnicodeBlock): Added argument.
       (of): New overload.
       (forName): New method.
       Updated unicode blocks.
       (sets): Updated.
       * sources.am: Regenerated.
       * Makefile.in: Likewise.

From-SVN: r111942
2006-03-10 21:46:48 +00:00
Aldy Hernandez
27079765d0 configure.in: Handle --disable-<component> generically.
* configure.in: Handle --disable-<component> generically.
	* configure: Regenerate.

From-SVN: r111941
2006-03-10 21:32:39 +00:00
Adam Nemet
a859786636 genpreds.c (write_insn_constraint_len): Change definition of insn_constraint_len to return size_t to match the declaration.
* genpreds.c (write_insn_constraint_len): Change definition of
	insn_constraint_len to return size_t to match the declaration.

From-SVN: r111940
2006-03-10 20:22:05 +00:00
DJ Delorie
8e4edce73f m32c.c (m32c_const_ok_for_constraint_p): Bit numbers start at zero.
* config/m32c/m32c.c (m32c_const_ok_for_constraint_p): Bit numbers
start at zero.
(m32c_expand_insv): Fix test for an AND mask.

From-SVN: r111937
2006-03-10 12:49:02 -05:00
Richard Guenther
891c0eeed7 re PR middle-end/26565 (Unaligned accesses with __attribute__(packed) and memcpy)
2006-03-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/26565
	* builtins.c (get_pointer_alignment): Handle component
	references for field alignment.

	* gcc.dg/torture/pr26565.c: New testcase.

From-SVN: r111934
2006-03-10 16:44:01 +00:00
J"orn Rennecke
8c1aaf261b config.gcc (sh*-superh-elf, [...]): Use newlib.h when building with libgloss.
* config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h
	when building with libgloss.
	(sh*elf): Implement --without-fp option.
	(sh64-superh-linux*): Don't multilib.

From-SVN: r111933
2006-03-10 16:07:29 +00:00
Paolo Carlini
9a7ab578fb cmath: Add atan2 and pow bits; add using declarations.
2006-03-10  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/cmath: Add atan2 and pow bits; add using declarations.	
	* include/tr1/math.h: Add using declarations.
	* include/tr1/complex: Add using declarations.
	* testsuite/tr1/8_c_compatibility/cmath/functions.cc: Fully
	qualify calls.
	* testsuite/tr1/8_c_compatibility/cmath/overloads.cc: Likewise;
	add atan2 and pow bits.
	* testsuite/tr1/8_c_compatibility/complex/overloads_float.cc: Likewise.
	* testsuite/tr1/8_c_compatibility/complex/overloads_int.cc: Likewise;
	adjust polar bits.

	* acinclude.m4 ([GLIBCXX_CHECK_C99_TR1]): Add checks for double_t
	and float_t typedefs.
	* include/tr1/cmath: Add double_t and float_t.
	* testsuite/tr1/8_c_compatibility/cmath/types.cc: New.

	* include/tr1/ctgmath: New.
	* include/tr1/tgmath.h: Likewise.
	* include/Makefile.am: Add.
	* testsuite/tr1/headers.cc: Update.

	* include/Makefile.in: Regenerate.
	* configure: Likewise.

	* docs/html/ext/tr1.html: Update.

From-SVN: r111931
2006-03-10 13:24:57 +00:00
J"orn Rennecke
7a6164d4fe * struct-equiv.c (rtx_equiv_p): Fix POST_MODIFY case.
From-SVN: r111929
2006-03-10 10:58:22 +00:00
Jerry DeLisle
5d54b732db re PR libfortran/26499 (gfortran - End of File incorrectly positioned after binary I/O.)
2006-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26499
	* gfortran.dg/write_back.f: New test.
	* gfortran.dg/write_rewind_1.f: New test.
	* gfortran.dg/write_rewind_2.f: New test.

From-SVN: r111925
2006-03-10 03:23:28 +00:00
Jerry DeLisle
99c6db71de re PR libfortran/26499 (gfortran - End of File incorrectly positioned after binary I/O.)
2006-03-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26499
	* io/file_pos (st_rewind): Flush always.
	* io/unix.c (fd_truncate): Return SUCCESS rather than FAILURE for
	special files like /dev/null.
	* io/transfer.c (st_write_done): Remove broken logic that prevented
	calling fd_truncate.

From-SVN: r111924
2006-03-10 03:15:36 +00:00
Eric Christopher
d1781ab0f5 20060309-1.c: New.
2006-03-09  Eric Christopher  <echristo@apple.com>
        * gcc.c-torture/compile/20060309-1.c: New.

From-SVN: r111922
2006-03-10 01:53:32 +00:00
Andrew Pinski
3e0a08d711 tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
2006-03-09  Andrew Pinski  <pinskia@physics.uc.edu>

        * tree-ssa-phiopt.c (tree_ssa_phiopt): Add cfgchanged variable.
        Set it when one of the replacement functions returned true.
        Return TODO_cleanup_cfg if cfgchanged is true.
        (pass_phiopt) <todo_flags_finish>: Remove TODO_cleanup_cfg.

From-SVN: r111920
2006-03-09 17:22:54 -08:00
Tom Tromey
0ade2ddf23 re PR libgcj/23495 (java.lang.String.equals is suboptimal)
PR libgcj/23495:
	* java/lang/natString.cc (_Jv_NewString): Use memcpy.
	(equals): Use memcmp.
	(contentEquals): Likewise.
	(getChars): Use memcpy.
	(toCharArray): Likewise.
	(regionMatches): Use memcmp.
	(regionMatches): Likewise.
	(startsWith): Likewise.
	(concat): Use memcpy.
	(valueOf): Likewise.

From-SVN: r111919
2006-03-10 00:39:49 +00:00
GCC Administrator
1e65f95848 Daily bump.
From-SVN: r111917
2006-03-10 00:17:42 +00:00
Tom Tromey
dfd8572bf7 configure: Rebuilt.
* configure: Rebuilt.
	* configure.ac (HAVE_CLOCK_GETTIME): Put -lrt in THREADLIBS as
	well.

From-SVN: r111912
2006-03-09 23:49:58 +00:00
Adam Nemet
f243cee6f1 combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate instead of gen_lowpart.
* combine.c (simplify_shift_const_1): Use gen_lowpart_or_truncate
	instead of gen_lowpart.

From-SVN: r111911
2006-03-09 23:05:50 +00:00
Erik Edelmann
17029ac2c3 trans-expr.c (gfc_add_interface_mapping): Copy 'allocatable' attribute from sym to new_sym.
fortran/
2006-03-09  Erik Edelmann  <eedelman@gcc.gnu.org>

        * trans-expr.c (gfc_add_interface_mapping): Copy 'allocatable'
        attribute from sym to new_sym.  Call build_fold_indirect_ref()
        for allocatable arguments.

testsuite/
2006-03-09  Erik Edelmann  <eedelman@gcc.gnu.org>

        * gfortran.dg/allocatable_dummy_1.f90: Test for functions returning
        arrays too.

From-SVN: r111910
2006-03-09 21:46:14 +00:00
Richard Sandiford
a8c1d5f80e mips-protos.h (mips_output_conditional_branch): Change interface.
* config/mips/mips-protos.h (mips_output_conditional_branch): Change
	interface.
	(mips_output_order_conditional_branch): Declare.
	* config/mips/mips.h (MIPS_BRANCH): New macro.
	* config/mips/mips.c (gen_conditional_branch): Use VOIDmode
	for the comparison.  Use gen_condjump.
	(mips_output_conditional_branch): Rework interface to take the
	asm templates for a direct branch and the inverse of a direct branch.
	(mips_output_order_conditional_branch): New function.
	(mips_builtin_branch_and_move): New function.
	(mips_expand_builtin_compare): Use it.  Use VOIDmode for the
	branch condition.  Use gen_single_cc as the condition for
	__builtin_mips_upper_* or __builtin_mips_lower_*.
	(mips_expand_builtin_bposge): Use mips_builtin_branch_and_move.
	Use VOIDmode for the branch condition.
	* config/mips/predicates.md (order_operator): New predicate.
	* config/mips/mips.md (UNSPEC_SINGLE_CC): New constant.
	(branch_fp): Rename to...
	(*branch_fp): ...this.  Remove mode from comparison operator.
	Use new mips_output_conditional_branch interface.
	(branch_fp_inverted): Rename to...
	(*branch_fp_inverted): ...this and update as for *branch_fp.
	(*branch_zero<mode>): Rename to...
	(*branch_order<mode>): ...this.  Remove mode from comparison operator.
	Use mips_output_order_conditional_branch.  Only accept ordered
	comparisons.  
	(*branch_zero<mode>_inverted): Rename to...
	(*branch_order<mode>_inverted): ...this and update as for
	*branch_order<mode>.
	(*branch_equality<mode>): Accept zero as the second operand to
	the equality operator.  Use the new mips_output_conditional_branch
	interface.
	(*branch_equality<mode>_inverted): Likewise.
	(condjump): New expander.
	* config/mips/mips-dsp.md (mips_bposge): Remove mode from comparison
	operator.
	* config/mips/mips-ps-3d.md (bc1any4t, bc1any4f): Likewise.
	(bc1any2t, bc1any2f): Likewise.
	(single_cc): New expander.
	(*branch_upper_lower, *branch_upper_lower_inverted): New patterns.

From-SVN: r111909
2006-03-09 21:03:17 +00:00
Tom Tromey
1fea4e6c43 re PR libgcj/24461 (array access in either GZIPInputStream, Inflater, natInflate.cc, or zlib)
PR libgcj/24461:
	* java/util/zip/InflaterInputStream.java (fill): Throw exception
	if stream is truncated.

From-SVN: r111870
2006-03-09 20:21:58 +00:00
Tom Tromey
e59a1e40f3 win32.cc (_Jv_platform_nanotime): New function.
* win32.cc (_Jv_platform_nanotime): New function.
	* include/win32.h (_Jv_platform_nanotime): Declare.
	* posix.cc (_Jv_platform_nanotime): New function.
	* include/posix.h (_Jv_platform_nanotime): Declare.
	* java/lang/natSystem.cc (nanoTime): New method.
	* java/lang/System.java (nanoTime): Declare.
	* include/config.h.in, configure: Rebuilt.
	* configure.ac: Check for clock_gettime.

From-SVN: r111869
2006-03-09 18:47:54 +00:00
Richard Sandiford
cbbb5b6da1 md.texi: Update documentation of MIPS constraints.
* doc/md.texi: Update documentation of MIPS constraints.
	* config/mips/constraints.md: New file.
	* config/mips/mips.md: Include it.
	* config/mips/mips.c (mips_char_to_class): Delete.
	(override_options): Don't initialize mips_char_to_class.
	* config/mips/mips.h (mips_char_to_class): Delete.
	(REG_CLASS_FROM_LETTER): Delete.
	(CONST_OK_FOR_LETTER_P): Delete.
	(CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
	(EXTRA_CONSTRAINT_Y): Delete.
	(EXTRA_CONSTRAINT_STR): Delete.
	(CONSTRAINT_LEN): Delete.
	(EXTRA_MEMORY_CONSTRAINT): Delete.

From-SVN: r111868
2006-03-09 18:31:08 +00:00
Richard Henderson
1799e5d5ca Merge C++ from gomp-20050608-branch.
From-SVN: r111867
2006-03-09 10:14:39 -08:00
Eric Botcazou
f8fe05458d fold-const.c (build_range_check): Make sure to use a valid type to apply the "(c>=low) && (c<=high) into...
* fold-const.c (build_range_check): Make sure to use a valid type to
	apply the "(c>=low) && (c<=high) into (c-low>=0) && (c-low<=high-low)"
	transformation.

	(range_predecessor): New static function.
	(range_successor): Likewise.
	(merge_ranges): Use them to compute predecessors and successors of
	range bounds.

From-SVN: r111866
2006-03-09 16:11:00 +00:00
Roger Sayle
d56ee62bfe re PR middle-end/26561 (ACATS failures c34004a, c46033a and cxg2024 at -O0)
2006-03-09  Roger Sayle  <roger@eyesopen.com>
	    Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR middle-end/26561
	* fold-const.c (fold_div_compare): When optimizing X/C1 op C2 as
	X op C3, consider whether C3 overflows towards +Inf or -Inf.

	* gcc.c-torture/execute/divcmp-5.c: New test case.


Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr>

From-SVN: r111862
2006-03-09 14:54:11 +00:00
Paul Thomas
ad5dd90de0 re PR fortran/26257 (internal compiler error: Segmentation fault, on function call with assumed shape array parameter)
2006-03-09 Paul Thomas <pault@gcc.gnu.org>

	PR fortran/26257
	* trans-array.c (gfc_conv_expr_descriptor): Exclude calculation of
	the offset and data when se->data_not_needed is set.
	* trans.h: Include the data_not_need bit in gfc_se.
	* trans-intrinsic.c (gfc_conv_intrinsic_size): Set it for SIZE.

2006-03-09 Paul Thomas <pault@gcc.gnu.org>

	* PR fortran/26257
	gfortran.dg/auto_char_len_3.f90: New test

From-SVN: r111860
2006-03-09 05:52:06 +00:00