aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2016-02-23re PR fortran/61156 (Internal compiler error for Fortran files when ↵Jerry DeLisle4-2/+14
specifying a file instead of an include directory with -I) 2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/61156 * scanner.c (add_path_to_list): If include path is not a directory, issue a fatal error. PR fortran/61156 * gfortran.dg/include_6.f90: Update test. From-SVN: r233649
2016-02-23re PR target/69810 (PowerPC64: unrecognizable insn)David Edelsohn2-36/+17
PR target/69810 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from define_insn_and_split to define_insn. (zero_extendqi<mode>2_dot2): Same. (extendqi<mode>2_dot): Same. (extendqi<mode>2_dot2): Same. From-SVN: r233648
2016-02-23Tweak the pipeline model for Exynos M1Evandro Menezes3-10/+25
gcc/ * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E} and AESMC pairs. * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores and add bypass for AES{D,E} and AESMC pairs. From-SVN: r233647
2016-02-23aarch64.c (exynosm1_tunings): Enable the Newton series for reciprocal square ↵Evandro Menezes2-1/+6
root in Exynos M1. * gcc/config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton series for reciprocal square root in Exynos M1. From-SVN: r233646
2016-02-23re PR objc/69844 (Possibly bogus error: unknown type name in ObjC code)Jakub Jelinek4-7/+59
PR objc/69844 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes in id_kind reclassification. * objc.dg/pr69844.m: New test. From-SVN: r233643
2016-02-23re PR fortran/69456 (Namelist value with trailing sign is ignored without error)Jerry DeLisle3-1/+54
2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libgfortran/69456 * io/list_read.c (read_real): If digit is missing from exponent issue an error. (parse_real): Likewise and adjusted error message to clarify it is part of a complex number. (nml_read_obj): Bump item count and add comment that this is used to identify which item in a namelist read has a problem. PR libgfortran/69456 * gfortran.dg/namelist_89.f90: New test. * gfortran.dg/pr59700.f90: Update test.. From-SVN: r233641
2016-02-23PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_alignMartin Sebor7-0/+434
PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align with small alignment PR c/69759 - __builtin_alloca and __builtin_alloca_with_align undocumented gcc/c-family/ChangeLog: * c-common.c (check_builtin_function_arguments): Validate and reject invalid arguments to __builtin_alloca_with_align. gcc/ChangeLog: * doc/extend.texi (Other Builtins): Document __builtin_alloca and __builtin_alloca_with_align. gcc/testsuite/ChangeLog: * g++.dg/ext/builtin_alloca.C: New test. * gcc.dg/builtins-68.c: New test. From-SVN: r233640
2016-02-23Remove __seg_tls before first release.Richard Henderson7-79/+16
* config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS. (ix86_register_pragmas): Remove __seg_tls. * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove. * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it. (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove. (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove. (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove. * doc/extend.texi (__seg_tls): Remove item. testsuite/ * gcc.target/i386/addr-space-3.c: Remove test. From-SVN: r233639
2016-02-23PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locationsDavid Malcolm4-3/+31
gcc/testsuite/ChangeLog: PR preprocessor/69126 PR preprocessor/69543 * c-c++-common/pr69126-2-long.c: New test. * c-c++-common/pr69126-2-short.c: New test. * c-c++-common/pr69543-1.c: Remove xfail. libcpp/ChangeLog: PR preprocessor/69126 PR preprocessor/69543 * line-map.c (linemap_compare_locations): At the function top, replace inlined bodies of get_location_from_adhoc_loc with calls to get_location_from_adhoc_loc. Add a pair of calls to get_location_from_adhoc_loc at the bottom of the function, to avoid meaningless comparisons of ad-hoc and non-ad-hoc locations. From-SVN: r233638
2016-02-23Add test coverage for _Pragma (PR preprocessor 69126, 69543, 69558)David Malcolm11-7/+252
We had some regressions in the ability for _Pragma to disable a warning (PR preprocessor/69126, PR preprocessor/69543, PR preprocessor/69558). This patch attempts to add more test coverage for this, for the various combinations of: - various warnings: -Wunused-variable -Wuninitialized -Wdeprecated-declarations - various combinations of location of _Pragma relative to location of the warning: - _Pragma is in a macro, warning isn't a macro - neither is in a macro - _Pragma isnt't in a macro, warning is in a macro - in different macros - both in the same macro - C vs C++ frontend. It adds some XFAILs: - pr69543-1.c for C++ (fixed in the followup patch) - pr69543-3.c for both C and C++ - pr69543-4.c for both C and C++ - pr69558.c for C++ (moving it from gcc.dg to c-c++-common, marking it as xfail for C++ for now) gcc/testsuite/ChangeLog: PR preprocessor/69126 PR preprocessor/69543 PR preprocessor/69558 * c-c++-common/pr69126.c (MACRO_1, test_1): New. (f): Rename to... (test_2): ...this, and add leading comment. (MACRO_3, test_3): New. (MACRO_4A, MACRO_4B, test_4): New. (MACRO): Rename to... (MACRO_5): ...this. (g): Rename to... (test_5): ...this, updating for renaming of MACRO, and add leading comment. * c-c++-common/pr69543-1.c: New. * c-c++-common/pr69543-2.c: New. * c-c++-common/pr69543-3.c: New. * c-c++-common/pr69543-4.c: New. * c-c++-common/pr69558-1.c: New. * c-c++-common/pr69558-2.c: New. * c-c++-common/pr69558-3.c: New. * c-c++-common/pr69558-4.c: New. * gcc.dg/pr69558.c: Move to... * c-c++-common/pr69558.c: ...here. Add dg-bogus directives, with xfail for c++. From-SVN: r233637
2016-02-23alloc-pool.h (struct allocation_object): Make id member conditional on ↵Richard Biener2-4/+23
CHECKING_P again. 2016-02-23 Richard Biener <rguenther@suse.de> * alloc-pool.h (struct allocation_object): Make id member conditional on CHECKING_P again. (get_instance): Adjust. (base_pool_allocator): Likewise. From-SVN: r233635
2016-02-23Use plain -fopenacc to enable OpenACC kernels processingThomas Schwinge18-40/+63
gcc/ * tree-parloops.c (create_parallel_loop, gen_parallel_loop) (parallelize_loops): In OpenACC kernels mode, set n_threads to zero. (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on flag_openacc. * tree-ssa-loop.c (gate_oacc_kernels): Likewise. gcc/testsuite/ * c-c++-common/goacc/kernels-counter-vars-function-scope.c: Adjust to -ftree-parallelize-loops/-fopenacc changes. * c-c++-common/goacc/kernels-double-reduction-n.c: Likewise. * c-c++-common/goacc/kernels-double-reduction.c: Likewise. * c-c++-common/goacc/kernels-loop-2.c: Likewise. * c-c++-common/goacc/kernels-loop-3.c: Likewise. * c-c++-common/goacc/kernels-loop-g.c: Likewise. * c-c++-common/goacc/kernels-loop-mod-not-zero.c: Likewise. * c-c++-common/goacc/kernels-loop-n.c: Likewise. * c-c++-common/goacc/kernels-loop-nest.c: Likewise. * c-c++-common/goacc/kernels-loop.c: Likewise. * c-c++-common/goacc/kernels-one-counter-var.c: Likewise. * c-c++-common/goacc/kernels-reduction.c: Likewise. * gfortran.dg/goacc/kernels-loop-inner.f95: Likewise. * gfortran.dg/goacc/kernels-loops-adjacent.f95: Likewise. libgomp/ * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims. * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for dims. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to -ftree-parallelize-loops/-fopenacc changes. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise. * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Likewise. From-SVN: r233634
2016-02-23mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.Richard Biener6-17/+52
2016-02-23 Richard Biener <rguenther@suse.de> * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t. * bitmap.h (struct bitmap_usage): Likewise. (bitmap_move): Declare. * bitmap.c (register_overhead): Take size_t argument. (bitmap_move): New function. * df-problems.c (df_rd_transfer_function): Use bitmap_move to properly account overhead. * tree.c (free_node): Use tree_size. From-SVN: r233633
2016-02-23Require alias support in gcc.target/i386/chkp-hidden-def.cRainer Orth2-0/+5
* gcc.target/i386/chkp-hidden-def.c: Require alias support. From-SVN: r233632
2016-02-23re PR c++/69902 (Bogus -Wnonnull-compare for: dynamic_cast<T*>(&ref) == nullptr)Jakub Jelinek4-2/+30
PR c++/69902 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING when inverting comparison. * g++.dg/warn/Wnonnull-compare-5.C: New test. From-SVN: r233631
2016-02-23re PR c/69900 (Unhelpful diagnostic about Ignored options)Jakub Jelinek4-1/+17
PR c/69900 * common.opt (Wunreachable-code): Add Warning flag. * gcc.dg/pr69900.c: New test. From-SVN: r233630
2016-02-23PR c/69911 Check main_input_filename and DECL_SOURCE_FILE are not NULL.Mark Wielaard2-2/+12
DECL_SOURCE_FILE can be NULL (for example when DECL_ARTIFICIAL). So make sure to check before comparing against main_input_filename. gcc/ChangeLog PR c/69911 * cgraphunit.c (check_global_declaration): Check main_input_filename and DECL_SOURCE_FILE are not NULL. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r233627
2016-02-23[pr 69666] No SRA default_def replacements for unscalarizable regionsMartin Jambor4-0/+28
2016-02-23 Martin Jambor <mjambor@suse.cz> PR tree-optimization/69666 * tree-sra.c (sra_modify_assign): Do not attempt to create default_def replacements for unscalarizable regions. testsuite/ * gcc.dg/tree-ssa/pr69666.c: New test. From-SVN: r233626
2016-02-23re PR fortran/67451 ([F08] ICE with sourced allocation from coarray.)Andre Vehreschild4-12/+58
gcc/testsuite/ChangeLog: 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/67451 * gfortran.dg/coarray_allocate_5.f08: New test. gcc/fortran/ChangeLog: 2016-02-23 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/67451 * trans-array.c (gfc_array_allocate): Take the attributes from the expression to allocate and not from the source=-expression. From-SVN: r233625
2016-02-23S/390: Move vcond-shift.c to vector subdir.Andreas Krebbel2-0/+5
gcc/testsuite/ChangeLog: * gcc.target/s390/vcond-shift.c: Move to ... * gcc.target/s390/vector/vcond-shift.c: ... here. From-SVN: r233624
2016-02-23S/390: Move movstr-2.c into vector subdir.Andreas Krebbel2-0/+7
gcc/testsuite/ChangeLog: * gcc.target/s390/md/movstr-2.c: Move and rename to ... * gcc.target/s390/vector/stpcpy-1.c: ... this one. From-SVN: r233623
2016-02-23S/390: Turn movstr-1.c into compile only test.Andreas Krebbel2-14/+6
gcc/testsuite/ChangeLog: * gcc.target/s390/md/movstr-1.c: Turn into compile test. From-SVN: r233622
2016-02-23sso tests need int32 machines.Mike Stump1-0/+4
From-SVN: r233621
2016-02-23Daily bump.GCC Administrator1-1/+1
From-SVN: r233620
2016-02-22* sv.po, vi.po: Update.Joseph Myers3-7383/+3957
From-SVN: r233617
2016-02-22PR28901 Add two levels for -Wunused-const-variable.Mark Wielaard7-8/+60
There is some controversy about enabling -Wunused-const-variable for all unused static const variables because some feel there are too many errors exposed in header files. Create two levels for -Wunused-const-variable. One level to only check for unused static const variables in the main compilation file. Which is enabled by -Wunused-variable. And a second level that also checks for unused static const variables in included files. Which must be explicitly enabled. gcc/ChangeLog PR c/28901 * cgraphunit.c (check_global_declaration): Check level of warn_unused_const_variable and main_input_filename. * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=. (-Wunused-variable): For C implies -Wunused-const-variable=1. (-Wunused-const-variable): Explain levels 1 and 2. gcc/c-family/ChangeLog PR c/28901 * c.opt (Wunused-const-variable): Turn into Alias for... (Wunused-const-variable=): New option. gcc/testsuite/ChangeLog PR c/28901 * gcc.dg/unused-variable-3.c: New test. From-SVN: r233616
2016-02-22re PR target/69888 (ICE: SIGSEGV in decide_alg (i386.c:26169) due to ↵Jakub Jelinek1-1/+1
infinite (?) recursion with -minline-all-stringops -mmemset-strategy=no_stringop:-1:noalign) PR target/69888 * config/i386/i386.c (decide_alg): Ensure we don't recurse with identical arguments. Formatting and spelling fixes. * gcc.target/i386/pr69888.c: New test. From-SVN: r233615
2016-02-22re PR target/69888 (ICE: SIGSEGV in decide_alg (i386.c:26169) due to ↵Jakub Jelinek4-10/+30
infinite (?) recursion with -minline-all-stringops -mmemset-strategy=no_stringop:-1:noalign) PR target/69888 * config/i386/i386.c (decide_alg): Ensure we don't recurse with identical arguments. Formatting and spelling fixes. * gcc.target/i386/pr69888.c: New test. From-SVN: r233614
2016-02-22re PR bootstrap/69885 (ICE in maybe_legitimize_operand, at optabs.c:6903 on ↵Jakub Jelinek2-1/+7
m68k-linux-gnu) PR target/69885 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must be specified. From-SVN: r233613
2016-02-22Add terminating line to output as prune can remove last \r from output.Mike Stump42-0/+42
From-SVN: r233612
2016-02-22re PR target/69894 (dependency of gcc-plugin.h not installed on ↵Jakub Jelinek4-1/+16
aarch64-linux-gnu) PR target/69894 PR target/69895 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def and m68k-devices.def. * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def. * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def. From-SVN: r233611
2016-02-22nvptx.c (nvptx_gen_shuffle): Add support for QImode and HImode registers.Cesar Philippidis2-0/+19
gcc/ * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode and HImode registers. libgomp/ * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test. From-SVN: r233607
2016-02-22re PR tree-optimization/69882 (Excessive reduction statements generated by SLP)Richard Biener4-7/+67
2016-02-22 Richard Biener <rguenther@suse.de> PR tree-optimization/69882 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly preserve permutations present because of gaps. (vect_supported_load_permutation_p): Always continue checking permutations after vect_attempt_slp_rearrange_stmts. * gfortran.dg/vect/pr69882.f90: New testcase. From-SVN: r233605
2016-02-22tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump ↵Bin Cheng2-2/+7
min_profitable_estimate, rather than min_profitable_iters. * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump min_profitable_estimate, rather than min_profitable_iters. From-SVN: r233604
2016-02-22re PR bootstrap/69885 (ICE in maybe_legitimize_operand, at optabs.c:6903 on ↵Jakub Jelinek4-3/+27
m68k-linux-gnu) PR target/69885 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use SImode for last match_operand. * gcc.dg/pr69885.c: New test. From-SVN: r233603
2016-02-22HSA: fix emission of clrsb{l,ll} builtinsMartin Liska2-3/+11
* hsa-gen.c (gen_hsa_clrsb): In case of zero value, return bitsize - 1 as the return value. From-SVN: r233602
2016-02-22re PR rtl-optimization/69806 ([SH] Combine doesn't see constant)Oleg Endo5-10/+190
gcc/ PR target/69806 PR target/54089 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle negative shift counts. * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use force_reg on the shift constant. (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d. (lshrsi3_d): Handle negative shift counts. gcc/testsuite/ PR target/69806 PR target/54089 * gcc.target/sh/pr54089-10.c: New. From-SVN: r233601
2016-02-22Add dot-fn to gdbhooks.pyRichard Biener3-4/+105
2016-02-22 Richard Biener <rguenther@suse.de> Tom de Vries <tom@codesourcery.com> * graph.c: Include dumpfile.h. (print_graph_cfg): Split into three overloads. * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn. Co-Authored-By: Tom de Vries <tom@codesourcery.com> From-SVN: r233600
2016-02-22Add dump-fn to gdbhooks.pyTom de Vries2-0/+96
2016-02-22 Tom de Vries <tom@codesourcery.com> * gdbhooks.py (class DumpFn): Add and instantiate, adding command dump-fn. From-SVN: r233599
2016-02-22re PR middle-end/37448 (cannot compile big function)Richard Biener3-5/+49
2016-02-22 Richard Biener <rguenther@suse.de> PR ipa/37448 * ipa-inline-transform.c (inline_call): When not updating overall summaries adjust self size by the growth estimate. * ipa-inline.c (inline_to_all_callers_1): Add to the callers hash-set, do not update overall summaries here. Renamed from ... (inline_to_all_callers): ... this which is now wrapping the above and performing delayed overall summary update. (early_inline_small_functions): Delay updating of the overall summary. From-SVN: r233598
2016-02-22Daily bump.GCC Administrator1-1/+1
From-SVN: r233597
2016-02-21Properly initialize variable in tree-chkp.c (chkp_mark_invalid_bounds_walker)Markus Trippelsdorf2-1/+6
* tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize variable. From-SVN: r233593
2016-02-21Daily bump.GCC Administrator1-1/+1
From-SVN: r233592
2016-02-20re PR fortran/69423 (Invalid optimization with deferred-length character)Paul Thomas4-110/+201
2016-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/69423 * trans-decl.c (create_function_arglist): Deferred character length functions, with and without declared results, address the passed reference type as '.result' and the local string length as '..result'. (gfc_null_and_pass_deferred_len): Helper function to null and return deferred string lengths, as needed. (gfc_trans_deferred_vars): Call it, thereby reducing repeated code, add call for deferred arrays and reroute pointer function results. Avoid using 'tmp' for anything other that a temporary tree by introducing 'type_of_array' for the arrayspec type. 2016-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/69423 * gfortran.dg/deferred_character_15.f90 : New test. From-SVN: r233589
2016-02-20[multiple changes]Dominique d'Humieres3-0/+57
2016-02-20 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/57365 gfortran.dg/allocate_with_source_18.f03: New test. 2016-02-20 Harald Anlauf <anlauf@gmx.de> PR fortran/52531 gfortran.dg/gomp/pr52531.f90: New test. From-SVN: r233588
2016-02-20Fix whitespace in gcc/testsuite/ChangeLogTom de Vries1-2/+2
From-SVN: r233586
2016-02-20Fix whitespace in gcc/ChangeLogTom de Vries1-8/+8
From-SVN: r233585
2016-02-20Remove stray log entry in gcc/ChangeLog-2015Tom de Vries1-3/+0
From-SVN: r233583
2016-02-19re PR c++/69743 (function overload with variadic arguments - template ↵Jason Merrill5-3/+29
instantiation depth exceeds maximum (gcc4, clang - no problem)) PR c++/69743 * call.c (remaining_arguments): No longer static. * cp-tree.h: Declare it. * pt.c (more_specialized_fn): Use it. From-SVN: r233579
2016-02-20Daily bump.GCC Administrator1-1/+1
From-SVN: r233578