aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2014-05-06compiler: Use backend interface for slice construction.Chris Manghane5-111/+96
* go-gcc.cc (Gcc_backend::implicit_variable): Rename from gc_root_variable. Add name and is_constant parameters. From-SVN: r210088
2014-05-05compiler: Handle recursive pointer types for unary indirection.Chris Manghane5-32/+58
* go-gcc.cc (Gcc_backend::indirect_expression): Add btype parameter. (Gcc_backend::temporary_variable): Check for erroneous function. From-SVN: r210087
2014-05-05re PR ipa/60965 (IPA: Devirtualization versus placement new)Jan Hubicka4-0/+44
PR ipa/60965 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD. * g++.dg/ipa/devirt-32.C: New testcase. From-SVN: r210086
2014-05-05Add call_fusage_contains_non_callee_clobbers hookRadovan Obradovic4-0/+49
2014-05-05 Radovan Obradovic <robradovic@mips.com> Tom de Vries <tom@codesourcery.com> * target.def (call_fusage_contains_non_callee_clobbers): New DEFHOOKPOD. * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register Hooks to @menu. (@node Miscellaneous Register Hooks): New node. (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook. * doc/tm.texi: Regenerate. Co-Authored-By: Tom de Vries <tom@codesourcery.com> From-SVN: r210085
2014-05-05compiler: Use backend interface for type info expressions.Ian Lance Taylor1-3/+7
From-SVN: r210084
2014-05-05re PR driver/61065 ([4.9/4.10 Regresion] invalid args to -fsanitize should ↵Marek Polacek2-3/+8
be an error not a warning) PR driver/61065 * opts.c (common_handle_option): Call error_at instead of warning_at. From-SVN: r210080
2014-05-05compiler: Use backend interface for sink expressions.Ian Lance Taylor1-5/+16
From-SVN: r210078
2014-05-05compiler: Use backend interface for set and use temporaries.Ian Lance Taylor1-9/+9
From-SVN: r210077
2014-05-05compiler: Use backend interface for struct field offsets.Ian Lance Taylor1-16/+15
From-SVN: r210074
2014-05-05passes.c (execute_function_todo): Don't reset TODO_verify_ssa from ↵Richard Biener2-3/+8
last_verified if update_ssa ran. 2014-05-05 Richard Biener <rguenther@suse.de> * passes.c (execute_function_todo): Don't reset TODO_verify_ssa from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing under the TODO_verify_il umbrella. From-SVN: r210073
2014-05-05compiler: Use backend interface for bound method expressions.Ian Lance Taylor1-22/+12
From-SVN: r210072
2014-05-05passes.c (execute_function_todo): Move TODO_verify_flow under the ↵Richard Biener2-5/+10
TODO_verify_ul umbrella. 2014-05-05 Richard Biener <rguenther@suse.de> * passes.c (execute_function_todo): Move TODO_verify_flow under the TODO_verify_ul umbrella. From-SVN: r210068
2014-05-05re PR middle-end/61010 (Infinite recursion in fold)Richard Biener4-19/+34
2014-05-05 Richard Biener <rguenther@suse.de> PR middle-end/61010 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing X & CST away from a CST that is the mask of a mode. * gcc.dg/torture/pr61010.c: New testcase. From-SVN: r210066
2014-05-05picochip-protos.h (picochip_regno_nregs): Change int argument to enum ↵Jan-Benedict Glaw3-4/+12
machine_mode. 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config/picochip/picochip-protos.h (picochip_regno_nregs): Change int argument to enum machine_mode. (picochip_class_max_nregs): Ditto. * config/picochip/picochip.c (picochip_regno_nregs): Ditto. (picochip_class_max_nregs): Ditto. From-SVN: r210065
2014-05-05target.def: Add new target hook.Andreas Krebbel10-1/+66
2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * target.def: Add new target hook. * doc/tm.texi: Regenerate. * targhooks.h (default_keep_leaf_when_profiled): Add prototype. * targhooks.c (default_keep_leaf_when_profiled): New function. * config/s390/s390.c (s390_keep_leaf_when_profiled): New function. (TARGET_KEEP_LEAF_WHEN_PROFILED): Define. 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.target/s390/leaf-profile.c: New testcase. From-SVN: r210061
2014-05-05hoist-register-pressure-1.c: Replace int with long.Andreas Krebbel4-15/+34
2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.dg/hoist-register-pressure-1.c: Replace int with long. Disable asm scan for s390. * gcc.dg/hoist-register-pressure-2.c: Likewise. * gcc.dg/hoist-register-pressure-3.c: Likewise. From-SVN: r210060
2014-05-05re PR tree-optimization/60363 (logical_op_short_circuit, ↵Bin Cheng4-15/+95
gcc.dg/tree-ssa/ssa-dom-thread-4.c scan-tree-dump-times dom1 "Threaded" 4) PR tree-optimization/60363 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New. (copy_phi_args): New parameters. Call get_value_locus_in_path. (update_destination_phis): New parameter. (create_edge_and_update_destination_phis): Ditto. (ssa_fix_duplicate_block_edges): Pass new arguments. (thread_single_edge): Ditto. PR tree-optimization/60363 * gcc.dg/tree-ssa/ssa-dom-thread-4.c: Revert XFAIL test. From-SVN: r210059
2014-05-04rs6000.h (RS6000_BTM_HARD_FLOAT): New define.Peter Bergner7-10/+51
gcc/ * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define. (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT. (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT. * config/rs6000/rs6000-builtin.def (BU_MISC_1): Use RS6000_BTM_HARD_FLOAT. (BU_MISC_2): Likewise. * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle RS6000_BTM_HARD_FLOAT. (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp is explicitly used. (rs6000_invalid_builtin): Add hard floating builtin support. (rs6000_expand_builtin): Relax the gcc_assert to allow the new hard float builtins. (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT. gcc/testsuite/ * gcc.target/powerpc/pack02.c (dg-options): Add -mhard-float. (dg-require-effective-target): Change target to powerpc_fprs. * gcc.target/powerpc/pack03.c (dg-options): Add -mhard-dfp. (dg-require-effective-target): Change target to dfprt. From-SVN: r210054
2014-05-05Daily bump.GCC Administrator1-1/+1
From-SVN: r210053
2014-05-04Daily bump.GCC Administrator1-1/+1
From-SVN: r210047
2014-05-03re PR c++/58582 ([c++11] ICE defining and instantiating deleted template ↵Paolo Carlini7-9/+60
function) /cp 2014-05-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58582 * decl.c (grokfndecl): Check duplicate_decls return value for error_mark_node. * pt.c (instantiate_decl): A deleted function is defined. /testsuite 2014-05-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58582 * g++.dg/cpp0x/deleted4.C: New. * g++.dg/cpp0x/deleted5.C: Likewise. * g++.dg/cpp0x/deleted6.C: Likewise. From-SVN: r210043
2014-05-03sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute): Add missing ↵Oleg Endo2-5/+10
function* argument. * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute): Add missing function* argument. From-SVN: r210040
2014-05-03lra-constraints.c (valid_address_p): Move earlier in file.Richard Sandiford2-58/+102
gcc/ * lra-constraints.c (valid_address_p): Move earlier in file. Add a constraint argument to the address_info version. (satisfies_memory_constraint_p): New function. (satisfies_address_constraint_p): Likewise. (process_alt_operands, curr_insn_transform): Use them. (process_address): Pass the constraint to valid_address_p when checking address operands. From-SVN: r210039
2014-05-03mips.c (mips_isa_rev): New variable.Richard Sandiford3-57/+43
gcc/ * config/mips/mips.c (mips_isa_rev): New variable. (mips_set_architecture): Set it. * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev from mips_isa_rev. (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4) (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT) (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH) (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1) (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress conditions in terms of mips_isa_rev. (mips_isa_rev): Declare. From-SVN: r210038
2014-05-03sh-mem.cc: Use tabs instead of spaces.Oleg Endo2-149/+151
* config/sh/sh-mem.cc: Use tabs instead of spaces. (prob_unlikely, prob_likely): Make variables const. From-SVN: r210037
2014-05-03avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.Denis Chertykov2-2/+6
* config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA. From-SVN: r210035
2014-05-032014-05-03 Dominique d'Humieres <dominiq@lps.ens.fr>Dominique d'Humieres1-2/+2
Fix typos in log entries. From-SVN: r210034
2014-05-03sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.Oleg Endo2-0/+20
* config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases. From-SVN: r210033
2014-05-03sh.h (ROUND_ADVANCE): Delete macro.Oleg Endo3-58/+79
* config/sh/sh.h (ROUND_ADVANCE): Delete macro. (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ... * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new functions. (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance, sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with sh_pass_in_reg_p. Replace usage of ROUND_REG with sh_round_reg. Use CEIL instead of ROUND_ADVANCE. From-SVN: r210032
2014-05-03re PR testsuite/61025 (FAIL: gfortran.dg/coarray_lib_this_image_1.f90)Dominique d'Humieres6-16/+26
2014-05-03 Dominique d'Humieres <dominiq@lps.ens.fr> PR fortran/61025 * gfortran.dg/coarray_lib_this_image_1.f90: Adjust the dg-final regexps for -m32. * gfortran.dg/coarray_lib_this_image_2.f90: Likewise. * gfortran.dg/coarray_poly_7.f90: Likewise. * gfortran.dg/coarray_poly_8.f90: Likewise. * gfortran.dg/coarray_poly_9.f90: Likewise. From-SVN: r210031
2014-05-03re PR target/61026 (sh-rtems4.11 build of 4.9.0 fails on FreeBSD 10 c++ ↵Oleg Endo2-4/+9
(clang).) PR target/61026 * config/sh/sh.c: Include stdlib headers before everything else. From-SVN: r210028
2014-05-03Daily bump.GCC Administrator1-1/+1
From-SVN: r210026
2014-05-02* decl2.c (vague_linkage_p): Local statics have vague linkage.Jason Merrill2-6/+15
From-SVN: r210019
2014-05-02re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637)Jason Merrill6-19/+79
PR c++/60992 * lambda.c (lambda_capture_field_type): Wrap anything dependent other than 'this'. (add_capture): Check for VLA before calling it. * semantics.c (is_this_parameter): Accept any 'this' parameter, not just the current one. Make non-static. * cp-tree.h: Declare it. * pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if the operand was static or constant. From-SVN: r210017
2014-05-02re PR c/25801 (bad diagnostic for increment/decrement of pointer to ↵Marek Polacek4-12/+68
incomplete array) PR c/25801 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. Return size_one_node when the type is not complete. (pointer_diff): Remove comment. (build_unary_op): Improve error messages. * gcc.dg/pr25801.c: New test. From-SVN: r210013
2014-05-02c-typeck.c (c_finish_return): Separate warning_at calls.Marek Polacek4-7/+22
c/ * c-typeck.c (c_finish_return): Separate warning_at calls. cp/ * typeck.c (maybe_warn_about_returning_address_of_local): Separate warning_at calls. From-SVN: r210012
2014-05-02* c.opt (Wsizeof-pointer-memaccess): Describe option.Marek Polacek2-0/+5
From-SVN: r210011
2014-05-02gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | ↵Jakub Jelinek3-7/+44
GOVD_LASTPRIVATE. * gimplify.c (gimplify_adjust_omp_clauses_1): Handle GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE. (gimplify_adjust_omp_clauses): Simd region is never directly nested in combined parallel. Instead, for linear with copyin/copyout, if in combined for simd loop, make decl firstprivate/lastprivate on OMP_FOR. * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk, expand_omp_for_static_chunk): When setting endvar, also set fd->loop.v to the same value. libgomp/ * testsuite/libgomp.c/simd-10.c: New test. * testsuite/libgomp.c/simd-11.c: New test. * testsuite/libgomp.c/simd-12.c: New test. * testsuite/libgomp.c/simd-13.c: New test. From-SVN: r210009
2014-05-02hwint.h (zext_hwi): Fix signed overflow for prec == 63.Richard Sandiford2-1/+5
gcc/ * hwint.h (zext_hwi): Fix signed overflow for prec == 63. From-SVN: r210006
2014-05-02One-line tidy of bit-twiddle expression in aarch64.cAlan Lawrence2-1/+7
* config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip expression. From-SVN: r210005
2014-05-02* doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.Marek Polacek2-0/+12
From-SVN: r210002
2014-05-02c-tree.h (error_init): Remove declaration.Marek Polacek3-68/+75
* c-tree.h (error_init): Remove declaration. (pedwarn_init): Likewise. * c-typeck.c (error_init): Make static and move above. (pedwarn_init): Likewise. (warning_init): Move above. (maybe_warn_string_init): Likewise. From-SVN: r210001
2014-05-02defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C ↵Kito Cheng7-21/+33
expression marco. 2014-02-26 Kito Cheng <kito@0xlab.org> * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C expression marco. * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto. * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto. * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto. * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for HONOR_REG_ALLOC_ORDER. * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto. From-SVN: r210000
2014-05-01revert: c-parser.c (c_parser_sizeof_expression): Reorganize slightly to ↵Jeff Law2-20/+24
avoid goto. 2014-05-01 Jeff Law <law@redhat.com> Revert: 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to avoid goto. From-SVN: r209999
2014-05-02re PR c/60784 (Spurious -Wmissing-field-initializers warning for anonymous ↵Marek Polacek4-0/+39
structure) PR c/60784 * c-typeck.c (push_init_level): Set constructor_designated to p->designated for structures. * gcc.dg/pr60784.c: New test. From-SVN: r209998
2014-05-01[multiple changes]Jeff Law2-1/+8
2014-05-01 Jeff Law <law@redhat.com> * Revert: 2014-04-24 Jincheng Miao <jincheng.miao@gmail.com> * zh_CN.po: Fix typo for -mfentry. From-SVN: r209997
2014-05-02Daily bump.GCC Administrator1-1/+1
From-SVN: r209996
2014-05-01* sv.po: Update.Joseph Myers2-20/+24
From-SVN: r209989
2014-05-01compiler: Use backend interface for heap expressions.Ian Lance Taylor2-23/+29
From-SVN: r209983
2014-05-01arc.c (TARGET_LRA_P): Undef before redefine.Jan-Benedict Glaw2-0/+5
2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de> * config/arc/arc.c (TARGET_LRA_P): Undef before redefine. From-SVN: r209979