aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2014-07-11Daily bump.GCC Administrator1-1/+1
From-SVN: r212445
2014-07-10There is a stray right paren.Edward Smith-Rowland1-1/+1
Fixed as obvious. From-SVN: r212442
2014-07-10re PR c++/61661 (Bogus error: ‘const Outer::Foo{&Outer::Bar}’ is not a ↵Jason Merrill3-5/+34
constant expression) PR c++/61661 * semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR. From-SVN: r212439
2014-07-10re PR ipa/61659 (Extra undefined symbol because of devirtualization)Jason Merrill8-4/+70
PR c++/61659 PR c++/61687 gcc/c-family/ * c.opt (-fuse-all-virtuals): New. gcc/cp/ * decl2.c (mark_all_virtuals): New variable. (maybe_emit_vtables): Check it instead of flag_devirtualize. (cp_write_global_declarations): Set it and give helpful diagnostic if it introduces errors. * class.c (finish_struct_1): Check it. * decl.c (grokdeclarator): Clear virtualp after 'virtual auto' error. From-SVN: r212436
2014-07-10re PR tree-optimization/61757 (genmodes failure with enable-checking)Richard Biener2-1/+35
2014-07-10 Richard Biener <rguenther@suse.de> PR tree-optimization/61757 * tree-ssa-dom.c (loop_depth_of_name): Restore. (propagate_rhs_into_lhs): Revert part of last change. From-SVN: r212433
2014-07-10Add addressing=absolute and isa_rev=0 to mips fuse-caller-save testsTom de Vries4-3/+11
2014-07-10 Tom de Vries <tom@codesourcery.com> * gcc.target/mips/fuse-caller-save.c: Add addressing=absolute to dg-options. * gcc.target/mips/fuse-caller-save-micromips.c: Same. * gcc.target/mips/fuse-caller-save-mips16.c: Same. Add isa_rev=0 to dg-options. From-SVN: r212432
2014-07-10re PR c/61741 (wrong code with -fno-strict-overflow)Richard Biener2-1/+6
2014-07-10 Richard Biener <rguenther@suse.de> PR c-family/61741 * c-c++-common/torture/pr61741.c: Use signed char. From-SVN: r212430
2014-07-10Fix --enable-checking=fold failure.Thomas Schwinge2-1/+7
gcc/ * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for FUNCTION_DECLs. From-SVN: r212428
2014-07-10re PR middle-end/53590 (compiler fails to generate SIMD instruction for FP ↵Eric Botcazou5-1/+44
division) PR middle-end/53590 * function.c (allocate_struct_function): Revert r188667 change. * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant. From-SVN: r212424
2014-07-10install.texi: Remove links to defunct package providers for Solaris.Tom G. Christensen2-6/+5
* doc/install.texi: Remove links to defunct package providers for Solaris. From-SVN: r212422
2014-07-10re PR tree-optimization/61742 (wrong code at -O3 on x86_64-linux-gnu)Yuri Rumyantsev4-1/+38
PR tree-optimization/61742 gcc/testsuite/ * gcc.dg/torture/pr61742.c: New test. * gcc.gg/vect/cond-reduc-1.c: Rename it to vect-cond-reduc-1.c * gcc.gg/vect/cond-reduc-2.c: Rename it to vect-cond-reduc-2.c From-SVN: r212421
2014-07-10Daily bump.GCC Administrator1-1/+1
From-SVN: r212420
2014-07-09Add missing ChangeLog entriesTom de Vries2-0/+10
From-SVN: r212416
2014-07-09re PR c++/60686 (message " only declarations of constructors can be ↵Paolo Carlini4-3/+44
‘explicit’ " now conflicting with C++11) /cp 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60686 * decl.c (grokdeclarator): Adjust error messages about 'explicit' outside class declaration, in friend declaration, and neither on constructor nor conversion operator. /testsuite 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60686 * g++.dg/cpp0x/explicit8.C: New. From-SVN: r212415
2014-07-09DR 1584 PR c++/57466Paolo Carlini6-6/+51
/cp 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> DR 1584 PR c++/57466 * pt.c (check_cv_quals_for_unify): Implement resolution, disregard cv-qualifiers of function types. /testsuite 2014-07-09 Paolo Carlini <paolo.carlini@oracle.com> DR 1584 PR c++/57466 * g++.dg/template/pr57466.C: New. * g++.dg/cpp0x/pr57466.C: Likewise. * g++.dg/template/unify6.C: Update. From-SVN: r212410
2014-07-09Enable fuse-caller-save on self-recursive functionsTom de Vries2-1/+45
2014-07-09 Tom de Vries <tom@codesourcery.com> * final.c (get_call_fndecl): Declare. (self_recursive_call_p): New function. (collect_fn_hard_reg_usage): Handle self-recursive function calls. * gcc.target/i386/fuse-caller-save-rec.c: New test. From-SVN: r212409
2014-07-09libgfortran.h (support_fpu_underflow_control, [...]): New prototypes.Francois-Xavier Coudert2-0/+54
* libgfortran.h (support_fpu_underflow_control, get_fpu_underflow_mode, set_fpu_underflow_mode): New prototypes. * config/fpu-*.h (support_fpu_underflow_control, get_fpu_underflow_mode, set_fpu_underflow_mode): New functions. * ieee/ieee_arithmetic.F90: Support underflow control. * gfortran.dg/ieee/underflow_1.f90: New file. From-SVN: r212407
2014-07-09* ipa-devirt.c (record_node): Walk through aliases.Jan Hubicka2-2/+18
From-SVN: r212406
2014-07-09* lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.Jan Hubicka2-24/+14
From-SVN: r212404
2014-07-09re PR c/61741 (wrong code with -fno-strict-overflow)Richard Biener4-3/+35
2014-07-09 Richard Biener <rguenther@suse.de> PR c-family/61741 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions using unsigned arithmetic if overflow does not wrap instead of if overflow is undefined. * c-c++-common/torture/pr61741.c: New testcase. From-SVN: r212400
2014-07-09* lib/target-supports.expPat Haugen2-0/+6
(check_effective_target_logical_op_short_circuit): Add powerpc*-*-*. From-SVN: r212398
2014-07-09revert: stor-layout.c (finish_builtin_struct): Copy fields into the variants.Jan Hubicka2-5/+6
Revert: * stor-layout.c (finish_builtin_struct): Copy fields into the variants. From-SVN: r212397
2014-07-09ipa-visibility.c (function_and_variable_visibility): Remove temporary hack ↵Jan Hubicka2-7/+6
disabling local aliases on AIX. * ipa-visibility.c (function_and_variable_visibility): Remove temporary hack disabling local aliases on AIX. From-SVN: r212396
2014-07-09ipa-cp.c (devirtualization_time_bonus): Walk through aliases.Jan Hubicka3-0/+13
* ipa-cp.c (devirtualization_time_bonus): Walk through aliases. * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise. From-SVN: r212395
2014-07-09rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.Jan Hubicka7-12/+136
* rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare. * rs6000/rs6000.c: Inline output of .set instruction. (declare_alias_data): New struct. (rs6000_declare_alias): New function. (rs6000_xcoff_declare_function_name): Use it. (rs6000_xcoff_declare_object_name): New function. * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME. (ASM_OUTPUT_DEF): Turn to empty definition. From-SVN: r212394
2014-07-09PR c++/58155 - -Wliteral-suffix warns about tokens which are skippedEdward Smith-Rowland2-0/+18
libcpp/ 2014-07-09 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped by preprocessor * lex.c (lex_raw_string ()): Do not warn about invalid suffix if skipping. (lex_string ()): Ditto. gcc/testsuite/ 2014-07-09 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped g++.dg/cpp0x/pr58155.C: New. From-SVN: r212392
2014-07-09java: Use build_qualified_type instead of build_type_variant.Mark Wielaard3-7/+16
gcc/java/ChangeLog * builtins.c (putVolatile_builtin): Use build_qualified_type instead of build_type_variant. (getVolatile_builtin): Likewise. (build_classdollar_field): Likewise. From-SVN: r212389
2014-07-09Avoid using create_tmp_var for static decls.Bernd Schmidt3-2/+17
* trans-array.c (gfc_build_constant_array_constructor): Build a static decl manually. * trans-decl.c (create_main_function): Likewise. From-SVN: r212388
2014-07-09re PR testsuite/61453 (gfortran.dg/bind_c_array_params_2.f90 for targets ↵Dominique d'Humieres2-2/+8
where a call insn isn't "call") 2014-07-09 Dominique d'Humieres <dominiq@lps.ens.fr> PR testsuite/61453 * gfortran.dg/gfortran.dg/bind_c_array_params_2.f90: Adjust regexp for more targets. From-SVN: r212387
2014-07-09re PR c++/59361 (cannot expand parenthesized pack expression)Andrew Sutton4-0/+34
/cp 2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/59361 * parser.c (cp_parser_tokens_start_cast_expression): Return 0 for CPP_ELLIPSIS too. /testsuite 2014-07-09 Andrew Sutton <andrew.n.sutton@gmail.com> Paolo Carlini <paolo.carlini@oracle.com> PR c++/59361 * g++.dg/cpp0x/vt-59361.C: New. Co-Authored-By: Paolo Carlini <paolo.carlini@oracle.com> From-SVN: r212386
2014-07-09playcate old gccTrevor Saunders2-10/+21
gcc/ PR bootstrap/61679 * hash-table.h: use hash_table::value_type instead of Descriptor::value_type in the return types of several methods. From-SVN: r212384
2014-07-09remove has_executeTrevor Saunders131-246/+41
gcc/ * tree-pass.h (pass_data): Remove has_execute member. * passes.c (execute_one_pass): Don't check pass->has_execute. * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c, cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c, compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c, config/epiphany/resolve-sw-modes.c, config/i386/i386.c, config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c, config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c, gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c, ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c, tree-object-size.c, tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c, tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c: Remove initializer for pass_data::has_execute. From-SVN: r212383
2014-07-09convert some hash_table to hash_mapTrevor Saunders6-192/+65
gcc/ * graphite-htab.h: Use hash_map instead of hash_table. * graphite-clast-to-gimple.c: Adjust. * passes.c: Use hash_map instead of hash_table. * sese.c: Likewise. * sese.h: Remove now unused code. From-SVN: r212382
2014-07-09Fix pr60226.c on darwin.Mike Stump1-1/+1
From-SVN: r212381
2014-07-09re PR target/61599 ([x86_64] With -mcmodel=medium, extern global arrays ↵Sriraman Tallam5-2/+44
without size are not treated conservatively.) 2014-07-08 Sriraman Tallam <tmsriram@google.com> PR target/61599 * config/i386/i386.c (ix86_in_large_data_p): Check for size less than zero. PR target/61599 * gcc.target/i386/pr61599-1.c: New test. * gcc.target/i386/pr61599-2.c: New test. From-SVN: r212380
2014-07-09Daily bump.GCC Administrator1-1/+1
From-SVN: r212379
2014-07-08re PR go/61308 (gccgo: ICE in Expression::check_bounds [GoSmith])Ian Lance Taylor1-2/+10
PR go/61308 compiler: Convert array start index before bounds checking. From-SVN: r212372
2014-07-08re PR go/61746 (A line starting with /*// causes an error even if the /* is ↵Ian Lance Taylor1-1/+1
closed on the next line) PR go/61746 compiler: Fix C-style comment parsing. The compiler was incorrectly seeing /*/ as a complete C-style comment. From-SVN: r212370
2014-07-08re PR rtl-optimization/61673 (Miscompilation of _gnutls_hostname_compare on ↵Jakub Jelinek4-1/+60
s390) PR rtl-optimization/61673 * combine.c (simplify_comparison): Test just mode's sign bit in tmode rather than the sign bit and any bits above it. * gcc.c-torture/execute/pr61673.c: New test. From-SVN: r212364
2014-07-08graphite-isl-ast-to-gimple.c (generate_isl_context): Add __isl_give to the ↵Roman Gareev2-3/+10
declaration. gcc/ * graphite-isl-ast-to-gimple.c (generate_isl_context): Add __isl_give to the declaration. (generate_isl_schedule): Likewise. (scop_to_isl_ast): Likewise. From-SVN: r212361
2014-07-08[ARM] Cortex-A5 rtx costs tableKyrylo Tkachov2-1/+107
* config/arm/arm.c (cortexa5_extra_costs): New table. (arm_cortex_a5_tune): Use cortexa5_extra_costs. From-SVN: r212358
2014-07-08re PR middle-end/61725 (__builtin_ffs(0) leads to wrong code generation)Jakub Jelinek5-3/+69
PR tree-optimization/61725 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned range, use range_includes_zerop_p instead of integer_zerop on vr0->min, only use log2 of max if min is not negative. * gcc.dg/tree-ssa/vrp93.c: New test. * gcc.c-torture/execute/pr61725.c: New test. From-SVN: r212353
2014-07-08tree-ssa-dom.h (loop_depth_of_name): Remove.Richard Biener6-67/+36
2014-07-08 Richard Biener <rguenther@suse.de> * tree-ssa-dom.h (loop_depth_of_name): Remove. * tree-ssa-dom.c (record_equivalences_from_phis): Remove restriction on loop depth difference. (record_equality): Likewise. (propagate_rhs_into_lhs): Likewise. Simplify condition. (loop_depth_of_name): Remove. * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove restriction on loop depth difference. (init_copy_prop): Likewise. * gcc.dg/tree-ssa/ssa-pre-16.c: Adjust expected eliminations. From-SVN: r212352
2014-07-08tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED parameter.Jan Hubicka4-9/+37
* tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED parameter. (walk_aliased_vdefs): Likewise. * tree-ssa-alias.h (walk_aliased_vdefs): Likewise. * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers (detect_type_change_from_memory_writes): Check if entry was reached. From-SVN: r212351
2014-07-08re PR tree-optimization/61681 (wrong code at -Os and above on x86_64-linux-gnu)Richard Biener4-0/+52
2014-07-08 Richard Biener <rguenther@suse.de> PR tree-optimization/61681 * tree-ssa-structalias.c (find_what_var_points_to): Expand NONLOCAL inside ESCAPED. * gcc.dg/torture/pr61681.c: New testcase. From-SVN: r212349
2014-07-08re PR tree-optimization/61680 (vectorization gives wrong answer for ↵Richard Biener4-5/+70
sandybridge target) 2014-07-08 Richard Biener <rguenther@suse.de> PR tree-optimization/61680 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle properly all read-write dependences with group accesses. * gcc.dg/vect/pr61680.c: New testcase. From-SVN: r212348
2014-07-08re PR tree-optimization/61576 (wrong code at -O3 on x86_64-linux-gnu)Yuri Rumyantsev4-1/+48
PR tree-optimization/61576 gcc/ * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic block containing reduction statement is predecessor of phi basi block. gcc/testsuite/ * gcc.dg/torture/pr61576.c: New test. From-SVN: r212347
2014-07-08re PR middle-end/60226 (ICE initializing array of elements with too large ↵Marek Polacek6-3/+34
alignment) PR c/60226 * fold-const.c (round_up_loc): Change the parameter type. Remove assert. * fold-const.h (round_up_loc): Adjust declaration. * stor-layout.c (finalize_record_size): Check for too large types. * c-c++-common/pr60226.c: New test. From-SVN: r212346
2014-07-08Daily bump.GCC Administrator1-1/+1
From-SVN: r212345
2014-07-07re PR fortran/61459 (segfault when assigning to allocatable function result ↵Paul Thomas4-4/+76
from matmul result) 2014-07-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/61459 PR fortran/58883 * trans-expr.c (fcncall_realloc_result): Use the natural type for the address expression of 'res_desc'. 2014-07-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/61459 PR fortran/58883 * gfortran.dg/allocatable_function_8.f90 : New test From-SVN: r212339