summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rs6000.c (rs6000_frame_related): Don't emit a REG_FRAME_RELATED_EXPR note ↵Alan Modra2012-04-252-27/+70
| | | | | | | | | | | | | | when... * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a REG_FRAME_RELATED_EXPR note when the instruction exactly matches the replacement. (emit_frame_save): Delete frame_ptr param. Rename total_size to frame_reg_to_sp. (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related and emit_frame_save calls. Cope with possibly missing note. From-SVN: r186796
* i386-cpuinfo.c: Set __cpu_vendor always.Sriraman Tallam2012-04-252-3/+16
| | | | | | | | 2012-04-24 Sriraman Tallam <tmsriram@google.com> * libgcc/config/i386/i386-cpuinfo.c: Set __cpu_vendor always. From-SVN: r186795
* re PR libstdc++/52689 (static linking with libstdc++ fails)Benjamin Kosnik2012-04-252-0/+36
| | | | | | | | | 2012-04-24 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/52689 * testsuite/17_intro/static.cc: New. From-SVN: r186794
* Daily bump.GCC Administrator2012-04-251-1/+1
| | | | From-SVN: r186793
* This patch adds new builtins to check for cpu type and features.Sriraman Tallam2012-04-2510-1/+921
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-04-24 Sriraman Tallam <tmsriram@google.com> This patch adds new builtins to check for cpu type and features. * __builtin_cpu_is ("<CPUNAME>") * __builtin_cpu_supports ("<FEATURE>") apart from the cpu init builtin, __builtin_cpu_init. List of CPU names : * "amd" * "intel" * "atom" * "core2" * "corei7" * "nehalem" * "westmere" * "sandybridge" * "amdfam10h" * "barcelona" * "shanghai" * "istanbul" * "bdver1" * "bdver2" List of CPU features : * "cmov" * "mmx" * "popcnt" * "sse" * "sse2" * "sse3" * "ssse3" * "sse4.1" * "sse4.2" * "avx" * config/i386/i386.c (build_processor_model_struct): New function. (make_var_decl): New function. (fold_builtin_cpu): New function. (ix86_fold_builtin): New function. (make_cpu_type_builtin): New function. (ix86_init_platform_type_builtins): New function. (ix86_expand_builtin): Expand new builtins by folding them. (ix86_init_builtins): Make new builtins to detect CPU type. (TARGET_FOLD_BUILTIN): New macro. (IX86_BUILTIN_CPU_INIT): New enum value. (IX86_BUILTIN_CPU_IS): New enum value. (IX86_BUILTIN_CPU_SUPPORTS): New enum value. * config/i386/i386-builtin-types.def: New function type. * testsuite/gcc.target/builtin_target.c: New testcase. * doc/extend.texi: Document builtins. * libgcc/config/i386/i386-cpuinfo.c: New file. * libgcc/config/i386/t-cpuinfo: New file. * libgcc/config.host: Include t-cpuinfo. * libgcc/config/i386/libgcc-glibc.ver: Version symbol __cpu_model. From-SVN: r186789
* unwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC.Chao-ying Fu2012-04-242-0/+9
| | | | | | | | 2012-04-24 Chao-ying Fu <fu@mips.com> * unwind-dw2-fde-dip.c: Define USE_PT_GNU_EH_FRAME for BIONIC. From-SVN: r186788
* * vi.po: Update.Joseph Myers2012-04-242-32/+37
| | | | From-SVN: r186786
* * sv.po: Update.Joseph Myers2012-04-242-11/+15
| | | | From-SVN: r186784
* common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.Olivier Hainque2012-04-244-1/+20
| | | | | | | | | * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2. * toplev.c (process_options): Default to dwarf_version 2. * config/vxworks.c (vxworks_override_options): Default to strict-dwarf and dwarf_version 2. From-SVN: r186783
* gotest: Remove race in use of ../testdata.Ian Lance Taylor2012-04-241-14/+16
| | | | From-SVN: r186781
* tree-pretty-print.h (default_tree_printer): Do not declare.Manuel López-Ibáñez2012-04-246-75/+97
| | | | | | | | | | | | | | | | | | | 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org> gcc/ * tree-pretty-print.h (default_tree_printer): Do not declare. * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and intl.h. (default_tree_diagnostic_starter): Make static. (default_tree_printer): Move to here. Make static. (tree_diagnostics_defaults): New. * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare. * tree.c (free_lang_data): Use tree_diagnostics_defaults. * toplev.c: Do not include tree-pass.h. (default_tree_printer): Move from here. (general_init): Use tree_diagnostics_defaults. From-SVN: r186780
* mksysinfo: Only define PathMax if PATH_MAX is defined.Ian Lance Taylor2012-04-241-1/+2
| | | | From-SVN: r186778
* config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.Chao-ying Fu2012-04-245-20/+92
| | | | | | | | | | | | | | | | | | | | | 2012-04-24 Chao-ying Fu <fu@mips.com> * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file. (mips*-*-linux*): Append mips/linux-common.h to tm_file. * config/mips/gnu-user.h (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly. (GNU_USER_TARGET_LINK_SPEC): New define. (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly. (GNU_USER_TARGET_MATHFILE_SPEC): New define. (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and GNU_USER_TARGET_ENDFILE_SPEC. * config/mips/gnu-user64.h (LIB_SPEC): Remove. (GNU_USER_TARGET_LINK_SPEC): New define. (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC. * config/mips/linux-common.h: New file. From-SVN: r186777
* re PR testsuite/52641 (Test cases fail for 16-bit int targets)Georg-Johann Lay2012-04-242-0/+10
| | | | | | | | PR testsuite/52641 PR tree-optimizations/52891 * gcc.c-torture/compile/pr52891-2.c: Fix test for 16-bit int. From-SVN: r186776
* re PR c++/52363 (Presence/absence of -pedantic compilation affects run-time ↵Paolo Carlini2012-04-2413-205/+360
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | behavior) /cp 2012-04-24 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52363 * call.c (tourney, perform_overload_resolution, build_operator_new_call, build_user_type_conversion_1, build_user_type_conversion, perform_overload_resolution, add_template_candidate, add_template_candidate_real, add_template_conv_candidate, add_builtin_candidates, add_builtin_candidate, build_builtin_candidate, add_conv_candidate, add_function_candidate, implicit_conversion, reference_binding, build_list_conv, conditional_conversion, add_candidates, can_convert_array, build_aggr_conv, build_array_conv, build_complex_conv, conditional_conversion): Add tsubst_flags_t parameter. (joust): Likewise, use it to handle SFINAE as if pedantic. (add_list_candidates, build_integral_nontype_arg_conv, perform_overload_resolution, build_new_function_call, build_operator_new_call, build_op_call_1, build_conditional_expr_1, build_new_op_1, convert_like_real, convert_arg_to_ellipsis, convert_default_arg, convert_for_arg_passing, build_over_call, build_new_method_call_1, can_convert_arg, can_convert_arg_bad, perform_implicit_conversion_flags, perform_direct_initialization_if_possible, initialize_reference): Adjust. * typeck.c (casts_away_constness, casts_away_constness_r): Add tsubst_flags_t parameter. (convert_arguments, check_for_casting_away_constness, build_static_cast_1, build_ptrmemfunc, convert_for_assignment): Adjust. * decl.c (reshape_init_r, check_default_argument): Likewise. * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise. * pt.c (convert_nontype_argument, check_non_deducible_conversion): Likewise. * init.c (build_new_1): Likewise. * cvt.c (convert_to_reference, ocp_convert, build_type_conversion, build_expr_type_conversion, ): Likewise. * search.c (check_final_overrider): Likewise. * cp-tree.h (build_user_type_conversion, build_operator_new_call, can_convert, can_convert_arg, can_convert_arg_bad, convert_default_arg, convert_arg_to_ellipsis, convert_for_arg_passing): Adjust declaration. /testsuite 2012-04-24 Paolo Carlini <paolo.carlini@oracle.com> PR c++/52363 * g++.dg/cpp0x/sfinae35.C: New. * g++.dg/cpp0x/sfinae36.C: Likewise. From-SVN: r186774
* compiler: Fix order of evalation for m[0] = len(m) when m is a map.Ian Lance Taylor2012-04-241-6/+12
| | | | From-SVN: r186772
* re PR target/47197 (ICE in gimplify_expr, at gimplify.c:7153 on AltiVec code ↵Bill Schmidt2012-04-244-6/+45
| | | | | | | | | | | | | | | | | | | | | (vec_dst)) gcc: 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/47197 * config/rs6000/rs6000-c.c (fully_fold_convert): New function. (altivec_build_resolved_builtin): Call fully_fold_convert. gcc/testsuite: 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/47197 * gcc.target/powerpc/pr47197.c: New test. From-SVN: r186771
* i386.md (*addsi_2_zext): Remove wrong assert.Uros Bizjak2012-04-241-2/+0
| | | | | | | * config/i386.md (*addsi_2_zext): Remove wrong assert. (*addsi_3_zext): Ditto. From-SVN: r186769
* re PR target/53065 (ICE replace_reg_with_saved_mem, at caller-save.c:1125)Georg-Johann Lay2012-04-242-0/+10
| | | | | | | PR target/53065 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define. From-SVN: r186768
* compiler: Reject invalid composite literals.Ian Lance Taylor2012-04-241-1/+10
| | | | From-SVN: r186766
* re PR tree-optimization/53085 (writes to volatile struct members is missing)Richard Guenther2012-04-244-0/+29
| | | | | | | | | | | | 2012-04-24 Richard Guenther <rguenther@suse.de> PR tree-optimization/53085 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant stores. * g++.dg/torture/pr53085.C: New testcase. From-SVN: r186764
* tree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING.Richard Biener2012-04-242-4/+11
| | | | | | | | | 2012-04-24 Richard Guenther <rguenther@suse.de> * tree-if-conv.c (main_tree_if_conversion): Move bb under ENABLE_CHECKING. From-SVN: r186763
* genattrtab: avoid NULL-deref on errorJim Meyering2012-04-242-3/+9
| | | | | | | * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing absence of an define_enum call. From-SVN: r186761
* tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue ↵Richard Guenther2012-04-242-0/+16
| | | | | | | | | | | | loop is not re-used as unvectorized version record the its... 2012-04-24 Richard Guenther <rguenther@suse.de> * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If the epilogue loop is not re-used as unvectorized version record the its maximum number of iterations. From-SVN: r186760
* fixincl.c (fix_with_system): Add missing specifier.Tristan Gingold2012-04-244-3/+11
| | | | | | | | | | 2012-04-24 Tristan Gingold <gingold@adacore.com> * fixincl.c (fix_with_system): Add missing specifier. * configure.ac: Default to twoprocess on vms. * configure: Regenerate. From-SVN: r186759
* tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2.Andrew Pinski2012-04-242-3/+8
| | | | | | | | | 2012-04-24 Andrew Pinski <apinski@cavium.com> * tree-ssa-forwprop.c (simplify_bitwise_binary): Don't directly use def1/def2. From-SVN: r186757
* re PR tree-optimization/53098 (tree-vect-loop.c:1414:19: error: comparison ↵Richard Guenther2012-04-242-1/+7
| | | | | | | | | | | | between signed and unsigned integer expressions [-Werror=sign-compare]) 2012-04-24 Richard Guenther <rguenther@suse.de> PR tree-optimization/53098 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup comparison sign. From-SVN: r186754
* Add myself in Write After Approval list in MAINTAINERS file.Naveen H.S2012-04-242-0/+5
| | | | From-SVN: r186753
* compare_tests: Append '/' to make 'find' traverse symlinked directories.Manuel López-Ibáñez2012-04-242-2/+7
| | | | | | | | | | 2012-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org> contrib/ * compare_tests: Append '/' to make 'find' traverse symlinked directories. From-SVN: r186750
* re PR tree-optimization/33512 (Simple bitwise simplification missed)Andrew Pinski2012-04-246-29/+246
| | | | | | | | | | | | | | | | | | | | 2012-04-24 Andrew Pinski <apinski@cavium.com> PR tree-opt/33512 * tree-ssa-forwprop.c (defcodefor_name): New function. (simplify_bitwise_binary): Use defcodefor_name instead of manually Simplify "( X | Y) & X" to X and "( X & Y) | X" to X. Simplify "(~X | Y) & X" to "X & Y" and "(~X & Y) | X" to "X | Y". 2012-04-24 Andrew Pinski <apinski@cavium.com> PR tree-opt/33512 * gcc.dg/tree-ssa/andor-3.c: New testcase. * gcc.dg/tree-ssa/andor-4.c: New testcase. * gcc.dg/tree-ssa/andor-5.c: New testcase. From-SVN: r186749
* recog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to ↵Andreas Krebbel2012-04-245-8/+26
| | | | | | | | | | | | | | | | | add clobbers if... 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * recog.c (insn_invalid_p): Add IN_GROUP parameter and use validate_change to add clobbers if IN_GROUP is nonzero. (verify_changes): Call insn_invalid_p with IN_GROUP set to true. * recog.h (insn_invalid_p): Add IN_GROUP parameter to function prototype. * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP set to false. * config/s390/s390.c (insn_invalid_p): Likewise. From-SVN: r186748
* Use braced string notation where applicable for v850.mdNaveen H.S2012-04-241-464/+444
| | | | From-SVN: r186747
* Use braced string notation where applicable for h8300.mdNaveen H.S2012-04-241-1081/+1192
| | | | From-SVN: r186744
* re PR middle-end/53084 (GCC cannot handle array initialization of string ↵Jakub Jelinek2012-04-244-0/+38
| | | | | | | | | | | | | constant with point arithmetic properly) PR middle-end/53084 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF. (output_addressed_constants): Likewise. * gcc.c-torture/execute/pr53084.c: New test. From-SVN: r186742
* re PR target/52999 (ICE, segmentation fault in c_tree_printer)Jakub Jelinek2012-04-242-6/+17
| | | | | | | | PR middle-end/52999 * varasm.c (get_section): Don't ICE for section conflicts with built-in section kinds. From-SVN: r186741
* compiler: Error for invalid use of ... in call.Ian Lance Taylor2012-04-241-2/+22
| | | | From-SVN: r186739
* s390.h (LINK_SPEC): Remove, no longer needed.DJ Delorie2012-04-232-8/+7
| | | | | | | * config/s390/s390.h (LINK_SPEC): Remove, no longer needed. (LIBSTDCXX): Change to CPP2. From-SVN: r186737
* Daily bump.GCC Administrator2012-04-241-1/+1
| | | | From-SVN: r186734
* noexcept15.C: Adjust for Rev 186726 library changes.Paolo Carlini2012-04-232-1/+5
| | | | | | | | 2012-04-23 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/noexcept15.C: Adjust for Rev 186726 library changes. From-SVN: r186730
* Check if MASK_/TARGET_ macros defined for extra_masksH.J. Lu2012-04-232-4/+14
| | | | | | | | | | 2012-04-23 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/52878 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for extra_masks. From-SVN: r186729
* go-lang.c (go_langhook_init): Set MPFR precision to 256.Ian Lance Taylor2012-04-233-2/+6
| | | | | | | | * go-lang.c (go_langhook_init): Set MPFR precision to 256. time: Adjust float expression so that it first integer context. From-SVN: r186727
* type_traits (is_nothrow_destructible): Implement.Daniel Krugler2012-04-2312-71/+448
| | | | | | | | | | | | | | | | | | | | | | 2012-04-23 Daniel Krugler <daniel.kruegler@googlemail.com> * include/std/type_traits (is_nothrow_destructible): Implement. (is_destructible): Implement LWG 2049. * testsuite/util/testsuite_tr1.h: Add tests. * testsuite/20_util/is_nothrow_destructible/value.cc: New. * testsuite/20_util/is_nothrow_destructible/requirements/typedefs.cc: * testsuite/20_util/is_nothrow_destructible/requirements/ explicit_instantiation.cc: Likewise. * testsuite/20_util/is_destructible/value.cc: Adjust and extend. * testsuite/20_util/is_default_constructible/value.cc: Tweak. * testsuite/20_util/is_constructible/value-2.cc: Likewise. * testsuite/20_util/make_signed/requirements/typedefs_neg.cc: Adjust dg-error line numbers. * testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc: Likewise. * testsuite/20_util/declval/requirements/1_neg.cc: Likewise. From-SVN: r186726
* i386.md (*add<mode>_2): Add r/r/0 alternative.Uros Bizjak2012-04-233-29/+75
| | | | | | | | | | * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative. (*addsi_2_zext): Ditto. (*add<mode>_3): Ditto. (*addsi_3_zext): Ditto. (*add<mode>_5): Ditto. From-SVN: r186725
* compiler: Correct handling of negative zero floating constant.Ian Lance Taylor2012-04-231-1/+7
| | | | From-SVN: r186722
* tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) ↵Andrew Pinski2012-04-234-0/+69
| | | | | | | | | | | | | | | to (A OP0) & B. 2012-04-23 Andrew Pinski <apinski@cavium.com> * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0 (C & B) to (A OP0) & B. 2012-04-23 Andrew Pinski <apinski@cavium.com> * gcc.dg/tree-ssa/forwprop-17.c: New testcase. From-SVN: r186721
* expr.c (expand_expr_real_1): Remove setting parent's alias set for ↵Martin Jambor2012-04-232-11/+8
| | | | | | | | | | | temporaries created for a bitfield... 2012-04-23 Martin Jambor <mjambor@suse.cz> * expr.c (expand_expr_real_1): Remove setting parent's alias set for temporaries created for a bitfield (reverting revision 122014). From-SVN: r186718
* libgo: Make sure log/syslog subdirectory exists before using it.Ian Lance Taylor2012-04-232-0/+2
| | | | From-SVN: r186715
* tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using ↵Richard Guenther2012-04-232-28/+25
| | | | | | | | | | | | | | is_gimple_condexpr and avoid the not necessary... 2012-04-23 Richard Guenther <rguenther@suse.de> * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify the condition using is_gimple_condexpr and avoid the not necessary boolification. (set_prologue_iterations): Likewise. (vect_loop_versioning): Likewise. From-SVN: r186710
* re PR regression/53076 (gcc.dg/torture/builtin-explog-1.c, ↵Bill Schmidt2012-04-233-0/+8
| | | | | | | | | | | | | | gcc.dg/torture/builtin-power-1.c at -O0) gcc-testsuite: 2012-04-23 Bill Schmidt <wschmidt@linux.ibm.com> PR regression/53076 * gcc.dg/torture/builtin-explog-1.c: Skip if -O0. * gcc.dg/torture/builtin-power-1.c: Likewise. From-SVN: r186709
* defineclass.cc (MAJOR_1_7, MINOR_1_7): New.Andrew Haley2012-04-232-2/+9
| | | | | | | | | 2012-04-23 Andrew Haley <aph@redhat.com> * defineclass.cc (MAJOR_1_7, MINOR_1_7): New. (parse): Allow MAJOR_1_7 classfile version. From-SVN: r186707