1. 25 Mar, 2007 4 commits
    • fix in tree-if-conv.c · 3ece6cc2
      From-SVN: r123194
      Revital Eres committed
    • darwin.md (load_macho_picbase): Ignore operand 0. · e65a3857
              * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
              (load_macho_picbase_{si,di}): Convert to LR hard reg.
              (call_indirect_nonlocal_darwin64): Same.
              (call_nonlocal_darwin64): Same.
              (call_value_indirect_nonlocal_darwin64): Same.
              (call_value_nonlocal_darwin64): Same.
              (sibcall_nonlocal_darwin64): Same.
              (sibcall_value_nonlocal_darwin64): Same.
              (sibcall_symbolic_64): Same.
              (sibcall_value_symbolic_64): Same.
              * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
              LR pseudo.
              (rs6000_emit_load_toc_table): Same.
              * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
              * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
              (mull_call): Same.
              (divss_call): Same.
              (divus_call): Same.
              (quoss_call): Same.
              (quous_call): Same.
              (load_toc_v4_pic_si): Same
              (load_toc_v4_PIC_1): Same.
              (load_toc_v4_PIC_1b): Same.
              (call_indirect_aix{32,64}): Same.
              (call_value_indirect_aix{32,64}): Same.
              (call): Same.
              (call_value): Same.
              (call_local{32,64}): Same.
              (call_value_local{32,64}): Same.
              (call_indirect_nonlocal_aix{32,64}): Same.
              (call_nonlocal_aix{32,64}): Same.
              (call_value_indirect_nonlocal_aix{32,64}): Same.
              (call_value_nonlocal_aix{32,64}): Same.
              (call_indirect_nonlocal_sysv<mode>): Same.
              (call_nonlocal_sysv<mode>): Same.
              (call_value_indirect_nonlocal_sysv<mode>): Same.
              (call_value_nonlocal_sysv<mode>): Same.
              (sibcall): Same.
              (sibcall_local{32,64}): Same.
              (sibcall_value_local{32,64}): Same.
              (sibcall_nonlocal_aix{32,64}): Same.
              (sibcall_value_nonlocal_aix{32,64}): Same.
              (sibcall_value_nonlocal_aix{32,64}): Same.
              (sibcall_nonlocal_sysv<mode>): Same.
              (sibcall_value): Same.
              (sibcall_value_nonlocal_sysv<mode>): Same.
      
      From-SVN: r123193
      David Edelsohn committed
    • lib1funcs.asm (div0): Use ARM_FUNC_START and do_push. · 3303be15
      2007-03-24  Paul Brook  <paul@codesourcery.com>
      
      	* config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
      	* config/arm/linux-eabi.h: Remove legacy syscall hack.
      
      From-SVN: r123192
      Paul Brook committed
    • Daily bump. · 81b780b0
      From-SVN: r123190
      GCC Administrator committed
  2. 24 Mar, 2007 10 commits
    • re PR fortran/30655 (Undue out-of-bounds warning) · d912240d
      	PR fortran/30655
      
      	* expr.c (check_dimension): Fix logic of comparisons.
      
      	* gfortran.dg/bounds_check_6.f90: New test.
      
      From-SVN: r123187
      Francois-Xavier Coudert committed
    • constraints.md: New file. · 13f70342
              * config/ia64/constraints.md: New file.
              * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
              satisfies_constraint_?.
              * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
              ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
              ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
              ia64_output_mi_thunk): Likewise.
              (ia64_const_ok_for_letter_p): Remove.
              (ia64_const_double_ok_for_letter_p): Remove. 
              (ia64_extra_constraint): Remove.
              * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
              (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
              CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
              CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
              CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
              EXTRA_MEMORY_CONSTRAINT): Remove.
              * config/ia64/ia64.md: Include constriants.md.  Replace
              CONST_OK_FOR_? with satisfies_constraint_?.
      
      From-SVN: r123186
      Richard Henderson committed
    • Add BID decimal support · 79b87c74
      Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
      Co-Authored-By: Marius Cornea <marius.cornea@intel.com>
      
      From-SVN: r123185
      Michael Meissner committed
    • re PR fortran/31215 (ICE on valid code with gfortran) · cca64386
      2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31215
      	* trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
      	int result that is non-zero if the expression is the function
      	result.  Only the characteristics of the result expression
      	can be used in a procedure interface, so simplify LEN in situ
      	using its character length.
      
      	PR fortran/31219
      	PR fortran/31200
      	* trans-expr.c (gfc_conv_function_call): Do not use
      	gfc_conv_expr_reference for actual pointer function with formal
      	target because a temporary is created that does not transfer
      	the reference correctly.  Do not indirect formal pointer
      	functions since it is the function reference that is needed.
      
      2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31219
      	* gfortran.dg/pointer_function_actual_1.f90: New test.
      
      	PR fortran/31200
      	* gfortran.dg/pointer_function_actual_2.f90: New test.
      
      	PR fortran/31215
      	* gfortran.dg/result_in_spec_1.f90: New test.
      
      From-SVN: r123184
      Paul Thomas committed
    • re PR fortran/31215 (ICE on valid code with gfortran) · 6a661315
      2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31215
      	* trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
      	int result that is non-zero if the expression is the function
      	result.  Only the characteristics of the result expression
      	can be used in a procedure interface, so simplify LEN in situ
      	using its character length.
      
      	PR fortran/31219
      	PR fortran/31200
      	* trans-expr.c (gfc_conv_function_call): Do not use
      	gfc_conv_expr_reference for actual pointer function with formal
      	target because a temporary is created that does not transfer
      	the reference correctly.  Do not indirect formal pointer
      	functions since it is the function reference that is needed.
      
      2007-03-24  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/31219
      	* gfortran.dg/pointer_function_actual_1.f90: New test.
      
      	PR fortran/31200
      	* gfortran.dg/pointer_function_actual_2.f90: New test.
      
      	PR fortran/31215
      	* gfortran.dg/result_in_spec_1.f90: New test.
      
      From-SVN: r123183
      Paul Thomas committed
    • * gfortran.h: Edit comments on GFC_STD_*. · d87008f2
      From-SVN: r123182
      Brooks Moses committed
    • invoke.texi: Misc. · 276419d0
      * invoke.texi: Misc. small typo fixes.
      (-Wcharacter-truncation): Add.
      (-Wnonstd-intrinsics): Correct spelling.
      (-std=): Edit.
      (-fintrinsic-modules-path): Add.
      
      From-SVN: r123181
      Brooks Moses committed
    • return_fl2.c (return_fl): Mark as static. · 34a6ccda
              * testsuite/libffi.call/return_fl2.c (return_fl): Mark as static.
              Use 'volatile float sum' to create sum of floats to avoid false
              negative due to excess precision on ix86 targets.
              (main): Ditto.
      
      From-SVN: r123180
      Uros Bizjak committed
    • * MAINTAINERS (Modulo Scheduler): Add myself. · 653de3e3
      From-SVN: r123178
      Ayal Zaks committed
    • Daily bump. · 1354f345
      From-SVN: r123176
      GCC Administrator committed
  3. 23 Mar, 2007 25 commits
    • * tree-dump.c (dump_files): Correct comment. · ed3d212b
      From-SVN: r123171
      Ian Lance Taylor committed
    • Fix accidental commit · f54171a0
      From-SVN: r123169
      Steven Bosscher committed
    • Remove the patch from ChangeLog · c0a78a17
      From-SVN: r123168
      Steven Bosscher committed
    • tracer.c (tracer): Don't take FLAGS argument. · ad21dab7
      	* tracer.c (tracer): Don't take FLAGS argument.  Assert we are
      	in cfglayout mode.  Don't go into and out of cfglayout mode.
      	Link the blocks in the order of the constructed traces.
      	(rest_of_handle_tracer): Adjust call to tracer.
      	* loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
      	Don't go into cfglayout mode.
      	(rtl_loop_done): Don't go out of cfglayout mode.
      	* cfglayout.c (relink_block_chain): New function, split out from...
      	(fixup_reorder_chain): ...here.  Remove redundant checking.
      	(cfg_layout_finalize): Don't clear the header, footer, and aux
      	fields here, move the code to do so to relink_block_chain.  Likewise
      	for free_original_copy_tables.
      	* rtl.h (tracer): Update prototype.
      	* bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
      	Assert we are in cfglayout mode.  Don't go into and out of cfglayout
      	mode.  Use relink_block_chain to serialize the CFG according to the
      	new basic block order.  Move targetm.cannot_modify_jumps_p check from
      	here...
      	(gate_handle_reorder_blocks): ...to here.
      	(duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
      	from here...
      	(gate_duplicate_computed_gotos): ...to here.
      	(rest_of_handle_reorder_blocks): Don't see if anything has changed,
      	something always changes when going into and out of cfglayout mode.
      	Perform an expensive cfg cleanup while going into cfglayout mode.
      	Always update liveness information on HAVE_conditional_execution
      	targets.  Reserialize the basic blocks and go out of cfglayout mode.
      	* reg-stack.c: Include cfglayout.h.
      	(rest_of_handle_stack_regs): Go into and out of cfglayout mode around
      	the call to reorder_basic_blocks.
      	* basic-block.h (reorder_basic_blocks): Update prototype.
      	(relink_block_chain): New prototype.
      	* passes.c (pass_outof_cfg_layout_mode): Move after cse2.
      
      From-SVN: r123167
      Steven Bosscher committed
    • 4402.cc: Likewise use std::numeric_limits<>::max(). · 1f93ef92
      2007-03-23  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc:
      	Likewise use std::numeric_limits<>::max().
      	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc:
      	Minor tweaks.
      
      From-SVN: r123166
      Paolo Carlini committed
    • 4402.cc: Likewise use std::numeric_limits<>::max(). · e49286bf
      2007-03-23  Paolo Carlini  <pcarlini@suse.de>
      
      	* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/4402.cc:
      	Likewise use std::numeric_limits<>::max().
      	* testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc:
      	Minor tweaks.
      
      From-SVN: r123165
      Paolo Carlini committed
    • mips.md (type, [...]): Change xfer instruction type to mfc and mtc, as applicable. · 00f9e1ca
      	* config/mips/mips.md (type, hazard, *movdi_32bit,
      	*movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
      	*movhi_internal, *movqi_internal, *movsf_hardfloat,
      	*movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
      	movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
      	mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
      	applicable.
      	(movcc): Change first xfer to multi.
      	* config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
      	config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
      	config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
      	config/mips/generic.md: Change reservations using "xfer" to use
      	"mfc,mtc".
      	* config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
      	using match_operand.
      	(ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
      	* config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
      	examining mode.
      	(ir_sr70_xfer_to): Use "mtc" instead of examining mode.
      
      From-SVN: r123164
      Joseph Myers committed
    • * testsuite/27_io/basic_ostream/inserters_arithmetic/char/4402.cc · 4f2f9797
      	(test02): Use std::numeric_limits<>::max() to get suitable large
      	values.
      
      From-SVN: r123163
      Hans-Peter Nilsson committed
    • libgomp.exp (libgomp_init): Add -shared-libgcc for *-*-darwin*. · 1850744b
      2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
      
      	* testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
      	*-*-darwin*.
      	* testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
      	and use it if found.
      
      From-SVN: r123162
      Andreas Tobler committed
    • MAINTAINERS (fortran 95 front end): Add myself. · b737d953
       * MAINTAINERS (fortran 95 front end): Add myself.
      (c++ front end): whitespace fix.
      
      From-SVN: r123161
      Brooks Moses committed
    • acx.m4 (ACX_BUGURL): Replace "@" with "@@" for REPORT_BUGS_TEXI. · 59eaca2f
      2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* acx.m4 (ACX_BUGURL): Replace "@" with "@@" for
      	REPORT_BUGS_TEXI.
      
      From-SVN: r123160
      H.J. Lu committed
    • i386.c: Remove unnecessary function declarations. · 2ed941ec
              * config/i386/i386.c: Remove unnecessary function declarations.
              Move targetm definition, and all related macros, to the end of
              the file.  Resort some functions to put definitions before uses.
              (ix86_attribute_table): Make static.  Move to end of file.
              (ix86_gimplify_va_arg): Make static.
      
      From-SVN: r123159
      Richard Henderson committed
    • link.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types and… · dec93f90
      link.cc (_Jv_Linker::resolve_method_entry): Ensure that the argument types and the return type of the found method match...
      
      2007-03-23  Gary Benson  <gbenson@redhat.com>
      
      	* link.cc (_Jv_Linker::resolve_method_entry):
      	Ensure that the argument types and the return type of the
      	found method match those expected by the calling method.
      
      From-SVN: r123156
      Gary Benson committed
    • re PR fortran/30834 (ICE with kind=8 exponentiaton) · 3c2e8043
      	PR fortran/30834
      
      	* arith.c (complex_pow): Rewrite to handle large power.
      	(gfc_arith_power): Handle large power in the real and integer
      	cases.
      
      	* gfortran.dg/integer_exponentiation_3.F90: New	test.
      	* gfortran.dg/integer_exponentiation_4.f90: New test.
      	* gfortran.dg/integer_exponentiation_5.F90: New test.
      
      From-SVN: r123154
      Francois-Xavier Coudert committed
    • cp-tree.h (current_tempalte_parms): Improve documentation. · 03c17ccd
      	* cp-tree.h (current_tempalte_parms): Improve documentation.
      	* pt.c (current_template_args): Likewise.
      
      From-SVN: r123153
      Mark Mitchell committed
    • re PR c++/30863 (Unsigned templatized struct treated as unsigned int) · 8b84995a
      	PR c++/30863
      	* parser.c (cp_parser_parse_and_diagnose_invalid_type_name): Do
      	not consume tokens when failing.
      	PR c++/30863
      	* g++.dg/template/error24.C: New test.
      	* g++.dg/parse/tmpl-outside1.C: Tweak error markers.
      
      From-SVN: r123152
      Mark Mitchell committed
    • Mark Mitchell <mark@codesourcery.com> PR c++/31273 · 725d6b87
      	    Mark Mitchell  <mark@codesourcery.com>
      	PR c++/31273
      	* call.c (standard_conversion): Use type_decays_to.  Keep FCODE
      	consistent with FROM.
      	PR c++/31273
      	* g++.dg/expr/bitfield7.C: New test.
      
      From-SVN: r123150
      Mark Mitchell committed
    • error.c (dump_expr): Handle dependent names that designate types. · 5a023baa
      	* error.c (dump_expr): Handle dependent names that designate types.
      	* cxx-pretty-print.c (pp_cxx_unqualified_id): Handle TYPENAME_TYPE.
      
      From-SVN: r123148
      Gabriel Dos Reis committed
    • * acx.m4 (ACX_PKGVERSION, ACX_BUGURL): Define. · ecee6802
      From-SVN: r123147
      Joseph Myers committed
    • i386.c (ix86_function_regparm): Early exit for 64-bit... · ee2f65b4
              * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
              don't increase local_regparm with force_align_arg_pointer check.
              (ix86_function_sseregparm): Assert 32-bit.
              (type_has_variadic_args_p): New.
              (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
              type_has_variadic_args_p.
              (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
              (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
              use memset instead.  Do maybe_vaarg check first; skip attribute
              tests if true; skip attribute tests for 64-bit.
              (construct_container): Remove TARGET_DEBUG_ARG.
              (function_arg_advance_32, function_arg_advance_64): Split out ...
              (function_arg_advance): ... from here.
              (function_arg_32, function_arg_64): Split out ...
              (function_arg): ... from here.
              (ix86_pass_by_reference): Tidy.
              (ix86_function_value_regno_p): Rearrange w/ switch on regno.
              (function_value_32): New, from parts of ix86_function_value
              and ix86_value_regno.
              (function_value_64): New, from parts of ix86_function_value
              and ix86_libcall_value.
              (ix86_function_value_1): New.
              (ix86_function_value, ix86_libcall_value): Use it.
              (return_in_memory_32, return_in_memory_64): Split out ...
              (ix86_return_in_memory): ... from here. 
              (ix86_struct_value_rtx): Skip for 64-bit.
              (ix86_libcall_value, ix86_value_regno): Remove.
              (setup_incoming_varargs_64): Split out ...
              (ix86_setup_incoming_varargs): ... from here. 
              (ix86_va_start): Remove TARGET_DEBUG_ARG.
              (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
              * config/i386/i386-protos.h (ix86_function_value): Remove.
              * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
      
      From-SVN: r123146
      Richard Henderson committed
    • Daily bump. · 424c5799
      From-SVN: r123142
      GCC Administrator committed
    • re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs past EOF) · 9a7b6ea7
      2007-03-22  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
      
      	PR libgfortran/31052
      	* file_pos.c: Update Copyright year.
      	* io/open.c (test_endfile): Restore test_endfile to fix SPEC regression.
      	Update Copyright year.
      	* io/io.h: Same.
      	* io/unix.c (is_special): Add missing type for this function.
      	Update Copyright year.
      	* io/transfer.c (next_record_r): Restore test_endfile.
      	(st_read): Fix whitespace.  Update Copyright year
      
      From-SVN: r123139
      Jerry DeLisle committed
    • re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec()) · 46ecc2bc
      	PR libgcj/31228
      	* configure.ac: Add checks for getrlimit and sys/resource.h.
      	* include/posix.h (_Jv_platform_close_on_exec): Remove.
      	* include/config.h.in: Regenerate.
      	* configure: Regenerate.
      	* gnu/java/nio/channels/natFileChannelPosix.cc (open): Remove call to
      	_Jv_platform_close_on_exec;
      	* gnu/java/net/natPlainSocketImplPosix.cc (create): Likewise.
      	(accept): Likewise.
      	* gnu/java/net/natPlainDatagramSocketImplPosix.cc (create):Likewise.
      	* java/lang/natPosixProcess.cc: Include sys/resource.h.
      	(nativeSpawn): Close all file descriptors.  Don't set FD_CLOEXEC on
      	pipes.
      
      From-SVN: r123138
      David Daney committed
  4. 22 Mar, 2007 1 commit
    • re PR other/23572 (No warning for assigning a value to a 'float' variable that… · 92ef5cf9
      re PR other/23572 (No warning for assigning a value to a 'float' variable that overflows with option -Wextra)
      
      2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR other/23572
      	* c-lex.c (interpret_float): On overflow, emit pedantic warning if
      	infinities not supported, otherwise emit warning if -Woverflow. On
      	underflow, emit warning if -Woverflow.
      	* real.c (real_from_string): Return -1 if underflow, +1 if overflow
      	and 0 otherwise.
      	* real.h (real_from_string): Update declaration
      testsuite/
      	* gcc.dg/float-range-4.c: New.
      	* gcc.dg/float-range-1.c: Update. Test for a warning.
      	* gcc.dg/float-range-3.c: New.
      	* gcc.dg/float-range-5.c: New.
      
      From-SVN: r123137
      Manuel López-Ibáñez committed