aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2016-09-27auto-inc-dec.c (try_merge): Remove break after return.Jakub Jelinek29-72/+38
* auto-inc-dec.c (try_merge): Remove break after return. * cselib.c (autoinc_split): Likewise. * explow.c (promote_mode): Likewise. * fixed-value.c (fixed_arithmetic): Likewise. * hsa.c (hsa_internal_fn::get_arity): Likewise. * rtlanal.c (modified_between_p, modified_in_p): Likewise. * trans-mem.c (get_attrs_for): Likewise. * tree-if-conv.c (if_convertible_stmt_p): Likewise. * tree-vrp.c (simplify_stmt_using_ranges): Likewise. * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise. * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise. * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise. * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise. * config/cris/cris.c (cris_op_str): Likewise. * config/mn10300/mn10300.c (cc_flags_for_code): Likewise. * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise. c-family/ * c-ada-spec.c (print_ada_declaration): Remove break after return. objc/ * objc-act.c (continue_class): Remove break after return. (objc_maybe_printable_name): Likewise. fortran/ * dependency.c (gfc_dep_compare_expr): Remove break after return. * frontend-passes.c (optimize_op): Likewise. * interface.c (gfc_current_interface_head): Likewise. * symbol.c (check_conflict): Likewise. * trans-intrinsic.c (build_fix_expr): Likewise. ada/ * terminals.c (is_gui_app): Remove break after return. From-SVN: r240554
2016-09-27internal-fn.h (IFN_UNIQUE_CODES, [...]): New.Nathan Sidwell3-29/+96
* internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES, IFN_GOACC_REDUCTION_CODES): New. (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum ifn_goacc_reduction_kind): Use them. * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg of internal functions, when applicable. From-SVN: r240552
2016-09-27[Obvious] Delete one redundant word in target-supports.exp comment Jiong Wang2-3/+8
gcc/testsuite/ * lib/target-supports.exp (check_effective_target_arm_v8_2a_fp16_scalar_hw): Delete redundant word in function comment. From-SVN: r240551
2016-09-27MIPS/GCC/doc: Fix `d' constraint descriptionMaciej W. Rozycki3-4/+9
Revert a part of the `d' constraint documentation update made with commit 111868 ("Use define_constraint for MIPS"), <https://gcc.gnu.org/ml/gcc-patches/2006-03/msg00460.html>, <https://gcc.gnu.org/ml/gcc-patches/2006-03/msg00541.html>, which inadvertently made the registers covered to be referred to as "address" rather than "general-purpose" registers, and then further clarify the set of registers allowed with MIPS16 code. * config/mips/constraints.md (d): Fix documentation. * doc/md.texi (Machine Constraints): Update accordingly. From-SVN: r240546
2016-09-27Fix pch with Solaris asRichard Biener2-8/+14
2016-09-27 Richard Biener <rguenther@suse.de> * dwarf2out.c (dwarf2out_init): Move text_section_line_info, cur_line_info_table initialization ... (dwarf2out_assembly_start): ... here. From-SVN: r240545
2016-09-27Commit files missed in revision 240541.Matthew Wahab2-5/+14
From-SVN: r240542
2016-09-27[ARM] Fix invalid instructions generated for data movement.Matthew Wahab1-0/+12
gcc/ 2016-09-27 Matthew Wahab <matthew.wahab@arm.com> * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute. * config/arm/vfp.md (*arm_movhi_vfp): Likewise. (*thumb2_movhi_vfp): Likewise. (*arm_movhi_fp16): Remove predication operand from VMOV.F16 template. Expand predicable attribute to mark VMOV.F16 as not predicable. Add "arch" attribute. (*thumb2_movhi_fp16): Likewise. (*arm_movsi_vfp): Break a long line. Add "arch" attribute. (*thumb2_movsi_vfp): Add "arch" attribute. From-SVN: r240541
2016-09-27* config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify VAR_DECL string.David Edelsohn2-1/+9
From-SVN: r240540
2016-09-27c6x.h: Adjust fall through comment.Marek Polacek4-5/+10
* config/c6x/c6x.h: Adjust fall through comment. * config/sh/sh.c (final_prescan_insn): Likewise. * config/visium/visium.c (visium_expand_int_cstore): Likewise. (visium_expand_fp_cstore): Likewise. From-SVN: r240539
2016-09-27ia64.c (ia64_print_operand): Adjust fall through comment.Marek Polacek2-1/+6
* config/ia64/ia64.c (ia64_print_operand): Adjust fall through comment. From-SVN: r240538
2016-09-27[ARM] Fix -Wimplicit-fallthrough warningsKyrylo Tkachov3-7/+18
* config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form expected by -Wimplicit-fallthrough. (thumb1_size_rtx_costs): Likewise. (thumb2_reorg): Likewise. (tls_mentioned_p): Add "Fall through" comment. (thumb2_reorg): Likewise. * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through" comment form expected by -Wimplicit-fallthrough. From-SVN: r240537
2016-09-27re PR gcov-profile/46266 (gcov generates data for non-existing file <built-in>)Martin Liska5-6/+27
Fix PR gcov-profile/46266 PR gcov-profile/46266 * lib/gcov.exp: Verify that <built-in>.gcov file is not considered. * input.h (RESERVED_LOCATION_P): New macro. * profile.c (branch_prob): Use RESERVED_LOCATION_P and instread of comparison with UNKNOWN_LOCATION. From-SVN: r240536
2016-09-27re PR tree-optimization/77745 (Inconsistent application of aliasing rules)Richard Biener5-20/+74
2016-09-27 Richard Biener <rguenther@suse.de> PR tree-optimization/77745 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): When removing redundant stores make sure to check compatibility of the TBAA state for downstream accesses. * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when value-numbering virtual operands for store matches. * g++.dg/torture/pr77745.C: New testcase. From-SVN: r240534
2016-09-27re PR target/51244 ([SH] Inefficient conditional branch and code around T bit)Oleg Endo2-4/+12
gcc/ PR target/51244 * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and movrt patterns. Match them before anything else in the SET case. From-SVN: r240533
2016-09-27re PR target/77478 (Incorrect code generated with -O3, m32, -msse2 and ↵Richard Biener2-0/+27
-ffast-math) 2016-09-27 Richard Biener <rguenther@suse.de> PR tree-optimization/77478 * gcc.dg/torture/pr77478.c: New testcase. From-SVN: r240530
2016-09-27gcov: dump in a static dtor instead of in an atexit handlerMartin Liska5-2/+93
PR gcov-profile/7970 PR gcov-profile/16855 PR gcov-profile/44779 * g++.dg/gcov/pr16855.C: New test. * coverage.c (build_gcov_exit_decl): New function. (coverage_obj_init): Call the function and generate __gcov_exit destructor. * doc/gcov.texi: Document when __gcov_exit function is called. * libgcov-driver.c (__gcov_init): Do not register a atexit handler. (__gcov_exit): Rename from gcov_exit. * libgcov.h (__gcov_exit): Declare. From-SVN: r240529
2016-09-27Fix bogus test failure for avrSenthil Kumar Selvaraj2-0/+5
The test has a bunch of hardcoded integer literals that would fit only in a 32 bits+ int, causing overflow warnings for a 16 bit int target like avr. gcc/testsuite/ChangeLog 2016-09-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Require int32plus. From-SVN: r240528
2016-09-27re PR bootstrap/77751 (cc1plus: error: unrecognized command line option ↵Marek Polacek2-5/+12
"-Wno-implicit-fallthrough" for insn-emit.o) PR bootstrap/77751 * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn, insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use -Wno-error instead of -Wno-implicit-fallthrough. From-SVN: r240526
2016-09-27Remove __gcov_merge_delta (PR bootstrap/77749)Martin Liska2-3/+5
PR bootstrap/77749 * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA. PR bootstrap/77749 * Makefile.in: Remove _gcov_merge_delta. * libgcov-merge.c (void __gcov_merge_delta): Remove. * libgcov-util.c (__gcov_delta_counter_op): Remove. * libgcov.h: Remove declaration of __gcov_merge_delta. From-SVN: r240524
2016-09-27combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.Jakub Jelinek3-12/+13
* combine.c (simplify_comparison): Add canonical FALLTHROUGH comments. * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH comments. Remove break after return. (ix86_fp_compare_code_to_integer, has_dispatch, ix86_simd_clone_usable): Remove break after return. From-SVN: r240523
2016-09-27re PR fortran/77666 (ICE in gfc_omp_clause_default_ctor, at ↵Jakub Jelinek4-3/+40
fortran/trans-openmp.c:471) PR fortran/77666 * trans-openmp.c (gfc_omp_private_outer_ref): Return true even for references to allocatable arrays. * gfortran.dg/gomp/pr77666.f90: New test. From-SVN: r240522
2016-09-27re PR rtl-optimization/77714 (Wrong code generation for ↵Bernd Edlinger2-1/+7
gcc.c-torture/execute/pr51447.c) 2016-09-27 Bernd Edlinger <bernd.edlinger@hotmail.de> PR rlt-optimization/77714 * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on REG_EQUAL note. From-SVN: r240518
2016-09-27Fix ipa-vrp convert value_rangeKugan Vivekanandarajah6-14/+60
gcc/ChangeLog: 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use extract_range_from_unary_expr to convert value_range. * tree-vrp.c (extract_range_from_unary_expr_1): Rename to. (extract_range_from_unary_expr): This. * tree-vrp.h (extract_range_from_unary_expr): Declare. gcc/testsuite/ChangeLog: 2016-09-27 Kugan Vivekanandarajah <kuganv@linaro.org> PR ipa/77677 * gcc.dg/torture/pr77677-2.c: New test. From-SVN: r240517
2016-09-27rs6000: Disparage CTR and LR in movcc_internal1Segher Boessenkool2-2/+8
LRA likes to use CTR and LR to store CCmode values. Not such a good idea. All other similar patterns disparage using CTR and LR; do so here, too. * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR. From-SVN: r240515
2016-09-27Daily bump.GCC Administrator1-1/+1
From-SVN: r240514
2016-09-26Fix fallthrough comments for Ada, Solaris/x86, SPARCRainer Orth9-32/+52
gcc: * config/i386/i386.c (ix86_print_operand) [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough. * config/sparc/sparc.c (check_pic): Add fallthrough comment. (epilogue_renumber): Likewise. gcc/ada: * gcc-interface/decl.c: Fix fall through comment formatting. * gcc-interface/misc.c: Likewise. * gcc-interface/trans.c: Likewise. * gcc-interface/utils.c: Likewise. * gcc-interface/utils2.c: Likewise. From-SVN: r240509
2016-09-26re PR fortran/77420 (gfortran and equivalence produces internal compiler error)Steven G. Kargl7-3/+72
2016-09-26 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77420 * trans-common.c: Handle array elements in equivalence when the lower and upper bounds of array spec are NULL. 2016-09-26 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77420 * gfortran.dg/pr77420_1.f90: New test. * gfortran.dg/pr77420_2.f90: Ditto. * gfortran.dg/pr77420_3.f90: New test. Requires ... * gfortran.dg/pr77420_4.f90: this file. From-SVN: r240506
2016-09-26re PR tree-optimization/77719 (ICE in pp_string, at pretty-print.c:955)Kugan Vivekanandarajah4-1/+38
Fix PR77719 gcc/testsuite/ChangeLog: 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org> PR middle-end/77719 * gfortran.dg/pr77719.f90: New test. gcc/ChangeLog: 2016-09-26 Kugan Vivekanandarajah <kuganv@linaro.org> PR middle-end/77719 * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs to get lhs instead of gimple_assign_lhs as stmt can be builtins too. From-SVN: r240505
2016-09-26tree.h (memmodel_from_int, [...]): Move to ...Thomas Preud'homme22-63/+132
2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/ * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed, is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel, is_mm_seq_cst, is_mm_sync): Move to ... * memmodel.h: This. New file. * builtins.c: Include memmodel.h. * optabs.c: Likewise. * tsan.c: Likewise. * config/aarch64/aarch64.c: Likewise. * config/alpha/alpha.c: Likewise. * config/arm/arm.c: Likewise. * config/i386/i386.c: Likewise. * config/ia64/ia64.c: Likewise. * config/mips/mips.c: Likewise. * config/rs6000/rs6000.c: Likewise. * config/sparc/sparc.c: Likewise. * genconditions.c: Include memmodel.h in generated file. * genemit.c: Likewise. * genoutput.c: Likewise. * genpeep.c: Likewise. * genpreds.c: Likewise. * genrecog.c: Likewise. gcc/c-family/ * c-common.c: Include memmodel.h. From-SVN: r240504
2016-09-26builtin-sprintf-warn-1.c: Adjust regex to accept singular form of byte when ↵Thomas Preud'homme2-3/+8
quantity is unknown. 2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com> gcc/testsuite/ * gcc.dg/tree-ssa/builtin-sprintf-warn-1.c: Adjust regex to accept singular form of byte when quantity is unknown. From-SVN: r240503
2016-09-26read-rtl.c: split out read_rtx_operand from read_rtx_codeDavid Malcolm2-193/+218
gcc/ChangeLog: * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use "c" instead when parsing characters. Move operand parsing into... (read_rtx_operand): ...this new function, renaming "i" to "idx", and tightening the scope of various locals. From-SVN: r240502
2016-09-26cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.Liu Hao2-2/+6
2016-09-26 LH Mouse <lh_mouse@126.com> * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo. From-SVN: r240500
2016-09-26c-lex.c (c_common_has_attribute): Handle attribute fallthrough.Marek Polacek6-3/+27
* c-lex.c (c_common_has_attribute): Handle attribute fallthrough. * system.h: Use __has_attribute to check whether the fallthrough attribute is supported. * g++.dg/cpp1z/feat-cxx1z.C: Test attribute fallthrough. From-SVN: r240499
2016-09-26ipa-inline-analysis.c (find_foldable_builtin_expect): Use ↵Marek Polacek13-61/+41
gimple_call_internal_p. * ipa-inline-analysis.c (find_foldable_builtin_expect): Use gimple_call_internal_p. * ipa-split.c (find_return_bb): Likewise. (execute_split_functions): Likewise. * omp-low.c (dump_oacc_loop_part): Likewise. (oacc_loop_xform_head_tail): Likewise. * predict.c (predict_loops): Likewise. * sanopt.c (pass_sanopt::execute): Likewise. * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise. * tree-parloops.c (oacc_entry_exit_ok_1): Likewise. * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function. (expand_ifn_va_arg_1): Use gimple_call_internal_p. (expand_ifn_va_arg): Likewise. * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise. (optimize_mask_stores): Likewise. * tree-vect-stmts.c (vect_simd_lane_linear): Likewise. (vect_transform_stmt): Likewise. * tree-vectorizer.c (vect_loop_vectorized_call): Likewise. * tsan.c (instrument_memory_accesses): Likewise. From-SVN: r240498
2016-09-26Fix typo in date.David Edelsohn1-1/+1
From-SVN: r240497
2016-09-26[regrename][sel-sched] Fix bogus use of HARD_FRAME_POINTER_REGNUM (was: Fix ↵Kyrylo Tkachov3-2/+10
arm bootstrap) * regrename.c (rename_chains): Check HARD_FRAME_POINTER_IS_FRAME_POINTER rather than HARD_FRAME_POINTER_REGNUM when picking unavailable registers. * sel-sched.c (mark_unavailable_hard_regs): Likewise. Co-Authored-By: Alexander Monakov <amonakov@ispras.ru> From-SVN: r240496
2016-09-26S/390: Add missing fallthrough comments.Andreas Krebbel2-0/+7
gcc/ChangeLog: 2016-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com> * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */. (s390_sched_score): Likewise. From-SVN: r240495
2016-09-26Fix documentation of gcov toolMartin Liska2-7/+13
* doc/gcov.texi: Update program output of gcov tool. From-SVN: r240494
2016-09-26re PR fortran/48298 ([F03] User-Defined Derived-Type IO (DTIO))Paul Thomas2-1/+11
2016-09-26 Paul Thomas <pault@gcc.gnu.org> PR fortran/48298 * interface.c (gfc_find_specific_dtio_proc) : Return NULL if the derived type is broken, as indicated by a flavor other than FL_DERIVED. From-SVN: r240493
2016-09-26Remove HIST_TYPE_CONST_DELTA counter type (PR gcov-profile/23332)Martin Liska5-51/+13
PR gcov-profile/23332 * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA. * tree-profile.c (gimple_gen_const_delta_profiler): Remove. * value-prof.c (dump_histogram_value): Do not handle HIST_TYPE_CONST_DELTA. (stream_in_histogram_value): Likewise. (gimple_find_values_to_profile): Likewise. * value-prof.h (enum hist_type): Likewise. From-SVN: r240492
2016-09-26Fix handling of -fsanitize-recover* options.Martin Liska16-60/+155
* common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN from default sanitize recover values. * doc/invoke.texi: Fix documentation related to -fsanitize=leak, -fsanitize=address, -fsanitize=thread and -fsanitize-recover. * flag-types.h: Replace couple of 1 << x to 1UL << x, make it consistent. * opts.c (finish_options): Do a generic loop over options that can be recovered. (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN. (common_handle_option): Likewise. * opts.h: Declare can_recover to sanitizer_opts_s. * c-c++-common/ubsan/sanitize-recover-1.c: New test. * c-c++-common/ubsan/sanitize-recover-2.c: New test. * c-c++-common/ubsan/sanitize-recover-3.c: New test. * c-c++-common/ubsan/sanitize-recover-4.c: New test. * c-c++-common/ubsan/sanitize-recover-5.c: New test. * c-c++-common/ubsan/sanitize-recover-6.c: New test. * c-c++-common/ubsan/sanitize-recover-7.c: New test. * c-c++-common/ubsan/sanitize-recover-8.c: New test. * c-c++-common/ubsan/sanitize-recover-9.c: New test. From-SVN: r240491
2016-09-26target.def (elf_flags_numeric): Change documentation to present tense.Andre Vieira3-8/+14
2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com> * target.def(elf_flags_numeric): Change documentation to present tense. * doc/tm.texi: Regenerate. From-SVN: r240490
2016-09-26init.c (expand_default_init): Fix } indentation.Nathan Sidwell3-14/+13
* init.c (expand_default_init): Fix } indentation. * method.c (process_subob_fn): Simplify control structure to remove gotos. (implicitly_declare_fn): Remove duplicated lambda ctor check. From-SVN: r240489
2016-09-26Implement -Wimplicit-fallthrough.Marek Polacek78-44/+3886
Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r240485
2016-09-26dwarf2out.c (stripattributes): Remove unused function.Richard Biener2-96/+97
2016-09-26 Richard Biener <rguenther@suse.de> * dwarf2out.c (stripattributes): Remove unused function. (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION. Push dwarf_split_debug_info handling into init_sections_and_labels. (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION. (DEBUG_MACRO_SECTION_FLAGS): Remove. (debug_macinfo_section_name): New global. (output_macinfo): Use debug_macinfo_section_name. (init_sections_and_labels): Split out section and label generation from dwarf2out_init. Set debug_macinfo_section_name. (dwarf2out_init): Move text section label generation and emission to ... (dwarf2out_assembly_start): ... here. (dwarf2out_finish): Call init_sections_and_labels before DWARF output starts. From-SVN: r240484
2016-09-26re PR debug/77692 (gcc.dg/debug/dwarf2/const-2b.c FAILs)Richard Biener2-2/+16
2016-09-26 Richard Biener <rguenther@suse.de> PR debug/77692 * cgraphunit.c (analyze_functions): Before early removing global vars calls the late_global_decl debug handler mark the variable as readonly. From-SVN: r240483
2016-09-26Daily bump.GCC Administrator1-1/+1
From-SVN: r240482
2016-09-25re PR fortran/77429 (ICE in gfc_check_dependency, at fortran/dependency.c:1261)Steven G. Kargl4-1/+20
2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77429 * dependency.c (gfc_check_dependency): Convert gcc_assert() to a conditional and possible call to gfc_internal_error(). 2016-09-25 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77429 * gfortran.dg/pr77429.f90: New test. From-SVN: r240477
2016-09-25re PR fortran/77694 (ICE in optimize_binop_array_assignment, at ↵Steven G. Kargl4-0/+21
fortran/frontend-passes.c:1080) 2016-09-22 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77694 * frontend-passes.c (optimize_binop_array_assignment): Check pointer for NULL. 2016-09-22 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/77694 * gfortran.dg/pr77694.f90: New test. From-SVN: r240476
2016-09-25* gcc.target/i386/pr77621.c (dg-options): Add -mno-avx.Uros Bizjak1-1/+1
From-SVN: r240474