aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2007-03-19builtins.c (expand_builtin_sync_operation, [...]): Care for extending ↵Michael Matz3-10/+51
CONST_INTs correctly. * builtins.c (expand_builtin_sync_operation, expand_builtin_compare_and_swap, expand_builtin_lock_test_and_set): Care for extending CONST_INTs correctly. * config/i386/sync.md (sync_double_compare_and_swapdi_pic, sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint for operand 3. From-SVN: r123064
2007-03-19tm.texi: Add brackets around the return type of TARGET_SECONDARY_RELOAD.Andreas Krebbel2-1/+6
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * doc/tm.texi: Add brackets around the return type of TARGET_SECONDARY_RELOAD. From-SVN: r123062
2007-03-19re PR tree-optimization/31254 (verify_ssa failed: type mismatch between an ↵Andrew Pinski4-6/+44
SSA_NAME and its symbol) 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com> Richard Guenther <rguenther@suse.de> PR tree-optimization/31254 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use handled_component_p () where appropriate. Continue propagating into the rhs if we propagated into an INDIRECT_REF on the lhs. * gcc.dg/torture/pr31254.c: New testcase. Co-Authored-By: Richard Guenther <rguenther@suse.de> From-SVN: r123060
2007-03-19pr26565.c: Expect warning on packed field for target default_packed.Hans-Peter Nilsson2-1/+6
* gcc.dg/torture/pr26565.c: Expect warning on packed field for target default_packed. From-SVN: r123059
2007-03-19s390.md (op_type attribute): RRR instruction type added.Andreas Krebbel2-213/+406
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.md (op_type attribute): RRR instruction type added. (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros. (xde, xdee): Mode attributes adjusted to support DFP modes. (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added. ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters, DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3", "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3", "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3", "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc", "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP numbers. ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31", "movsf"): Insn definitions removed. ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp", "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2", "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn definitions added. ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>", "reload_in<mode>", "reload_out<mode>"): Expander added. ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"): Expander removed. From-SVN: r123058
2007-03-19s390.md: Only non-functional changes.Andreas Krebbel2-133/+138
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.md: Only non-functional changes. Renamed FPR mode macro to BFP all over the file. From-SVN: r123057
2007-03-19s390.md (UNSPEC_COPYSIGN): New constant.Andreas Krebbel3-6/+138
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.md (UNSPEC_COPYSIGN): New constant. (op_type attribute): RRF instruction type added. (fT0): New mode attribute. ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc", "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added. * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction no secondary memory is needed when moving DFmode values between GPRs and FPRs. From-SVN: r123056
2007-03-19s390.opt ("mhard-float", [...]): Bit value inverted and documentation adjusted.Andreas Krebbel5-7/+54
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value inverted and documentation adjusted. ("mhard-dfp", "msoft-dfp"): New options. * config/s390/s390.c (s390_handle_arch_option): New architecture switch: z9-ec. (override_options): Sanity checks for the new options added. * config.gcc: New architecture switch: z9-ec. * config/s390/s390.h (processor_flags): PF_DFP added. (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added. (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled when the bit is NOT set so remove it from the defaults. From-SVN: r123055
2007-03-19genemit.c (main): Print include statement for dfp.h.Andreas Krebbel3-2/+12
2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com> * genemit.c (main): Print include statement for dfp.h. * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum is not available. From-SVN: r123054
2007-03-19* config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.Hans-Peter Nilsson2-1/+4
From-SVN: r123053
2007-03-19re PR fortran/31203 ([4.1/4.2 only] Character length should never be negative)Francois-Xavier Coudert4-1/+95
PR fortran/31203 * trans-expr.c (gfc_trans_init_string_length): Length should never be negative. (gfc_conv_function_call): Likewise. * gfortran.dg/string_length_1.f90: New test. From-SVN: r123051
2007-03-19re PR target/31022 ([SH4] internal compiler error with inline)Kaz Kojima2-1/+7
PR target/31022 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set instead of PATTERN. From-SVN: r123049
2007-03-19pa.c (output_deferred_plabels, [...]): Cleanup formatting of targetm calls.John David Anglin2-14/+20
* pa.c (output_deferred_plabels, output_bb, output_millicode_call, attr_length_call, output_call, output_indirect_call): Cleanup formatting of targetm calls. From-SVN: r123048
2007-03-19Daily bump.GCC Administrator1-1/+1
From-SVN: r123046
2007-03-18* config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.Hans-Peter Nilsson2-0/+7
From-SVN: r123043
2007-03-18pa.md: Add fpstore_load and store_fpload instruction types.John David Anglin3-35/+99
* pa.md: Add fpstore_load and store_fpload instruction types. Provide reservation, bypass and anti-bypass descriptions for these instructions. Update move patterns. * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and TYPE_FPSTORE. From-SVN: r123041
2007-03-18re PR testsuite/30395 (FAIL: gcc.dg/pr16194.c (test for errors, line 59))John David Anglin2-0/+7
PR testsuite/30395 * gcc.dg/pr16194.c: Provide define for REG on __hppa__. From-SVN: r123040
2007-03-18re PR libfortran/31052 ([4.2 only] Bad IOSTAT values when readings NAMELISTs ↵Jerry DeLisle2-0/+111
past EOF) 2007-03-18 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31052 * gfortran.dg/namelist_27.f90: New test. From-SVN: r123039
2007-03-18re PR fortran/30531 ([4.2 only] allocatable component and intent(out) yield ↵Paul Thomas8-69/+111
ICE in fold_convert) 2007-03-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/30531 PR fortran/31086 * symbo.c : Add gfc_derived_types. (gfc_free_dt_list): Free derived type list gfc_derived_types. (gfc_free_namespace): Remove call to gfc_free_dt_list. (gfc_symbol_done_2): Call gfc_free_dt_list. * gfortran.h : Declare gfc_derived_types to be external. Remove derived types field from gfc_namespace. * resolve.c (resolve_fl_derived): Refer to gfc_derived types rather than namespace derived_types. (resolve_fntype): Remove special treatment for module derived type functions. * trans-types.c (gfc_get_derived_type): Remove search for like derived types. Finish by copying back end declaration to like derived types in the derived type list gfc_derived_types. 2007-03-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/30531 * gfortran.dg/used_types_14.f90: New test. PR fortran/31086 * gfortran.dg/used_types_15.f90: New test. From-SVN: r123037
2007-03-18tree-vect-transform.c (get_initial_def_for_induction): Replace ↵Dorit Nuzman5-2/+49
GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS. * tree-vect-transform.c (get_initial_def_for_induction): Replace GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS. (get_initial_def_for_reduction): Likewise. From-SVN: r123034
2007-03-18Daily bump.GCC Administrator1-1/+1
From-SVN: r123032
2007-03-17re PR tree-optimization/29922 ([Linux] ICE in insert_into_preds_of_block)Daniel Berlin3-378/+155
2007-03-16 Daniel Berlin <dberlin@dberlin.org> Fix PR tree-optimization/29922 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members. (get_representative): Removed. (value_dies_in_block_x): Update for rvuse removal. (valid_in_sets): Update for renaming of vuses_dies_in_block_x. (compute_antic_aux): Handle when PHI nodes appear in non-single-successors. (dump_bitmap_of_names): Removed. (compute_antic_safe): Renamed and removed rvuse calculation. Calculate only antic safe. (insert_into_preds_of_block): Remove assert. (execute_pre): Update for renamed functions. (defer_or_phi_translate_block): New function. From-SVN: r123029
2007-03-17re PR fortran/31120 ([4.1/4.2 only] ICE with integer_exponentiation_1.f90 ↵Francois-Xavier Coudert4-5/+281
and -ffast-math) PR fortran/31120 * trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi. (gfc_conv_cst_int_power): Handle integer exponent with care, since it might be too large for us. * gfortran.dg/integer_exponentiation_2.f90: New test. From-SVN: r123028
2007-03-17* tree-data-ref.h: Remove the prototype for analyze_array.Kazu Hirata2-1/+2
From-SVN: r123026
2007-03-17arm.c, [...]: Fix comment typos.Kazu Hirata11-11/+19
* config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c, config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment typos. * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos. Follow spelling conventions. From-SVN: r123025
2007-03-17* cp-tree.def, parser.c, pt.c: Fix comment typos.Kazu Hirata4-4/+8
From-SVN: r123024
2007-03-17re PR tree-optimization/31041 (verify_stmts failed: invalid operand to ↵Dorit Nuzman4-4/+50
binary operator with -O2 -ftree-vectorize) PR tree-optimization/31041 * tree-vect-transform.c (get_initial_def_for_induction): Call force_gimple_operand. From-SVN: r123023
2007-03-17ipa-type-escape fix for adaOlga Golovanevsky2-20/+20
From-SVN: r123022
2007-03-17final.c (final_scan_insn): Alter the condition of a conditional trap if we ↵Kazu Hirata2-0/+75
have nonstandard CC. * final.c (final_scan_insn): Alter the condition of a conditional trap if we have nonstandard CC. From-SVN: r123021
2007-03-17re PR fortran/31184 (gfortran option description wrong)Francois-Xavier Coudert2-1/+6
PR fortran/31184 * invoke.texi: Fix typo. From-SVN: r123018
2007-03-17Daily bump.GCC Administrator1-1/+1
From-SVN: r123009
2007-03-16configure.ac: Remove excess quoting from asm line 0 test.Alexandre Oliva3-3/+8
* configure.ac: Remove excess quoting from asm line 0 test. * configure: Rebuilt. From-SVN: r123006
2007-03-16invoke.texi (-Wconversion): Document warnings specific to C++.Manuel López-Ibáñez14-35/+345
2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org> * doc/invoke.texi (-Wconversion): Document warnings specific to C++. * c-common.c (convert_and_check): Move warning logic to... (warnings_for_convert_and_check): ...here. Define. * c-common.h (warnings_for_convert_and_check): Declare. cp/ * cvt.c (cp_convert_and_check) : Define. * cp-tree.h (cp_convert_and_check): Declare. * call.c (convert_conversion_warnings): Rename to conversion_null_warnings. The warning for floating-point to integer is handled by convert_and_check in convert_like_real. (convert_like_real): convert_conversion_warnings was renamed as conversion_null_warnings. * typeck.c (build_binary_op): Use cp_convert_and_check to warn for overflow and changes of value during conversion. testsuite/ * g++.dg/warn/Wconversion-integer.C: New * g++.dg/warn/Wconversion-real.C: New. * g++.dg/warn/Wconversion-real-integer.C: New. * g++.dg/warn/conv2.C: Updated. From-SVN: r123005
2007-03-16pa.c (attr_length_call): Partially revert change of 2007-03-09.John David Anglin2-3/+8
* pa.c (attr_length_call): Partially revert change of 2007-03-09. (output_call): Likewise. From-SVN: r123002
2007-03-16intmax_t-1.c: Restrict XFAIL to VxWorks kernels; exclude RTPs.Richard Sandiford2-1/+6
gcc/testsuite/ * gcc.dg/intmax_t-1.c: Restrict XFAIL to VxWorks kernels; exclude RTPs. From-SVN: r122993
2007-03-16vxworks.h (SUPPORTS_INIT_PRIORITY): Define.Richard Sandiford2-0/+8
gcc/ * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define. From-SVN: r122992
2007-03-16vx-common.h (WINT_TYPE, [...]): Define.Richard Sandiford2-0/+10
gcc/ * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define. From-SVN: r122991
2007-03-16i386.c (override_options): Add PTA_NO_SAHF to k8...Uros Bizjak2-7/+16
* config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8, opteron, athlon-64 and athlon-fx processor_alias_table entries. From-SVN: r122989
2007-03-16re PR tree-optimization/31183 (ICE in int_cst_value, at tree.c:7684 with ↵Sebastian Pop3-6/+29
-O3 -ftree-loop-linear) PR tree-optimization/31183 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops): Use double_int instead of unsigned int for representing access_strides. * testsuite/gcc.dg/tree-ssa/pr31183.c: New. From-SVN: r122988
2007-03-16[multiple changes]Tobias Burnus2-1/+28
2007-03-16 Paul Thomas <pault@gcc.gnu.org> Tobias Burnus <burnus@net-b.de> PR fortran/31188 * expr.c (find_array_section): Allow non-expression-constant variables. 2007-03-16 Tobias Burnus <burnus@net-b.de> PR fortran/31188 * gfortran.dg/parameter_array_dummy.f90: New test. From-SVN: r122987
2007-03-16re PR tree-optimization/31146 (forwprop does not look through casts)Richard Guenther4-34/+81
2007-03-16 Richard Guenther <rguenther@suse.de> PR tree-optimization/31146 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure to allow recursion of forward_propagate_addr_expr. (forward_propagate_addr_into_variable_array_index): Likewise. (forward_propagate_addr_expr): Likewise. (tree_ssa_forward_propagate_single_use_vars): Likewise. (forward_propagate_addr_expr_1): Recurse on simple copies instead of propagating into them. Do so for useless conversions as well. (forward_propagate_addr_expr): Clean up unused statements after recursion. * g++.dg/tree-ssa/pr31146.C: New testcase. From-SVN: r122985
2007-03-16Fix top in last change.Richard Sandiford1-1/+1
From-SVN: r122984
2007-03-16target-supports.exp (check_missing_uclibc_feature): Don't assume that the ↵Richard Sandiford2-9/+11
target has <features.h>. gcc/testsuite/ * lib/target-supports.exp (check_missing_uclibc_feature): Don't assume that the target has <features.h>. From-SVN: r122983
2007-03-16builtins.c (expand_builtin_cexpi): Use the right argument for the expansion ↵Richard Guenther2-1/+6
via cexp. 2007-03-16 Richard Guenther <rguenther@suse.de> * builtins.c (expand_builtin_cexpi): Use the right argument for the expansion via cexp. From-SVN: r122982
2007-03-16trans-decl.c (gfc_generate_function_code): Use all arguments of set_std.Tobias Burnus2-1/+6
2007-03-16 Tobias Burnus <burnus@net-b.de> * trans-decl.c (gfc_generate_function_code): Use all arguments of set_std. From-SVN: r122981
2007-03-1620020426-2.c: Add the fpic requirement to the PIC dg-options rather than to ↵Richard Sandiford2-2/+6
the whole test. gcc/testsuite/ * gcc.dg/20020426-2.c: Add the fpic requirement to the PIC dg-options rather than to the whole test. From-SVN: r122979
2007-03-16configure.ac: Don't require ELF binutils to tolerate # 0 "".Alexandre Oliva3-2/+7
* configure.ac: Don't require ELF binutils to tolerate # 0 "". * configure: Rebuilt. From-SVN: r122978
2007-03-16re PR debug/29906 (-g option creates internal compiler error)Alexandre Oliva4-2/+29
gcc/ChangeLog: PR debug/29906 * dwarf2out.c (force_type_die): Adjust comment. (dwarf2out_imported_module_or_decl): Handle base AT_import types. gcc/testsuite/ChangeLog: PR debug/29906 * g++.dg/debug/pr29906.C: New From-SVN: r122976
2007-03-16re PR libfortran/31099 (Runtime error on legal code using RECL)Jerry DeLisle2-0/+10
2007-03-15 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/31099 * gfortran.dg/unformatted_recl.f90: Update test. From-SVN: r122975
2007-03-15predicates.md (minmax_operator): Don't check operands here.DJ Delorie2-6/+5
* config/frv/predicates.md (minmax_operator): Don't check operands here. From-SVN: r122971