aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2017-04-18re PR target/74563 (Classic MIPS16 (non-MIPS16e) function return broken)Jeff Law4-1/+25
PR target/74563 * mips.md ({return,simple_return}_internal): Do not overwrite operands[0]. PR target/74563 * gcc.target/mips/pr74563: New test. From-SVN: r246987
2017-04-19Daily bump.GCC Administrator1-1/+1
From-SVN: r246986
2017-04-18re PR tree-optimization/80443 (ICE on valid code at -O2 on x86_64-linux-gnu: ↵Jakub Jelinek4-16/+72
in set_value_range, at tree-vrp.c:367) PR tree-optimization/80443 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type, instead of adding 1, subtract -1 and similarly instead of subtracting 1 add -1. * gcc.c-torture/compile/pr80443.c: New test. From-SVN: r246981
2017-04-18re PR rtl-optimization/80357 (ICE in model_update_limit_points_in_group, at ↵Richard Sandiford4-1/+40
haifa-sched.c:1982 on powerpc64le-linux-gnu) gcc/ PR rtl-optimization/80357 * haifa-sched.c (tmp_bitmap): New variable. (model_recompute): Handle duplicate use records. (alloc_global_sched_pressure_data): Initialize tmp_bitmap. (free_global_sched_pressure_data): Free it. gcc/testsuite/ PR rtl-optimization/80357 * gcc.c-torture/compile/pr80357.c: New test. From-SVN: r246980
2017-04-18revert: Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.Bernd Edlinger2-13/+14
2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de> Revert: 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de> * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe. (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR instead of SYSTEM_HEADER_DIR. From-SVN: r246979
2017-04-18re PR middle-end/80422 (ICE on valid code at -O3 in 32-bit mode on ↵Jeff Law4-0/+42
x86_64-linux-gnu: in operator[], at vec.h:732) PR middle-end/80422 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have predecessors after walking up the insn chain. PR middle-end/80422 * gcc.c-torture/compile/pr80422.c: New test. From-SVN: r246975
2017-04-18re PR debug/80263 (gcc's internal type "sizetype" leaks out as base type ↵Jakub Jelinek4-10/+37
name in the DWARF info) PR debug/80263 * dwarf2out.c (modified_type_die): Try harder not to emit internal sizetype type into debug info. * gcc.dg/debug/dwarf2/pr80263.c: New test. From-SVN: r246973
2017-04-18re PR target/80099 (ICE in rs6000_expand_vector_extract, at ↵Michael Meissner9-8/+543
config/rs6000/rs6000.c:7450) [gcc] 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/80099 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate unneeded test for TARGET_UPPER_REGS_SF. * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise. [gcc/testsuite] 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/80099 * gcc.target/powerpc/pr80099-1.c: New test. * gcc.target/powerpc/pr80099-2.c: Likewise. * gcc.target/powerpc/pr80099-3.c: Likewise. * gcc.target/powerpc/pr80099-4.c: Likewise. * gcc.target/powerpc/pr80099-5.c: Likewise. From-SVN: r246972
2017-04-18re PR sanitizer/80444 (-fcompare-debug failures with ↵Jakub Jelinek4-1/+19
-fsanitize-coverage=trace-pc) PR sanitizer/80444 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb instead of gsi_after_labels. * gcc.dg/sancov/pr80444.c: New test. From-SVN: r246971
2017-04-18regcprop.c (maybe_mode_change): Avoid creating copies of the stack pointer.Jeff Law3-8/+19
* regcprop.c (maybe_mode_change): Avoid creating copies of the stack pointer. Revert: 2017-04-13 Jeff Law <law@redhat.com> * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if it is a MEM and TARGET_MIPS16 is active. From-SVN: r246970
2017-04-18Typo.Georg-Johann Lay1-1/+1
From-SVN: r246969
2017-04-18re PR c++/79435 (ICE on invalid C++ code (with member access into an ↵Georg-Johann Lay2-5/+12
incomplete type) on x86_64-linux-gnu: Segmentation fault) gcc/ PR target/79435 * config/avr/avr.c (intl.h): Include it. (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _(). From-SVN: r246966
2017-04-18re PR middle-end/79788 (ICE in expand_expr_real_2, at expr.c:9557)Jakub Jelinek5-21/+50
PR middle-end/79788 PR middle-end/80375 * c-common.c (c_common_type_for_mode): Don't handle widest_*_literal_type_node here. c_common_signed_or_unsigned_type): Likewise. (c_common_nodes_and_builtins): Set widest_*_literal_type_node to *intTI_type_node or *intDI_type_node depending on whether TImode is supported by the target or not. * gcc.dg/pr79788-1.c: New test. * gcc.dg/pr79788-2.c: New test. From-SVN: r246965
2017-04-18PR c++/80241 - ICE with alignas pack expansion.Marek Polacek5-2/+28
* error.c (dump_expr): Handle TREE_LIST. * parser.c (cp_parser_std_attribute_list): Return error_mark if make_pack_expansion returns an error. * g++.dg/cpp0x/alignas11.C: New test. From-SVN: r246963
2017-04-18PR c++/80244 - ICE with attribute in template alias.Marek Polacek4-0/+25
* tree.c (strip_typedefs): Handle UNDERLYING_TYPE. * g++.dg/cpp0x/alias-decl-59.C: New test. From-SVN: r246962
2017-04-18Validate that destination gcov file does not exist for gcov-tool (PR ↵Martin Liska2-0/+15
gcov-profile/78783). 2017-04-18 Martin Liska <mliska@suse.cz> PR gcov-profile/78783 * libgcov-driver.c (gcov_get_filename): New function. 2017-04-18 Martin Liska <mliska@suse.cz> PR gcov-profile/78783 * gcov-tool.c (gcov_output_files): Validate that destination file is either removed by the tool or by a user. From-SVN: r246961
2017-04-18Daily bump.GCC Administrator1-1/+1
From-SVN: r246960
2017-04-17017-04-17 Bernd Edlinger <bernd.edlinger@hotmail.de>Bernd Edlinger4-3/+107
PR c++/80287 * class.c (fixup_may_alias): Fix all type variants. gcc/testsuite 2017-04-17 Bernd Edlinger <bernd.edlinger@hotmail.de> PR c++/80287 * g++.dg/lto/pr80287_0.C: New test. From-SVN: r246955
2017-04-17PR c++/80415 - wrong error with default arg and array reference.Jason Merrill4-2/+13
* tree.c (lvalue_kind): Return clk_class for an array prvalue. From-SVN: r246954
2017-04-17* pt.c (tsubst_init): Set TARGET_EXPR_DIRECT_INIT_P.Jason Merrill3-0/+26
From-SVN: r246953
2017-04-17re PR fortran/80440 (Slow compile when USEing modules)Paul Thomas2-38/+9
2017-04-17 Paul Thomas <pault@gcc.gnu.org> PR fortran/80440 * module.c (find_symtree_for_symbol): Delete. (read_module): Remove the call to the above. From-SVN: r246952
2017-04-17re PR target/80315 (Calling __builtin_crypto_vshasigmaw with argument 3 out ↵Kelvin Nilsen5-0/+76
of range creates an unrecognizable insn) gcc/testsuite/ChangeLog: 2017-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org> PR target/80315 * gcc.target/powerpc/pr80315-1.c: New test. * gcc.target/powerpc/pr80315-2.c: New test. * gcc.target/powerpc/pr80315-3.c: New test. * gcc.target/powerpc/pr80315-4.c: New test. From-SVN: r246949
2017-04-17Daily bump.GCC Administrator1-1/+1
From-SVN: r246948
2017-04-16Remove braces around line number in dejagnu directiveTom de Vries10-13/+26
2017-04-16 Tom de Vries <tom@codesourcery.com> * g++.dg/parse/error11.C: Remove braces around line number in dejagnu directive. * g++.dg/parse/error3.C: Same. * g++.old-deja/g++.pt/niklas01a.C: Same. * gcc.dg/990506-0.c: Same. * gcc.dg/cpp/19990413-1.c: Same. * gcc.dg/cpp/pragma-1.c: Same. * gcc.dg/cpp/pragma-2.c: Same. * gcc.dg/m-un-2.c: Same. * objc.dg/private-1.m: Same. From-SVN: r246945
2017-04-16Daily bump.GCC Administrator1-1/+1
From-SVN: r246944
2017-04-15pr54669.c: Fix dg-do directive.Uros Bizjak14-15/+30
* gcc.dg/pr54669.c: Fix dg-do directive. * gcc.dg/pr78582.c: Ditto. * gcc.dg/pr80020.c: Ditto. * gcc.dg/torture/pr57993-2.cpp: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto. * gcc.dg/tree-ssa/pr79327-2.c: Ditto. * gcc.dg/tree-ssa/pr79352.c: Ditto. * gcc.dg/tree-ssa/pr79376.c: Ditto. * gcc.dg/tree-ssa/pr79691.c: Ditto. From-SVN: r246941
2017-04-15deferred_character_3.f90: Fix dg directive.Dominique d'Humieres6-5/+13
2017-04-15 Dominique d'Humieres <dominiq@lps.ens.fr> * gfortran.dg/deferred_character_3.f90: Fix dg directive. * gfortran.dg/generic_29.f90: Likewise. * gfortran.dg/goacc/multi-clause.f90: Likewise. * gfortran.dg/pr41922.f90: Likewise. * gfortran.dg/pr70006.f90: Likewise. From-SVN: r246940
2017-04-15rs6000: Testcase 20050830-1.c no longer fails (PR66612)Segher Boessenkool2-2/+6
Bin's commit r246810, for PR80153, fixes 20050830-1.c for -m64 (it already passed for -m32). So, this patch removes the remaining xfail. gcc/testsuite/ PR tree-optimization/66612 * gcc.target/powerpc/20050830-1.c: Remove xfail. From-SVN: r246939
2017-04-15[libcp1] handle anon aggregates linkage-named by typedefsAlexandre Oliva3-31/+51
Arrange for the first typedef to an anonymous type in the same context to be used as the linkage name for the type. for gcc/cp/ChangeLog * decl.c (name_unnamed_type): Split out of... (grokdeclarator): ... this. * decl.h (name_unnamed_type): Declare. for libcc1/ChangeLog * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type. From-SVN: r246938
2017-04-15Daily bump.GCC Administrator1-1/+1
From-SVN: r246937
2017-04-14re PR fortran/80361 ([OOP] bogus recursive call to nonrecursive procedure ↵Janus Weil4-0/+40
with -fcheck=recursion) 2017-04-14 Janus Weil <janus@gcc.gnu.org> PR fortran/80361 * class.c (generate_finalization_wrapper): Give the finalization wrapper the recursive attribute. 2017-04-14 Janus Weil <janus@gcc.gnu.org> PR fortran/80361 * gfortran.dg/class_62.f90: New test case. From-SVN: r246934
2017-04-14arc: Fix for loop end detectionAndrew Burgess4-2/+58
We use a negative ID number to link together the doloop_begin and doloop_end instructions. This negative ID number is setup within doloop_begin, at this point the ID is stored into the loop end instruction (doloop_end_i) and placed into the doloop_begin_i instruction. In arc.c (arc_reorg) we extract the ID from the doloop_end_i instruction in order to find the matching doloop_begin_i instruction, though the ID is only used in some cases. Currently in arc_reorg when we extract the ID we negate it. This negation is invalid. The ID stored in both doloop_end_i and doloop_begin_i is already negative, the negation in arc_reorg means that if we need to use the ID to find the doloop_begin_i then we will never find it (as the IDs will never match). This commit removes the unneeded negation, moves the extraction of the ID into a more appropriately scoped block and adds a new test for this issue. gcc/ChangeLog: * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local block, and do not negate it, the stored id is already negative. gcc/testsuite/ChangeLog: * gcc.target/arc/loop-1.c: New file. Co-Authored-By: Guy Benyei <guybe@mellanox.com> From-SVN: r246933
2017-04-14arc: Use @pcl assembler syntax instead of invalid expressionsAndrew Burgess2-1/+5
The old ARC assembler would accept expressions like 'LABEL-(.&-4)' which would calculate the offset from the PCL to LABEL. The new ARC assembler does not accept these expressions, instead there's an @pcl synax, used like LABEL@pcl which gives the offset from PCL to LABEL. Most of the use of the old expression syntax have been removed, however, this one got missed. gcc/ChangeLog: * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax. From-SVN: r246932
2017-04-14re PR target/80098 (ICE in curr_insn_transform, at lra-constraints.c:3816 on ↵Michael Meissner8-13/+176
ppc64le) [gcc] 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/80098 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define masks of options that should be turned off if the VSX vector options are turned off. (OTHER_P8_VECTOR_MASKS): Likewise. (OTHER_VSX_VECTOR_MASKS): Likewise. * config/rs6000/rs6000.c (rs6000_option_override_internal): Call rs6000_disable_incompatible_switches to validate no type switches like -mvsx. (rs6000_incompatible_switch): New function to disallow turning on other vector options if -mno-vsx, -mno-power8-vector, or -mno-power9-vector are specified. [gcc/testsuite] 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/80098 * gcc.target/powerpc/pr80098-1.c: New test. * gcc.target/powerpc/pr80098-2.c: Likewise. * gcc.target/powerpc/pr80098-3.c: Likewise. * gcc.target/powerpc/pr80098-4.c: Likewise. From-SVN: r246930
2017-04-14[ARC] Use long jumps for CRT callsClaudiu Zissulescu2-4/+9
gcc/ 2017-04-17 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls. From-SVN: r246927
2017-04-14[ARC] DWARF emitting cleanup.Claudiu Zissulescu4-17/+7
The use of CFA_FRAME_BASE_OFFSET and ARG_POINTER_CFA_OFFSET macros leads to wrong offset calculation for DW_OP_fbreg constructions. Remove them. gcc/ 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc-protos.h (arc_decl_pretend_args): Remove. * config/arc/arc.c (arc_decl_pretend_args): Likewise. * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise. (ARG_POINTER_CFA_OFFSET): Likewise. From-SVN: r246926
2017-04-14[ARC] Update mode_dependent_address_p hook.Claudiu Zissulescu2-6/+7
Update arc_mode_dependent_address_p to avoid emitting subreg(mem (reg ..)) when expanding by relaxing the conditions. gcc/ 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.c (arc_mode_dependent_address_p): Relax conditions to take advantage of various optimizations. From-SVN: r246925
2017-04-13mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if ↵Jeff Law2-2/+14
it is a MEM and TARGET_MIPS16 is active. * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear in operands[1] if it is a MEM and TARGET_MIPS16 is active. (zero_extendsidi2_dext): Likewise. From-SVN: r246924
2017-04-14Daily bump.GCC Administrator1-1/+1
From-SVN: r246923
2017-04-13re PR sanitizer/80403 (UBSAN: compile time crash with "type mismatch in ↵Jakub Jelinek4-1/+27
binary expression" message in / and % expr) PR sanitizer/80403 * fold-const.c (fold_ternary_loc): Revert use op0 instead of fold_convert_loc (loc, type, arg0) part of 2017-04-12 change. * g++.dg/ubsan/pr80403-2.C: New test. From-SVN: r246917
2017-04-13re PR rtl-optimization/80343 (ICE in extract_constrain_insn, at recog.c:2213 ↵Vladimir Makarov4-0/+70
(error: insn does not satisfy its constraints)) 2017-04-13 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/80343 * lra-remat.c (update_scratch_ops): Assign original hard reg to new scratch pseudo. 2017-04-13 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/80343 * gcc.target/powerpc/pr80343.c: New. From-SVN: r246914
2017-04-13re PR sanitizer/80414 ([UBSAN] segfault with -fsanitize=undefined)Denis Khalikov4-5/+29
PR sanitizer/80414 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index to ubsan_encode_value. * c-c++-common/ubsan/bounds-15.c: New test. From-SVN: r246909
2017-04-13reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs appearing ↵Jeff Law2-0/+7
in DEBUG_INSNs. * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs appearing in DEBUG_INSNs. From-SVN: r246904
2017-04-13Do not call memcpy with a NULL argument (PR gcov-profile/80413).Martin Liska2-2/+12
2017-04-13 Martin Liska <mliska@suse.cz> PR gcov-profile/80413 * gcov-io.c (gcov_write_string): Copy to buffer just when allocated size is greater than zero. From-SVN: r246903
2017-04-13re PR testsuite/80416 (FAIL: g++.dg/torture/pr79671.C -O2 execution test)Richard Biener2-1/+6
2017-04-13 Richard Biener <rguenther@suse.de> PR testsuite/80416 * g++.dg/torture/pr79671.C: Fix asm constraints. From-SVN: r246902
2017-04-13re PR debug/80321 (infinite recursion with inlining of nested function and ↵Jakub Jelinek6-1/+254
debug info) PR debug/80321 * dwarf2out.c (decls_for_scope): Ignore declarations of current_function_decl in BLOCK_NONLOCALIZED_VARS. * gcc.dg/debug/pr80321.c: New test. 2017-04-13 Eric Botcazou <ebotcazou@adacore.com> * gnat.dg/debug10.adb: New test. * gnat.dg/debug10_pkg.ads: New helper. From-SVN: r246900
2017-04-13re PR c++/69953 (Using lto causes gtkmm/gparted and gtkmm/inkscape compile ↵Jan Hubicka2-4/+43
to fail) PR lto/69953 * ipa-visibility.c (non_local_p): Fix typos. (localize_node): When localizing symbol in same comdat group, dissolve the group only when we know external symbols are going to be privatized. (function_and_variable_visibility): Do not localize DECL_EXTERNAL. From-SVN: r246899
2017-04-13Daily bump.GCC Administrator1-1/+1
From-SVN: r246898
2017-04-12re PR tree-optimization/79390 (10% performance drop in SciMark2 LU after ↵Jakub Jelinek4-31/+59
r242550) PR tree-optimization/79390 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand order does not result in usable sequence, retry with reversed operand order. * gcc.target/i386/pr70465-2.c: Xfail the scan-assembler-not test. From-SVN: r246882
2017-04-12re PR sanitizer/80403 (UBSAN: compile time crash with "type mismatch in ↵Jakub Jelinek6-5/+57
binary expression" message in / and % expr) PR sanitizer/80403 PR sanitizer/80404 PR sanitizer/80405 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use op0 instead of fold_convert_loc (loc, type, arg0). * g++.dg/ubsan/pr80403.C: New test. * g++.dg/ubsan/pr80404.C: New test. * g++.dg/ubsan/pr80405.C: New test. From-SVN: r246881