Commit Graph

74714 Commits

Author SHA1 Message Date
GCC Administrator
493ae9af1b Daily bump.
From-SVN: r112651
2006-04-04 00:17:26 +00:00
Matthias Klose
8160ab35e1 Makefile.in (unprotoize.o): Same dependencies as for protoize.o.
2006-04-04  Matthias Klose  <doko@debian.org>

        * Makefile.in (unprotoize.o): Same dependencies as for protoize.o.

From-SVN: r112647
2006-04-03 22:20:21 +00:00
Geoffrey Keating
a7d3746437 extend.texi (Other Builtins): Document that __builtin_nan is a compile-time constant only when...
* doc/extend.texi (Other Builtins): Document that
	__builtin_nan is a compile-time constant only when its argument
	is valid.

From-SVN: r112646
2006-04-03 20:56:59 +00:00
Adam Nemet
2332d58558 simplify-rtx.c (simplify_unary_operation_1): When trying to remove TRUNCATE check if all bits outside the new mode are...
* simplify-rtx.c (simplify_unary_operation_1) <TRUNCATE>: When
	trying to remove TRUNCATE check if all bits outside the new mode
	are identical to the sign bit.

From-SVN: r112643
2006-04-03 18:12:15 +00:00
Jeff Law
cbc75e6222 tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding and operand scanning in some common cases.
* tree-ssa-dom.c (propagate_rhs_into_lhs): Avoid useless folding
        and operand scanning in some common cases.

From-SVN: r112642
2006-04-03 11:08:42 -06:00
Andrew Haley
e47247850c re PR libgcj/26858 (NullPointerException not generated for large classes...)
2006-04-03  Andrew Haley  <aph@redhat.com>

        PR java/26858
        * expr.c (build_field_ref): Don't check the field offset if
        flag_syntax_only.

From-SVN: r112640
2006-04-03 14:31:56 +00:00
Paolo Bonzini
4735cca6b1 fix changelog entry
From-SVN: r112638
2006-04-03 11:23:04 +00:00
Paolo Bonzini
b5c82fa138 re PR target/19653 (x87 reg allocated for constants for -mfpmath=sse)
2005-08-08  Paolo Bonzini  <bonzini@gnu.org>
	    Dale Johannesen  <dalej@apple.com>

	PR target/19653
	* regclass.c (struct reg_pref): Update documentation.
	(regclass): Set prefclass to NO_REGS if memory is the best option.
	(record_reg_classes): Cope with a prefclass set to NO_REGS.
	* reload.c (find_reloads): Take PREFERRED_OUTPUT_RELOAD_CLASS
	into account.  For non-registers, equate an empty preferred
	reload class to a `!' in the constraint; move the if clause to
	do so after those that reject the insn.
	(push_reload): Allow PREFERRED_*_RELOAD_CLASS to liberally
	return NO_REGS.
	(find_dummy_reload): Likewise.
	* doc/tm.texi (Register Classes): Document what it means
	if PREFERRED_*_RELOAD_CLASS return NO_REGS.
	* config/i386/i386.c (ix86_preferred_reload_class): Force
	using SSE registers (and return NO_REGS for floating-point
	constants) if math is done with SSE.
	(ix86_preferred_output_reload_class): New.
	* config/i386/i386-protos.h (ix86_preferred_output_reload_class): New.
	* config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): New.
	* config/i386/i386.md: Remove # register preferences.


Co-Authored-By: Dale Johannesen <dalej@apple.com>

From-SVN: r112637
2006-04-03 11:20:07 +00:00
Andrew Haley
f096660b46 Float_2.java: New file.
2006-04-03  Andrew Haley  <aph@redhat.com>

        * testsuite/libjava.lang/Float_2.java: New file.

From-SVN: r112636
2006-04-03 10:15:25 +00:00
Sebastian Pop
16a2acea0a re PR tree-optimization/26992 (Internal Compiler Error in dwarf2out.c:7607 build_polynomial_chrec)
PR bootstrap/26992
	* tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
	chrec_is_positive, set_nb_iterations_in_loop): Use a variable for
	the type of nb_iter.
	(instantiate_parameters_1): Convert the operands before calling
	chrec_fold_minus, chrec_fold_plus, or chrec_fold_multiply.
	* tree-data-ref.c (can_use_analyze_subscript_affine_affine): Same.

From-SVN: r112635
2006-04-03 09:59:38 +00:00
Paul Thomas
e15e9be3a8 re PR testsuite/26981 (g++.old-deja/g++.other/init18.C fails)
2006-04-03  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/26981
	* trans.h : Prototype for gfc_conv_missing_dummy.
	* trans-expr (gfc_conv_missing_dummy): New function
	(gfc_conv_function_call): Call it and tidy up some of the code.
	* trans-intrinsic (gfc_conv_intrinsic_function_args): The same.

	PR fortran/26976
	* array.c (gfc_array_dimen_size): If available, return shape[dimen].
	* resolve.c (resolve_function): If available, use the argument shape for the
	function expression.
	* iresolve.c (gfc_resolve_transfer): Set shape[0] = size.

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

	PR fortran/26981
	* gfortran.dg/missing_optional_dummy_1.f90: New test.

	PR fortran/26976
	* gfortran.dg/compliant_elemental_intrinsics_1.f90: New test.
	* gfortran.dg/initialization_1.f90: Make assignment compliant.
	* gfortran.dg/transfer_array_intrinsic_1.f90: Simplify.
	* gfortran.dg/transfer_array_intrinsic_2.f90: Make assignments compliant and detect
	bigendian-ness.

From-SVN: r112634
2006-04-03 04:20:57 +00:00
Roger Sayle
b6f65e3c5d builtins.c (dummy_object): Use build_int_cst instead of convert.
* builtins.c (dummy_object): Use build_int_cst instead of convert.
	* tree-ssa-ccp.c (maybe_fold_stmt_addition): Use fold_convert
	instead of convert.
	* dojump.c (do_jump): Likewise.
	* expr.h (ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE): Likewise.
	* gimplify.c (gimple_boolify, gimplify_init_constructor,
	gimplify_boolean_expr): Likewise.
	* emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
	* varasm.c (array_size_for_constructor): Likewise.
	* tree-object-size.c (compute_object_offset): Likewise.

From-SVN: r112633
2006-04-03 03:07:40 +00:00
GCC Administrator
ce674fb62a Daily bump.
From-SVN: r112631
2006-04-03 00:17:19 +00:00
Roger Sayle
9fd20553b5 re PR middle-end/26977 (ICE in emit_move_insn)
PR middle-end/26977
	* expr.c (emit_group_store): Check whether simplify_gen_subreg returns
	NULL_RTX, indicating it couldn't create a valid paradoxical subreg.

From-SVN: r112626
2006-04-02 22:23:44 +00:00
Erik Edelmann
763ccd4537 trans-array.c (gfc_trans_dealloc_allocated): Take a tree representation of the array to be deallocated as argument instead...
2006-04-02  Erik Edelmann  <eedelman@gcc.gnu.org>

        * trans-array.c (gfc_trans_dealloc_allocated): Take a
        tree representation of the array to be deallocated as argument
        instead of its gfc_symbol.
        (gfc_trans_deferred_array): Update call to
        gfc_trans_dealloc_allocated.
        * trans-array.h (gfc_trans_dealloc_allocated): Update prototype.
        * trans-expr.c (gfc_conv_function_call): Update call to
        gfc_trans_dealloc_allocated, get indirect reference to dummy
        arguments.


2006-04-02  Erik Edelmann  <eedelman@gcc.gnu.org>

        * gfortran.dg/allocatable_dummy_1.f90: Also check that allocatable
        dummy arguments work when the actual argument is itself a dummy
        argument of the caller.

From-SVN: r112625
2006-04-02 17:00:39 +00:00
Sebastian Pop
ace23abf02 re PR tree-optimization/26939 (loop number of iterations analysis not working)
PR tree-optimization/26939
	* tree-chrec.c (chrec_merge): Use eq_evolutions_p.

From-SVN: r112623
2006-04-02 14:08:02 +00:00
Sebastian Pop
e2157b49e6 tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument at_stmt.
* tree-scalar-evolution.c (add_to_evolution_1): Pass an extra argument
	at_stmt.  Convert the type of operands before calling 
	build_polynomial_chrec.
	(add_to_evolution): Pass an extra argument at_stmt.  Adjust the call to
	add_to_evolution_1.
	(follow_ssa_edge_in_rhs): Adjust call to add_to_evolution.
	(instantiate_parameters_1): Convert the type of operands before calling 
	build_polynomial_chrec.
	* tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
	chrec_fold_multiply_poly_poly, chrec_replace_initial_condition,
	reset_evolution_in_loop): Insert asserts to check the types of the
	operands.
	(chrec_type): Moved...
	(eq_evolutions_p): Use operand_equal_p.
	* tree-chrec.h (build_polynomial_chrec): Insert an assert to check
	the types of the operands.
	(chrec_type): ...here.
	* tree-data-ref.c (create_data_ref): Convert the operands before
	calling chrec_replace_initial_condition.
	(same_access_functions, analyze_subscript_affine_affine,
	analyze_miv_subscript, all_chrecs_equal_p): Use eq_evolutions_p.
	(compute_subscript_distance, analyze_ziv_subscript,
	analyze_siv_subscript_cst_affine, compute_overlap_steps_for_affine_1_2,
	analyze_miv_subscript): Convert the operands before calling
	chrec_fold_minus or chrec_fold_plus.

From-SVN: r112621
2006-04-02 04:27:40 +00:00
Sebastian Pop
a84481aacb tree-data-ref.c (compute_all_dependences): Use a pointer to the dependence_relations vector.
* tree-data-ref.c (compute_all_dependences): Use a pointer to
	the dependence_relations vector.
	(compute_data_dependences_for_loop): Adjust call to
	compute_all_dependences.

From-SVN: r112620
2006-04-02 04:08:02 +00:00
Roger Sayle
d568d1a851 gimplify.c (gimplify_scan_omp_clauses): Call gimple_boolify on the condition before calling gimplify_expr.
* gimplify.c (gimplify_scan_omp_clauses) <OMP_CLAUSE_IF>: Call
	gimple_boolify on the condition before calling gimplify_expr.


Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r112619
2006-04-02 02:38:01 +00:00
GCC Administrator
86e689a9b2 Daily bump.
From-SVN: r112617
2006-04-02 00:17:18 +00:00
Eric Botcazou
3e63ffb5a4 re PR libfortran/24685 (real(16) formatted input is broken for huge values (gfortran.dg/default_format_2.f90))
PR libfortran/24685
	* gfortran.dg/large_real_kind_form_io_2.f90: XFAIL on SPARC/Solaris.

From-SVN: r112611
2006-04-01 21:34:27 +00:00
Francois-Xavier Coudert
24726083a4 fpu-387.h: Use previously added SSE code in all cases, as it really is the right thing to do.
* config/fpu-387.h: Use previously added SSE code in all
	cases, as it really is the right thing to do.

From-SVN: r112610
2006-04-01 21:24:24 +00:00
Roger Sayle
37da9343f5 re PR fortran/25270 (testcases fail with a type mismatch)
PR fortran/25270
	* trans-array.c (gfc_trans_allocate_array_storage): In array index
	calculations use gfc_index_zero_node and gfc_index_one_node instead
	of integer_zero_node and integer_one_node respectively.
	(gfc_conv_array_transpose): Likewise.
	(gfc_conv_ss_startstride): Likewise.
	(gfc_trans_dummy_array_bias): Likewise.

From-SVN: r112608
2006-04-01 19:19:22 +00:00
Roger Sayle
9ccab91c6f dependency.c (gfc_is_inside_range): Delete.
* dependency.c (gfc_is_inside_range): Delete.
	(gfc_check_element_vs_section): Significant rewrite.

	* gfortran.dg/dependencency_17.f90: New test case.

From-SVN: r112607
2006-04-01 19:16:01 +00:00
Roger Sayle
d765523a64 dependency.c (gfc_dep_compare_expr): Strip parentheses and unary plus operators when comparing expressions.
* dependency.c (gfc_dep_compare_expr): Strip parentheses and unary
	plus operators when comparing expressions.  Handle comparisons of
	the form "X+C vs. X", "X vs. X+C", "X-C vs. X" and "X vs. X-C" where
	C is an integer constant.  Handle comparisons of the form "P+Q vs.
	R+S" and "P-Q vs. R-S".  Handle comparisons of integral extensions
	specially (increasing functions) so extend(A) > extend(B), when A>B.
	(gfc_check_element_vs_element): Move test later, so that we ignore
	the fact that "A < B" or "A > B" when A or B contains a forall index.

	* gfortran.dg/dependency_14.f90: New test case.
	* gfortran.dg/dependency_15.f90: Likewise.
	* gfortran.dg/dependency_16.f90: Likewise.

From-SVN: r112605
2006-04-01 07:11:35 +00:00
Bob Wilson
b7974b3af5 lib1funcs.asm: Rename abi_entry/abi_return macros to leaf_entry/leaf_return.
* config/xtensa/lib1funcs.asm: Rename abi_entry/abi_return macros
	to leaf_entry/leaf_return.  Change leaf_entry to add 16 bytes to
	the frame size.  Update to use the new macros.
	* config/xtensa/ieee754-sf.S: Use new leaf_entry/leaf_return macros.
	* config/xtensa/ieee754-df.S: Likewise.

From-SVN: r112604
2006-04-01 01:29:11 +00:00
Richard Henderson
56e8401921 tree-cfg.c (make_ctrl_stmt_edges, [...]): Merge into...
* tree-cfg.c (make_ctrl_stmt_edges, make_exit_edges): Merge into...
        (make_edges): ... here.  Control fallthru creation with a local
        variable.  Do not play with fake edges.
        (make_omp_sections_edges): Don't set EDGE_ABNORMAL.
        (make_goto_expr_edges): Don't play with fake edges.  Make for_call
        a boolean.

From-SVN: r112603
2006-03-31 16:37:13 -08:00
Joseph Myers
0c33762a47 dwarf2.h (DW64_CIE_ID): Define.
* dwarf2.h (DW64_CIE_ID): Define.
	* dwarf2out.c (DWARF_CIE_ID): Define.
	(output_call_frame_info): Output 0xffffffff before standard 8-byte
	length header.  Use DWARF_CIE_ID.
	(value_format): Use DW_FORM_data4 or DW_FORM_data8 for
	dw_val_class_loc_list depending on DWARF_OFFSET_SIZE.

From-SVN: r112601
2006-04-01 01:21:46 +01:00
GCC Administrator
771cdc9426 Daily bump.
From-SVN: r112599
2006-04-01 00:17:15 +00:00
Asher Langton
f0d0757e92 re PR fortran/25358 (vector assignment to assumed-size Cray Pointee error)
2006-03-31  Asher Langton  <langton2@llnl.gov>

        PR fortran/25358
        *expr.c (gfc_check_assign): Allow cray pointee to be assumes-size.


2006-03-31  Asher Langton  <langton2@llnl.gov>

        PR fortran/25358
        gfortran.dg/cray_pointers_6.f90: New test.

From-SVN: r112594
2006-04-01 00:04:46 +00:00
Kaz Kojima
b890ea500f linux-atomic.asm: New file.
* config/sh/linux-atomic.asm: New file.
	* config/sh/t-linux (LIB2FUNCS_EXTRA): Add linux-atomic.asm.

From-SVN: r112593
2006-03-31 22:31:05 +00:00
Mark Mitchell
bd9e7c5cd5 pex-win32.c (<errno.h>): Include.
* pex-win32.c (<errno.h>): Include.
	(fix_argv): Remove.
	(argv_to_cmdline): New function.
	(std_suffixes): New variable.
	(no_suffixes): Likewise.
	(find_executable): New function.
	(win32_spawn): Likewise.
	(spawn_script): Use win32_spawn instead of _spawnv[p].
	(pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
	(pex_win32_wait): Likewise.

From-SVN: r112592
2006-03-31 22:16:35 +00:00
DJ Delorie
16659fcf33 cond.md: Set condition flags properly throughout.
* config/m32c/cond.md: Set condition flags properly throughout.
* config/m32c/minmax.md: Likewise.
* config/m32c/prologue.md: Likewise.
* config/m32c/bitops.md: Likewise.
* config/m32c/muldiv.md: Likewise.
* config/m32c/mov.md: Likewise.
* config/m32c/addsub.md: Likewise.
* config/m32c/m32c.md: Likewise.
* config/m32c/jump.md: Likewise.
* config/m32c/shift.md: Likewise.

* config/m32c/cond.md (cmp<mode>): Call m32c_output_compare to
conditionally output the pattern for this.
* config/m32c/m32c.c (flags_needed_for_conditional): New.
(m32c_compare_redundant): New.
(m32c_output_compare): New.
* config/m32c/m32c-protos.h (m32c_output_compare): New.

* config/m32c/m32c.c (m32c_prepare_shift): Fix logic to clobber
dest, not src.  Allow other 4-byte modes.

From-SVN: r112591
2006-03-31 16:53:04 -05:00
Andreas Tobler
6b04402b92 posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
2006-03-31  Andreas Tobler  <a.tobler@schweiz.ch>

	* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.

From-SVN: r112587
2006-03-31 22:38:55 +02:00
Joseph Myers
f555078868 * sv.po: Update.
From-SVN: r112580
2006-03-31 18:05:06 +01:00
Joseph Myers
d2f8b960fe * sv.po: Update.
From-SVN: r112579
2006-03-31 18:04:41 +01:00
Denis Chertykov
fc26268205 md.texi: Refer to avr/constraints.md instead of avr/avr.h.
* doc/md.texi: Refer to avr/constraints.md instead of
	avr/avr.h.

From-SVN: r112576
2006-03-31 17:32:44 +04:00
Andrew Haley
e6b7893e34 re PR libgcj/26858 (NullPointerException not generated for large classes...)
2006-03-30  Andrew Haley  <aph@redhat.com>

        PR java/26858
        * lang.c (java_attribute_table): New.
        (LANG_HOOKS_ATTRIBUTE_TABLE): Define.
        * expr.c (build_field_ref): Add a null pointer check for all
        fields of offset > 4k.  Don't do so for accesses via the this
        pointer, which we know can never be null.
        * class.c (build_java_method_type): Mark arg 1 of all nonstatic
        methods nonnull.

From-SVN: r112574
2006-03-31 11:43:43 +00:00
Jerry DeLisle
9ef47dec91 re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list character length specification.)
2006-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26890
	* gfortran.dg/read_size_noadvance.f90: New test.

From-SVN: r112571
2006-03-31 05:15:42 +00:00
Jerry DeLisle
d57d342432 re PR libfortran/26890 (SIZE parameter interacts with same variable in IO list character length specification.)
2006-03-30  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/26890
	* io/io.h: Add size_used to st_parameter_dt, adjust pad size.
	*io/transfer.c (data_transfer_init): Initialize size_used to zero.
	(read_sf): Use size_used.
	(read_block): Likewise.
	(read_block_direct): Likewise.
	(write_block): Likewise.
	(write_buf): Likewise and eliminate erroneous FAILURE return.
	(finalize_transfer): Assign value of size_used to *dtp->size.

From-SVN: r112570
2006-03-31 05:11:03 +00:00
Roger Sayle
5650dfbdb0 expr.c (emit_group_store): Make bytepos a HOST_WIDE_INT to signed vs.
* expr.c (emit_group_store): Make bytepos a HOST_WIDE_INT to
	signed vs. unsigned comparison failures on some hosts.

From-SVN: r112567
2006-03-31 03:53:47 +00:00
Ben Elliston
738caefc9e Typo fix.
From-SVN: r112564
2006-03-31 14:08:41 +11:00
Mark Mitchell
9d11d99eb9 Add missing entry
From-SVN: r112563
2006-03-31 02:03:12 +00:00
Alan Modra
ca0e79d91c re PR target/26459 (gcc fails to build on powerpc e500-double targets)
PR target/26459
	* config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Limit 2003-12-08
	change to FLOAT_REGS.

From-SVN: r112561
2006-03-31 11:55:35 +10:30
Paul Thomas
2643649307 re PR fortran/21130 (38822 lines of Fortran 90 takes more than 10 minutes to compile on a dual 3GHz P4 Linux box with lots of RAM)
2006-03-30  Paul Thomas <paulthomas2@wanadoo.fr>
            Bud Davis  <bdavis9659@sbcglobal.net>

        PR 21130
        * module.c (load_needed): Traverse entire tree before returning.



Co-Authored-By: Bud Davis <bdavis9659@sbcglobal.net>

From-SVN: r112558
2006-03-31 00:47:13 +00:00
Alan Modra
d3603e8c4e rs6000.c (rs6000_explicit_options): Add ieee.
* config/rs6000/rs6000.c (rs6000_explicit_options): Add ieee.
	(rs6000_override_options): Use it.
	(rs6000_handle_option): Set it.  Set rs6000_explicit_options.abi
	only for -mabi=spe/no-spe and -mabi=altivec.

From-SVN: r112555
2006-03-31 10:57:51 +10:30
GCC Administrator
82107c9b29 Daily bump.
From-SVN: r112553
2006-03-31 00:17:50 +00:00
Geoffrey Keating
24cec83cc9 darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with !Zdynamiclib.
* config/darwin.h (LINK_COMMAND_SPEC): Don't try to protect %S with
	!Zdynamiclib.

From-SVN: r112549
2006-03-30 23:46:32 +00:00
Roger Sayle
240c7c0274 re PR middle-end/22375 (fold_builtins creates mis-matched types)
PR middle-end/22375
	* trans.c (gfc_trans_runtime_check): Promote the arguments of
	__builtin_expect to the correct types, and the result back to
	boolean_type_node.

From-SVN: r112547
2006-03-30 22:37:55 +00:00
Francois-Xavier Coudert
7d30b888b5 re PR libfortran/26712 (gfortran on mac intel runtime floating point exception when printing)
PR libfortran/26712
	* config/fpu-387.h: Add special case for handling of SSE
	control bit on i386-darwin.

From-SVN: r112546
2006-03-30 22:00:21 +00:00