aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2015-02-18Add missing cleanup in gfortran.dg/finalize_28.f90Tom de Vries2-0/+5
2015-02-18 Tom de Vries <tom@codesourcery.com> * gfortran.dg/finalize_28.f90: Add missing cleanup-tree-dump. From-SVN: r220797
2015-02-18Add missing cleanup in gfortran.dg/fmt_cache_1.fTom de Vries2-0/+5
2015-02-18 Tom de Vries <tom@codesourcery.com> * gfortran.dg/fmt_cache_1.f: Add missing close. From-SVN: r220796
2015-02-18Add missing cleanup in gfortran.dg/read_eof_8.f90Tom de Vries2-0/+6
2015-02-18 Tom de Vries <tom@codesourcery.com> PR testsuite/65107 * gfortran.dg/read_eof_8.f90: Add missing close. From-SVN: r220794
2015-02-18Return false for common symbols in sdata_symbolic_operandH.J. Lu2-1/+12
Although common symbols are defined in executables, they aren't in small data section. But a definition in small data section overrides a common symbol, which still binds lcoally, and turns a reference to common symbol to reference to small data section. Even if ia64_in_small_data_p returns true on common symbols, sdata_symbolic_operand must return false on common symbols. Common symbols are assumed to be placed in small data section, but are accessed as if they are in normal data section so that they won't cause any relocation overflow. PR target/65064 * config/ia64/predicates.md (sdata_symbolic_operand): Return false for common symbols. From-SVN: r220792
2015-02-18t-intelmic (mkoffload.o): Remove dependency on insn-modes.h.Jakub Jelinek3-1/+10
* config/i386/t-intelmic (mkoffload.o): Remove dependency on insn-modes.h. (ALL_HOST_OBJS): Add mkoffload.o. * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise. From-SVN: r220791
2015-02-18ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.Jan Hubicka2-63/+222
* ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating. (compare_virtual_tables): Be smarter about skipping typeinfos; do sane output on virtual table table mismatch. (warn_odr): Be ready for forward declarations of enums; output sane info on base mismatch and virtual table mismatch. (add_type_duplicate): Fix code choosing prevailing type; do not ICE when only one type is polymorphic. (get_odr_type): Fix hashtable corruption. (dump_odr_type): Dump mangled names. From-SVN: r220790
2015-02-18re PR tree-optimization/65063 (gcc.dg/vect/vect-double-reduc-6.c FAILs with ↵Richard Biener4-1/+57
-O3 -fno-tree-loop-ivcanon -fno-tree-vectorize) 2015-02-18 Richard Biener <rguenther@suse.de> PR tree-optimization/65063 * tree-predcom.c (determine_unroll_factor): Return 1 if we have replaced looparound PHIs. * gcc.dg/pr65063.c: New testcase. From-SVN: r220788
2015-02-18Add checking macro within lto_streamer_init.Martin Liska2-0/+7
* lto-streamer.c (lto_streamer_init): Encapsulate streamer_check_handled_ts_structures with checking macro. From-SVN: r220787
2015-02-18re PR ipa/65087 (r220742 causes: ICE: in ipcp_verify_propagated_values, at ↵Jakub Jelinek3-3/+13
ipa-cp.c:1057) PR ipa/65087 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy section if !implicit_section. (cgraph_node::create_version_clone_with_body): Likewise. * trans-mem.c (ipa_tm_create_version): Likewise. From-SVN: r220786
2015-02-18re PR tree-optimization/62217 (DOM confuses complete unrolling which in turn ↵Richard Biener4-5/+39
causes VRP to warn) 2015-02-18 Richard Biener <rguenther@suse.de> PR tree-optimization/62217 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies into BIVs. * gcc.dg/tree-ssa/cunroll-11.c: New testcase. From-SVN: r220785
2015-02-18re PR sanitizer/65081 (-fsanitize=object-size fails with simple pointer arithm)Marek Polacek4-1/+80
PR sanitizer/65081 * ubsan.c (OBJSZ_MAX_OFFSET): Define. (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset is in range [-16K, -1]. Don't issue run-time error if (ptr > ptr + offset). * c-c++-common/ubsan/pr65081.c: New test. From-SVN: r220784
2015-02-18Begin documenting the nvptx backend.Thomas Schwinge4-5/+58
gcc/ * doc/install.texi (nvptx-*-none): New section. * doc/invoke.texi (Nvidia PTX Options): Likewise. * config/nvptx/nvptx.opt: Update. From-SVN: r220783
2015-02-18nvptx mkoffload: For non-installed testing, look in all COMPILER_PATHs for ↵Thomas Schwinge2-0/+109
GCC_INSTALL_NAME. gcc/ * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs) (access_check): New functions, copied from config/i386/intelmic-mkoffload.c. (main): For non-installed testing, look in all COMPILER_PATHs for GCC_INSTALL_NAME. From-SVN: r220782
2015-02-18nvptx-none: Define empty GOMP_SELF_SPECS.Thomas Schwinge2-0/+8
Otherwise, offloading with -fopenacc or -fopenmp active will run into: x86_64-unknown-linux-gnu-accel-nvptx-none-gcc: error: unrecognized command line option '-pthread' gcc/ * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro. From-SVN: r220780
2015-02-18aarch64.c (*aarch64_load_symref_appropriately): Check whether the ↵Andrew Pinski2-0/+10
destination of SYMBOL_SMALL_TPREL is Pmode. * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately): Check whether the destination of SYMBOL_SMALL_TPREL is Pmode. Co-Authored-By: Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com> From-SVN: r220779
2015-02-18Daily bump.GCC Administrator1-1/+1
From-SVN: r220778
2015-02-17ipa-visibility.c (function_and_variable_visibility): Only check locality if ↵Jan Hubicka5-24/+53
node is not already local. * ipa-visibility.c (function_and_variable_visibility): Only check locality if node is not already local. * ipa-inline.c (want_inline_function_to_all_callers_p): Use call_for_symbol_and_aliases instead of call_for_symbol_thunks_and_aliases. (ipa_inline): Likewise. * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): first walk aliases. * ipa.c (symbol_table::remove_unreachable_nodes): Use call_for_symbol_and_aliases. * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol. (ipa_propagate_frequency_1): Use it; use opt_for_fn (ipa_propagate_frequency): Update. (ipa_profile): Add opt_for_fn gueards. From-SVN: r220775
2015-02-17sh.opt (mcbranch-force-delay-slot): New option.Oleg Endo7-6/+56
gcc/ * config/sh/sh.opt (mcbranch-force-delay-slot): New option. * doc/invoke.texi (SH options): Document it. * config/sh/sh.c (sh_insn_length_adjustment): Check TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E. gcc/testsuite/ * gcc.target/sh/sh.exp (check_effective_target_sh1): New. * gcc.target/sh/force-cbranch-delay-slot.c: New. From-SVN: r220774
2015-02-17Add -fipa-cp-alignmentH.J. Lu7-1/+99
This patch adds -fipa-cp-alignment to provide a way to enable/disable alignment discovery and propagation in IPA-CP. gcc/ * common.opt (fipa-cp-alignment): New. * ipa-cp.c (ipcp_store_alignment_results): Check flag_ipa_cp_alignment. * opts.c (default_options_table): Enable -fipa-cp-alignment for -O2. (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment. * doc/invoke.texi: Document -fipa-cp-alignment. gcc/testsuite/ * gcc.dg/ipa/propalign-3.c: New test. From-SVN: r220773
2015-02-17re PR target/64793 ([SH] missed delay slot)Oleg Endo5-14/+34
gcc/ PR target/64793 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn to nil. Adjust comments. gcc/testsuite/ PR target/64793 * gcc.target/sh/pr64793.c: New. * gcc.target/sh/pr51244-20-sh2a.c: Adjust expected cmp/gt insn count. From-SVN: r220772
2015-02-17ipa-visibility.c (function_and_variable_visibility): Only check locality if ↵Jan Hubicka2-1/+19
node is not already local. * ipa-visibility.c (function_and_variable_visibility): Only check locality if node is not already local. * ipa-inline.c (want_inline_function_to_all_callers_p): Use call_for_symbol_and_aliases instead of call_for_symbol_thunks_and_aliases. (ipa_inline): Likewise. * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): first walk aliases. * ipa.c (symbol_table::remove_unreachable_nodes): Use call_for_symbol_and_aliases. * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol. (ipa_propagate_frequency_1): Use it; use opt_for_fn (ipa_propagate_frequency): Update. (ipa_profile): Add opt_for_fn guards. From-SVN: r220771
2015-02-17nvptx mkoffload: Fix logic error in skipping of "strange" tokens.Thomas Schwinge2-1/+7
gcc/ * config/nvptx/mkoffload.c (parse_file): Fix logic error in skipping of "strange" tokens. From-SVN: r220769
2015-02-17bpabi.S (test_div_by_zero): Make label names consistent between thumb2 and ↵Sandra Loosemore2-0/+89
arm mode cases. 2015-02-17 Sandra Loosemore <sandra@codesourcery.com> libgcc/ * config/arm/bpabi.S (test_div_by_zero): Make label names consistent between thumb2 and arm mode cases. Separate the signed comparison on the high word of the numerator from the unsigned comparison on the low word. * config/arm/bpabi-v6m.S (test_div_by_zero): Similarly separate signed comparison. gcc/testsuite/ * gcc.target/arm/divzero.c: New test case. From-SVN: r220765
2015-02-17tree-vrp.c (identify_jump_threads): Use last_stmt.Jeff Law2-4/+6
* tree-vrp.c (identify_jump_threads): Use last_stmt. Remove obsolete comment. From-SVN: r220763
2015-02-17Correct ChangeLog entry (2015-02-04)Alan Lawrence1-2/+1
From-SVN: r220759
2015-02-17Add gcc.target/x86_64/abi/callabi/vaarg-6.cTom de Vries2-0/+44
2015-02-17 Tom de Vries <tom@codesourcery.com> * gcc.target/x86_64/abi/callabi/vaarg-6.c: New test. From-SVN: r220757
2015-02-17[Haifa Scheduler] Fix latent bug in macro-fusion/instruction groupingJames Greenhalgh2-0/+11
gcc/ * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P as forcing a HARD_DEP between instructions, thereby disallowing rewriting to break dependencies. From-SVN: r220751
2015-02-17symtab.c (symtab_node::verify_base): Verify body_removed->!definitonJan Hubicka4-4/+28
* symtab.c (symtab_node::verify_base): Verify body_removed->!definiton * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of variables in boundary that have no inlitalizer encoded and are not aliases. * varasm.c (default_binds_local_p_2): External definitions do not count as definitions here. From-SVN: r220749
2015-02-17re PR c++/65075 (constexpr regression)Paolo Carlini4-1/+32
PR c++/65075 * constexpr.c (check_constexpr_bind_expr_vars): Allow implicit typedefs for lambda types. * g++.dg/cpp0x/pr65075.C: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r220748
2015-02-17Daily bump.GCC Administrator1-1/+1
From-SVN: r220747
2015-02-16re PR target/65058 (AIX: missing extern decorations "[DS]" for functions and ↵David Edelsohn2-0/+15
"[UA]" for variables) PR target/65058 * gcc.target/powerpc/pr65058.c: New test. From-SVN: r220744
2015-02-16re PR tree-optimization/64823 (false "may be used uninitialized", missed ↵Jeff Law5-10/+75
jump threading) PR tree-optimization/64823 * tree-vrp.c (identify_jump_threads): Handle blocks with no real statements. * tree-ssa-threadedge.c (potentially_threadable_block): Allow threading through blocks with PHIs, but no statements. (thread_through_normal_block): Distinguish between blocks where we did not process all the statements and blocks with no statements. PR tree-optimization/64823 * gcc.dg/uninit-20.c: New test. From-SVN: r220743
2015-02-16re PR ipa/64963 (IPA Cloning/Splitting does not copy function section ↵Jakub Jelinek5-1/+40
attributes resulting in kernel miscompilation) PR ipa/64963 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy section if not linkonce. Fix up formatting. (cgraph_node::create_version_clone_with_body): Copy section. * trans-mem.c (ipa_tm_create_version): Likewise. * gcc.dg/ipa/ipa-clone-1.c: New test. Co-Authored-By: James Greenhalgh <james.greenhalgh@arm.com> From-SVN: r220742
2015-02-16re PR tree-optimization/65077 (memcpy generates incorrect code with floating ↵Richard Biener4-5/+86
point numbers and -O1) 2015-02-16 Richard Biener <rguenther@suse.de> PR tree-optimization/65077 * tree-ssa-structalias.c (get_constraint_for_1): Handle IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF. (find_func_aliases): Allow float values to carry pointers again. * gcc.dg/torture/pr65077.c: New testcase. From-SVN: r220741
2015-02-16atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr.Alex Velenko3-4/+11
gcc/testsuite/ * gcc.target/aarch64/atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr. * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaex. From-SVN: r220740
2015-02-16re PR c++/65080 (constexpr-ness lost by using alias in definition)Paolo Carlini2-0/+23
2015-02-16 Paolo Carlini <paolo.carlini@oracle.com> PR c++/65080 * g++.dg/cpp0x/constexpr-65080.C: New. From-SVN: r220739
2015-02-16[Patch docs obvious] install.texi: Put aarch64 back in alphabetical order, ↵James Greenhalgh2-19/+27
add link gcc/ * doc/install.texi (Specific): Reorder targets list to put aarch64 in alphabetical order. Add a link to aarch64*-*-* from the top menu. From-SVN: r220738
2015-02-16[multiple changes]David Edelsohn3-9/+31
2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> David Edelsohn <dje.gcc@gmail.com> PR target/65058 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage mapping class to external variable or function reference. * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage mapping class. 2015-02-16 David Eelsohn <dje.gcc@gmail.com> PR target/53348 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use ASM_WEAKEN_DECL if defined. From-SVN: r220737
2015-02-16re PR lto/65015 (LTO produces randomly ordered debug information)Richard Biener2-1/+13
2015-02-16 Richard Biener <rguenther@suse.de> PR lto/65015 * varasm.c (default_file_start): For LTO produced units emit <artificial> as file directive. From-SVN: r220735
2015-02-16re PR tree-optimization/63593 (ICE: verify_gimple failed: incompatible types ↵Richard Biener4-3/+49
in PHI argument 0 with -O3 -fno-tree-vectorize) 2015-02-16 Richard Biener <rguenther@suse.de> PR tree-optimization/63593 * tree-predcom.c (execute_pred_commoning_chain): Delay removing stmts and releasing SSA names until... (execute_pred_commoning): ... after processing all chains. * gcc.dg/pr63593.c: New testcase. From-SVN: r220734
2015-02-16re PR ipa/65059 (Chrome LTO: lto1: internal compiler error: in ipa_comdats, ↵Jan Hubicka2-0/+11
at ipa-comdats.c:360) Fix PR ipa/65059. PR ipa/65059 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to external functions. From-SVN: r220733
2015-02-16re PR c/65066 (ICE: Segmentation fault with -Wformat=2)Marek Polacek4-0/+23
PR c/65066 * c-format.c (check_format_types): Handle null param. * gcc.dg/pr65066.c: New test. From-SVN: r220732
2015-02-16pr65002.C: Move ...Ilya Enkovich2-0/+5
gcc/testsuite/ * gcc.dg/pr65002.C: Move ... * g++.dg/ipa/pr65002.C: ... here. From-SVN: r220731
2015-02-15bugreport.texi: Adjust section titles throughout the file to use "Title Case".Sandra Loosemore10-59/+72
2015-02-15 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/bugreport.texi: Adjust section titles throughout the file to use "Title Case". * doc/extend.texi: Likewise. * doc/gcov.texi: Likewise. * doc/implement-c.texi: Likewise. * doc/implement-cxx.texi: Likewise. * doc/invoke.texi: Likewise. * doc/objc.texi: Likewise. * doc/standards.texi: Likewise. * doc/trouble.texi: Likewise. From-SVN: r220722
2015-02-16Daily bump.GCC Administrator1-1/+1
From-SVN: r220721
2015-02-15cgraph.h (symtab_node::has_aliases_p): Simplify.Jan Hubicka3-21/+20
* cgraph.h (symtab_node::has_aliases_p): Simplify. (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p * tree.c (lookup_binfo_at_offset): Make static. (get_binfo_at_offset): Do not shadow offset; add explanatory comment. From-SVN: r220718
2015-02-15pa.c (pa_secondary_reload): Request a secondary reload for all floading ↵John David Anglin3-11/+39
point loads and stores except those... * config/pa/pa.c (pa_secondary_reload): Request a secondary reload for all floading point loads and stores except those using a register index address. * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand to a register. From-SVN: r220716
2015-02-14pr64205.c: Skip on AIX.David Edelsohn5-1/+14
* gcc.target/powerpc/pr64205.c: Skip on AIX. * gcc.target/powerpc/pr64505.c: Skip on AIX. * gcc.dg/torture/builtin-noret-1.c: Ignore AIX linker warnings. * gcc.dg/torture/builtin-noret-2.c: Ignore AIX linker warnings. From-SVN: r220715
2015-02-15Daily bump.GCC Administrator1-1/+1
From-SVN: r220714
2015-02-14re PR testsuite/64850 (FAIL: gfortran.dg/goacc/acc_on_device-1.f95 -O ↵Kaz Kojima7-6/+17
scan-rtl-dump-times expand "\\(call [^\\n]*\\"acc_on_device" 4) PR testsuite/64850 Tweak acc_on_device* tests. From-SVN: r220711