Add alternative_mask to ira_implicitly_set_insn_hard_regs
[official-gcc.git] / gcc / ChangeLog
bloba92a707db321eb73260a3d012ecd88b5a6ec3dfd
1 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3         PR rtl-optimization/67029
4         * ira-color.c: Include "recog.h" before including "ira-int.h".
5         * target-globals.c: Likewise.
6         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
7         adds an alternative_mask argument and use it instead of
8         preferred_alternatives.
9         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
10         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
11         * sched-deps.c: Include "ira-int.h" after including "ira.h".
12         (sched_analyze_insn): Update call to
13         ira_implicitly_set_insn_hard_regs.
14         * sel-sched.c: Include "ira-int.h" after including "ira.h".
15         (implicit_clobber_conflict_p): Update call to
16         ira_implicitly_set_insn_hard_regs.
18 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
20         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
22 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
24         PR target/67002
25         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
26         currently_expanding_to_rtl is set.
28 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
30         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
31         * configure: Regenerate.
33 2015-08-06    Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34               Jiong Wang  <jiong.wang@arm.com>
36         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
37         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
38         (REG_CLASS_NAMES): Likewise.
39         (REG_CLASS_CONTENTS): Likewise.
40         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
41         (aarch64_register_move_cost): Likewise.
42         (aarch64_load_symref_appropriately): Invoke the new added pattern if
43         possible.
44         * config/aarch64/constraints.md (Uc0): New constraint.
46 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
48         * config/aarch64/constraints.md (Usf): Add the test of
49         aarch64_is_noplt_call_p.
51 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
53         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
54         declaration.
55         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
56         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
57         (call_symbol): Likewise.
59 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
61         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
62         for vectorizing multiplication patterns.
63         * tree-vectorizer.h: Adjust the number of patterns.
65 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
67         * config/i386/sse.md (*vec_concatv2df): Declare added
68         alternatives as sselog type.
70 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
72         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
73         all GPRs.
75 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
77         * config/s390/s390.c (s390_expand_tbegin): Expand either
78         tbegin_1_z13 or tbegin_1 depending on VX flag.
79         * config/s390/s390.md ("tbegin_1_z13"): New expander.
81 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
83         * config/s390/s390.opt: Clarify description for -mzvector
84         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
85         -mzvector.
87 2015-08-06  Richard Biener  <rguenther@suse.de>
89         * gimple.h (gimple_call_set_fn): Access op member directly.
90         (gimple_call_chain_ptr): Likewise.
91         (gimple_call_set_chain): Likewise.
92         (gimple_cond_lhs_ptr): Likewise.
93         (gimple_cond_set_lhs): Likewise.
94         (gimple_cond_rhs_ptr): Likewise.
95         (gimple_cond_set_rhs): Likewise.
96         (gimple_cond_true_label): Likewise.
97         (gimple_cond_set_true_label): Likewise.
98         (gimple_cond_set_false_label): Likewise.
99         (gimple_cond_false_label): Likewise.
100         (gimple_label_label): Likewise.
101         (gimple_label_set_label): Likewise.
102         (gimple_goto_set_dest): Likewise.
103         (gimple_asm_input_op): Likewise.
104         (gimple_asm_input_op_ptr): Likewise.
105         (gimple_asm_set_input_op): Likewise.
106         (gimple_asm_output_op): Likewise.
107         (gimple_asm_output_op_ptr): Likewise.
108         (gimple_asm_set_output_op): Likewise.
109         (gimple_asm_clobber_op): Likewise.
110         (gimple_asm_set_clobber_op): Likewise.
111         (gimple_asm_label_op): Likewise.
112         (gimple_asm_set_label_op): Likewise.
113         (gimple_switch_index): Likewise.
114         (gimple_switch_index_ptr): Likewise.
115         (gimple_return_retval_ptr): Likewise.
116         (gimple_return_retval): Likewise.
117         (gimple_return_set_retval): Likewise.
118         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
119         (gimple_switch_label): Likewise.
120         (gimple_switch_set_label): Likewise.
122 2015-08-06  Richard Biener  <rguenther@suse.de>
124         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
125         bool comparison canonicalization and restrict to integers.
127 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
129         * coretypes.h (enum symbol_visibility): Relocate here.
130         * flag-types.h (enum symbol_visibility): Remove.
131         * tree-core.h (enum symbol_visibility): Remove.
133 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
135         PR target/66870
136         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
137         for no_split_stack function attribute along with
138         flag_split_stack.
139         (rs6000_expand_split_stack_prologue): Likewise.
141 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
142             Jeff Law  <law@redhat.com>
144         PR c/16351
145         * doc/invoke.texi (Wnull-dereference): New.
146         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
147         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
148         Warn for potential NULL dereferences.
149         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
150         * ubsan.c (instrument_nonnull_arg): Call
151         infer_nonnull_range_by_attribute.
152         (instrument_nonnull_return): Likewise.
153         * common.opt (Wnull-dereference); New.
154         * gimple.c (infer_nonnull_range): Remove bool arguments.
155         (infer_nonnull_range_by_dereference): New.
156         (infer_nonnull_range_by_attribute): New.
157         * gimple.h: Update declarations.
159 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
161         * gensupport.c (sequence_num): Replace with...
162         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
163         ...these new variables.
164         (init_rtx_reader_args_cb): Update accordingly.
165         (get_num_code_insns): Likewise.
166         (read_md_rtx): Rework to use a while loop and get_c_test.
167         Use the new counters.  Remove redundant DEFINE_SUBST case.
168         * genoutput.c (gen_split): Delete.
169         (main): Don't call it.
171 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
173         * gensupport.h (get_c_test): Declare.
174         * gensupport.c (get_c_test): New function.
175         * genconditions.c (main): Use it.
176         * genrecog.c (validate_pattern): Likewise.
177         (match_pattern_1): Likewise.  Remove c_test argument.
178         (match_pattern): Update accordingly and remove c_test argument.
179         (main): Update accordingly.
181 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
183         * gensupport.h (get_num_insn_codes): Declare.
184         * gensupport.c (get_num_insn_codes): New function.
185         * genattrtab.c (optimize_attrs): Rename max_insn_code to
186         num_insn_codes.
187         (main): Likewise.  Use get_num_insn_codes.
188         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
190 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
192         PR middle-end/66311
193         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
194         is zero- rather than sign-extended.
196 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
198         * target-insns.def (can_extend): Delete.
200 2015-08-05  Richard Biener  <rguenther@suse.de>
202         PR tree-optimization/67121
203         * tree-if-conv.c (combine_blocks): Clear range-info produced
204         by stmts no longer executed conditionally.
206 2015-08-05  Nick Clifton  <nickc@redhat.com>
208         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
209         to allow identical far pointers to remain.
211 2015-08-05  Richard Biener  <rguenther@suse.de>
213         PR middle-end/67120
214         * match.pd: Compare address bases with == if they are decls
215         or SSA names, not operand_equal_p.  Otherwise fail.
217 2015-08-05  Richard Biener  <rguenther@suse.de>
219         PR tree-optimization/67055
220         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
221         NULL gimple_block.
223         * g++.dg/torture/pr67055.C: New testcase.
225 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
227         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
228         noavx512vl.
229         (define_attr "enabled"): Handle avx521vl and noavx512vl.
230         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
231         AVX-512 alternative out of SSE.
232         (define_insn "*vec_concatv2df"): Ditto.
234 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
236         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
237         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
238         CODE_FOR_avx_ptestv4di.
239         * config/i386/sse.md (define_mode_iterator V_AVX): New.
240         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
241         (define_insn "avx_ptest256"): Merge this ...
242         (define_insn "sse4_1_ptest"): And this ...
243         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
245 2015-08-05  Richard Biener  <rguenther@suse.de>
247         PR tree-optimization/67109
248         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
249         against too big groups.  Print whether this is a load or store
250         group.  Rename from ...
251         (vect_analyze_group_access): ... this which is now a wrapper
252         dissolving an invalid group.
253         (vect_analyze_data_ref_accesses): Print whether this is a load
254         or store group.
256 2015-08-05  Richard Biener  <rguenther@suse.de>
258         PR middle-end/67107
259         * match.pd: Guard const_binop result checking against NULL_TREE
260         result.
262 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
264         * cse.c (cse_insn): Restoring old behaviour for src_eqv
265          when dest and value in the REG_EQUAL are same and dest
266          is STRICT_LOW_PART.
268 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
270         * config/moxie/moxie.h (PRINT_OPERAND,
271           PRINT_OPERAND_ADDRESS): Remove macros.
272         * config/moxie/moxie-protos.h (moxie_print_operand,
273           moxie_print_operand_address): Remove declaration.
274         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
275           TARGET_PRINT_OPERAND_ADDRESS): Define.
276           (moxie_print_operand, moxie_print_operand_address): Make static.
278 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
280         PR target/66731
281         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
282         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
284 2015-08-04  Richard Biener  <rguenther@suse.de>
286         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
287         generated code.
288         (dt_operand::gen_gimple_expr): Adjust.
290 2015-08-04  Richard Biener  <rguenther@suse.de>
292         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
293         bool compares on RHS.
294         * match.pd: Add X ==/!= !X is false/true pattern.
296 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
298         * config/aarch64/aarch64.c: Change inner loop statement cost
299         to be consistent with other targets.
301 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
303         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
304         targets.
306 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
308         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
309         (machine_function): Remove pseudos field.
311 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
313         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
314         Exit early and use target_option_current_node if processing current
315         pragma.
317 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
319         * doc/extend.texi (AArch64 Function Attributes): New node.
320         (AArch64 Pragmas): Likewise.
322 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
324         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
325         Initialize simd builtins if TARGET_SIMD.
326         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
327         Make sure that the builtins are initialized only once no matter how
328         many times the function is called.
329         (aarch64_init_builtins): Unconditionally initialize crc builtins.
330         (aarch64_relayout_simd_param): New function.
331         (aarch64_simd_expand_args): Use above during argument expansion.
332         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
333         simd builtins if TARGET_SIMD.
334         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
335         prototype.
336         (aarch64_relayout_simd_types): Likewise.
338 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
340         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
341         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
342         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
343         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
344         static keyword.
345         (aarch64_reset_previous_fndecl): New function.
346         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
347         the string.
348         * config/aarch64/aarch64-c.c: New file.
349         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
350         Push and pop options at beginning and end.  Remove ifdef
351         __ARM_FEATURE_CRC32.
352         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
353         Add pragma +nothing+simd and +nothing+crypto where appropriate.
354         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
355         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
356         Define prototype.
357         (aarch64_register_pragmas): Likewise.
358         (aarch64_reset_previous_fndecl): Likewise.
359         (aarch64_process_target_attr): Likewise.
360         (aarch64_override_options_internal): Likewise.
362 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
364         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
365         New function.
366         (aarch64_can_inline_p): Likewise.
367         (TARGET_CAN_INLINE_P): Define.
369 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
371         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
372         Remove static.  Handle OPT_mgeneral_regs_only,
373         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
374         OPT_momit_leaf_frame_pointer.
375         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
376         (aarch64_attr_opt_type): New enum.
377         (aarch64_attribute_info): New struct.
378         (aarch64_handle_attr_arch): New function.
379         (aarch64_handle_attr_cpu): Likewise.
380         (aarch64_handle_attr_tune): Likewise.
381         (aarch64_handle_attr_isa_flags): Likewise.
382         (aarch64_attributes): New table.
383         (aarch64_process_one_target_attr): New function.
384         (num_occurences_in_str): Likewise.
385         (aarch64_process_target_attr): Likewise.
386         (aarch64_option_valid_attribute_p): Likewise.
387         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
388         * config/aarch64/aarch64-protos.h: Include input.h
389         (aarch64_handle_option): Declare prototype.
391 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
393         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
394         * config/aarch64/aarch64.c: Include target-globals.h
395         (aarch64_previous_fndecl): New variable.
396         (aarch64_set_current_function): New function.
397         (TARGET_SET_CURRENT_FUNCTION): Define.
399 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
401         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
402         (explicit_arch): Likewise.
403         (x_aarch64_isa_flags): Likewise.
404         (mgeneral-regs-only): Mark as Save.
405         (mfix-cortex-a53-835769): Likewise.
406         (mcmodel=): Likewise.
407         (mstrict-align): Likewise.
408         (momit-leaf-frame-pointer): Likewise.
409         (mtls-dialect): Likewise.
410         (master=): Likewise.
411         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
412         (aarch64_isa_flags): Remove extern declaration.
413         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
414         to indicate success or failure.
415         (aarch64_validate_march): Likewise.
416         (aarch64_validate_mtune): Likewise.
417         (aarch64_isa_flags): Delete.
418         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
419         instead of aarch64_isa_flags.
420         (aarch64_get_tune_cpu): New function.
421         (aarch64_get_arch): Likewise.
422         (aarch64_override_options): Use above and set up explicit_tune_core
423         and explicit_arch.
424         (aarch64_print_extension): Move earlier in file.  Add isa_flags
425         argument and use that instead of the global aarch64_isa_flags.
426         (aarch64_option_save): New function.
427         (aarch64_option_restore): Likewise.
428         (aarch64_option_print): Likewise.
429         (aarch64_declare_function_name): Likewise.
430         (aarch64_start_file): Delete.
431         (TARGET_ASM_FILE_START): Do not define.
432         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
433         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
434         Declare prototype.
436 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
438         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
439         flag_omit_leaf_frame_pointer to 2.
441 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
443         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
444         define to 0 or 1.
445         (TARGET_FIX_ERR_A53_835769): New macro.
446         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
447         handling of opts->x_aarch64_fix_a53_err835769.
448         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
449         than aarch64_fix_a53_err835769.
450         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
451         * config/aarch64/aarch64-linux.h: Likewise.
453 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
455         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
456         ix86_expand_int_movcc as boolean.
458 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
460         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
461         (aarch64_cpu_string): Likewise.
462         (aarch64_tune_string): Likewise.
463         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
464         (aarch64_parse_extension): Return aarch64_parse_opt_result.
465         Add extra argument to put result into.
466         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
467         (aarch64_parse_cpu): Add arguments to put results into. Return
468         aarch64_parse_opt_result.
469         (aarch64_parse_tune): Likewise.
470         (aarch64_override_options_after_change_1): New function.
471         (aarch64_override_options_internal): New function.
472         (aarch64_validate_mcpu): Likewise.
473         (aarch64_validate_march): Likewise.
474         (aarch64_validate_mtune): Likewise.
475         (aarch64_override_options): Update to reflect above changes.
476         Move some logic into aarch64_override_options_internal.
477         Initialize target_option_default_node and target_option_current_node.
478         (aarch64_override_options_after_change): Move logic into
479         aarch64_override_options_after_change_1 and call it with global_options.
480         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
481         flag values from that.
483 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
485         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
486         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
487         * config/aarch64/aarch64.c (struct processor): Add arch field.
488         (all_architectures): Handle above, move above all_cores.
489         (all_cores): Handle above.
490         (aarch64_parse_arch): Handle above changes.
491         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
492         above.  Update comments.
493         (armv8.1-a): Likewise.
494         * config/aarch64/aarch64-cores.def: Update according to above.
495         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
496         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
497         aarch64_arch_driver_info.
499 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
501         * config/aarch64/aarch64.c (struct processor): Add ident field.
502         Rename core sched_core.
503         (all_cores): Handle above changes.
504         (all_architectures): Likewise.
505         (aarch64_parse_arch): Likewise.
506         (aarch64_override_options): Likewise.
508 2015-08-04  Richard Biener  <rguenther@suse.de>
510         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
511         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
512         comparisons embedded in [VEC_]COND_EXPRs.
514 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
516         * tree-if-conv.c: Fix various typos in comments.
517         * tree-vect-stmts.c: Likewise.
519 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
521         PR tree-optimization/67043
522         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
523         preheader after hoisting invariant in it.
524         (find_defs): Force recomputation of all luids.
526 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
528         * config/rs6000/htm.md (tabort.): Restrict the source operand to
529         using a base register.
531 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
533         * main.c (main): Pass in NULL for toplev's external_timer.
534         * timevar.c: Include coretypes.h.
535         (class timer::named_items): New.
536         (timer::named_items::named_items): New.
537         (timer::named_items::~named_items): New.
538         (timer::named_items::push): New.
539         (timer::named_items::pop): New.
540         (timer::named_items::print): New.
541         (timer::timer): Initialize field "m_jit_client_items".
542         (timer::~timer): New.
543         (timer::push): Move bulk of implementation to...
544         (timer::push_internal): ...here.  New function.
545         (timer::pop): Move bulk of implementation to...
546         (timer::pop_internal): ...here.  New function.
547         (timer::push_client_item): New.
548         (timer::pop_client_item): New.
549         (timer::print_row): New function, taken from timer::print.
550         (timer::print): Print "GCC items" header if we also have client
551         items.  Move row-printing to timer::print_row.  Print any client
552         items.
553         (timer::get_topmost_item_name): New method.
554         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
555         (TV_JIT_CLIENT_CODE): New.
556         * timevar.h (timer::push_client_item): New declaration.
557         (timer::pop_client_item): New declaration.
558         (timer::get_topmost_item_name): New method.
559         (timer::push_internal): New declaration.
560         (timer::pop_internal): New declaration.
561         (timer::print_row): New declaration.
562         (timer::named_items): New declaration.
563         (timer::m_jit_client_items): New field.
564         (timer): Add friend class named_items.
565         (auto_timevar::auto_timevar): Add timer param.
566         (auto_timevar::~auto_timevar): Use field "m_timer".
567         (auto_timevar::m_timer): New field.
568         * toplev.c (initialize_rtl): Add g_timer as param when
569         constructing auto_timevar instance.
570         (toplev::toplev): Add "external_timer" param, and use it to
571         initialize the "g_timer" global if non-NULL.
572         (toplev::~toplev): If this created "g_timer", delete it.
573         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
574         with "external_timer" timer *.
576 2015-08-03  Alexander Basov <coohpt@gmail.com>
578         PR middle-end/64744
579         PR middle-end/48470
580         PR middle-end/43404
581         * cfgexpand.c (expand_one_var): Add check if stack is going to
582         be used in naked function.
583         * expr.c (expand_expr_addr_expr_1): Remove excess checking
584         whether expression should not reside in MEM.
585         * function.c (use_register_for_decl): Do not use registers for
586         non-register things (volatile, float, BLKMode) in naked functions.
588 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
590         PR target/67060
591         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
592         Adjust splits to match new pattern.
594 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
596         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
597         (VEC_M): Likewise.
598         (VEC_N): Likewise.
599         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
600         point in VSX registers.
602         * config/rs6000/constraints.md (wb constraint): Document unused
603         w<x> constraint.
604         (we constraint): Likewise.
605         (wo constraint): Likewise.
606         (wp constraint): New constraint for IEEE 128-bit floating point in
607         VSX registers.
608         (wq constraint): Likewise.
610         * config/rs6000/predicates.md (easy_fp_constant): Add support for
611         IEEE 128-bit floating point in VSX registers.
612         (easy_scalar_constant): Likewise.
614         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
615         constraints (wp, wq) for IEEE 128-bit floating point in VSX
616         registers.
617         (rs6000_init_hard_regno_mode_ok): Likewise.
619         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
620         floating point in VSX registers.
621         (VSX_L): Likewise.
622         (VSX_M): Likewise.
623         (VSX_M2): Likewise.
624         (VSm): Likewise.
625         (VSs): Likewise.
626         (VSr): Likewise.
627         (VSa): Likewise.
628         (VSv): Likewise.
629         (vsx_le_permute_<mode>): Add support to properly swap bytes for
630         IEEE 128-bit floating point in VSX registers on little endian.
631         (vsx_le_undo_permute_<mode>): Likewise.
632         (vsx_le_perm_load_<mode>): Likewise.
633         (vsx_le_perm_store_<mode>): Likewise.
634         (splitters for IEEE 128-bit fp moves): Likewise.
636         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
637         wq constraints.
639         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
640         floating point in VSX registers.
641         (VM2): Likewise.
643         * doc/md.text (Machine Constraints): Document wp and wq
644         constraints on PowerPC.
646 2015-08-03  Jeff Law  <law@redhat.com>
648         PR middle-end/66314
649         PR gcov-profile/66899
650         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
651         iterate over the jump threading paths when an element in the
652         jump threading paths array is eliminated.
654 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
656         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
658 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
660         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
661         is_use_properly_guarded the variable def_preds.  Free its
662         contents before returning.
663         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
664         (is_use_properly_guarded): Replace local variable def_preds with
665         a parameter.  Adjust accordingly.  Only update *def_preds if it's
666         the empty vector.
668 2015-08-03  Richard Biener  <rguenther@suse.de>
670         * genmatch.c (simplify::for_subst_vec): New member.
671         (binary_ok): New helper for for lowering.
672         (lower_for): Delay substituting operators into result expressions
673         if we can merge the results eventually again.
674         (capture_info::walk_result): Adjust for user_id appearing as
675         result expression operator.
676         (expr::gen_transform): Likewise.
677         (dt_simplify::gen_1): Likewise.
678         (dt_simplify::gen): Pass not substituted operators to tail
679         functions or initialize local variable with it.
680         (decision_tree::gen): Adjust function signature.
681         * match.pd: Fix tests against global code and add default
682         cases to switch stmts.
684 2015-08-03  Richard Biener  <rguenther@suse.de>
686         * genmatch.c (dt_simplify::gen): Create captures array
687         with an initializer.
689 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
691         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
692         the host compiler is affected by placement new aliasing bug.
693         * configure: Regenerate.
694         * Makefile.in (ALIASING_FLAGS): New variable.
695         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
697 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
699         PR target/66731
700         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
701         (negmulsf3_vfp): Likewise.
702         (muldf3negdf_vfp): Disable for -frounding-math.
703         (mulsf3negsf_vfp): Likewise.
704         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
705         fix MULT cost with -frounding-math.
707 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
709         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
710         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
711         explicit.  Prefer to add the flag whenever possible.
712         (noce_process_if_block): Try noce_try_store_flag_constants before
713         noce_try_cmove.
715 2015-08-03  Richard Biener  <rguenther@suse.de>
717         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
718         New hash-map to record equivalent transforms.
719         (dt_node::analyze): Populate the equivalent transforms hash-map.
720         (dt_simplify::info): Add reference to hash-map entry.
721         (dt_simplify::gen): If we have split out a function for the
722         transform, generate a call to it.
723         (sinfo_hashmap_traits::hash): New function.
724         (compare_op): New helper function for ...
725         (sinfo_hashmap_traits::equal_keys): ... this new function.
726         (decision_tree::gen): Split out common equivalent transforms
727         into functions.
729 2015-08-03  Richard Biener  <rguenther@suse.de>
731         * gimple-fold.c (fold_gimple_assign): Remove folding of
732         the comparison in COND_EXPRs.
734 2015-08-03  Richard Biener  <rguenther@suse.de>
736         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
737         on the rhs of assignments first simplify the embedded
738         GENERIC condition.
740 2015-08-03  Richard Biener  <rguenther@suse.de>
742         PR tree-optimization/66917
743         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
744         field.
745         (DR_VECT_AUX): New macro.
746         (set_dr_misalignment): Adjust.
747         (dr_misalignment): Likewise.
748         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
749         Compute whether the base is at least element aligned.
750         * tree-vect-stmts.c (ensure_base_align): Adjust.
751         (vectorizable_store): If the base is not element aligned
752         preserve alignment of the original access if misalignment is unknown.
753         (vectorizable_load): Likewise.
755 2015-08-02  Martin Sebor  <msebor@redhat.com>
757         * c-family/c.opt (-Wframe-address): New warning option.
758         * doc/invoke.texi (Wframe-address): Document it.
759         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
760         Clarify possible effects of calling the functions with non-zero
761         arguments and mention -Wframe-address.
762         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
764 2015-08-01  Michael Collison  <michael.collison@linaro.org
765             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
767         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
768         (*arm_umin_cmp): Likewise.
770 2015-08-01  Caroline Tice  <cmtice@google.com>
772         PR 66521
773         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
774         global variables.
775         (vtbl_find_mangled_name):  New function.
776         (vtbl_register_mangled_name):  New function.
777         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
778         mangled name in mangled name vectors.
779         (find_or_create_vtbl_map_node):  Ditto.
780         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
781         update recursion_depth on function entry; pass it to every recursive
782         call; automatically exit if depth > 25 (give up looking at that point).
783         (verify_bb_vtables):  Initialize recursion_depth and pass it to
784         var_is_used_for_virtual_call_p.
785         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
786         global variable decls.
787         (vtbl_register_mangled_name): New extern function decl.
789 2015-08-01  Tom de Vries  <tom@codesourcery.com>
791         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
792         function.
793         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
794         Declare.
795         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
796         operation_no_trapping_overflow.  Allow non-overflow operations.
797         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
798         operations.
800 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
802         PR target/67049
803         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
805 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
807         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
808         Enable for TARGET_32BIT.
809         (*if_move_neg): Likewise.
811 2015-07-31  Nick Clifton  <nickc@redhat.com>
813         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
814         Returns true for __model__.
815         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
817 2015-07-31  Alan Modra  <amodra@gmail.com>
819         PR target/66870
820         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
821         (rs6000_emit_prologue): Set it.
822         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
824 2015-07-31  Richard Biener  <rguenther@suse.de>
826         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
827         -> X == (C1 ^ C2) which is already implemented in match.pd.
828         Remove redundant dispatching to fold_relational_const.
829         Move unordered self and NaN compares ...
830         * match.pd: ... as patterns here.  Remove some stray captures
831         and add a comment.
833 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
835         * config/i386/i386.c
836         (bdesc_special_args): Convert mask type from signed to unsigned for
837         masked builtins.
838         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
839         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
840         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
841         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
842         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
843         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
844         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
845         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
846         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
847         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
848         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
849         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
850         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
851         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
852         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
853         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
854         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
855         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
856         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
857         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
858         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
859         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
860         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
861         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
862         * config/i386/i386-builtin-types.def
863         (V16QI_FTYPE_V16SI): Remove.
864         (V8DF_FTYPE_V8SI): Ditto.
865         (V8HI_FTYPE_V8DI): Ditto.
866         (V8SI_FTYPE_V8DI): Ditto.
867         (V8SF_FTYPE_V8DF): Ditto.
868         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
869         (V16HI_FTYPE_V16SI): Ditto.
870         (V16SF_FTYPE_V16HI): Ditto.
871         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
872         (V16SF_FTYPE_V16SI): Ditto.
873         (V4DI_FTYPE_V4DI): Ditto.
874         (V16SI_FTYPE_V16SF): Ditto.
875         (V16SF_FTYPE_FLOAT): Ditto.
876         (V8DF_FTYPE_DOUBLE): Ditto.
877         (V8DI_FTYPE_INT64): Ditto.
878         (V8DI_FTYPE_V4DI): Ditto.
879         (V16QI_FTYPE_V8DI): Ditto.
880         (UINT_FTYPE_V4SF): Ditto.
881         (UINT64_FTYPE_V4SF): Ditto.
882         (UINT_FTYPE_V2DF): Ditto.
883         (UINT64_FTYPE_V2DF): Ditto.
884         (V16SI_FTYPE_V16SI): Ditto.
885         (V8DI_FTYPE_V8DI): Ditto.
886         (V16SI_FTYPE_PV4SI): Ditto.
887         (V16SF_FTYPE_PV4SF): Ditto.
888         (V8DI_FTYPE_PV2DI): Ditto.
889         (V8DF_FTYPE_PV2DF): Ditto.
890         (V4DI_FTYPE_PV2DI): Ditto.
891         (V4DF_FTYPE_PV2DF): Ditto.
892         (V16SI_FTYPE_PV2SI): Ditto.
893         (V16SF_FTYPE_PV2SF): Ditto.
894         (V8DI_FTYPE_PV4DI): Ditto.
895         (V8DF_FTYPE_PV4DF): Ditto.
896         (V8SF_FTYPE_FLOAT): Ditto.
897         (V4SF_FTYPE_FLOAT): Ditto.
898         (V4DF_FTYPE_DOUBLE): Ditto.
899         (V8SF_FTYPE_PV4SF): Ditto.
900         (V8SI_FTYPE_PV4SI): Ditto.
901         (V4SI_FTYPE_PV2SI): Ditto.
902         (V8SF_FTYPE_PV2SF): Ditto.
903         (V8SI_FTYPE_PV2SI): Ditto.
904         (V16SF_FTYPE_PV8SF): Ditto.
905         (V16SI_FTYPE_PV8SI): Ditto.
906         (V8DI_FTYPE_V8SF): Ditto.
907         (V4DI_FTYPE_V4SF): Ditto.
908         (V2DI_FTYPE_V4SF): Ditto.
909         (V64QI_FTYPE_QI): Ditto.
910         (V32HI_FTYPE_HI): Ditto.
911         (V8UHI_FTYPE_V8UHI): Ditto.
912         (V16UHI_FTYPE_V16UHI): Ditto.
913         (V32UHI_FTYPE_V32UHI): Ditto.
914         (V2UDI_FTYPE_V2UDI): Ditto.
915         (V4UDI_FTYPE_V4UDI): Ditto.
916         (V8UDI_FTYPE_V8UDI): Ditto.
917         (V4USI_FTYPE_V4USI): Ditto.
918         (V8USI_FTYPE_V8USI): Ditto.
919         (V16USI_FTYPE_V16USI): Ditto.
920         (V2DF_FTYPE_V2DF_UINT64): Ditto.
921         (V2DI_FTYPE_V2DF_V2DF): Ditto.
922         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
923         (V8DF_FTYPE_V8DF_V8DI): Ditto.
924         (V4SF_FTYPE_V4SF_UINT64): Ditto.
925         (V4SI_FTYPE_V4SF_V4SF): Ditto.
926         (V16SF_FTYPE_V16SF_V16SI): Ditto.
927         (V64QI_FTYPE_V32HI_V32HI): Ditto.
928         (V32HI_FTYPE_V16SI_V16SI): Ditto.
929         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
930         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
931         (V32HI_FTYPE_V64QI_V64QI): Ditto.
932         (V32HI_FTYPE_V32HI_V32HI): Ditto.
933         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
934         (V16SI_FTYPE_V16SI_V4SI): Ditto.
935         (V16SI_FTYPE_V16SI_V16SI): Ditto.
936         (V16SI_FTYPE_V32HI_V32HI): Ditto.
937         (V16SI_FTYPE_V16SI_SI): Ditto.
938         (V8DI_FTYPE_V8DI_V8DI): Ditto.
939         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
940         (V8DI_FTYPE_V16SI_V16SI): Ditto.
941         (V8DI_FTYPE_V8DI_V2DI): Ditto.
942         (QI_FTYPE_QI): Ditto.
943         (SI_FTYPE_SI): Ditto.
944         (DI_FTYPE_DI): Ditto.
945         (QI_FTYPE_QI_QI): Ditto.
946         (QI_FTYPE_QI_INT): Ditto.
947         (HI_FTYPE_HI_INT): Ditto.
948         (SI_FTYPE_SI_INT): Ditto.
949         (DI_FTYPE_DI_INT): Ditto.
950         (HI_FTYPE_V16QI_V16QI): Ditto.
951         (SI_FTYPE_V32QI_V32QI): Ditto.
952         (DI_FTYPE_V64QI_V64QI): Ditto.
953         (QI_FTYPE_V8HI_V8HI): Ditto.
954         (HI_FTYPE_V16HI_V16HI): Ditto.
955         (SI_FTYPE_V32HI_V32HI): Ditto.
956         (QI_FTYPE_V4SI_V4SI): Ditto.
957         (QI_FTYPE_V8SI_V8SI): Ditto.
958         (QI_FTYPE_V2DI_V2DI): Ditto.
959         (QI_FTYPE_V4DI_V4DI): Ditto.
960         (QI_FTYPE_V8DI_V8DI): Ditto.
961         (HI_FTYPE_V16SI_V16SI): Ditto.
962         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
963         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
964         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
965         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
966         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
967         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
968         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
969         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
970         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
971         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
972         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
973         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
974         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
975         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
976         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
977         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
978         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
979         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
980         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
981         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
982         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
983         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
984         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
985         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
986         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
987         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
988         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
989         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
990         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
991         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
992         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
993         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
994         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
995         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
996         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
997         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
998         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
999         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1000         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1001         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1002         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1003         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1004         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1005         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1006         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1007         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1008         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1009         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1010         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1011         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1012         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1013         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1014         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1015         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1016         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1017         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1018         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1019         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1020         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1021         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1022         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1023         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1024         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1025         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1026         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1027         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1028         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1029         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1030         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1031         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1032         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1033         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1034         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1035         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1036         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1037         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1038         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1039         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1040         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1041         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1042         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1043         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1044         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1045         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1046         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1047         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1048         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1049         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1050         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1051         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1052         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1053         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1054         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1055         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1056         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1057         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1058         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1059         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1060         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1061         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1062         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1063         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1064         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1065         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1066         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1067         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1068         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1069         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1070         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1071         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1072         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1073         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1074         (HI_FTYPE_HI): Ditto.
1075         (HI_FTYPE_V16QI): Ditto.
1076         (SI_FTYPE_V32QI): Ditto.
1077         (DI_FTYPE_V64QI): Ditto.
1078         (QI_FTYPE_V8HI): Ditto.
1079         (HI_FTYPE_V16HI): Ditto.
1080         (SI_FTYPE_V32HI): Ditto.
1081         (QI_FTYPE_V4SI): Ditto.
1082         (QI_FTYPE_V8SI): Ditto.
1083         (HI_FTYPE_V16SI): Ditto.
1084         (QI_FTYPE_V2DI): Ditto.
1085         (QI_FTYPE_V4DI): Ditto.
1086         (QI_FTYPE_V8DI): Ditto.
1087         (V16QI_FTYPE_HI): Ditto.
1088         (V32QI_FTYPE_SI): Ditto.
1089         (V64QI_FTYPE_DI): Ditto.
1090         (V8HI_FTYPE_QI): Ditto.
1091         (V16HI_FTYPE_HI): Ditto.
1092         (V32HI_FTYPE_SI): Ditto.
1093         (V4SI_FTYPE_QI): Ditto.
1094         (V4SI_FTYPE_HI): Ditto.
1095         (V8SI_FTYPE_QI): Ditto.
1096         (V8SI_FTYPE_HI): Ditto.
1097         (V2DI_FTYPE_QI): Ditto.
1098         (V4DI_FTYPE_QI): Ditto.
1099         (HI_FTYPE_HI_HI): Ditto.
1100         (SI_FTYPE_SI_SI): Ditto.
1101         (DI_FTYPE_DI_DI): Ditto.
1102         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1103         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1104         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1105         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1106         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1107         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1108         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1109         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1110         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1111         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1112         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1113         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1114         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1115         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1116         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1117         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1118         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1119         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1120         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1121         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1122         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1123         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1124         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1125         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1126         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1127         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1128         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1129         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1130         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1131         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1132         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1133         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1134         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1135         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1136         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1137         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1138         (V16SI_FTYPE_HI): Ditto.
1139         (V8DI_FTYPE_QI): Ditto.
1140         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1141         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1142         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1143         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1144         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1145         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1146         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1147         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1148         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1149         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1150         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1151         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1152         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1153         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1154         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1155         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1156         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1157         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1158         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1159         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1160         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1161         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1162         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1163         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1164         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1165         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1166         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1167         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1168         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1169         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1170         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1171         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1172         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1173         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1174         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1175         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1176         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1177         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1178         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1179         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1180         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1181         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1182         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1183         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1184         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1185         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1186         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1187         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1188         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1189         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1190         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1191         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1192         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1193         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1194         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1195         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1196         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1197         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1198         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1199         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1200         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1201         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1202         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1203         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1204         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1205         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1206         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1207         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1208         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1209         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1210         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1211         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1212         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1213         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1214         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1215         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1216         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1217         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1218         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1219         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1220         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1221         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1222         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1223         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1224         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1225         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1226         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1227         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1228         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1229         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1230         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1231         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1232         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1233         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1234         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1235         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1236         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1237         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1238         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1239         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1240         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1241         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1242         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1243         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1244         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1245         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1246         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1247         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1248         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1249         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1250         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1251         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1252         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1253         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1254         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1255         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1256         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1257         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1258         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1259         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1260         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1261         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1262         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1263         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1264         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1265         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1266         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1267         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1268         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1269         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1270         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1271         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1272         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1273         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1274         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1275         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1276         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1277         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1278         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1279         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1280         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1281         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1282         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1283         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1284         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1285         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1286         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1287         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1288         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1289         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1290         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1291         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1292         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1293         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1294         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1295         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1296         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1297         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1298         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1299         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1300         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1301         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1302         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1303         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1304         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1305         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1306         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1307         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1308         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1309         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1310         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1311         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1312         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1313         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1314         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1315         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1316         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1317         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1318         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1319         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1320         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1321         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1322         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1323         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1324         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1325         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1326         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1327         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1328         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1329         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1330         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1331         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1332         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1333         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1334         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1335         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1336         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1337         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1338         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1339         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1340         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1341         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1342         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1343         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1344         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1345         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1346         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1347         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1348         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1349         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1350         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1351         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1352         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1353         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1354         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1355         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1356         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1357         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1358         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1359         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1360         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1361         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1362         (QI_FTYPE_V8DF_INT_QI): Ditto.
1363         (QI_FTYPE_V4DF_INT_QI): Ditto.
1364         (QI_FTYPE_V2DF_INT_QI): Ditto.
1365         (HI_FTYPE_V16SF_INT_HI): Ditto.
1366         (QI_FTYPE_V8SF_INT_QI): Ditto.
1367         (QI_FTYPE_V4SF_INT_QI): Ditto.
1368         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1370 2015-07-31  Richard Biener  <rguenther@suse.de>
1372         * gimple-fold.c (fold_gimple_assign): Remove folding of
1373         GIMPLE_BINARY_RHS.
1375 2015-07-31  Tom de Vries  <tom@codesourcery.com>
1377         PR tree-optimization/66846
1378         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1379         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1380         (expand_omp_target) [ENABLE_CHECKING]: Same.
1381         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1382         cfun if !LOOPS_NEED_FIXUP.
1383         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
1384         that omp_for already has its own loop struct.
1385         * tree-parloops.c (create_phi_for_local_result)
1386         (create_call_for_reduction): Handle simple latch bb.
1387         (create_parallel_loop): Add simple latch bb to preserve
1388         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
1389         (gen_parallel_loop): Remove call to cancel_loop_tree.
1390         (parallelize_loops): Skip loops that are inner loops of parallelized
1391         loops.
1392         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1393         verify_loop_structure.
1395 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1397         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1398         * config/v850/v850.md (RV_REGNUM): New constants.
1399         * config/v850/v850.c (v850_libcall_value): New functions.
1400         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1401         (TARGET_LIBCALL_VALUE): Define.
1403 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1405         * rtl.h (lowpart_subreg): Move in file.
1406         * loop-iv.c (lowpart_subreg): Move to...
1407         * simplify-rtx.c (lowpart_subreg): ...here.
1408           (simplify_binary_operation_1): Use lowpart_subreg instead of
1409           simplify_gen_subreg.
1410         * expr.c (expand_expr_real_2): Ditto.
1411         * emit-rtl.c (gen_lowpart_common): Ditto.
1412         * combine.c (gen_lowpart_for_combine): Ditto.
1413         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1414           expand_debug_source_expr): Ditto.
1416 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
1418         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1419         (expand_builtin_atomic_clear): Remove support for atomic_clear
1420         pattern.
1422 2015-07-30  Richard Biener  <rguenther@suse.de>
1424         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1425         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1426         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
1427         redundant operand canonicalization.
1429 2015-07-30  David Sherwood  <david.sherwood@arm.com>
1431         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1432         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1433         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1434         * config/arm/arm.c (neon_valid_immediate): Likewise.
1435         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1436         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1437         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1438         (expand_vec_perm_vpshufb2_vpermq): Likewise.
1439         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1440         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1441         * config/i386/sse.md
1442         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1443         (*ssse3_palignr<mode>_perm): Likewise.
1444         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1445         * config/spu/spu.c (arith_immediate_p): Likewise.
1446         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1447         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1449 2015-07-30  Richard Biener  <rguenther@suse.de>
1451         * genmatch.c (decision_tree::gen_gimple): Merge with ...
1452         (decision_tree::gen_generic): ... this into ...
1453         (decision_tree::gen): ... this.
1454         (main): Adjust callers.
1456 2015-07-30  Richard Biener  <rguenther@suse.de>
1458         * genmatch.c (verbose): New global.
1459         (warning_at): Add overload with source_location.
1460         (capture_info::capture_info): Add bool whether generating gimple
1461         or generic.  Add gimple member.
1462         (capture_info::cinfo): Add capture member.
1463         (capture_info::walk_match): Record capture.  Warn on
1464         non-captured leafs.
1465         (capture_info::walk_c_expr): Add more fragments captures cannot
1466         escape through.  Warn on escaped captures.
1467         (dt_simplify::gen_1): Warn on operands we force to have no
1468         side-effects.
1469         (main): Initialize verbose.
1470         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1472 2015-07-30  Richard Biener  <rguenther@suse.de>
1474         PR middle-end/67053
1475         * match.pd: Allow both operands to independently have conversion
1476         when simplifying compares of addresses.
1478 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
1480         PR target/66217
1481         PR target/67045
1482         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1483         around those cases that need one.
1485 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
1487         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1489 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
1491         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1492         New.  Copied from config/i386/gnu-user.h.
1493         (ASM_COMMENT_START): Likewise.
1494         (DBX_REGISTER_NUMBER): Likewise.
1496 2015-07-29  Richard Biener  <rguenther@suse.de>
1498         * gimple-fold.c (fold_gimple_cond): Remove.
1499         (fold_stmt_1): Do not call it.
1501 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
1503         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1504         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1506         * config/aarch64/aarch64-modes.def: Add HFmode.
1508         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1509         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1511         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1512         aarch64_promoted_type): New.
1514         (aarch64_float_const_representable_p): Disable HFmode.
1515         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1516         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1517         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1519         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1520         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1522         * config/aarch64/iterators.md (GPF_F16): New.
1524 2015-07-29  Richard Biener  <rguenther@suse.de>
1526         * match.pd: Merge address comparison patterns and make them
1527         handle some more cases.
1529 2015-07-29  Richard Biener  <rguenther@suse.de>
1531         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1532         (parser::parse_capture): Add bool argument on whether to reject
1533         unknown captures.
1534         (parser::parse_expr): Adjust.
1535         (parser::parse_op): Likewise.
1536         (parser::parse_pattern): Likewise.
1538 2015-07-29  Richard Biener  <rguenther@suse.de>
1540         * gimple-fold.c (has_use_on_stmt): New function.
1541         (replace_stmt_with_simplification): Use it to allow
1542         abnormals originally referenced in the stmt.
1543         (fold_stmt_1): Canonicalize operand order.
1545 2015-07-28  David Sherwood  <david.sherwood@arm.com>
1547         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1548         GET_MODE_INNER unconditionally.
1549         * config/spu/spu.c (arith_immediate_p): Likewise.
1550         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1551         * expmed.c (synth_mult): Remove check for VOIDmode result from
1552         GET_MODE_INNER.
1553         (expand_mult_const): Likewise.
1554         * fold-const.c (fold_binary_loc): Replace call to element_precision
1555         with call to GET_MODE_PRECISION.
1556         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1557         m->name.
1558         (emit_mode_inner): Likewise.
1559         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1560         result check.
1561         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1562         (GET_MODE_UNIT_PRECISION): Likewise.
1563         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1564         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1565         * stor-layout.c (bitwise_type_for_mode): Update assert.
1566         (element_precision): Remove.
1568 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1570         * target-insns.def (reload_load_address): New targetm instruction
1571         pattern.
1572         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1574 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1576         * target-insns.def (atomic_test_and_set): New targetm instruction
1577         pattern.
1578         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1579         HAVE_*/gen_* interface.
1581 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1583         * target-insns.def (can_extend, ptr_extend): New targetm instruction
1584         patterns.
1585         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1586         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1587         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1588         * rtlanal.c (nonzero_bits1): Likewise.
1589         (num_sign_bit_copies1): Likewise.
1591 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1593         * target-insns.def (eh_return): New targetm instruction pattern.
1594         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1595         interface.
1596         * function.c (thread_prologue_and_epilogue_insns): Remove
1597         preprocessor condition.
1599 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1601         * target-insns.def (indirect_jump): New targetm instruction pattern.
1602         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1603         interface.
1605 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1607         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1608         instead of nonimmediate_operand.  Remove C condiition.
1610 2015-07-28  Richard Biener  <rguenther@suse.de>
1612         * match.pd: Add more simplification of address comparisons.
1614 2015-07-28  Richard Biener  <rguenther@suse.de>
1616         * match.pd: Re-order two cases in comparison with max/min
1617         value simplification to make it apply for bools.
1619 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1621         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1622         Handle simple SIGN_EXTEND or ZERO_EXTEND.
1623         (aarch64_rtx_costs): Properly strip extend or extract before
1624         passing down to rtx costs again.
1626 2015-07-28  Nick Clifton  <nickc@redhat.com>
1628         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1629         Optimizes the case where -mes0 is active and a constant symbolic
1630         address is used.
1631         * config/rl78/rl78-protos.h: Prototype the new function.
1632         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1634 2015-07-28  Tom de Vries  <tom@codesourcery.com>
1636         * tree-parloops.c (reduc_stmt_res): New function.
1637         (initialize_reductions, add_field_for_reduction)
1638         (create_phi_for_local_result, create_loads_for_reductions)
1639         (create_stores_for_reduction, build_new_reduction): Handle case that
1640         reduc_stmt is a phi.
1641         (gather_scalar_reductions): Allow double_reduc reductions.
1643 2015-07-28  Richard Biener  <rguenther@suse.de>
1645         * fold-const.c (fold_comparison): Remove equality folding
1646         of decl addresses ...
1647         * match.pd: ... here and merge with existing pattern.
1649 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1651         PR tree-optimization/66828
1652         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1653         from int64_t to uint64_t.
1655 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1657         * opts-common.c (read_cmdline_option): List DriverOnly enum values
1658         as valid only in the error message of the driver, not in the
1659         messages of the language compilers.
1661 2015-07-27  Tom de Vries  <tom@codesourcery.com>
1663         * tree-parloops.c (gather_scalar_reductions): Simplify function
1664         structure.
1666 2015-07-27  Marek Polacek  <polacek@redhat.com>
1668         * ipa-devirt.c (types_same_for_odr): Fix typo.
1670 2015-07-27  Jason Merrill  <jason@redhat.com>
1672         PR debug/66468
1673         * dwarf2out.c (gen_inlined_subroutine_die): Check
1674         cgraph_function_possibly_inlined_p.
1676 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
1678         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1679         Place integer variant first.
1680         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1682 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
1684         PR/63870
1685         * config/arm/arm-builtins.c (enum arm_builtins):
1686         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1687         (ARM_BUILTIN_NEON_BASE): Rename macro to....
1688         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1689         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1690         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1692 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
1694         PR/63870
1695         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1696         Add qualifier_lane_index.
1697         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1698         (arm_getlane_qualifiers): Use qualifier_lane_index.
1699         (arm_lanemac_qualifiers): Rename to...
1700         (arm_mac_n_qualifiers): ...this.
1701         (LANEMAC_QUALIFIERS): Rename to...
1702         (MAC_N_QUALIFIERS): ...this.
1703         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1704         (arm_setlane_qualifiers): Use qualifier_lane_index.
1705         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1706         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1707         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1708         (arm_expand_neon_builtin): Handle qualifier_lane_index.
1710         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1711         * config/arm/arm.c (bounds_check): Likewise, improve error message.
1712         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1713         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1714         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1715         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1716         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1717         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1718         qualifiers to TERNOP_IMM.
1719         (vdup_lane): Change qualifiers to GETLANE.
1720         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1721         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1722         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1723         vqdmlsl_n): Change qualifiers to MAC_N.
1725         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1726         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1727         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1728         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1729         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1730         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1731         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1732         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1733         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1734         Remove call to neon_lane_bounds.
1736 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
1738         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1739         Place integer variant first.
1741 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
1743         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1744         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1745         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1746         for armv6kz targets.
1747         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1748         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1749         (FL_FOR_ARCH6ZK): Remove.
1750         (FL_FOR_ARCH6KZ): New.
1751         (arm_arch6zk): New declaration.
1752         * config/arm/arm-tables.opt: Regenerate.
1753         * config/arm/arm.c (arm_arch6kz): New.
1754         (arm_option_override): Set arm_arch6kz.
1755         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1756         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1757         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1759 2015-07-27  Marek Polacek  <polacek@redhat.com>
1761         PR c++/66555
1762         PR c/54979
1763         * doc/invoke.texi: Document -Wtautological-compare.
1765 2015-07-27  Richard Biener  <rguenther@suse.de>
1767         * genmatch.c (decision_tree::gen_gimple): Split out large
1768         subtrees into separate functions.
1769         (decision_tree::gen_generic): Likewise.
1771 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
1773         * config/alpha/alpha.c: Use SUBREG_P predicate.
1774         * config/alpha/predicates.md: Ditto.
1776 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1778         * config.host (s390*-*-*): Include driver-native.c only when
1779         building with s390* as host *and* target.
1781 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
1783         PR target/66930
1784         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1785         T bit register modified_between_p check.
1787 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1789         * config/i386/i386.c: Use SUBREG_P predicate.
1790         * config/i386/i386.md: Ditto.
1791         * config/i386/sse.md: Ditto.
1792         * config/i386/predicates.md: Ditto.
1794 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1796         PR target/67004
1797         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
1798         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
1800 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1802         * Makefile.in: Remove use of TREEBROWSER.
1803         * config.in: Regenerated.
1804         * configure: Regenerated.
1805         * configure.ac: Remove definition of TREEBROWSER.
1806         * tree-browser.c: Removed.
1807         * tree-browser.def: Removed.
1809 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1811         * graphite-scop-detection.c: Include gimple-pretty-print.h.
1812         (stmt_simple_for_scop_p): Print when a stmt is not handled in
1813         Graphite.
1814         (scopdet_basic_block_info): Print when a loop or bb cannot be
1815         represented in Graphite.
1817 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1819         PR target/66648
1820         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1821         execution guard when min_size is less than size_needed.
1823 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1825         * doc/install.texi: Document supported versions of ISL.
1827 2015-07-25  Jeff Law  <law@redhat.com>
1829         Revert:
1830         PR lto/66752
1831         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1832         unable to find X NE 0 in the tables, return X as the simplified
1833         condition.
1834         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1835         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1836         to VISISTED_BBS.  */
1837         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1838         after removing the control flow statement and unnecessary edges.
1840 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
1842         Revert:
1843         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
1845         PR rtl-optimization/64164
1846         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1847         * tree-ssa-copyrename.c: Removed.
1848         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1849         -ftree-coalesce-vars.
1850         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1851         * common.opt (ftree-copyrename): Ignore.
1852         (ftree-coalesce-inlined-vars): Likewise.
1853         * doc/invoke.texi: Remove the ignored options above.
1854         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1855         * tree-ssa-coalesce.h: ... here.
1856         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1857         headers required by it.
1858         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1859         across variables when flag_tree_coalesce_vars.  Check register
1860         use and promoted modes to allow coalescing.  Moved to
1861         tree-ssa-coalesce.c.
1862         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1863         with its member functions to tree-ssa-coalesce.c.
1864         (var_map_base_init): Likewise.  Renamed to
1865         compute_samebase_partition_bases.
1866         (partition_view_normal): Drop want_bases parameter.
1867         (partition_view_bitmap): Likewise.
1868         * tree-ssa-live.h: Adjust declarations.
1869         * tree-ssa-coalesce.c: Include explow.h.
1870         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1871         default defs at the entry point.
1872         (dump_part_var_map): New.
1873         (compute_optimized_partition_bases): New, called by...
1874         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1875         of compute_samebase_partition_bases.  Adjust.
1876         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1877         * cfgexpand.c (leader_merge): New.
1878         (get_rtl_for_parm_ssa_default_def): New.
1879         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1880         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1881         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1882         redundant MEM attr setting.
1883         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1884         from...
1885         (expand_one_stack_var): ... this.  New wrapper to check and
1886         skip already expanded SSA partitions.
1887         (record_alignment_for_reg_var): New, factored out of...
1888         (expand_one_var): ... this.
1889         (expand_one_ssa_partition): New.
1890         (adjust_one_expanded_partition_var): New.
1891         (expand_one_register_var): Check and skip already expanded SSA
1892         partitions.
1893         (expand_used_vars): Don't create DECLs for anonymous SSA
1894         names.  Expand all SSA partitions, then adjust all SSA names.
1895         (pass::execute): Replace the loops that set
1896         SA.partition_to_pseudo from partition leaders and cleared
1897         DECL_RTL for multi-location variables, and that which used to
1898         rename vars and set attrs, with one that clears DECL_RTL and
1899         checks that PARMs and RESULTs default_defs match DECL_RTL.
1900         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1901         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1902         * explow.c (promote_ssa_mode): New.
1903         * explow.h (promote_ssa_mode): Declare.
1904         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1905         * function.c: Include cfgexpand.h.
1906         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1907         (use_register_for_parm_decl): Wrapper for the above to
1908         special-case the result_ptr.
1909         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1910         (split_complex_args): Take assign_parm_data_all argument.
1911         Pass it to rtl_for_parm.  Set up rtl and context for split
1912         args.
1913         (assign_parms_augmented_arg_list): Adjust.
1914         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1915         multiple locations.  Recognize split complex args.
1916         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1917         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1918         (assign_parm_setup_block): Prefer SSA-assigned location.
1919         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1920         if stack_parm is NULL.
1921         (assign_parm_setup_stack): Prefer SSA-assigned location.
1922         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1923         rtl before testing for pointer bounds.  Special-case result_ptr.
1924         (expand_function_start): Maybe reset DECL_RTL of result.
1925         Prefer SSA-assigned location for result and static chain.
1926         Factor out DECL_RESULT and SET_DECL_RTL.
1927         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1928         anonymous SSA names.  Use promote_ssa_mode.
1929         (get_temp_reg): Likewise.
1930         (remove_ssa_form): Adjust.
1931         * stor-layout.c (layout_decl): Don't set mem attributes of
1932         non-MEMs.
1933         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1934         and get its reg_usage for reg invalidation.
1935         (compute_bb_dataflow): Pass it insn.
1936         (emit_notes_in_bb): Likewise.
1938 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1940         * config/i386/i386.c (ix86_va_start): Remove
1941         unneeded !TARGET_64BIT check.
1942         (ix86_gimplify_va_arg): Ditto.
1944 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1946         * graphite-sese-to-poly.c (build_poly_scop): Always call
1947         rewrite_commutative_reductions_out_of_ssa.
1949 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1951         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
1952         flag_associative_math to FLOAT_TYPE_P.  Honour
1953         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
1955 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1957         PR c++/64079
1958         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
1959         and "%qD" in warning_at instead of "%q+D" in warning.
1961 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1963         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
1964         (ix86_function_abi): Cleanup.
1966 2015-07-24  Michael Darling  <darlingm@gmail.com>
1968         PR other/66259
1969         * acinclude.m4: Reflects renaming of configure.in to configure.ac
1970         * configure: Likewise
1971         * configure.ac: Likewise
1972         * doc/install.texi: Likewise
1973         * doc/tm.texi: Likewise
1974         * doc/tm.texi.in: Likewise
1976 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1978         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
1979         manually swapping values.
1980         * cse.c (fold_rtx): Likewise.
1981         * lra-eliminations.c (form_sum): Likewise.
1983 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1985         PR target/64003
1986         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
1987         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
1988         (*jcc_1, *jcc_2, jump, simple_return_internal)
1989         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
1990         Set length_nobnd attribute instead of length attribute.
1991         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
1992         (length_nobnd): Remove attribute.
1993         (length): Remove length_nobnd processing.
1995 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1997         * gimplify.c (omp_default_clause): New function.  Reorganize flow
1998         for clarity. Broken out of ...
1999         (omp_notice_variable): ... here.
2001 2015-07-24  Gary Funck  <gary@intrepid.com>
2003         PR middle-end/66984
2004         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2005         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2007 2015-07-24  Tom de Vries  <tom@codesourcery.com>
2009         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2010         exit-first loop transform.
2012 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
2014         PR 66714
2015         * tree-cfg.c (struct replace_decls_d): New struct.
2016         (replace_block_vars_by_duplicates_1): New function.
2017         (replace_block_vars_by_duplicates): Use it to replace the decls
2018         in the value exprs by duplicates.
2020 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2022         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2023         -shared, -symbolic, -rdynamic.
2025 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2027         PR target/65711
2028         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2029         -dynamic-linker within %{!static %{!shared, and -rdynamic within
2030         %{!static.
2032 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2034         PR ipa/66566
2035         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2036         edge summary is available.
2038 2015-07-24  Richard Biener  <rguenther@suse.de>
2040         * genmatch.c (struct dt_node): Add statistic fields.
2041         (dt_node::analyze): New method.
2042         (decision_tree::gen_gimple): Call analyze on the root node
2043         and print statistics to stderr.
2044         (decision_tree::gen_generic): Likewise.
2046 2015-07-24  Richard Biener  <rguenther@suse.de>
2048         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2049         against the highest or lowest possible integer ...
2050         * match.pd: ... as patterns here.
2052 2015-07-24  Richard Biener  <rguenther@suse.de>
2054         * genmatch.c (struct capture_info): Add same_as field.
2055         (capture_info::capture_info): Initialize same_as.
2056         (capture_info::walk_match): Compute same_as.
2057         (capture_info::walk_result): Compute stuff for the leader.
2058         (capture_info::walk_c_expr): Likewise.
2059         (dt_simplify::gen_1): Only look at leaders when deciding
2060         to force no side-effects or emit side-effects of omitted operands.
2062 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2064         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2065         reg note to the GPR -> FPR save instructions.
2067 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2069         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2070         cheaper.
2071         (s390_expand_insv): Don't generate risbg pattern for constant zero
2072         sources.
2073         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2074         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
2075         splitters.
2077 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2079         * config/s390/s390.c (s390_reorg): Clean up handling of processors
2080         with
2081         -mtune=
2082         (s390_issue_rate): Likewise.
2083         (s390_sched_reorder): Likewise.
2084         (s390_sched_variable_issue): Likewise.
2085         (s390_loop_unroll_adjust): Likewise.
2086         (s390_option_override):  Likewise.
2088 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2090         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2091         processor capabilities with -march=native.
2092         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2093         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
2094         (S390_TARGET_BITS_STRING): Macro to simplify specs.
2096 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2098         * config/s390/s390.c (s390_issue_rate): Handle
2099         PROCESSOR_2094_Z9_EC.
2100         (s390_option_override): Likewise.
2101         (s390_adjust_priority): Likewise.
2103 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2105         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2106         when cross compiling.
2108 2015-07-24  Richard Biener  <rguenther@suse.de>
2110         * fold-const.c (maybe_canonicalize_comparison_1): Move
2111         A code CST canonicalization ...
2112         * match.pd: ... to a pattern here.
2114 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
2116         Revert:
2117         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
2118         PR target/63521
2119         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2120         (HONOR_REG_ALLOC_ORDER): Define.
2122 2015-07-24  Richard Biener  <rguenther@suse.de>
2124         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2125         * fold-const.c (fold_comparison): Move parameter does not
2126         alias &local simplification ...
2127         * match.pd: ... as a pattern here.
2129 2015-07-24  Richard Biener  <rguenther@suse.de>
2131         * gimple-fold.c (replace_stmt_with_simplification): Special-case
2132         valueizing call operands.
2133         * gimple-match-head.c (maybe_push_res_to_seq): Take
2134         number of call arguments from ops array.
2135         (do_valueize): New function.
2136         (gimple_simplify): Return true if valueization changed
2137         any operand even if the result didn't simplify further.
2139 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2141         PR middle-end/25530
2142         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2144 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2146         PR middle-end/25529
2147         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2149 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2151         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2152         instruction.
2154 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2156         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2157         clean up.
2159 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
2161         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2162         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
2163         targets here.
2164         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2165         ms_va_list_type_node initialization.
2167 2015-07-23  Jeff Law  <law@redhat.com>
2169         PR lto/66752
2170         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2171         unable to find X NE 0 in the tables, return X as the simplified
2172         condition.
2173         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2174         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
2175         to VISISTED_BBS.  */
2176         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2177         after removing the control flow statement and unnecessary edges.
2179 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2181         * tree-pass.h (get_current_pass_name): Removed.
2183 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
2185         PR rtl-optimization/64164
2186         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2187         * tree-ssa-copyrename.c: Removed.
2188         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2189         -ftree-coalesce-vars.
2190         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2191         * common.opt (ftree-copyrename): Ignore.
2192         (ftree-coalesce-inlined-vars): Likewise.
2193         * doc/invoke.texi: Remove the ignored options above.
2194         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2195         * tree-ssa-coalesce.h: ... here.
2196         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2197         headers required by it.
2198         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2199         across variables when flag_tree_coalesce_vars.  Check register
2200         use and promoted modes to allow coalescing.  Moved to
2201         tree-ssa-coalesce.c.
2202         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2203         with its member functions to tree-ssa-coalesce.c.
2204         (var_map_base_init): Likewise.  Renamed to
2205         compute_samebase_partition_bases.
2206         (partition_view_normal): Drop want_bases parameter.
2207         (partition_view_bitmap): Likewise.
2208         * tree-ssa-live.h: Adjust declarations.
2209         * tree-ssa-coalesce.c: Include explow.h.
2210         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2211         default defs at the entry point.
2212         (dump_part_var_map): New.
2213         (compute_optimized_partition_bases): New, called by...
2214         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2215         of compute_samebase_partition_bases.  Adjust.
2216         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2217         * cfgexpand.c (leader_merge): New.
2218         (get_rtl_for_parm_ssa_default_def): New.
2219         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2220         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2221         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2222         redundant MEM attr setting.
2223         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2224         from...
2225         (expand_one_stack_var): ... this.  New wrapper to check and
2226         skip already expanded SSA partitions.
2227         (record_alignment_for_reg_var): New, factored out of...
2228         (expand_one_var): ... this.
2229         (expand_one_ssa_partition): New.
2230         (adjust_one_expanded_partition_var): New.
2231         (expand_one_register_var): Check and skip already expanded SSA
2232         partitions.
2233         (expand_used_vars): Don't create DECLs for anonymous SSA
2234         names.  Expand all SSA partitions, then adjust all SSA names.
2235         (pass::execute): Replace the loops that set
2236         SA.partition_to_pseudo from partition leaders and cleared
2237         DECL_RTL for multi-location variables, and that which used to
2238         rename vars and set attrs, with one that clears DECL_RTL and
2239         checks that PARMs and RESULTs default_defs match DECL_RTL.
2240         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2241         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2242         * explow.c (promote_ssa_mode): New.
2243         * explow.h (promote_ssa_mode): Declare.
2244         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2245         * function.c: Include cfgexpand.h.
2246         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2247         (use_register_for_parm_decl): Wrapper for the above to
2248         special-case the result_ptr.
2249         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2250         (split_complex_args): Take assign_parm_data_all argument.
2251         Pass it to rtl_for_parm.  Set up rtl and context for split
2252         args.
2253         (assign_parms_augmented_arg_list): Adjust.
2254         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2255         multiple locations.  Recognize split complex args.
2256         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2257         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2258         (assign_parm_setup_block): Prefer SSA-assigned location.
2259         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
2260         if stack_parm is NULL.
2261         (assign_parm_setup_stack): Prefer SSA-assigned location.
2262         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2263         rtl before testing for pointer bounds.  Special-case result_ptr.
2264         (expand_function_start): Maybe reset DECL_RTL of result.
2265         Prefer SSA-assigned location for result and static chain.
2266         Factor out DECL_RESULT and SET_DECL_RTL.
2267         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2268         anonymous SSA names.  Use promote_ssa_mode.
2269         (get_temp_reg): Likewise.
2270         (remove_ssa_form): Adjust.
2271         * stor-layout.c (layout_decl): Don't set mem attributes of
2272         non-MEMs.
2273         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2274         and get its reg_usage for reg invalidation.
2275         (compute_bb_dataflow): Pass it insn.
2276         (emit_notes_in_bb): Likewise.
2278 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
2280         PR target/66217
2281         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2282         prototype.
2283         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2284         (rs6000_emit_2insn_and): Handle dot forms.
2285         * config/rs6000/rs6000.md (and<mode>3): Adjust.
2286         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
2287         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2289 2015-07-23  Richard Biener  <rguenther@suse.de>
2291         * generic-match-head.c: Include cgraph.h.
2292         * gimple-match-head.c: Likewise.
2293         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2294         SSA names.
2295         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2296         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
2297         pattern.
2299 2015-07-23  Richard Biener  <rguenther@suse.de>
2301         * gimple-fold.c (fold_gimple_cond): Do not require folding
2302         results to pass valid_gimple_rhs_p.
2303         * tree-cfg.h (fold_cond_expr_cond): Remove.
2304         * tree-cfg.c (fold_cond_expr_cond): Likewise.
2305         (make_edges): Do not call it.
2306         * tree-inline.c (tree_function_versioning): Likewise.
2308 2015-07-23  Tom de Vries  <tom@codesourcery.com>
2310         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2311         vect_force_simple_reduction.
2312         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2313         (vect_is_simple_reduction_1): Add and handle
2314         need_wrapping_integral_overflow parameter.
2315         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2316         need_wrapping_integral_overflow parameter.
2317         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2318         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2319         decl.
2321 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
2323         PR tree-optimization/66926,66951
2324         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2325         INNER_LOOP and fix up condition for renaming virtual operands.
2327 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2329         * combine.c (try_combine): Use std::swap instead of manually
2330         swapping.
2332 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
2334         * config/mips/i6400.md: New file.
2335         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2336         (mips64r6): Likewise.
2337         (i6400): Define.
2338         * config/mips/mips-tables.opt: Regenerate.
2339         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2340         (mips_issue_rate): Add support for i6400.
2341         (mips_multipass_dfa_lookahead): Likewise.
2342         * config/mips/mips.h (TUNE_I6400): Define.
2343         * config/mips/mips.md: Include i6400.md.
2344         (processor): Add i6400.
2345         * doc/invoke.texi (-march=@var{arch}): Add i6400.
2347 2015-07-23  Richard Biener  <rguenther@suse.de>
2349         PR middle-end/66916
2350         * match.pd: Guard widen and sign-change comparison simplification
2351         with single_use.
2353 2015-07-23  Richard Biener  <rguenther@suse.de>
2355         PR tree-optimization/66945
2356         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2357         ::before_dom_children): Force the propagators idea of
2358         non-executable edges to materialize, not what the folder
2359         chooses.
2361 2015-07-23  Richard Biener  <rguenther@suse.de>
2363         * gimple.h (gimple_cond_make_false): Use 0 != 0.
2364         (gimple_cond_make_true): Use 1 != 0.
2366 2015-07-22  DJ Delorie  <dj@redhat.com>
2368         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2369         slashes.
2371         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2372         (ashrhi3): Likewise.
2373         (lshrhi3): Likewise.
2374         (movhi): Take advantage of zero-extend to load small constants.
2375         (movpsi): Likewise.
2376         (and<mode>3): Likewise.
2377         (zero_extendqihi2): Likewise.
2378         (zero_extendqisi2): New.
2379         * config/msp430/constraints.md (N,O): New.
2380         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2382 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
2384         PR target/66954
2385         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2386         to enum feature_priority and feature_list.
2387         (fold_builtin_cpu): Add F_AES to enum processor_features
2388         and isa_names_table.
2390 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
2392         PR driver/66737
2393         * config/i386/linux-common.h (MPX_SPEC): Use linker option
2394         for 64bit target only.
2396 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2398         * config/nvptx/nvptx.c: Expand some comments.
2400 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
2402         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2403         (cortex_a53_advsimd): ...This.
2405 2015-07-22  Richard Biener  <rguenther@suse.de>
2407         * genmatch.c (expr::gen_transform): Clarify error message
2408         and display location.
2410 2015-07-22  Richard Biener  <rguenther@suse.de>
2412         * genmatch.c (struct operand): Add location member.
2413         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2414         constructors.
2415         (struct simplify): Remove match_location and result_location
2416         members.
2417         (elsehwere): Adjust.
2419 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
2421         * config/mips/m5100.md: New file.
2422         * config/mips/mips-cpus.def (m5100, m5101): Define.
2423         * config/mips/mips-tables.opt: Regenerate.
2424         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2425         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2426         -march=m5101 to -mips32r5.
2427         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2428         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2429         !-msoft-float.
2430         * config/mips/mips.md: Include m5100.md.
2431         (processor): Add m5100.
2432         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2434 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
2436         * config/mips/mips-cpus.def (interaptiv): Define.
2437         * config/mips/mips-tables.opt: Regenerate.
2438         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2439         -mips32r2.
2440         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2441         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2443 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
2445         PR target/63521
2446         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2447         (HONOR_REG_ALLOC_ORDER): Define.
2449 2015-07-22  Richard Biener  <rguenther@suse.de>
2451         PR tree-optimization/66952
2452         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2453         blocks we end up executing unconditionally reset all SSA
2454         info such as range and alignment.
2455         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2456         * tree-ssanames.c (reset_flow_sensitive_info): New function.
2458 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
2460         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2461         typo in attribute.
2463 2015-07-22  Richard Biener  <rguenther@suse.de>
2465         * genmatch.c (parser::parse_result): Properly handle
2466         match with result operands and conditions.
2468 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
2470         PR target/63870
2471         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2472         Add qualifier_struct_load_store_lane_index.
2473         (aarch64_types_loadstruct_lane_qualifiers): Use
2474         qualifier_struct_load_store_lane_index for lane index argument for
2475         last argument.
2476         (aarch64_types_storestruct_lane_qualifiers): Ditto.
2477         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2478         (aarch64_simd_expand_args): Add new argument describing mode of
2479         builtin. Check lane bounds for arguments with
2480         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2481         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2482         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2483         (aarch64_simd_expand_builtin): Handle arguments with
2484         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2485         aarch64_simd_expand_args.
2486         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2487         vst[234]_lane with BUILTIN_VALLDIF.
2488         * config/aarch64/aarch64-simd.md:
2489         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2490         endianness reversal on lane index.
2491         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2492         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2493         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2494         (vec_store_lanesci_lane<mode>): Ditto.
2495         (vec_store_lanesxi_lane<mode>): Ditto.
2496         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2497         reversal of lane index.
2498         (aarch64_ld3_lane<mode>): Ditto.
2499         (aarch64_ld4_lane<mode>): Ditto.
2500         (aarch64_st2_lane<mode>): Ditto.
2501         (aarch64_st3_lane<mode>): Ditto.
2502         (aarch64_st4_lane<mode>): Ditto.
2503         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2504         to qmode. Add new mode parameter. Update uses.
2505         (__LD3_LANE_FUNC): Ditto.
2506         (__LD4_LANE_FUNC): Ditto.
2507         (__ST2_LANE_FUNC): Ditto.
2508         (__ST3_LANE_FUNC): Ditto.
2509         (__ST4_LANE_FUNC): Ditto.
2511 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
2513         * doc/invoke.texi (Language Independent Options): Rename node to
2514         Diagnostic Message Formatting Options.
2516 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
2518         PR ipa/66424.
2519         * lra-remat.c (operand_to_remat): Prevent using insns with input
2520         subregs processed separately by IRA.
2522 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
2524         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2525         straight loops.
2526         (single_imm_use): Check for iterator node.
2527         (num_imm_uses): Likewise.
2528         * tree-ssa-operands.c (has_zero_uses_1): Delete.
2529         (single_imm_use_1): Check for iterator node.
2531 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
2532             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2534         * configure.ac: Add check for new options in isl-0.15.
2535         * config.in, configure: Rebuilt.
2536         * graphite-blocking.c: Include <isl/constraint.h>
2537         * graphite-interchange.c,  graphite-poly.c: Likewise.
2538         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2539         * graphite.c: Likewise.
2540         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2541         <isl/union_set.h>.
2542         * graphite-dependences.c: Include <isl/constraint.h>.
2543         (max_number_of_out_dimensions): Returns isl_stat.
2544         (extend_schedule_1): Likewise
2545         (extend_schedule): Corresponding changes.
2546         * graphite-optimize-isl.c: Include <isl/constraint.h> and
2547         <isl/union_set.h>.
2548         (getSingleMap): Change return type of isl_stat.
2549         (optimize_isl): Conditionally use
2550         isl_options_set_schedule_serialize_sccs.
2551         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2552         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2554 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
2556         PR target/66956
2557         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2558         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2560 2015-07-21  Richard Biener  <rguenther@suse.de>
2562         PR tree-optimization/66948
2563         * genmatch.c (capture_info::walk_match): Also recurse to
2564         captures.  Properly compute expr state from captures of
2565         captures.
2566         * match.pd: Add single-use guards to
2567         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2569 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
2571         * config/nvptx/mkoffload.c (process): Add static destructor call.
2573 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2575         PR middle-end/66915
2576         * match.pd (A - B -> A + (-B)): Don't allow folding
2577         when type if a fixed-point type.
2579 2015-07-20  DJ Delorie  <dj@redhat.com>
2581         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2582         (iorqi3_real): Likewise for set1.
2584 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
2586         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2587         for !TARGET_64BIT.
2589 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
2591         * graphite-isl-ast-to-gimple.c:
2592         Refactor so that each function can access 'region'. This will help
2593         maintain a parameter rename_map within a region.
2595 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
2597         * config/rs6000/rs6000.md (*lt0_disi): New.
2599 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
2601         PR target/66217
2602         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
2603         "available letters" comment.
2604         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2605         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2606         and_2rld_operand):  Delete.
2607         (and_operand): Adjust.
2608         (rotate_mask_operator): New.
2609         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2610         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2611         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2612         extract_ME): Delete.
2613         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2614         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2615         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2616         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2617         rs6000_emit_2insn_and): New.
2618         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2619         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2620         includes_rldic_lshift_p, includes_rldicr_lshift_p,
2621         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2622         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2623         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2624         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2625         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2626         rs6000_emit_2insn_and): New.
2627         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2628         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2629         handling.
2630         <NOT>: Don't fall through to next case.
2631         <AND>: Handle the various rotate-and-mask cases directly.
2632         <IOR>: Always cost as one insn.
2633         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2634         (and<mode>3): Adjust expander for the new patterns.
2635         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2636         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2637         (*and<mode>3_imm_dot_shifted): New.
2638         (*and<mode>3_mask): Delete, rewrite as ...
2639         (and<mode>3_mask): ... New.
2640         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2641         (andsi3_internal0_nomc): Delete.
2642         (*andsi3_internal6): Delete.
2643         (*and<mode>3_2insn): New.
2644         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2645         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2646         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2647         *insvdi_internal3): Delete.
2648         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2649         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2650         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2651         *ior<mode>_mask): New.
2652         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2653         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2654         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2655         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2656         Delete.
2657         (ashr<mode>3): Delete expander.
2658         (*ashr<mode>3): Rename to ...
2659         (ashr<mode>3): ... This.
2660         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2661         (*rotldi3_internal4, *rotldi3_internal5 and split,
2662         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2663         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2664         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2665         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2666         (splitter for loading a mask): Adjust.
2667         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2669 2015-07-20  Marek Polacek  <polacek@redhat.com>
2671         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2672         output_add_clobbers, output_added_clobbers_hard_reg_p,
2673         gen_rtx_scratch): Remove declarations.
2675 2015-07-20  Marek Polacek  <polacek@redhat.com>
2677         PR c++/55095
2678         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2680 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2682         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2683         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2685 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2687         * combine.c (combine_simplify_rtx): Move simplification step
2688         before various transformations/substitutions.
2690 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
2692         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2693         (struct int_traits): Likewise.
2695 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2697         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2698         function to vmsdbgout_function_decl.
2700 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2702         PR target/66922
2703         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2704         from misaligned positions.
2705         (ix86_expand_pinsr): Reject insertions to misaligned positions.
2707 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
2709         PR middle-end/46851
2710         PR middle-end/60340
2711         * Makefile.in: Removed omega.o.
2712         * common.opt: Document flag fcheck-data-deps as deprecated.
2713         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2714         its associated params: omega-max-vars, omega-max-geqs,
2715         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2716         omega-max-keys, omega-eliminate-redundant-constraints.
2717         * doc/loop.texi: Remove all the section on Omega.
2718         * graphite-blocking.c: Include missing params.h: it used to be
2719         included through tree-data-ref.h and omega.h.
2720         * graphite-isl-ast-to-gimple.c: Same.
2721         * graphite-optimize-isl.c: Same.
2722         * graphite-sese-to-poly.c: Same.
2723         * graphite.c: Same.
2724         * omega.c: Remove.
2725         * omega.h: Remove.
2726         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2727         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2728         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2729         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2730         * passes.def: Remove pass_check_data_deps.
2731         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2732         (dump_conflict_function): Same.
2733         (dump_subscript): Same.
2734         (print_direction_vector): Same.
2735         (print_dir_vectors): Same.
2736         (print_lambda_vector): Same.
2737         (print_dist_vectors): Same.
2738         (dump_data_dependence_relation): Same.
2739         (dump_data_dependence_relations): Same.
2740         (dump_dist_dir_vectors): Same.
2741         (dump_ddrs): Same.
2742         (init_omega_eq_with_af): Removed.
2743         (omega_extract_distance_vectors): Removed.
2744         (omega_setup_subscript): Removed.
2745         (init_omega_for_ddr_1): Removed.
2746         (init_omega_for_ddr): Removed.
2747         (ddr_consistent_p): Removed.
2748         (compute_affine_dependence): Do not use omega to check data
2749         dependences.
2750         (compute_data_dependences_for_bb): Removed.
2751         (analyze_all_data_dependences): Removed.
2752         (tree_check_data_deps): Removed.
2753         * tree-data-ref.h: Do not include omega.h.
2754         (compute_data_dependences_for_bb): Removed.
2755         (tree_check_data_deps): Removed.
2756         * tree-ssa-loop.c (pass_check_data_deps): Removed.
2757         (make_pass_check_data_deps): Removed.
2758         * tree-ssa-phiopt.c: Include params.h.
2759         * tree-vect-data-refs.c: Same.
2760         * tree-vect-slp.c: Same.
2762 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2764         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2765         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
2766         (mem->fpreg splitters): Ditto.
2767         (general_operand->nonimmediate_operand splitter): Use explicit modes.
2768         Disable DFmode for TARGET_64BIT.
2770 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2772         PR target/66906
2773         * config/i386/i386.c (ix86_expand_prologue): Replicate static
2774         chain on the stack.
2776 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2778         * config/nvptx/mkoffload.c (process): Constify host data.
2779         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2780         Constify host data.
2781         (generate_host_descr_file): Likewise.
2783 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
2784             Sebastian Pop  <s.pop@samsung.com>
2786         PR middle-end/61929
2787         * graphite-dependences.c (add_pdr_constraints): Renamed
2788         pdr->extent to pdr->subscript_sizes.
2789         * graphite-interchange.c (build_linearized_memory_access): Add
2790         back all gcc_assert's that the "isl_int to isl_val conversion"
2791         patch has removed.  Refactored.
2792         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
2793         * graphite-poly.c (new_poly_dr): Same.
2794         (free_poly_dr): Same.
2795         * graphite-poly.h (struct poly_dr): Same.
2796         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
2797         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
2798         * graphite-scop-detection.h: Fix space.
2799         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
2800         back all gcc_assert's removed by a previous patch.
2801         (wrap): Remove the_isl_ctx global variable that the same patch has
2802         added.
2803         (build_loop_iteration_domains): Same.
2804         (add_param_constraints): Same.
2805         (pdr_add_data_dimensions): Same.  Refactored.
2806         (build_poly_dr): Renamed extent to subscript_sizes.
2808 2015-07-17  Marek Polacek  <polacek@redhat.com>
2810         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
2811         * match.pd: ... here.
2813 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2815         * config/nvptx/mkoffload.c (process): Constify target data.
2816         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2817         Constify target data.
2818         (generate_target_offloadend_file): Likewise.
2820 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
2822         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
2823         to allow renaming of PHI arguments on edges incoming from outer
2824         loop header, add corresponding check before start PHI iterator.
2825         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
2826         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
2827         with true force_vectorize.  Set-up dominator for outer loop too.
2828         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
2829         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
2830         was marked with force_vectorize and has restricted cfg.
2831         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
2832         inner loop.
2833         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2834         do peeling for outer loops.
2836 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
2837             Matthias Klose  <doko@ubuntu.com>
2839         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
2840         build-sysroot, sysroot from the `Miscenalleous configure options' to
2841         the `Directories' section and strip trailing `/' from with_sysroot.
2842         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
2843         * configure: Regenerated.
2845 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2847         PR target/66824
2848         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
2849         (TARGET_HARD_DF_REGS): Ditto.
2850         (TARGET_HARD_XF_REGS): Ditto.
2851         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
2852         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
2853         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
2854         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
2855         (*movsf_internal): Add alternatives 16 and 17. Enable
2856         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
2858 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2860         PR rtl-optimization/66891
2861         * calls.c (expand_call): Wrap precompute_register_parameters with
2862         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
2864 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
2866         * config/nvptx/mkoffload.c (process): Constify mapping variables.
2867         Define target data struct and initialize it.
2869 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
2871         PR rtl-optimization/66626
2872         * ira.h (emit-rtl.h): Include.
2873         (non_spilled_static_chain_regno_p): New.
2874         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
2875         unless it is non spilled static chain pseudo.
2876         (assign_hard_rego): Spill memory profitable allocno unless it is
2877         non spilled static chain pseudo.
2878         (allocno_spill_priority_compare): Put non spilled static chain
2879         pseudo at the end of sorted array.
2880         (improve_allocation): Do nothing if we have static chain and
2881         non-local goto.
2882         (allocno__priority_compare_func): Put non spilled static chain
2883         pseudo at the beginning of sorted array.
2884         (move_spill_restore): Ignore non spilled static chain pseudo.
2885         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
2886         to non spilled static chain pseudo.
2887         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
2888         pseudo at the beginning of sorted array.
2889         (spill_for): Spill non spilled static chain pseudo last.
2890         * lra-constraints.c (lra_constraints): Remove static chain pseudo
2891         check for equivalence.
2893 2015-07-16  Martin Liska  <mliska@suse.cz>
2895         PR ipa/66896.
2896         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
2897         dst_ctx if it does not exist.
2899 2015-07-16  Martin Liska  <mliska@suse.cz>
2901         * hash-set.h (remove): New function.
2902         (iterator): New iteration class for hash_set.
2904 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2906         * genattrtab.c (make_canonical): Add a file_location parameter.
2907         Use fatal_at rather than fatal.
2908         (get_attr_value): Likewise.  Update call to make_canonical.
2909         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
2910         (make_internal_attr): Update calls accordingly.
2912 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2914         * read-md.h (message_with_line, error_with_line): Delete.
2915         * read-md.c (message_with_line, error_with_line): Delete.
2916         * gensupport.h: Include read-md.h.
2917         (md_rtx_info): New structure.
2918         (read_md_rtx): Use it.  Return a bool success value.
2919         * gensupport.c (read_md_rtx): Likewise.
2920         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
2921         (main): Update after interface changes.
2922         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
2923         (main): Update after interface changes.
2924         * genattrtab.c (insn_code_number): Delete.
2925         (optimize_attrs): Add a max_insn_code parameter and use it instead
2926         of insn_code_number.
2927         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
2928         Use *_at rather than *_with_line functions.
2929         (gen_insn): Likewise.
2930         (gen_delay): Likewise.
2931         (gen_insn_reserv): Likewise.
2932         (gen_bypass): Take an md_rtx_info rather than an rtx.
2933         (main): Update after interface changes.  Use a local max_insn_code
2934         variable instead of insn_code_number.
2935         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
2936         an rtx.  Use fatal_at rather than fatal.
2937         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
2938         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
2939         (gen_absence_set, gen_final_absence_set, gen_automaton)
2940         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
2941         (main): Update after interface changes.
2942         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
2943         and code number.
2944         (main): Update after interface changes.
2945         * genconditions.c (main): Use new read_md_rtx interface.
2946         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
2947         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
2948         (main): Update after interface changes.
2949         * genemit.c (insn_code_number, insn_index_number): Delete.
2950         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2951         Use fatal_at rather than fatal.
2952         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
2953         rather than fatal.
2954         (gen_split): Likewise.
2955         (main): Update after interface changes.
2956         * genextract.c (line_no): Delete.
2957         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2958         Update call to walk_rtx.
2959         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
2960         rather than message_with_line.
2961         (walk_rtx): Add an md_rtx_info argument.  Update call to
2962         VEC_safe_set_locstr.
2963         (main): Update after interface changes.
2964         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
2965         and lineno.  Use error_at rather than separate message_with_line
2966         calls and have_error assignments.
2967         (main): Update after interface changes.
2968         * genmddump.c (main): Use new read_md_rtx interface.
2969         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
2970         (main): Update after interface changes.
2971         * genoutput.c (next_code_number): Delete.
2972         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2973         (gen_peephole, gen_expand, gen_split): Likewise.
2974         (note_constraint): Likewise.  Use *_at rather than *_with_line
2975         functions.
2976         (main): Update after interface changes.
2977         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
2978         rtx and lineno.
2979         (main): Update after interface changes.
2980         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
2981         than an rtx and lineno.
2982         (process_define_constraint): Likewise.
2983         (process_define_register_constraint): Likewise.
2984         (main): Update after interface changes.
2985         * genrecog.c (next_insn_code, pattern_lineno): Delete.
2986         (validate_pattern): Replace top-level rtx with an md_rtx_info.
2987         Use *_at rather than *_with_line functions.
2988         (match_pattern_2): Likewise.
2989         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
2990         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
2991         Use *_at rather than *_with_line functions.
2992         * gentarget-def.c (add_insn): New function.
2993         (main): Use it.  Use new read_md_rtx interface.
2995 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2997         * gensupport.h (compute_test_codes): Take a file_location rather
2998         than a line number.
2999         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
3000         rather than *_with_line functions.
3001         (process_define_predicate): Update call to compute_test_codes.
3002         * genpreds.c (validate_exp): Take a file_location rather than a
3003         line number.  Use *_at functions rather than *_with_line functions.
3004         (process_define_predicate): Update call to validate_exp.
3005         (constraint_data): Replace lineno field with a file_location.
3006         (add_constraint): Take a file_location rather than a line number.
3007         Use *_at functions rather than *_with_line functions.  Fix error
3008         message for address constraints.  Update after changes to
3009         validate_exp, constraint_data and compute_test_codes.
3010         (process_define_constraint): Update accordingly.
3011         (process_define_register_constraint): Likewise.
3013 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3015         * genoutput.c (data): Use a file_location to record the source
3016         position.
3017         (nothing): Delete.
3018         (idata, idata_end): Remove initialization.
3019         (constraint_data): Replace lineno with a file_location.
3020         (output_insn_data): Update after changes to data.
3021         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3022         (scan_operands): Likewise, using *_at rather than *_with_line
3023         functions.
3024         (process_template): Likewise.
3025         (validate_insn_alternatives): Likewise.
3026         (validate_insn_operands): Likewise.
3027         (validate_optab_operands): Likewise.
3028         (init_insn_for_nothing): Initialize idata and idata_end.
3029         (note_constraint): Update after changes to constraint_data,
3030         using at rather than with_line functions.
3031         (mdep_constraint_len): Take a file_location rather than a
3032         line number.  Use at rather than with_line functions.
3034 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3036         * read-md.h (fatal_at): Declare.
3037         * read-md.c (fatal_at): New function.
3038         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3039         to record the source position.
3040         (check_attr_test): Take a file_location instead of a line number.
3041         Use fatal_at instead of fatal.
3042         (check_attr_value): Update after above changes, using "at"
3043         rather than "with_line" reporting functions.
3044         (convert_set_attr_alternative): Likewise.
3045         (gen_attr): Likewise.
3046         (check_defs): Likewise.  Don't assign to read_md_filename.
3047         (gen_insn): Update initialization after above changes.
3048         (gen_delay): Likewise.
3049         (write_insn_cases): Print the filename for a define_peephole.
3050         (gen_insn_reserv): Take a line number as argument and update
3051         the call to check_attr_test.
3052         (main): Pass a line number to gen_insn_reserv.
3054 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3056         * read-md.h (file_location): New structure.
3057         (directive_handler_t): Take a file_location rather than a line number.
3058         (message_at, error_at): Declare.
3059         (read_skip_construct): Delete.
3060         * read-md.c (message_with_line_1): Replace with...
3061         (message_at_1): ...this new function.
3062         (message_at, error_at): New functions.
3063         (message_with_line, error_with_line): Update to use message_at_1.
3064         (handle_enum): Take a file_location rather than a line number
3065         and use error_at for error reporting.
3066         (handle_include): Likewise.
3067         (read_skip_construct): Likewise.  Make static.
3068         (handle_file): Update after above changes.  Pass a file_location
3069         rather than a line number to handle_directive.
3070         * gensupport.c (queue_elem): Replace separate filename and lineno
3071         with a file_location.
3072         (queue_pattern): Replace filename and lineno arguments with a
3073         file_location.  Update after change to queue_elem.
3074         (process_define_predicate): Replace lineno argument with a
3075         file_location and use error_at for error reporting.  Update
3076         after above changes.
3077         (process_rtx): Likewise.
3078         (subst_pattern_match): Likewise.
3079         (get_alternatives_number): Likewise.
3080         (alter_predicate_for_insn): Likewise.
3081         (rtx_handle_directive): Likewise.
3082         (is_predicable): Update after above changes, using error_at rather
3083         than error_with_line.
3084         (has_subst_attribute): Likewise.
3085         (identify_predicable_attribute): Likewise.
3086         (alter_attrs_for_subst_insn): Likewise.
3087         (process_one_cond_exec): Likewise.
3088         (process_substs_on_one_elem): Likewise.
3089         (process_define_subst): Likewise.
3090         (check_define_attr_duplicates): Likewise.
3091         (read_md_rtx): Update after change to queue_elem.
3093 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3095         * genoutput.c (next_index_number): Delete.
3096         (data): Remove index_number.
3097         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3098         (main): Remove manipulation of next_index_number.
3100 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
3102         * genattrtab.c (check_attr_value): Remove handling of null attrs.
3103         (make_canonical): Likewise.
3105 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
3107         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3108         instead of adjust_address_nv.
3109         (restore_stack_nonlocal): Likewise.
3110         (nonlocal_goto): Likewise.
3112 2015-07-16  Tom de Vries  <tom@codesourcery.com>
3114         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3115         not have a corresponding loop header phi.
3117 2015-07-16  Tom de Vries  <tom@codesourcery.com>
3119         * tree-parloops.c (create_loads_for_reductions): Handle case that
3120         reduction is unused.
3122 2015-07-16  Richard Biener  <rguenther@suse.de>
3124         PR tree-optimization/66894
3125         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3126         about deriving NE_EXPR from truncated values.
3128 2015-07-16  Martin Liska  <mliska@suse.cz>
3130         * alloc-pool.h
3131         (object_allocator): Add new class.
3132         (pool_allocator::initialize): Use the underlying class.
3133         (pool_allocator::allocate): Likewise.
3134         (pool_allocator::remove): Likewise.
3135         (operator new): A new generic allocator.
3136         * asan.c (struct asan_mem_ref): Remove unused members.
3137         (asan_mem_ref_new): Replace new operator with
3138         object_allocator::allocate.
3139         (free_mem_ref_resources): Change deallocation.
3140         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3141         with object_allocator.
3142         * config/sh/sh.c (add_constant): Replace new operator with
3143         object_allocator::allocate.
3144         (sh_reorg): Change call to a release method.
3145         * cselib.c (struct elt_list): Remove unused members.
3146         (new_elt_list): Replace new operator with
3147         object_allocator::allocate.
3148         (new_elt_loc_list): Likewise.
3149         (new_cselib_val): Likewise.
3150         (unchain_one_elt_list): Change delete operator with remove method.
3151         (unchain_one_elt_loc_list): Likewise.
3152         (unchain_one_value): Likewise.
3153         (cselib_finish): Release newly added static allocators.
3154         * cselib.h (struct cselib_val): Remove unused members.
3155         (struct elt_loc_list): Likewise.
3156         * df-problems.c (df_chain_alloc): Replace pool_allocator with
3157         object_allocator.
3158         * df-scan.c (struct df_scan_problem_data): Likewise.
3159         (df_scan_alloc): Likewise.
3160         * df.h (struct dataflow): Likewise.
3161         * dse.c (struct read_info_type): Likewise.
3162         (struct insn_info_type): Likewise.
3163         (struct dse_bb_info_type): Likewise.
3164         (struct group_info): Likewise.
3165         (struct deferred_change): Likewise.
3166         (get_group_info): Likewise.
3167         (delete_dead_store_insn): Likewise.
3168         (free_read_records): Likewise.
3169         (replace_read): Likewise.
3170         (check_mem_read_rtx): Likewise.
3171         (scan_insn): Likewise.
3172         (dse_step1): Likewise.
3173         (dse_step7): Likewise.
3174         * et-forest.c (struct et_occ): Remove unused members.
3175         (et_new_occ): Use allocate instead of new operator.
3176         (et_new_tree): Likewise.
3177         (et_free_tree): Call release method explicitly.
3178         (et_free_tree_force): Likewise.
3179         (et_free_pools): Likewise.
3180         (et_split): Use remove instead of delete operator.
3181         * et-forest.h (struct et_node): Remove unused members.
3182         * ipa-cp.c: Change pool_allocator to object_allocator.
3183         * ipa-inline-analysis.c: Likewise.
3184         * ipa-profile.c: Likewise.
3185         * ipa-prop.c: Likewise.
3186         * ipa-prop.h: Likewise.
3187         * ira-build.c (initiate_cost_vectors): Cast return value.
3188         (ira_allocate_cost_vector): Likewise.
3189         * ira-color.c (struct update_cost_record): Remove unused members.
3190         * lra-int.h (struct lra_live_range): Likewise.
3191         (struct lra_copy): Likewise.
3192         (struct lra_insn_reg): Likewise.
3193         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3194         * lra.c (new_insn_reg): Replace new operator with allocate method.
3195         (free_insn_regs): Same for operator delete.
3196         (finish_insn_regs): Release new static allocator.
3197         (finish_insn_recog_data): Likewise.
3198         (lra_free_copies): Replace delete operator with remove method.
3199         (lra_create_copy): Replace operator new with allocate method.
3200         (invalidate_insn_data_regno_info): Same for remove method.
3201         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3202         (free_debug_insn_changes): Replace delete operator with remove method.
3203         (replace_oldest_value_reg): Replace operator new with allocate method.
3204         (pass_cprop_hardreg::execute): Release new static variable.
3205         * sched-deps.c (sched_deps_init): Change pool_allocator to
3206         object_allocator.
3207         * sel-sched-ir.c: Likewise.
3208         * sel-sched-ir.h: Likewise.
3209         * stmt.c (expand_case): Likewise.
3210         (expand_sjlj_dispatch_table): Likewise.
3211         * tree-sra.c (struct access): Remove unused members.
3212         (struct assign_link): Likewise.
3213         (sra_deinitialize): Release newly added static pools.
3214         (create_access_1):Replace operator new with allocate method.
3215         (build_accesses_from_assign): Likewise.
3216         (create_artificial_child_access): Likewise.
3217         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3218         pool_allocator to object_allocator.
3219         * tree-ssa-pre.c: Likewise.
3220         * tree-ssa-reassoc.c: Likewise.
3221         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3222         * tree-ssa-strlen.c: Likewise.
3223         * tree-ssa-structalias.c: Likewise.
3224         * var-tracking.c (onepart_pool_allocate): New function.
3225         (unshare_variable): Use the newly added function.
3226         (variable_merge_over_cur): Likewise.
3227         (variable_from_dropped): Likewise.
3228         (variable_was_changed): Likewise.
3229         (set_slot_part): Likewise.
3230         (emit_notes_for_differences_1): Likewise.
3231         (vt_finalize): Release newly added static pools.
3233 2015-07-16  Martin Jambor  <mjambor@suse.cz>
3235         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
3236         all uses.  Fix two typos in its general comment.
3237         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
3239 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
3241         * config/i386/linux-common.h (LINK_MPX): New.
3242         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3243         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3244         indicating '-z bndplt' support by linker.
3245         * configure: Regenerate.
3246         * config.in: Regenerate.
3248 2015-07-16  Richard Biener  <rguenther@suse.de>
3250         * fold-const.c (fold_widened_comparison): Remove.
3251         (fold_sign_changed_comparison): Likewise.
3252         (fold_comparison): Move widened and sign-changed comparison
3253         simplification ...
3254         * match.pd: ... to patterns here.
3255         * generic-match-head.c: Include target.h.
3256         * gimple-match-head.c: Likewise.
3258 2015-07-16  Richard Biener  <rguenther@suse.de>
3260         * tree-ssa-dom.c (dom_valueize): New function.
3261         (record_temporary_equivalences): Also record equivalences
3262         for dominating stmts that have uses of equivalences we are
3263         about to record.
3265 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
3267         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3268         add_autoinc_candidates.
3269         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3270         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3271         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3272         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3273         Call new function.
3274         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3275         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3276         Remove parameter struct iv*.  Call add_autoinc_candidates here.
3277         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3278         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3279         Call new function.
3280         (find_iv_candidates): Call new functions.
3282 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
3284         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3285         uninitialized-variable warning.
3287 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3289         PR target/65249
3290         * config/sh/sh.md (movdi): Split simple reg move to two movsi
3291         when the destination is R0.
3293 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
3295         PR target/66866
3296         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3297         * config/i386/i386.c (ix86_expand_pextr): New function.
3298         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
3299         for non-lowpart subregs.
3300         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3301         (insv<mode>): Use SWI248 mode iterator.
3302         (insv<mode>_1): Ditto.
3304 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3305             Sebastian Pop  <s.pop@samsung.com>
3307         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3308         iterator to use_stmt.
3310 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3311             Sebastian Pop <s.pop@samsung.com>
3313         * graphite-scop-detection.c (build_scops_1): Discard scops for
3314         which entry==exit.
3316 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3317             Sebastian Pop <s.pop@samsung.com>
3319         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3320         case of a return statement in scop.
3322 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3323             Sebastian Pop <s.pop@samsung.com>
3325         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3326         INTEGER_TYPE parameters.
3327         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3328         VECTOR_CST in scan_tree_for_params.
3329         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3331 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3333         * gimple-pretty-print.h: Don't include pretty-print.h.
3334         * tree-streamer.h: Don't include lto-streamer.h.
3335         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3336         * gimple-streamer-in.c: Remove redundant includes.
3337         * gimple-streamer-out.c: Likewise.
3338         * ipa-devirt.c: Likewise.
3339         * ipa-icf.c: Likewise.
3340         * ipa-inline-analysis.c: Likewise.
3341         * ipa-polymorphic-call.c: Likewise.
3342         * ipa-profile.c: Likewise.
3343         * ipa-prop.c: Likewise.
3344         * ipa-pure-const.c: Likewise.
3345         * lto-cgraph.c: Likewise.
3346         * lto-streamer-in.c: Likewise.
3347         * lto-streamer-out.c: Likewise.
3348         * lto-streamer.c: Likewise.
3349         * tree-streamer-in.c: Likewise.
3350         * tree-streamer-out.c: Likewise.
3351         * tree-streamer.c: Likewise.
3353 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3355         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3356         include input.h.
3357         * opts.c: Remove multiline #include comment.
3359 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
3361         * config/nvptx/mkoffload.c (process): Add C++ protection to
3362         emitted code.
3364 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3366         PR target/66854
3367         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3368         null before IEEE 128-bit floating point support patch.
3370 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3372         * simplify-rtx.c (simplify_ternary_operation): Add simplification
3373         for (!c) != {0,...,0} ? a : b for vector modes.
3375 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
3376             Martin Jambor  <mjambor@suse.cz>
3378         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3379         struct func_body_info* instead of struct ipa_node_params*, expecting
3380         fbi->info to be filled in.  Replace throughout.  Adjust call to
3381         ipa_load_from_parm_agg.
3382         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3383         instead of struct ipa_node_params*.  Adjust calls to other functions
3384         so that they pass either fbi or fbi->info.
3385         (set_switch_stmt_execution_predicate): Likewise.
3386         (will_be_nonconstant_predicate): Likewise.
3387         (compute_bb_predicates): Likewise.
3388         (estimate_function_body_sizes): Move asserts earlier.  Fill in
3389         struct func_body_info, replace parms_info with fbi.info.  Adjust
3390         calls to functions that now accept struct func_body_info.
3391         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3392         (struct func_body_info): Likewise.
3393         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3394         remove static.  Adjust callers.
3395         (ipa_load_from_parm_agg): Remove.
3396         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3397         (func_body_info): Likewise.
3398         (ipa_load_from_parm_agg): Adjust prototype.
3400 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3402         * gensupport.c (rtx_handle_directive): Adjust.
3403         * read-rtl.c (apply_iterators): Take vector to add rtxs to
3404         instead of expr list rtx.
3405         (add_define_attr_for_define_subst): Likewise.
3406         (add_define_subst_attr): Likewise.
3407         (read_subst_mapping): Likewise.
3408         (read_rtx): Likewise.
3409         * rtl.h (read_rtx): Adjust.
3411 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3413         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3415 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3417         PR target/58066
3418         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3419         (*tls_local_dynamic_base_64_<mode>): Ditto.
3420         (*tls_local_dynamic_base_64_largepic): Ditto.
3421         (tls_global_dynamic_64_<mode>): Update expander pattern.
3422         (tls_local_dynamic_base_64_<mode>): Ditto.
3424 2015-07-15  Richard Biener  <rguenther@suse.de>
3426         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3427         and bool_var == 1 -> bool_var simplifications ...
3428         * match.pd: ... to patterns here.  Factor out negate_expr_p
3429         cases from the A - B -> A + (-B) patterns as negate_expr_p
3430         predicate and add a -(A + B) -> (-B) - A pattern.
3432 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
3434         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3436 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
3437             Robert Suchanek  <robert.suchanek@imgtec.com>
3439         * config/mips/mips.c (mips_int_mask): New enum.
3440         (mips_shadow_set): Likewise.
3441         (int_mask): New variable.
3442         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3443         (machine_function): Add int_mask and use_shadow_register_set.
3444         (mips_attribute_table): Add attribute handlers for interrupt and
3445         use_shadow_register_set.
3446         (mips_interrupt_mask): New static function.
3447         (mips_handle_interrupt_attr): Likewise.
3448         (mips_handle_use_shadow_register_set_attr): Likewise.
3449         (mips_use_shadow_register_set): Change return type to enum
3450         mips_shadow_set.  Add argument handling for use_shadow_register_set
3451         attribute.
3452         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3453         compare with mips_shadow_set enum.
3454         (mips_compute_frame_info): Add interrupt mask and
3455         use_shadow_register_set to per-function information structure.
3456         Add a stack slot for EPC unconditionally.
3457         (mips_expand_prologue): Compare use_shadow_register_set value
3458         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
3459         masked interrupt register but in EIC mode use K0 and save Cause in K0.
3460         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
3461         copying the stack pointer from the shadow register set.
3462         * config/mips/mips.h (SR_IM0): New define.
3463         * config/mips/mips.md (mips_rdpgpr): Rename to...
3464         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
3465         * doc/extend.texi (Declaring Attributes of Functions): Document
3466         optional arguments for interrupt and use_shadow_register_set
3467         attributes.
3469 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
3471         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3472         interrupt attribute.
3473         (mips_expand_prologue): Disable the floating point unit in an ISR.
3474         * config/mips/mips.h (SR_COP1): New define.
3476 2015-07-15  Richard Biener  <rguenther@suse.de>
3478         * genmatch.c (parser::peek, parser::peek_ident): Add argument
3479         to tell how many tokens to peek ahead (default 1).
3480         (parser::eat_token, parser::eat_ident): Return token consumed.
3481         (parser::parse_result): Parse new switch statement.
3482         * match.pd: Use case statements where appropriate.
3484 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3486         PR rtl-optimization/58066
3487         * calls.c (expand_call): Precompute register parameters before stack
3488         alignment is performed.
3490 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3492         PR rtl-optimization/66838
3493         * postreload.c (reload_cse_move2add): Also process
3494         CALL_INSN_FUNCTION_USAGE when resetting information of
3495         call-clobbered registers.
3497 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3498             Cesar Philippidis  <cesar@codesourcery.com>
3499             Chung-Lin Tang  <cltang@codesourcery.com>
3501         * config/nios2/constraints.md (U, v): New constraints.
3502         * config/nios2/predicates.md (rdprs_dcache_operand): New.
3503         (ldstex_memory_operand): New.
3504         * config/nios2/sync.md: New file.
3505         * config/nios2/nios2.md (unspecv): Add new builtin function
3506         UNSPECV codes.
3507         (rdprs, flushd, flushda, wrpie, eni): New patterns.
3508         (top-level): Include sync.md.
3509         * config/nios2/nios2.c (N2_FTYPES): Add function types for
3510         new builtins.
3511         (N2_BUILTINS): Add arch field setting, add new builtins.
3512         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3513         for arch field.
3514         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3515         Also handle ldex/stex/ldsex/stsex builtins.
3516         (nios2_expand_rdprs_builtin): New function.
3517         (nios2_expand_cache_builtin): New function.
3518         (nios2_expand_wrpie_builtin): New function.
3519         (nios2_expand_eni_builtin): New function.
3520         (nios2_expand_builtin): Add arch field handling and new builtin
3521         cases.
3522         * doc/extend.texi (Altera Nios II Built-in Functions): Document
3523         new builtins.
3524         * doc/md.texi (Machine Constraints): Document U and v constraints.
3526 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3527             Cesar Philippidis  <cesar@codesourcery.com>
3528             Chung-Lin Tang  <cltang@codesourcery.com>
3530         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3531         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3532         callee_save_reg_size and uses_anonymous_args fields.
3533         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3534         (nios2_create_cfa_notes): New function.
3535         (nios2_adjust_stack): New function for adjusting stack.
3536         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3537         Use nios2_adjust_stack.
3538         (nios2_expand_epilogue): Likewise.
3539         (nios2_expand_return): New function.
3540         (nios2_can_use_return_insn): Update for CDX pop.n usage.
3541         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3542         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3543         * config/nios2/nios2.md (return): Use nios2_expand_return.
3545 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3546             Cesar Philippidis  <cesar@codesourcery.com>
3547             Chung-Lin Tang  <cltang@codesourcery.com>
3549         * config/nios2/predicates.md (pop_operation): New.
3550         (ldwm_operation, stwm_operation): New.
3551         (nios2_hard_register_operand): New.
3552         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3553         (ldstwm_operation_p): Declare.
3554         (gen_ldstwm_peep): Declare.
3555         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3556         (base_reg_adjustment_p): New.
3557         (pop_operation_p): New.
3558         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3559         (nios2_ldstwm_regset_p): New.
3560         (ldstwm_operation_p): New.
3561         (gen_ldst): New.
3562         (nios2_ldst_parallel): New.
3563         (struct ldswm_operand): Declare.
3564         (compare_ldstwm_operands): New.
3565         (can_use_cdx_ldstw): New.
3566         (gen_ldstwm_peep): New.
3567         * config/nios2/nios2-ldstwm.sml: New.
3568         * config/nios2/nios2.md: Include ldstwm.md.
3569         * config/nios2/ldstwm.md: Generated.
3571 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3572             Cesar Philippidis  <cesar@codesourcery.com>
3573             Chung-Lin Tang  <cltang@codesourcery.com>
3575         * config/nios2/nios2.h (LABEL_ALIGN): Define.
3576         (REG_ALLOC_ORDER): Define.
3577         (ADJUST_REG_ALLOC_ORDER): Define.
3578         (HONOR_REG_ALLOC_ORDER): Define.
3579         (CDX_REG_P): Define.
3580         (ANDCLEAR_INT): Define.
3581         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3582         (nios2_label_align): Declare.
3583         (nios2_cdx_narrow_form_p): Declare.
3584         (nios2_adjust_reg_alloc_order): Declare.
3585         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3586         operation.
3587         (nios2_large_unspec_reloc_p): New function, split from...
3588         (nios2_legitimate_pic_operand_p): ...here.
3589         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3590         (nios2_print_operand_punct_valid_p): New.
3591         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
3592         (split_mem_address): New.
3593         (split_alu_insn): New.
3594         (cdxreg): New.
3595         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3596         (enum nios2_add_insn_kind): New.
3597         (nios2_add_insn_names, nios2_add_insn_narrow): New.
3598         (nios2_add_insn_classify): New.
3599         (nios2_add_insn_asm): New.
3600         (nios2_cdx_narrow_form_p): New.
3601         (label_align, min_labelno, max_labelno): New.
3602         (nios2_reorg): New.
3603         (nios2_label_align): New.
3604         (nios2_adjust_reg_alloc_order): New.
3605         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3606         (TARGET_MACHINE_DEPENDENT_REORG): Define.
3607         * config/nios2/constraints.md (P): New constraint.
3608         * config/nios2/predicates.md (const_and_operand): New.
3609         (and_operand): New.
3610         (stack_memory_operand): New.
3611         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3612         (length): Update to use nios2_cdx_narrow_form_p().
3613         (type): Add new insn type values.
3614         (control, alu, st, ld, shift): Update insn reservations with
3615         new insn type values.
3616         (*high, *lo_sum): Define new insn patterns for constant generation.
3617         (movqi_internal, movhi_internal, movsi_internal): Reduce
3618         alternatives, update asm template to handle CDX variants, update
3619         type attributes.
3620         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3621         template, update type attributes.
3622         (extendhisi2, extendqi<mode>2): Likewise.
3623         (addsi3): Change to use function for asm string.
3624         (subsi3): Add CDX notation to asm template, update type attributes.
3625         (negsi3, one_cmplsi3): Likewise.
3626         (andsi3): New pattern, specialized from logical patterns.
3627         (<code>si3): Remove and case, combine alternatives, update asm
3628         template.
3629         (<shift_op>si3): Add CDX notation, update type attributes.
3630         (rotrsi3): Update type attribute.
3631         (*merge, extzv, insv): New insn patterns.
3632         (return): Change to define_expand.
3633         (simple_return): Add CDX notation, update type attributes.
3634         (indirect_jump): Add CDX notation.
3635         (jump): Update asm cases, update length attribute expression.
3636         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3637         (nios2_cbranch): Update asm cases and length attribute expression
3638         to handle CDX variants.
3639         (nios2_cmp<code>): Update asm template.
3640         (nop): Add CDX notation, update type attributes.
3641         (trap): Add CDX notation.
3642         (ctrapsi4): Update asm cases and length attribute expression to
3643         handle CDX variant.
3644         * doc/md.texi (Machine Constraints): Document P constraint.
3646 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3647             Cesar Philippidis  <cesar@codesourcery.com>
3648             Chung-Lin Tang  <cltang@codesourcery.com>
3650         * config/nios2/nios2.h (SMALL_INT12): New macro.
3651         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3652         (nios2_valid_addr_expr_p): Use it.
3653         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3654         with implicit "io" instructions on R2.
3655         * config/nios2/constraints.md (w): New constraint.
3656         * config/nios2/predicates.md (ldstio_memory_operand): New.
3657         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3658         operand predicate and constraint.
3659         (ld<bh>io_signed, st<bhw>io>): Likewise.
3660         * doc/md.texi (Machine Constraints): Document w constraint.
3662 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3663             Cesar Philippidis  <cesar@codesourcery.com>
3664             Chung-Lin Tang  <cltang@codesourcery.com>
3666         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3667         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3668         Nios II architecture level.
3669         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3670         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3671         (OPTION_DEFAULT_SPECS): Define.
3672         (ASM_SPEC): Add -march= spec strings.
3673         * config/nios2/nios2.c (nios2_option_override): Check for
3674         conflicts involving new options.
3675         * config.gcc (nios2*-*-*): Support --with-arch=.
3676         * doc/invoke.texi (Option Summary, Nios II Options): Document
3677         -march=, -mbmx, and -mcdx.
3679 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
3681         PR rtl-optimization/66626
3682         * lra-constraints.c (lra_constraints): Prevent equivalence
3683         substitution for static chain pseudo in functions with nonlocal
3684         goto.
3686 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3688         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3689         (nios2_emit_stack_limit_check): Add size parameter.  Handle
3690         -fstack-limit-symbol as well as -fstack-limit-register.
3691         (nios2_expand_prologue): Emit only a single stack limit check,
3692         even if multiple stack adjustments are required.
3693         (nios2_option_override): Diagnose unsupported combination of -fpic
3694         and -stack-limit-symbol.
3696 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
3698         * Makefile.in (top_srcdir): New.
3699         * configure.ac: Use AM_ZLIB.
3700         * configure: Regeneated.
3702 2015-07-14  Matthias Klose  <doko@ubuntu.com>
3704         PR target/66840
3705         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3707 2015-07-14  Richard Biener  <rguenther@suse.de>
3709         PR tree-optimization/66863
3710         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3711         what we record for conversion use stmt lhs inequalities.
3713 2015-07-14  Richard Biener  <rguenther@suse.de>
3715         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3716         (decision_tree::gen_gimple): Likewise.
3718 2015-07-14  Tom de Vries  <tom@codesourcery.com>
3720         * gcc.c (greater_than_spec_func): Declare forward.
3721         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3722         -ftree-parallelize-loops={0,1}.
3723         (static_spec_functions): Add greater_than_spec_func function with name
3724         "gt".
3725         (greater_than_spec_func): New function.
3727 2015-07-14  Richard Biener  <rguenther@suse.de>
3729         * tree-ssa-dom.c (record_temporary_equivalences): Merge
3730         wideing type conversion case from record_equivalences_from_incoming_edge
3731         and use record_equality to record equivalences.
3732         (record_equivalences_from_incoming_edge): Call
3733         record_temporary_equivalences.
3735 2015-07-14  Richard Biener  <rguenther@suse.de>
3737         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3738         (struct if_expr): New.
3739         (struct with_expr): Likewise.
3740         (is_a_helper): Add helpers for if_expr and with_expr.
3741         (struct simplify): Add simplify_kind enum and member.  Remove
3742         ifexpr_vec member.
3743         (simplify::simplify): Adjust.
3744         (lower_commutative): Adjust.
3745         (lower_opt_convert): Likewise.
3746         (lower_cond): Likewise.
3747         (replace_id): Handle with_expr and if_expr.
3748         (lower_for): Adjust.
3749         (dt_simplify::gen_1): New recursive worker, split out from ...
3750         (dt_simplify::gen): ... here.  Deal with if and with expansion
3751         recursively.
3752         (capture_info::capture_info): Take context argument
3753         (capture_info::walk_result): Only analyze specific result.
3754         (parser::parse_result): New function.
3755         (parser::parse_simplify): Adjust to parse ifs with then end
3756         else case.
3757         (parser::parse_if): Simplify.
3758         (parser::parse_pattern): Pass down simplify kind.
3759         * match.pd: Convert if structure to new syntax.
3761 2015-07-13  Marek Polacek  <polacek@redhat.com>
3763         * rtl.c (rtx_equal_p_cb): Fix typo.
3765 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
3767         * omega.h: Don't include config.h, don't include params.h again if
3768         omega.h has already been included.
3769         * graphite-poly.h: Include sese.h.
3770         * graphite.c: Don't include sese.h, remove needless includes and
3771         minimize includes outside #ifdef HAVE_isl block.
3772         * graphite-blocking.c: Don't include sese.h, remove needless includes,
3773         and wrap entire file in #ifdef HAVE_isl
3774         * graphite-dependences.c: Likewise.
3775         * graphite-interchange.c: Likewise.
3776         * graphite-isl-ast-to-gimple.c: Likewise.
3777         * graphite-optimize-isl.c: Likewise.
3778         * graphite-poly.c: Likewise.
3779         * graphite-scop-detection.c: Likewise.
3780         * graphite-sese-to-poly.c: Likewise.
3782 2015-07-13  Tom de Vries  <tom@codesourcery.com>
3784         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
3786 2015-07-13  Renlin Li  <renlin.li@arm.com>
3788         PR rtl/66556
3789         * simplify-rtx.c (simplify_const_relational_operation): Add
3790         side_effects_p checks.
3792 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3794         * bitmap.h: Fix double word typos.
3795         * builtins.c: Same.
3796         * calls.c: Same.
3797         * cfgloopmanip.c: Same.
3798         * cgraph.c: Same.
3799         * cgraph.h: Same.
3800         * cgraphclones.c: Same.
3801         * combine.c: Same.
3802         * config/aarch64/aarch64-protos.h: Same.
3803         * config/aarch64/aarch64.c: Same.
3804         * config/aarch64/aarch64.md: Same.
3805         * config/arm/arm.md: Same.
3806         * config/arm/arm1020e.md: Same.
3807         * config/arm/arm1026ejs.md: Same.
3808         * config/arm/arm926ejs.md: Same.
3809         * config/arm/fa526.md: Same.
3810         * config/arm/fa606te.md: Same.
3811         * config/arm/fa626te.md: Same.
3812         * config/arm/fa726te.md: Same.
3813         * config/arm/fmp626.md: Same.
3814         * config/darwin.c: Same.
3815         * config/epiphany/epiphany.c: Same.
3816         * config/frv/frv.c: Same.
3817         * config/ft32/ft32.c: Same.
3818         * config/gnu-user.h: Same.
3819         * config/h8300/constraints.md: Same.
3820         * config/i386/i386.c: Same.
3821         * config/i386/i386.md: Same.
3822         * config/iq2000/iq2000.md: Same.
3823         * config/mips/mips.c: Same.
3824         * config/mmix/mmix.md: Same.
3825         * config/moxie/moxie.c: Same.
3826         * config/nds32/nds32.md: Same.
3827         * config/pa/pa.h: Same.
3828         * config/rs6000/aix.h: Same.
3829         * config/rs6000/rs6000.h: Same.
3830         * config/sh/sh.c: Same.
3831         * config/tilegx/tilegx.md: Same.
3832         * config/tilepro/gen-mul-tables.cc: Same.
3833         * cse.c: Same.
3834         * dbxout.c: Same.
3835         * doc/invoke.texi: Same.
3836         * dse.c: Same.
3837         * dwarf2out.c: Same.
3838         * final.c: Same.
3839         * gcc.c: Same.
3840         * genmatch.c: Same.
3841         * gimplify.c: Same.
3842         * hash-table.h: Same.
3843         * internal-fn.c: Same.
3844         * ipa-cp.c: Same.
3845         * ipa-devirt.c: Same.
3846         * ipa-icf.c: Same.
3847         * ipa-icf.h: Same.
3848         * ipa-profile.c: Same.
3849         * ipa-prop.c: Same.
3850         * ipa-prop.h: Same.
3851         * ira.c: Same.
3852         * omp-low.c: Same.
3853         * reg-stack.c: Same.
3854         * regcprop.c: Same.
3855         * reorg.c: Same.
3856         * rtl.h: Same.
3857         * sbitmap.h: Same.
3858         * tree-eh.c: Same.
3859         * tree-inline.c: Same.
3860         * tree-sra.c: Same.
3861         * tree-ssa-dom.c: Same.
3862         * tree-ssa-loop-ivopts.c: Same.
3863         * tree-ssa-structalias.c: Same.
3864         * tree-ssa-tail-merge.c: Same.
3865         * tree-ssa-ter.c: Same.
3866         * tree-ssa-threadupdate.c: Same.
3867         * tree-ssa-uninit.c: Same.
3868         * tree-ssanames.c: Same.
3869         * tree-vect-loop-manip.c: Same.
3870         * tree-vrp.c: Same.
3871         * tree.c: Same.
3872         * valtrack.c: Same.
3873         * vec.h: Same.
3875 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3877         PR middle-end/66726
3878         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
3879         tree_ssa_phiopt_worker): Call it.
3881 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3883         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
3884         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
3885         REG_EQUAL note.
3887 2015-07-11  Marek Polacek  <polacek@redhat.com>
3889         PR middle-end/66353
3890         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
3891         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
3892         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
3893         rather than bb_has_abnormal_call_pred.
3894         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
3895         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
3896         rather than bb_has_abnormal_call_pred.
3898 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
3900         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3901         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
3902         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3903         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
3904         v850_legitimate_address_p): New functions.
3905         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3907 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3909         PR target/66819
3910         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
3911         indirect sibcall with register arguments if register available
3912         for argument passing.
3913         (init_cumulative_args): Set cfun->machine->arg_reg_available
3914         to (cum->nregs > 0) or to true if function has a variable
3915         argument list.
3916         (function_arg_advance_32): Set cfun->machine->arg_reg_available
3917         to false if cum->nregs <= 0.
3918         * config/i386/i386.h (machine_function): Add arg_reg_available.
3920 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
3922         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
3923         and gen_higpart instead of gen_rtx_SUBREG.
3924         * config/i386/i386.md
3925         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
3926         (read-modify peephole2): Use gen_lowpart instead of
3927         gen_rtx_SUBREG for operand 5.
3929 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3931         * config/tilepro/gen-mul-tables.cc (main): Change include list for
3932         generated files.
3933         * config/tilepro/mul-tables.c: Regenerate.
3934         * config/tilegx/mul-tables.c: Regenerate.
3936 2015-07-10  Richard Biener  <rguenther@suse.de>
3938         * fold-const.c (distribute_bit_expr): Remove.
3939         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
3940         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
3941         to A & (B | C) and simplifying A << C1 << C2 to ...
3942         * match.pd: ... patterns here.
3944 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
3946         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3947         Mark mem as READONLY and NOTRAP for PIC symbol.
3949 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3951         * gimple-predict.h: New file.
3952         (gimple_predict_predictor, gimple_predict_set_predictor,
3953         gimple_predict_outcome, gimple_predict_set_outcome,
3954         gimple_build_predict): Relocate here.
3955         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
3956         gimple_predict_outcome, gimple_predict_set_outcome): Move to
3957         gimple-predict.h.
3958         * gimple.c (gimple_build_predict): Move to gimple-predict.h
3959         * basic-block.h: Don't include cfghooks.h.
3960         * backend.h: Don't include predict.h.
3961         * cfghooks.h: Include predict.h.
3962         * gimple-pretty-print.c: Include gimple-predict.h.
3963         * gimplify.c: Likwise.
3964         * predict.c: Adjust includes.
3965         * tree-inline.c: Likewise.
3966         * asan.c: Likewise.
3967         * auto-inc-dec.c: Likewise.
3968         * auto-profile.c: Likewise.
3969         * bb-reorder.c: Likewise.
3970         * builtins.c: Likewise.
3971         * caller-save.c: Likewise.
3972         * calls.c: Likewise.
3973         * cfganal.c: Likewise.
3974         * cfgbuild.c: Likewise.
3975         * cfg.c: Likewise.
3976         * cfgcleanup.c: Likewise.
3977         * cfgexpand.c: Likewise.
3978         * cfghooks.c: Likewise.
3979         * cfgloopanal.c: Likewise.
3980         * cfgloop.c: Likewise.
3981         * cfgloopmanip.c: Likewise.
3982         * cfgrtl.c: Likewise.
3983         * cgraph.c: Likewise.
3984         * cgraphunit.c: Likewise.
3985         * combine.c: Likewise.
3986         * cprop.c: Likewise.
3987         * cse.c: Likewise.
3988         * dce.c: Likewise.
3989         * dojump.c: Likewise.
3990         * dse.c: Likewise.
3991         * except.c: Likewise.
3992         * expmed.c: Likewise.
3993         * expr.c: Likewise.
3994         * final.c: Likewise.
3995         * fold-const.c: Likewise.
3996         * function.c: Likewise.
3997         * fwprop.c: Likewise.
3998         * gcc-plugin.h: Likewise.
3999         * gcse.c: Likewise.
4000         * genattrtab.c: Likewise.
4001         * genemit.c: Likewise.
4002         * gengtype.c: Likewise.
4003         * genopinit.c: Likewise.
4004         * genoutput.c: Likewise.
4005         * genpreds.c: Likewise.
4006         * genrecog.c: Likewise.
4007         * gimple-fold.c: Likewise.
4008         * gimple-iterator.c: Likewise.
4009         * gimple-ssa-isolate-paths.c: Likewise.
4010         * gimple-ssa-strength-reduction.c: Likewise.
4011         * graph.c: Likewise.
4012         * graphite-blocking.c: Likewise.
4013         * graphite.c: Likewise.
4014         * graphite-dependences.c: Likewise.
4015         * graphite-interchange.c: Likewise.
4016         * graphite-isl-ast-to-gimple.c: Likewise.
4017         * graphite-optimize-isl.c: Likewise.
4018         * graphite-poly.c: Likewise.
4019         * graphite-scop-detection.c: Likewise.
4020         * graphite-sese-to-poly.c: Likewise.
4021         * haifa-sched.c: Likewise.
4022         * ifcvt.c: Likewise.
4023         * internal-fn.c: Likewise.
4024         * ipa-cp.c: Likewise.
4025         * ipa-profile.c: Likewise.
4026         * ipa-split.c: Likewise.
4027         * ipa-utils.c: Likewise.
4028         * ira-build.c: Likewise.
4029         * ira-color.c: Likewise.
4030         * ira-conflicts.c: Likewise.
4031         * ira-costs.c: Likewise.
4032         * ira-emit.c: Likewise.
4033         * ira-lives.c: Likewise.
4034         * jump.c: Likewise.
4035         * loop-doloop.c: Likewise.
4036         * loop-init.c: Likewise.
4037         * loop-invariant.c: Likewise.
4038         * loop-unroll.c: Likewise.
4039         * lower-subreg.c: Likewise.
4040         * lra-assigns.c: Likewise.
4041         * lra.c: Likewise.
4042         * lra-coalesce.c: Likewise.
4043         * lra-constraints.c: Likewise.
4044         * lra-lives.c: Likewise.
4045         * lto-cgraph.c: Likewise.
4046         * lto-streamer-in.c: Likewise.
4047         * mode-switching.c: Likewise.
4048         * modulo-sched.c: Likewise.
4049         * omp-low.c: Likewise.
4050         * optabs.c: Likewise.
4051         * passes.c: Likewise.
4052         * postreload.c: Likewise.
4053         * postreload-gcse.c: Likewise.
4054         * profile.c: Likewise.
4055         * recog.c: Likewise.
4056         * regstat.c: Likewise.
4057         * reload1.c: Likewise.
4058         * reorg.c: Likewise.
4059         * rtlanal.c: Likewise.
4060         * sched-ebb.c: Likewise.
4061         * sel-sched-ir.c: Likewise.
4062         * sese.c: Likewise.
4063         * shrink-wrap.c: Likewise.
4064         * simplify-rtx.c: Likewise.
4065         * stmt.c: Likewise.
4066         * store-motion.c: Likewise.
4067         * tracer.c: Likewise.
4068         * trans-mem.c: Likewise.
4069         * tree-call-cdce.c: Likewise.
4070         * tree-cfg.c: Likewise.
4071         * tree-cfgcleanup.c: Likewise.
4072         * tree-chkp.c: Likewise.
4073         * tree-complex.c: Likewise.
4074         * tree-eh.c: Likewise.
4075         * tree-if-conv.c: Likewise.
4076         * tree-loop-distribution.c: Likewise.
4077         * tree-outof-ssa.c: Likewise.
4078         * tree-parloops.c: Likewise.
4079         * tree-predcom.c: Likewise.
4080         * tree-pretty-print.c: Likewise.
4081         * tree-profile.c: Likewise.
4082         * tree-sra.c: Likewise.
4083         * tree-ssa.c: Likewise.
4084         * tree-ssa-coalesce.c: Likewise.
4085         * tree-ssa-dce.c: Likewise.
4086         * tree-ssa-dom.c: Likewise.
4087         * tree-ssa-forwprop.c: Likewise.
4088         * tree-ssa-ifcombine.c: Likewise.
4089         * tree-ssa-loop-ch.c: Likewise.
4090         * tree-ssa-loop-im.c: Likewise.
4091         * tree-ssa-loop-ivcanon.c: Likewise.
4092         * tree-ssa-loop-ivopts.c: Likewise.
4093         * tree-ssa-loop-manip.c: Likewise.
4094         * tree-ssa-loop-prefetch.c: Likewise.
4095         * tree-ssa-loop-unswitch.c: Likewise.
4096         * tree-ssa-math-opts.c: Likewise.
4097         * tree-ssa-phiopt.c: Likewise.
4098         * tree-ssa-pre.c: Likewise.
4099         * tree-ssa-reassoc.c: Likewise.
4100         * tree-ssa-sink.c: Likewise.
4101         * tree-ssa-tail-merge.c: Likewise.
4102         * tree-ssa-threadedge.c: Likewise.
4103         * tree-ssa-threadupdate.c: Likewise.
4104         * tree-switch-conversion.c: Likewise.
4105         * tree-tailcall.c: Likewise.
4106         * tree-vect-data-refs.c: Likewise.
4107         * tree-vect-loop.c: Likewise.
4108         * tree-vect-loop-manip.c: Likewise.
4109         * tree-vectorizer.c: Likewise.
4110         * tree-vrp.c: Likewise.
4111         * ubsan.c: Likewise.
4112         * value-prof.c: Likewise.
4113         * varasm.c: Likewise.
4114         * var-tracking.c: Likewise.
4115         * config/aarch64/aarch64-builtins.c: Likewise.
4116         * config/aarch64/aarch64.c: Likewise.
4117         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4118         * config/alpha/alpha.c: Likewise.
4119         * config/arc/arc.c: Likewise.
4120         * config/arm/arm.c: Likewise.
4121         * config/avr/avr.c: Likewise.
4122         * config/bfin/bfin.c: Likewise.
4123         * config/c6x/c6x.c: Likewise.
4124         * config/cr16/cr16.c: Likewise.
4125         * config/cris/cris.c: Likewise.
4126         * config/darwin.c: Likewise.
4127         * config/darwin-c.c: Likewise.
4128         * config/epiphany/epiphany.c: Likewise.
4129         * config/epiphany/mode-switch-use.c: Likewise.
4130         * config/epiphany/resolve-sw-modes.c: Likewise.
4131         * config/fr30/fr30.c: Likewise.
4132         * config/frv/frv.c: Likewise.
4133         * config/ft32/ft32.c: Likewise.
4134         * config/h8300/h8300.c: Likewise.
4135         * config/i386/i386.c: Likewise.
4136         * config/i386/winnt.c: Likewise.
4137         * config/ia64/ia64.c: Likewise.
4138         * config/iq2000/iq2000.c: Likewise.
4139         * config/lm32/lm32.c: Likewise.
4140         * config/m32c/m32c.c: Likewise.
4141         * config/m32r/m32r.c: Likewise.
4142         * config/m68k/m68k.c: Likewise.
4143         * config/mcore/mcore.c: Likewise.
4144         * config/mep/mep.c: Likewise.
4145         * config/microblaze/microblaze.c: Likewise.
4146         * config/mips/mips.c: Likewise.
4147         * config/mmix/mmix.c: Likewise.
4148         * config/mn10300/mn10300.c: Likewise.
4149         * config/moxie/moxie.c: Likewise.
4150         * config/msp430/msp430.c: Likewise.
4151         * config/nds32/nds32.c: Likewise.
4152         * config/nds32/nds32-cost.c: Likewise.
4153         * config/nds32/nds32-fp-as-gp.c: Likewise.
4154         * config/nds32/nds32-intrinsic.c: Likewise.
4155         * config/nds32/nds32-isr.c: Likewise.
4156         * config/nds32/nds32-md-auxiliary.c: Likewise.
4157         * config/nds32/nds32-memory-manipulation.c: Likewise.
4158         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4159         * config/nds32/nds32-predicates.c: Likewise.
4160         * config/nios2/nios2.c: Likewise.
4161         * config/nvptx/nvptx.c: Likewise.
4162         * config/pa/pa.c: Likewise.
4163         * config/pdp11/pdp11.c: Likewise.
4164         * config/rl78/rl78.c: Likewise.
4165         * config/rs6000/rs6000.c: Likewise.
4166         * config/rx/rx.c: Likewise.
4167         * config/s390/s390.c: Likewise.
4168         * config/sh/sh.c: Likewise.
4169         * config/sh/sh-mem.cc: Likewise.
4170         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4171         * config/sh/sh_treg_combine.cc: Likewise.
4172         * config/sparc/sparc.c: Likewise.
4173         * config/spu/spu.c: Likewise.
4174         * config/stormy16/stormy16.c: Likewise.
4175         * config/tilegx/tilegx.c: Likewise.
4176         * config/tilepro/tilepro.c: Likewise.
4177         * config/v850/v850.c: Likewise.
4178         * config/vax/vax.c: Likewise.
4179         * config/visium/visium.c: Likewise.
4180         * config/xtensa/xtensa.c: Likewise.
4182 2015-07-10  Richard Biener  <rguenther@suse.de>
4184         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4185         (decision_tree::gen_gimple): Likewise.
4186         (decision_tree::gen_generic): Likewise.
4188 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
4190         PR target/66813
4191         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4192         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4194 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
4196         PR middle-end/66820
4197         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4198         or ORT_TASK contexts.
4199         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4200         is non-zero.
4202 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4204         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4205         above function.
4207 2015-07-10  Tom de Vries  <tom@codesourcery.com>
4209         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4210         insert nit + 1 bound.
4212 2015-07-10  Richard Biener  <rguenther@suse.de>
4214         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4215         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4216         (if_convertible_loop_p_1): For this always compute bb predicates.
4217         (if_convertible_loop_p): And free them.
4219 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
4221         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4222         in dump message.
4224 2015-07-10  Richard Biener  <rguenther@suse.de>
4226         PR tree-optimization/66823
4227         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4228         inverted predicate.
4230 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
4232         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4233         to handle mips[32|64]r3 and mips[32|64]r5.
4235 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
4237         PR middle-end/66633
4238         * tree-nested.c (get_static_chain): Or in a flag into
4239         info->static_chain_added.
4240         (get_frame_field, get_nonlocal_debug_decl): Likewise.
4241         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4242         2015-07-01 changes.
4243         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4244         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4245         add it to clauses.
4247         PR tree-optimization/66718
4248         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4249         field.
4250         (vect_simd_lane_linear): New function.
4251         (vectorizable_simd_clone_call): Support using linear arguments for
4252         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4254 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4256         PR target/66821
4257         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4259 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4261         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4262         Use machine mode, not enum machine_mode in the prototype.
4264         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4265         classify 128-bit floating point support.
4266         (FLOAT128_IBM_P): Likewise.
4267         (FLOAT128_VECTOR_P): Likewise.
4268         (FLOAT128_2REG_P): Likewise.
4269         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4270         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4271         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4272         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4274         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4275         tests against TFmode/TDmode, since those modes do not use VSX
4276         addresses.
4277         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4278         support.
4279         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4280         tests against TFmode, etc.
4281         (invalid_e500_subreg): Add tests against IFmode/KFmode.
4282         (reg_offset_addressing_ok_p): Likewise.
4283         (rs6000_legitimate_offset_address_p): Likewise.
4284         (rs6000_legitimize_address): Likewise.
4285         (rs6000_legitimize_reload_address): Likewise.
4286         (rs6000_legitimate_address_p): Clean up tests against TFmode and
4287         TDmode to use the new helper macros, which will include IFmode and
4288         KFmode.
4289         (rs6000_emit_move): Likewise.
4290         (rs6000_darwin64_record_arg_recurse): Likewise.
4291         (print_operand): Likewise.
4292         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4293         that uses a single vector register as a vector and not as a
4294         floating point register in terms of the calling sequence.
4295         (rs6000_discover_homogeneous_aggregate): Likewise.
4296         (rs6000_return_in_memory): Likewise.
4297         (init_cumulative_args): Likewise.
4298         (rs6000_function_arg_boundary): Likewise.
4299         (rs6000_function_arg_advance_1): Likewise.
4300         (rs6000_function_arg): Likewise.
4301         (rs6000_pass_by_reference): Likewise.
4302         (rs6000_gimplify_va_arg): Likewise.
4303         (rs6000_secondary_reload_memory): Use machine_mode not enum
4304         machine mode.
4305         (rs6000_split_multireg_move): Use new helper macros.
4306         (spe_func_has_64bit_regs_p): Likewise.
4307         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4308         (output_toc): Use new helper macros.
4309         (rs6000_register_move_cost): Likewise.
4310         (rs6000_function_value): Add IEEE 128-bit floating point calling
4311         sequence support.
4312         (rs6000_libcall_value): Likewise.
4313         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4314         floating point support.
4315         (rs6000_vector_mode_supported_p): Likewise.
4317 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
4319         PR rtl-optimization/66782
4320         * lra-int.h (struct lra_insn_recog_data): Add comment about
4321         clobbered hard regs for arg_hard_regs.
4322         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4323         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4324         Add condition for processing used hard regs.
4325         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4326         Process clobbered hard regs.
4328 2015-07-09  Michael Matz  <matz@suse.de>
4330         * genmatch.c (fprintf_indent): New function.
4331         (operand::gen_transform): Add indent parameter.
4332         (expr::gen_transform, c_expr::gen_transform,
4333         capture::gen_transform): Ditto and use fprintf_indent.
4334         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4335         (dt_operand::gen, dt_operand::gen_predicate,
4336         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4337         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4338         (decision_tree::gen_gimple): Adjust calls and indent generated
4339         code.
4340         (decision_tree::gen_generic): Ditto.
4341         (write_predicate): Ditto.
4343 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4345         PR target/66814
4346         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4347         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4348         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4349         {GENERAL,SSE,MMX}_REG_P where appropriate.
4351 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4353         * lto-streamer.h: Don't include target.h and alloc-pool.h.
4354         * builtins.c: Adjust includes.
4355         * gimple.c: Likewise.
4356         * ipa-icf.c: Likewise.
4357         * lto-opts.c: Likewise.
4358         * ipa-reference.c: Likewise.
4359         * lto-section-out.c: Likewise.
4360         * lto-streamer-in.c: Likewise.
4361         * lto-streamer-out.c: Likewise.
4362         * opts-global.c: Likewise.
4363         * symtab.c: Likewise.
4364         * tree-chkp.c: Likewise.
4365         * tree-ssa-live.c: Likewise.
4366         * tree-streamer-in.c: Likewise.
4367         * tree-streamer-out.c: Likewise.
4368         * config/darwin.c: Likewise.
4369         * config/i386/winnt.c: Likewise.
4371 2015-07-09  Richard Biener  <rguenther@suse.de>
4373         * genmatch.c (struct expr): Add force_single_use flag.
4374         (expr::expr): Add copy constructor.
4375         (capture_info::walk_match): Gather force_single_use captures.
4376         (expr::gen_transform): Use possibly NULLified sequence.
4377         (dt_simplify::gen): Apply single-use restrictions by NULLifying
4378         seq if any constrained expr is not single-use.
4379         (parser::parse_expr): Refactor to allow multiple flags.  Handle
4380         's' flag to force an expression have a single-use if the pattern
4381         simplifies to more than one statement.
4382         * match.pd: Convert most single_use conditionals to :s flags.
4384 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4386         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4387         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4388         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4390 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4392         * flags.h: Don't include flag-types.h or options.h.
4393         * opts-common.c: Adjust includes.
4394         * opts-global.c: Likewise.
4395         * common/config/epiphany/epiphany-common.c: Likewise.
4397 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4399         PR target/66818
4400         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4401         for IA MCU.
4403 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4405         PR target/66817
4406         * config/i386/i386.c (ix86_return_in_memory): Return true
4407         if int_size_in_bytes returns negative for IA MCU.
4409 2015-07-09  Marek Polacek  <polacek@redhat.com>
4411         PR tree-optimization/66718
4412         * Makefile.in (OBJS): Add gimple-laddress.o.
4413         * passes.def: Schedule pass_laddress.
4414         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4415         * tree-pass.h (make_pass_laddress): Declare.
4416         * gimple-laddress.c: New file.
4418 2015-07-09  Richard Biener  <rguenther@suse.de>
4420         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4422 2015-07-09  Richard Biener  <rguenther@suse.de>
4424         PR tree-optimization/66807
4425         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4427 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
4429         * function.c (stack_protect_epilogue): Use if rather than switch for
4430         check targetm.have_stack_protect_test.
4432 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4434         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4435         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4436         * config/arc/arc.h: Likewise.
4437         * config/arm/arm.h: Likewise.
4438         * config/bfin/bfin.h: Likewise.
4439         * config/epiphany/epiphany.h: Likewise.
4440         * config/frv/frv.h: Likewise.
4441         * config/ia64/ia64.h: Likewise.
4442         * config/iq2000/iq2000.h: Likewise.
4443         * config/lm32/lm32.h: Likewise.
4444         * config/m32r/m32r.h: Likewise.
4445         * config/mcore/mcore.h: Likewise.
4446         * config/mep/mep.h: Likewise.
4447         * config/microblaze/microblaze.h: Likewise.
4448         * config/mips/mips.h: Likewise.
4449         * config/mmix/mmix.h: Likewise.
4450         * config/mn10300/mn10300.h: Likewise.
4451         * config/nds32/nds32.h: Likewise.
4452         * config/nios2/nios2.h: Likewise.
4453         * config/pa/pa.h: Likewise.
4454         * config/rl78/rl78.h: Likewise.
4455         * config/sh/sh.h: Likewise.
4456         * config/sparc/sparc.h: Likewise.
4457         * config/stormy16/stormy16.h: Likewise.
4458         * config/tilegx/tilegx.h: Likewise.
4459         * config/tilepro/tilepro.h: Likewise.
4460         * config/v850/v850.h: Likewise.
4461         * config/xtensa/xtensa.h: Likewise.
4462         * doc/tm.texi: Regenerate.
4463         * doc/tm.texi.in: Adjust.
4464         * combine.c (simplify_set): Likewise.
4465         (simplify_comparison): Likewise.
4466         * expr.c (store_constructor): Likewise.
4467         * internal-fn.c (expand_arith_overflow): Likewise.
4468         * reload.c (push_reload): Likewise.
4469         (find_reloads): Likewise.
4470         (find_reloads_subreg_address): Likewise.
4471         * reload1.c (eliminate_regs_1): Likewise.
4472         * rtlanal.c (nonzero_bits1): Likewise.
4473         (num_sign_bit_copies1): Likewise.
4474         * simplify-rtx.c (simplify_truncation): Likewise.
4476 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4478         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4479         of AUTO_INC_DEC with the preprocessor.
4480         * combine.c (combine_instructions): Likewise.
4481         (can_combine_p): Likewise.
4482         (try_combine): Likewise.
4483         * emit-rtl.c (try_split): Likewise.
4484         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4485         * lower-subreg.c (resolve_simple_move): Likewise.
4486         * lra.c (update_inc_notes): Likewise.
4487         * recog.c (asm_operand_ok): Likewise.
4488         (constrain_operands): Likewise.
4489         * regrename.c (scan_rtx_address): Likewise.
4490         * reload.c (update_auto_inc_notes): Likewise.
4491         (reg_inc_found_and_valid_p): Likewise.
4492         * reload1.c (reload): Likewise.
4493         (emit_input_reload_insns): Likewise.
4494         (delete_output_reload): Likewise.
4495         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4496         * valtrack.c (cleanup_auto_inc_dec): Likewise.
4498 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4500         * rtl.h: Always define AUTO_INC_DEC.
4501         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4502         * combine.c (combine_instructions): Likewise.
4503         (can_combine_p): Likewise.
4504         (try_combine): Likewise.
4505         * emit-rtl.c (try_split): Likewise.
4506         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4507         * lower-subreg.c (resolve_simple_move): Likewise.
4508         * lra.c (update_inc_notes): Likewise.
4509         * recog.c (asm_operand_ok): Likewise.
4510         (constrain_operands): Likewise.
4511         * regrename.c (scan_rtx_address): Likewise.
4512         * reload.c (update_auto_inc_notes): Likewise.
4513         (find_equiv_reg): Likewise.
4514         * reload1.c (reload): Likewise.
4515         (reload_as_needed): Likewise.
4516         (choose_reload_regs): Likewise.
4517         (emit_input_reload_insns): Likewise.
4518         (delete_output_reload): Likewise.
4519         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4520         * valtrack.c (cleanup_auto_inc_dec): Likewise.
4522 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4524         * combine.c (can_combine_def_p): Don't check the value of
4525         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4526         (combinable_i3pat): Likewise.
4527         (mark_used_regs_combine): Likewise.
4528         * regrename.c (rename_chains): Likewise.
4529         * reload.c (find_reloads_address): Likewise.
4530         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4532 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4534         * combine.c (update_rsp_from_reg_equal): Don't check if
4535         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4536         (reg_nonzero_bits_for_combine): Likewise.
4537         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4538         1.
4539         * config/frv/frv.h: Likewise.
4540         * config/lm32/lm32.h: Likewise.
4541         * config/mep/mep.h: Likewise.
4542         * config/mips/mips.h: Likewise.
4543         * config/rs6000/rs6000.h: Likewise.
4544         * config/sh/sh.h: Likewise.
4545         * config/tilegx/tilegx.h (enum reg_class): Likewise.
4546         * config/tilepro/tilepro.h: Likewise.
4547         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4548         * doc/tm.texi: Regenerate.
4549         * doc/tm.texi.in: Adjust.
4550         * rtlanal.c (nonzero_bits1): Likewise.
4552 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4554         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4555         with the preprocessor.
4556         (combine_instructions): Likewise.
4557         (try_combine): Likewise.
4558         (subst): Likewise.
4559         (distribute_notes): Likewise.
4561 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4563         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4564         defined.
4565         (simplify_set): Likewise.
4566         * cse.c (cse_insn): Likewise.
4567         * fold-const.c (fold_single_bit_test): Likewise.
4568         (fold_unary_loc): Likewise.
4569         * postreload.c (reload_cse_simplify_set): Likewise.
4570         (reload_cse_simplify_operands): Likewise.
4572 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
4574         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4575         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4577 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
4579         PR target/66746
4580         * config/i386/x86intrin.h: Include <adxintrin.h> even if
4581         __iamcu__ is defined.
4583 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4585         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4587 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
4589         PR target/66523
4590         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4591         names from preservation.
4593 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
4595         PR target/66806
4596         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4597         change for IAMCU.
4598         (function_arg_advance_32): Don't pass vectors in registers for
4599         IAMCU.
4600         (function_arg_32): Likewise.
4601         (ix86_return_in_memory): Don't return vectors in registers for
4602         IAMCU.
4604 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4606         PR middle-end/66334
4607         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4608         hard regno live at the start of BB with incoming abnormal edges.
4609         * lra-lives.c (process_bb_lives): Ditto.
4611 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
4613         PR libgomp/65099
4614         * config/nvptx/mkoffload.c (main): Create an offload image only in
4615         64-bit configurations.
4617 2015-07-08  Martin Liska  <mliska@suse.cz>
4619         PR bootstrap/66744
4620         * tree-sra.c (create_access_1): Call ctor without brackets.
4621         (create_artificial_child_access): Likewise.
4623 2015-07-08  Richard Biener  <rguenther@suse.de>
4625         PR tree-optimization/66793
4626         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4627         Properly split the block after stmts ending it.
4629 2015-07-08  Richard Biener  <rguenther@suse.de>
4631         PR tree-optimization/66794
4632         * passes.c (execute_function_todo): Assert that post-dominators
4633         are not computed.
4634         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4635         Free post-dominators.
4637 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4639         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4640         with early exit.
4642 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4644         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4645         more than or equal 8 and less than 32 when optimizing for size.
4647 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4649         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4650         COSTS_N_INSNS (1) and increment it appropriately throughout the
4651         function.
4653 2015-07-08  Richard Biener  <rguenther@suse.de>
4655         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4657 2015-07-08  Alan Modra  <amodra@gmail.com>
4659         * target.def (rtx_costs): Remove "code" param, add "mode".
4660         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4661         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
4662         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4663         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
4664         call.  Track mode when given in rtx.
4665         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
4666         (default_address_cost): Pass Pmode to rtx_cost.
4667         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4668         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4669         with NULL set.
4670         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
4671         (notreg_cost): Add mode param.  Use it.
4672         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
4673         mode param and pass to set_src_cost.  Update all calls.
4674         (hash_scan_set): Formatting.
4675         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4676         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4677         * hooks.h: Ditto.
4678         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4679         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4680         emit_store_flag): Update set_src_cost and rtx_cost calls.
4681         * auto-inc-dec.c (attempt_change): Likewise.
4682         * calls.c (precompute_register_parameters): Likewise.
4683         * combine.c (expand_compound_operation, make_extraction,
4684         force_to_mode, distribute_and_simplify_rtx): Likewise.
4685         * dojump.c (prefer_and_bit_test): Likewise.
4686         * dse.c (find_shift_sequence): Likewise.
4687         * expr.c (compress_float_constant): Likewise.
4688         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4689         * ifcvt.c (noce_try_sign_mask): Likewise.
4690         * loop-doloop.c (doloop_optimize): Likewise.
4691         * loop-invariant.c (create_new_invariant): Likewise.
4692         * lower-subreg.c (shift_cost, compute_costs): Likewise.
4693         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4694         lshift_cheap_p): Likewise.
4695         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4696         try_replace_in_use, reload_cse_move2add): Likewise.
4697         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4698         Likewise.
4699         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4700         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4701         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4702         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4703         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4704         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
4705         to rtx_cost calls.
4706         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4707         * config/arc/arc.c (arc_rtx_costs): Likewise.
4708         * config/arm/arm.c (arm_rtx_costs): Likewise.
4709         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4710         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4711         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4712         * config/cris/cris.c (cris_rtx_costs): Likewise.
4713         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4714         * config/frv/frv.c (frv_rtx_costs): Likewise.
4715         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4716         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4717         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4718         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4719         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4720         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4721         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4722         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4723         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4724         * config/mep/mep.c (mep_rtx_cost): Likewise.
4725         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4726         * config/mips/mips.c (mips_rtx_costs): Likewise.
4727         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4728         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4729         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4730         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4731         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4732         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4733         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4734         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4735         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4736         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4737         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4738         * config/s390/s390.c (s390_rtx_costs): Likewise.
4739         * config/sh/sh.c (sh_rtx_costs): Likewise.
4740         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4741         * config/spu/spu.c (spu_rtx_costs): Likewise.
4742         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4743         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4744         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4745         * config/v850/v850.c (v850_rtx_costs): Likewise.
4746         * config/vax/vax.c (vax_rtx_costs): Likewise.
4747         * config/visium/visium.c (visium_rtx_costs): Likewise.
4748         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4749         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4750         "code" param, and pass as outer_code to first rtx_cost call.  Pass
4751         mode to rtx_cost calls.
4752         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4753         calls.
4754         (aarch64_rtx_costs_wrapper): Update.
4755         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4756         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4757         rtx_cost calls.
4758         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4759         and rtx_cost calls.
4760         (avr_operand_rtx_cost): Similarly.
4761         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4762         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4763         * config/mips/mips.c (mips_stack_address_p): Comment typo.
4764         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4765         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4766         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
4767         rtx_cost.
4768         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
4769         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
4770         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
4771         * doc/tm.texi: Regenerate.
4773 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4775         * tree-core.h: Include symtab.h.
4776         * rtl.h: Include hard-reg-set.h but not flags.h.
4777         (HARD_CONST): Remove condition compilation involving HARD_CONST since
4778         hard-reg-set.h is always included.
4779         * regs.h: Don't include hard-reg-set.h or rtl.h.
4780         * cfg.h: Include dominance.h.
4781         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
4782         * backend.h: New.  Aggregate commonly used backend header files.
4783         * gimple-ssa.h: Don't include tree-hasher.h.
4784         * ssa.h: New.  Aggregate commonly used SSA header files.
4785         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
4786         * sel-sched-ir.h: Flatten includes.
4787         * lra-int.h: Flatten completely.
4788         * sel-sched-dump.h: Flatten includes.
4789         * ira-int.h: Flatten includes.
4790         * gimple-streamer.h: Remove all includes.
4791         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
4792         * resource.h: Flatten hard-reg-set.h and df.h.
4793         * sched-int.h: Flatten insn-arrt.h and df.h.
4794         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
4795         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
4796         * genattrtab.c (write_header): Adjust generated includes.
4797         * genautomata.c (main): Likewise.
4798         * genconditions.c (write-header): Likewise.
4799         * genemit.c (main): Likewise.
4800         * gengtype.c (open_base_files): Likewise.
4801         * genopinit.c (main): Likewise.
4802         * genoutput.c (output_prologue): Likewise.
4803         * genpeep.c (main): Likewise.
4804         * genpreds.c (write_insn_preds_c): Likewise.
4805         * genrecog.c (write_header): Likewise.
4806         * alias.c: Adjust includes.
4807         * asan.c: Likewise.
4808         * attribs.c: Likewise.
4809         * auto-inc-dec.c: Likewise.
4810         * auto-profile.c: Likewise.
4811         * bb-reorder.c: Likewise.
4812         * bt-load.c: Likewise.
4813         * builtins.c: Likewise.
4814         * caller-save.c: Likewise.
4815         * calls.c: Likewise.
4816         * ccmp.c: Likewise.
4817         * cfg.c: Likewise.
4818         * cfganal.c: Likewise.
4819         * cfgbuild.c: Likewise.
4820         * cfgcleanup.c: Likewise.
4821         * cfgexpand.c: Likewise.
4822         * cfghooks.c: Likewise.
4823         * cfgloop.c: Likewise.
4824         * cfgloopanal.c: Likewise.
4825         * cfgloopmanip.c: Likewise.
4826         * cfgrtl.c: Likewise.
4827         * cgraph.c: Likewise.
4828         * cgraphbuild.c: Likewise.
4829         * cgraphclones.c: Likewise.
4830         * cgraphunit.c: Likewise.
4831         * cilk-common.c: Likewise.
4832         * combine-stack-adj.c: Likewise.
4833         * combine.c: Likewise.
4834         * compare-elim.c: Likewise.
4835         * convert.c: Likewise.
4836         * coverage.c: Likewise.
4837         * cppbuiltin.c: Likewise.
4838         * cprop.c: Likewise.
4839         * cse.c: Likewise.
4840         * cselib.c: Likewise.
4841         * data-streamer-in.c: Likewise.
4842         * data-streamer-out.c: Likewise.
4843         * data-streamer.c: Likewise.
4844         * dbxout.c: Likewise.
4845         * dce.c: Likewise.
4846         * ddg.c: Likewise.
4847         * debug.c: Likewise.
4848         * df-core.c: Likewise.
4849         * df-problems.c: Likewise.
4850         * df-scan.c: Likewise.
4851         * dfp.c: Likewise.
4852         * dojump.c: Likewise.
4853         * dominance.c: Likewise.
4854         * domwalk.c: Likewise.
4855         * double-int.c: Likewise.
4856         * dse.c: Likewise.
4857         * dumpfile.c: Likewise.
4858         * dwarf2asm.c: Likewise.
4859         * dwarf2cfi.c: Likewise.
4860         * dwarf2out.c: Likewise.
4861         * emit-rtl.c: Likewise.
4862         * et-forest.c: Likewise.
4863         * except.c: Likewise.
4864         * explow.c: Likewise.
4865         * expmed.c: Likewise.
4866         * expr.c: Likewise.
4867         * final.c: Likewise.
4868         * fixed-value.c: Likewise.
4869         * fold-const.c: Likewise.
4870         * function.c: Likewise.
4871         * fwprop.c: Likewise.
4872         * gcc-plugin.h: Likewise.
4873         * gcse-common.c: Likewise.
4874         * gcse.c: Likewise.
4875         * generic-match-head.c: Likewise.
4876         * ggc-page.c: Likewise.
4877         * gimple-builder.c: Likewise.
4878         * gimple-expr.c: Likewise.
4879         * gimple-fold.c: Likewise.
4880         * gimple-iterator.c: Likewise.
4881         * gimple-low.c: Likewise.
4882         * gimple-match-head.c: Likewise.
4883         * gimple-pretty-print.c: Likewise.
4884         * gimple-ssa-isolate-paths.c: Likewise.
4885         * gimple-ssa-strength-reduction.c: Likewise.
4886         * gimple-streamer-in.c: Likewise.
4887         * gimple-streamer-out.c: Likewise.
4888         * gimple-walk.c: Likewise.
4889         * gimple.c: Likewise.
4890         * gimplify-me.c: Likewise.
4891         * gimplify.c: Likewise.
4892         * godump.c: Likewise.
4893         * graph.c: Likewise.
4894         * graphite-blocking.c: Likewise.
4895         * graphite-dependences.c: Likewise.
4896         * graphite-interchange.c: Likewise.
4897         * graphite-isl-ast-to-gimple.c: Likewise.
4898         * graphite-optimize-isl.c: Likewise.
4899         * graphite-poly.c: Likewise.
4900         * graphite-scop-detection.c: Likewise.
4901         * graphite-sese-to-poly.c: Likewise.
4902         * graphite.c: Likewise.
4903         * haifa-sched.c: Likewise.
4904         * hw-doloop.c: Likewise.
4905         * ifcvt.c: Likewise.
4906         * init-regs.c: Likewise.
4907         * internal-fn.c: Likewise.
4908         * ipa-chkp.c: Likewise.
4909         * ipa-comdats.c: Likewise.
4910         * ipa-cp.c: Likewise.
4911         * ipa-devirt.c: Likewise.
4912         * ipa-icf-gimple.c: Likewise.
4913         * ipa-icf.c: Likewise.
4914         * ipa-inline-analysis.c: Likewise.
4915         * ipa-inline-transform.c: Likewise.
4916         * ipa-inline.c: Likewise.
4917         * ipa-polymorphic-call.c: Likewise.
4918         * ipa-profile.c: Likewise.
4919         * ipa-prop.c: Likewise.
4920         * ipa-pure-const.c: Likewise.
4921         * ipa-ref.c: Likewise.
4922         * ipa-reference.c: Likewise.
4923         * ipa-split.c: Likewise.
4924         * ipa-utils.c: Likewise.
4925         * ipa-visibility.c: Likewise.
4926         * ipa.c: Likewise.
4927         * ira-build.c: Likewise.
4928         * ira-color.c: Likewise.
4929         * ira-conflicts.c: Likewise.
4930         * ira-costs.c: Likewise.
4931         * ira-emit.c: Likewise.
4932         * ira-lives.c: Likewise.
4933         * ira.c: Likewise.
4934         * jump.c: Likewise.
4935         * langhooks.c: Likewise.
4936         * lcm.c: Likewise.
4937         * loop-doloop.c: Likewise.
4938         * loop-init.c: Likewise.
4939         * loop-invariant.c: Likewise.
4940         * loop-iv.c: Likewise.
4941         * loop-unroll.c: Likewise.
4942         * lower-subreg.c: Likewise.
4943         * lra-assigns.c: Likewise.
4944         * lra-coalesce.c: Likewise.
4945         * lra-constraints.c: Likewise.
4946         * lra-eliminations.c: Likewise.
4947         * lra-lives.c: Likewise.
4948         * lra-remat.c: Likewise.
4949         * lra-spills.c: Likewise.
4950         * lra.c: Likewise.
4951         * lto-cgraph.c: Likewise.
4952         * lto-compress.c: Likewise.
4953         * lto-opts.c: Likewise.
4954         * lto-section-in.c: Likewise.
4955         * lto-section-out.c: Likewise.
4956         * lto-streamer-in.c: Likewise.
4957         * lto-streamer-out.c: Likewise.
4958         * lto-streamer.c: Likewise.
4959         * mcf.c: Likewise.
4960         * mode-switching.c: Likewise.
4961         * modulo-sched.c: Likewise.
4962         * omega.c: Likewise.
4963         * omp-low.c: Likewise.
4964         * optabs.c: Likewise.
4965         * opts-global.c: Likewise.
4966         * passes.c: Likewise.
4967         * plugin.c: Likewise.
4968         * postreload-gcse.c: Likewise.
4969         * postreload.c: Likewise.
4970         * predict.c: Likewise.
4971         * print-rtl.c: Likewise.
4972         * print-tree.c: Likewise.
4973         * profile.c: Likewise.
4974         * real.c: Likewise.
4975         * realmpfr.c: Likewise.
4976         * recog.c: Likewise.
4977         * ree.c: Likewise.
4978         * reg-stack.c: Likewise.
4979         * regcprop.c: Likewise.
4980         * reginfo.c: Likewise.
4981         * regrename.c: Likewise.
4982         * regstat.c: Likewise.
4983         * reload.c: Likewise.
4984         * reload1.c: Likewise.
4985         * reorg.c: Likewise.
4986         * resource.c: Likewise.
4987         * rtl-chkp.c: Likewise.
4988         * rtlanal.c: Likewise.
4989         * rtlhooks.c: Likewise.
4990         * sanopt.c: Likewise.
4991         * sched-deps.c: Likewise.
4992         * sched-ebb.c: Likewise.
4993         * sched-rgn.c: Likewise.
4994         * sched-vis.c: Likewise.
4995         * sdbout.c: Likewise.
4996         * sel-sched-dump.c: Likewise.
4997         * sel-sched-ir.c: Likewise.
4998         * sel-sched.c: Likewise.
4999         * sese.c: Likewise.
5000         * shrink-wrap.c: Likewise.
5001         * simplify-rtx.c: Likewise.
5002         * stack-ptr-mod.c: Likewise.
5003         * stmt.c: Likewise.
5004         * stor-layout.c: Likewise.
5005         * store-motion.c: Likewise.
5006         * stringpool.c: Likewise.
5007         * symtab.c: Likewise.
5008         * target-globals.c: Likewise.
5009         * targhooks.c: Likewise.
5010         * toplev.c: Likewise.
5011         * tracer.c: Likewise.
5012         * trans-mem.c: Likewise.
5013         * tree-affine.c: Likewise.
5014         * tree-browser.c: Likewise.
5015         * tree-call-cdce.c: Likewise.
5016         * tree-cfg.c: Likewise.
5017         * tree-cfgcleanup.c: Likewise.
5018         * tree-chkp-opt.c: Likewise.
5019         * tree-chkp.c: Likewise.
5020         * tree-chrec.c: Likewise.
5021         * tree-complex.c: Likewise.
5022         * tree-data-ref.c: Likewise.
5023         * tree-dfa.c: Likewise.
5024         * tree-diagnostic.c: Likewise.
5025         * tree-dump.c: Likewise.
5026         * tree-eh.c: Likewise.
5027         * tree-emutls.c: Likewise.
5028         * tree-if-conv.c: Likewise.
5029         * tree-inline.c: Likewise.
5030         * tree-into-ssa.c: Likewise.
5031         * tree-iterator.c: Likewise.
5032         * tree-loop-distribution.c: Likewise.
5033         * tree-nested.c: Likewise.
5034         * tree-nrv.c: Likewise.
5035         * tree-object-size.c: Likewise.
5036         * tree-outof-ssa.c: Likewise.
5037         * tree-parloops.c: Likewise.
5038         * tree-phinodes.c: Likewise.
5039         * tree-predcom.c: Likewise.
5040         * tree-pretty-print.c: Likewise.
5041         * tree-profile.c: Likewise.
5042         * tree-scalar-evolution.c: Likewise.
5043         * tree-sra.c: Likewise.
5044         * tree-ssa-address.c: Likewise.
5045         * tree-ssa-alias.c: Likewise.
5046         * tree-ssa-ccp.c: Likewise.
5047         * tree-ssa-coalesce.c: Likewise.
5048         * tree-ssa-copy.c: Likewise.
5049         * tree-ssa-copyrename.c: Likewise.
5050         * tree-ssa-dce.c: Likewise.
5051         * tree-ssa-dom.c: Likewise.
5052         * tree-ssa-dse.c: Likewise.
5053         * tree-ssa-forwprop.c: Likewise.
5054         * tree-ssa-ifcombine.c: Likewise.
5055         * tree-ssa-live.c: Likewise.
5056         * tree-ssa-loop-ch.c: Likewise.
5057         * tree-ssa-loop-im.c: Likewise.
5058         * tree-ssa-loop-ivcanon.c: Likewise.
5059         * tree-ssa-loop-ivopts.c: Likewise.
5060         * tree-ssa-loop-manip.c: Likewise.
5061         * tree-ssa-loop-niter.c: Likewise.
5062         * tree-ssa-loop-prefetch.c: Likewise.
5063         * tree-ssa-loop-unswitch.c: Likewise.
5064         * tree-ssa-loop.c: Likewise.
5065         * tree-ssa-math-opts.c: Likewise.
5066         * tree-ssa-operands.c: Likewise.
5067         * tree-ssa-phiopt.c: Likewise.
5068         * tree-ssa-phiprop.c: Likewise.
5069         * tree-ssa-pre.c: Likewise.
5070         * tree-ssa-propagate.c: Likewise.
5071         * tree-ssa-reassoc.c: Likewise.
5072         * tree-ssa-sccvn.c: Likewise.
5073         * tree-ssa-scopedtables.c: Likewise.
5074         * tree-ssa-sink.c: Likewise.
5075         * tree-ssa-strlen.c: Likewise.
5076         * tree-ssa-structalias.c: Likewise.
5077         * tree-ssa-tail-merge.c: Likewise.
5078         * tree-ssa-ter.c: Likewise.
5079         * tree-ssa-threadedge.c: Likewise.
5080         * tree-ssa-threadupdate.c: Likewise.
5081         * tree-ssa-uncprop.c: Likewise.
5082         * tree-ssa-uninit.c: Likewise.
5083         * tree-ssa.c: Likewise.
5084         * tree-ssanames.c: Likewise.
5085         * tree-stdarg.c: Likewise.
5086         * tree-streamer-in.c: Likewise.
5087         * tree-streamer-out.c: Likewise.
5088         * tree-streamer.c: Likewise.
5089         * tree-switch-conversion.c: Likewise.
5090         * tree-tailcall.c: Likewise.
5091         * tree-vect-data-refs.c: Likewise.
5092         * tree-vect-generic.c: Likewise.
5093         * tree-vect-loop-manip.c: Likewise.
5094         * tree-vect-loop.c: Likewise.
5095         * tree-vect-patterns.c: Likewise.
5096         * tree-vect-slp.c: Likewise.
5097         * tree-vect-stmts.c: Likewise.
5098         * tree-vectorizer.c: Likewise.
5099         * tree-vrp.c: Likewise.
5100         * tree.c: Likewise.
5101         * tsan.c: Likewise.
5102         * ubsan.c: Likewise.
5103         * valtrack.c: Likewise.
5104         * value-prof.c: Likewise.
5105         * var-tracking.c: Likewise.
5106         * varasm.c: Likewise.
5107         * varpool.c: Likewise.
5108         * vmsdbgout.c: Likewise.
5109         * vtable-verify.c: Likewise.
5110         * web.c: Likewise.
5111         * wide-int.cc: Likewise.
5112         * xcoffout.c: Likewise.
5113         * config/aarch64/aarch64-builtins.c: Likewise.
5114         * config/aarch64/aarch64.c: Likewise.
5115         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5116         * config/alpha/alpha.c: Likewise.
5117         * config/arc/arc.c: Likewise.
5118         * config/arm/aarch-common.c: Likewise.
5119         * config/arm/arm-builtins.c: Likewise.
5120         * config/arm/arm-c.c: Likewise.
5121         * config/arm/arm.c: Likewise.
5122         * config/avr/avr-c.c: Likewise.
5123         * config/avr/avr-log.c: Likewise.
5124         * config/avr/avr.c: Likewise.
5125         * config/bfin/bfin.c: Likewise.
5126         * config/c6x/c6x.c: Likewise.
5127         * config/cr16/cr16.c: Likewise.
5128         * config/cris/cris.c: Likewise.
5129         * config/darwin-c.c: Likewise.
5130         * config/darwin.c: Likewise.
5131         * config/epiphany/epiphany.c: Likewise.
5132         * config/epiphany/mode-switch-use.c: Likewise.
5133         * config/epiphany/resolve-sw-modes.c: Likewise.
5134         * config/fr30/fr30.c: Likewise.
5135         * config/frv/frv.c: Likewise.
5136         * config/ft32/ft32.c: Likewise.
5137         * config/h8300/h8300.c: Likewise.
5138         * config/i386/i386-c.c: Likewise.
5139         * config/i386/i386.c: Likewise.
5140         * config/i386/msformat-c.c: Likewise.
5141         * config/i386/winnt-cxx.c: Likewise.
5142         * config/i386/winnt-stubs.c: Likewise.
5143         * config/i386/winnt.c: Likewise.
5144         * config/ia64/ia64-c.c: Likewise.
5145         * config/ia64/ia64.c: Likewise.
5146         * config/iq2000/iq2000.c: Likewise.
5147         * config/lm32/lm32.c: Likewise.
5148         * config/m32c/m32c-pragma.c: Likewise.
5149         * config/m32c/m32c.c: Likewise.
5150         * config/m32r/m32r.c: Likewise.
5151         * config/m68k/m68k.c: Likewise.
5152         * config/mcore/mcore.c: Likewise.
5153         * config/mep/mep-pragma.c: Likewise.
5154         * config/mep/mep.c: Likewise.
5155         * config/microblaze/microblaze-c.c: Likewise.
5156         * config/microblaze/microblaze.c: Likewise.
5157         * config/mips/mips.c: Likewise.
5158         * config/mmix/mmix.c: Likewise.
5159         * config/mn10300/mn10300.c: Likewise.
5160         * config/moxie/moxie.c: Likewise.
5161         * config/msp430/msp430-c.c: Likewise.
5162         * config/msp430/msp430.c: Likewise.
5163         * config/nds32/nds32-cost.c: Likewise.
5164         * config/nds32/nds32-fp-as-gp.c: Likewise.
5165         * config/nds32/nds32-intrinsic.c: Likewise.
5166         * config/nds32/nds32-isr.c: Likewise.
5167         * config/nds32/nds32-md-auxiliary.c: Likewise.
5168         * config/nds32/nds32-memory-manipulation.c: Likewise.
5169         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5170         * config/nds32/nds32-predicates.c: Likewise.
5171         * config/nds32/nds32.c: Likewise.
5172         * config/nios2/nios2.c: Likewise.
5173         * config/nvptx/nvptx.c: Likewise.
5174         * config/pa/pa.c: Likewise.
5175         * config/pdp11/pdp11.c: Likewise.
5176         * config/rl78/rl78-c.c: Likewise.
5177         * config/rl78/rl78.c: Likewise.
5178         * config/rs6000/rs6000-c.c: Likewise.
5179         * config/rs6000/rs6000.c: Likewise.
5180         * config/rx/rx.c: Likewise.
5181         * config/s390/s390-c.c: Likewise.
5182         * config/s390/s390.c: Likewise.
5183         * config/sh/sh-c.c: Likewise.
5184         * config/sh/sh-mem.cc: Likewise.
5185         * config/sh/sh.c: Likewise.
5186         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5187         * config/sh/sh_treg_combine.cc: Likewise.
5188         * config/sol2-c.c: Likewise.
5189         * config/sol2-cxx.c: Likewise.
5190         * config/sol2-stubs.c: Likewise.
5191         * config/sol2.c: Likewise.
5192         * config/sparc/sparc-c.c: Likewise.
5193         * config/sparc/sparc.c: Likewise.
5194         * config/spu/spu-c.c: Likewise.
5195         * config/spu/spu.c: Likewise.
5196         * config/stormy16/stormy16.c: Likewise.
5197         * config/tilegx/mul-tables.c: Likewise.
5198         * config/tilegx/tilegx-c.c: Likewise.
5199         * config/tilegx/tilegx.c: Likewise.
5200         * config/tilepro/mul-tables.c: Likewise.
5201         * config/tilepro/tilepro-c.c: Likewise.
5202         * config/tilepro/tilepro.c: Likewise.
5203         * config/v850/v850-c.c: Likewise.
5204         * config/v850/v850.c: Likewise.
5205         * config/vax/vax.c: Likewise.
5206         * config/visium/visium.c: Likewise.
5207         * config/vms/vms-c.c: Likewise.
5208         * config/vms/vms.c: Likewise.
5209         * config/vxworks.c: Likewise.
5210         * config/xtensa/xtensa.c: Likewise.
5212 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
5214         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5215         Remove operand constraints.  Change operand 2 predicate to
5216         nonmemory operand.  Limit const_int values to mode bitsize.  Only
5217         allow const_int values less than 32 when optimizing for size.
5218         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5219         Remove operand constraints.
5220         (*bt<mode>): Use SImode for const_int values less than 32.
5221         (regmode): Remove mode attribute.
5223 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
5225         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5226         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5227           moxie_legitimate_address_p): New functions.
5228           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5230 2015-07-07  Tom de Vries  <tom@codesourcery.com>
5232         PR tree-optimization/66642
5233         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5234         header comment.  Rename split_edge variable to edge_at_split.  Split
5235         exit edge to create new loop exit bb.  Insert loop exit phis in new
5236         loop exit bb.
5238 2015-07-07  Tom de Vries  <tom@codesourcery.com>
5240         * tree-cfg.c (get_virtual_phi): New function.
5241         * tree-cfg.h (get_virtual_phi): Declare.
5242         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5243         (rewrite_virtuals_into_loop_closed_ssa): New function.
5244         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5245         Declare.
5246         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5247         (transform_to_exit_first_loop_alt): Use
5248         rewrite_virtuals_into_loop_closed_ssa.
5250 2015-07-07  Richard Biener  <rguenther@suse.de>
5252         * fold-const.c (fold_binary_loc): Move
5253         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5254         * match.pd: ... here.
5255         Add (X * C1) % C2 -> 0 simplification pattern derived from
5256         extract_muldiv_1.
5258 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5260         PR target/66780
5261         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5262         change for target/65249.
5264 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
5266         * symtab.c (address_matters_1): Fix typo in comment above.
5267         (can_increase_alignment_p): Likewise.
5269 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5271         * function.c (free_after_compilation): Clear PROP_cfg in
5272         f->curr_properties.
5274 2015-07-07  Richard Biener  <rguenther@suse.de>
5276         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5277         add which use to.
5278         (add_control_edge): Remove excessive vertical space in dumping.
5279         (process_ssa_edge_worklist): Simulate at most one statement and
5280         return whether we did.  Do not simulate PHIs if they are in a
5281         BB not yet simulated.
5282         (ssa_propagate): Adjust to always drain the BB worklist whenever
5283         a BB is available there, likewise the VARYING edges list before
5284         the interesting edge list.
5286 2015-07-07  Christian Bruel  <christian.bruel@st.com>
5288         PR target/52144
5289         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5291 2015-07-07  Richard Biener  <rguenther@suse.de>
5293         PR middle-end/66739
5294         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5295         A - B.
5297 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
5299         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
5300         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
5301         Copy operand 0 to a temporary if !ext_register_operand.  Remove
5302         ancient extract_bit_field workaround.
5303         (insv<mode>_1): Rename from mov<mode>_insv_1.
5304         (*insvqi): Rename from *movqi_insv_2.
5305         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5306         for renamed insvsi_1.
5307         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5309 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
5311         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
5312         call to nvptx_reorg_subreg.
5314 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
5316         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5317         * graphite-dependencies.c, graphite-interchange.c,
5318         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5319         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5320         Likewise.
5322 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
5324         * match.pd: Remove element_mode inside HONOR_*.
5325         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5326         (~X | X -> -1, ~X ^ X -> -1): Merge.
5327         * tree.c (build_each_one_cst): New function.
5328         * tree.h (build_each_one_cst): Likewise.
5330 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5332         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5333         PROCESSOR_IAMCU.
5335 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
5337         * config.gcc <mips*-*-*>: Add fused-madd.opt.
5338         * config/mips/mips.opt (mfused-madd): Remove.
5339         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5340         * config/mips/mips.h (TARGET_MIPS8000): New.
5341         (ISA_HAS_FP_MADD4_MSUB4): Remove.
5342         (ISA_HAS_FP_MADDF_MSUBF): Remove.
5343         (ISA_HAS_FP_MADD3_MSUB3): Remove.
5344         (ISA_HAS_NMADD4_NMSUB4): Remove.
5345         (ISA_HAS_NMADD3_NMSUB3): Remove.
5346         (ISA_HAS_FUSED_MADD4): New.
5347         (ISA_HAS_UNFUSED_MADD4): New.
5348         (ISA_HAS_FUSED_MADDF): New.
5349         (ISA_HAS_FUSED_MADD3): New.
5350         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5351         (*fma<mode>4_madd3) New.
5352         (*fma<mode>4_madd4) New.
5353         (*fma<mode>4_maddf) New.
5354         (fms<mode>4) New.
5355         (*fms<mode>4_msub3) New.
5356         (*fms<mode>4_msub4) New.
5357         (fnma<mode>4) New.
5358         (*fnma<mode>4_nmadd3) New.
5359         (*fnma<mode>4_nmadd4) New.
5360         (fnms<mode>4) New.
5361         (*fnms<mode>4_nmsub3) New.
5362         (*fnms<mode>4_nmsub4) New.
5363         (*madd4<mode>) Modify to be unfused only.
5364         (*msub4<mode>) Modify to be unfused only.
5365         (*nmadd4<mode>) Modify to be unfused only.
5366         (*nmsub4<mode>) Modify to be unfused only.
5367         (*madd3<mode>) Remove.
5368         (*msub3<mode>) Remove.
5369         (*nmadd3<mode>) Remove.
5370         (*nmsub3<mode>) Remove.
5371         (*nmadd3<mode>_fastmath) Remove.
5372         (*nmsub3<mode>_fastmath) Remove.
5373         (*nmadd4<mode>_fastmath) Update condition.
5374         (*nmsub4<mode>_fastmath) Update condition.
5376 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5378         PR target/65956
5379         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5380         alignment attribute, exploring one level down for records and arrays.
5382 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
5384         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
5385         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
5386         Copy operand 1 to a temporary if !ext_register_operand.  Remove
5387         ancient extract_bit_field workaround.
5388         (*extv<mode>): Rename from *mov<mode>_extv_1.
5389         (*extvqi): Rename from *movqi_extv_1.
5390         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
5391         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
5392         to a temporary if !ext_register_operand.  Remove ancient
5393         extract_bit_field workaround.
5394         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5395         (*extzvqi): Rename from *movqi_extzv_2.
5396         (*testqi_ext_3): Remove modes from const_int_operand predicated
5397         operands.  Add "n" constraint.
5398         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5399         operand.  Add "J" constraint.
5400         (*btsq, *btrq, *btcq peephole2s): Remove mode from
5401         const_0_to_63 predicated operand.
5402         (regmode): New insn attribute.
5403         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
5404         to nonmemory_operand.  Use regmode insn attribute.
5405         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5406         (*jcc_bt<mode>_mask): Remove mode from operand 3.
5407         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5408         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5409         operands.  Use "N" constraint instead of "n".
5411 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5413         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5415 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5417         PR target/66749
5418         * config/i386/i386.c (iamcu_cost): New.
5419         (m_IAMCU): Likewise.
5420         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5421         (processor_target_table): Add an entry for "iamcu".
5422         (processor_alias_table): Likewise.
5423         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5424         (ix86_adjust_cost): Likewise.
5425         (ia32_multipass_dfa_lookahead): Likewise.
5426         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5427         * config/i386/x86-tune.def: Updated for m_IAMCU.
5429 2015-07-06  Richard Biener  <rguenther@suse.de>
5431         PR tree-optimization/66772
5432         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5433         values are available in the PHI node BB when there are
5434         still unexecutable edges.
5436 2015-07-06  Richard Biener  <rguenther@suse.de>
5438         PR tree-optimization/66767
5439         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5440         Make sure to build the alignment test on a SSA name without
5441         final alignment info valid only if the alignment test
5442         evaluates to true.
5444 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5446         PR target/66620
5447         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5448         loop start when inserting LSETUP.
5450 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5452         PR target/53383
5453         * config/i386/i386.c (ix86_option_override_internal): Allow
5454         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5456 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5458         * read-md.c (decimal_string): Rename to ...
5459         (md_decimal_string): ... this.
5460         (handle_enum): Reflect this.
5462 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5464         PR target/66731
5465         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5467 2015-07-06  Richard Biener  <rguenther@suse.de>
5469         PR middle-end/66759
5470         * match.pd: Add missing constraint of y to REAL_CST in
5471         REAL_CST - x CMP y to y - CST CMP x simplification.
5473 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
5475         PR tree-optimization/66757
5476         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5478 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
5479             Sandra Loosemore <sandra@codesourcery.com>
5481         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5482         Delete extern declaration.
5483         (gprel_constant_p): Add extern declaration.
5484         * config/nios2/constraints.md ("S"): Use gprel_constant_p
5485         instead of nios2_symbol_ref_in_small_data_p.
5486         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5487         (nios2_symbol_ref_in_small_data_p): Make static.
5488         (gprel_constant_p): Make non-static.
5490 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
5492         * doc/fragments.texi (Target Fragment): Convert debian.org
5493         link to use https.
5494         * doc/install.texi (Configuration): Ditto.
5496 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
5498         PR tree-optimization/66718
5499         * tree-vect-stmts.c (vectorizable_call): Replace uses of
5500         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5502         PR tree-optimization/66718
5503         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5504         vectorizable_load, vectorizable_condition): Move vectype,
5505         nunits, ncopies computation after checking what kind of statement
5506         stmt is.
5508 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5510         * target-insns.def (extv, extzv, insv): New targetm instruction
5511         patterns.
5512         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5513         interface.
5514         * recog.c (simplify_while_replacing): Likewise.
5516 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5518         * target-insns.def (doloop_begin, doloop_end): New targetm
5519         instruction patterns.
5520         * loop-init.c: Include target.h.
5521         (pass_loop2::gate): Use the new targetm patterns instead of
5522         HAVE_*/gen_* interface.
5523         (pass_rtl_doloop::gate): Likewise.
5524         (pass_rtl_doloop::execute): Remove preprocessor condition.
5525         * hw-doloop.c: Build unconditionally.
5526         * loop-doloop.c: Likewise.
5527         (doloop_optimize): Use the new targetm patterns instead of
5528         HAVE_*/gen_* interface.
5529         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5530         * modulo-sched.c (doloop_register_get): Likewise.
5532 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5534         * target-insns.def (clear_cache): New targetm instruction pattern.
5535         * builtins.c (expand_builtin___clear_cache): Use it instead of
5536         HAVE_*/gen_* interface.
5538 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5540         * target-insns.def (allocate_stack, check_stack, probe_stack)
5541         (probe_stack_address, split_stack_prologue, split_stack_space_check):
5542         New targetm instruction patterns.
5543         * explow.c (allocate_dynamic_stack_space): Use them instead of
5544         HAVE_*/gen_* interface.
5545         (emit_stack_probe): Likewise.
5546         (probe_stack_range): Likewise.
5547         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5549 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5551         * target-insns.def (stack_protect_set, stack_protect_test): New
5552         targetm instruction patterns.
5553         * cfgexpand.c (stack_protect_prologue): Use them instead of
5554         HAVE_*/gen_* interface.
5555         * function.c (stack_protect_epilogue): Likewise.
5557 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5559         * expr.h (gen_move_insn_uncast): Delete.
5560         * expr.c (gen_move_insn_uncast): Delete.
5562 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5564         * target-insns.def (restore_stack_block, restore_stack_function)
5565         (restore_stack_nonlocal, save_stack_block, save_stack_function)
5566         (save_stack_nonlocal): New targetm instruction patterns.
5567         * builtins.c (expand_builtin_apply): Use them instead of
5568         HAVE_*/gen_* interface.
5569         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5571 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5573         * target-insns.def (trap): New targetm instruction pattern.
5574         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5575         interface.
5576         * explow.c (allocate_dynamic_stack_space): Likewise.
5577         * ifcvt.c (find_if_header): Likewise.
5579 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5581         * target-insns.def (prefetch): New targetm instruction pattern.
5582         * tree-ssa-loop-prefetch.c: Include targeth.
5583         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5584         of HAVE_*/gen_* interface.
5585         * builtins.c (expand_builtin_prefetch): Likewise.
5586         * toplev.c (process_options): Likewise.
5588 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5590         * target-insns.def (untyped_call, untyped_return): New targetm
5591         instruction patterns.
5592         * builtins.c (expand_builtin_apply): Use them instead of
5593         HAVE_*/gen_* interface.
5594         (result_vector): Define unconditionally.
5596 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5598         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5599         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5600         (nonlocal_goto_receiver): New targetm instruction patterns.
5601         * builtins.c (expand_builtin_setjmp_setup): Use them instead
5602         of HAVE_*/gen_* interface.
5603         (expand_builtin_setjmp_receiver): Likewise.
5604         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5605         * except.c (expand_dw2_landing_pad_for_region): Likewise.
5607 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5609         * target.def: Add code_for_* hooks.
5610         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5611         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5612         * target-insns.def (casesi, tablejump): New targetm instruction
5613         patterns.
5614         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5615         (do_tablejump): Likewise.
5616         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5617         (expand_sjlj_dispatch_table): Likewise.
5618         * targhooks.c (default_case_values_threshold): Likewise.
5620 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
5622         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5623         Use rtx_insn * instead of rtx.
5624         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5625         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5626         (nios2_call_tls_get_addr): Likewise.
5627         (nios2_emit_expensive_div): Likewise.
5628         (nios2_emit_move_sequence): Change return type to bool.
5629         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5630         Change return type to bool.
5632 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5634         PR target/66747
5635         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5637 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
5639         PR target/66114
5640         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5641         of register_operand.  Remove constraint.
5643 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
5645         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5646         the first argument.
5648 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
5650         * attribs.c (decl_attributes): Guard inform with the return value
5651         of the preceding warning.
5653 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
5655         * doc/invoke.texi (moverride): Move to correct section.
5657 2015-07-03  Richard Biener  <rguenther@suse.de>
5659         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5660         Copy from tree.c
5661         (dt_operand::gen_gimple_expr): After valueizing operands
5662         re-canonicalize operand order for commutative tree codes.
5664 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5666         PR target/66746.
5667         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5668         is defined.
5669         (__crc32w): Likewise.
5670         (__crc32d): Likewise.
5671         (__rdpmc): Likewise.
5672         (__rdtscp): Likewise.
5673         (_rdpmc): Likewise.
5674         (_rdtscp): Likewise.
5675         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5676         is defined.
5678 2015-07-03  Richard Biener  <rguenther@suse.de>
5680         * fold-const.c (fold_mathfn_compare): Remove.
5681         (fold_inf_compare): Likewise.
5682         (fold_comparison): Move floating point comparison simplifications...
5683         * match.pd: ... to patterns here.  Introduce simple_comparisons
5684         operator list and use it for patterns formerly in fold_comparison.
5686 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
5688         PR tree-optimization/66119
5689         * toplev.c (process_options): Don't set up default values for
5690         the sra_max_scalarization_size_{speed,size} parameters.
5691         * tree-sra (analyze_all_variable_accesses): If no values
5692         have been set for the sra_max_scalarization_size_{speed,size}
5693         parameters, call get_move_ratio to get target defaults.
5695 2015-07-03  Richard Biener  <rguenther@suse.de>
5697         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5698         * match.pd: ... here.
5700 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
5702         PR target/37072
5703         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5704         is not actually the default on FreeBSD.
5706 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5708         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5709         definition.
5710         (CMPGE_8HI): Likewise.
5711         (CMPGE_4SI): Likewise.
5712         (CMPGE_2DI): Likewise.
5713         (CMPGE_U16QI): Likewise.
5714         (CMPGE_U8HI): Likewise.
5715         (CMPGE_U4SI): Likewise.
5716         (CMPGE_U2DI): Likewise.
5717         (CMPLE_16QI): Likewise.
5718         (CMPLE_8HI): Likewise.
5719         (CMPLE_4SI): Likewise.
5720         (CMPLE_2DI): Likewise.
5721         (CMPLE_U16QI): Likewise.
5722         (CMPLE_U8HI): Likewise.
5723         (CMPLE_U4SI): Likewise.
5724         (CMPLE_U2DI): Likewise.
5725         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5726         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5727         ALTIVEC_BUILTIN_VEC_CMPLE.
5728         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5729         floating-point vector modes.
5730         (vector_nlt<mode>): New define_expand.
5731         (vector_nltu<mode>): Likewise.
5732         (vector_ngt<mode>): Likewise.
5733         (vector_ngtu<mode>): Likewise.
5735 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
5737         PR rtl-optimization/66706
5738         * combine.c (make_compound_operation): If an AND of SUBREG of
5739         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5741 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
5743         * tree-pass.h (make_pass_ch_vect): New.
5744         * passes.def: Add pass_ch_vect just before pass_if_conversion.
5746         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5747         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5748         make_pass_ch_vect): New.
5749         (pass_ch): Extend ch_base.
5751         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5752         (ch_base::copy_headers): ...here.
5754 2015-07-02  Richard Biener  <rguenther@suse.de>
5756         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5757         * fold-const.c (get_pointer_modulus_and_residue): Remove.
5758         (fold_binary_loc): Implement (T)ptr & CST in terms of
5759         get_pointer_alignment_1.
5760         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5761         Make sure to build the alignment test on a SSA name without
5762         final alignment info valid only after the prologue.
5764 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
5766         * config/cris/cris.md ("epilogue"): Remove condition.
5767         ("prologue"): Ditto.
5769 2015-07-02  Richard Biener  <rguenther@suse.de>
5771         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
5772         parameter to record a condition that is false.
5773         (record_conditions): When recording an extra NE_EXPR that is
5774         true also record a EQ_EXPR that is false.
5776 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
5778         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
5779         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
5780         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
5781         (set_iv, find_interesting_uses_address, add_candidate_1): New
5782         argument to alloc_iv.
5783         (find_interesting_uses_op, find_interesting_uses_cond): Don't
5784         duplicate struct iv.
5785         (free_loop_data): Don't free struct iv explicitly.
5786         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
5788 2015-07-01  DJ Delorie  <dj@redhat.com>
5790         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
5791         (LIB_SPEC): Add.
5792         (SUPPORTS_DISCRIMINATOR): Define.
5794 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5796         PR bootstrap/66685
5797         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
5798         there are no CALLs in the same pattern.
5800 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5802         PR rtl-optimization/61047
5803         * rtlanal.c (get_initial_register_offset): New function.
5804         (rtx_addr_can_trap_p_1): Check offsets of stack references.
5806 2015-07-01  Richard Biener  <rguenther@suse.de>
5808         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
5809         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
5810         ~X CMP C -> X CMP' ~C to ...
5811         * match.pd: ... patterns here.
5813 2015-07-01  Nick Clifton  <nickc@redhat.com>
5815         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
5816         a 16-bit value into a 20-bit memory slot.
5818 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5820         * doc/sourcebuild.texi (AArch64-specific attributes): Document
5821         "aarch64_tiny", "aarch64_small", "aarch64_large",
5822         "aarch64_little_endian", "aarch64_big_endian".
5824 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5826         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
5827         Document "aarch64_small_fpic".
5829 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5831         * configure.ac: Add check for aarch64 assembler -fpic relocation
5832         modifier support.
5833         * configure: Regenerate.
5834         * config.in: Regenerate.
5835         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
5836         to -fPIC if not support of -fpic relocation modifier in assembler.
5838 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5840         PR bootstrap/66685
5841         * rtl.c (classify_insn): Handle returns in PARALLELs.
5843 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5845         PR middle-end/66633
5846         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
5847         to true if the function is nested and if not optimizing.
5848         (convert_local_omp_clauses): Initialize need_frame to true if the
5849         function contains nested functions and if not optimizing.
5851 2015-07-01  Richard Biener  <rguenther@suse.de>
5853         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
5854         (X & Y) ^ Y -> ~X & Y transforms to ...
5855         * match.pd: ... here.
5857 2015-07-01  Richard Biener <rguenther@suse.de>
5859         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
5860         of converts to avoid uninteresting noise from the conversion
5861         simplifying patterns.
5863 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
5865         * config/c6x/c6x.c (try_rename_operands): Do not depend on
5866         gcc_assert evaluating its argument for side-effect.
5868 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5870         PR target/64833
5871         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
5872         flag_pic is set.
5874 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5876         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
5877         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
5878         (hash_scc): Add this_ref_p and ref_p parameters and pass them
5879         to the inner DFS walk.
5881 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5883         * target-insns.def (jump): New targetm instruction pattern.
5884         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
5885         instead of gen_jump.
5886         (fix_up_crossing_landing_pad): Likewise.
5887         (add_labels_and_missing_jumps): Likewise.
5888         (fix_crossing_conditional_branches): Likewise.
5889         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5890         (force_nonfallthru_and_redirect): Likewise.
5891         * cse.c (cse_insn): Likewise.
5892         * expmed.c (expand_divmod): Likewise.
5893         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
5894         * haifa-sched.c (init_before_recovery): Likewise.
5895         (sched_create_recovery_edges): Likewise.
5896         * ifcvt.c (find_cond_trap): Likewise.
5897         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
5898         (expand_float, expand_fix): Likewise.
5899         * stmt.c (emit_jump): Likewise.
5901 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5903         * defaults.h (HAVE_load_multiple, gen_load_multiple)
5904         (HAVE_store_multiple, gen_store_multiple): Delete.
5905         * target-insns.def (load_multiple, store_multiple): New targetm
5906         instruction patterns.
5907         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
5908         of HAVE_*/gen_* interface.
5910 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5912         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
5913         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
5914         (gen_mem_signal_fence): Delete.
5915         * target-insns.def (mem_signal_fence, mem_thread_fence)
5916         (memory_barrier): New targetm instruction patterns.
5917         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
5918         interface.
5919         (expand_mem_signal_fence): Likewise.
5921 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5923         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
5924         * target-insns.def (epilogue, prologue, sibcall_prologue): New
5925         targetm instruction patterns.
5926         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
5927         interface.
5928         * calls.c (expand_call): Likewise.
5929         * cfgrtl.c (cfg_layout_finalize): Likewise.
5930         * df-scan.c (df_get_entry_block_def_set): Likewise.
5931         (df_get_exit_block_use_set): Likewise.
5932         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
5933         * final.c (final_start_function): Likewise.
5934         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5935         (reposition_prologue_and_epilogue_notes): Likewise.
5936         * reorg.c (find_end_label): Likewise.
5937         * toplev.c (process_options): Likewise.
5939 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
5941         * typed-splay-tree.h: New file.
5943 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
5945         PR debug/66691
5946         * lra-int.h (lra_substitute_pseudo): Add a parameter.
5947         (lra_substitute_pseudo_within_insn): Ditto.
5948         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
5949         of constant.
5950         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
5951         to lra_substitute_pseudo.
5952         * lra-lives.c (process_bb_lives): Add an argument to
5953         lra_substitute_pseudo_within_insn call.
5954         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
5955         argument to lra_substitute_pseudo and
5956         lra_substitute_pseudo_within_insn calls.
5957         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
5959 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5961         * configure: Regenerated.
5963 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5965         * config.gcc: Support i[34567]86-*-elfiamcu target.
5966         * config/i386/iamcu.h: New.
5967         * config/i386/i386.opt: Add -miamcu.
5968         * doc/invoke.texi: Document -miamcu.
5969         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
5970         off x87/MMX/SSE/AVX codegen for -miamcu.
5971         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5972         __iamcu/__iamcu__ for -miamcu.
5973         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
5974         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
5975         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
5976         * config/i386/i386.c (ix86_option_override_internal): Ignore and
5977         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
5978         MCU by default.  Default long double to 64-bit for Intel MCU.
5979         Turn on -freg-struct-return for Intel MCU.  Issue an error when
5980         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
5981         AVX is turned on.
5982         (function_arg_advance_32): Pass value whose size is no larger
5983         than 8 bytes in registers for Intel MCU.
5984         (function_arg_32): Likewise.
5985         (ix86_return_in_memory): Return value whose size is no larger
5986         than 8 bytes in registers for Intel MCU.
5987         (iamcu_alignment): New function.
5988         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
5989         true.
5990         (ix86_local_alignment): Don't increase alignment for Intel MCU.
5991         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
5992         true.
5994 2015-06-30  Marek Polacek  <polacek@redhat.com>
5996         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
5997         both operands of the resulting expression.
5999         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
6000         the final expression with the operand's type and then convert
6001         it to the type of the expression.
6003 2015-06-30  Richard Biener  <rguenther@suse.de>
6005         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6006         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6007         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6008         * match.pd: ... to patterns here.
6010 2015-06-30  Richard Biener  <rguenther@suse.de>
6012         PR tree-optimization/66704
6013         * tree-vect-data-refs.c (vect_setup_realignment): Use
6014         make_ssa_name for non-SSA name source.
6016 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
6018         PR middle-end/66702
6019         * omp-low.c (simd_clone_adjust): Handle addressable linear
6020         or uniform parameters or non-gimple type uniform parameters.
6022 2015-06-30  Richard Biener  <rguenther@suse.de>
6024         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6025         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6026         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6027         * match.pd: ... here.
6028         Add a few cases of A - B -> A + (-B) when B "easily" negates.
6029         Move (x & y) | x -> x and friends before
6030         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6032 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
6034         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6035         -mfix-ut699 is not specified.
6036         (leon3_load): Rename into...
6037         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
6038         is specified.
6040 2015-06-30  Marek Polacek  <polacek@redhat.com>
6042         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6043         * match.pd: ... here.
6045 2015-06-30  Richard Biener  <rguenther@suse.de>
6047         * target-insns.def (canonicalize_funcptr_for_compare): Add.
6048         * fold-const.c (build_range_check): Replace uses of
6049         HAVE_canonicalize_funcptr_for_compare.
6050         (fold_widened_comparison): Likewise.
6051         (fold_sign_changed_comparison): Likewise.
6052         * dojump.c: Include "target.h".
6053         (do_compare_and_jump): Replace uses of
6054         HAVE_canonicalize_funcptr_for_compare and
6055         gen_canonicalize_funcptr_for_compare.
6056         * expr.c (do_store_flag): Likewise.
6058 2015-06-30  Tom de Vries  <tom@codesourcery.com>
6060         PR tree-optimization/66652
6061         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6062         max_loop_iterations to determine if nit + 1 overflows.
6064 2015-06-30  Richard Biener  <rguenther@suse.de>
6066         * tree-vrp.c (register_edge_assert_for_2): Also register
6067         asserts for dominating conversion results.
6069 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
6071         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6072         field in struct iv.
6074 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
6076         PR target/66509
6077         * configure.ac: Fix filds and fildq test for 64-bit.
6078         * configure: Regenerated.
6080 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
6082         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6083         (nvptx_reorg): Here.  Keep the non-subreg pieces.
6085 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
6087         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6088         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6090 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
6092         * config/i386/i386.md (*jcc_1): Use %! in asm template.
6093         Set attribute "length_nobnd" instead of "length".
6094         (*jcc_2): Ditto.
6095         (jump): Ditto.
6096         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6098 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
6100         * config/nios2/nios2.c (nios2_delegitimize_address): Make
6101         assert less restrictive.
6103 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6105         PR fortran/66605
6106         * cgraphunit.c (cgraph_node::finalize_function): Do not call
6107         do_warn_unused_parameter.
6108         * function.c (do_warn_unused_parameter): Move from here.
6109         * function.h (do_warn_unused_parameter): Do not declare.
6111 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6113         PR target/65697
6114         * gcc.target/arm/armv-sync-comp-swap.c: New.
6115         * gcc.target/arm/armv-sync-op-acquire.c: New.
6116         * gcc.target/arm/armv-sync-op-full.c: New.
6117         * gcc.target/arm/armv-sync-op-release.c: New.
6119 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6121         PR target/65697
6122         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6123         initial acquire barrier with final barrier.
6125 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6127         PR target/65697
6128         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6129         initial acquire barrier with final barrier.
6131 2015-06-29  Richard Henderson  <rth@redhat.com>
6133         * config/i386/constraints.md (Bf): New constraint.
6134         * config/i386/i386-c.c (ix86_target_macros): Define
6135         __GCC_ASM_FLAG_OUTPUTS__.
6136         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6137         as flags outputs.
6138         * doc/extend.texi (FlagOutputOperands): Document them.
6140 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
6142         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6143         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6144         unspec name.
6145         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6146         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6147         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6148         (aarch64_symbol_context): Ditto.
6149         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6150         and use new pattern name.
6151         (aarch64_expand_mov_immediate): Ditto.
6152         (aarch64_print_operand): Ditto.
6153         (aarch64_classify_tls_symbol): Ditto.
6155 2015-06-29  Marek Polacek  <polacek@redhat.com>
6156             Marc Glisse  <marc.glisse@inria.fr>
6158         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6159         * match.pd: ... pattern here.
6161 2015-06-29  Tom de Vries  <tom@codesourcery.com>
6163         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6164         function structure.
6166 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
6168         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6169         feature description, split out the native option, add a link to
6170         the feature documentation, rearrange and slightly rewrite text.
6171         (Aarch64 options, -mcpu): Likewise.
6172         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
6173         +rdma implies Adv. SIMD.
6175 2015-06-29  Marek Polacek  <polacek@redhat.com>
6177         PR c/66322
6178         * function.c (stack_protect_epilogue): Remove a cast to int.
6179         * doc/invoke.texi: Update -Wswitch-bool description.
6181 2015-06-29  Richard Biener  <rguenther@suse.de>
6183         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6184         * fold-const.c (fold_binary_loc): Move &A - &B simplification
6185         via ptr_difference_const ...
6186         * match.pd: ... here.
6187         When matching (X ^ Y) == Y also match with swapped operands.
6189 2015-06-29  Richard Biener  <rguenther@suse.de>
6191         * lto-streamer.h (LTO_major_version): Bump to 5.
6193 2015-06-29  Richard Biener  <rguenther@suse.de>
6195         PR tree-optimization/66677
6196         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6197         STMT_VINFO_VEC_STMT clobbering less strict.
6199 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
6201         PR middle-end/64130
6202         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6203         division, compute max and min when value ranges for dividend and
6204         divisor are available.
6206 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
6207             Sandra Loosemore <sandra@codesourcery.com>
6209         * regrename.h (regrename_do_replace): Change to return bool.
6210         * regrename.c (rename_chains): Check return value of
6211         regname_do_replace.
6212         (regrename_do_replace): Re-validate the modified insns and
6213         return bool status.
6214         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6215         Update to match rename_chains changes.
6216         * config/c6x/c6x.c (try_rename_operands): Assert that
6217         regrename_do_replace returns true.
6219 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
6221         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6222         operand 2 here.  Use copy_addr_to_reg to copy non-index
6223         register operand 2 to a temporary.
6224         (<mode>_stx): Ditto for operand 1.
6225         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6226         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6227         (ix86_store_bounds): Ditto.
6229 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
6231         * print-tree.c (print_node) [TREE_VEC]: Print its length.
6233 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
6235         * gimple.c (gimple_call_set_fndecl): Remove.
6236         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6237         build1_loc directly instead of build_fold_addr_expr_loc.
6239 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
6241         * hash-map.h (hash_map::traverse): Use the definition of the
6242         Key typedef rather than the typedef itself.
6244 2015-06-26  Martin Jambor  <mjambor@suse.cz>
6246         PR debug/66301
6247         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6248         NULL instead of calling dump_enabled_p.
6250 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6252         * config/aarch64/aarch64.opt: (override): New.
6253         * doc/invoke.texi (override): Document.
6254         * config/aarch64/aarch64.c (aarch64_flag_desc): New
6255         (aarch64_fusible_pairs): Likewise.
6256         (aarch64_tuning_flags): Likewise.
6257         (aarch64_tuning_override_function): Likewise.
6258         (aarch64_tuning_override_functions): Likewise.
6259         (aarch64_parse_one_option_token): Likewise.
6260         (aarch64_parse_boolean_options): Likewise.
6261         (aarch64_parse_fuse_string): Likewise.
6262         (aarch64_parse_tune_string): Likewise.
6263         (aarch64_parse_one_override_token): Likewise.
6264         (aarch64_parse_override_string): Likewise.
6265         (aarch64_override_options): Parse the -override string if it
6266         is present.
6268 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6270         * config/aarch64/aarch64-protos.h (tune_params): Remove
6271         const from members.
6272         (aarch64_tune_params): Remove const, change to no longer be
6273         a pointer.
6274         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6275         change to no longer be a pointer, initialize to generic_tunings.
6276         (aarch64_min_divisions_for_recip_mul): Change dereference of
6277         aarch64_tune_params to member access.
6278         (aarch64_reassociation_width): Likewise.
6279         (aarch64_rtx_mult_cost): Likewise.
6280         (aarch64_address_cost): Likewise.
6281         (aarch64_branch_cost): Likewise.
6282         (aarch64_rtx_costs): Likewise.
6283         (aarch64_register_move_cost): Likewise.
6284         (aarch64_memory_move_cost): Likewise.
6285         (aarch64_sched_issue_rate): Likewise.
6286         (aarch64_builtin_vectorization_cost): Likewise.
6287         (aarch64_override_options): Take a copy of the selected tuning
6288         struct in to aarch64_tune_params, rather than just setting
6289         a pointer, change dereferences of aarch64_tune_params to member
6290         accesses.
6291         (aarch64_override_options_after_change): Change dereferences of
6292         aarch64_tune_params to member access.
6293         (aarch64_macro_fusion_p): Likewise.
6294         (aarch_macro_fusion_pair_p): Likewise.
6295         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6297 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6299         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6300         (aarch64_tune_flags): Likewise.
6301         (AARCH64_TUNE_FMA_STEERING): Likewise.
6302         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6303         to AARCH64_FL_USE_FMA_STEERING_PASS.
6304         (cortex-a57.cortex-a53): Likewise.
6305         (cortex-a72): Use cortexa72_tunings.
6306         (cortex-a72.cortex-a53): Likewise.
6307         (exynos-m1): Likewise.
6308         * config/aarch64/aarch64-protos.h (tune_params): Add
6309         a field: extra_tuning_flags.
6310         * config/aarch64/aarch64-tuning-flags.def: New.
6311         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6312         (aarch64_extra_tuning_flags): Likewise.
6313         (aarch64_tune_params): Declare here.
6314         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6315         (cortexa53_tunings): Likewise.
6316         (cortexa57_tunings): Likewise.
6317         (thunderx_tunings): Likewise.
6318         (xgene1_tunings): Likewise.
6319         (cortexa72_tunings): New.
6320         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6321          (gate): Check against aarch64_tune_params.
6322         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6323         aarch64-protos.h.
6325 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6327         * config/aarch64/aarch64-fusion-pairs.def: New.
6328         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6329         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6330         aarch64_fusion_pairs.
6331         (AARCH64_FUSE_MOV_MOVK): Likewise.
6332         (AARCH64_FUSE_ADRP_ADD): Likewise.
6333         (AARCH64_FUSE_MOVK_MOVK): Likewise.
6334         (AARCH64_FUSE_ADRP_LDR): Likewise.
6335         (AARCH64_FUSE_CMP_BRANCH): Likewise.
6337 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6339         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6340         SYMBOL_SMALL_GOT_28K.
6341         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6342         relocation modifiers.
6343         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6344         (ldr_got_small_28k_<mode>): New.
6345         (ldr_got_small_28k_sidi): New.
6346         * config/aarch64/iterators.md (got_modifier): New mode iterator.
6347         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6348         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6349         SYMBOL_SMALL_GOT_28K.
6350         (aarch64_rtx_costs): Add costs for new instruction sequences.
6351         (initialize_aarch64_code_model): Initialize new model.
6352         (aarch64_classify_symbol): Recognize new model and new symbol classification.
6353         (aarch64_asm_preferred_eh_data_format): Support new model.
6354         (aarch64_load_symref_appropriately): Generate new instruction
6355         sequences for -fpic.
6356         (TARGET_USE_PSEUDO_PIC_REG): New definition.
6357         (aarch64_use_pseudo_pic_reg): New function.
6359 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6361         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6362         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6363         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6364         (aarch64_expand_mov_immediate): Ditto.
6365         (aarch64_print_operand): Ditto.
6366         (aarch64_classify_symbol): Ditto.
6368 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
6370         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6372 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
6374         PR bootstrap/66638
6375         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6376         assertion failed.  Remove assertion itself.
6378 2015-06-26  Richard Biener  <rguenther@suse.de>
6380         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6381         and -A CMP CST -> A CMP -CST which is redundant with a pattern
6382         in match.pd.
6383         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6384         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6385         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6386         * match.pd: ... patterns here.
6388 2015-06-26  Marek Polacek  <polacek@redhat.com>
6390         * match.pd ((x | y) & ~(x & y) -> x ^ y,
6391         (x | y) & (~x ^ y) -> x & y): New patterns.
6393 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
6395         * rtl.h (emit): Add an optional boolean parameter to control
6396         whether barriers are emitted.
6397         * emit-rtl.c (emit): Likewise.
6398         * gensupport.c (get_emit_function): Return null rather than "emit".
6399         * genemit.c (gen_emit_seq): Handle the null return value.
6400         Don't emit barriers after the final instruction in the sequence.
6401         * gentarget-def.c (main): Don't emit barriers after the instruction.
6403 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6405         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6406         TARGET_UNIFIED_ASM.
6408 2015-06-26  Richard Biener  <rguenther@suse.de>
6410         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6412 2015-06-26  Richard Biener  <rguenther@suse.de>
6414         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6415         irrespective on whether the inner operation has a single use
6416         of both off are constant.
6418 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
6419             Segher Boessenkool  <segher@kernel.crashing.org>
6421         PR target/66412
6422         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6423         before doing PUT_MODE or PUT_CODE on operands to avoid
6424         in-place RTX modification.
6426 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6428         * gentarget-def.c (def_target_insn): Cast return of strtol to
6429         unsigned int.
6431 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6433         * gimple.h (gimple_call_set_fn): Move inline function.
6434         * gimple.c (gimple_call_set_fn): Relocate here.
6436 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
6438         PR target/65979
6439         PR target/66611
6440         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6441         the replacement insn will work.
6443 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6445         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6446         by default.
6448 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6450         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6451         * cgraph.h: Include ipa-ref.h and plugin-api.h.
6452         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6453         (symtab_node::address_can_be_compared_p): Move function.
6454         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6455         definition here.
6456         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6457         * auto-profile.c: Likewise.
6458         * bb-reorder.c: Likewise.
6459         * builtins.c: Likewise.
6460         * calls.c: Likewise.
6461         * cfgexpand.c: Likewise.
6462         * cgraphbuild.c: Likewise.
6463         * cgraphclones.c: Likewise.
6464         * cgraphunit.c: Likewise.
6465         * combine.c: Likewise.
6466         * coverage.c: Likewise.
6467         * data-streamer-in.c: Likewise.
6468         * data-streamer-out.c: Likewise.
6469         * data-streamer.c: Likewise.
6470         * dbxout.c: Likewise.
6471         * dwarf2out.c: Likewise.
6472         * except.c: Likewise.
6473         * expr.c: Likewise.
6474         * final.c: Likewise.
6475         * fold-const.c: Likewise.
6476         * ggc-page.c: Likewise.
6477         * gimple-fold.c: Likewise.
6478         * gimple-iterator.c: Likewise.
6479         * gimple-pretty-print.c: Likewise.
6480         * gimple-streamer-in.c: Likewise.
6481         * gimple-streamer-out.c: Likewise.
6482         * gimple.c: Likewise.
6483         * gimplify.c: Likewise.
6484         * ipa-chkp.c: Likewise.
6485         * ipa-comdats.c: Likewise.
6486         * ipa-cp.c: Likewise.
6487         * ipa-devirt.c: Likewise.
6488         * ipa-icf-gimple.c: Likewise.
6489         * ipa-icf.c: Likewise.
6490         * ipa-inline-analysis.c: Likewise.
6491         * ipa-inline-transform.c: Likewise.
6492         * ipa-inline.c: Likewise.
6493         * ipa-polymorphic-call.c: Likewise.
6494         * ipa-profile.c: Likewise.
6495         * ipa-prop.c: Likewise.
6496         * ipa-pure-const.c: Likewise.
6497         * ipa-ref.c: Likewise.
6498         * ipa-reference.c: Likewise.
6499         * ipa-split.c: Likewise.
6500         * ipa-utils.c: Likewise.
6501         * ipa-visibility.c: Likewise.
6502         * ipa.c: Likewise.
6503         * langhooks.c: Likewise.
6504         * lto-cgraph.c: Likewise.
6505         * lto-compress.c: Likewise.
6506         * lto-opts.c: Likewise.
6507         * lto-section-in.c: Likewise.
6508         * lto-section-out.c: Likewise.
6509         * lto-streamer-in.c: Likewise.
6510         * lto-streamer-out.c: Likewise.
6511         * lto-streamer.c: Likewise.
6512         * omp-low.c: Likewise.
6513         * opts-global.c: Likewise.
6514         * passes.c: Likewise.
6515         * predict.c: Likewise.
6516         * print-tree.c: Likewise.
6517         * profile.c: Likewise.
6518         * ree.c: Likewise.
6519         * sanopt.c: Likewise.
6520         * stor-layout.c: Likewise.
6521         * symtab.c: Likewise.
6522         * toplev.c: Likewise.
6523         * trans-mem.c: Likewise.
6524         * tree-cfg.c: Likewise.
6525         * tree-chkp.c: Likewise.
6526         * tree-eh.c: Likewise.
6527         * tree-emutls.c: Likewise.
6528         * tree-inline.c: Likewise.
6529         * tree-nested.c: Likewise.
6530         * tree-parloops.c: Likewise.
6531         * tree-pretty-print.c: Likewise.
6532         * tree-profile.c: Likewise.
6533         * tree-sra.c: Likewise.
6534         * tree-ssa-alias.c: Likewise.
6535         * tree-ssa-live.c: Likewise.
6536         * tree-ssa-loop-ivcanon.c: Likewise.
6537         * tree-ssa-loop-ivopts.c: Likewise.
6538         * tree-ssa-pre.c: Likewise.
6539         * tree-ssa-sccvn.c: Likewise.
6540         * tree-ssa-strlen.c: Likewise.
6541         * tree-ssa-structalias.c: Likewise.
6542         * tree-streamer-in.c: Likewise.
6543         * tree-streamer-out.c: Likewise.
6544         * tree-streamer.c: Likewise.
6545         * tree-switch-conversion.c: Likewise.
6546         * tree-tailcall.c: Likewise.
6547         * tree-vect-data-refs.c: Likewise.
6548         * tree-vect-stmts.c: Likewise.
6549         * tree-vectorizer.c: Likewise.
6550         * tree.c: Likewise.
6551         * tsan.c: Likewise.
6552         * ubsan.c: Likewise.
6553         * value-prof.c: Likewise.
6554         * varasm.c: Likewise.
6555         * varpool.c: Likewise.
6556         * config/arm/arm.c: Likewise.
6557         * config/bfin/bfin.c: Likewise.
6558         * config/c6x/c6x.c: Likewise.
6559         * config/cris/cris.c: Likewise.
6560         * config/darwin-c.c: Likewise.
6561         * config/darwin.c: Likewise.
6562         * config/i386/i386.c: Likewise.
6563         * config/i386/winnt.c: Likewise.
6564         * config/microblaze/microblaze.c: Likewise.
6565         * config/mips/mips.c: Likewise.
6566         * config/rs6000/rs6000.c: Likewise.
6567         * config/rx/rx.c: Likewise.
6568         * config/s390/s390.c: Likewise.
6569         * config/tilegx/mul-tables.c: Likewise.
6571 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6573         * config/aarch64/aarch64.c, config/alpha/alpha.c,
6574         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6575         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6576         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6577         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6578         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6579         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6580         config/microblaze/microblaze.c, config/mips/mips.c,
6581         config/mmix/mmix.c, config/mn10300/mn10300.c,
6582         config/moxie/moxie.c, config/msp430/msp430.c,
6583         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6584         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6585         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6586         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6587         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6588         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6589         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6590         target-def.h include.
6591         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
6593 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6595         * Makefile.in (TARGET_DEF): Add target-insns.def.
6596         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6597         (build/gentarget-def.o): New rule.
6598         (genprogrtl): Add target-def.
6599         * target-insns.def, gentarget-def.c: New files.
6600         * target.def: Add targetm.have_* and targetm.gen_* hooks,
6601         based on the contents of target-insns.def.
6602         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6603         (HAVE_return, gen_return): Delete.
6604         * target-def.h: Include insn-target-def.h.
6605         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6606         instead of direct calls.  Rely on them to do the appropriate assertions.
6607         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
6608         (convert_jumps_to_returns): Use targetm interface instead of
6609         direct calls.
6610         (thread_prologue_and_epilogue_insns): Likewise.
6611         * reorg.c (find_end_label, dbr_schedule): Likewise.
6612         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6613         * shrink-wrap.c (convert_to_simple_return): Likewise.
6614         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6616 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6618         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6619         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6620         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6621         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6622         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6623         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6624         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6625         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6626         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6627         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6628         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6629         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6630         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6631         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6632         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6633         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6634         includes to end.
6636 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6638         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6639         (unbounded_int_hashmap_traits::key_type): Likewise.
6640         * hash-map.h (hash_map): Get the key type from the traits.
6641         * hash-traits.h (default_hash_traits): By default, inherit from the
6642         template parameter.
6643         * alias.c (alias_set_traits): Delete.
6644         (alias_set_entry_d::children): Use alias_set_hash as the first
6645         template parameter.
6646         (record_alias_subset): Update accordingly.
6647         * except.c (tree_hash_traits): Delete.
6648         (type_to_runtime_map): Use tree_hash as the first template parameter.
6649         (init_eh): Update accordingly.
6650         * genmatch.c (capture_id_map_hasher): Delete.
6651         (cid_map_t): Use nofree_string_hash as first template parameter.
6652         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6653         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6654         Use symbol_compare_hash as the first template parameter in
6655         subdivide_hash_map.
6656         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6657         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6658         template parameter.
6659         * passes.c (pass_registry_hasher): Delete.
6660         (name_to_pass_map): Use nofree_string_hash as the first template
6661         parameter.
6662         (register_pass_name): Update accordingly.
6663         * sanopt.c (sanopt_tree_map_traits): Delete.
6664         (sanopt_tree_triplet_map_traits): Delete.
6665         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6666         template parameter.
6667         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6668         the first template parameter.
6669         * sese.c (rename_map_hasher): Delete.
6670         (rename_map_type): Use tree_ssa_name_hash as the first template
6671         parameter.
6672         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6673         (function_summary::m_map): Use map_hash as the first template
6674         parameter.
6675         (function_summary::release): Update accordingly.
6676         * tree-if-conv.c (phi_args_hash_traits): Delete.
6677         (predicate_scalar_phi): Use tree_operand_hash as the first template
6678         parameter to phi_arg_map.
6679         * tree-inline.h (dependence_hasher): Delete.
6680         (copy_body_data::dependence_map): Use dependence_hash as the first
6681         template parameter.
6682         * tree-inline.c (remap_dependence_clique): Update accordingly.
6683         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6684         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6685         parameter.
6686         (addr_stridxptr): Update accordingly.
6687         * value-prof.c (profile_id_traits): Delete.
6688         (cgraph_node_map): Use profile_id_hash as the first template
6689         parameter.
6690         (init_node_map): Update accordingly.
6691         * config/alpha/alpha.c (string_traits): Delete.
6692         (machine_function::links): Use nofree_string_hash as the first
6693         template parameter.
6694         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6695         * config/m32c/m32c.c (pragma_traits): Delete.
6696         (pragma_htab): Use nofree_string_hash as the first template parameter.
6697         (m32c_note_pragma_address): Update accordingly.
6698         * config/mep/mep.c (pragma_traits): Delete.
6699         (pragma_htab): Use nofree_string_hash as the first template parameter.
6700         (mep_note_pragma_flag): Update accordingly.
6701         * config/mips/mips.c (mips16_flip_traits): Delete.
6702         (mflip_mips16_htab): Use nofree_string_hash as the first template
6703         parameter.
6704         (mflip_mips16_use_mips16_p): Update accordingly.
6705         (local_alias_traits): Delete.
6706         (mips16_local_aliases): Use nofree_string_hash as the first template
6707         parameter.
6708         (mips16_local_alias): Update accordingly.
6710 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6712         * hash-map-traits.h (default_hashmap_traits): Delete.
6714 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6716         * hash-map-traits.h (unbounded_hashmap_traits): New class.
6717         (unbounded_int_hashmap_traits): Likewise.
6718         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6720 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6722         * ipa-icf.h (symbol_compare_hash): New class.
6723         (symbol_compare_hashmap_traits): Use it.
6724         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6725         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6726         (mem_alloc_description::reverse_mem_map_t): Remove redundant
6727         default_hashmap_traits.
6728         * sanopt.c (sanopt_tree_triplet_hash): New class.
6729         (sanopt_tree_triplet_map_traits): Use it.
6731 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6733         * gengtype-parse.c (require_template_declaration): Allow '+' in
6734         template parameters.  Consolidate cases.
6735         * hash-traits.h (int_hash): New class.
6736         * alias.c (alias_set_hash): New structure.
6737         (alias_set_traits): Use it.
6738         * symbol-summary.h (function_summary::map_hash): New class.
6739         (function_summary::summary_hashmap_traits): Use it.
6740         * tree-inline.h (dependence_hash): New class.
6741         (dependence_hasher): Use it.
6742         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6743         * value-prof.c (profile_id_hash): New class.
6744         (profile_id_traits): Use it.
6746 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6748         * config/mips/mips.c (mips16_flip_traits): Use it.
6749         (local_alias_traits, mips16_local_aliases): Convert from a map of
6750         rtxes to a map of symbol names.
6751         (mips16_local_alias): Update accordingly.
6753 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6755         * hash-traits.h (string_hash, nofree_string_hash): New classes.
6756         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6757         * passes.c (pass_registry_hasher): Likewise.
6758         * config/alpha/alpha.c (string_traits): Likewise.
6759         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6760         * config/m32c/m32c.c (pragma_traits): Likewise.
6761         * config/mep/mep.c (pragma_traits): Likewise.
6763 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6765         * tree-hash-traits.h (tree_hash): New class.
6766         * except.c: Include tree-hash-traits.h.
6767         (tree_hash_traits): Use tree_hash.
6769 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6771         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
6772         * sese.c: Include tree-hash-traits.h.
6773         (rename_map_hasher): Use tree_ssa_name_hasher.
6775 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6777         * tree-hash-traits.h (tree_decl_hash): New class.
6778         * tree-ssa-strlen.c: Include tree-hash-traits.h.
6779         (stridxlist_hash_traits): Use tree_decl_hash.
6781 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6783         * tree-hash-traits.h: New file.
6784         (tree_operand_hash): New class.
6785         * sanopt.c: Include tree-hash-traits.h.
6786         (sanopt_tree_map_traits): Use tree_operand_hash.
6787         * tree-if-conv.c: Include tree-hash-traits.h.
6788         (phi_args_hash_traits): Use tree_operand_hash.
6789         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
6790         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
6792 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6794         * hash-map-traits.h: Include hash-traits.h.
6795         (simple_hashmap_traits): New class.
6796         * mem-stats.h (hash_map): Change the default traits to
6797         simple_hashmap_traits<default_hash_traits<Key> >.
6799 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6801         * hash-table.h: Update comments.
6803 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6805         * hash-traits.h (default_hash_traits): New structure.
6806         * hash-set.h (default_hashset_traits): Delete.
6807         (hash_set): Use default_hash_traits<Key> instead of
6808         default_hashset_traits.  Delete hash_entry type and use Key directly.
6809         * ipa-devirt.c (pair_traits): Delete.
6810         (default_hash_traits <type_pair>): Override.
6811         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
6812         (odr_types_equivalent_p, add_type_duplicate): Likewise.
6814 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6816         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
6818 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6820         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
6821         (has_is_empty, is_empty_helper): Delete.
6822         (has_mark_deleted, mark_deleted_helper): Delete.
6823         (has_mark_empty, mark_empty_helper): Delete.
6824         (hash_table::is_deleted): Call the Descriptor unconditionally.
6825         (hash_table::is_empty): Likewise.
6826         (hash_table::mark_deleted): Likewise.
6827         (hash_table::mark_empty): Likewise.
6829 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6831         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
6832         redundant typedefs and members.
6833         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
6834         redundant typedefs.
6835         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
6836         * ipa-devirt.c (odr_name_hasher): Likewise.
6837         (polymorphic_call_target_hasher): Likewise.
6838         * ira-costs.c (cost_classes_hasher): Likewise.
6839         * statistics.c (stats_counter_hasher): Likewise.
6840         * trans-mem.c (log_entry_hasher): Likewise.
6841         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6842         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
6843         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
6844         * var-tracking.c (variable_hasher): Likewise.
6845         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
6846         Remove redundant typedefs and members.
6848 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6850         * hash-traits.h (ggc_cache_hasher): Rename to...
6851         (ggc_cache_remove): ...this and remove typedefs.
6852         (ggc_cache_ptr_hash): New class.
6853         * hash-table.h: Update commentary.
6854         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
6855         rather than ggc_cache_hasher.
6856         (const_wide_int_hasher, reg_attr_hasher): Likewise.
6857         (const_double_hasher, const_fixed_hasher): Likewise.
6858         * function.c (insn_cache_hasher): Likewise.
6859         * trans-mem.c (tm_wrapper_hasher): Likewise.
6860         * tree.h (tree_decl_map_cache_hasher): Likewise.
6861         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
6862         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
6863         * ubsan.c (tree_type_map_cache_hasher): Likewise.
6864         * varasm.c (tm_clone_hasher): Likewise.
6865         * config/i386/i386.c (dllimport_hasher): Likewise.
6866         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
6867         (tree_hasher): Likewise.
6869 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6871         * hash-traits.h (ggc_hasher): Rename to...
6872         (ggc_remover): ...this and remove typedefs.
6873         (ggc_cache_hasher): Update accordingly.  Add typedefs.
6874         (ggc_ptr_hash): New class.
6875         * hash-table.h: Update comment.
6876         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
6877         ggc_hasher.
6878         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
6879         (tree_descriptor_hasher): Likewise.
6880         * cgraph.c (function_version_hasher): Likewise.
6881         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
6882         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
6883         (dw_loc_list_hasher, addr_hasher): Likewise.
6884         * function.h (used_type_hasher): Likewise.
6885         * function.c (temp_address_hasher): Likewise.
6886         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
6887         * libfuncs.h (libfunc_hasher): Likewise.
6888         * lto-streamer.h (decl_state_hasher): Likewise.
6889         * optabs.c (libfunc_decl_hasher): Likewise.
6890         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
6891         * varasm.c (section_hasher, object_block_hasher): Likewise.
6892         (const_rtx_desc_hasher): Likewise.
6893         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
6894         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
6896 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6898         * hash-traits.h (free_ptr_hash): New class.
6899         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
6900         rather than typed_free_remove.  Remove redudant typedefs.
6901         (external_ref_hasher): Likewise.
6902         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
6903         (ehspec_hasher): Likewise.
6904         * ggc-common.c (saving_hasher): Likewise.
6905         * gimplify.c (gimplify_hasher): Likewise.
6906         * haifa-sched.c (delay_i2_hasher): Likewise.
6907         * loop-invariant.c (invariant_expr_hasher): Likewise.
6908         * loop-iv.c (biv_entry_hasher): Likewise.
6909         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
6910         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
6911         * tree-cfg.c (locus_discrim_hasher): Likewise.
6912         * tree-eh.c (finally_tree_hasher): Likewise.
6913         * tree-into-ssa.c (var_info_hasher): Likewise.
6914         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
6915         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
6916         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
6917         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
6918         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
6919         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
6920         (shared_bitmap_hasher): Likewise.
6921         * tree-ssa-threadupdate.c (redirection_data): Likewise.
6922         * tree-vectorizer.h (peel_info_hasher): Likewise.
6923         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
6924         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
6926 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6928         * hash-table.h: Update comments.
6929         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
6930         (nofree_ptr_hash): New class.
6931         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
6932         than typed_noop_remove.  Remove redudant typedefs.
6933         * attribs.c (attribute_hasher): Likewise.
6934         * cfg.c (bb_copy_hasher): Likewise.
6935         * cselib.c (cselib_hasher): Likewise.
6936         * dse.c (invariant_group_base_hasher): Likewise.
6937         * dwarf2cfi.c (trace_info_hasher): Likewise.
6938         * dwarf2out.c (macinfo_entry_hasher): Likewise.
6939         (comdat_type_hasher, loc_list_hasher): Likewise.
6940         * gcse.c (pre_ldst_expr_hasher): Likewise.
6941         * genmatch.c (id_base): Likewise.
6942         * genrecog.c (test_pattern_hasher): Likewise.
6943         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
6944         * haifa-sched.c (delay_i1_hasher): Likewise.
6945         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
6946         * ipa-icf.h (congruence_class_group_hash): Likewise.
6947         * ipa-profile.c (histogram_hash): Likewise.
6948         * ira-color.c (allocno_hard_regs_hasher): Likewise.
6949         * lto-streamer.h (string_slot_hasher): Likewise.
6950         * lto-streamer.c (tree_entry_hasher): Likewise.
6951         * plugin.c (event_hasher): Likewise.
6952         * postreload-gcse.c (expr_hasher): Likewise.
6953         * store-motion.c (st_expr_hasher): Likewise.
6954         * tree-sra.c (uid_decl_hasher): Likewise.
6955         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
6956         (ssa_name_var_hash): Likewise.
6957         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
6958         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
6959         * tree-ssa-pre.c (pre_expr_d): Likewise.
6960         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
6961         * vtable-verify.h (registration_hasher): Likewise.
6962         * vtable-verify.c (vtbl_map_hasher): Likewise.
6963         * config/arm/arm.c (libcall_hasher): Likewise.
6964         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
6965         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
6966         * config/sol2.c (comdat_entry_hasher): Likewise.
6967         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
6968         (print_fold_checksum, fold_checksum_tree): Likewise.
6969         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
6970         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
6971         (fold_build_call_array_loc): Likewise.
6972         * tree-ssa-ccp.c (gimple_htab): Likewise.
6973         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
6974         rather than pointer_type.
6976 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6978         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
6979         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
6981 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6983         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
6984         (ggc_hasher::ggc_mx): Likewise.
6985         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
6986         that duplicate ggc_hasher ones.
6988 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6990         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
6991         (gt_cleare_cache): Check here for deleted and empty entries.
6992         Replace handle_cache_entry with a call to keep_cache_entry.
6993         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
6994         (ggc_cache_hasher::keep_cache_entry): New function.
6995         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
6996         (tm_wrapper_hasher::keep_cache_entry): New function.
6997         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
6998         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6999         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7000         (type_cache_hasher::keep_cache_entry): New function.
7001         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7002         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7003         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7004         (tree_type_map_cache_hasher::keep_cache_entry): New function.
7005         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7006         (tm_clone_hasher::keep_cache_entry): New function.
7007         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7008         (dllimport_hasher::keep_cache_entry): New function.
7010 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7012         * hash-table.h: Include hash-traits.h.
7013         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7014         (ggc_cache_hasher): Move to...
7015         * hash-traits.h: ...this new file.
7017 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7019         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7020         struct cl_optimization.
7021         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7022         * tree.c (make_node_stat): Allocate cl_optimization struct.
7023         (copy_node_stat): Allocate and copy cl_optimization struct.
7025 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7027         * function.h (struct incoming_args): Move struct.
7028         (pass_by_reference, reference_callee_copied): Remove prototypes.
7029         * emit-rtl.h (struct incoming_args): Relocate struct here.
7030         * calls.h (pass_by_reference, reference_callee_copied): Relocate
7031         prototypes here.
7032         * function.c (pass_by_reference, reference_callee_copied): Move.
7033         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7034         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7035         * ipa-chkp.c: Include calls.h.
7037 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
7039         * alias.h (alias_set_type): Move typedef.
7040         * coretypes.h (alias_set_type): Relocate typedef here.
7041         * rtl.h: Don't include alias.h.
7043 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
7045         * cgraph.h (cgraph_rtl_info): Move to rtl.h
7046         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7047         and instance.
7048         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7049         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7050         doesn't exist.
7051         * calls.c: Include hard-reg-set.h before rtl.h.
7052         * ira.c: Likewise.
7054 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
7055             Vladimir Makarov  <vmakarov@redhat.com>
7057         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7058         Add assert.
7060 2015-06-25  Richard Biener  <rguenther@suse.de>
7062         * fold-const.c (fold_binary_loc): Move simplification of
7063         (X <<>> C1) & C2 ...
7064         * match.pd: ... here.
7066 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
7068         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7070 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
7072         * match.pd: Add patterns for vec_conds between 1 and 0.
7074 2015-06-25  Richard Biener  <rguenther@suse.de>
7076         * tree-vect-stmts.c (vectorizable_conversion): Do not set
7077         STMT_VINFO_VEC_STMT for SLP.
7078         (vectorizable_store): Likewise.
7079         (vectorizable_load): Likewise.
7080         (vect_transform_stmt): Catch SLP vectorization clobbering
7081         STMT_VINFO_VEC_STMT.
7083 2015-06-25  Richard Biener  <rguenther@suse.de>
7085         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7086         dumping.
7087         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7088         cleanup resulting dead code and parameters.
7089         (vect_transform_slp_perm_load): Adjust.
7091 2015-06-25  Nick Clifton  <nickc@redhat.com>
7093         * config/bfin/bfin.c (bfin_expand_prologue): Set
7094         current_function_static_stack_size if flag_stack_usage_info is set.
7095         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7096         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7097         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7098         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7100 2015-06-25  Tom de Vries  <tom@codesourcery.com>
7102         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7103         comment that the generated IV is unsigned.
7105 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7107         PR target/29693
7108         * config/arm/arm.c (arm_dbx_register_number): Return
7109         DWARF_FRAME_REGISTERS by default.
7111 2015-06-25  Tom de Vries  <tom@codesourcery.com>
7113         * dominance.c (calculate_dominance_info): Fix verify_dominators call
7114         argument.  Call verify_dominator when reusing dominator info.
7116 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7118         PR target/66563
7119         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7120         an additional element of the unspec vector.  Modify indices
7121         of operands.
7122         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7123         * config/sh/sh.c (prepare_move_operands): Pass incremented
7124         const_int to gen_GOTaddr2picreg.
7125         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7127 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7129         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7130         Condition on TARGET_FLOAT.
7132 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7134         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7135         and (no)crypto.
7137 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
7139         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7141         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7142         aarch64_err_no_fpadvsimd.
7144         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7145         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7146         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7147         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7148         Turn error into assert, test TARGET_FLOAT.
7149         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7150         TARGET_FLOAT.
7152 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
7154         PR debug/66482
7155         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7157 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
7159         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7161 2015-06-24 Renlin Li <renlin.li@arm.com>
7163         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7164         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7166 2015-06-24  Richard Biener  <rguenther@suse.de>
7168         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7169         (main): Likewise.
7170         (lower_opt_convert): Support lowering of conditional view_convert.
7171         (parser::parse_operation): Likewise.
7172         (parser::parse_for): Likewise.
7174 2015-06-24  Renlin Li  <renlin.li@arm.com>
7176         * varasm.c (emit_local): Use unsigned int for align variable.
7178 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7180         PR target/63408
7181         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7182         for negative numbers.
7184 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7186         PR rtl-optimization/66306
7187         * reload.c (find_reloads): Swap the match_dup info for
7188         commutative operands.
7190 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7192         * config/s390/vx-builtins.md
7193         ("vec_scatter_element<mode>_<non_vec_int>")
7194         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7195         attribute with bhfgq.
7197 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7199         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7201 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7203         * config/s390/s390-builtin-types.def: Add flag to indicate the
7204         options under which the function type is needed.
7205         * config/s390/s390-builtins.def: Add flag to indicate the options
7206         under which the builtin is enabled.
7207         * config/s390/s390-builtins.h: Add flags parameter to macro
7208         definitions.
7209         (bflags_for_builtin): New function.
7210         (flags_for_builtin): Renamed to ...
7211         (opflags_for_builtin): ... this.
7212         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7213         flags_for_builtin to bflags_for_builtin and
7214         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7215         * config/s390/s390.c: Add initialization of bflags_builtin and
7216         opflags_builtin arrays.
7217         Remove code for flags_builtin.
7218         (s390_init_builtins): Only create builtin function types if one of
7219         their flags is active.
7220         Only create builtins if all of their flags are active.
7221         (s390_expand_builtin): Rename flags_for_builtin to
7222         opflags_for_builtin.
7224 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7226         * config/s390/vecintrin.h: Remove internal builtins.
7228 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7230         * config/s390/s390.c (s390_secondary_reload): Fix check for
7231         GENERAL_REGS register class.
7233 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7235         * config/s390/s390.c (s390_support_vector_misalignment): Call
7236         default implementation for !TARGET_VX.
7238 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7240         * config/s390/s390.c (s390_legitimate_constant_p): Add
7241         TARGET_VX check.
7243 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7245         * config/s390/s390.c (s390_vector_abi): New variable definition.
7246         (s390_check_type_for_vector_abi): New function.
7247         (TARGET_ASM_FILE_END): New macro definition.
7248         (s390_asm_file_end): New function.
7249         (s390_function_arg): Call s390_check_type_for_vector_abi.
7250         (s390_gimplify_va_arg): Likewise.
7251         * configure: Regenerate.
7252         * configure.ac: Check for .gnu_attribute Binutils feature.
7254 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
7256         PR target/65803
7257         * config/bfin/bfin.c (hwloop_optimize): Initialize
7258         JUMP_LABEL for newly created jump.
7260 2015-06-23  Tristan Gingold  <gingold@adacore.com>
7262         * collect-utils.c (collect_wait): Unlink the response file here
7263         instead of...
7264         (do_wait): ...here.
7265         (utils_cleanup): ...and here.
7267 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
7269         * df-scan.c: Don't include target-def.h.
7270         * targhooks.c: Likewise.
7271         * config/arm/arm-c.c: Likewise.
7272         * config/i386/i386-c.c: Likewise.
7273         * config/nds32/nds32-cost.c: Likewise.
7274         * config/nds32/nds32-fp-as-gp.c: Likewise.
7275         * config/nds32/nds32-intrinsic.c: Likewise.
7276         * config/nds32/nds32-isr.c: Likewise.
7277         * config/nds32/nds32-md-auxiliary.c: Likewise.
7278         * config/nds32/nds32-memory-manipulation.c: Likewise.
7279         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7280         * config/nds32/nds32-predicates.c: Likewise.
7282 2015-06-23  Richard Biener  <rguenther@suse.de>
7284         PR tree-optimization/66636
7285         * tree-vect-stmts.c (vectorizable_store): Properly compute the
7286         def type for further defs for strided stores.
7288 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
7290         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7291         conditional selects.
7292         (setcc_int<mode>, setcc_float<mode>): Reformat.
7294 2015-06-23  Marek Polacek  <polacek@redhat.com>
7296         * match.pd ((x + y) - (x | y) -> x & y,
7297         (x + y) - (x & y) -> x | y): New patterns.
7299 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
7301         PR 65711
7302         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7303         '-dynamic-linker' within %{!shared: ...}.
7305 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
7307         PR target/66560
7308         * config/i386/predicates.md (addsub_vm_operator): New predicate.
7309         (addsub_vs_operator): Ditto.
7310         (addsub_vs_parallel): Ditto.
7311         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7312         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7313         Put minus RTX before plus and adjust vec_merge selector.
7314         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7315         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7316         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7317         (addsub vec_merge splitters): New combiner splitters.
7318         (addsub vec_select/vec_concat splitters): Ditto.
7320 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
7322         PR tree-optimization/66449
7323         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7324         POINTER_PLUS_EXPR for pointers.
7326 2015-06-23  Alan Modra  <amodra@gmail.com>
7328         * rtlanal.c (commutative_operand_precedence): Correct comments.
7329         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7330         declaration.  Return an int.  Distinguish REG,REG return from
7331         others.
7332         (struct simplify_plus_minus_op_data): Make local to function.
7333         (simplify_plus_minus): Don't set canonicalized if merely sorting
7334         registers.  Avoid packing ops if nothing changes.  White space fixes.
7336 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
7338         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7339         -fdump-ada-spec is passed but not if -fsyntax-only is.
7341 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
7343         PR bootstrap/63740
7344         * lra-lives.c (process_bb_lives): Check insn copying the same
7345         reload pseudo and don't create a copy for it.
7347 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7349         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7350         for cond_stmt.
7352 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7354         * builtins.def (DEF_GOMP_BUILTIN): Test
7355         'flag_tree_parallelize_loops > 1' instead of
7356         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
7358 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7360         * dominance.c (calculate_dominance_info): Verify dominators if
7361         early-out.
7363 2015-06-22  Marek Polacek  <polacek@redhat.com>
7365         * match.pd ((x ^ y) ^ (x | y) -> x & y,
7366         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7367         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7368         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7370 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
7372         PR target/65871
7373         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7374         cost of embedded comparison.
7376 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7378         PR target/65914
7379         * config/rs6000/predicates.md (altivec_register_operand): Permit
7380         virtual stack registers.
7381         (vsx_register_operand): Likewise.
7382         (vfloat_operand): Likewise.
7383         (vint_operand): Likewise.
7384         (vlogical_operand): Likewise.
7386 2015-06-22  Richard Biener  <rguenther@suse.de>
7388         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7389         and single_scalar_iteration_cost members.
7390         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7391         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7392         (vect_get_single_scalar_iteration_cost): Remove.
7393         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7394         Use LOOP_VINFO_SCALAR_ITERATION_COST.
7395         * tree-vect-loop.c (destroy_loop_vec_info): Free
7396         scalar_cost_vec.
7397         (vect_get_single_scalar_iteration_cost): Compute result into
7398         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7399         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
7400         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7401         (vect_estimate_min_profitable_iters): Use them.
7403 2015-06-22  Christian Bruel  <christian.bruel@st.com>
7405         PR target/52144
7406         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7407         (TARGET_INSERT_ATTRIBUTES): Define.
7408         (thumb_flipper): New var.
7409         * config/arm/arm.opt (-mflip-thumb): New switch.
7411 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
7412             Martin Liska  <mliska@suse.cz>
7414         PR ipa/65908
7415         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7416         construction of arg_types.
7417         (sem_function::sem_function): Likewise.
7418         (sem_function::~sem_function): Remove destruction of arg_types.
7419         (sem_function::compatible_parm_types_p): New function.
7420         (sem_function::equals_wpa): Reorg matching of return values
7421         and parameter types.
7422         (sem_function::equals_private): Reorg mathcing of argument types.
7423         (sem_function::parse_tree_args): Remove.
7424         * ipa-icf.h (init_wpa): Do not call it.
7425         (parse_tree_args): Remove.
7426         (compatible_parm_types_p): Declare.
7427         (result_type): Remove.
7428         (arg_types): Remove.
7430 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
7432         PR ipa/66351
7433         * ipa-polymorphic-call.c
7434         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7435         initializing alias oracle; fix formating; set base_alias_set if it
7436         is known.
7438 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
7440         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7441         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7442         (find_inc): Likewise.
7443         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7444         swapping.
7445         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7446         * df-scan.c (df_swap_refs): Remove.
7447         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7448         * dominance.c (link_roots): Use std::swap instead of manually swapping.
7449         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7450         * fold-const.c (fold_relational_const): Likewise.
7451         * genattrtab.c (simplify_test_exp): Likewise.
7452         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7453         gimple_simplify): Likewise.
7454         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7455         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7456         * ipa-devirt.c (add_type_duplicate): Likewise.
7457         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7458         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7459         * lra.c (lra_create_copy): Likewise.
7460         * lto-streamer-out.c (DFS::DFS): Likewise.
7461         * modulo-sched.c (get_sched_window): Likewise.
7462         * omega.c (omega_pretty_print_problem): Likewise.
7463         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7464         * reload1.c (reloads_unique_chain_p): Likewise.
7465         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7466         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7467         use std::swap.
7468         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7469         manually swapping.
7470         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7471         predicate_mem_writes): Likewise.
7472         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7473         * tree-predcom.c (combine_chains): Likewise.
7474         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7475         refs_may_alias_p_1): Likewise.
7476         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7477         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7478         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7479         number_of_iterations_cond): Likewise.
7480         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7481         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7482         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7483         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7484         * tree-vrp.c (extract_range_from_binary_expr_1,
7485         extract_range_from_unary_expr_1): Likewise.
7487 2015-06-20  Marek Polacek  <polacek@redhat.com>
7489         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7491 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
7493         PR target/66591
7494         * config/sh/sh.c (prepare_move_operands): Replace subreg
7495         index term with R0 for base and index addressing.
7497 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
7499         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7500         op1 is an fp zero.
7501         (movsf_aarch64): Change condition from register_operand to
7502         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
7503         load1.  Change type for alternative 7 to store1.
7504         (movdf_aarch64): Likewise.
7506 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
7508         * config/vax/vax.md: Adjust sign/zero extend patterns to
7509         handle SUBREGs in operands[1].
7511 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7513         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7514         of manually swapping.
7515         (expand_vec_perm_interleave2): Likewise.
7517 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
7519         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7520         reuse bounds created for abnormal ssa names.
7522 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
7524         * config/nvptx/nvptx.md (allocate_stack): Rename to...
7525         (allocate_stack_<mode>): ... this, and add :P on both
7526         match_operand and unspec.
7527         (allocate_stack): New expander.
7529 2015-06-19  Christian Bruel  <christian.bruel@st.com>
7531         PR target/66541
7532         PR target/52144
7533         * config/arm/arm.c (arm_set_current_function): Handle
7534         explicit default options.
7536 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
7538         * config/i386/i386.md (*movsicc_noc_zext): New insn.
7539         (zero-extended cmove with mem peephole2): New pattern.
7540         (cmove with mem peephole2): Merge patterns.
7542 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
7544         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7546 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
7548         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7549         * config/mips/mips.md (*madd4<mode>): Ditto.
7550         (*nmadd3<mode>) Ditto.
7551         (*nmadd4<mode>_fastmath): Ditto.
7552         (*nmadd3<mode>_fastmath): Ditto.
7553         (*nmsub4<mode>): Ditto.
7554         (*nmsub3<mode>): Ditto.
7555         (*nmsub4<mode>_fastmath): Ditto.
7556         (*nmsub3<mode>_fastmath): Ditto.
7558 2015-06-18  Michael Matz  <matz@suse.de>
7560         PR middle-end/66253
7561         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7562         grouped strided stores.
7563         (vectorizable_load): Don't use the DR from first_stmt in
7564         the non-SLP grouped strided case.
7566 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7568         PR target/66569
7569         * function.c (assign_bounds): Add arguments assign_regs,
7570         assign_special, assign_bt.
7571         (assign_parms): For vararg functions handle bounds in BT
7572         and special slots after incoming vararg bounds.
7574 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7576         PR middle-end/66568
7577         * cfgexpand.c (expand_return): Handle missing bounds.
7578         (expand_gimple_stmt_1): Likewise.
7579         * tree-chkp.c (chkp_expand_zero_bounds): New.
7580         * tree-chkp.h (chkp_expand_zero_bounds): New.
7582 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7584         PR middle-end/66567
7585         * ipa-chkp.c (chkp_maybe_create_clone): Require
7586         functions to be instrumentable.
7587         * tree-chkp.c (chkp_replace_function_pointer): Use
7588         chkp_instrumentable_p instead of attribute check.
7590 2015-06-18  Richard Biener  <rguenther@suse.de>
7592         PR tree-optimization/66510
7593         * tree-vect-stmts.c (vectorizable_load): Properly compute the
7594         number of vector loads for SLP permuted loads.
7595         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7596         check the stride for loop vectorization.
7597         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7598         vectorization factor.
7599         (vect_analyze_group_access): If the group size is not a power
7600         of two require a epilogue loop.
7601         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7602         compute and optimizing and alias test pruning after final
7603         vectorization factor computation.
7604         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7605         vector alignment.
7606         (vect_transform_slp_perm_load): Properly compute the original
7607         number of vector load stmts.
7609 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
7611         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7612         "unlikely character , in @var" warning.
7614 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
7616         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7617         (ix86_function_arg_advance): Ditto.
7618         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
7620 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7622         * function.h (struct rtl_data): Remove struct and accessor macros.
7623         * emit-rtl.h (struct rtl_data): Relocate to here.
7624         * Makefile.in (GTFILES): Add emit-rtl.h.
7625         * df-core.c: Include emit-rtl.h.
7626         * genattrtab.c: Likewise.
7627         * genconditions.c: Likewise.
7628         * genpreds.c: Likewise.
7629         * genrecog.c: Likewise.
7630         * regcprop.c: Likewise.
7631         * resource.c: Likewise.
7632         * sched-rgn.c: Likewise.
7633         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7634         * config/i386/winnt.c: Likewise.
7636 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
7638         PR middle-end/66429
7639         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7640         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
7641         and has_force_vectorize_loops flags from cfun into
7642         child_cfun.
7643         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7644         if simduid is non-NULL.
7645         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7646         * passes.def (pass_simduid_cleanup): Add new pass after loop
7647         passes.
7648         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7649         indirection from htab argument's type.
7650         (shrink_simd_arrays): New function.
7651         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
7652         Don't call adjust_simduid_builtins if there are no loops.
7653         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7654         (pass_simduid_cleanup::execute): New method.
7655         (make_pass_simduid_cleanup): New function.
7657 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
7659         * tree-core.h (tree_target_option): Make opts field a pointer to a
7660         cl_target_option instead of an instance of the struct.
7661         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7662         the structure.
7663         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7664         TARGET_OPTION_NODE.
7665         (copy_node_stat): Allocate and copy struct cl_target_option.
7667 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7669         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7670         Remove conditional exposure of prototypes.
7671         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7672         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
7673         definitions in tree.h with functions.
7674         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7675         anon_aggrname_p.
7676         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7678 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
7680         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7681         (*cmp<mode>_signed): ... this.
7682         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7683         (*cmp<mode>_unsigned): ... this.  Remove %b.
7685 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7687         * coretypes.h: Include input.h and as-a.h.
7688         * rtl.h: Include input.h and as-a.h for generator files.
7689         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7690         * vec.c: Don't include diagnostic-core.h.
7691         * alias.c: Do not include input.h, line-map.h or is-a.h.
7692         * asan.c: Likewise.
7693         * attribs.c: Likewise.
7694         * auto-inc-dec.c: Likewise.
7695         * auto-profile.c: Likewise.
7696         * bb-reorder.c: Likewise.
7697         * bt-load.c: Likewise.
7698         * builtins.c: Likewise.
7699         * caller-save.c: Likewise.
7700         * calls.c: Likewise.
7701         * ccmp.c: Likewise.
7702         * cfg.c: Likewise.
7703         * cfganal.c: Likewise.
7704         * cfgbuild.c: Likewise.
7705         * cfgcleanup.c: Likewise.
7706         * cfgexpand.c: Likewise.
7707         * cfghooks.c: Likewise.
7708         * cfgloop.c: Likewise.
7709         * cfgloop.h: Likewise.
7710         * cfgloopanal.c: Likewise.
7711         * cfgloopmanip.c: Likewise.
7712         * cfgrtl.c: Likewise.
7713         * cgraph.c: Likewise.
7714         * cgraphbuild.c: Likewise.
7715         * cgraphclones.c: Likewise.
7716         * cgraphunit.c: Likewise.
7717         * cilk-common.c: Likewise.
7718         * combine-stack-adj.c: Likewise.
7719         * combine.c: Likewise.
7720         * compare-elim.c: Likewise.
7721         * convert.c: Likewise.
7722         * coverage.c: Likewise.
7723         * cppbuiltin.c: Likewise.
7724         * cprop.c: Likewise.
7725         * cse.c: Likewise.
7726         * cselib.c: Likewise.
7727         * data-streamer-in.c: Likewise.
7728         * data-streamer-out.c: Likewise.
7729         * data-streamer.c: Likewise.
7730         * dbxout.c: Likewise.
7731         * dce.c: Likewise.
7732         * ddg.c: Likewise.
7733         * debug.c: Likewise.
7734         * df-core.c: Likewise.
7735         * df-problems.c: Likewise.
7736         * df-scan.c: Likewise.
7737         * df.h: Likewise.
7738         * dfp.c: Likewise.
7739         * diagnostic-core.h: Likewise.
7740         * diagnostic.c: Likewise.
7741         * dojump.c: Likewise.
7742         * dominance.c: Likewise.
7743         * domwalk.c: Likewise.
7744         * double-int.c: Likewise.
7745         * dse.c: Likewise.
7746         * dumpfile.c: Likewise.
7747         * dumpfile.h: Likewise.
7748         * dwarf2asm.c: Likewise.
7749         * dwarf2cfi.c: Likewise.
7750         * dwarf2out.c: Likewise.
7751         * emit-rtl.c: Likewise.
7752         * et-forest.c: Likewise.
7753         * except.c: Likewise.
7754         * explow.c: Likewise.
7755         * expmed.c: Likewise.
7756         * expr.c: Likewise.
7757         * final.c: Likewise.
7758         * fixed-value.c: Likewise.
7759         * fold-const.c: Likewise.
7760         * function.c: Likewise.
7761         * fwprop.c: Likewise.
7762         * gcc-plugin.h: Likewise.
7763         * gcse.c: Likewise.
7764         * generic-match-head.c: Likewise.
7765         * ggc-page.c: Likewise.
7766         * gimple-builder.c: Likewise.
7767         * gimple-expr.c: Likewise.
7768         * gimple-fold.c: Likewise.
7769         * gimple-iterator.c: Likewise.
7770         * gimple-low.c: Likewise.
7771         * gimple-match-head.c: Likewise.
7772         * gimple-pretty-print.c: Likewise.
7773         * gimple-ssa-isolate-paths.c: Likewise.
7774         * gimple-ssa-strength-reduction.c: Likewise.
7775         * gimple-streamer-in.c: Likewise.
7776         * gimple-streamer-out.c: Likewise.
7777         * gimple-streamer.h: Likewise.
7778         * gimple-walk.c: Likewise.
7779         * gimple.c: Likewise.
7780         * gimplify-me.c: Likewise.
7781         * gimplify.c: Likewise.
7782         * godump.c: Likewise.
7783         * graph.c: Likewise.
7784         * graphite-blocking.c: Likewise.
7785         * graphite-dependences.c: Likewise.
7786         * graphite-interchange.c: Likewise.
7787         * graphite-isl-ast-to-gimple.c: Likewise.
7788         * graphite-optimize-isl.c: Likewise.
7789         * graphite-poly.c: Likewise.
7790         * graphite-scop-detection.c: Likewise.
7791         * graphite-sese-to-poly.c: Likewise.
7792         * graphite.c: Likewise.
7793         * haifa-sched.c: Likewise.
7794         * hw-doloop.c: Likewise.
7795         * ifcvt.c: Likewise.
7796         * init-regs.c: Likewise.
7797         * input.c: Likewise.
7798         * internal-fn.c: Likewise.
7799         * ipa-chkp.c: Likewise.
7800         * ipa-comdats.c: Likewise.
7801         * ipa-cp.c: Likewise.
7802         * ipa-devirt.c: Likewise.
7803         * ipa-icf-gimple.c: Likewise.
7804         * ipa-icf.c: Likewise.
7805         * ipa-inline-analysis.c: Likewise.
7806         * ipa-inline-transform.c: Likewise.
7807         * ipa-inline.c: Likewise.
7808         * ipa-polymorphic-call.c: Likewise.
7809         * ipa-profile.c: Likewise.
7810         * ipa-prop.c: Likewise.
7811         * ipa-pure-const.c: Likewise.
7812         * ipa-ref.c: Likewise.
7813         * ipa-reference.c: Likewise.
7814         * ipa-split.c: Likewise.
7815         * ipa-utils.c: Likewise.
7816         * ipa-visibility.c: Likewise.
7817         * ipa.c: Likewise.
7818         * ira-build.c: Likewise.
7819         * ira-color.c: Likewise.
7820         * ira-conflicts.c: Likewise.
7821         * ira-costs.c: Likewise.
7822         * ira-emit.c: Likewise.
7823         * ira-lives.c: Likewise.
7824         * ira.c: Likewise.
7825         * jump.c: Likewise.
7826         * langhooks.c: Likewise.
7827         * lcm.c: Likewise.
7828         * loop-doloop.c: Likewise.
7829         * loop-init.c: Likewise.
7830         * loop-invariant.c: Likewise.
7831         * loop-iv.c: Likewise.
7832         * loop-unroll.c: Likewise.
7833         * lower-subreg.c: Likewise.
7834         * lra-assigns.c: Likewise.
7835         * lra-coalesce.c: Likewise.
7836         * lra-constraints.c: Likewise.
7837         * lra-eliminations.c: Likewise.
7838         * lra-lives.c: Likewise.
7839         * lra-remat.c: Likewise.
7840         * lra-spills.c: Likewise.
7841         * lra.c: Likewise.
7842         * lto-cgraph.c: Likewise.
7843         * lto-compress.c: Likewise.
7844         * lto-opts.c: Likewise.
7845         * lto-section-in.c: Likewise.
7846         * lto-section-out.c: Likewise.
7847         * lto-streamer-in.c: Likewise.
7848         * lto-streamer-out.c: Likewise.
7849         * lto-streamer.c: Likewise.
7850         * mcf.c: Likewise.
7851         * mode-switching.c: Likewise.
7852         * modulo-sched.c: Likewise.
7853         * omega.c: Likewise.
7854         * omp-low.c: Likewise.
7855         * optabs.c: Likewise.
7856         * opts-global.c: Likewise.
7857         * opts.h: Likewise.
7858         * passes.c: Likewise.
7859         * plugin.c: Likewise.
7860         * postreload-gcse.c: Likewise.
7861         * postreload.c: Likewise.
7862         * predict.c: Likewise.
7863         * pretty-print.h: Likewise.
7864         * print-rtl.c: Likewise.
7865         * print-tree.c: Likewise.
7866         * profile.c: Likewise.
7867         * real.c: Likewise.
7868         * realmpfr.c: Likewise.
7869         * recog.c: Likewise.
7870         * ree.c: Likewise.
7871         * reg-stack.c: Likewise.
7872         * regcprop.c: Likewise.
7873         * reginfo.c: Likewise.
7874         * regrename.c: Likewise.
7875         * regstat.c: Likewise.
7876         * reload.c: Likewise.
7877         * reload1.c: Likewise.
7878         * reorg.c: Likewise.
7879         * resource.c: Likewise.
7880         * rtl-chkp.c: Likewise.
7881         * rtl-error.c: Likewise.
7882         * rtlanal.c: Likewise.
7883         * rtlhooks.c: Likewise.
7884         * sanopt.c: Likewise.
7885         * sched-deps.c: Likewise.
7886         * sched-ebb.c: Likewise.
7887         * sched-rgn.c: Likewise.
7888         * sched-vis.c: Likewise.
7889         * sdbout.c: Likewise.
7890         * sel-sched-dump.c: Likewise.
7891         * sel-sched-ir.c: Likewise.
7892         * sel-sched.c: Likewise.
7893         * sese.c: Likewise.
7894         * shrink-wrap.c: Likewise.
7895         * simplify-rtx.c: Likewise.
7896         * stack-ptr-mod.c: Likewise.
7897         * statistics.c: Likewise.
7898         * stmt.c: Likewise.
7899         * stor-layout.c: Likewise.
7900         * store-motion.c: Likewise.
7901         * streamer-hooks.c: Likewise.
7902         * stringpool.c: Likewise.
7903         * symtab.c: Likewise.
7904         * target-globals.c: Likewise.
7905         * targhooks.c: Likewise.
7906         * toplev.c: Likewise.
7907         * tracer.c: Likewise.
7908         * trans-mem.c: Likewise.
7909         * tree-affine.c: Likewise.
7910         * tree-browser.c: Likewise.
7911         * tree-call-cdce.c: Likewise.
7912         * tree-cfg.c: Likewise.
7913         * tree-cfgcleanup.c: Likewise.
7914         * tree-chkp-opt.c: Likewise.
7915         * tree-chkp.c: Likewise.
7916         * tree-chrec.c: Likewise.
7917         * tree-complex.c: Likewise.
7918         * tree-data-ref.c: Likewise.
7919         * tree-dfa.c: Likewise.
7920         * tree-diagnostic.c: Likewise.
7921         * tree-dump.c: Likewise.
7922         * tree-eh.c: Likewise.
7923         * tree-emutls.c: Likewise.
7924         * tree-if-conv.c: Likewise.
7925         * tree-inline.c: Likewise.
7926         * tree-into-ssa.c: Likewise.
7927         * tree-iterator.c: Likewise.
7928         * tree-loop-distribution.c: Likewise.
7929         * tree-nested.c: Likewise.
7930         * tree-nrv.c: Likewise.
7931         * tree-object-size.c: Likewise.
7932         * tree-outof-ssa.c: Likewise.
7933         * tree-parloops.c: Likewise.
7934         * tree-phinodes.c: Likewise.
7935         * tree-predcom.c: Likewise.
7936         * tree-pretty-print.c: Likewise.
7937         * tree-profile.c: Likewise.
7938         * tree-scalar-evolution.c: Likewise.
7939         * tree-sra.c: Likewise.
7940         * tree-ssa-address.c: Likewise.
7941         * tree-ssa-alias.c: Likewise.
7942         * tree-ssa-ccp.c: Likewise.
7943         * tree-ssa-coalesce.c: Likewise.
7944         * tree-ssa-copy.c: Likewise.
7945         * tree-ssa-copyrename.c: Likewise.
7946         * tree-ssa-dce.c: Likewise.
7947         * tree-ssa-dom.c: Likewise.
7948         * tree-ssa-dse.c: Likewise.
7949         * tree-ssa-forwprop.c: Likewise.
7950         * tree-ssa-ifcombine.c: Likewise.
7951         * tree-ssa-live.c: Likewise.
7952         * tree-ssa-loop-ch.c: Likewise.
7953         * tree-ssa-loop-im.c: Likewise.
7954         * tree-ssa-loop-ivcanon.c: Likewise.
7955         * tree-ssa-loop-ivopts.c: Likewise.
7956         * tree-ssa-loop-manip.c: Likewise.
7957         * tree-ssa-loop-niter.c: Likewise.
7958         * tree-ssa-loop-prefetch.c: Likewise.
7959         * tree-ssa-loop-unswitch.c: Likewise.
7960         * tree-ssa-loop.c: Likewise.
7961         * tree-ssa-math-opts.c: Likewise.
7962         * tree-ssa-operands.c: Likewise.
7963         * tree-ssa-phiopt.c: Likewise.
7964         * tree-ssa-phiprop.c: Likewise.
7965         * tree-ssa-pre.c: Likewise.
7966         * tree-ssa-propagate.c: Likewise.
7967         * tree-ssa-reassoc.c: Likewise.
7968         * tree-ssa-sccvn.c: Likewise.
7969         * tree-ssa-scopedtables.c: Likewise.
7970         * tree-ssa-sink.c: Likewise.
7971         * tree-ssa-strlen.c: Likewise.
7972         * tree-ssa-structalias.c: Likewise.
7973         * tree-ssa-tail-merge.c: Likewise.
7974         * tree-ssa-ter.c: Likewise.
7975         * tree-ssa-threadedge.c: Likewise.
7976         * tree-ssa-threadupdate.c: Likewise.
7977         * tree-ssa-uncprop.c: Likewise.
7978         * tree-ssa-uninit.c: Likewise.
7979         * tree-ssa.c: Likewise.
7980         * tree-ssanames.c: Likewise.
7981         * tree-stdarg.c: Likewise.
7982         * tree-streamer-in.c: Likewise.
7983         * tree-streamer-out.c: Likewise.
7984         * tree-streamer.c: Likewise.
7985         * tree-switch-conversion.c: Likewise.
7986         * tree-tailcall.c: Likewise.
7987         * tree-vect-data-refs.c: Likewise.
7988         * tree-vect-generic.c: Likewise.
7989         * tree-vect-loop-manip.c: Likewise.
7990         * tree-vect-loop.c: Likewise.
7991         * tree-vect-patterns.c: Likewise.
7992         * tree-vect-slp.c: Likewise.
7993         * tree-vect-stmts.c: Likewise.
7994         * tree-vectorizer.c: Likewise.
7995         * tree-vrp.c: Likewise.
7996         * tree.c: Likewise.
7997         * tsan.c: Likewise.
7998         * ubsan.c: Likewise.
7999         * valtrack.c: Likewise.
8000         * value-prof.c: Likewise.
8001         * var-tracking.c: Likewise.
8002         * varasm.c: Likewise.
8003         * varpool.c: Likewise.
8004         * vmsdbgout.c: Likewise.
8005         * vtable-verify.c: Likewise.
8006         * web.c: Likewise.
8007         * wide-int.cc: Likewise.
8008         * xcoffout.c: Likewise.
8009         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8010         * common/common-targhooks.c: Likewise.
8011         * config/aarch64/aarch64-builtins.c: Likewise.
8012         * config/aarch64/aarch64.c: Likewise.
8013         * config/alpha/alpha.c: Likewise.
8014         * config/arc/arc.c: Likewise.
8015         * config/arm/aarch-common.c: Likewise.
8016         * config/arm/arm-builtins.c: Likewise.
8017         * config/arm/arm-c.c: Likewise.
8018         * config/arm/arm.c: Likewise.
8019         * config/avr/avr-c.c: Likewise.
8020         * config/avr/avr-log.c: Likewise.
8021         * config/avr/avr.c: Likewise.
8022         * config/bfin/bfin.c: Likewise.
8023         * config/c6x/c6x.c: Likewise.
8024         * config/cr16/cr16.c: Likewise.
8025         * config/cris/cris.c: Likewise.
8026         * config/darwin-c.c: Likewise.
8027         * config/darwin.c: Likewise.
8028         * config/default-c.c: Likewise.
8029         * config/epiphany/epiphany.c: Likewise.
8030         * config/epiphany/mode-switch-use.c: Likewise.
8031         * config/epiphany/resolve-sw-modes.c: Likewise.
8032         * config/fr30/fr30.c: Likewise.
8033         * config/frv/frv.c: Likewise.
8034         * config/ft32/ft32.c: Likewise.
8035         * config/glibc-c.c: Likewise.
8036         * config/h8300/h8300.c: Likewise.
8037         * config/i386/i386-c.c: Likewise.
8038         * config/i386/i386.c: Likewise.
8039         * config/i386/msformat-c.c: Likewise.
8040         * config/i386/winnt-cxx.c: Likewise.
8041         * config/i386/winnt-stubs.c: Likewise.
8042         * config/i386/winnt.c: Likewise.
8043         * config/ia64/ia64-c.c: Likewise.
8044         * config/ia64/ia64.c: Likewise.
8045         * config/iq2000/iq2000.c: Likewise.
8046         * config/lm32/lm32.c: Likewise.
8047         * config/m32c/m32c-pragma.c: Likewise.
8048         * config/m32c/m32c.c: Likewise.
8049         * config/m32r/m32r.c: Likewise.
8050         * config/m68k/m68k.c: Likewise.
8051         * config/mcore/mcore.c: Likewise.
8052         * config/mep/mep-pragma.c: Likewise.
8053         * config/mep/mep.c: Likewise.
8054         * config/microblaze/microblaze-c.c: Likewise.
8055         * config/microblaze/microblaze.c: Likewise.
8056         * config/mips/mips.c: Likewise.
8057         * config/mmix/mmix.c: Likewise.
8058         * config/mn10300/mn10300.c: Likewise.
8059         * config/moxie/moxie.c: Likewise.
8060         * config/msp430/msp430-c.c: Likewise.
8061         * config/msp430/msp430.c: Likewise.
8062         * config/nds32/nds32-cost.c: Likewise.
8063         * config/nds32/nds32-fp-as-gp.c: Likewise.
8064         * config/nds32/nds32-intrinsic.c: Likewise.
8065         * config/nds32/nds32-isr.c: Likewise.
8066         * config/nds32/nds32-md-auxiliary.c: Likewise.
8067         * config/nds32/nds32-memory-manipulation.c: Likewise.
8068         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8069         * config/nds32/nds32-predicates.c: Likewise.
8070         * config/nds32/nds32.c: Likewise.
8071         * config/nios2/nios2.c: Likewise.
8072         * config/nvptx/nvptx.c: Likewise.
8073         * config/pa/pa.c: Likewise.
8074         * config/pdp11/pdp11.c: Likewise.
8075         * config/rl78/rl78-c.c: Likewise.
8076         * config/rl78/rl78.c: Likewise.
8077         * config/rs6000/rs6000-c.c: Likewise.
8078         * config/rs6000/rs6000.c: Likewise.
8079         * config/rx/rx.c: Likewise.
8080         * config/s390/s390-c.c: Likewise.
8081         * config/s390/s390.c: Likewise.
8082         * config/sh/sh-c.c: Likewise.
8083         * config/sh/sh-mem.cc: Likewise.
8084         * config/sh/sh.c: Likewise.
8085         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8086         * config/sh/sh_treg_combine.cc: Likewise.
8087         * config/sol2-c.c: Likewise.
8088         * config/sol2-cxx.c: Likewise.
8089         * config/sol2-stubs.c: Likewise.
8090         * config/sol2.c: Likewise.
8091         * config/sparc/sparc-c.c: Likewise.
8092         * config/sparc/sparc.c: Likewise.
8093         * config/spu/spu-c.c: Likewise.
8094         * config/spu/spu.c: Likewise.
8095         * config/stormy16/stormy16.c: Likewise.
8096         * config/tilegx/mul-tables.c: Likewise.
8097         * config/tilegx/tilegx-c.c: Likewise.
8098         * config/tilegx/tilegx.c: Likewise.
8099         * config/tilepro/mul-tables.c: Likewise.
8100         * config/tilepro/tilepro-c.c: Likewise.
8101         * config/tilepro/tilepro.c: Likewise.
8102         * config/v850/v850-c.c: Likewise.
8103         * config/v850/v850.c: Likewise.
8104         * config/vax/vax.c: Likewise.
8105         * config/visium/visium.c: Likewise.
8106         * config/vms/vms-c.c: Likewise.
8107         * config/vms/vms.c: Likewise.
8108         * config/vxworks.c: Likewise.
8109         * config/winnt-c.c: Likewise.
8110         * config/xtensa/xtensa.c: Likewise.
8112 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
8114         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8115         function.
8116         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8118 2015-06-17  Richard Biener  <rguenther@suse.de>
8120         PR tree-optimization/66251
8121         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8122         stmts for SLP strided stores.
8124         Revert
8125         2015-05-22  Richard Biener  <rguenther@suse.de>
8127         PR tree-optimization/66251
8128         * tree-vect-stmts.c (vectorizable_conversion): Properly
8129         set STMT_VINFO_VEC_STMT even for the SLP case.
8131         2015-05-26  Michael Matz  <matz@suse.de>
8133         PR middle-end/66251
8134         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8135         STMT_VINFO_VEC_STMT, also with SLP.
8137 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
8139         PR target/56766
8140         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8141         (*avx_addsubv4df3_1s): Ditto.
8142         (*sse3_addsubv2df3_1): Ditto.
8143         (*sse3_addsubv2df3_1s): Ditto.
8144         (*avx_addsubv8sf3_1): Ditto.
8145         (*avx_addsubv8sf3_1s): Ditto.
8146         (*sse3_addsubv4sf3_1): Ditto.
8147         (*sse3_addsubv4sf3_1s): Ditto.
8149 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
8151         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8152         (SYSROOT_SUFFIX_SPEC): Update.
8153         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8154         (STARTFILE_PREFIX_SPEC): Update.
8155         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8156         (MULTILIB_REQUIRED): New.
8157         (MULTILIB_OSDIRNAMES): New.
8158         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8159         (MULTILIB_REQUIRED): New.
8160         (MULTILIB_OSDIRNAMES): New.
8162 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
8164         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8165         * config/aarch64/aarch64-options-extensions.def: Update "fP",
8166         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
8167         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8168         (AARCH64_FL_PAN): New.
8169         (AARCH64_FL_LOR): New.
8170         (AARCH64_FL_RDMA): New.
8171         (AARCH64_FL_FOR_ARCH8_1): New.
8172         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8173         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8175 2015-06-16  Martin Liska  <mliska@suse.cz>
8177         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8178         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8179         guard.
8181 2015-06-16  Richard Biener  <rguenther@suse.de>
8183         * tree-vect-stmts.c (vectorizable_store): Adjust.
8184         (vectorizable_load): Likewise.
8185         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8186         Simplify.
8187         (vect_create_data_ref_ptr): Likewise.
8188         (bump_vector_ptr): Adjust.
8190 2015-06-16  Richard Biener  <rguenther@suse.de>
8192         * tree-vect-stmts.c (vectorizable_load): Properly start loads
8193         with the first element if this is grouped loads.
8195 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
8197         * config/arm/arm-protos.h (struct tune_params): Rename
8198         log_op_non_sc to log_op_non_short_circuit, and rename enum
8199         values to expand SC to SHORT_CIRCUIT.
8200         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8201         to LOG_OP_NON_SHORT_CIRCUIT.
8202         (arm_fastmul_tune):Likewise
8203         (arm_strongarm_tune): Likewise.
8204         (arm_xscale_tune): Likewise.
8205         (arm_9e_tune): Likewise.
8206         (arm_marvell_pj4_tune): Likewise.
8207         (arm_v6t2_tune): Likewise.
8208         (arm_cortex_tune): Likewise.
8209         (arm_cortex_a8_tune): Likewise.
8210         (arm_cortex_a7_tune): Likewise.
8211         (arm_cortex_a15_tune): Likewise.
8212         (arm_cortex_a53_tune): Likewise.
8213         (arm_cortex_a57_tune): Likewise.
8214         (arm_xgene1_tune): Likewise.
8215         (arm_cortex_a5_tune): Likewise.
8216         (arm_cortex_a9_tune): Likewise.
8217         (arm_cortex_a12_tune): Likewise.
8218         (arm_v7m_tune): Likewise.
8219         (arm_cortex_m7_tune): Likewise.
8220         (arm_v6m_tune): Likewise.
8221         (arm_fa726te_tune): Likewise.
8223 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
8225         * altivec.md: Delete UNSPEC_VMLADDUHM.
8226         (mulv4si3_p8): New pattern.
8227         (mulv4si3): Use it for POWER8.
8228         (mulv8hi3): Use vmladduhm with zero addend.
8229         (altivec_vmladduhm): Descriptive RTL.
8231 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
8233         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8234         to use neon_move instead of mov_imm.
8235         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8236         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8238         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8239         aarch64_float_const_zero_rtx_p check before TFmode check.
8240         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8241         an fp zero.
8242         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
8243         code and attributes to match.  Change condition from register_operand
8244         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
8245         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
8246         to store2.
8248 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
8250         PR debug/66535
8251         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8252         there is no parent.
8254 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
8256         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8257         HOST_WIDE_INT parameter.
8259 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
8261         PR ipa/66181
8262         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8263         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8264         TYPE_NO_FORCE_BLK.
8265         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8267 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
8269         * rtl.h (classify_insn): Declare.
8270         * emit-rtl.c (classify_insn): Move to...
8271         * rtl.c: ...here and add generator support.
8272         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8273         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8274         * genemit.c (gen_emit_seq): New function.
8275         (gen_expand, gen_split): Use it.
8277 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
8279         * tree.c (make_vector_stat): Fix comment to state that the
8280         function returns a VECTOR_CST.
8282 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
8284         * gensupport.h (add_implicit_parallel): Declare.
8285         * genrecog.c (add_implicit_parallel): Move to...
8286         * gensupport.c (add_implicit_parallel): ...here.
8287         (process_one_cond_exec): Use it.
8288         * genemit.c (gen_insn): Likewise.
8290 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
8292         PR bootstrap/66448
8293         * passes.c (rest_of_decl_compilation): Do not register globals for
8294         early debug if they are declared in built-ins.
8296 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
8298         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8300 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8302         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8303         manually swapping.
8304         (noce_try_cmove_arith): Likewise.
8305         (noce_get_alt_condition): Likewise.
8307 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8309         * common/config/i386/i386-common.c
8310         (OPTION_MASK_ISA_MWAITX_SET): New.
8311         (ix86_handle_option): Handle mwaitx.
8312         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8313         (x86_64-*-*): Likewise.
8314         * config/i386/mwaitxintrin.h: New header.
8315         * config/i386/cpuid.h (bit_MWAITX):  Define.
8316         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8317         MWAITX support.
8318         * config/i386/i386.opt (mwaitx): New.
8319         * config/i386/i386-builtin-types.def
8320         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8321         * config/i386/i386-c.c: Define __MWAITX__ if needed.
8322         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8323         (PTA_MWAITX): New.
8324         (ix86_option_override_internal): Handle new option.
8325         (processor_alias_table): Added PTA_MWAITX.
8326         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8327         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8328         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8329         IX86_BUILTIN_MONITORX  built-ins.
8330         * config/i386/i386.h (TARGET_MWAITX): New.
8331         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8332         UNSPEC_MONITORX.
8333         (mwaitx):  New pattern.
8334         (monitorx_<mode>): New pattern.
8335         * config/i386/x86intrin.h: Include mwaitxintrin.h.
8336         * doc/extend.texi: Document monitorx and mwaitx builtins.
8337         * doc/invoke.texi: Document -mmwaitx option.
8339 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
8341         * emit-rtl.c (need_atomic_barrier_p): Mask model with
8342         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
8344 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8346         * dbxout.c (xcoff_debug_hooks): Provide a function for
8347         register_main_translation_unit hook.
8349 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8351         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8352         variants cases from switch.
8353         (rs6000_post_atomic_barrier): Same.
8354         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8355         (rs6000_expand_atomic_exchange): Same.
8356         (rs6000_expand_atomic_op): Same.
8357         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8358         SYNC variants cases from switch.
8359         (atomic_load): Same.
8360         (atomic_store): Same.
8362 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
8364         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8365         CONST_INT for goto.
8367 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
8369         PR bootstrap/66448
8370         * dwarf2out.c (check_die): Check for common duplicate attributes.
8371         (add_location_or_const_value_attribute): Do not add duplicate
8372         attributes.
8373         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8374         time around.
8375         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8376         (gen_type_die_with_usage): Call check_die.
8377         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8379 2015-06-11  Jason Merrill  <jason@redhat.com>
8381         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8382         dies.
8384 2015-06-11  Marek Polacek  <polacek@redhat.com>
8386         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8388 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
8390         PR bootstrap/66252
8391         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8392         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8393         (*addx_extend_sp32): Fix pasto.
8394         (*subx_extend): Rename into...
8395         (*subx_extend_sp32): ...this.
8396         (*adddi3_extend_sp32): Add earlyclobber.
8397         (*subdi3_insn_sp32): Likewise.
8398         (*subdi3_extend_sp32): Likewise.
8399         (*and_not_di_sp32): Likewise.
8400         (*or_not_di_sp32): Likewise.
8401         (*xor_not_di_sp32): Likewise.
8402         (*negdi2_sp32): Likewise.
8403         (*one_cmpldi2_sp32): Likewise.
8405 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
8407         * debug.h (struct gcc_debug_hooks): Add a
8408         register_main_translation_unit hook.
8409         * debug.c (do_nothing_debug_hooks): Provide a function for this
8410         new hook.
8411         * dbxout.c (dbx_debug_hooks): Likewise.
8412         * sdbout.c (sdb_debug_hooks): Likewise.
8413         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8414         * dwarf2out.c (main_translation_unit): New global variable.
8415         (dwarf2out_register_main_translation_unit): New function
8416         implementing the new hook.
8417         (dwarf2_debug_hooks): Assign
8418         dwarf2out_register_main_translation_unit to this new hook.
8419         (dwarf2out_init): Associate any main translation unit to
8420         comp_unit_die ().
8422 2015-06-11  Marek Polacek  <polacek@redhat.com>
8424         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8426 2015-06-11  Marek Polacek  <polacek@redhat.com>
8428         * match.pd: Use single_use throughout.
8430 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8432         * config/arm/arm.c (arm_option_params_internal): When optimising
8433         for speed set max_insns_skipped when arm_restrict_it.
8435 2015-06-11  Christian Bruel  <christian.bruel@st.com>
8437         PR target/52144
8438         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8439          macros in ...
8440         (arm_cpu_builtins): New function.
8441         (arm_pragma_target_parse): Call arm_cpu_builtins.
8442         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8443         (arm_register_target_pragmas): Likewise.
8444         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8445          Call arm_register_target_pragmas.
8446         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8447         (arm_pragma_target_parse): Likewise.
8449 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8451         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8452         of the second operand.
8454 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
8456         PR target/66473
8457         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8458         to prepare mask operand for AVX512 modes.
8460 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8462         PR target/66474
8463         * doc/md.texi (Machine Constraints): Document that on the PowerPC
8464         if you use a constraint that targets a VSX register, you must use
8465         %x<n> in the template.
8467 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
8469         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8470         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8471         (define_insn "trap"): New definition.
8473 2015-06-10  Richard Biener  <rguenther@suse.de>
8475         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8476         out from ...
8477         (vect_supported_load_permutation_p): ... here.  Handle
8478         supportable permutations in reductions.
8479         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8480         for vectorizing strided group loads.
8482 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
8484         PR target/66470
8485         * config/i386/i386.c (ix86_split_long_move): For collisions
8486         involving direct tls segment refs, move the UNSPEC_TP possibly
8487         wrapped in ZERO_EXTEND out of the address for lea, to each of
8488         the memory loads.
8490 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8492         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8493         dmb sy. Adjust tabs.
8495 2015-06-10  Tom de Vries  <tom@codesourcery.com>
8497         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8499 2015-06-10  Martin Liska  <mliska@suse.cz>
8501         PR bootstrap/66471
8502         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8503         all enum values in mem_alloc_origin.
8504         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8505         name.
8506         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8507         * bitmap.c (bitmap_register): Likewise.
8508         (dump_bitmap_statistics): Likewise.
8509         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8510         (ggc_record_overhead): Likewise.
8511         * hash-map.h: Likewise.
8512         * hash-set.h: Likewise.
8513         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8514         * hash-table.h: Likewise.
8515         * vec.c (vec_prefix::register_overhead): Likewise.
8516         (vec_prefix::release_overhead): Likewise.
8517         (dump_vec_loc_statistics): Likewise.
8519 2015-06-09  Christian Bruel  <christian.bruel@st.com>
8521         PR target/52144
8522         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8523         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8524         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8525         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8526         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8527         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8528         (arm_valid_target_attribute_p): Likewise.
8529         (arm_set_current_function, arm_can_inline_p): Likewise.
8530         (arm_valid_target_attribute_rec): Likewise.
8531         (arm_previous_fndecl): New variable.
8532         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8533         (TARGET_CAN_INLINE_P): Define.
8534         (arm_asm_trampoline_template): Emit mode.
8535         (arm_file_start): Don't set unified syntax.
8536         (arm_declare_function_name): Set unified syntax and mode.
8537         (arm_option_override): Init target_option_default_node.
8538         and target_option_current_node.
8539         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8540         (*call_symbol): Likewise.
8541         * doc/extend.texi: Document ARM/Thumb target attribute.
8542         * doc/invoke.texi: Likewise.
8544 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8546         Revert:
8547         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8548         PR rtl-optimization/64164
8549         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8550         * tree-ssa-copyrename.c: Removed.
8551         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8552         -ftree-coalesce-vars.
8553         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8554         * common.opt (ftree-copyrename): Ignore.
8555         (ftree-coalesce-inlined-vars): Likewise.
8556         * doc/invoke.texi: Remove the ignored options above.
8557         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8558         * tree-ssa-coalesce.h: ... here.
8559         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8560         headers required by it.
8561         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8562         across variables when flag_tree_coalesce_vars.  Check register
8563         use and promoted modes to allow coalescing.  Moved to
8564         tree-ssa-coalesce.c.
8565         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8566         with its member functions to tree-ssa-coalesce.c.
8567         (var_map_base_init): Likewise.  Renamed to
8568         compute_samebase_partition_bases.
8569         (partition_view_normal): Drop want_bases parameter.
8570         (partition_view_bitmap): Likewise.
8571         * tree-ssa-live.h: Adjust declarations.
8572         * tree-ssa-coalesce.c: Include explow.h.
8573         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8574         default defs at the entry point.
8575         (dump_part_var_map): New.
8576         (compute_optimized_partition_bases): New, called by...
8577         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8578         of compute_samebase_partition_bases.  Adjust.
8579         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8580         * cfgexpand.c (leader_merge): New.
8581         (get_rtl_for_parm_ssa_default_def): New.
8582         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8583         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8584         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8585         redundant MEM attr setting.
8586         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8587         from...
8588         (expand_one_stack_var): ... this.  New wrapper to check and
8589         skip already expanded SSA partitions.
8590         (record_alignment_for_reg_var): New, factored out of...
8591         (expand_one_var): ... this.
8592         (expand_one_ssa_partition): New.
8593         (adjust_one_expanded_partition_var): New.
8594         (expand_one_register_var): Check and skip already expanded SSA
8595         partitions.
8596         (expand_used_vars): Don't create DECLs for anonymous SSA
8597         names.  Expand all SSA partitions, then adjust all SSA names.
8598         (pass::execute): Replace the loops that set
8599         SA.partition_to_pseudo from partition leaders and cleared
8600         DECL_RTL for multi-location variables, and that which used to
8601         rename vars and set attrs, with one that clears DECL_RTL and
8602         checks that PARMs and RESULTs default_defs match DECL_RTL.
8603         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8604         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8605         * explow.c (promote_ssa_mode): New.
8606         * explow.h (promote_ssa_mode): Declare.
8607         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8608         * function.c: Include cfgexpand.h.
8609         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8610         (use_register_for_parm_decl): Wrapper for the above to
8611         special-case the result_ptr.
8612         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8613         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8614         multiple locations.
8615         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8616         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8617         (assign_parm_setup_block): Prefer SSA-assigned location.
8618         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8619         if stack_parm is NULL.
8620         (assign_parm_setup_stack): Prefer SSA-assigned location.
8621         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8622         rtl before testing for pointer bounds.  Special-case result_ptr.
8623         (expand_function_start): Maybe reset DECL_RTL of result.
8624         Prefer SSA-assigned location for result and static chain.
8625         Factor out DECL_RESULT and SET_DECL_RTL.
8626         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8627         anonymous SSA names.  Use promote_ssa_mode.
8628         (get_temp_reg): Likewise.
8629         (remove_ssa_form): Adjust.
8630         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8631         and get its reg_usage for reg invalidation.
8632         (compute_bb_dataflow): Pass it insn.
8633         (emit_notes_in_bb): Likewise.
8634         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8635         fail assert on conversion between unsigned types.
8637 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8639         PR tree-optimization/65460
8640         * omp-low.c (expand_omp_target): Set parallelized_function on
8641         cgraph_node for child_fn.
8643 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8645         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8646         parallelized_function before add_new_function.
8648 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
8650         * gcc-plugin.h: Move decls to plugin.h and include it.
8651         * plugin.h: Relocate decls from gcc-plugin.h
8652         * ggc-page.c: Include required header files.
8653         * passes.c: Likewise.
8654         * cgraphunit.c: Likewise.
8656 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8658         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8660 2015-06-09  Jason Merrill  <jason@redhat.com>
8662         PR bootstrap/66448
8663         * toplev.c (check_global_declaration): Don't warn about a clone.
8665 2015-06-09  Marek Polacek  <polacek@redhat.com>
8667         PR tree-optimization/66299
8668         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8669         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8670         patterns.
8672 2015-06-09  Richard Biener  <rguenther@suse.de>
8674         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8675         (vect_analyze_slp_instance): Instead do not falsely drop
8676         load permutations.
8678 2015-06-09  Richard Biener  <rguenther@suse.de>
8680         PR middle-end/66423
8681         * match.pd: Handle A % (unsigned)(1 << B).
8683 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
8685         * varasm.c (output_object_block_htab): Remove.
8686         (output_object_block_compare): New.
8687         (output_object_blocks): Sort named object_blocks before outputting
8688         them.
8690 2015-06-09  Richard Biener  <rguenther@suse.de>
8692         PR tree-optimization/66419
8693         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8694         consider GROUP_GAP when detecting a perfect subchain.
8696 2015-06-09  Nick Clifton  <nickc@redhat.com>
8698         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8699         place read only data in the .frodata section.
8701 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
8703         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8704         (atomic_store<mode>): Likewise.
8706 2015-06-09  Richard Biener  <rguenther@suse.de>
8708         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8710 2015-06-09  Richard Biener  <rguenther@suse.de>
8712         PR middle-end/66413
8713         * tree-inline.c (insert_init_debug_bind): Unshare value.
8715 2015-06-09  Richard Biener  <rguenther@suse.de>
8717         PR tree-optimization/66396
8718         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8719         Rename virtual operands.
8721 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8723         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8724         always return false.
8726 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8728         PR rtl-optimization/64164
8729         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8730         * tree-ssa-copyrename.c: Removed.
8731         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8732         -ftree-coalesce-vars.
8733         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8734         * common.opt (ftree-copyrename): Ignore.
8735         (ftree-coalesce-inlined-vars): Likewise.
8736         * doc/invoke.texi: Remove the ignored options above.
8737         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8738         * tree-ssa-coalesce.h: ... here.
8739         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8740         headers required by it.
8741         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8742         across variables when flag_tree_coalesce_vars.  Check register
8743         use and promoted modes to allow coalescing.  Moved to
8744         tree-ssa-coalesce.c.
8745         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8746         with its member functions to tree-ssa-coalesce.c.
8747         (var_map_base_init): Likewise.  Renamed to
8748         compute_samebase_partition_bases.
8749         (partition_view_normal): Drop want_bases parameter.
8750         (partition_view_bitmap): Likewise.
8751         * tree-ssa-live.h: Adjust declarations.
8752         * tree-ssa-coalesce.c: Include explow.h.
8753         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8754         default defs at the entry point.
8755         (dump_part_var_map): New.
8756         (compute_optimized_partition_bases): New, called by...
8757         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8758         of compute_samebase_partition_bases.  Adjust.
8759         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8760         * cfgexpand.c (leader_merge): New.
8761         (get_rtl_for_parm_ssa_default_def): New.
8762         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8763         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8764         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8765         redundant MEM attr setting.
8766         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8767         from...
8768         (expand_one_stack_var): ... this.  New wrapper to check and
8769         skip already expanded SSA partitions.
8770         (record_alignment_for_reg_var): New, factored out of...
8771         (expand_one_var): ... this.
8772         (expand_one_ssa_partition): New.
8773         (adjust_one_expanded_partition_var): New.
8774         (expand_one_register_var): Check and skip already expanded SSA
8775         partitions.
8776         (expand_used_vars): Don't create DECLs for anonymous SSA
8777         names.  Expand all SSA partitions, then adjust all SSA names.
8778         (pass::execute): Replace the loops that set
8779         SA.partition_to_pseudo from partition leaders and cleared
8780         DECL_RTL for multi-location variables, and that which used to
8781         rename vars and set attrs, with one that clears DECL_RTL and
8782         checks that PARMs and RESULTs default_defs match DECL_RTL.
8783         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8784         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8785         * explow.c (promote_ssa_mode): New.
8786         * explow.h (promote_ssa_mode): Declare.
8787         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8788         * function.c: Include cfgexpand.h.
8789         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8790         (use_register_for_parm_decl): Wrapper for the above to
8791         special-case the result_ptr.
8792         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8793         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8794         multiple locations.
8795         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8796         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8797         (assign_parm_setup_block): Prefer SSA-assigned location.
8798         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8799         if stack_parm is NULL.
8800         (assign_parm_setup_stack): Prefer SSA-assigned location.
8801         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8802         rtl before testing for pointer bounds.  Special-case result_ptr.
8803         (expand_function_start): Maybe reset DECL_RTL of result.
8804         Prefer SSA-assigned location for result and static chain.
8805         Factor out DECL_RESULT and SET_DECL_RTL.
8806         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8807         anonymous SSA names.  Use promote_ssa_mode.
8808         (get_temp_reg): Likewise.
8809         (remove_ssa_form): Adjust.
8810         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8811         and get its reg_usage for reg invalidation.
8812         (compute_bb_dataflow): Pass it insn.
8813         (emit_notes_in_bb): Likewise.
8814         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8815         fail assert on conversion between unsigned types.
8817 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8819         PR debug/58315
8820         * tree-inline.c (reset_debug_binding): New.
8821         (reset_debug_bindings): Likewise.
8822         (expand_call_inline): Call it.
8824 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8826         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
8827         TYPE_STRING_FLAG.
8829 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8831         * lto-streamer-out.c (lto_output_location): Stream
8832         reserved locations correctly.
8833         * lto-streamer-in.c (lto_output_location): Likewise.
8835 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
8837         * coretypes.h: Include hash-table.h and hash-set.h for host files.
8838         * ggc.h: Don't include statistics.h>
8839         * hash-map.h: Remove all includes.
8840         * hash-set.h: Likewise.
8841         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
8842         the include list. Remove <new>.
8843         * inchash.h: Remove all includes.
8844         * mem-stats.h: Likewise.
8845         * vec.h: No special processing for generators or ggc.
8846         * alias.c : Adjust include files.
8847         * alloc-pool.c : Likewise.
8848         * alloc-pool.h : Likewise.
8849         * asan.c : Likewise.
8850         * attribs.c : Likewise.
8851         * auto-inc-dec.c : Likewise.
8852         * auto-profile.c : Likewise.
8853         * bb-reorder.c : Likewise.
8854         * bitmap.c : Likewise.
8855         * bitmap.h : Likewise.
8856         * bt-load.c : Likewise.
8857         * builtins.c : Likewise.
8858         * caller-save.c : Likewise.
8859         * calls.c : Likewise.
8860         * ccmp.c : Likewise.
8861         * cfg.c : Likewise.
8862         * cfganal.c : Likewise.
8863         * cfgbuild.c : Likewise.
8864         * cfgcleanup.c : Likewise.
8865         * cfgexpand.c : Likewise.
8866         * cfghooks.c : Likewise.
8867         * cfgloop.c : Likewise.
8868         * cfgloop.h : Likewise.
8869         * cfgloopanal.c : Likewise.
8870         * cfgloopmanip.c : Likewise.
8871         * cfgrtl.c : Likewise.
8872         * cgraph.c : Likewise.
8873         * cgraphbuild.c : Likewise.
8874         * cgraphclones.c : Likewise.
8875         * cgraphunit.c : Likewise.
8876         * cilk-common.c : Likewise.
8877         * combine-stack-adj.c : Likewise.
8878         * combine.c : Likewise.
8879         * compare-elim.c : Likewise.
8880         * context.c : Likewise.
8881         * convert.c : Likewise.
8882         * coverage.c : Likewise.
8883         * cppbuiltin.c : Likewise.
8884         * cprop.c : Likewise.
8885         * cse.c : Likewise.
8886         * cselib.c : Likewise.
8887         * data-streamer-in.c : Likewise.
8888         * data-streamer-out.c : Likewise.
8889         * data-streamer.c : Likewise.
8890         * data-streamer.h : Likewise.
8891         * dbxout.c : Likewise.
8892         * dce.c : Likewise.
8893         * ddg.c : Likewise.
8894         * debug.c : Likewise.
8895         * df-core.c : Likewise.
8896         * df-problems.c : Likewise.
8897         * df-scan.c : Likewise.
8898         * df.h : Likewise.
8899         * dfp.c : Likewise.
8900         * dojump.c : Likewise.
8901         * dominance.c : Likewise.
8902         * domwalk.c : Likewise.
8903         * double-int.c : Likewise.
8904         * dse.c : Likewise.
8905         * dumpfile.c : Likewise.
8906         * dwarf2asm.c : Likewise.
8907         * dwarf2cfi.c : Likewise.
8908         * dwarf2out.c : Likewise.
8909         * emit-rtl.c : Likewise.
8910         * et-forest.c : Likewise.
8911         * except.c : Likewise.
8912         * except.h : Likewise.
8913         * explow.c : Likewise.
8914         * expmed.c : Likewise.
8915         * expr.c : Likewise.
8916         * final.c : Likewise.
8917         * fixed-value.c : Likewise.
8918         * fold-const.c : Likewise.
8919         * function.c : Likewise.
8920         * fwprop.c : Likewise.
8921         * gcc-plugin.h : Likewise.
8922         * gcc.c : Likewise.
8923         * gcse-common.c : Likewise.
8924         * gcse.c : Likewise.
8925         * genattrtab.c : Likewise.
8926         * genautomata.c : Likewise.
8927         * genconditions.c : Likewise.
8928         * genemit.c : Likewise.
8929         * generic-match-head.c : Likewise.
8930         * genextract.c : Likewise.
8931         * gengtype-state.c : Likewise.
8932         * gengtype.c : Likewise.
8933         * genhooks.c : Likewise.
8934         * genmatch.c : Likewise.
8935         * genmodes.c : Likewise.
8936         * genrecog.c : Likewise.
8937         * gensupport.c : Likewise.
8938         * ggc-common.c : Likewise.
8939         * ggc-internal.h : Likewise.
8940         * ggc-none.c : Likewise.
8941         * ggc-page.c : Likewise.
8942         * gimple-builder.c : Likewise.
8943         * gimple-expr.c : Likewise.
8944         * gimple-fold.c : Likewise.
8945         * gimple-iterator.c : Likewise.
8946         * gimple-low.c : Likewise.
8947         * gimple-match-head.c : Likewise.
8948         * gimple-pretty-print.c : Likewise.
8949         * gimple-ssa-isolate-paths.c : Likewise.
8950         * gimple-ssa-strength-reduction.c : Likewise.
8951         * gimple-ssa.h : Likewise.
8952         * gimple-streamer-in.c : Likewise.
8953         * gimple-streamer-out.c : Likewise.
8954         * gimple-streamer.h : Likewise.
8955         * gimple-walk.c : Likewise.
8956         * gimple.c : Likewise.
8957         * gimplify-me.c : Likewise.
8958         * gimplify.c : Likewise.
8959         * godump.c : Likewise.
8960         * graph.c : Likewise.
8961         * graphds.c : Likewise.
8962         * graphite-blocking.c : Likewise.
8963         * graphite-dependences.c : Likewise.
8964         * graphite-interchange.c : Likewise.
8965         * graphite-isl-ast-to-gimple.c : Likewise.
8966         * graphite-optimize-isl.c : Likewise.
8967         * graphite-poly.c : Likewise.
8968         * graphite-scop-detection.c : Likewise.
8969         * graphite-sese-to-poly.c : Likewise.
8970         * graphite.c : Likewise.
8971         * haifa-sched.c : Likewise.
8972         * hard-reg-set.h : Likewise.
8973         * hw-doloop.c : Likewise.
8974         * ifcvt.c : Likewise.
8975         * inchash.c : Likewise.
8976         * incpath.c : Likewise.
8977         * init-regs.c : Likewise.
8978         * input.c : Likewise.
8979         * internal-fn.c : Likewise.
8980         * ipa-chkp.c : Likewise.
8981         * ipa-comdats.c : Likewise.
8982         * ipa-cp.c : Likewise.
8983         * ipa-devirt.c : Likewise.
8984         * ipa-icf-gimple.c : Likewise.
8985         * ipa-icf.c : Likewise.
8986         * ipa-inline-analysis.c : Likewise.
8987         * ipa-inline-transform.c : Likewise.
8988         * ipa-inline.c : Likewise.
8989         * ipa-polymorphic-call.c : Likewise.
8990         * ipa-profile.c : Likewise.
8991         * ipa-prop.c : Likewise.
8992         * ipa-pure-const.c : Likewise.
8993         * ipa-ref.c : Likewise.
8994         * ipa-reference.c : Likewise.
8995         * ipa-split.c : Likewise.
8996         * ipa-utils.c : Likewise.
8997         * ipa-visibility.c : Likewise.
8998         * ipa.c : Likewise.
8999         * ira-build.c : Likewise.
9000         * ira-color.c : Likewise.
9001         * ira-conflicts.c : Likewise.
9002         * ira-costs.c : Likewise.
9003         * ira-emit.c : Likewise.
9004         * ira-lives.c : Likewise.
9005         * ira.c : Likewise.
9006         * jump.c : Likewise.
9007         * langhooks.c : Likewise.
9008         * lcm.c : Likewise.
9009         * libfuncs.h : Likewise.
9010         * lists.c : Likewise.
9011         * loop-doloop.c : Likewise.
9012         * loop-init.c : Likewise.
9013         * loop-invariant.c : Likewise.
9014         * loop-iv.c : Likewise.
9015         * loop-unroll.c : Likewise.
9016         * lower-subreg.c : Likewise.
9017         * lra-assigns.c : Likewise.
9018         * lra-coalesce.c : Likewise.
9019         * lra-constraints.c : Likewise.
9020         * lra-eliminations.c : Likewise.
9021         * lra-lives.c : Likewise.
9022         * lra-remat.c : Likewise.
9023         * lra-spills.c : Likewise.
9024         * lra.c : Likewise.
9025         * lto-cgraph.c : Likewise.
9026         * lto-compress.c : Likewise.
9027         * lto-opts.c : Likewise.
9028         * lto-section-in.c : Likewise.
9029         * lto-section-out.c : Likewise.
9030         * lto-streamer-in.c : Likewise.
9031         * lto-streamer-out.c : Likewise.
9032         * lto-streamer.c : Likewise.
9033         * lto-streamer.h : Likewise.
9034         * mcf.c : Likewise.
9035         * mode-switching.c : Likewise.
9036         * modulo-sched.c : Likewise.
9037         * omega.c : Likewise.
9038         * omp-low.c : Likewise.
9039         * optabs.c : Likewise.
9040         * opts-global.c : Likewise.
9041         * opts.h : Likewise.
9042         * passes.c : Likewise.
9043         * plugin.c : Likewise.
9044         * postreload-gcse.c : Likewise.
9045         * postreload.c : Likewise.
9046         * predict.c : Likewise.
9047         * print-rtl.c : Likewise.
9048         * print-tree.c : Likewise.
9049         * profile.c : Likewise.
9050         * read-md.c : Likewise.
9051         * read-md.h : Likewise.
9052         * read-rtl.c : Likewise.
9053         * real.c : Likewise.
9054         * realmpfr.c : Likewise.
9055         * recog.c : Likewise.
9056         * ree.c : Likewise.
9057         * reg-stack.c : Likewise.
9058         * regcprop.c : Likewise.
9059         * reginfo.c : Likewise.
9060         * regrename.c : Likewise.
9061         * regstat.c : Likewise.
9062         * reload.c : Likewise.
9063         * reload1.c : Likewise.
9064         * reorg.c : Likewise.
9065         * resource.c : Likewise.
9066         * rtl-chkp.c : Likewise.
9067         * rtl.c : Likewise.
9068         * rtl.h : Likewise.
9069         * rtlanal.c : Likewise.
9070         * rtlhash.c : Likewise.
9071         * rtlhash.h : Likewise.
9072         * rtlhooks.c : Likewise.
9073         * sanopt.c : Likewise.
9074         * sched-deps.c : Likewise.
9075         * sched-ebb.c : Likewise.
9076         * sched-rgn.c : Likewise.
9077         * sched-vis.c : Likewise.
9078         * sdbout.c : Likewise.
9079         * sel-sched-dump.c : Likewise.
9080         * sel-sched-ir.c : Likewise.
9081         * sel-sched-ir.h : Likewise.
9082         * sel-sched.c : Likewise.
9083         * sese.c : Likewise.
9084         * shrink-wrap.c : Likewise.
9085         * shrink-wrap.h : Likewise.
9086         * simplify-rtx.c : Likewise.
9087         * stack-ptr-mod.c : Likewise.
9088         * statistics.c : Likewise.
9089         * stmt.c : Likewise.
9090         * stor-layout.c : Likewise.
9091         * store-motion.c : Likewise.
9092         * stringpool.c : Likewise.
9093         * symtab.c : Likewise.
9094         * target-globals.c : Likewise.
9095         * targhooks.c : Likewise.
9096         * tlink.c : Likewise.
9097         * toplev.c : Likewise.
9098         * tracer.c : Likewise.
9099         * trans-mem.c : Likewise.
9100         * tree-affine.c : Likewise.
9101         * tree-affine.h : Likewise.
9102         * tree-browser.c : Likewise.
9103         * tree-call-cdce.c : Likewise.
9104         * tree-cfg.c : Likewise.
9105         * tree-cfgcleanup.c : Likewise.
9106         * tree-chkp-opt.c : Likewise.
9107         * tree-chkp.c : Likewise.
9108         * tree-chrec.c : Likewise.
9109         * tree-complex.c : Likewise.
9110         * tree-data-ref.c : Likewise.
9111         * tree-dfa.c : Likewise.
9112         * tree-diagnostic.c : Likewise.
9113         * tree-dump.c : Likewise.
9114         * tree-eh.c : Likewise.
9115         * tree-eh.h : Likewise.
9116         * tree-emutls.c : Likewise.
9117         * tree-hasher.h : Likewise.
9118         * tree-if-conv.c : Likewise.
9119         * tree-inline.c : Likewise.
9120         * tree-inline.h : Likewise.
9121         * tree-into-ssa.c : Likewise.
9122         * tree-iterator.c : Likewise.
9123         * tree-loop-distribution.c : Likewise.
9124         * tree-nested.c : Likewise.
9125         * tree-nrv.c : Likewise.
9126         * tree-object-size.c : Likewise.
9127         * tree-outof-ssa.c : Likewise.
9128         * tree-parloops.c : Likewise.
9129         * tree-phinodes.c : Likewise.
9130         * tree-predcom.c : Likewise.
9131         * tree-pretty-print.c : Likewise.
9132         * tree-profile.c : Likewise.
9133         * tree-scalar-evolution.c : Likewise.
9134         * tree-sra.c : Likewise.
9135         * tree-ssa-address.c : Likewise.
9136         * tree-ssa-alias.c : Likewise.
9137         * tree-ssa-ccp.c : Likewise.
9138         * tree-ssa-coalesce.c : Likewise.
9139         * tree-ssa-copy.c : Likewise.
9140         * tree-ssa-copyrename.c : Likewise.
9141         * tree-ssa-dce.c : Likewise.
9142         * tree-ssa-dom.c : Likewise.
9143         * tree-ssa-dse.c : Likewise.
9144         * tree-ssa-forwprop.c : Likewise.
9145         * tree-ssa-ifcombine.c : Likewise.
9146         * tree-ssa-live.c : Likewise.
9147         * tree-ssa-loop-ch.c : Likewise.
9148         * tree-ssa-loop-im.c : Likewise.
9149         * tree-ssa-loop-ivcanon.c : Likewise.
9150         * tree-ssa-loop-ivopts.c : Likewise.
9151         * tree-ssa-loop-manip.c : Likewise.
9152         * tree-ssa-loop-niter.c : Likewise.
9153         * tree-ssa-loop-prefetch.c : Likewise.
9154         * tree-ssa-loop-unswitch.c : Likewise.
9155         * tree-ssa-loop.c : Likewise.
9156         * tree-ssa-math-opts.c : Likewise.
9157         * tree-ssa-operands.c : Likewise.
9158         * tree-ssa-phiopt.c : Likewise.
9159         * tree-ssa-phiprop.c : Likewise.
9160         * tree-ssa-pre.c : Likewise.
9161         * tree-ssa-propagate.c : Likewise.
9162         * tree-ssa-reassoc.c : Likewise.
9163         * tree-ssa-sccvn.c : Likewise.
9164         * tree-ssa-scopedtables.c : Likewise.
9165         * tree-ssa-sink.c : Likewise.
9166         * tree-ssa-strlen.c : Likewise.
9167         * tree-ssa-structalias.c : Likewise.
9168         * tree-ssa-tail-merge.c : Likewise.
9169         * tree-ssa-ter.c : Likewise.
9170         * tree-ssa-threadedge.c : Likewise.
9171         * tree-ssa-threadupdate.c : Likewise.
9172         * tree-ssa-uncprop.c : Likewise.
9173         * tree-ssa-uninit.c : Likewise.
9174         * tree-ssa.c : Likewise.
9175         * tree-ssanames.c : Likewise.
9176         * tree-stdarg.c : Likewise.
9177         * tree-streamer-in.c : Likewise.
9178         * tree-streamer-out.c : Likewise.
9179         * tree-streamer.c : Likewise.
9180         * tree-streamer.h : Likewise.
9181         * tree-switch-conversion.c : Likewise.
9182         * tree-tailcall.c : Likewise.
9183         * tree-vect-data-refs.c : Likewise.
9184         * tree-vect-generic.c : Likewise.
9185         * tree-vect-loop-manip.c : Likewise.
9186         * tree-vect-loop.c : Likewise.
9187         * tree-vect-patterns.c : Likewise.
9188         * tree-vect-slp.c : Likewise.
9189         * tree-vect-stmts.c : Likewise.
9190         * tree-vectorizer.c : Likewise.
9191         * tree-vectorizer.h : Likewise.
9192         * tree-vrp.c : Likewise.
9193         * tree.c : Likewise.
9194         * tsan.c : Likewise.
9195         * ubsan.c : Likewise.
9196         * valtrack.c : Likewise.
9197         * valtrack.h : Likewise.
9198         * value-prof.c : Likewise.
9199         * var-tracking.c : Likewise.
9200         * varasm.c : Likewise.
9201         * varpool.c : Likewise.
9202         * vec.c: Likewise.
9203         * vmsdbgout.c : Likewise.
9204         * vtable-verify.c : Likewise.
9205         * vtable-verify.h : Likewise.
9206         * web.c : Likewise.
9207         * wide-int.cc : Likewise.
9208         * xcoffout.c : Likewise.
9209         * config/aarch64/aarch64-builtins.c : Likewise.
9210         * config/aarch64/aarch64.c : Likewise.
9211         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9212         * config/alpha/alpha.c : Likewise.
9213         * config/arc/arc.c : Likewise.
9214         * config/arm/aarch-common.c : Likewise.
9215         * config/arm/arm-builtins.c : Likewise.
9216         * config/arm/arm-c.c : Likewise.
9217         * config/arm/arm.c : Likewise.
9218         * config/avr/avr-c.c : Likewise.
9219         * config/avr/avr-log.c : Likewise.
9220         * config/avr/avr.c : Likewise.
9221         * config/bfin/bfin.c : Likewise.
9222         * config/c6x/c6x.c : Likewise.
9223         * config/cr16/cr16.c : Likewise.
9224         * config/cris/cris.c : Likewise.
9225         * config/darwin-c.c : Likewise.
9226         * config/darwin.c : Likewise.
9227         * config/default-c.c : Likewise.
9228         * config/epiphany/epiphany.c : Likewise.
9229         * config/epiphany/mode-switch-use.c : Likewise.
9230         * config/epiphany/resolve-sw-modes.c : Likewise.
9231         * config/fr30/fr30.c : Likewise.
9232         * config/frv/frv.c : Likewise.
9233         * config/ft32/ft32.c : Likewise.
9234         * config/glibc-c.c : Likewise.
9235         * config/h8300/h8300.c : Likewise.
9236         * config/i386/i386-c.c : Likewise.
9237         * config/i386/i386.c : Likewise.
9238         * config/i386/msformat-c.c : Likewise.
9239         * config/i386/winnt-cxx.c : Likewise.
9240         * config/i386/winnt-stubs.c : Likewise.
9241         * config/i386/winnt.c : Likewise.
9242         * config/ia64/ia64-c.c : Likewise.
9243         * config/ia64/ia64.c : Likewise.
9244         * config/iq2000/iq2000.c : Likewise.
9245         * config/lm32/lm32.c : Likewise.
9246         * config/m32c/m32c-pragma.c : Likewise.
9247         * config/m32c/m32c.c : Likewise.
9248         * config/m32r/m32r.c : Likewise.
9249         * config/m68k/m68k.c : Likewise.
9250         * config/mcore/mcore.c : Likewise.
9251         * config/mep/mep-pragma.c : Likewise.
9252         * config/mep/mep.c : Likewise.
9253         * config/microblaze/microblaze-c.c : Likewise.
9254         * config/microblaze/microblaze.c : Likewise.
9255         * config/mips/mips.c : Likewise.
9256         * config/mmix/mmix.c : Likewise.
9257         * config/mn10300/mn10300.c : Likewise.
9258         * config/moxie/moxie.c : Likewise.
9259         * config/msp430/msp430-c.c : Likewise.
9260         * config/msp430/msp430.c : Likewise.
9261         * config/nds32/nds32-cost.c : Likewise.
9262         * config/nds32/nds32-fp-as-gp.c : Likewise.
9263         * config/nds32/nds32-intrinsic.c : Likewise.
9264         * config/nds32/nds32-isr.c : Likewise.
9265         * config/nds32/nds32-md-auxiliary.c : Likewise.
9266         * config/nds32/nds32-memory-manipulation.c : Likewise.
9267         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9268         * config/nds32/nds32-predicates.c : Likewise.
9269         * config/nds32/nds32.c : Likewise.
9270         * config/nios2/nios2.c : Likewise.
9271         * config/nvptx/nvptx.c : Likewise.
9272         * config/pa/pa.c : Likewise.
9273         * config/pdp11/pdp11.c : Likewise.
9274         * config/rl78/rl78-c.c : Likewise.
9275         * config/rl78/rl78.c : Likewise.
9276         * config/rs6000/rs6000-c.c : Likewise.
9277         * config/rs6000/rs6000.c : Likewise.
9278         * config/rx/rx.c : Likewise.
9279         * config/s390/s390-c.c : Likewise.
9280         * config/s390/s390.c : Likewise.
9281         * config/sh/sh-c.c : Likewise.
9282         * config/sh/sh-mem.cc : Likewise.
9283         * config/sh/sh.c : Likewise.
9284         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9285         * config/sh/sh_treg_combine.cc : Likewise.
9286         * config/sol2-c.c : Likewise.
9287         * config/sol2-cxx.c : Likewise.
9288         * config/sol2-stubs.c : Likewise.
9289         * config/sol2.c : Likewise.
9290         * config/sparc/sparc-c.c : Likewise.
9291         * config/sparc/sparc.c : Likewise.
9292         * config/spu/spu-c.c : Likewise.
9293         * config/spu/spu.c : Likewise.
9294         * config/stormy16/stormy16.c : Likewise.
9295         * config/tilegx/mul-tables.c : Likewise.
9296         * config/tilegx/tilegx-c.c : Likewise.
9297         * config/tilegx/tilegx.c : Likewise.
9298         * config/tilepro/mul-tables.c : Likewise.
9299         * config/tilepro/tilepro-c.c : Likewise.
9300         * config/tilepro/tilepro.c : Likewise.
9301         * config/v850/v850-c.c : Likewise.
9302         * config/v850/v850.c : Likewise.
9303         * config/vax/vax.c : Likewise.
9304         * config/visium/visium.c : Likewise.
9305         * config/vms/vms-c.c : Likewise.
9306         * config/vms/vms.c : Likewise.
9307         * config/vxworks.c : Likewise.
9308         * config/winnt-c.c : Likewise.
9309         * config/xtensa/xtensa.c : Likewise.
9311 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
9313         PR lto/65378
9314         * ipa-utils.h (warn_types_mismatch): Update prototype.
9315         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9316         parameters.
9317         (type_mismatch_p): New function.
9318         (warn_types_mismatch): Reorg to work better on non-C++ types.
9319         (odr_types_equivalent_p): Add loc1/loc2 parameters.
9320         (add_type_duplicate): Update.
9322 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9324         PR rtl-optimization/66444
9325         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9326         call_used_regs.
9328 2015-06-08  Richard Biener  <rguenther@suse.de>
9330         PR tree-optimization/66422
9331         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9332         block after inserted gcc_unreachable.
9334 2015-06-08  Nick Clifton  <nickc@redhat.com>
9336         * config/rx/rx.c (rx_function_value): Do not promote vector types.
9337         (rx_promote_function_mode): Likewise.
9338         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9340 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
9342         * genattrtab.c (insn_alternatives): Change type from int *
9343         to uint64_t *.
9344         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9345         (get_attr_value): Change type of num_alt to uint64_t.
9346         (compute_alternative_mask): Change return type from
9347         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9348         (make_alternative_compare, mk_attr_alt): Change argument type
9349         from int to uint64_t.
9350         (simplify_test_exp): Change type of i from int to uint64_t.
9351         Shift ((uint64_t) 1) instead of 1 up.
9352         (main): Adjust oballocvec first argument from int to uint64_t.
9353         Shift ((uint64_t) 1) instead of 1 up.
9355 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9357         PR other/65366
9358         * gdbhooks.py: Import sys.
9359         (intptr): New function.  Replace int(...) by intptr(...).
9361 2015-06-08  Richard Biener  <rguenther@suse.de>
9363         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9364         adjustment for gaps at the end of a SLP load group properly.
9365         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9366         all permutations we can generate.
9367         (vect_transform_slp_perm_load): Use the correct group-size.
9369 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
9371         * genmatch.c (expr::gen_transform): For conditions, guess the type
9372         from the second operand.
9374 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9376         PR tree-optimization/66442
9377         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9378         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9379         if the loop latch is not a singleton.  Use
9380         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9382 2015-06-08  Marek Polacek  <polacek@redhat.com>
9384         PR sanitizer/66452
9385         * toplev.c (check_global_declaration): Don't warn about artificial
9386         decls.
9388 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9390         PR tree-optimization/66436
9391         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9392         dump file.
9393         * gimplify.c: Add tree-dump.h include.
9394         (gimplify_function_tree): Dump function to gimple dump file.
9395         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9396         dump file.
9398 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9400         PR tree-optimization/66435
9401         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9402         function.
9404 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
9406         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9407         of ptr_type_node to not be ptr_to_node.
9408         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9409         TREE_TYPE of pointers.
9410         * gimple-expr.c (useless_type_conversion): Reorder the check for
9411         function pointers and TYPE_CANONICAL.
9413 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
9415         PR bootstrap/66319
9416         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9417         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9418         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9419         later.
9420         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9421         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9422         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9423         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9424         and non iso if unix2003.
9426 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
9428         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9430 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
9432         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9433         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9434         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9435         except.c, final.c, function.c, gcse-common.c, genemit.c,
9436         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9437         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9438         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9439         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9440         more derived ones.
9442 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
9444         * combine.c (combine_split_insns): Remove cast.
9445         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9446         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9447         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9448         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9449         * genemit.c (gen_split): Change return type of generated functions to
9450         rtx_insn.
9451         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9452         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9453         gen_peephole2_* functions.
9454         (print_subroutine, main): Likewise.
9455         * recog.c (peephole2_optimize): Remove cast.
9456         (peep2_next_insn): Promote return type to rtx_insn.
9457         * recog.h (peep2_next_insn): Fix prototype.
9458         * rtl.h (try_split, split_insns): Likewise.
9460 2015-06-06  DJ Delorie  <dj@redhat.com>
9462         * config/msp430/msp430.c (msp430_asm_integer): Support addition
9463         and subtraction too.
9465 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9467         PR target/66410
9468         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9469         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9470         instead of Snd.  Disparage Sid/z alternative with '^'.
9472 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
9474         * dwarf2out.c: Remove deferred_locations*.
9475         (dwarf2_debug_hooks): Add early_finish hook.
9476         Remove global_decl hook.
9477         Add early_global_decl and late_global_decl hook.
9478         New global early_dwarf.
9479         New structure set_early_dwarf.
9480         (output_die): Indicate whether a DIE was generated early
9481         when generating assembly with -dA.
9482         (struct limbo_die_struct): Document created_for field.
9483         Remove file_table_last_lookup.
9484         (remove_AT): Return TRUE if successful.
9485         (remove_child_TAG): Clear die_parent.
9486         (reparent_child): New function abstracted from...
9487         (splice_child_die): ...here.
9488         (new_die): ICE if a DIE ends up in limbo too late.
9489         (check_die): New.
9490         (defer_location): Remove.
9491         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9492         (fill_variable_array_bounds): New.
9493         (decl_start_label): Call fill_variable_array_bounds.
9494         (gen_formal_parameter_die): Rewrite to reuse previously generated
9495         DIEs.
9496         (gen_subprogram_die): Same.
9497         (gen_variable_die): Same.
9498         (gen_const_die): Same.
9499         (gen_label_die): Same.
9500         (gen_lexical_block_die): Same.
9501         (decl_will_get_specification_p): New.
9502         (local_function_static): New.
9503         (gen_struct_or_union_type_die): Fill in variable-length fields.
9504         (gen_typedef_die): Fill in variable-length typedefs.
9505         (gen_tagged_type_die): Gracefully return on error_mark_node.
9506         Handle re-entrancy.
9507         (gen_type_die_with_usage): Handle variable-length types.
9508         Remove duplicate code for ARRAY_TYPE case.
9509         (process_scope_var): Only process imported modules during early
9510         dwarf.
9511         (dwarf2out_early_global_decl): New.
9512         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9513         (dwarf2out_type_decl): Set early_dwarf while calling
9514         dwarf2out_decl.
9515         (dwarf2out_decl): Verify that we did not recreate a previously
9516         generated DIE.
9517         Do not return on DECL_EXTERNALs in VAR_DECLs.
9518         Abstract some code to local_function_static.
9519         (lookup_filename): Remove use of file_table_last_lookup.
9520         Gracefully exit on missing file_name.
9521         (dwarf2out_finish): Verify limbo list.
9522         Remove deferred_locations_list use.
9523         Move deferred_asm_name and limbo flushing to...
9524         (dwarf2out_early_finish): ...here.  New.
9525         (dwarf2out_c_finalize): Remove set of deferred_location_list,
9526         deferred_asm_name, and file_table_last_lookup.
9527         * cgraph.h (referred_to_p): Add default argument.
9528         * cgraphunit.c (referred_to_p): Add and handle include_self
9529         argument.
9530         (analyze_functions): Add first_time argument.
9531         Call check_global_declaration for all symbols.
9532         Call late_global_decl for nodes for moribund nodes.
9533         (finalize_compilation_unit): Add new argument to
9534         analyze_functions.
9535         Call early_global_decl for functions.
9536         Call early_finish debug hook.
9537         * dbxout.c (dbxout_early_global_decl): New.
9538         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
9539         (dbx_debug_hooks): Add new hooks.
9540         (xcoff_debug_hooks): Same.
9541         * debug.c (do_nothing_debug_hooks): Add early_finish field.
9542         Add early and late debug hooks.
9543         Remove global_decl hook.
9544         * debug.h (struct gcc_debug_hooks): Add early_finish,
9545         early_global_decl, and late_global_decl fields.
9546         Remove global_decl field.
9547         Document gcc_debug_hooks.
9548         * gengtype.c (output_typename): Remove.
9549         * godump.c (go_early_global_decl): New.
9550         (go_late_global_decl): New.
9551         (go_global_decl): Remove.
9552         (dump_go_spec_init): Remove global_decl.  Add
9553         {early,late}_global_decl.
9554         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9555         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9556         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9557         (write_global_declarations): Remove.
9558         (global_decl_processing): New.
9559         * langhooks.h (struct lang_hooks_for_decls): Remove
9560         final_write_globals field.
9561         Add post_compilation_parsing_cleanups field.
9562         * passes.c (rest_of_decl_compilation): Call early_global_decl.
9563         * sdbout.c: Add early and late_global_decl hooks.  Remove
9564         sdbout_global_decl hook.
9565         Add early_finish field for sdb_debug_hooks.
9566         (sdbout_global_decl): Remove.
9567         (sdbout_early_global_decl): New.
9568         (sdbout_late_global_decl): New.
9569         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9570         * toplev.c (check_global_declaration): Rename from
9571         check_global_declaration_1.
9572         Adapt to use symtab infrastructure.
9573         (check_global_declarations): Remove.
9574         (emit_debug_global_declarations): Remove.
9575         (compile_file): Remove call to final_write_globals langhook.
9576         Run the actual compilation process.
9577         Perform any post compilation parser cleanups.
9578         Generate late debug info.
9579         * toplev.h (check_global_declaration): New.
9580         (check_global_declaration_1): Remove.
9581         (check_global_declarations): Remove.
9582         (write_global_declarations): Remove.
9583         (emit_debug_global_declarations): Remove.
9584         (global_decl_processing): New.
9585         * tree-core.h (struct tree_block): Add DIE field.
9586         * tree.h (BLOCK_DIE): New.
9587         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9588         throughout.
9589         (vmsdbgout_early_global_decl): New.
9590         (vmsdbgout_late_global_decl): New.
9591         Add early_finish debug hook field to vmsdbg_debug_hooks.
9592         Remove vmsdbgout_decl to vmsdbgout_function_decl.
9593         Add early and late_global_decl debug hooks.
9595 2015-06-05  Julian Brown  <julian@codesourcery.com>
9596             Sandra Loosemore  <sandra@codesourcery.com>
9598         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9599         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9600         to print-sysroot-suffix.sh script.
9602 2015-06-05  Tom de Vries  <tom@codesourcery.com>
9604         merge from gomp4 branch:
9605         2015-05-28  Tom de Vries  <tom@codesourcery.com>
9607         PR tree-optimization/65443
9608         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9609         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9610         (try_transform_to_exit_first_loop_alt): New function.
9611         (transform_to_exit_first_loop): Use
9612         try_transform_to_exit_first_loop_alt.
9614 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
9616         * builtins.c (expand_builtin_atomic_compare_exchange): Call
9617         emit_cmp_and_jump_insns with the mode of target.
9619 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9621         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9623 2015-06-04  DJ Delorie  <dj@redhat.com>
9625         * config/msp430/msp430.md (movsi_s): New.  Special case for
9626         storing a 20-bit symbol into a 32-bit register.
9627         * config/msp430/msp430.c (msp430_subreg): Add support for it.
9628         * config/msp430/predicates.md (msp430_symbol_operand): New.
9630 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
9632         * c-family/c-common.c (noplt): New attribute.
9633         (handle_noplt_attribute): New handler.
9634         * calls.c (prepare_call_address): Check for noplt
9635         attribute.
9636         * config/i386/i386.c (ix86_expand_call): Check
9637         for noplt attribute.
9638         (ix86_nopic_noplt_attribute_p): New function.
9639         (ix86_output_call_insn): Output indirect call for non-pic
9640         no plt calls.
9641         * doc/extend.texi (noplt): Document new attribute.
9642         * doc/invoke.texi: Document new attribute.
9644 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
9646         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9647         real.h, and fixed-value.h when included in host source files.
9648         * double-int.h: Remove redundant #includes listed above.
9649         * fixed-value.h: Likewise.
9650         * real.h: Likewise.
9651         * wide-int.h: Likewise.
9652         * inchash.h: Likewise.
9653         * rtl.h: Add some include files When included from a generator file.
9654         * target.h: Remove wide-int.h and insn-modes.h from the include list.
9655         * internal-fn.h: Don't include coretypes.h.
9656         * alias.c: Adjust includes for restructured coretypes.h.
9657         * asan.c: Likewise.
9658         * attribs.c: Likewise.
9659         * auto-inc-dec.c: Likewise.
9660         * auto-profile.c: Likewise.
9661         * bb-reorder.c: Likewise.
9662         * bt-load.c: Likewise.
9663         * builtins.c: Likewise.
9664         * caller-save.c: Likewise.
9665         * calls.c: Likewise.
9666         * ccmp.c: Likewise.
9667         * cfg.c: Likewise.
9668         * cfganal.c: Likewise.
9669         * cfgbuild.c: Likewise.
9670         * cfgcleanup.c: Likewise.
9671         * cfgexpand.c: Likewise.
9672         * cfghooks.c: Likewise.
9673         * cfgloop.c: Likewise.
9674         * cfgloop.h: Likewise.
9675         * cfgloopanal.c: Likewise.
9676         * cfgloopmanip.c: Likewise.
9677         * cfgrtl.c: Likewise.
9678         * cgraph.c: Likewise.
9679         * cgraphbuild.c: Likewise.
9680         * cgraphclones.c: Likewise.
9681         * cgraphunit.c: Likewise.
9682         * cilk-common.c: Likewise.
9683         * combine-stack-adj.c: Likewise.
9684         * combine.c: Likewise.
9685         * compare-elim.c: Likewise.
9686         * convert.c: Likewise.
9687         * coverage.c: Likewise.
9688         * cppbuiltin.c: Likewise.
9689         * cprop.c: Likewise.
9690         * cse.c: Likewise.
9691         * cselib.c: Likewise.
9692         * data-streamer-in.c: Likewise.
9693         * data-streamer-out.c: Likewise.
9694         * data-streamer.c: Likewise.
9695         * dbxout.c: Likewise.
9696         * dce.c: Likewise.
9697         * ddg.c: Likewise.
9698         * debug.c: Likewise.
9699         * df-core.c: Likewise.
9700         * df-problems.c: Likewise.
9701         * df-scan.c: Likewise.
9702         * df.h: Likewise.
9703         * dfp.c: Likewise.
9704         * dojump.c: Likewise.
9705         * dominance.c: Likewise.
9706         * domwalk.c: Likewise.
9707         * double-int.c: Likewise.
9708         * dse.c: Likewise.
9709         * dumpfile.c: Likewise.
9710         * dwarf2asm.c: Likewise.
9711         * dwarf2cfi.c: Likewise.
9712         * dwarf2out.c: Likewise.
9713         * dwarf2out.h: Likewise.
9714         * emit-rtl.c: Likewise.
9715         * et-forest.c: Likewise.
9716         * except.c: Likewise.
9717         * explow.c: Likewise.
9718         * expmed.c: Likewise.
9719         * expr.c: Likewise.
9720         * final.c: Likewise.
9721         * fixed-value.c: Likewise.
9722         * fold-const.c: Likewise.
9723         * function.c: Likewise.
9724         * fwprop.c: Likewise.
9725         * gcc-plugin.h: Likewise.
9726         * gcse.c: Likewise.
9727         * generic-match-head.c: Likewise.
9728         * ggc-page.c: Likewise.
9729         * gimple-builder.c: Likewise.
9730         * gimple-expr.c: Likewise.
9731         * gimple-fold.c: Likewise.
9732         * gimple-iterator.c: Likewise.
9733         * gimple-low.c: Likewise.
9734         * gimple-match-head.c: Likewise.
9735         * gimple-pretty-print.c: Likewise.
9736         * gimple-ssa-isolate-paths.c: Likewise.
9737         * gimple-ssa-strength-reduction.c: Likewise.
9738         * gimple-streamer-in.c: Likewise.
9739         * gimple-streamer-out.c: Likewise.
9740         * gimple-streamer.h: Likewise.
9741         * gimple-walk.c: Likewise.
9742         * gimple.c: Likewise.
9743         * gimplify-me.c: Likewise.
9744         * gimplify.c: Likewise.
9745         * godump.c: Likewise.
9746         * graph.c: Likewise.
9747         * graphite-blocking.c: Likewise.
9748         * graphite-dependences.c: Likewise.
9749         * graphite-interchange.c: Likewise.
9750         * graphite-isl-ast-to-gimple.c: Likewise.
9751         * graphite-optimize-isl.c: Likewise.
9752         * graphite-poly.c: Likewise.
9753         * graphite-scop-detection.c: Likewise.
9754         * graphite-sese-to-poly.c: Likewise.
9755         * graphite.c: Likewise.
9756         * haifa-sched.c: Likewise.
9757         * hooks.h: Likewise.
9758         * hw-doloop.c: Likewise.
9759         * ifcvt.c: Likewise.
9760         * incpath.c: Likewise.
9761         * init-regs.c: Likewise.
9762         * internal-fn.c: Likewise.
9763         * ipa-chkp.c: Likewise.
9764         * ipa-comdats.c: Likewise.
9765         * ipa-cp.c: Likewise.
9766         * ipa-devirt.c: Likewise.
9767         * ipa-icf-gimple.c: Likewise.
9768         * ipa-icf.c: Likewise.
9769         * ipa-inline-analysis.c: Likewise.
9770         * ipa-inline-transform.c: Likewise.
9771         * ipa-inline.c: Likewise.
9772         * ipa-polymorphic-call.c: Likewise.
9773         * ipa-profile.c: Likewise.
9774         * ipa-prop.c: Likewise.
9775         * ipa-pure-const.c: Likewise.
9776         * ipa-ref.c: Likewise.
9777         * ipa-reference.c: Likewise.
9778         * ipa-split.c: Likewise.
9779         * ipa-utils.c: Likewise.
9780         * ipa-visibility.c: Likewise.
9781         * ipa.c: Likewise.
9782         * ira-build.c: Likewise.
9783         * ira-color.c: Likewise.
9784         * ira-conflicts.c: Likewise.
9785         * ira-costs.c: Likewise.
9786         * ira-emit.c: Likewise.
9787         * ira-lives.c: Likewise.
9788         * ira.c: Likewise.
9789         * jump.c: Likewise.
9790         * langhooks.c: Likewise.
9791         * lcm.c: Likewise.
9792         * loop-doloop.c: Likewise.
9793         * loop-init.c: Likewise.
9794         * loop-invariant.c: Likewise.
9795         * loop-iv.c: Likewise.
9796         * loop-unroll.c: Likewise.
9797         * lower-subreg.c: Likewise.
9798         * lra-assigns.c: Likewise.
9799         * lra-coalesce.c: Likewise.
9800         * lra-constraints.c: Likewise.
9801         * lra-eliminations.c: Likewise.
9802         * lra-lives.c: Likewise.
9803         * lra-remat.c: Likewise.
9804         * lra-spills.c: Likewise.
9805         * lra.c: Likewise.
9806         * lto-cgraph.c: Likewise.
9807         * lto-compress.c: Likewise.
9808         * lto-opts.c: Likewise.
9809         * lto-section-in.c: Likewise.
9810         * lto-section-out.c: Likewise.
9811         * lto-streamer-in.c: Likewise.
9812         * lto-streamer-out.c: Likewise.
9813         * lto-streamer.c: Likewise.
9814         * mcf.c: Likewise.
9815         * mode-switching.c: Likewise.
9816         * modulo-sched.c: Likewise.
9817         * omega.c: Likewise.
9818         * omp-low.c: Likewise.
9819         * optabs.c: Likewise.
9820         * opts-global.c: Likewise.
9821         * passes.c: Likewise.
9822         * plugin.c: Likewise.
9823         * postreload-gcse.c: Likewise.
9824         * postreload.c: Likewise.
9825         * predict.c: Likewise.
9826         * print-rtl.c: Likewise.
9827         * print-tree.c: Likewise.
9828         * profile.c: Likewise.
9829         * real.c: Likewise.
9830         * realmpfr.c: Likewise.
9831         * realmpfr.h: Likewise.
9832         * recog.c: Likewise.
9833         * ree.c: Likewise.
9834         * reg-stack.c: Likewise.
9835         * regcprop.c: Likewise.
9836         * reginfo.c: Likewise.
9837         * regrename.c: Likewise.
9838         * regs.h: Likewise.
9839         * regstat.c: Likewise.
9840         * reload.c: Likewise.
9841         * reload1.c: Likewise.
9842         * reorg.c: Likewise.
9843         * resource.c: Likewise.
9844         * rtl-chkp.c: Likewise.
9845         * rtlanal.c: Likewise.
9846         * rtlhooks.c: Likewise.
9847         * sanopt.c: Likewise.
9848         * sched-deps.c: Likewise.
9849         * sched-ebb.c: Likewise.
9850         * sched-rgn.c: Likewise.
9851         * sched-vis.c: Likewise.
9852         * sdbout.c: Likewise.
9853         * sel-sched-dump.c: Likewise.
9854         * sel-sched-ir.c: Likewise.
9855         * sel-sched.c: Likewise.
9856         * sese.c: Likewise.
9857         * shrink-wrap.c: Likewise.
9858         * shrink-wrap.h: Likewise.
9859         * simplify-rtx.c: Likewise.
9860         * stack-ptr-mod.c: Likewise.
9861         * statistics.c: Likewise.
9862         * stmt.c: Likewise.
9863         * stor-layout.c: Likewise.
9864         * store-motion.c: Likewise.
9865         * stringpool.c: Likewise.
9866         * symtab.c: Likewise.
9867         * target-globals.c: Likewise.
9868         * targhooks.c: Likewise.
9869         * toplev.c: Likewise.
9870         * tracer.c: Likewise.
9871         * trans-mem.c: Likewise.
9872         * tree-affine.c: Likewise.
9873         * tree-affine.h: Likewise.
9874         * tree-browser.c: Likewise.
9875         * tree-call-cdce.c: Likewise.
9876         * tree-cfg.c: Likewise.
9877         * tree-cfgcleanup.c: Likewise.
9878         * tree-chkp-opt.c: Likewise.
9879         * tree-chkp.c: Likewise.
9880         * tree-chrec.c: Likewise.
9881         * tree-complex.c: Likewise.
9882         * tree-data-ref.c: Likewise.
9883         * tree-dfa.c: Likewise.
9884         * tree-diagnostic.c: Likewise.
9885         * tree-dump.c: Likewise.
9886         * tree-eh.c: Likewise.
9887         * tree-emutls.c: Likewise.
9888         * tree-if-conv.c: Likewise.
9889         * tree-inline.c: Likewise.
9890         * tree-into-ssa.c: Likewise.
9891         * tree-iterator.c: Likewise.
9892         * tree-loop-distribution.c: Likewise.
9893         * tree-nested.c: Likewise.
9894         * tree-nrv.c: Likewise.
9895         * tree-object-size.c: Likewise.
9896         * tree-outof-ssa.c: Likewise.
9897         * tree-parloops.c: Likewise.
9898         * tree-phinodes.c: Likewise.
9899         * tree-predcom.c: Likewise.
9900         * tree-pretty-print.c: Likewise.
9901         * tree-pretty-print.h: Likewise.
9902         * tree-profile.c: Likewise.
9903         * tree-scalar-evolution.c: Likewise.
9904         * tree-sra.c: Likewise.
9905         * tree-ssa-address.c: Likewise.
9906         * tree-ssa-alias.c: Likewise.
9907         * tree-ssa-ccp.c: Likewise.
9908         * tree-ssa-coalesce.c: Likewise.
9909         * tree-ssa-copy.c: Likewise.
9910         * tree-ssa-copyrename.c: Likewise.
9911         * tree-ssa-dce.c: Likewise.
9912         * tree-ssa-dom.c: Likewise.
9913         * tree-ssa-dse.c: Likewise.
9914         * tree-ssa-forwprop.c: Likewise.
9915         * tree-ssa-ifcombine.c: Likewise.
9916         * tree-ssa-live.c: Likewise.
9917         * tree-ssa-loop-ch.c: Likewise.
9918         * tree-ssa-loop-im.c: Likewise.
9919         * tree-ssa-loop-ivcanon.c: Likewise.
9920         * tree-ssa-loop-ivopts.c: Likewise.
9921         * tree-ssa-loop-manip.c: Likewise.
9922         * tree-ssa-loop-niter.c: Likewise.
9923         * tree-ssa-loop-prefetch.c: Likewise.
9924         * tree-ssa-loop-unswitch.c: Likewise.
9925         * tree-ssa-loop.c: Likewise.
9926         * tree-ssa-loop.h: Likewise.
9927         * tree-ssa-math-opts.c: Likewise.
9928         * tree-ssa-operands.c: Likewise.
9929         * tree-ssa-phiopt.c: Likewise.
9930         * tree-ssa-phiprop.c: Likewise.
9931         * tree-ssa-pre.c: Likewise.
9932         * tree-ssa-propagate.c: Likewise.
9933         * tree-ssa-reassoc.c: Likewise.
9934         * tree-ssa-sccvn.c: Likewise.
9935         * tree-ssa-scopedtables.c: Likewise.
9936         * tree-ssa-sink.c: Likewise.
9937         * tree-ssa-strlen.c: Likewise.
9938         * tree-ssa-structalias.c: Likewise.
9939         * tree-ssa-tail-merge.c: Likewise.
9940         * tree-ssa-ter.c: Likewise.
9941         * tree-ssa-threadedge.c: Likewise.
9942         * tree-ssa-threadupdate.c: Likewise.
9943         * tree-ssa-uncprop.c: Likewise.
9944         * tree-ssa-uninit.c: Likewise.
9945         * tree-ssa.c: Likewise.
9946         * tree-ssanames.c: Likewise.
9947         * tree-stdarg.c: Likewise.
9948         * tree-streamer-in.c: Likewise.
9949         * tree-streamer-out.c: Likewise.
9950         * tree-streamer.c: Likewise.
9951         * tree-switch-conversion.c: Likewise.
9952         * tree-tailcall.c: Likewise.
9953         * tree-vect-data-refs.c: Likewise.
9954         * tree-vect-generic.c: Likewise.
9955         * tree-vect-loop-manip.c: Likewise.
9956         * tree-vect-loop.c: Likewise.
9957         * tree-vect-patterns.c: Likewise.
9958         * tree-vect-slp.c: Likewise.
9959         * tree-vect-stmts.c: Likewise.
9960         * tree-vectorizer.c: Likewise.
9961         * tree-vrp.c: Likewise.
9962         * tree.c: Likewise.
9963         * tsan.c: Likewise.
9964         * ubsan.c: Likewise.
9965         * valtrack.c: Likewise.
9966         * value-prof.c: Likewise.
9967         * var-tracking.c: Likewise.
9968         * varasm.c: Likewise.
9969         * varpool.c: Likewise.
9970         * vmsdbgout.c: Likewise.
9971         * vtable-verify.c: Likewise.
9972         * web.c: Likewise.
9973         * wide-int-print.cc: Likewise.
9974         * wide-int-print.h: Likewise.
9975         * wide-int.cc: Likewise.
9976         * xcoffout.c: Likewise.
9977         * config/aarch64/aarch64-builtins.c: Likewise.
9978         * config/aarch64/aarch64.c: Likewise.
9979         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9980         * config/alpha/alpha.c: Likewise.
9981         * config/arc/arc.c: Likewise.
9982         * config/arm/aarch-common.c: Likewise.
9983         * config/arm/arm-builtins.c: Likewise.
9984         * config/arm/arm-c.c: Likewise.
9985         * config/arm/arm.c: Likewise.
9986         * config/avr/avr-c.c: Likewise.
9987         * config/avr/avr-log.c: Likewise.
9988         * config/avr/avr.c: Likewise.
9989         * config/bfin/bfin.c: Likewise.
9990         * config/c6x/c6x.c: Likewise.
9991         * config/cr16/cr16.c: Likewise.
9992         * config/cris/cris.c: Likewise.
9993         * config/darwin-c.c: Likewise.
9994         * config/darwin.c: Likewise.
9995         * config/default-c.c: Likewise.
9996         * config/epiphany/epiphany.c: Likewise.
9997         * config/epiphany/mode-switch-use.c: Likewise.
9998         * config/epiphany/resolve-sw-modes.c: Likewise.
9999         * config/fr30/fr30.c: Likewise.
10000         * config/frv/frv.c: Likewise.
10001         * config/ft32/ft32.c: Likewise.
10002         * config/glibc-c.c: Likewise.
10003         * config/h8300/h8300.c: Likewise.
10004         * config/i386/i386-c.c: Likewise.
10005         * config/i386/i386.c: Likewise.
10006         * config/i386/msformat-c.c: Likewise.
10007         * config/i386/winnt-cxx.c: Likewise.
10008         * config/i386/winnt-stubs.c: Likewise.
10009         * config/i386/winnt.c: Likewise.
10010         * config/ia64/ia64-c.c: Likewise.
10011         * config/ia64/ia64.c: Likewise.
10012         * config/iq2000/iq2000.c: Likewise.
10013         * config/lm32/lm32.c: Likewise.
10014         * config/m32c/m32c-pragma.c: Likewise.
10015         * config/m32c/m32c.c: Likewise.
10016         * config/m32r/m32r.c: Likewise.
10017         * config/m68k/m68k.c: Likewise.
10018         * config/mcore/mcore.c: Likewise.
10019         * config/mep/mep-pragma.c: Likewise.
10020         * config/mep/mep.c: Likewise.
10021         * config/microblaze/microblaze-c.c: Likewise.
10022         * config/microblaze/microblaze.c: Likewise.
10023         * config/mips/mips.c: Likewise.
10024         * config/mmix/mmix.c: Likewise.
10025         * config/mn10300/mn10300.c: Likewise.
10026         * config/moxie/moxie.c: Likewise.
10027         * config/msp430/msp430-c.c: Likewise.
10028         * config/msp430/msp430.c: Likewise.
10029         * config/nds32/nds32-cost.c: Likewise.
10030         * config/nds32/nds32-fp-as-gp.c: Likewise.
10031         * config/nds32/nds32-intrinsic.c: Likewise.
10032         * config/nds32/nds32-isr.c: Likewise.
10033         * config/nds32/nds32-md-auxiliary.c: Likewise.
10034         * config/nds32/nds32-memory-manipulation.c: Likewise.
10035         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10036         * config/nds32/nds32-predicates.c: Likewise.
10037         * config/nds32/nds32.c: Likewise.
10038         * config/nios2/nios2.c: Likewise.
10039         * config/nvptx/nvptx.c: Likewise.
10040         * config/pa/pa.c: Likewise.
10041         * config/pdp11/pdp11.c: Likewise.
10042         * config/rl78/rl78-c.c: Likewise.
10043         * config/rl78/rl78.c: Likewise.
10044         * config/rs6000/rs6000-c.c: Likewise.
10045         * config/rs6000/rs6000.c: Likewise.
10046         * config/rx/rx.c: Likewise.
10047         * config/s390/s390-c.c: Likewise.
10048         * config/s390/s390.c: Likewise.
10049         * config/sh/sh-c.c: Likewise.
10050         * config/sh/sh-mem.cc: Likewise.
10051         * config/sh/sh.c: Likewise.
10052         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10053         * config/sh/sh_treg_combine.cc: Likewise.
10054         * config/sol2-c.c: Likewise.
10055         * config/sol2-cxx.c: Likewise.
10056         * config/sol2-stubs.c: Likewise.
10057         * config/sol2.c: Likewise.
10058         * config/sparc/sparc-c.c: Likewise.
10059         * config/sparc/sparc.c: Likewise.
10060         * config/spu/spu-c.c: Likewise.
10061         * config/spu/spu.c: Likewise.
10062         * config/stormy16/stormy16.c: Likewise.
10063         * config/tilegx/mul-tables.c: Likewise.
10064         * config/tilegx/tilegx-c.c: Likewise.
10065         * config/tilegx/tilegx.c: Likewise.
10066         * config/tilepro/mul-tables.c: Likewise.
10067         * config/tilepro/tilepro-c.c: Likewise.
10068         * config/tilepro/tilepro.c: Likewise.
10069         * config/v850/v850-c.c: Likewise.
10070         * config/v850/v850.c: Likewise.
10071         * config/vax/vax.c: Likewise.
10072         * config/visium/visium.c: Likewise.
10073         * config/vms/vms-c.c: Likewise.
10074         * config/vms/vms.c: Likewise.
10075         * config/vxworks.c: Likewise.
10076         * config/winnt-c.c: Likewise.
10077         * config/xtensa/xtensa.c: Likewise.
10078         * common/config/bfin/bfin-common.c: Likewise.
10080 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
10082         * tree.h (tree_code_for_canonical_type_merging): New function.
10083         * tree.c (gimple_canonical_types_compatible_p): Use
10084         tree_code_for_canonical_type_merging..
10086 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10088         PR c++/66192
10089         PR target/66200
10090         * doc/tm.texi: Regenerate.
10091         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10092         * target.def (TARGET_RELAXED_ORDERING): Likewise.
10093         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10094         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10095         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10096         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10097         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10098         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10099         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10101 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10103         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10104         register fma steering pass.
10105         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10106         AARCH64_TUNE_FMA_STEERING.
10108 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
10110         * tree.c (verify_type_variant): Verify that type and variant is
10111         compatible.
10112         (gimple_canonical_types_compatible_p): Look for main variants.
10114 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
10116         * config.gcc (powerpc*-*-*): Add support for a new configure
10117         option --with-advance-toolchain=<xxx> which overrides using the
10118         default header files, libraries and dynamic linker.
10120         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10121         specs to support the configure --with-advance-toolchain=<xxx>
10122         option.
10123         (INCLUDE_EXTRA_SPEC): Likewise.
10124         (LINK_OS_EXTRA_SPEC32): Likewise.
10125         (LINK_OK_EXTRA_SPEC64): Likewise.
10126         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10127         (DYNAMIC_LINKER_PREFIX): Likewise.
10128         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10129         toolchain support.
10130         (GLIBC_DYNAMIC_LINKER32): Likewise.
10131         (GLIBC_DYNAMIC_LINKER64): Likewise.
10132         (LINK_OS_LINUX_SPEC32): Likewise.
10133         (LINK_OS_LINUX_SPEC64): Likewise.
10135         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10136         configuration option.
10138 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
10140         PR target/66275
10141         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10142         to determine current function ABI.
10143         (ix86_function_value_regno_p): Ditto.
10145 2015-06-03  Martin Liska  <mliska@suse.cz>
10147         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10148         * bitmap.h (struct bitmap_usage): Likewise.
10149         * ggc-common.c (struct ggc_usage): Likewise.
10150         * mem-stats.h (struct mem_location): Likewise.
10151         (struct mem_usage): Likewise.
10152         * vec.c (struct vec_usage): Likewise.
10154 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
10156         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10157         -Bsymbolic.
10159 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
10161         * doc/plugins.texi (enum plugin_event): New event.
10162         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10163         and PLUGIN_FINISH_FUNCTION.
10164         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10165         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10167 2015-06-03  Richard Biener  <rguenther@suse.de>
10169         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10170         compute GROUP_GAP for the first element.
10171         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10172         on in-group gaps.
10174 2015-06-03  Nick Clifton  <nickc@redhat.com>
10176         * config/rl78/rl78-real.md: Add peepholes to avoid a register
10177         copy when calling a function.
10178         * config/rl78/rl78.c (need_to_save): Do not push the frame
10179         pointer in an interrupt handler prologue if it is never used.
10181 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10183         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10185 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
10187         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10188         reference when cloning alias node.
10190 2015-06-03  Martin Liska  <mliska@suse.cz>
10192         * alloc-pool.h (struct pool_usage): Correct space padding.
10193         * ggc-page.c (ggc_print_statistics): Align columns in a report.
10194         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10195         * tree.c (dump_tree_statistics): Align columns in a report.
10197 2015-06-03  Martin Liska  <mliska@suse.cz>
10199         * alloc-pool.c (allocate_pool_descriptor): Remove.
10200         (struct pool_output_info): Likewise.
10201         (print_alloc_pool_statistics): Likewise.
10202         (dump_alloc_pool_statistics): Likewise.
10203         * alloc-pool.h (struct pool_usage): New struct.
10204         (pool_allocator::initialize): Change usage of memory statistics
10205         to a new interface.
10206         (pool_allocator::release): Likewise.
10207         (pool_allocator::allocate): Likewise.
10208         (pool_allocator::remove): Likewise.
10209         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10210         for a pool allocator.
10211         * mem-stats.h (struct mem_location): Add new ctor.
10212         (struct mem_usage): Add counter for number of
10213         instances.
10214         (mem_alloc_description::register_descriptor): New overload of
10215         * mem-stats.h (mem_location::to_string): New function.
10216         * bitmap.h (struct bitmap_usage): Use this new function.
10217         * ggc-common.c (struct ggc_usage): Likewise.
10218         the function.
10220 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
10222         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10223         of GCC_INSN_FLAGS_H block.
10225 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
10227         * explow.c (plus_constant): Update check after force_const_mem call
10228         to see if the value returned is not a NULL_RTX.
10230 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
10232         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10233         remove instumentation thunks calling reachable functions.
10234         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10235         * lto/lto-partition.c (privatize_symbol_name_1): New.
10236         (privatize_symbol_name): Privatize both decl and orig_decl
10237         names for instrumented functions.
10238         * cgraph.c (cgraph_node::verify_node): Add transparent
10239         alias chain check for instrumented node.
10241 2015-06-03  Marek Polacek  <polacek@redhat.com>
10243         PR c/64223
10244         PR c/29358
10245         * tree.c (attribute_value_equal): Handle attribute format.
10246         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10248 2015-06-03  Richard Biener  <rguenther@suse.de>
10250         PR tree-optimization/63916
10251         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10252         Forward-propagate non-invariant addresses by splicing their
10253         reference ops if the result isn't going to be used by PRE.
10254         (vn_reference_lookup_3): Remove pointless assert.
10256 2015-06-03  Richard Biener  <rguenther@suse.de>
10258         PR tree-optimization/66375
10259         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10260         add to the evolution before following SSA edges.
10262 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
10264         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10265         (dump_use, dump_cand, find_induction_variables): Pass new argument
10266         to dump_iv.
10267         (record_use): Preserve the ssa name information in IV.
10269 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
10271         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10272         NO_MODE_TEST.
10273         (add_mode_tests): Don't add mode tests if the predicate only
10274         accepts scalar constant integers.  Otherwise, allow the mode
10275         of "op" to be VOIDmode if the predicate does accept such integers.
10277 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
10279         PR target/66258
10280         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10281         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10282         (aarch64_secondary_reload): Likewise
10283         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10284         to !TARGET_FLOAT.
10285         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10286         Likewise.
10288 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
10289             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
10291         PR target/65768
10292         * cprop.c (try_replace_reg): Check cost of constants before propagating.
10294 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10296         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10297         provide access to the IBM extended double floating point mode if
10298         long double is IEEE 128-bit floating point.
10299         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10300         point if long double is the IBM extended double type.
10302         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10303         enable adding IEEE 128-bit floating point support.
10304         (-mfloat128-software): Likewise.
10305         (-mfloat128-sw): Likewise.
10307         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10308         128-bit floating point types to occupy any register if
10309         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
10310         -mfloat128-software is enabled.
10311         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10312         support.
10313         (rs6000_option_override_internal): Add -mfloat128-* support.
10314         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10316         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10317         and float128 type nodes.
10318         (ieee128_float_type_node): Likewise.
10319         (ibm128_float_type_node): Likewise.
10321 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10323         PR target/66136
10324         * config/aarch64/geniterators.sh: Rewrite in awk.
10326 2015-06-02  Martin Liska  <mliska@suse.cz>
10328         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10329         values to avoid -Wmaybe-uninitialized errors.
10331 2015-06-02  Richard Biener  <rguenther@suse.de>
10333         PR debug/65549
10334         * dwarf2out.c (lookup_context_die): New function.
10335         (resolve_addr): Avoid forcing a full DIE for the
10336         target of a DW_TAG_GNU_call_site during late compilation.
10337         Instead create a stub DIE without a type if we have a
10338         context DIE present.
10340 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
10342         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10344 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10346         PR tree-optimization/48052
10347         * cfgloop.h (struct control_iv): New.
10348         (struct loop): New field control_ivs.
10349         * tree-ssa-loop-niter.c : Include "stor-layout.h".
10350         (number_of_iterations_lt): Set no_overflow information.
10351         (number_of_iterations_exit): Init control iv in niter struct.
10352         (record_control_iv): New.
10353         (estimate_numbers_of_iterations_loop): Call record_control_iv.
10354         (loop_exits_before_overflow): New.  Interface factored out of
10355         scev_probably_wraps_p.
10356         (scev_probably_wraps_p): Factor loop niter related code into
10357         loop_exits_before_overflow.
10358         (free_numbers_of_iterations_estimates_loop): Free control ivs.
10359         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10361 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10363         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10364         the target doesn't belong to the current function.
10366 2015-06-02  Marek Polacek  <polacek@redhat.com>
10368         PR middle-end/66345
10369         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10370         get_maxval_strlen does not produce an INTEGER_CST.
10372 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
10374         * config/arc/constraints.md: Use lower-case names in match_code.
10375         * config/mmix/constraints.md: Likewise.
10377 2015-06-02  Richard Biener  <rguenther@suse.de>
10379         PR tree-optimization/65961
10380         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10381         check and clarify dump message.
10382         (vect_build_slp_tree): If all children are built up from scalars
10383         build up the parent from scalars instead.
10384         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10386 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10388         PR other/65366
10389         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
10390         instead of print ... .
10392 2015-06-02  Alan Modra  <amodra@gmail.com>
10394         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10395         2014-08-11 change.
10397 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10399         PR tree-optimization/52563
10400         PR tree-optimization/62173
10401         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
10402         (alloc_iv, set_iv): New parameter.
10403         (determine_biv_step): Delete.
10404         (find_bivs): Inline original determine_biv_step.  Pass new
10405         argument to set_iv.
10406         (idx_find_step): Use no_overflow information for conversion.
10407         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10408         resolve_mixers handle folded_casts.
10409         (instantiate_scev_name): Change bool parameter to bool pointer.
10410         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10411         (instantiate_array_ref, instantiate_scev_not): Ditto.
10412         (instantiate_scev_3, instantiate_scev_2): Ditto.
10413         (instantiate_scev_1, instantiate_scev_r): Ditto.
10414         (instantiate_scev_convert, ): Change parameter.  Pass argument
10415         to chrec_convert_aggressive.
10416         (instantiate_scev): Change argument.
10417         (resolve_mixers): New parameter and set it.
10418         (scev_const_prop): New argument.
10419         * tree-scalar-evolution.h (resolve_mixers): New parameter.
10420         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10421         of chrec_conert_1.
10422         (chrec_convert): New parameter.  Move definition below.
10423         (chrec_convert_aggressive): New parameter and set it.  Call
10424         convert_affine_scev.
10425         * tree-chrec.h (chrec_convert): New parameter.
10426         (chrec_convert_aggressive): Ditto.
10428 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10430         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10431         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10432         the LHS of a no-return call if its type has variable size.
10433         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10434         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10436 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
10438         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10439         * config.in: Regenerate.
10441 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
10443         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10444         consecutive accesses within outer-loop with force_vectorize
10445         for references with zero step in inner-loop.
10447 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
10449         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10450         rather than from gcc/build directory.
10452 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
10454         PR target/65697
10455         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10456         for __sync memory models, emit initial loads and final barriers as
10457         appropriate.
10459 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
10461         PR target/65697
10462         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10463         (aarch64_split_atomic_op): Check for __sync memory models, emit
10464         appropriate initial loads and final barriers.
10466 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
10468         * Makefile.in: Fix gcov dependencies that should
10469         not point to a build folder.
10471 2015-06-01  Richard Biener  <rguenther@suse.de>
10473         Revert
10474         2015-05-29  Richard Biener  <rguenther@suse.de>
10476         PR tree-optimization/66314
10477         * tree-ssa-threadupdate.c (create_block_for_threading): Add
10478         parameter that says which loop the new block belongs to.
10479         (ssa_create_duplicates): Blocks duplicated for the threaded
10480         path belong to the loop of the thread destination.
10482 2015-06-01  Martin Liska  <mliska@suse.cz>
10484         * sched-deps.c: Include pool-alloc.h before
10485         cselib.h header file is included.
10487 2015-06-01  Richard Biener  <rguenther@suse.de>
10489         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10490         functions.
10492 2015-06-01  Martin Liska  <mliska@suse.cz>
10494         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10495         a function local variable.
10497 2015-06-01  Martin Liska  <mliska@suse.cz>
10499         * alloc-pool.c (create_alloc_pool): Remove.
10500         (empty_alloc_pool): Likewise.
10501         (free_alloc_pool): Likewise.
10502         (free_alloc_pool_if_empty): Likewise.
10503         (pool_alloc): Likewise.
10504         (pool_free): Likewise.
10505         * alloc-pool.h: Remove old declarations.
10507 2015-06-01  Martin Liska  <mliska@suse.cz>
10509         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10510         (ira_create_object): Likewise.
10511         (ira_create_allocno): Likewise.
10512         (ira_create_live_range): Likewise.
10513         (copy_live_range): Likewise.
10514         (ira_finish_live_range): Likewise.
10515         (ira_free_allocno_costs): Likewise.
10516         (finish_allocno): Likewise.
10517         (finish_allocnos): Likewise.
10518         (initiate_prefs): Likewise.
10519         (ira_create_pref): Likewise.
10520         (finish_pref): Likewise.
10521         (finish_prefs): Likewise.
10522         (initiate_copies): Likewise.
10523         (ira_create_copy): Likewise.
10524         (finish_copy): Likewise.
10525         (finish_copies): Likewise.
10526         (finish_prefs): Likewise.
10528 2015-06-01  Martin Liska  <mliska@suse.cz>
10530         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10531         (allocate_and_init_ipcp_value): Likewise.
10532         (ipcp_lattice::add_value): Likewise.
10533         (merge_agg_lats_step): Likewise.
10534         (ipcp_driver): Likewise.
10535         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10536         (ipa_free_all_structures_after_iinln): Likewise.
10537         * ipa-prop.h: Likewise.
10539 2015-06-01  Martin Liska  <mliska@suse.cz>
10541         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10542         pool allocator.
10543         (set_hint_predicate): Likewise.
10544         (inline_summary_alloc): Likewise.
10545         (reset_inline_edge_summary): Likewise.
10546         (reset_inline_summary): Likewise.
10547         (set_cond_stmt_execution_predicate): Likewise.
10548         (set_switch_stmt_execution_predicate): Likewise.
10549         (compute_bb_predicates): Likewise.
10550         (estimate_function_body_sizes): Likewise.
10551         (inline_free_summary): Likewise.
10553 2015-06-01  Martin Liska  <mliska@suse.cz>
10555         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10556         (ipa_edge_duplication_hook): Likewise.
10557         (ipa_free_all_structures_after_ipa_cp): Likewise.
10558         (ipa_free_all_structures_after_iinln): Likewise.
10560 2015-06-01  Martin Liska  <mliska@suse.cz>
10562         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10563         (ipa_profile_generate_summary): Likewise.
10564         (ipa_profile_read_summary): Likewise.
10565         (ipa_profile): Likewise.
10567 2015-06-01  Martin Liska  <mliska@suse.cz>
10569         * tree-ssa-structalias.c (new_var_info): Use new type-based
10570         pool allocator.
10571         (new_constraint): Likewise.
10572         (init_alias_vars): Likewise.
10573         (delete_points_to_sets): Likewise.
10575 2015-06-01  Martin Liska  <mliska@suse.cz>
10577         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10578         (free_strinfo): Likewise.
10579         (pass_strlen::execute): Likewise.
10581 2015-06-01  Martin Liska  <mliska@suse.cz>
10583         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10584         pool allocator.
10585         (vn_reference_insert_pieces): Likewise.
10586         (vn_phi_insert): Likewise.
10587         (visit_reference_op_call): Likewise.
10588         (copy_phi): Likewise.
10589         (copy_reference): Likewise.
10590         (process_scc): Likewise.
10591         (allocate_vn_table): Likewise.
10592         (free_vn_table): Likewise.
10594 2015-06-01  Martin Liska  <mliska@suse.cz>
10596         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10597         pool allocator.
10598         (add_repeat_to_ops_vec): Likewise.
10599         (get_ops): Likewise.
10600         (maybe_optimize_range_tests): Likewise.
10601         (init_reassoc): Likewise.
10602         (fini_reassoc): Likewise.
10604 2015-06-01  Martin Liska  <mliska@suse.cz>
10606         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10607         pool allocator.
10608         (bitmap_set_new): Likewise.
10609         (get_or_alloc_expr_for_constant): Likewise.
10610         (get_or_alloc_expr_for): Likewise.
10611         (phi_translate_1): Likewise.
10612         (compute_avail): Likewise.
10613         (init_pre): Likewise.
10614         (fini_pre): Likewise.
10616 2015-06-01  Martin Liska  <mliska@suse.cz>
10618         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10619         (delete_dep_node): Likewise.
10620         (create_deps_list): Likewise.
10621         (free_deps_list): Likewise.
10622         (sched_deps_init): Likewise.
10623         (sched_deps_finish): Likewise.
10625 2015-06-01  Martin Liska  <mliska@suse.cz>
10627         * regcprop.c (free_debug_insn_changes): Use new type-based
10628         pool allocator.
10629         (replace_oldest_value_reg): Likewise.
10630         (pass_cprop_hardreg::execute): Likewise.
10632 2015-06-01  Martin Liska  <mliska@suse.cz>
10634         * ira-build.c (initiate_cost_vectors): Use new type-based
10635         pool allocator.
10636         (ira_allocate_cost_vector): Likewise.
10637         (ira_free_cost_vector): Likewise.
10638         (finish_cost_vectors): Likewise.
10640 2015-06-01  Martin Liska  <mliska@suse.cz>
10642         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10643         pool allocator.
10644         (free_sched_pools): Likewise.
10645         * sel-sched-ir.h (_list_alloc): Likewise.
10646         (_list_remove): Likewise.
10648 2015-06-01  Martin Liska  <mliska@suse.cz>
10650         * stmt.c (add_case_node): Use new type-based pool allocator.
10651         (expand_case): Likewise.
10652         (expand_sjlj_dispatch_table): Likewise.
10654 2015-06-01  Martin Liska  <mliska@suse.cz>
10656         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10657         (free_bb): Likewise.
10658         (pass_cse_reciprocals::execute): Likewise.
10660 2015-06-01  Martin Liska  <mliska@suse.cz>
10662         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10663         (sra_deinitialize) Likewise.
10664         (create_access_1) Likewise.
10665         (build_accesses_from_assign) Likewise.
10666         (create_artificial_child_access) Likewise.
10668 2015-06-01  Martin Liska  <mliska@suse.cz>
10670         * dse.c (get_group_info):Use new type-based pool allocator.
10671         (dse_step0) Likewise.
10672         (free_store_info) Likewise.
10673         (delete_dead_store_insn) Likewise.
10674         (free_read_records) Likewise.
10675         (record_store) Likewise.
10676         (replace_read) Likewise.
10677         (check_mem_read_rtx) Likewise.
10678         (scan_insn) Likewise.
10679         (dse_step1) Likewise.
10680         (dse_step7) Likewise.
10682 2015-06-01  Martin Liska  <mliska@suse.cz>
10684         * df-scan.c (struct df_scan_problem_data):Use new type-based
10685         pool allocator.
10686         (df_scan_free_internal) Likewise.
10687         (df_scan_alloc) Likewise.
10688         (df_grow_reg_info) Likewise.
10689         (df_free_ref) Likewise.
10690         (df_insn_create_insn_record) Likewise.
10691         (df_mw_hardreg_chain_delete) Likewise.
10692         (df_insn_info_delete) Likewise.
10693         (df_free_collection_rec) Likewise.
10694         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10695         (df_sort_and_compress_mws) Likewise.
10696         (df_ref_create_structure) Likewise.
10697         (df_ref_record) Likewise.
10699 2015-06-01  Martin Liska  <mliska@suse.cz>
10701         * df-problems.c (df_chain_create):Use new type-based pool allocator.
10702         (df_chain_unlink_1) Likewise.
10703         (df_chain_unlink) Likewise.
10704         (df_chain_remove_problem) Likewise.
10705         (df_chain_alloc) Likewise.
10706         (df_chain_free) Likewise.
10707         * df.h (struct dataflow) Likewise.
10709 2015-06-01  Martin Liska  <mliska@suse.cz>
10711         * cselib.c (new_elt_list):Use new type-based pool allocator.
10712         (new_elt_loc_list) Likewise.
10713         (unchain_one_elt_list) Likewise.
10714         (unchain_one_elt_loc_list) Likewise.
10715         (unchain_one_value) Likewise.
10716         (new_cselib_val) Likewise.
10717         (cselib_init) Likewise.
10718         (cselib_finish) Likewise.
10720 2015-06-01  Martin Liska  <mliska@suse.cz>
10722         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10723         (sh_reorg) Likewise.
10725 2015-06-01  Martin Liska  <mliska@suse.cz>
10727         * cfg.c (initialize_original_copy_tables):Use new type-based
10728         pool allocator.
10729         (free_original_copy_tables) Likewise.
10730         (copy_original_table_clear) Likewise.
10731         (copy_original_table_set) Likewise.
10733 2015-06-01  Martin Liska  <mliska@suse.cz>
10735         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10736         pool allocator.
10737         (asan_mem_ref_new) Likewise.
10738         (free_mem_ref_resources) Likewise.
10740 2015-06-01  Martin Liska  <mliska@suse.cz>
10742         * var-tracking.c (variable_htab_free):Use new type-based
10743         pool allocator.
10744         (attrs_list_clear) Likewise.
10745         (attrs_list_insert) Likewise.
10746         (attrs_list_copy) Likewise.
10747         (shared_hash_unshare) Likewise.
10748         (shared_hash_destroy) Likewise.
10749         (unshare_variable) Likewise.
10750         (var_reg_delete_and_set) Likewise.
10751         (var_reg_delete) Likewise.
10752         (var_regno_delete) Likewise.
10753         (drop_overlapping_mem_locs) Likewise.
10754         (variable_union) Likewise.
10755         (insert_into_intersection) Likewise.
10756         (canonicalize_values_star) Likewise.
10757         (variable_merge_over_cur) Likewise.
10758         (dataflow_set_merge) Likewise.
10759         (remove_duplicate_values) Likewise.
10760         (variable_post_merge_new_vals) Likewise.
10761         (dataflow_set_preserve_mem_locs) Likewise.
10762         (dataflow_set_remove_mem_locs) Likewise.
10763         (variable_from_dropped) Likewise.
10764         (variable_was_changed) Likewise.
10765         (set_slot_part) Likewise.
10766         (clobber_slot_part) Likewise.
10767         (delete_slot_part) Likewise.
10768         (loc_exp_insert_dep) Likewise.
10769         (notify_dependents_of_changed_value) Likewise.
10770         (emit_notes_for_differences_1) Likewise.
10771         (vt_emit_notes) Likewise.
10772         (vt_initialize) Likewise.
10773         (vt_finalize) Likewise.
10775 2015-06-01  Martin Liska  <mliska@suse.cz>
10777         * ira-color.c (init_update_cost_records):Use new type-based
10778         pool allocator.
10779         (get_update_cost_record) Likewise.
10780         (free_update_cost_record_list) Likewise.
10781         (finish_update_cost_records) Likewise.
10782         (initiate_cost_update) Likewise.
10784 2015-06-01  Martin Liska  <mliska@suse.cz>
10786         * lra.c (init_insn_regs): Use new type-based pool allocator.
10787         (new_insn_reg) Likewise.
10788         (free_insn_reg) Likewise.
10789         (free_insn_regs) Likewise.
10790         (finish_insn_regs) Likewise.
10791         (init_insn_recog_data) Likewise.
10792         (init_reg_info) Likewise.
10793         (finish_reg_info) Likewise.
10794         (lra_free_copies) Likewise.
10795         (lra_create_copy) Likewise.
10796         (invalidate_insn_data_regno_info) Likewise.
10798 2015-06-01  Martin Liska  <mliska@suse.cz>
10800         * lra-lives.c (free_live_range): Use new type-based pool allocator.
10801         (free_live_range_list) Likewise.
10802         (create_live_range) Likewise.
10803         (copy_live_range) Likewise.
10804         (lra_merge_live_ranges) Likewise.
10805         (remove_some_program_points_and_update_live_ranges) Likewise.
10806         (lra_live_ranges_init) Likewise.
10807         (lra_live_ranges_finish) Likewise.
10809 2015-06-01  Martin Liska  <mliska@suse.cz>
10811         * et-forest.c (et_new_occ): Use new type-based pool allocator.
10812         (et_new_tree): Likewise.
10813         (et_free_tree): Likewise.
10814         (et_free_tree_force): Likewise.
10815         (et_free_pools): Likewise.
10816         (et_split): Likewise.
10818 2015-06-01  Martin Liska  <mliska@suse.cz>
10820         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
10821         to header file.
10822         * alloc-pool.h (pool_allocator::pool_allocator): New function.
10823         (pool_allocator::release): Likewise.
10824         (inline pool_allocator::release_if_empty): Likewise.
10825         (inline pool_allocator::~pool_allocator): Likewise.
10826         (pool_allocator::allocate): Likewise.
10827         (pool_allocator::remove): Likewise.
10829 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10831         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
10832         in comment.
10834 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10836         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
10837         to fusible_ops.
10838         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
10839         (arm_macro_fusion_p): Likewise.
10840         (arm_macro_fusion_pair_p): Likewise.
10842 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10844         * config/aarch64/aarch64-protos.h (tune_params): Rename
10845         fuseable_ops to fusible_ops.
10846         * config/aarch64/aarch64.c (generic_tunings): Rename
10847         fuseable_ops to fusible_ops.
10848         (cortexa53_tunings): Likewise.
10849         (cortexa57_tunings): Likewise.
10850         (thunderx_tunings): Likewise.
10851         (xgene1_tunings): Likewise.
10852         (aarch64_macro_fusion_p): Likewise.
10853         (aarch64_macro_fusion_pair_p): Likewise.
10855 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10857         * config/s390/driver-native.c: New file.
10858         * config/s390/x-native: New file.
10859         * config.host: Add new files for s390.
10860         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
10861         and -march=native
10862         * config.gcc: Likewise.
10863         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
10864         * config/s390/s390-opts.h (enum processor_type): Ditto.
10865         * config/s390/s390.c (s390_option_override): Catch unhandled
10866         PROCESSOR_NATIVE
10868 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
10870         PR target/65527
10871         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
10872         redirection for instrumented calls.
10873         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
10874         (append_compiler_options): Append -fcheck-pointer-bounds.
10875         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
10876         (chkp_redirect_edge): New.
10877         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
10878         (chkp_redirect_edge): New.
10880 2015-06-01  Richard Biener  <rguenther@suse.de>
10882         PR tree-optimization/66280
10883         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
10884         def-use walking.
10886 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10888         * config/aarch64/aarch64.md
10889         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
10890         logic_shift_imm.
10892 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10894         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
10895         Remove obsolete kludge.
10897 2015-06-01  Richard Biener  <rguenther@suse.de>
10899         * tree-ssa-reassoc.c (get_rank): Simplify.
10901 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10903         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
10904         * configure: Regenerated.
10906 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
10908         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
10909         issue (add space between string literal and macro).
10910         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
10912 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10914         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
10915         implict or explicit -fPIE or -fpie.
10917 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
10919         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
10921 2015-05-28  DJ Delorie  <dj@redhat.com>
10923         * expmed.c (extract_bit_field_1): Avoid clobbering a
10924         yet-to-be-used base/index register.
10926 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
10928         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
10929         (alias_stats): Add num_universal.
10930         (alias_set_subset_of): Special case pointers; be ready for NULL
10931         children.
10932         (alias_sets_conflict_p): Special case pointers; be ready for NULL
10933         children.
10934         (init_alias_set_entry): Break out from ...
10935         (record_alias_subset): ... here; propagate new fields;
10936         allocate children only when really needed.
10937         (get_alias_set): Do less generous pointer globbing.
10938         (dump_alias_stats_in_alias_c): Update statistics.
10940 2015-05-30  Alan Modra  <amodra@gmail.com>
10942         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
10943         correct block for use of r12.
10944         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
10946 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10948         PR target/66215
10949         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
10950         with -mhotpatch=.
10952 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
10954         PR tree-optimization/66142
10955         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
10956         virtual phis that feed themselves.
10958 2015-05-29  Richard Biener  <rguenther@suse.de>
10960         PR tree-optimization/66314
10961         * tree-ssa-threadupdate.c (create_block_for_threading): Add
10962         parameter that says which loop the new block belongs to.
10963         (ssa_create_duplicates): Blocks duplicated for the threaded
10964         path belong to the loop of the thread destination.
10966 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10968         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
10969         to cleanup-saved-temps.
10970         * doc/sourcebuild.texi (Clean up generated test files): Expand
10971         introduction.
10972         (dg-keep-saved-temps): Document new proc.
10973         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
10974         cleanup-saved-temps): Remove.
10976 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
10978         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
10979         gcc_AC_CHECK_DECLS.
10980         * configure: Regenerate.
10982 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10984         * config/nios2/linux.h (CPP_SPEC): Define.
10986 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10988         * config/microblaze/linux.h (CPP_SPEC): Define.
10990 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10992         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
10993         -pthread is specified.
10995 2015-05-28  Richard Biener  <rguenther@suse.de>
10997         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
10998         (vect_fixup_scalar_cycles_with_patterns): Likewise.
10999         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11000         after pattern recog.
11001         (vect_create_epilog_for_reduction): Properly handle reductions
11002         with patterns.
11003         (vectorizable_reduction): Likewise.
11004         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11005         reduction chains.
11006         (vect_get_constant_vectors): Create the correct number of
11007         initial values for reductions.
11008         (vect_schedule_slp_instance): Handle reduction chains that are
11009         type changing properly.
11010         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11012 2015-05-28  Richard Biener  <rguenther@suse.de>
11014         PR tree-optimization/66142
11015         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11016         values better in memcpy destination handling.  Handle non-aliasing
11017         we discover here.
11019 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
11021         PR target/63810
11022         * config/darwin-c.c (version_components): New global enum.
11023         (parse_version, version_as_legacy_macro)
11024         (version_as_modern_macro, macosx_version_as_macro): New functions.
11025         (version_as_macro): Remove.
11026         (darwin_cpp_builtins): Use new function.
11028 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
11030         * builtins.c (expand_builtin_acc_on_device): Mark parameters
11031         with ATTRIBUTE_UNUSED.
11033 2015-05-28  Julian Brown  <julian@codesourcery.com>
11035         PR libgomp/65742
11037         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11038         sequence for !ACCEL_COMPILER.
11040 2015-05-28  Nick Clifton  <nickc@redhat.com>
11042         * config/rx/rx.c (push_regs): New function.  Extracts code from...
11043         (rx_expand_prologue): ... here.  Use push_regs to push even small
11044         spans of registers.
11045         (pop_regs): New function.
11046         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
11047         registers.
11049 2015-05-28  Richard Biener  <rguenther@suse.de>
11051         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11052         member.
11053         (SLP_INSTANCE_BODY_COST_VEC): Remove.
11054         (vect_update_slp_costs_according_to_vf): Likewise.
11055         (vect_slp_analyze_operations): Update prototype.
11056         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11057         vect_update_slp_costs_according_to_vf, adjust.
11058         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11059         (vect_analyze_slp_cost_1): Likewise.
11060         (vect_analyze_slp_cost): Likewise.  Properly deal with
11061         widening reduction ops.  Commit body costs.
11062         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
11063         cost for loops from here.
11064         (vect_slp_analyze_operations): But do it from here when
11065         the vectorization factor is known and stmts are analyzed.
11066         (vect_bb_vectorization_profitable_p): Simplify.
11067         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11068         (vect_update_slp_costs_according_to_vf): Remove.
11070 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
11071             H.J. Lu  <hongjiu.lu@intel.com>
11073         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11074         (BUILD_CFLAGS): Likewise.
11075         (BUILD_CXXFLAGS): Likewise.
11076         (LINKER): Add @NO_PIE_FLAG@.
11077         (BUILD_LDFLAGS): Likewise.
11078         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11079         --enable-default-pie.
11080         * common.opt (fPIE): Initialize to -1.
11081         (fpie): Likewise.
11082         (no-pie): New option.
11083         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11084         * configure.ac: Add --enable-default-pie.
11085         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
11086         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
11087         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
11088         * gcc.c (NO_PIE_SPEC): New.
11089         (PIE_SPEC): Likewise.
11090         (NO_FPIE1_SPEC): Likewise.
11091         (FPIE1_SPEC): Likewise.
11092         (NO_FPIE2_SPEC): Likewise.
11093         (FPIE2_SPEC): Likewise.
11094         (NO_FPIE2_SPEC): Likewise.
11095         (FPIE_SPEC): Likewise.
11096         (NO_FPIE_SPEC): Likewise.
11097         (NO_FPIC1_SPEC): Likewise.
11098         (FPIC1_SPEC): Likewise.
11099         (NO_FPIC2_SPEC): Likewise.
11100         (FPIC2_SPEC): Likewise.
11101         (NO_FPIC2_SPEC): Likewise.
11102         (FPIC_SPEC): Likewise.
11103         (NO_FPIC_SPEC): Likewise.
11104         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11105         (FPIE1_OR_FPIC1_SPEC): Likewise.
11106         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11107         (FPIE2_OR_FPIC2_SPEC): Likewise.
11108         (NO_FPIE_AND_FPIC_SPEC): Likewise.
11109         (FPIE_OR_FPIC_SPEC): Likewise.
11110         (LD_PIE_SPEC): Likewise.
11111         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
11112         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11113         * config/darwin.h (PIE_SPEC): Renamed to ...
11114         (DARWIN_PIE_SPEC): This.
11115         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11116         * config/darwin9.h (PIE_SPEC): Renamed to ...
11117         (DARWIN_PIE_SPEC): This.
11118         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11119         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11120         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11121         FPIE2_OR_FPIC2_SPEC.
11122         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11123         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11124         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11125         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11126         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11127         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11128         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11129         * config/m32r/m32r.h (ASM_SPEC): Likewise.
11130         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11131         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11132         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11133         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11134         * config/sparc/linux.h (ASM_SPEC): Likewise.
11135         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11136         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11137         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11138         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11139         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11140         * config/sparc/sparc.h (ASM_SPEC): Likewise.
11141         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11142         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11143         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11144         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11145         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11146         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11147         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11148         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11149         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11150         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11151         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11152         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11153         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11154         * config/vax/linux.h (ASM_SPEC): Likewise.
11155         * doc/install.texi: Document --enable-default-pie.
11156         * doc/invoke.texi: Document -no-pie.
11157         * config.in: Regenerated.
11158         * configure: Likewise.
11160 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11162         PR rtl-optimization/66168
11163         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11164         can_move_invariant_reg.
11166 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
11168         PR target/66148
11169         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11170         REG_EQUAL note when doing insert.
11172         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11173         instead of "%d" for 'o' operand.
11175 2015-05-27  Nathan Sidwell  <nathan@acm.org>
11177         PR c++/66270
11178         * tree.c (build_pointer_type_for_mode): Canonical type does not
11179         inherit can_alias_all.
11180         (build_reference_type_for_mode): Likewise.
11182 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11184         * expr.h (array_at_struct_end_p): Move to...
11185         (array_ref_element_size): Likewise.
11186         (component_ref_field_offset): Likewise.
11187         * tree.h (array_ref_element_size): ...here.
11188         (array_at_struct_end_p): Likewise.
11189         (component_ref_field_offset): Likewise.
11190         * expr.c (array_ref_element_size): Move to...
11191         (array_ref_low_bound): Likewise.
11192         (array_at_struct_end_p): Likewise.
11193         (array_ref_up_bound): Likewise.
11194         (component_ref_field_offset): Likewise.
11195         * tree.c (array_ref_element_size): ...here.
11196         (array_ref_low_bound): Likewise.
11197         (array_ref_up_bound): Likewise.
11198         (array_at_struct_end_p): Likewise.
11199         (component_ref_field_offset): Likewise.
11201 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
11202             Szabolcs Nagy  <szabolcs.nagy@arm.com>
11204         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11206 2015-05-27  Jason Merrill  <jason@redhat.com>
11208         PR bootstrap/66304
11209         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11210         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11211         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11213 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
11215         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11216         is true.
11218         * statistics.c (statistics_fini_pass): Print pass name.
11220 2015-05-27  Richard Biener  <rguenther@suse.de>
11222         PR tree-optimization/66272
11223         Revert parts of
11224         2014-08-15  Richard Biener  <rguenther@suse.de>
11226         PR tree-optimization/62031
11227         * tree-data-ref.c (dr_analyze_indices): Do not set
11228         DR_UNCONSTRAINED_BASE.
11229         (dr_may_alias_p): All indirect accesses have to go the
11230         formerly DR_UNCONSTRAINED_BASE path.
11231         * tree-data-ref.h (struct indices): Remove
11232         unconstrained_base member.
11233         (DR_UNCONSTRAINED_BASE): Remove.
11235 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
11237         * dwarf2out.c: Remove block_map.
11238         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11239         (gen_lexical_block_die): Same.
11240         (dwarf2out_function_decl): Remove block_map use.
11241         (dwarf2out_c_finalize): Same.
11242         * tree-core.h (struct tree_block): Add die field.
11243         * tree.h (BLOCK_DIE): New.
11245 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11247         PR target/65358
11248         * expr.c (memory_load_overlap): New function.
11249         (emit_push_insn): When pushing partial args to the stack would
11250         clobber the register part load the overlapping part into a pseudo
11251         and put it into the hard reg after pushing.  Change return type
11252         to bool.  Add bool argument.
11253         * expr.h (emit_push_insn): Change return type to bool.
11254         Add bool argument.
11255         * calls.c (expand_call): Cancel sibcall optimization when encountering
11256         partial argument on targets with ARGS_GROW_DOWNWARD and
11257         !STACK_GROWS_DOWNWARD.
11258         (emit_library_call_value_1): Update callsite of emit_push_insn.
11259         (store_one_arg): Likewise.
11261 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
11263         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11265 2015-05-27  Martin Liska  <mliska@suse.cz>
11267         * Makefile.in: Add additional dependencies related to memory report
11268         enhancement.
11269         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11270         * bitmap.c (struct bitmap_descriptor_d): Remove.
11271         (struct loc): Likewise.
11272         (struct bitmap_desc_hasher): Likewise.
11273         (bitmap_desc_hasher::hash): Likewise.
11274         (bitmap_desc_hasher::equal): Likewise.
11275         (get_bitmap_descriptor): Likewise.
11276         (bitmap_register): User new memory descriptor API.
11277         (register_overhead): Likewise.
11278         (bitmap_find_bit): Register nsearches and search_iter statistics.
11279         (struct bitmap_output_info): Remove.
11280         (print_statistics): Likewise.
11281         (dump_bitmap_statistics): Use new memory descriptor.
11282         * bitmap.h (struct bitmap_usage): New class.
11283         * genmatch.c: Extend header file inclusion.
11284         * genpreds.c: Likewise.
11285         * ggc-common.c (struct ggc_usage): New class.
11286         (struct ggc_loc_desc_hasher): Remove.
11287         (ggc_loc_desc_hasher::hash): Likewise.
11288         (ggc_loc_desc_hasher::equal): Likewise.
11289         (struct ggc_ptr_hash_entry): Likewise.
11290         (struct ptr_hash_hasher): Likewise.
11291         (ptr_hash_hasher::hash): Likewise.
11292         (ptr_hash_hasher::equal): Likewise.
11293         (make_loc_descriptor): Likewise.
11294         (ggc_prune_ptr): Likewise.
11295         (dump_ggc_loc_statistics): Use new memory descriptor.
11296         (ggc_record_overhead): Likewise.
11297         (ggc_free_overhead): Likewise.
11298         (final_cmp_statistic): Remove.
11299         (cmp_statistic): Likewise.
11300         (ggc_add_statistics): Liekwise.
11301         (ggc_prune_overhead_list): Likewise.
11302         * hash-map-traits.h: New file.
11303         * hash-map.h (struct default_hashmap_traits): Move the traits to a
11304         separate header file.
11305         * hash-set.h: Pass memory statistics info to ctor.
11306         * hash-table.c (void dump_hash_table_loc_statistics): New function.
11307         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11308         (hash_table::~hash_table): Register memory release operation.
11309         (hash_table::alloc_entries): Handle memory allocation operation.
11310         (hash_table::expand): Likewise.
11311         * inchash.c (iterative_hash_hashval_t): Move implementation to header
11312         file.
11313         (iterative_hash_host_wide_int): Likewise.
11314         * inchash.h (class hash): Likewise.
11315         * mem-stats-traits.h: New file.
11316         * mem-stats.h: New file.
11317         (mem_location): Add new class.
11318         (mem_usage): Likewise.
11319         (mem_alloc_description): Likewise.
11320         * sese.c: Add new header file inclusision.
11321         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11322         and hash_set.
11323         * tree-sra.c: Add new header file inclusision.
11324         * vec.c (struct vec_descriptor): Remove.
11325         (hash_descriptor): Likewise.
11326         (struct vec_usage): Likewise.
11327         (struct ptr_hash_entry): Likewise.
11328         (hash_ptr): Likewise.
11329         (eq_ptr): Likewise.
11330         (vec_prefix::register_overhead): Use new memory descriptor API.
11331         (vec_prefix::release_overhead): Likewise.
11332         (add_statistics): Remove.
11333         (dump_vec_loc_statistics): Use new memory descriptor API.
11334         * vec.h (struct vec_prefix): Likewise.
11335         (va_heap::reserve): Likewise.
11336         (va_heap::release): Likewise.
11337         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11339 2015-05-27  Richard Biener  <rguenther@suse.de>
11341         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11342         earlier and remove ??? comment.
11343         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11344         and got called from loop analysis bail out.  Always pass the SLP
11345         node to the vectorizable_* functions.
11346         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11347         the premature SLP check here.
11348         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11349         detected SLP stmts.
11350         (vect_detect_hybrid_slp_1): Likewise.
11352 2015-05-26  Jeff Law  <law@redhat.com>
11354         * combine.c (find_split_point): Verify that the shift count is a
11355         constant when choosing (plus (ashift ...)) as a split point.
11357         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11358         No functional changes.
11360 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
11362         * ipa-polymorphic-call.c
11363         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11364         case when call target is already known.
11366 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
11368         PR target/65979
11369         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11370         take into account the case that operands[1] and operands[2]
11371         are the same register.
11373 2015-05-26  Michael Matz  <matz@suse.de>
11375         PR middle-end/66251
11377         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11378         stores.
11379         (vect_create_vectorized_demotion_stmts): Always set
11380         STMT_VINFO_VEC_STMT, also with SLP.
11381         (vectorizable_store): Handle strided group stores.
11383 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11385         PR target/66049
11386         * config/aarch64/aarch64.md
11387         (*adds_shift_imm_<mode>):  New pattern.
11388         (*subs_shift_imm_<mode>):  Likewise.
11389         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
11390         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11391         (*add_uxt<mode>_shift2): Likewise.
11392         (*add_uxtsi_shift2_uxtw): Likewise.
11393         (*sub_uxt<mode>_shift2): Likewise.
11394         (*sub_uxtsi_shift2_uxtw): Likewise.
11396 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
11398         * config/rs6000/constraints.md (Y, U): Use match_test.
11400 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11402         PR target/52144
11403         * config/arm/arm.c (arm_option_check_internal)
11404         (arm_option_params_internal): Check opts->target_flags to set macros.
11405         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11406         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11407         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11408         (builtin_define): Replaced with def_or_undef_macro.
11409         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11410         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11411         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11412         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11413         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11414         (TARGET_ARM_FEATURE_LDREX_P)
11415         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11416         * config/arm/arm-c.c (def_or_undef_macro): New function.
11417         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11419 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11421         * c-common.h (builtin_define_with_int_value)
11422         (builtin_define_type_sizeof): Declare.
11423         * c-cppbuiltin.c (builtin_define_with_int_value)
11424         (builtin_define_type_sizeof): Externalize.
11425         (builtin_define_std): Cleanup declaration.
11426         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11427         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11428         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11429         (builtin_define, builtin_assert): New macros.
11431 2015-05-26  Richard Biener  <rguenther@suse.de>
11433         PR tree-optimization/66142
11434         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11435         MEM_REFs for the same base address.
11437 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11439         PR ipa/66181
11440         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11442 2015-05-26  Jason Merrill  <jason@redhat.com>
11444         * configure.ac: Set CXXFLAGS for ISL test.
11445         * configure: Regenerate.
11447         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
11448         strstr and basename.
11449         * configure: Regenerate.
11451 2015-05-26  Richard Biener  <rguenther@suse.de>
11453         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11454         X % C -> X & (C - 1) for C being a power-of two to ...
11455         * match.pd: ... patterns.
11457 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
11459         * match.pd (swapped_tcc_comparison): New operator list.
11460         (-A CMP -B): New simplification.
11461         * fold-const.c (fold_comparison): Remove corresponding code.
11463 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11465         * caller-save.c (init_caller_save): Base temporary register numbers
11466         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11467         * cfgloopanal.c (init_set_costs): Likewise.
11468         * dojump.c (prefer_and_bit_test): Likewise.
11469         * expr.c (init_expr_target): Likewise.
11470         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11471         * lower-subreg.c (init_lower_subreg): Likewise.
11472         * postreload.c (reload_cse_regs_1): Likewise.
11474 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11476         * gensupport.h (compute_test_codes): Declare.
11477         * gensupport.c (compute_predicate_codes): Rename to...
11478         (compute_test_codes): ...this.  Generalize error message.
11479         (process_define_predicate): Update accordingly.
11480         * genpreds.c (compute_maybe_allows): Delete.
11481         (add_constraint): Use compute_test_codes to determine whether
11482         something can accept a SUBREG, REG or MEM.
11484 2015-05-26  Torvald Riegel  <triegel@redhat.com>
11486         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11487         'memory model' to align with C++11; fix description of memory orders;
11488         fix a few typos.
11490 2015-05-26  Richard Biener  <rguenther@suse.de>
11492         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11493         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
11494         detect whether we apply SLP.  Remove call to
11495         vect_update_slp_costs_according_to_vf.
11496         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11497         vect_update_slp_costs_according_to_vf from here.  Dispatch
11498         to vect_slp_analyze_operations to analyze SLP stmts.
11499         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11500         unused bb_vec_info parameter, adjust assert.
11501         (vect_slp_analyze_operations): Pass in the slp instance tree
11502         instead of bb_vec_info.
11503         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11504         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11506 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
11508         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11509         Q_REGS.  Expand comment.
11510         (REG_CLASS_NAMES): Ditto.
11511         (REG_CLASS_CONTENTS): Ditto.
11513 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
11515         PR target/66274
11516         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11517         when LEGACY_INT_REGNO_P is processed.
11519 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
11521         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11523 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11525         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11526         register if not marked dead/unused, before return.
11528 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11530         PR lto/66180
11531         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11532         is set; check for assembler name at LTO time.
11533         (type_in_anonymous_namespace): Remove hacks, check that all
11534         anonymous types are called "<anon>"
11535         (odr_type_p): Simplify; add check for "<anon>"
11536         (odr_subtypes_equivalent): Add odr_type_p check.
11537         * tree.c (need_assembler_name_p): Even anonymous namespace needs
11538         assembler name.
11540 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11542         * ipa-utils.h (method_class_type): Remove.
11543         * cgraphunit.c (walk_polymorphic_call_targets): Use
11544         TYPE_METHOD_BASETYPE.
11545         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11546         on main variants only.
11547         (method_class_type): Remove.
11548         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11549         (build_type_inheritance_graph): Likewise.
11550         * ipa-icf.c (sem_function::equals_wpa): Likewise.
11551         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11552         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11554 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11556         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11557         is_typedef_decl, typedef_variant_p): Constify.
11558         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11559         is_typedef_decl, typedef_variant_p): Constify.
11561 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11563         * defaults.h (gen_tablejump): New function.
11564         (HAVE_tablejump): Add default value.
11565         * expr.c: Adjust.
11566         * stmt.c: Likewise.
11568 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11570         * defaults.h (gen_store_multiple): New function.
11571         (HAVE_store_multiple): Add default value.
11572         * expr.c (move_block_from_reg): Adjust.
11574 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11576         * defaults.h (gen_load_multiple): New function.
11577         (HAVE_load_multiple): Add default value.
11578         * expr.c (move_block_to_reg): Adjust.
11580 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11582         * defaults.h (gen_mem_signal_fence): New function.
11583         (HAVE_mem_signal_fence): Add default value.
11584         * optabs.c: Adjust.
11586 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11588         * defaults.h (gen_memory_barrier): New function.
11589         (HAVE_memory_barrier): Add default value.
11590         * optabs.c: Adjust.
11592 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11594         * defaults.h (gen_mem_thread_fence): New function.
11595         (HAVE_mem_thread_fence): Add default definition.
11596         * optabs.c: Adjust.
11598 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11600         * combine.c (find_split_point): Check the value of HAVE_lo_sum
11601         instead of if it is defined.
11602         (combine_simplify_rtx): Likewise.
11603         * lra-constraints.c (process_address_1): Likewise.
11604         * config/darwin.c: Adjust.
11605         * genconfig.c (main): Always define HAVE_lo_sum.
11607 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11609         * genmatch.c (parser::parse_operation): Reject expanding
11610         operator-list inside 'for'.
11612 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11614         * genmatch.c (parser::parse_for): Reject iterator if used as
11615         operator-list.
11617 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11619         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11620         after end of id-list.
11622 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
11624         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11625         we do not try to compute canonical type for type that does not need
11626         alias set.
11627         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11628         FUNCITON_TYPE.
11629         * tree.h (type_with_alias_set_p): New.
11631 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
11633         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
11634         function attributes.
11635         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11637 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
11639         * Makefile.in (check_gcc_parallelize): Delete.
11640         (lang_checks_parallelized): Update comment.
11642 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
11644         PR rtl-optimization/66237
11645         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11646         location of an "as_a" cast.
11648 2015-05-22  Jeff Law  <law@redhat.com>
11650         * config/pa/pa.md (non-canonical shift-add insns): Remove.
11651         (peepholes with non-canonical RTL sources): Remove.
11652         (peepholes for indexed stores of FP regs in integer modes): Match and
11653         generate canonical RTL.
11655 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11657         PR tree-optimization/63387
11658         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11659         ((x ord x) & (y ord y) -> (x ord y),
11660         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11661         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11662         vectors like scalars.
11664 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11666         * convert.c (convert_to_integer, convert_to_vector): Include the
11667         types in the error message.
11669 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11671         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11672         simplifications.
11674 2015-05-22  Jeff Law  <law@redhat.com>
11676         * config/pa/pa.md (integer_indexed_store splitters): Use
11677         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
11678         insns -- adjusting the constant 2nd operand accordingly.
11680         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11681         (plus (ashift X log2) Y) if it is a split point.
11683         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11684         out of hppa_legitimize_address to handle both forms of a multiply
11685         by 2, 4 or 8.
11686         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11687         Always generate the ASHIFT variant as the result is not directly
11688         used in a MEM.  Update comments and refactor slightly to improve
11689         readability.
11691 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11693         PR target/65491
11694         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11695         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
11696         (aarch64_composite_type_p): Return false if given type and mode are
11697         for a short vector.
11699 2015-05-22  Richard Biener  <rguenther@suse.de>
11701         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11702         member.
11703         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11704         patterns when determining whether SLP is pure.
11705         (vect_is_slp_reduction): Remove check for pattern stmts.
11706         (vect_is_simple_reduction_1): Remove dead code.
11707         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11708         (vect_get_and_check_slp_defs): Pass in the stmt number.
11709         Allow the first def in a reduction to be not a pattern stmt when
11710         the rest of the stmts def are patterns.
11711         (vect_build_slp_tree_1): Allow tcc_expression codes like
11712         SAD_EXPR and DOT_PROD_EXPR.
11713         (vect_build_slp_tree): Adjust.
11714         (vect_analyze_slp): Refactor and move BB vect error message ...
11715         (vect_slp_analyze_bb_1): ... here.
11717 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
11719         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11720         for CSWTCH temporary.
11722 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11724         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11725         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
11726         unknown unspecs.
11728 2015-05-22  Richard Biener  <rguenther@suse.de>
11730         PR tree-optimization/66251
11731         * tree-vect-stmts.c (vectorizable_conversion): Properly
11732         set STMT_VINFO_VEC_STMT even for the SLP case.
11734 2015-05-22  Marek Polacek  <polacek@redhat.com>
11736         * doc/extend.texi: Use @pxref instead of @xref.
11738 2015-05-22  hiraditya  <hiraditya@msn.com>
11740         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11741         redundant if.
11743 2015-05-22  Richard Biener  <rguenther@suse.de>
11745         PR tree-optimization/65701
11746         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11747         Move peeling cost models into one place.  Peel for alignment
11748         for single loads only if an aligned load is cheaper than
11749         an unaligned load.
11751 2015-05-22  Marek Polacek  <polacek@redhat.com>
11753         PR c/47043
11754         * doc/extend.texi (Enumerator Attributes): New section.
11755         Document syntax of enumerator attributes.
11757 2015-05-22  Richard Biener  <rguenther@suse.de>
11759         * tree-vect-loop.c (get_reduction_op): New function.
11760         (vect_model_reduction_cost): Use it, add reduc_index parameter.
11761         Make ready for BB reductions.
11762         (vect_create_epilog_for_reduction): Use get_reduction_op.
11763         (vectorizable_reduction): Init reduc_index to a valid value.
11764         Adjust vect_model_reduction_cost call.
11765         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11766         operand for reduction defaults.  Add SAD_EXPR support.
11767         Assert we have a neutral op for SLP reductions.
11768         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
11769         walking pattern stmt ops only recurse to SSA names.
11771 2015-05-22  Richard Biener  <rguenther@suse.de>
11773         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
11774         assert with guard, remove check on detected reduction.
11775         (vect_recog_sad_pattern): Likewise.
11776         (vect_recog_widen_sum_pattern): Likewise.
11778 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11780         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
11781         __always_inline__ attribute.
11782         (vaesdq_u8): Likewise.
11783         (vaesmcq_u8): Likewise.
11784         (vaesimcq_u8): Likewise.
11785         (vsha1cq_u32): Likewise.
11786         (vsha1mq_u32): Likewise.
11787         (vsha1pq_u32): Likewise.
11788         (vsha1h_u32): Likewise.
11789         (vsha1su0q_u32): Likewise.
11790         (vsha1su1q_u32): Likewise.
11791         (vsha256hq_u32): Likewise.
11792         (vsha256h2q_u32): Likewise.
11793         (vsha256su0q_u32): Likewise.
11794         (vsha256su1q_u32): Likewise.
11795         (vmull_p64): Likewise.
11796         (vmull_high_p64): Likewise.
11798 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11800         * final.c (final_scan_insn): Don't check HAVE_peephole with the
11801         preprocessor.
11802         * output.h: Likewise.
11803         * genconfig.c (main): Alwways define HAVE_peephole.
11804         * genpeep.c: Don't emit checks of HAVE_peephole.
11806 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11808         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
11809         check HAVE_conditional_move with the preprocessor.
11811 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11813         * genconfig.c (main): Always define HAVE_conditional_move.
11814         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
11815         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
11816         is defined.
11818 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11820         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
11821         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
11822         and FRAME_POINTER_REGNUM with the preprocessor.
11824 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11826         * defaults.h: Add default for STACK_PUSH_CODE.
11827         * expr.c: Don't redefine STACK_PUSH_CODE.
11828         * recog.c: Likewise.
11830 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11832         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
11833         sched-deps.c: Use if instead of preprocessor checks with
11834         STACK_GROWS_DOWNWARD.
11836 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11838         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
11839         is defined.
11840         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
11841         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
11842         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
11843         * doc/tm.texi: Regenerate.
11845 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11847         PR target/66232
11848         * config/i386/constraints.md (Bg): New constraint for GOT memory
11849         operand.
11850         * config/i386/i386.md (*call_got_x32): New pattern.
11851         (*call_value_got_x32): Likewise.
11852         * config/i386/predicates.md (GOT_memory_operand): New predicate.
11854 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
11856         PR tree-optimization/66233
11857         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
11858         Simplify.
11860 2015-05-21  Jeff Law  <law@redhat.com>
11862         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
11863         than MULT for shadd sequences.
11865 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
11867         * alias.c (alias_stats): New static var.
11868         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
11869         (dump_alias_stats_in_alias_c): New function.
11870         * alias.h (dump_alias_stats_in_alias_c): Declare.
11871         * tree-ssa-alias.c (dump_alias_stats): Call it.
11873 2015-05-08  Michael Matz  <matz@suse.de>
11875         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
11876         to strided_p.
11877         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
11878         (STMT_VINFO_STRIDED_P): ... this.
11879         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
11880         (vect_verify_datarefs_alignment): Likewise.
11881         (vect_enhance_data_refs_alignment): Likewise.
11882         (vect_analyze_data_ref_access): Likewise.
11883         (vect_analyze_data_refs): Accept strided stores.
11884         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
11885         (vect_model_load_cost): Adjust for macro rename.
11886         (vectorizable_mask_load_store): Likewise.
11887         (vectorizable_load): Likewise.
11888         (vectorizable_store): Open code strided stores.
11890 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11892         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
11893         Document sqrt_insn.
11895 2015-05-21  Richard Biener  <rguenther@suse.de>
11897         PR c++/66211
11898         * match.pd: Guard pattern optimzing (int)(float)int
11899         conversions to apply only on GIMPLE.
11901 2015-05-21  Jeff Law  <law@redhat.com>
11903         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
11904         multiply-accumulate/shift-add insn generation.
11906 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
11908         PR target/54236
11909         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
11910         operands[1] are the same.
11912 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
11914         PR middle-end/66221
11915         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
11916         build_distinct_type_copy to copy bounds.
11918 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
11920         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
11921         Change to unsigned int.
11923 2015-05-20  Jeff Law  <law@redhat.com>
11925         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
11926         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
11927         (pa_shadd_constant_p): Allow constants for shadd insns rather
11928         than valid scaling constants for memory addresses.
11929         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
11930         * config/pa/predicates.md (mem_shadd_operand): New predicate.
11931         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
11932         (shift-add insns using ASHIFT): New patterns.
11934 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
11936         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
11937         feasible.
11938         (fix_up_fall_thru_edges): Likewise.
11939         (fix_crossing_conditional_branches): Likewise. Promote jump targets
11940         from to rtx_insn to rtx_code_label where feasible.
11941         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
11942         gen_move_insn (returned type changed to rtx_insn).
11943         * builtins.c (expand_errno_check): Fix arguments of
11944         do_compare_rtx_and_jump (now expects rtx_code_label).
11945         (expand_builtin_acc_on_device): Likewise.
11946         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
11947         invert_jump (now exprects rtx_jump_insn).
11948         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
11949         (construct_init_block): Use rtx_code_label.
11950         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
11951         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
11952         calling redirect_jump.
11953         (patch_jump_insn): Likewise.
11954         (redirect_branch_edge): Likewise.
11955         (force_nonfallthru_and_redirect): Likewise.
11956         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
11957         when suitable.
11958         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
11959         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
11960         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
11961         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
11962         to store the value retured by gen_label_rtx.
11963         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
11964         rtx_jump_insn.
11965         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
11966         (split_branches): Fix calls of redirect_jump.
11967         * dojump.c (jumpifnot): Promote argument type from rtx to
11968         rtx_code_label.
11969         (jumpifnot_1): Likewise.
11970         (jumpif): Likewise.
11971         (jumpif_1): Likewise.
11972         (do_jump_1): Likewise.
11973         (do_jump): Likewise. Use rtx_code_label when feasible.
11974         (do_jump_by_parts_greater_rtx): Likewise.
11975         (do_jump_by_parts_zero_rtx): Likewise.
11976         (do_jump_by_parts_equality_rtx): Likewise.
11977         (do_compare_rtx_and_jump): Likewise.
11978         * dojump.h: Update function prototypes.
11979         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
11980         returns rtx_insn).
11981         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
11982         rtx_jump_insn.
11983         (emit_label_before): Likewise.
11984         (emit_jump_insn_after_noloc): Likewise.
11985         (emit_jump_insn_after_setloc): Likewise.
11986         (emit_jump_insn_after): Likewise
11987         (emit_jump_insn_before_setloc): Likewise.
11988         (emit_jump_insn_before): Likewise.
11989         (emit_label_before): Promote return type to rtx_code_label.
11990         (emit_label): Likewise.
11991         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
11992         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
11993         gen_move_insn.
11994         (emit_stack_restore): Likewise.
11995         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
11996         (do_cmp_and_jump): Likewise.
11997         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
11998         from rtx to rtx_code_label.
11999         (gen_move_insn_uncast): New function.
12000         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12001         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12002         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12003         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12004         invert_jump_1 and redirect_jump_1.
12005         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12006         do_compare_rtx_and_jump.
12007         (expand_addsub_overflow): Likewise.
12008         (expand_neg_overflow): Likewise.
12009         (expand_mul_overflow): Likewise.
12010         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12011         return value of gen_move_insn.
12012         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12013         * loop-doloop.c (add_test): Use rtx_code_label.
12014         (doloop_modify): Likewise.
12015         (doloop_optimize): Likewise.
12016         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12017         * lra-constraints.c (emit_spill_move): Remove cast of value returned
12018         by gen_move_insn.
12019         (inherit_reload_reg): Add cast when calling dump_insn_slim.
12020         (split_reg): Likewise.
12021         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12022         gen_move_insn.
12023         * optabs.c (expand_binop_directly): Remove casts of values returned by
12024         maybe_gen_insn.
12025         (expand_unop_direct): Likewise.
12026         (expand_abs): Likewise.
12027         (maybe_emit_unop_insn): Likewise.
12028         (maybe_gen_insn): Promote return type to rtx_insn.
12029         * optabs.h: Update prototype of maybe_gen_insn.
12030         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12031         redundant cast.
12032         * recog.c (struct peep2_insn_data): Promote type of insn field to
12033         rtx_insn.
12034         (peep2_reinit_state): Use NULL instead of NULL_RTX.
12035         (peep2_attempt): Remove casts of insn in peep2_insn_data.
12036         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12037         * recog.h (struct insn_gen_fn): Promote return types of function
12038         pointers and operator ().from rtx to rtx_insn.
12039         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12040         (fill_eager_delay_slots): Likewise.
12041         (relax_delay_slots): Likewise.
12042         (make_return_insns): Likewise.
12043         (dbr_schedule): Likewise.
12044         (optimize_skips): Likewise.
12045         (reorg_redirect_jump): Likewise.
12046         (fill_slots_from_thread): Likewise.
12047         * reorg.h: Update prototypes.
12048         * resource.c (find_dead_or_set_registers): Use dyn_cast to
12049         rtx_jump_insn instead of check.  Use it's jump_target method.
12050         * rtl.h (rtx_jump_insn::jump_label): Define new method.
12051         (rtx_jump_insn::jump_target): Define new method.
12052         (rtx_jump_insn::set_jump_target): Define new method.
12053         * rtlanal.c (tablejump_p): Promote type of one local variable.
12054         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12055         (sched_analyze_insn): Likewise.
12056         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12057         (print_insn): Likewise.
12058         * stmt.c (label_rtx): Promote return type to rtx_insn.
12059         (force_label_rtx): Likewise.
12060         (jump_target_rtx): Define new function.
12061         (expand_label): Use it, get rid of one cast.
12062         (expand_naked_return): Promote rtx to rtx_code_label.
12063         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12064         (expand_case): Use rtx_code_label instread of rtx where feasible.
12065         (expand_sjlj_dispatch_table): Likewise.
12066         (emit_case_nodes): Likewise.
12067         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
12068         * store-motion.c (insert_store): Make use of new return type of
12069         gen_move_insn and remove a cast.
12070         (replace_store_insn): Likewise.
12072 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
12074         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12075         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12077 2015-05-20  Jeff Law  <law@redhat.com>
12079         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12080         dispose of the jump thread path when the jump threading
12081         opportunity is cancelled.
12083 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12085         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12086         when printing the caret character.
12088 2015-05-20  Marek Polacek  <polacek@redhat.com>
12090         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12092 2015-05-20  Marek Polacek  <polacek@redhat.com>
12094         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12095         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12096         * gimple-fold.c (canonicalize_bool): Likewise.
12097         (same_bool_result_p): Likewise.
12098         * tree-if-conv.c (parse_predicate): Likewise.
12100 2015-05-20  Marek Polacek  <polacek@redhat.com>
12102         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12103         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12105 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12107         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12108         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12109         values.
12111 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
12113         * config/mips/mips.h (micromips_globals): Declare.
12115 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
12117         * timevar.def (TV_INITIALIZE_RTL): New.
12118         * toplev.c (initialize_rtl): Use an auto_timevar to account this
12119         function's time to TV_INITIALIZE_RTL.
12121 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
12123         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12124         gimple_build_nop calls.
12125         (chkp_find_bounds_for_elem): Likewise.
12126         (chkp_get_zero_bounds): Likewise.
12127         (chkp_get_none_bounds): Likewise.
12128         (chkp_get_bounds_by_definition): Likewise.
12129         (chkp_generate_extern_var_bounds): Likewise.
12130         (chkp_get_bounds_for_decl_addr): Likewise.
12131         (chkp_get_bounds_for_string_cst): Likewise.
12133 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
12135         PR tree-optimization/65447
12136         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12137         (dump_use, dump_uses): Support to dump sub use.
12138         (record_use): New parameters to support sub use.  Remove call to
12139         dump_use.
12140         (record_sub_use, record_group_use): New functions.
12141         (compute_max_addr_offset, split_all_small_groups): New functions.
12142         (group_address_uses, rewrite_use_address): New functions.
12143         (strip_offset): New declaration.
12144         (find_interesting_uses_address): Call record_group_use.
12145         (add_candidate): New assertion.
12146         (infinite_cost_p): Move definition forward.
12147         (add_costs): Check INFTY cost and return immediately.
12148         (get_computation_cost_at): Clear setup cost and dependent bitmap
12149         for sub uses.
12150         (determine_use_iv_cost_address): Compute cost for sub uses.
12151         (rewrite_use_address_1): Rename from old rewrite_use_address.
12152         (free_loop_data): Free sub uses.
12153         (tree_ssa_iv_optimize_loop): Call group_address_uses.
12155 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12156             Jim Wilson  <jim.wilson@linaro.org>
12158         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12159         new  fields loadv and storev.
12160         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12161         Initialize loadv and storev.
12162         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12163         (cortexa53_extra_costs): Likewise.
12164         (cortexa57_extra_costs): Likewise.
12165         (xgene1_extra_costs): Likewise.
12166         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12167         rtx_costs.
12169 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
12171         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12172          storev.
12173         (cortexa8_extra_costs): Likewise.
12174         (cortexa5_extra_costs): Likewise.
12175         (cortexa7_extra_costs): Likewise.
12176         (cortexa12_extra_costs): Likewise.
12177         (cortexa15_extra_costs): Likewise.
12178         (v7m_extra_costs): Likewise.
12180 2015-05-20  Jeff Law  <law@redhat.com>
12182         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12183         instead of open-coded version.  Also delete the jump thread created
12184         within this function.
12186 2015-05-20  Alan Modra  <amodra@gmail.com>
12188         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12189         stack adjusting insn.  Formatting.
12190         (rs6000_emit_prologue): Track stack adjusting insn, and use of
12191         r12.  If possible, emit first -fsplit-stack arg pointer insn
12192         before stack adjust.  Don't use r12 to save cr if split-stack.
12194 2015-05-20  Alan Modra  <amodra@gmail.com>
12196         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12197         Define.
12198         (rs6000_supports_split_stack): New function.
12199         * gcc/config/rs6000/rs6000.c (machine_function): Add
12200         split_stack_arg_pointer.
12201         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12202         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12203         rather than virtual_incoming_args_rtx.
12204         (rs6000_va_start): Likewise.
12205         (split_stack_arg_pointer_used_p): New function.
12206         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12207         (morestack_ref): New var.
12208         (gen_add3_const, rs6000_expand_split_stack_prologue,
12209         rs6000_internal_arg_pointer, rs6000_live_on_entry,
12210         rs6000_split_stack_space_check): New functions.
12211         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12212         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12213         (UNSPECV_SPLIT_STACK_RETURN): Define.
12214         (split_stack_prologue, load_split_stack_limit,
12215         load_split_stack_limit_di, load_split_stack_limit_si,
12216         split_stack_return, split_stack_space_check): New expands and insns.
12217         * gcc/config/rs6000/rs6000-protos.h
12218         (rs6000_expand_split_stack_prologue): Declare.
12219         (rs6000_split_stack_space_check): Declare.
12221 2015-05-20  Alan Modra  <amodra@gmail.com>
12223         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12224         (direct_return): Test vrsave_size rather than vrsave_mask.
12225         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
12226         (rs6000_emit_epilogue): Likewise.
12228 2015-05-20  Alan Modra  <amodra@gmail.com>
12230         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12231         when not saving registers.
12232         (debug_stack_info): Adjust to omit printing unused offsets,
12233         as before.
12234         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12235         expression.
12237 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12239         PR c++/65835
12240         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12241         value_type to const char *.
12243 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
12245         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12246         to build a biarch toolchain again.
12248 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
12250         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12251         or implicit declarations.
12252         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12253         into it.
12254         (get_odr_type): Check type has linkage before adding bases.
12255         (register_odr_type): Check that type has linkage before adding it.
12256         (type_known_to_have_no_deriavations_p): Rename to ..
12257         (type_known_to_have_no_derivations_p): This one.
12258         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12259         (type_known_to_have_no_derivations_p): This one.
12260         * ipa-polymorphic-call.c
12261         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12262         type has linkage.
12264 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12266         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12267         (layout_type): Use RECORD_OR_UNION_TYPE_P.
12269 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12271         * config/s390/s390.c (s390_vector_bool_type_p): New function.
12272         (s390_invalid_binary_op): New function.
12273         (TARGET_INVALID_BINARY_OP): Define macro.
12275 2015-05-19  David Sherwood  <david.sherwood@arm.com>
12277         * loop-invariant.c (create_new_invariant): Don't calculate address cost
12278         if mode is not a scalar integer.
12279         (get_inv_cost): Increase computational cost for unused invariants.
12281 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12283         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
12284         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
12285         * config/s390/s390-builtin-types.def: New file.
12286         * config/s390/s390-builtins.def: New file.
12287         * config/s390/s390-builtins.h: New file.
12288         * config/s390/s390-c.c: New file.
12289         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12290         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12291         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12292         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12293         prototypes.
12294         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12295         Include.
12296         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12297         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12298         variable definitions.
12299         (s390_const_operand_ok): New function.
12300         (s390_expand_builtin): Rewrite.
12301         (s390_init_builtins): New function.
12302         (s390_handle_vectorbool_attribute): New function.
12303         (s390_attribute_table): Add s390_vector_bool attribute.
12304         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12305         (s390_branch_condition_mask): Generate masks for new modes.
12306         (s390_expand_vec_compare_cc): New function.
12307         (s390_mangle_type): Add mangling for vector bool types.
12308         (enum s390_builtin): Remove.
12309         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12310         efpc builtins.
12311         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12312         s390_cpu_cpp_builtins.
12313         (REGISTER_TARGET_PRAGMAS): New macro.
12314         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12315         (insn_cmp mode attribute): Add new CC modes.
12316         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12317         (lcbb): New pattern definition.
12318         * config/s390/s390intrin.h: Include vecintrin.h.
12319         * config/s390/t-s390: New file.
12320         * config/s390/vecintrin.h: New file.
12321         * config/s390/vector.md: Include vx-builtins.md.
12322         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12323         support.
12325 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12327         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12328         CCVFHE.
12329         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12330         (s390_select_ccmode): Likewise.
12331         (s390_canonicalize_comparison): Swap operands if necessary.
12332         (s390_expand_vec_compare_scalar): Expand DFmode compare using
12333         single element vector instructions.
12334         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12335         (s390_branch_condition_mask): Generate CC masks for the new modes.
12336         * config/s390/s390.md (v0, vf, vd): New mode attributes.
12337         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12338         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12339         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12340         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12341         (*extend<DSF:mode><BFP:mode>2): New insn definition.
12342         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12343         (extend<DSF:mode><BFP:mode>2): Turn into expander.
12344         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12345         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12346         (sqrt<mode>2): Add vector instruction.
12348 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12350         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12351         constraints.
12352         * config/s390/predicates.md (const0_operand, constm1_operand)
12353         (constable_operand): Accept vector operands.
12354         * config/s390/s390-modes.def: Add supported vector modes.
12355         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12356         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12357         (s390_bytemask_vector_p, s390_expand_vec_strlen)
12358         (s390_expand_vec_compare, s390_expand_vcond)
12359         (s390_expand_vec_init): Add prototypes.
12360         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12361         (s390_vector_mode_supported_p): New function.
12362         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12363         (s390_contiguous_bitmask_vector_p): New function.
12364         (s390_bytemask_vector_p): New function.
12365         (s390_split_ok_p): Vector regs don't work either.
12366         (regclass_map): Add VEC_REGS.
12367         (s390_legitimate_constant_p): Handle vector constants.
12368         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12369         (legitimate_reload_vector_constant_p): New function.
12370         (s390_preferred_reload_class): Handle CONST_VECTOR.
12371         (s390_reload_symref_address):  Likewise.
12372         (s390_secondary_reload): Vector memory instructions only support
12373         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
12374         (s390_emit_ccraw_jump): New function.
12375         (s390_expand_vec_strlen): New function.
12376         (s390_expand_vec_compare): New function.
12377         (s390_expand_vcond): New function.
12378         (s390_expand_vec_init): New function.
12379         (s390_dwarf_frame_reg_mode): New function.
12380         (print_operand): Handle addresses with 'O' and 'R' constraints.
12381         (NR_C_MODES, constant_modes): Add vector modes.
12382         (s390_output_pool_entry): Handle vector constants.
12383         (s390_hard_regno_mode_ok): Handle vector registers.
12384         (s390_class_max_nregs): Likewise.
12385         (s390_cannot_change_mode_class): New function.
12386         (s390_invalid_arg_for_unprototyped_fn): New function.
12387         (s390_function_arg_vector): New function.
12388         (s390_function_arg_float): Remove size variable.
12389         (s390_pass_by_reference): Handle vector arguments.
12390         (s390_function_arg_advance): Likewise.
12391         (s390_function_arg): Likewise.
12392         (s390_return_in_memory): Vector values are returned in a VR if
12393         possible.
12394         (s390_function_and_libcall_value): Handle vector arguments.
12395         (s390_gimplify_va_arg): Likewise.
12396         (s390_call_saved_register_used): Consider the arguments named.
12397         (s390_conditional_register_usage): Disable v16-v31 for non-vec
12398         targets.
12399         (s390_preferred_simd_mode): New function.
12400         (s390_support_vector_misalignment): New function.
12401         (s390_vector_alignment): New function.
12402         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12403         (TARGET_VECTOR_MODE_SUPPORTED_P)
12404         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12405         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12406         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12407         (TARGET_VECTOR_ALIGNMENT): Define target macro.
12408         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12409         (FIRST_PSEUDO_REGISTER): Increase value.
12410         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12411         (VECTOR_REG_P): Define macros.
12412         (FIXED_REGISTERS, CALL_USED_REGISTERS)
12413         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12414         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12415         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12416         Add vector registers.
12417         (CANNOT_CHANGE_MODE_CLASS): Call C function.
12418         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12419         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12420         memory.
12421         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12422         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12423         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12424         (VR*_REGNUM): New constants.
12425         (ALL): New mode iterator.
12426         (INTALL): Remove mode iterator.
12427         Include vector.md.
12428         (movti): Implement TImode moves for VRs.
12429         Disable TImode splitter for VR targets.
12430         Implement splitting TImode GPR<->VR moves.
12431         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12432         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12433         reload<mode>_la_in, reload<mode>_la_out.
12434         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12435         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12436         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12437         (mov<mode> SF SD): Prefer lder, lde for loading.
12438         Add lrl and strl instructions.
12439         Add vector instructions.
12440         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12441         Call s390_expand_vec_strlen on z13.
12442         (*cc_to_int): Change predicate to nonimmediate_operand.
12443         (addti3): Rename to *addti3.  New expander.
12444         (subti3): Rename to *subti3.  New expander.
12445         * config/s390/vector.md: New file.
12447 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12449         * common/config/s390/s390-common.c (processor_flags_table): Add
12450         z13.
12451         * config.gcc: Add z13.
12452         * config/s390/s390-opts.h (enum processor_type): Add
12453         PROCESSOR_2964_Z13.
12454         * config/s390/s390.c (s390_adjust_priority): Check for
12455         PROCESSOR_2964_Z13.
12456         (s390_reorg): Likewise.
12457         (s390_sched_reorder): Likewise.
12458         (s390_sched_variable_issue): Likewise.
12459         (s390_loop_unroll_adjust): Likewise.
12460         (s390_option_override): Likewise. Default to -mvx when available.
12461         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12462         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12463         (TARGET_VX_ABI): Define macros.
12464         macros.
12465         (TARGET_DEFAULT): Add MASK_OPT_VX.
12466         * config/s390/s390.md ("cpu" attribute): Add z13.
12467         ("cpu_facility" attribute): Add vec.
12468         * config/s390/s390.opt (processor_type): Add z13.
12469         (mvx): New options.
12470         * doc/invoke.texi: Add z13 option for -march.
12472 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12474         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12475         mode check to make sure that only scalar integer values are
12476         accepted.
12478 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
12480         * tree.c (verify_type_variant): Fix #undef.
12481         (gimple_canonical_types_compatible_p): Move here from lto.c
12482         (verify_type): Verify TYPE_CANONICAL compatibility.
12483         * tree.h (gimple_canonical_types_compatible_p): Declare.
12485 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
12487         PR middle-end/66199
12488         * tree.h (OMP_TEAMS_COMBINED): Define.
12489         * gimplify.c (enum gimplify_omp_var_data): Add
12490         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12491         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12492         (omp_notice_variable): Accept both ORT_TEAMS
12493         and ORT_COMBINED_TEAMS.  Don't recurse if
12494         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12495         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12496         GOVD_FIRSTPRIVATE.
12497         (omp_no_lastprivate): New function.
12498         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12499         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12500         notice_outer and set appropriate bits, otherwise make
12501         sure default(none) combined constructs won't complain.
12502         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12503         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12504         omp_no_lastprivate either remove the clause or turn it
12505         into OMP_CLAUSE_PRIVATE.
12506         (gimplify_omp_for): Fix up handling of implicit
12507         lastprivate or linear iterators.
12508         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12509         ORT_COMBINED_TEAMS.
12510         * omp-low.c (lower_omp_for_lastprivate): For combined
12511         for simd use fd.loop.n2 from the for rather than simd.
12513 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12515         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12516         instead of gen_rtx_raw_REG.
12517         (cris_expand_epilogue): Likewise.
12518         * config/microblaze/microblaze.c (microblaze_classify_address):
12519         Likewise.
12520         * config/sparc/sparc.md: Likewise.
12522 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
12524         * config/alpha/alpha.c (alpha_legitimize_reload_address)
12525         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12526         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12527         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12528         Use CASE_CONST_SCALAR_INT.
12529         (print_operand) <case 'M'>: Use mode_width_operand to check the
12530         value of the constant.
12531         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12532         * config/alpha/predicates.md (input_operand): Use general_operand
12533         instead of match_code as operand check.
12534         (symbolic_operand): Use match_code with subexpression digits.
12535         * config/alpha/constraints.md (Q): Ditto.
12537 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12539         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12541 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12543         * config/s390/s390.c (s390_secondary_reload): Fix check for
12544         load/store relative.
12546 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12548         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
12549         alternative_mask to uint64_t.
12551 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
12553         PR tree-optimization/66187
12554         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12555         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
12556         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12558 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
12560         * diagnostic.c (diagnostic_report_current_module): Strengthen
12561         local "new_map" from const line_map * to
12562         const line_map_ordinary *.
12563         * genmatch.c (error_cb): Likewise for local "map".
12564         (output_line_directive): Likewise for local "map".
12565         * input.c (expand_location_1): Likewise for local "map".
12566         Pass NULL rather than &map to
12567         linemap_unwind_to_first_non_reserved_loc, since the value is never
12568         read from there, and the value written back not read from here.
12569         (is_location_from_builtin_token): Strengthen local "map" from
12570         const line_map * to const line_map_ordinary *.
12571         (dump_location_info): Strengthen locals "map" from
12572         line_map *, one to const line_map_ordinary *, the other
12573         to const line_map_macro *.
12574         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12575         const line_map * to const line_map_macro *.
12576         (maybe_unwind_expanded_macro_loc): Add a call to
12577         linemap_check_macro when writing to the "map" field of the
12578         loc_map_pair.
12579         Introduce local const line_map_ordinary * "ord_map", using it in
12580         place of "map" in the part of the function where we know we have
12581         an ordinary map.  Strengthen local "m" from const line_map * to
12582         const line_map_ordinary *.
12584 2015-05-19  Nick Clifton  <nickc@redhat.com>
12586         PR target/66156
12587         * config/msp430/msp430.md (zero_extendhisi2): Add support for
12588         separate source and destination registers.
12590 2015-05-19  Richard Biener  <rguenther@suse.de>
12592         PR tree-optimization/66165
12593         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12594         for no load permutation.
12596         PR tree-optimization/66185
12597         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12598         when building the SLP node from scalars.
12600 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12601             Tristan Gingold  <gingold@adacore.com>
12603         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12604         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12605         (expand_stack_restore): Call record_new_stack_level.
12606         (expand_stack_save): Do not call do_pending_stack_adjust.
12607         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12608         * calls.c (expand_call): Call record_new_stack_level for alloca.
12609         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12610         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12611         (update_sjlj_context): New global function.
12612         * except.h (update_sjlj_context): Declare.
12613         * explow.c (record_new_stack_level): New global function.
12614         (allocate_dynamic_stack_space): Call record_new_stack_level.
12615         * explow.h (record_new_stack_level): Declare.
12616         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12617         * cfgrtl.c (duplicate_insn_chain): Likewise.
12619 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12621         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12622         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12623         STACK_GROWS_DOWNWARD as normal if.
12624         (expand_call): Likewise.
12626 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
12628         PR target/54236
12629         * config/sh/sh.md (*round_int_even): New insn_and_split and
12630         accompanying new unnamed split.
12632 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12634         * bitmap.c (bitmap_set_range): Handle count==1 specially.
12635         (bitmap_clear_range): Likewise.
12636         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12637         bitmap_set_range unconditionally.
12638         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12639         * df-scan.c (df_mark_reg): Likewise.
12640         * haifa-sched.c (setup_ref_regs): Likewise.
12641         * sched-rgn.c (update_live_1): Likewise.
12643 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12645         * regs.h (END_HARD_REGNO): Delete.
12646         (END_REGNO): Move to...
12647         * rtl.h: ...here.
12648         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12649         * caller-save.c (mark_set_regs): Likewise.
12650         * combine.c (move_deaths, distribute_notes): Likewise.
12651         * cse.c (invalidate, invalidate_for_call): Likewise.
12652         * df-scan.c (df_ref_record): Likewise.
12653         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12654         (record_last_reg_set_info): Likewise.
12655         * reg-stack.c (convert_regs_exit): Likewise.
12656         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12657         * resource.c (update_live_status): Likewise.
12658         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12660 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12662         * rtl.h (reg_info): Add an nregs field.
12663         (REG_NREGS): Use it.
12664         (SET_REGNO_RAW): Delete.
12665         (set_regno_raw): New function.
12666         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12667         (END_REGNO): Redefine in terms of REG_NREGS.
12668         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12669         SET_REGNO_RAW.
12670         * emit-rtl.c (set_mode_and_regno): Likewise.
12671         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12672         instead of SET_REGNO_RAW.
12674 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12676         * rtl.h (PUT_MODE_RAW): New macro.
12677         (PUT_REG_NOTE_KIND): Use it.
12678         (set_mode_and_regno): Declare.
12679         (gen_raw_REG): Change regno to "unsigned int".
12680         (gen_rtx_REG): Change "unsigned" to "unsigned int".
12681         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12682         use set_mode_and_regno to change the mode of registers.
12683         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12684         * emit-rtl.c (set_mode_and_regno): New function.
12685         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
12686         * caller-save.c (reg_save_code): Use set_mode_and_regno.
12687         * expr.c (init_expr_target): Likewise.
12688         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12689         * postreload.c (reload_cse_simplify_operands): Likewise.
12691 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12693         * caller-save.c (init_caller_save): Use word_mode and
12694         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12695         * expr.c (init_expr_target): Likewise.
12696         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12697         * postreload.c (reload_cse_regs_1): Likewise.
12699 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12701         * rtl.def (REG): Change format to "r".
12702         * rtl.h (rtunion): Remove rt_reg.
12703         (reg_info): New structure.
12704         (rtx_def): Add reg field to main union.
12705         (X0REGATTR): Delete.
12706         (REG_CHECK): New macro.
12707         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12708         * rtl.c (rtx_format): Document "r".
12709         (rtx_code_size): Handle REG specially.
12710         * gengenrtl.c (special_format): Return true for formats
12711         that include 'r'.
12712         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12713         Deal with REG_ATTRS after the field loop.
12714         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12715         * expmed.c (init_expmed): Call gen_raw_REG instead of
12716         gen_rtx_raw_REG.
12717         * expr.c (init_expr_target): Likewise.
12718         * regcprop.c (maybe_mode_change): Likewise.
12719         * varasm.c (make_decl_rtl): Likewise.
12720         * final.c (leaf_renumber_regs_insn): Return early after
12721         handling REGs.
12722         * genemit.c (gen_exp): Handle 'r' fields.
12723         * genpeep.c (match_rtx): Likewise.
12724         * gensupport.c (subst_pattern_match): Likewise.
12725         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12726         (alter_constraints, subst_dup): Likewise.
12727         * read-rtl.c (read_rtx_code): Likewise.
12728         * print-rtl.c (print_rtx): Likewise.
12729         * genrecog.c (find_operand, find_matching_operand): Likewise.
12730         (validate_pattern, match_pattern_2): Likewise.
12731         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12732         (rtx_test::regno_field): New function.
12733         (operator ==, safe_to_hoist_p, transition_parameter_type)
12734         (parameter_type_string, print_parameter_value)
12735         (print_nonbool_test, print_test): Handle new enum values.
12736         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12737         * lra-constraints.c (operands_match_p): Likewise.
12739 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12741         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12742         Change type of new_regno to unsigned int.
12743         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12744         new_regno to unsigned int.
12745         (df_ref_change_reg_with_loc): Remove old_regno parameter.
12746         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
12747         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12748         (SET_REGNO_RAW): Add space after ",".
12750 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12752         * rtl.h (REG_NREGS): New macro
12753         * alias.c (record_set): Use it.
12754         * cfgcleanup.c (mark_effect): Likewise.
12755         * combine.c (likely_spilled_retval_1): Likewise.
12756         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12757         (move_deaths, distribute_notes): Likewise.
12758         * cselib.c (cselib_record_set): Likewise.
12759         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12760         * df-scan.c (df_mark_reg): Likewise.
12761         * dse.c (look_for_hardregs): Likewise.
12762         * dwarf2out.c (reg_loc_descriptor): Likewise.
12763         (multiple_reg_loc_descriptor): Likewise.
12764         * expr.c (write_complex_part, read_complex_part): Likewise.
12765         (emit_move_complex): Likewise.
12766         * haifa-sched.c (setup_ref_regs): Likewise.
12767         * ira-lives.c (mark_hard_reg_live): Likewise.
12768         * lra.c (lra_set_insn_recog_data): Likewise.
12769         * mode-switching.c (create_pre_exit): Likewise.
12770         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
12771         (reload_combine_recognize_pattern): Likewise.
12772         (reload_combine_note_use, move2add_record_mode): Likewise.
12773         (reload_cse_move2add): Likewise.
12774         * reg-stack.c (subst_stack_regs_pat): Likewise.
12775         * regcprop.c (kill_value, copy_value): Likewise.
12776         (copyprop_hardreg_forward_1): Likewise.
12777         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
12778         (build_def_use): Likewise.
12779         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
12780         (deps_analyze_insn): Likewise.
12781         * sched-rgn.c (check_live_1, update_live_1): Likewise.
12782         * sel-sched.c (count_occurrences_equiv): Likewise.
12783         * valtrack.c (dead_debug_insert_temp): Likewise.
12785 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12787         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
12788         * dse.c (note_add_store): Likewise.
12789         * ira-lives.c (mark_hard_reg_dead): Likewise.
12790         * loop-invariant.c (mark_reg_store): Likewise.
12791         (mark_reg_death): Likewise.
12792         * postreload.c (reload_combine): Likewise.
12793         (reload_combine_note_store): Likewise.
12794         (reload_combine_note_use): Likewise.
12795         * recog.c (peep2_reg_dead_p): Likewise.
12797 2015-05-19  Alan Modra  <amodra@gmail.com>
12799         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
12800         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
12801         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
12802         unused predicates.
12803         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
12804         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
12805         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
12806         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
12808 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
12810         * config/mips/mips.md (JOIN_MODE): New mode iterator.
12811         (join2_load_Store<JOIN_MODE:mode>): New pattern.
12812         (join2_loadhi): Likewise.
12813         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
12814         load-load and store-stores.
12815         * config/mips/mips.opt (mload-store-pairs): New option.
12816         (TARGET_LOAD_STORE_PAIRS): New macro.
12817         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
12818         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
12819         * config/mips/mips.c (mips_load_store_bonding_p): New function.
12821 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
12823         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
12824         explicit swaps.
12825         * dojump.c (do_compare_rtx_and_jump): Likewise.
12826         * expmed.c (emit_store_flag_1): Likewise.
12827         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
12828         * final.c (sprint_ul): Use std::reverse for reversing a string.
12829         * fold-const.c (extract_muldiv_1): Use std::swap.
12830         * genmodes.c (emit_mode_int_n): Likewise.
12831         * ifcvt.c (dead_or_predicable): Likewise.
12832         * ira-build.c (ira_merge_live_ranges): Likewise.
12833         (swap_allocno_copy_ends_if_necessary): Likewise.
12834         * ira.c (ira_setup_alts): Likewise.
12835         * loop-iv.c (iv_analyze_expr): Likewise.
12836         (implies_p): Likewise.
12837         (canon_condition): Likewise.
12838         * lra-constraints.c (swap_operands): Likewise.
12839         * lra-lives.c (lra_merge_live_ranges): Likewise.
12840         * omega.c (swap): Remove.
12841         (bswap): Remove.
12842         (omega_unprotect_1): Use std::swap.
12843         (omega_solve_geq): Likewise.
12844         * optabs.c (expand_binop_directly): Likewise.
12845         (expand_binop): Likewise.
12846         (emit_conditional_move): Likewise.
12847         (emit_conditional_add): Likewise.
12848         * postreload.c (reload_cse_simplify_operands): Likewise.
12849         * reg-stack.c (emit_swap_insn): Likewise.
12850         (swap_to_top): Likewise.
12851         (compare_for_stack_reg): Likewise.
12852         (subst_asm_stack_regs): Likewise.
12853         * reload.c (find_reloads): Likewise.
12854         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
12855         * sel-sched.c (invoke_reorder_hooks): Likewise.
12856         (create_block_for_bookkeeping): Likewise.
12857         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
12858         (lambda_matrix_right_hermite): Use std::swap.
12859         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
12860         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12861         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
12862         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
12863         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
12864         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
12865         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12866         * tree-vrp.c (compare_ranges): Likewise.
12867         * var-tracking.c (add_with_sets): Likewise.
12868         (vt_find_locations): Likewise.
12870 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
12872         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
12873         pie executables.
12874         (FBSD_ENDFILE_SPEC): Likewise.
12875         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
12876         config/freebsd-spec.h.
12877         (ENDFILE_SPEC): Likewise.
12879 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
12880             Richard Henderson  <rth@redhat.com>
12882         PR target/57032
12883         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
12884         Check for a memory location that is not a reference (using an AND)
12885         to an unaligned location here.
12886         * config/alpha/predicates.md (normal_memory_operand): Remove.
12888 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
12890         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
12891         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
12893 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12895         * config/mips/mips.c (micromips_globals): New variable.
12896         (mips_set_compression_mode): Save and reinitialize target-dependent
12897         state for microMIPS.
12899 2015-05-18  Martin Liska  <mliska@suse.cz>
12901         * dbgcnt.def: Add new counter.
12902         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
12904 2015-05-18  Martin Liska  <mliska@suse.cz>
12906         * dbgcnt.def: Sort counters.
12907         * opts.c (common_handle_option): Do not compile if
12908         -fdbg-cnt-list is enabled.
12910 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12912         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
12913         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
12914         address operator to va_list operand.
12915         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
12916         unconditionally.
12917         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
12918         operand.
12919         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
12920         * config/s390/s390.c (s390_gimplify_va_arg): Same.
12921         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
12923 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12925         * tree-ssa-tail-merge.c: Fix whitespace.
12927 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
12929         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
12930         cortex-a17, and cortex-a17.cortex-a7.
12932 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
12934         PR target/54236
12935         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
12937 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
12939         PR target/66174
12940         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
12941         QImode inner modes for TARGET_AVX512BW.  Force mask operand
12942         to a register for AVX512F modes.
12944 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12946         * toplev.c (emit_debug_global_declarations): Do not output debug info
12947         when doing slim LTO objects.
12949 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12951         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
12952         odr_types_equivalent_p): Declare.
12953         (odr_type_p): Use gcc_checking_assert.
12954         (type_in_anonymous_namespace_p) Declare.
12955         (type_with_linkage_p): Declare.
12956         * common.opt (Wlto-type-mismatch): New warning.
12957         * ipa-devirt.c (compound_type_base): New function.
12958         (odr_or_derived_type_p): New function.
12959         (odr_types_equivalent_p): New function.
12960         (add_type_duplicate): Simplify.
12961         (type_with_linkage_p): Add hack to prevent false positives on C types
12962         (type_in_anonymous_namespace_p): Likewise.
12963         * tree.c (need_assembler_name_p): Use type_with_linkage.
12964         * tree.h (type_in_anonymous_namespace_p): Remove.
12965         * doc/invoke.texi (-Wlto-type-mismatch): Document
12967 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12969         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
12970         (verify_type): Verify STRING_FLAG.
12972 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12974         PR fortran/44054
12975         * tree-pretty-print.c (percent_K_format): Replace locus pointer
12976         with accessor function.
12977         * tree-diagnostic.c (diagnostic_report_current_function): Use
12978         diagnostic_location function.
12979         (maybe_unwind_expanded_macro_loc): Likewise.
12980         (virt_loc_aware_diagnostic_finalizer): Likewise.
12981         (default_tree_printer): Replace locus pointer with accessor function.
12982         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
12983         (diagnostic_set_info_translated): Initialize second location.
12984         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
12985         (diagnostic_show_locus): Handle two locations. Call
12986         diagnostic_print_caret_line.
12987         (diagnostic_print_caret_line): New.
12988         (default_diagnostic_starter): Use diagnostic_location function.
12989         (diagnostic_report_diagnostic): Use diagnostic_location function.
12990         (verbatim): Do not set text.locus.
12991         * diagnostic.h (struct diagnostic_info): Remove location field.
12992         (struct diagnostic_context): Make caret_chars an array of two.
12993         (diagnostic_location): New inline.
12994         (diagnostic_expand_location): Handle two locations.
12995         (diagnostic_same_line): New inline.
12996         (diagnostic_print_caret_line): Declare.
12997         (CARET_LINE_MARGIN): New constant.
12998         * pretty-print.c (pp_printf): Do not set text.locus.
12999         (pp_verbatim): Do not set text.locus.
13000         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13001         (struct text_info): Replace locus pointer with locations
13002         array. Add accessor functions.
13004 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
13005             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13007         PR target/65768
13008         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13009         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13010          large constants in register instead of splitting them.
13012 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
13014         PR target/66140
13015         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13016         replacements in memory addresses.
13017         (get_unaligned_address): Ditto.
13019 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
13021         * config/ft32/*: New files for FT32 port.
13022         * doc/install.texi: Add FT32 information.
13023         * doc/invoke.texi: Add FT32 information.
13024         * doc/md.texi: Add FT32 information.
13025         * doc/contrib.texi: Self added.
13027 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
13029         PR tree-optimization/64454
13030         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13031         (-1 - A -> ~A): Remove unnecessary condition.
13033 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
13035         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13036         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13037         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13039 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
13041         * ipa-chkp.h (chkp_wrap_function): New.
13042         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13043         (chkp_wrap_function_name): New.
13044         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13045         to get wrapper name.
13046         * lto-cgraph.c: Include ipa-chkp.h.
13047         (input_cgraph_1): Avoid alias chain for wrappers.
13049 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
13051         PR middle-end/66134
13052         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13053         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13055 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13057         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13058         (AARCH64_FL_SLOWMUL): Delete.
13059         (AARCH64_FL_CRC): Redefine to 1<<3.
13060         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13062 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13064         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13065         casting.
13067 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
13069         * config/alpha/alpha.md (extendqidi2): Use general_operand
13070         instead of some_operand for operand[1] predicate.
13071         (extendhidi2): Ditto.
13072         (cbranchdi4): Use general_operand instead of some_operand
13073         for operand[1] and operands[2] predicates.
13074         (cstoredi4): Ditto.
13075         * config/alpha/predicates.md (some_operand): Remove unused predicate.
13076         (some_ni_operand): Ditto.
13078 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
13080         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13081         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
13082         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13083         low part of the constant using alpha_emit_set_const_1.
13084         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13086 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
13088         * varasm.c (output_constant_pool_1): Pass down alignment from
13089         constant pool entry's descriptor to output_constant_pool_2.
13090         (output_object_block): Add comment prior to call to
13091         output_constant_pool_1.
13093 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
13095         PR rtl-optimization/65862
13096         * target.def (ira_change_pseudo_allocno_class): New hook.
13097         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13098         value of the hook.
13099         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13100         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13101         hook.
13102         * ira-costs.c (find_costs_and_classes): Call the hook and change
13103         classes when it is necessary.
13104         * doc/tm.texi: Update.
13106 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
13108         * config/i386/i386.md (sibcall_memory): Check that register with
13109         callee address is not also used as one of the arguments, instead
13110         of checking that it is not live after the sibcall.
13111         (sibcall_pop_memory): Ditto.
13112         (sibcall_value_memory): Ditto.
13113         (sibcall_value_pop_memory): Ditto.
13115 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
13117         * generic-match-head.c (types_match): Handle non-types.
13118         * gimple-match-head.c (types_match): Likewise.
13119         * match.pd: Remove unnecessary TREE_TYPE for types_match.
13121 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
13123         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13124         (csneg3<mode>_insn): Enable expansion of pattern.
13126 2015-05-14  Nick Clifton  <nickc@redhat.com>
13128         * config/rl78/rl78.c (rl78_select_section): Select the correct
13129         default section based upon the category of the decl.
13131 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13133         PR rtl-optimization/30967
13134         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13135         destination mode for the cost of scc patterns.
13137 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
13139         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13140         using SWIM248 mode iterator.
13141         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13142         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
13143         for operand[2] constraint.
13144         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13146 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
13148         PR middle-end/66133
13149         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13150         make sure it is never noreturn, even when the task body does not
13151         return.
13152         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13153         right before GIMPLE_OMP_RETURN.
13154         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13155         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
13156         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13158 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13160         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13161         * tree-ssa-math-opts.c: Include params.h
13162         (pow_synth_sqrt_info): New struct.
13163         (representable_as_half_series_p): New function.
13164         (get_fn_chain): Likewise.
13165         (print_nested_fn): Likewise.
13166         (dump_fractional_sqrt_sequence): Likewise.
13167         (dump_integer_part): Likewise.
13168         (expand_pow_as_sqrts): Likewise.
13169         (gimple_expand_builtin_pow): Use above to attempt to expand
13170         pow as series of square roots.  Removed now unused variables.
13172 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
13174         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13175         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13176         Remove *p0 and *p1 arguments.  Rewrite function.
13177         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13178         (alpha_split_const_mov): Update calls to alpha_extract_integer and
13179         alpha_emit_set_long_const.
13180         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13181         (alpha_output_mi_thunk_osf): Ditto.
13182         * config/alpha/alpha.md (movti): Do not check operands[1]
13183         for CONST_DOUBLE.
13185 2015-05-13  Richard Biener  <rguenther@suse.de>
13187         PR tree-optimization/66129
13188         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13189         commutative.
13190         (vect_schedule_slp_instance): Fix typo.
13192 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
13194         * common.opt (fdump-internal-locations): New option.
13195         * input.c: Include diagnostic-core.h.
13196         (get_end_location): New function.
13197         (write_digit): New function.
13198         (write_digit_row): New function.
13199         (dump_location_range): New function.
13200         (dump_labelled_location_range): New function.
13201         (dump_location_info): New function.
13202         * input.h (dump_location_info): New prototype.
13203         * toplev.c (compile_file): Handle flag_dump_locations.
13205 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
13207         * gimple-expr.h (is_gimple_constant): Reorder.
13208         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13210 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
13212         * combine.c (simplify_set): When generating a CC set, if the
13213         source already is in the correct mode, do not wrap it in a
13214         compare.  Simplify the rest of that code.
13216 2015-05-13  Richard Biener  <rguenther@suse.de>
13218         PR tree-optimization/66123
13219         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13220         a taken edge.
13222 2015-05-13  Richard Biener  <rguenther@suse.de>
13224         PR middle-end/66110
13225         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13226         specially.
13227         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13229 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
13231         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13232         * aclocal.m4: Regenerated with automake-1.11.6.
13234 2015-05-13  Tom de Vries  <tom@codesourcery.com>
13236         PR tree-optimization/66010
13237         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13238         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13239         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
13240         and rval based on do_deref.
13242 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13244         PR target/65103
13245         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13246         link time constants into adress expressions and therefore set
13247         their cost to 0.
13249 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
13251         PR target/66112
13252         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13253         Use SWI248 iterator instead of SWI.
13254         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
13255         Use eq_attr "alternative" "0" instead of match_test in
13256         length_immediate attribute computation.
13257         (*mulvhi4, *mulvhi4_1): New define_insns.
13259         PR target/66112
13260         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13261         SIGNED to get precision of non-negative value.
13263 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
13265         PR target/66048
13266         * function.c (diddle_return_value_1): Process bounds first.
13267         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13268         register.
13270 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13272         PR rtl-optimization/64616
13273         * loop-invariant.c (can_move_invariant_reg): New.
13274         (move_invariant_reg): Call above new function to decide whether
13275         instruction can just be moved, skipping creation of temporary
13276         register.
13278 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13280         PR target/pr66047.c
13281         * i386.c (ix86_function_sseregparm): Only return -1 if local function
13282         with implied regparm is called from -mno-sse function.
13283         (init_cumulative_args): Output error if ix86_function_sseregparm
13284         return -1 and SSE register would be needed.
13285         (function_arg_advance_32): Likewise.
13286         (function_arg_32): Likewise.
13287         * i386.h (ix86_args): Add decl field.
13289 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13291         PR ipa/65873
13292         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13293         inlines across optimization boundary.
13295 2015-05-12  Jason Merrill  <jason@redhat.com>
13297         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13298         string literal and macro name.
13300 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
13302         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13303         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13304         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13306 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
13308         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13309         (-Wmisleading-indentation): New option.
13310         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13312 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
13314         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13315         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13316         (alpha_extract_integer): Ditto.
13317         (alpha_legitimate_constant_p): Ditto.
13318         (alpha_split_tmode_pair): Ditto.
13319         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13320         (alpha_expand_mov): Ditto.
13321         (print_operand): Remove handling of 'H' modifier.
13322         <case 'm'>: Remove CONST_DOUBLE handling.
13323         (summarize_insn): Handle CONST_WIDE_INT.
13324         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13325         (anddi3): Ditto.
13326         (movti): Handle CONST_WIDE_INT.
13327         * config/alpha/constraints.md ('H'): Remove constraint definition.
13328         ('G'): Do not match MODE_FLOAT class.
13329         * config/alpha/predicates.md (const0_operand): Also match
13330         const_wide_int.
13331         (non_add_const_operand): Ditto.
13332         (non_zero_const_operand): Ditto.
13333         (some_operand): Ditto.
13334         (input_operand): Ditto.  Handle CONST_WIDE_INT.
13335         (and_operand): Do not match const_double.
13336         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13338 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
13340         PR target/65697
13341         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13342         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13343         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13344         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13345         is_mm_seq_cst, is_mm_sync): New accessor functions.
13346         * builtins.c (expand_builtin_sync_operation,
13347         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13348         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13349         (get_memmodel,  expand_builtin_atomic_compare_exchange,
13350         expand_builtin_atomic_load, expand_builtin_atomic_store,
13351         expand_builtin_atomic_clear): Use new accessor routines.
13352         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13353         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13354         (maybe_emit_sync_lock_test_and_set): Use new accessors and
13355         MEMMODEL_SYNC_ACQUIRE.
13356         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13357         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13358         expand_atomic_store): Use new accessors.
13359         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13360         * tsan.c (instrument_builtin_call): Update check for memory model beyond
13361         final enum to use MEMMODEL_LAST.
13362         * c-family/c-common.c: Use new accessor for memmodel_base.
13363         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13364         accessors.
13365         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13366         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13367         mem_thread_fence, *dmb): Likewise.
13368         * config/alpha/alpha.c (alpha_split_compare_and_swap,
13369         alpha_split_compare_and_swap_12): Likewise.
13370         * config/arm/arm.c (arm_expand_compare_and_swap,
13371         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13372         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13373         atomic_loaddi): Likewise.
13374         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13375         Likewise.
13376         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13377         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13378         use new accessors.
13379         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13380         atomic_store<mode>, atomic_compare_and_swap<mode>,
13381         atomic_exchange<mode>): Use new accessors.
13382         * config/mips/mips.c (mips_process_sync_loop): Likewise.
13383         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13384         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13385         rs6000_post_atomic_barrier): Add new cases.
13386         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13387         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13388         (atomic_load<mode>): Add new cases and use new accessors.
13389         (store_quadpti): Add new cases.
13390         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13391         accessors.
13392         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13393         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13394         model, not 8.
13396 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13398         * ipa-devirt.c (type_with_linkage_p): New function.
13399         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13400         type has linkage.
13401         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13402         (can_be_name_hashed_p): Simplify.
13403         (hash_odr_name): Check that type has linkage before checking if it is
13404         anonymous.
13405         (types_same_for_odr): Likewise.
13406         (odr_name_hasher::equal): Likewise.
13407         (odr_subtypes_equivalent_p): Likewise.
13408         (warn_types_mismatch): Likewise.
13409         (get_odr_type): Likewise.
13410         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13411         * ipa-utils.h (odr_type_p): Move offline.
13412         * tree.c (need_assembler_name_p): Fix handling of types
13413         without linkages.
13414         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13416 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
13418         * timevar.c (timevar_enable): Delete in favor of...
13419         (g_timer): New global.
13420         (struct timevar_def): Move to timevar.h inside class timer.
13421         (struct timevar_stack_def): Likewise.
13422         (timevars): Delete global in favor of field "m_timevars" within
13423         class timer in timevar.h
13424         (stack): Likewise, in favor of field "m_stack".
13425         (unused_stack_instances): Likewise, in favor of field
13426         "m_unused_stack_instances".
13427         (start_time): Likewise, in favor of field "m_start_time".
13428         (get_time): Eliminate check for timevar_enable.
13429         (timer::timer): New function, built from part of timevar_init.
13430         (timevar_init): Rewrite idempotency test from using
13431         "timevar_enable" bool to using dynamic allocation of "g_timer".
13432         Move rest of implementation into timer's constructor.
13433         (timevar_push_1): Rename to...
13434         (timer::push): ...this, adding "m_" prefixes to variables that
13435         are now fields of timer.
13436         (timevar_pop_1): Likewise, rename to...
13437         (timer::pop): ...this, and add "m_" prefixes.
13438         (timevar_start): Replace test for "timevar_enable" with one for
13439         "g_timer", and move bulk of implementation to...
13440         (timer::start): ...here, adding "m_" prefixes.
13441         (timevar_stop): Likewise, from here...
13442         (timer::stop): ...to here.
13443         (timevar_cond_start): Likewise, from here...
13444         (timer::cond_start): ...to here.
13445         (timevar_cond_stop): Likewise, from here...
13446         (timer::cond_stop): ...to here.
13447         (validate_phases): Rename to...
13448         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
13449         locals "total" and "tv" const.
13450         (timevar_print): Rename to...
13451         (timer::print): ...this, and add "m_" prefixes.  Make locals
13452         "total" and "tv" const.  Eliminate test for timevar_enable.
13453         * timevar.h (timevar_enable): Eliminate.
13454         (g_timer): New declaration.
13455         (timevar_push_1): Eliminate.
13456         (timevar_pop_1): Eliminate.
13457         (timevar_print): Eliminate.
13458         (class timer): New class.
13459         (timevar_push): Rewrite to use g_timer.
13460         (timevar_pop): Likewise.
13461         * toplev.c (toplev::~toplev): Likewise.
13463 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
13465         * arm-protos.h (arm_sched_autopref): Delete.
13466         (tune_params): Re-organize, use enums for flag values.
13467         (FUSE_OPS): New macro.
13468         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13469         (ARM_PREFETCH_BENEFICIAL): Likewise.
13470         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13471         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13472         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13473         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13474         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13475         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
13476         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13477         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13478         format.
13479         (arm_option_override, thumb2_reorg, arm_print_tune_info)
13480         (aarch_macro_fusion_pair_p): Update uses of current_tune.
13481         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13483 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
13485         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13486         "break".
13488 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
13489             Sandra Loosemore <sandra@codesourcery.com>
13491         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13492         value.
13493         (REG_CLASS_NAMES): Add "IJMP_REGS".
13494         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13495         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13496         use new "c" register constraint.
13497         * config/nios2/constraint.md (c): New register constraint
13498         corresponding to IJMP_REGS.
13500 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13502         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13503         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13504         define_splits): Delete, revamp, transmogrify into ...
13505         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13506         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13507         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13508         New.
13510 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13512         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13513         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13515 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13517         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13518         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13519         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13520         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13521         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13522         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13523         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13524         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13525         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13526         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13527         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13528         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13529         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13530         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13531         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13532         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13533         and 30 corresponding splitters): Delete.
13535 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13537         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13538         zero_extract.
13540 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13542         * combine.c (recog_for_combine_1): New function, factored out
13543         from recog_for_combine.
13544         (change_zero_ext): New function.
13545         (recog_for_combine): If recog fails, try again with the pattern
13546         modified by change_zero_ext; if that still fails, restore the
13547         pattern.
13549 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13551         * combine.c (get_undo_marker): New function.
13552         (undo_to_marker): New function, largely factored out from ...
13553         (undo_all): ... this.  Adjust.
13555 2015-05-12  Richard Biener  <rguenther@suse.de>
13557         PR tree-optimization/66101
13558         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13559         fixup if we turn a loop exit edge to a fallthru edge.
13561 2015-05-12  Richard Biener  <rguenther@suse.de>
13563         PR tree-optimization/37021
13564         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13565         (SLP_TREE_TWO_OPERATORS): New define.
13566         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13567         SLP_TREE_TWO_OPERATORS.
13568         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13569         SLP node.
13570         (vect_build_slp_tree): Adjust.
13571         (vect_analyze_slp_cost_1): Likewise.
13572         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13573         emitting two vector stmts and mixing the results.
13575 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13577         * call.c (print_z_candidates): Remove dead code.
13579 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13581         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13582         and zEC12_simple_fp.
13583         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13584         to 1.
13586 2015-05-12  Tom de Vries  <tom@codesourcery.com>
13588         PR tree-optimization/66010
13589         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13590         ifn_va_arg.
13591         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13592         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
13593         va_lists are passed, and remove corresponding handling.
13594         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
13595         do_deref argument to ifn_va_arg.
13596         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13597         ifn_va_arg.
13599 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13601         PR target/65955
13602         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13603         REG before taking its REGNO.
13605 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13607         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13608         rsp->sign_bit_copies and rsp->nonzero_bits into ...
13609         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
13610         present to get more accurate information about the number of sign bit
13611         copies and non zero bits.
13613 2015-05-12  Richard Biener  <rguenther@suse.de>
13615         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13616         do not allow unrolling.
13618 2015-05-11  Richard Henderson  <rth@redhat.com>
13620         * config/i386/i386-modes.def (CCP): New.
13621         * config/i386/i386.c (put_condition_code): Handle it.
13622         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13624 2015-05-11  Richard Henderson  <rth@redhat.com>
13626         * target.def (md_asm_clobbers): Replace with...
13627         (md_asm_adjust): this.
13628         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13629         (TARGET_MD_ASM_ADJUST): New.
13630         * tm.texi: Rebuild.
13631         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13632         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13633         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13635         * cfgexpand.c (check_operand_nalternatives): Accept vector of
13636         constraints instead of lists of outputs and inputs.
13637         (expand_asm_stmt): Save and restore input_location around the
13638         body of the function.  Move asm data into vectors instead of
13639         building tree lists.  Generate cleanup sequences as needed,
13640         rather than waiting til the end.  Use new md_asm_adjust hook.
13642         * config/vxworks.c: Include vec.h before target.h.
13643         * gimple.c: Likewise.
13644         * incpath.c: Likewise.
13645         * mode-switching.c: Likewise.
13647         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13648         (cris_md_asm_adjust): this.
13649         (TARGET_MD_ASM_CLOBBERS): Remove.
13650         (TARGET_MD_ASM_ADJUST): New.
13651         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13652         (ix86_md_asm_adjust): this.
13653         (TARGET_MD_ASM_CLOBBERS): Remove.
13654         (TARGET_MD_ASM_ADJUST): New.
13655         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13656         (mn10300_md_asm_adjust): this.
13657         (TARGET_MD_ASM_CLOBBERS): Remove.
13658         (TARGET_MD_ASM_ADJUST): New.
13659         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13660         (rs6000_md_asm_adjust): this.
13661         (TARGET_MD_ASM_CLOBBERS): Remove.
13662         (TARGET_MD_ASM_ADJUST): New.
13663         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13664         (visium_md_asm_adjust): this.
13665         (TARGET_MD_ASM_CLOBBERS): Remove.
13666         (TARGET_MD_ASM_ADJUST): New.
13668 2015-05-11  Richard Henderson  <rth@redhat.com>
13670         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13671         if noutputs is zero.
13672         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13674         * cfgexpand.c (expand_asm_operands): Merge into...
13675         (expand_asm_stmt): ... here.
13677         * cfgexpand.c (expand_asm_operands): Don't call
13678         resolve_asm_operand_names.
13679         * stmt.c (resolve_asm_operand_names): Clarify block comment.
13681 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
13683         * dwarf2out.c (gen_member_die): Sanity check that we access
13684         TYPE_MAIN_VARIANT for TYPE_METHODS.
13685         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13686         checking TYPE_METHODS.
13687         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13688         if non-null.
13689         (build_distinct_type_copy): Clear TYPE_METHODS.
13690         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13691         (verify_type): Allow TYPE_METHODS to be error_mark_node.
13692         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13694 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13696         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13697         (emit_pattern_before_setloc): Likewise.
13699 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13701         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13702         for define_peephole2s.
13703         (get_peephole2_pattern): New function.
13704         (main): Use it.  Call validate_pattern.
13706 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13708         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13709         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13710         (Last callee saved reg is different for AVR_TINY architecture)
13712 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13714         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13715         when looking for memory references.
13717 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13719         PR target/65753
13720         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13721         via function pointers.
13723 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13725         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13726         indirect call by forcing address into a pseudo with -fno-plt.
13727         * common.opt (flag_plt): New option.
13728         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13729         ([-fno-plt]): Document.
13731 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
13733         PR bootstrap/66105
13734         * config/rs6000/option-defaults.h: Add space between string literal
13735         and macro name.
13737 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13739         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13740         accross ARM targets.
13742 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13744         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13745         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13747 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13749         PR rtl-optimization/66076
13750         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13751         Don't grow the heap array if it is already big enough from a
13752         previous iteration.
13754 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13756         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13757         (is_called_in_ARM_mode): Remove.
13758         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13759         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13760         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13761          arm_declare_function_name.
13763 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13765         * config/arm/arm.c (arm_option_override): Reoganized and split into :
13766         (arm_option_params_internal); New function.
13767         (arm_option_check_internal): New function.
13768         (arm_option_override_internal): New function.
13769         (thumb_code, thumb1_code): Remove.
13770         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
13771         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
13772         (thumb_code, thumb1_code): Remove.
13773         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
13775 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13777         * config/alpha/alpha.c (alpha_emit_set_const_1)
13778         (alpha_emit_set_long_const, alpha_extract_integer)
13779         (alpha_legitimate_constant_p, alpha_split_const_mov)
13780         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
13781         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13782         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
13783         HOST_WIDE_INT_1U.
13784         * config/alpha/predicates.md (mode_mask_operand): Do not match
13785         const_double RTX.
13786         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13787         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
13788         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
13789         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13790         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
13792 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
13794         PR target/65780
13795         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
13796         default_binds_local_p_2.
13797         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
13798         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
13800 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13802         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
13804 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13806         Patch by Richard Biener
13807         * coverage.c (coverage_obj_init): Delay building of type variant
13808         until the type is finished.
13810 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13812         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
13813         mismatch between C and C++ type; compoare correctly ARG_TYPES
13814         for non-prototypes and output correctly parameter index for METHOD_TYPE.
13815         (odr_types_equivalent_p): Fix wording of warning about attributes;
13816         it is OK to match prototype and non-prototype.
13818 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13820         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
13821         TYPE_ARG_TYPES list.
13822         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
13823         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
13825 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13827         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
13828         * tree.h (is_lang_specific): Constify.
13830 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
13832         PR tree-optimization/64454
13833         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
13834         Rewrite.
13836 2015-05-08  Jason Merrill  <jason@redhat.com>
13838         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
13839         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
13840         config/darwin.h, config/darwin9.h, config/elfos.h,
13841         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
13842         config/microblaze/microblaze.h, config/mips/mips.h,
13843         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
13844         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
13845         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13846         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
13847         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
13848         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
13849         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
13850         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
13851         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
13852         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
13853         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
13854         between string literal and macro name.
13856 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13858         * jump.c: Change argument types to rtx_insn *.
13859         * rtl.h: Adjust.
13861 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13863         * lra-constraints.c: Change argument type to rtx_insn *.
13865 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13867         * df-problems.c: Change argument type to rtx_insn *.
13869 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13871         * combine.c: Change argument type to rtx_insn *.
13873 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13875         * rtl.h: Adjust.
13876         * rtlanal.c: Change argument type to rtx_insn *.
13878 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13880         * sched-deps.c: Change argument types to rtx_insn *.
13881         * sched-int.h: Adjust.
13883 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13885         * dwarf2cfi.c: Change argument type to rtx_insn *.
13887 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13889         * ira.c (decrease_live_ranges_number): Changetype of local
13890         variable to rtx_insn *.
13891         * recog.c: Change argument types to rtx_insn *.
13892         * recog.h: Adjust.
13894 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13896         * reorg.c: Change argument types to rtx_insn *.
13898 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13900         * ira-color.c: Change argument types to rtx_insn *.
13901         * lra-eliminations.c: Likewise.
13902         * ira.h: Adjust.
13904 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13906         * gcse.c: Change argument types to rtx_insn *.
13908 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13910         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
13912 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13914         * emit-rtl.c (emit_debug_insn_before): Change argument type to
13915         rtx_insn *.
13916         * rtl.h: Adjust.
13918 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13920         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
13921         * rtl.h: Adjust.
13923 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13925         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
13926         * rtl.h: Adjust.
13928 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13930         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
13931         * rtl.h: Adjust.
13933 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13935         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
13936         * rtl.h: Adjust.
13938 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13940         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
13941         to rtx_insn *.
13942         * rtl.h: Adjust.
13944 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13946         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
13947         to rtx_insn *.
13948         * rtl.h: Likewise.
13950 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13952         * except.c (can_nonlocal_goto): Change type of argument to
13953         rtx_insn *.
13954         * rtl.h: Adjust.
13956 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13958         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
13959         * rtl.h: Adjust.
13961 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13963         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
13964         * cfgrtl.c (can_delete_label_p): Adjust.
13965         * rtl.h: likewise.
13967 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13969         * reorg.c (stop_search_p): Change argument to rtx_insn *.
13971 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13973         * except.c (make_reg_eh_region_note): Change argument to
13974         rtx_insn *.
13975         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
13976         * except.h: Adjust.
13978 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13980         * mode-switching.c (commit_mode_sets): Change type of local
13981         variable from rtx to rtx_insn *.
13983 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
13985         * doc/install.texi (--enable-languages): Add missing jit and lto info.
13986         Add ^ to grep command.
13987         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
13988         arg to last gimple_simplify declaration.  Add missing gimple_build
13989         declaration for built-in function case with four tree args.
13991 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
13992             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13994         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
13995         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
13996         (GNU_USER_DYNAMIC_LINKERN32): Update.
13998 2015-05-08  Richard Biener  <rguenther@suse.de>
14000         PR tree-optimization/66036
14001         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14002         Handle strided group loads.
14003         (vect_verify_datarefs_alignment): Likewise.
14004         (vect_enhance_data_refs_alignment): Likewise.
14005         (vect_analyze_group_access): Likewise.
14006         (vect_analyze_data_ref_access): Likewise.
14007         (vect_analyze_data_ref_accesses): Likewise.
14008         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14009         (vectorizable_load): Likewise.
14011 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
14013         * config/rs6000/rs6000.md: Require operand inequality in one
14014         of the peepholes.
14016 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
14017             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14019         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14020         from (set ...).
14021         * config/rx/rx.md (movdi, movdf): Likewise.
14022         Likewise for define_peephole2s.
14024 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14026         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14027         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14028         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14029         vtst_u64): Rewrite using gcc vector extensions.
14031 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14033         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14034         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14036 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
14038         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14040 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14042         * config/glibc-stdint.h (OPTION_MUSL): Define.
14043         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14044         Change the definition based on OPTION_MUSL for 64 bit targets.
14045         * config/linux.h (OPTION_MUSL): Redefine.
14046         * config/alpha/linux.h (OPTION_MUSL): Redefine.
14047         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14048         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14050 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
14051             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14053         * config.gcc (LIBC_MUSL): New tm_defines macro.
14054         * config/linux.h (OPTION_MUSL): Define.
14055         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14056         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14057         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14058         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14059         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14060         * config/linux.opt (mmusl): New option.
14061         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14062         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14063         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14064         * configure: Regenerate.
14066 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
14067             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14069         PR target/48904
14070         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14071         * config/i386/knetbsd-gnu64.h: New file.
14073 2015-05-08  Marek Polacek  <polacek@redhat.com>
14075         PR c/64918
14076         * doc/invoke.texi: Document -Woverride-init-side-effects.
14078 2015-05-07  Marek Polacek  <polacek@redhat.com>
14080         PR c/65179
14081         * doc/invoke.texi: Document -Wshift-negative-value.
14083 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
14085         * gcov-tool.c (do_merge): Refactore to remove int ret.
14086         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14087         !type == FUNC to type != FUNC.
14088         * reload.h (struct target_reload): Changee to type of
14089         x_spill_indirect_levels from bool to unsigned char.
14091 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
14093         * rtl.h (always_void_p): New function.
14094         * gengenrtl.c (always_void_p): Likewise.
14095         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14096         with code foo are always VOIDmode.
14097         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14098         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14099         compare-elim.c, config/aarch64/aarch64.c,
14100         config/aarch64/aarch64.md, config/alpha/alpha.c,
14101         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14102         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14103         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14104         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14105         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14106         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14107         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14108         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14109         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14110         config/ia64/vect.md, config/iq2000/iq2000.c,
14111         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14112         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14113         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14114         config/mep/mep.c, config/microblaze/microblaze.c,
14115         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14116         config/mn10300/mn10300.c, config/msp430/msp430.c,
14117         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14118         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14119         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14120         config/rs6000/altivec.md, config/rs6000/rs6000.c,
14121         config/rs6000/rs6000.md, config/rs6000/vector.md,
14122         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14123         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14124         config/sh/sh.md, config/sh/sh_treg_combine.cc,
14125         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14126         config/spu/spu.md, config/stormy16/stormy16.c,
14127         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14128         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14129         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14130         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14131         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14132         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14133         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14134         var-tracking.c: Update calls accordingly.
14136 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
14138         PR middle-end/192
14139         PR middle-end/54303
14140         * varasm.c (function_mergeable_rodata_prefix): New function.
14141         (mergeable_string_section): Use it.
14142         (mergeable_constant_section): Use it.
14144 2015-05-07  Jeff Law  <law@redhat.com>
14146         PR target/39726
14147         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14148         simplifier to narrow arithmetic.
14149         * generic-match-head.c: (types_match, single_use): New functions.
14150         * gimple-match-head.c: (types_match, single_use): New functions.
14152 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14154         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14155         rtx type.
14157 2015-05-07  Richard Biener  <rguenther@suse.de>
14159         PR tree-optimization/66002
14160         * passes.def: Schedule another pass_merge_phi after ifcombine, right
14161         before phiopt.
14163 2015-05-07  Marek Polacek  <polacek@redhat.com>
14164             Martin Uecker  <uecker@eecs.berkeley.edu>
14166         * doc/invoke.texi: Document -fsanitize=bounds-strict.
14167         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14168         into SANITIZE_NONDEFAULT.
14169         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14171 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
14173         PR target/66015
14174         * config/alpha/alpha.c (alpha_override_options_after_change): New.
14175         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14176         (alpha_override_options): Move align_loops, align_jumps and
14177         align_functions handling into alpha_override_options_after_change.
14179 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
14180             Chris Jones  <chrisj@nvidia.com>
14181             Joshua Conner  <jconner@nvidia.com>
14183         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14184         linking of crtfastmath.o.
14185         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14187 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
14189         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14190         (cstore<mode>4_unsigned_imm): New expander.
14191         (cstore<mode>4): Remove empty constraint strings.  Use the new
14192         expanders.
14194 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
14196         PR target/64208
14197         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14198         alternatives.
14200 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14202         * config/aarch64/geniterators.sh: Use standard BRE in sed.
14204 2015-05-06  Alan Modra  <amodra@gmail.com>
14206         PR target/66033
14207         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14208         (UNSPEC_NOP): Define.
14209         (reload_vsx_from_gpr<mode>): Add missing DONE.
14210         (reload_gpr_from_vsx<mode>): Likewise.
14211         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14212         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14214 2015-05-06  Christian Bruel  <christian.bruel@st.com>
14216         PR target/66015
14217         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14218         align_jumps, align_functions into aarch64_override_options_after_change.
14220 2015-05-06  Richard Biener  <rguenther@suse.de>
14222         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14223         vect_transform_slp_perm_load to check if we support a permutation
14224         for basic-block vectorization.
14226 2015-05-06  Nick Clifton  <nickc@redhat.com>
14228         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14229         used, even if it is not being used as a frame pointer.
14231 2015-05-05  Jason Merrill  <jason@redhat.com>
14233         * dwarf2out.c (gen_member_die): Don't emit anything for an
14234         anonymous class constructor.
14236 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
14238         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14239         that it reflects the block structure.
14240         (afdo_propagate_edge): Likewise.
14241         (afdo_calculate_branch_prob): Likewise.
14242         (afdo_annotate_cfg): Likewise.
14243         * cfgcleanup.c (equal_different_set_p): Likewise.
14244         (try_crossjump_to_edge): Likewise.
14245         * cgraph.c (cgraph_node::verify_node): Likewise.
14246         * cgraphunit.c (expand_all_functions): Likewise.
14247         * config/i386/i386.c (ix86_expand_copysign): Likewise.
14248         (exact_dependency_1): Likewise.
14249         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14250         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14251         * gensupport.c (process_define_subst): Likewise.
14252         * lto-wrapper.c (merge_and_complain): Likewise.
14253         * tree-if-conv.c (if_convertible_bb_p): Likewise.
14254         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14255         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14256         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14257         * tree-vect-loop.c (vectorizable_reduction): Likewise.
14258         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14259         * tree-vect-stmts.c (vectorizable_shift): Likewise.
14260         * tree-vrp.c (vrp_finalize): Likewise.
14261         * tree.c (variably_modified_type_p): Likewise.
14263 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
14265         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14266         on darwin12 and later.
14267         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14268         file to pass -rdynamic on darwin12 and later.
14269         * config/darwin.opt (rdynamic): Add.
14271 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14273         * doc/extend.texi (C Extensions): Update menu for moved Variable
14274         Attributes and Type Attributes sections.
14276 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14278         PR target/65990
14279         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14280         if rep_8byte stringop strategy was specified for 32-bit target.
14282 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
14284         PR target/65915
14285         * config/i386/i386.md (vector convert to float spltiter): Check for
14286         xmm16+, when splitting scalar float conversion.
14287         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14289 2015-05-05  Nick Clifton  <nickc@redhat.com>
14291         * config/msp430/msp430-opts.h (enum msp430_regions): New.
14292         * config/msp430/msp430.c (msp430_override_options): Complain if
14293         -mcode-region or -mdata-region is used on a non MSP430X.
14294         (msp430_section_attr): New function.  Checks lower, upper and
14295         either attributes.
14296         (msp430_attribute_table): Add lower, upper and either.
14297         (gen_prefix): New function.  Generates a prefix for a section
14298         name.
14299         (msp430_select_section): New function - handles the choice of
14300         section for an object.  Takes into account memory region
14301         attributes and options.
14302         (msp430_function_section): Use gen_prefix.
14303         (TARGET_SECTION_TYPE_FLAGS): Define.
14304         (msp430_section_type_flags): New function.
14305         (TARGET_ASM_UNIQUE_SECTION): Define.
14306         (msp430_unique_section): New function.
14307         (msp430_output_aligned_decl_common): New function.
14308         (msp430_do_not_relax_short_jumps): New function.
14309         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14310         Define.
14311         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14312         * config/msp430/msp430-protos.h
14313         (msp430_do_not_relax_short_jumps): New prototype.
14314         (msp430_output_aligned_decl_common): New prototype.
14315         * config/msp430/msp430.md (length): New attribute.
14316         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14317         then use a long code sequence for short jumps.
14318         * config/msp430/msp430.opt (mcode-region): New.
14319         (mdata-region): New.
14320         * doc/invoke.texi: Document new options.
14321         * doc/extend.texi: Document new attributes.
14323 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14325         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14326         (tune_params): Add field branch_costs.
14327         (aarch64_branch_cost): Declare.
14328         * gcc/config/aarch64.c (generic_branch_cost): New.
14329         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14330         (cortexa53_tunings): Likewise.
14331         (cortexa57_tunings): Likewise.
14332         (thunderx_tunings): Likewise.
14333         (xgene1_tunings): Likewise.
14334         (aarch64_branch_cost): Define.
14335         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14337 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14339         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14340         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14341         * config/i386/i386.md: Ditto.
14342         * config/i386/winnt.c: Ditto.
14344 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14346         * doc/extend.texi (__atomic Builtins): Move implementation details
14347         to the end of the description, rewrite opening paragraphs, state
14348         difference with __sync builtins, state C11/C++11 assumptions,
14349         weaken itemized descriptions, add explanation of memory model
14350         behaviour, expand description of compare-exchange, simplify text.
14352 2015-05-05  Renlin Li  <renlin.li@arm.com>
14354         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14356 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
14358         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14359         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14360         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14361         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14362         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14363         * configure: Regenerate.
14364         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14365         * doc/install.texi (aarch64*-*-*): Document new
14366         --enable-fix-cortex-a53-843419 option.
14367         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14368         and -mno-fix-cortex-a53-843419 options.
14370 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14372         PR target/65871
14373         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14375 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
14377         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14378         fix overactive TYPE_MIN_VALUE check and add FIXME for type
14379         compatibility problems.
14381 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14383         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14384         constraints.
14385         (cbranchsi4_reg): New.
14386         * config/microblaze/microblaze.c
14387         (microblaze_expand_conditional_branch_reg): New.
14388         * config/microblaze/microblaze-protos.h
14389         (microblaze_expand_conditional_branch_reg): New prototype.
14391 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14393         * config/microblaze/microblaze.md (peephole2): New.
14395 2015-05-04  Jeff Law  <law@redhat.com>
14397         Revert:
14398         2015-05-04  Jeff Law  <law@redhat.com>
14400         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14401         simplifier to narrow arithmetic.
14402         * generic-match-head.c: (types_match, single_use): New functions.
14403         * gimple-match-head.c: (types_match, single_use): New functions.
14405 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14407         PR target/65987
14408         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14409         (split_branches): Likewise.
14411 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
14413         * common.opt (fdelete-null-pointer-checks): Init to -1.
14414         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14415         override flag_delete_null_pointer_checks default.
14416         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14417         behavior re address zero.  Better document target-specific behavior.
14418         (-fisolate-errneous-paths-dereference): Mention relationship to
14419         -fdelete-null-pointer-checks.
14421 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
14423         PR tree-optimization/65984
14424         * ubsan.c: Include tree-cfg.h.
14425         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14426         stmt_could_throw_p test, rename can_throw variable to ends_bb.
14428 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
14430         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14431         to CONST_DOUBLE_P predicate.
14432         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14433         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14434         allow only operands that satisfy standard_sse_constant_p predicate.
14435         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14436         to CONST_DOUBLE_P predicate.
14438 2015-05-04  Jeff Law  <law@redhat.com>
14440         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14441         simplifier to narrow arithmetic.
14442         * generic-match-head.c: (types_match, single_use): New functions.
14443         * gimple-match-head.c: (types_match, single_use): New functions.
14445 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
14447         * config/arm/arm.c: Restore bootstrap.
14449 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
14451         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14452         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14453         as CONST_WIDE_INT, not CONST_DOUBLE.
14454         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14455         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14456         (ix86_find_base_term): Do not check for CONST_DOUBLE.
14457         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14458         (ix86_build_signbit_mask): Rewrite using wide ints.
14459         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14460         (ix86_rtx_costs): Handle CONST_WIDE_INT.
14461         (find_constant): Ditto.
14462         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14463         using gen_int_mode.
14464         * config/i386/predicates.md (x86_64_immediate_operand)
14465         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14466         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14467         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14468         (const0_operand): Also match const_wide_int.
14469         (constm1_operand): Ditto.
14470         (const1_operand): Ditto.
14472 2015-05-04  Richard Biener  <rguenther@suse.de>
14474         PR tree-optimization/65965
14475         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14476         store groups at gaps.
14478 2015-05-04  Richard Biener  <rguenther@suse.de>
14480         PR tree-optimization/65935
14481         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14482         then make sure to apply that swapping to the IL.
14484 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
14486         * Makefile.in (PATCHLEVEL_c): New variable.
14487         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14488         expand the same way as if DEVPHASE_c was non-empty.
14490 2015-05-04  Kai Tietz  <ktietz@redhat.com>
14492         PR target/65559
14493         * lto-wrapper.c (run_gcc): Open filename
14494         in binary-mode.
14496 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
14498         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
14499         sections up in file, to immediately after the Function Attributes
14500         section.
14502 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
14504         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14506 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14508         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14509         (insert_partition_copy_on_edge): Adjust.
14510         (insert_rtx_to_part_on_edge): Likewise.
14511         (insert_part_to_rtx_on_edge): Likewise.
14513 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14515         * function.c (set_return_jump_label): Change type of argument to
14516         rtx_insn *.
14517         * function.h (set_return_jump_label): Adjust.
14519 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14521         * reload.h (struct reg_equivs_t): Change type of init to
14522         rtx_insn *.
14523         * ira.c (fix_reg_equiv_init): Adjust.
14524         * reload1.c (eliminate_regs_1): Likewise.
14525         (init_eliminable_invariants): Likewise.
14527 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14529         * cselib.c (fp_setter_insn): Take a rtx_insn *.
14530         * cselib.h (fp_setter_insn): Adjust.
14532 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14534         * recog.c (struct validate_replace_src_data): Change type of
14535         insn field to rtx_insn *.
14536         (validate_replace_src_group): Change type of argument to rtx_insn *.
14537         * recog.h (validate_replace_src_group): Adjust.
14539 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14541         * haifa-sched.c: Change the type of some variables to rtx_insn *.
14542         * sched-deps.c: Likewise.
14543         * sched-int.h: Likewise.
14544         * sched-rgn.c: Likewise.
14545         * sel-sched.c: Likewise.
14547 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14549         to rtx_insn *.
14550         * config/i386/i386.c: Change the type of some arguments to
14551         rtx_insn *.
14552         * config/arm/arm.c: Likewise.
14554 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14556         * lra-constraints.c: Change type of some arguments to rtx_insn *.
14558 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14560         * regcprop.c (kill_autoinc_value): Change type of argument to
14561         rtx_insn *.
14563 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14565         * genrecog.c (print_subroutine): Adjust.
14566         * recog.c (get_bool_attr_mask_uncached): Likewise.
14567         * recog.h (struct recog_data_d): Change the type of insn to
14568         rtx_insn *.
14570 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14572         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14574 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14576         * df-problems.c (df_set_note): Change type of argument to
14577         rtx_insn *.
14579 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14581         * builtins.c (expand_builtin_trap): Change type of local
14582         variable to rtx_insn *.
14583         (add_sched_insns_for_speculation): Likewise.
14584         (ix86_emit_save_regs): Likewise.
14585         (get_scratch_register_on_entry): Likewise.
14586         (ix86_emit_restore_reg_using_pop): Likewise.
14587         (ix86_emit_leave): Likewise.
14588         (ix86_emit_restore_regs_using_mov): Likewise.
14589         (ix86_expand_epilogue): Likewise.
14590         Likewise.
14591         (rl78_alloc_physical_registers_umul): Likewise.
14592         * cselib.c (discard_useless_locs): Likewise.
14593         (cselib_invalidate_regno): Likewise.
14594         (cselib_invalidate_mem): Likewise.
14595         * function.c (expand_function_start): Likewise.
14596         (emit_use_return_register_into_block): Likewise.
14597         * gcse.c: Likewise.
14598         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14599         * ifcvt.c (noce_get_alt_condition): Likewise.
14600         * loop-doloop.c (doloop_condition_get): Likewise.
14601         * lra-constraints.c (inherit_in_ebb): Likewise.
14602         * modulo-sched.c (sms_schedule_by_order): Likewise.
14603         * recog.c (next_insn_tests_no_inequality): Likewise.
14604         * reorg.c (emit_delay_sequence): Likewise.
14605         (update_reg_dead_notes): Likewise.
14606         (fix_reg_dead_note): Likewise.
14607         (fill_slots_from_thread): Likewise.
14608         (delete_computation): Likewise.
14610 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
14612         * doc/extend.texi (Variable Attributes): Add menu and proper
14613         @nodes to subsections.  Move Microsoft Windows attributes to
14614         their own subsection.
14615         (Type Attributes): Reorganize introduction to remove duplicate
14616         list of attributes.  Add menu and proper @nodes to subsections.
14617         Alphabetize the main table of common attributes.
14619 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
14621         * match.pd: New simplification patterns.
14622         (x + (x & 1))  -> ((x + 1) & ~1)
14623         (x & ~(x & y)) -> ((x & ~y))
14624         (x | ~(x | y)) -> ((x | ~y))
14626 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14628         * target.def (attribute_table): Mention that struct attribute_spec
14629         is defined in tree-core.h rather than tree.h
14630         * doc/tm.texi: Regenerate.
14632 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
14634         * genrecog.c (test): Rename to rtx_test.  Update rest of file
14635         accordingly.
14637 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14639         PR translation/65959
14640         * params.h (DEFPARAM): Rename msgid to nocmsgid.
14642 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14644         * gcc/config/aarch64/aarch64-protos.h (tune_params):
14645         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14646         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14647         Return value depending on target.
14648         (generic_tunings): Initialize new target settings.
14649         (cortexa53_tunings): Likewise.
14650         (cortexa57_tunings): Likewise.
14651         (thunderx_tunings): Likewise.
14652         (xgene1_tunings): Likewise.
14654 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14656         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14657         Make Cortex-A53 shift costs more accurate.
14659 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14661         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14662         UNSIGNED_FLOAT.
14664 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14666         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14667         Calculate cost of op0 and op1 in PLUS and MINUS cases.
14669 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14671         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14672         Add cost of op0 in the compare-with-fpzero case.
14674 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
14676         * builtins.c (fold_builtin_1): Remove spurious second
14677         semicolon.
14678         * cgraph.h (symtab_node::get_availability): Likewise.
14679         * opts.c (common_handle_option): Remove spurious second semicolon.
14680         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14681         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14683 2015-04-30  Caroline Tice  <cmtice@google.com>
14685         PR gcov-profile/65929
14686         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14687         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14688         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14689         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14690         * doc/tm.texi: Regenerate.
14691         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
14692         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14693         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
14694         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14696 2015-04-30  Marek Polacek  <polacek@redhat.com>
14698         * varasm.c (handle_cache_entry): Fix logic.
14700 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14702         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14703         (*extrsi5_insn_uxtw_alt): Likewise.
14704         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14705         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14706         operations.
14708 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14710         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14711         fabd in ABS case.
14713 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14715         * config/aarch64/aarch64.md
14716         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14717         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14718         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14719         appropriately.  Handle alternative EON form.
14721 2015-04-30  Renlin Li  <renlin.li@arm.com>
14723         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14724         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14726 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14728         PR ipa/65873
14729         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14730         -fstrict-aliasing boundaries.
14732 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14734         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14735         and [SU]MNEGL patterns.
14737 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14739         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14740         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14741         combined arithmetic-shift ops.  Properly handle all shift and extend
14742         operations that can occur in combination with PLUS/MINUS.
14743         Rename maybe_fma to compound_p.
14744         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14745         arithmetic and shift operations.
14747 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14749         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14750         rather than arith_shift cost when costing ADD/MINUS of an
14751         extended value.
14753 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14755         PR lto/65948
14756         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14757         to itself.
14759 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
14761         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14762         are for the same position.
14764 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
14766         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
14767         vectorize_loops.
14768         (vectorize_loops): Use it.
14770 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14772         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
14773         for aggregate types.
14774         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
14775         type to be non_ODR.
14776         * tree.c (need_assembler_name_p): Compute mangled name for
14777         non-fundamental types and integer types.
14779 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
14781         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
14782         manual swaps.
14783         * expr.c (expand_expr_real_2): Likewise.
14785 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14787         * tree.c (build_common_builtin_nodes): Do not build
14788         __builtin_alloca_with_align as equivalent of library alloca.
14790 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14792         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
14793         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
14794         bugus variants.
14795         * tree.c: Include print-tree.h and ipa-utils.h
14796         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
14797         (free_lang_data_in_cgraph): Call verify_type.
14798         (verify_type_variant): New function.
14799         (verify_type): New function.
14800         * tree.h (verify_type): Declare.
14802 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
14804         * config/mips/mips-cpus.def: (mips4): Change default processor
14805         from PROCESSOR_R8000 to PROCESSOR_R10000.
14807 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
14809         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
14810         la/jalr instead of jal.
14812 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
14814         PR target/65871
14815         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
14816         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
14817         (setcc+movzbl peephole2): Check also clobbered reg.
14818         (setcc+andl peephole2): Ditto.
14820 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14822         PR libgomp/65099
14823         * config/nvptx/mkoffload.c (target_ilp32): New variable.
14824         (main): Set it depending on "-foffload-abi=[...]".
14825         (compile_native, main): Use it to pass "-m32" or "-m64" to the
14826         compiler.
14828 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14830         PR target/65770
14831         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
14832         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
14833         Flip lane index back at assembly time for bigendian.
14835 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14837         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
14838         * gimplify.c (gimplify_omp_workshare): Use it.
14840 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14842         * Makefile.in (build/genrecog.o): Depend on inchash.h.
14843         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
14844         build/inchash.o
14845         * genrecog.c: Rewrite most of the code except for the third page.
14847 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14849         * inchash.h, inchash.c: Include bconfig.h for build objects.
14850         * Makefile.in (build/inchash.o): New rule.
14852 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
14854         PR target/65924
14855         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
14856         number in type attribute expression.
14858 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14860         * loop-iv.c (canon_condition): Generalize to all types of integer
14861         constant.
14863 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
14865         * gimple-walk.c: Prune duplicate or unneeded includes.
14866         (walk_gimple_asm): Only call parse_input_constraint or
14867         parse_output_constraint if their findings are used.
14868         Honour parse_input_constraint and parse_output_constraint
14869         result.
14871 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14873         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
14875 2015-04-29  Tom de Vries  <tom@codesourcery.com>
14877         PR tree-optimization/65893
14878         * passes.def (pass_all_optimizations): Move pass_stdarg to after
14879         pass_dce.
14881 2015-04-29  Richard Biener  <rguenther@suse.de>
14883         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14884         compute GROUP_SIZE for basic-block SLP.
14885         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
14886         take into account gaps.
14887         (vect_get_mask_element): Properly reject references to previous
14888         vectors.
14889         (vect_transform_slp_perm_load): Likewise.
14891 2015-04-29  Christian Bruel  <christian.bruel@st.com>
14893         PR target/64835
14894         * config/i386/i386.c (ix86_default_align): New function.
14895         (ix86_override_options_after_change): Call ix86_default_align.
14896         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
14897         (ix86_override_options_after_change): New function.
14899 2015-04-28  Jeff Law  <law@redhat.com>
14901         * tree-ssa-dom.c (record_equality); Fix comment typos.
14903 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14905         PR tree-optimization/65887
14906         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
14908 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
14910         * doc/extend.texi (Declaring Attributes of Functions): Split into
14911         subsections by target.  Alphabetize the table of common attributes.
14912         Rewrite some of the introductory text to reflect the new structure.
14913         Update some cross-references to point to the new subsections.
14914         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
14915         duplicate copies in the discussion of function, label, and type
14916         attributes.
14918 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
14920         PR bootstrap/65910
14921         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
14923 2015-04-28  Jason Merrill  <jason@redhat.com>
14925         PR c++/65734
14926         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
14927         (finalize_type_size): Respect TYPE_USER_ALIGN.
14928         (layout_type) [ARRAY_TYPE]: Likewise.
14930 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
14932         * config/arm/arm.md (*arm_movt): Fix type attribute.
14933         (*cmpsi_shiftsi): Likewise.
14934         (*cmpsi_shiftsi_swp): Likewise.
14935         (*movsicc_insn): Likewise.
14936         (*cond_move): Likewise.
14937         (*if_plus_move): Likewise.
14938         (*if_move_plus): Likewise.
14939         (*if_arith_move): Likewise.
14940         (*if_move_arith): Likewise.
14941         (*if_shift_move): Likewise.
14942         (*if_move_shift): Likewise.
14943         (*arm_movtas_ze): Likewise.
14944         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
14945         redundancy and type attribute.
14946         (*thumb2_movsi_insn): Fix type attribute.
14947         (*thumb2_addsi_short): Likewise.
14948         (thumb2_addsi3_compare0): Likewise.
14949         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
14950         attributes accordingly.
14952 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
14954         PR other/65911
14955         * function.c (pad_to_arg_alignment): Add parentheses.
14957 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
14959         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
14960         libgcc/config/frv/elf-lib.h.
14962 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14964         * tree-call-cdce.c: Fix example in header comment.
14966 2015-04-28  Richard Biener  <rguenther@suse.de>
14968         PR tree-optimization/62283
14969         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
14970         fails fatally and we are vectorizing a basic-block simply
14971         cause the child to be constructed piecewise.
14972         (vect_analyze_slp_cost_1): Adjust.
14973         (vect_detect_hybrid_slp_stmts): Likewise.
14974         (vect_bb_slp_scalar_cost): Likewise.
14975         (vect_get_constant_vectors): For piecewise constructed
14976         constants place them after the last def.
14977         (vect_get_slp_defs): Adjust.
14978         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
14979         externals for basic-block vectorization.
14981 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14983         PR target/63503
14984         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
14985         aarch64-*-*.
14986         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
14987         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
14988         (AARCH64_TUNE_FMA_STEERING): Likewise.
14989         * config/aarch64/aarch64-cores.def: Set
14990         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
14991         FMUL/FMADD instructions.
14992         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
14993         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
14994         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
14995         * config/aarch64/cortex-a57-fma-steering.h: New file.
14996         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14998 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
15000         * gensupport.c (std_preds): Add missing codes to address_operand entry.
15002 2015-04-28  Richard Biener  <rguenther@suse.de>
15004         PR tree-optimization/65851
15005         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15006         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
15007         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
15008         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15009         (ccp_visit_phi_node): Adjust.
15010         (evaluate_stmt): For simplifications to SSA names return its
15011         lattice value if that isn't VARYING.  Return immediately when
15012         simplified to a constant.
15013         (visit_assignment): Adjust.
15014         (ccp_visit_stmt): Likewise.
15016 2015-04-28  Tom de Vries  <tom@codesourcery.com>
15018         PR tree-optimization/65818
15019         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15020         evaluated.
15022 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15024         * calls.c (save_fixed_argument_area): Don't check
15025         ARGS_GROW_DOWNWARD with the preprocessor.
15026         (restore_fixed_argument_area): Likewise.
15027         (mem_overlaps_already_clobbered_arg_p): Likewise.
15028         (check_sibcall_argument_overlap): Likewise.
15029         (expand_call): Likewise.
15030         (emit_library_call_value_1): Likewise.
15031         (store_one_arg): Likewise.
15032         * function.c (assign_parms): Likewise.
15033         (locate_and_pad_parm): Likewise.
15034         (pad_to_arg_alignment): Likewise.
15035         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15037 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15039         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15040         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15041         * calls.c (save_fixed_argument_area): Don't chekc if
15042         ARGS_GROW_DOWNWARD is defined.
15043         (restore_fixed_argument_area): Likewise.
15044         (mem_overlaps_already_clobbered_arg_p): Likewise.
15045         (check_sibcall_argument_overlap): Likewise.
15046         (expand_call): Likewise.
15047         (emit_library_call_value_1): Likewise.
15048         (store_one_arg): Likewise.
15049         * function.c (assign_parms): Likewise.
15050         (locate_and_pad_parm): Likewise.
15051         (pad_to_arg_alignment): Likewise.
15052         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15054 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15056         * defaults.h (gen_epilogue): New function.
15057         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15058         defined.
15059         * cfgrtl.c (cfg_layout_finalize): Likewise.
15060         * df-scan.c: Likewise.
15061         * function.c (thread_prologue_and_epilogue_insns): Likewise.
15062         (reposition_prologue_and_epilogue_notes): Likewise.
15063         * reorg.c (find_end_label): Likewise.
15064         * toplev.c: Likewise.
15066 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15068         * bb-reorder.c (HAVE_return): Don't check if its undefined.
15069         * defaults.h (gen_simple_return): New function.
15070         (gen_simple_return): Likewise.
15071         (HAVE_return): Add default definition to false.
15072         (HAVE_simple_return): Likewise.
15073         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15074         HAVE_return and HAVE_simple_return are defined.
15075         * function.c (gen_return_pattern): Likewise.
15076         (convert_jumps_to_returns): Likewise.
15077         (thread_prologue_and_epilogue_insns): Likewise.
15078         * reorg.c (find_end_label): Likewise.
15079         (dbr_schedule): Likewise.
15080         * shrink-wrap.c: Likewise.
15081         * shrink-wrap.h: Likewise.
15083 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15085         * defaults.h (EPILOGUE_USES): Add default definition of false.
15086         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15087         * resource.c (init_resource_info): Likewise.
15089 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15091         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15092         to false.
15093         * dwarf2out.c (field_byte_offset): REmove check if
15094         PCC_BITFIELD_TYPE_MATTERS is defined.
15095         * stor-layout.c (layout_decl): Likewise.
15096         (update_alignment_for_field): Likewise.
15097         (place_field): Likewise.
15099 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15101         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15102         true.
15103         * regrename.c (check_new_reg_p): Remove check if
15104         HARD_REGNO_RENAME_OK is defined.
15105         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15107 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15109         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15110         * cse.c (fold_rtx): Likewise.
15111         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15112         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15113         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15114         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15115         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15116         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15117         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15118         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15119         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15120         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15121         * Likewise.
15122         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15123         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15124         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15125         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15126         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15127         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15128         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15129         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15130         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15131         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15132         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15133         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15134         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15135         * doc/tm.texi: Regenerate.
15136         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15137         either true or false.
15139 2015-04-27  Jeff Law  <law@redhat.com>
15141         PR tree-optimization/65217
15142         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15143         of them has a single use, make sure it is the LHS of the implied
15144         copy.
15146 2015-04-28  Alan Modra  <amodra@gmail.com>
15148         PR target/65810
15149         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15150         (offsettable_ok_by_alignment): Use minimum of decl and toc
15151         pointer alignment.  Replace dead code with assertion.
15152         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
15153         case if size exceeds toc pointer alignment.
15154         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15155         (rs6000_emit_move): Likewise.
15156         * configure.ac: Add linker toc pointer alignment check.
15157         * configure: Regenerate.
15158         * config.in: Regenerate.
15160 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
15162         * config.gcc: Add h8300-*-linux.
15163         * config/h8300/linux.h: New.
15164         * config/h8300/t-linux: New.
15165         * config/h8300/h8300.c (h8300_option_override): Normal mode
15166         is not supported for h8300-*-linux.
15167         (h8300_file_start): Target priority change.
15168         (get_shift_alg): Likewise.
15169         (h8300_shift_need_scratch_p): Likewise.
15170         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15171         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15173 2015-04-27  Caroline Tice  <cmtice@google.com>
15175         * final.c (final_scan_insn):  Output cold_function_name as function
15176         type.
15177         * varasm.c (cold_function_name):  Make global.
15178         (assemble_start_function):  Re-set cold_function_name.
15179         (assemble_end_function): Output cold partition size.
15180         * varasm.h (cold_function_name):  Declare global.
15182 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
15184         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15185         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15186         constraint.
15187         (*movxi_internal_avx512f): Ditto.
15188         (define_split): Check for xmm16+, when splitting scalar float_extend.
15189         (*extendsfdf2_mixed): Use "v" constraint.
15190         (define_split): Check for xmm16+, when splitting scalar float_truncate.
15191         (*truncdfsf_fast_sse): Use "v" constraint.
15192         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15193         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15194         (define_peephole2): Check for xmm16+, when converting scalar
15195         float_truncate.
15196         (define_peephole2): Check for xmm16+, when converting scalar
15197         float_extend.
15198         (*fop_<mode>_comm_mixed): Use "v" constraint.
15199         (*fop_<mode>_comm_sse): Ditto.
15200         (*fop_<mode>_1_mixed): Ditto.
15201         (*sqrt<mode>2_sse): Ditto.
15202         (*ieee_s<ieee_maxmin><mode>3): Ditto.
15204 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15206         * combine.c (simplify_if_then_else): Use std::swap instead
15207         of manually swapping.
15208         (known_cond): Likewise.
15209         (simplify_comparison): Likewise.
15211 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
15213         PR target/64579
15214         * config/rs6000/htm.md: Remove all define_expands.
15215         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15216         UNSPECV_HTM_TABORTWCI): Remove.
15217         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15218         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15219         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15220         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15221         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15222         tabortwci_internal): Remove define_insns.
15223         (tabort<wd>c, tabort<wd>ci): New define_insns.
15224         (tabort): Use gpc_reg_operand.
15225         (tcheck): Remove operand.
15226         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15227         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15228         expected value.
15229         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15230         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
15231         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15232         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15233         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15234         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15235         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15236         (tcheck): Remove builtin argument.
15237         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15238         not TARGET_64BIT.
15239         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
15240         tabortdc and tabortdci builtins when not in 64-bit mode.
15241         Modify code to handle the loss of the HTM define_expands.
15242         Emit code to copy the CR register to TARGET.
15243         (htm_init_builtins): Modify code to handle the loss of the HTM
15244         define_expands.
15245         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15246         (RS6000_BTC_64BIT): Likewise.
15247         (RS6000_BTC_CR): New macro.
15248         * doc/extend.texi: Update documentation for htm builtins.
15250 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15252         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15253         of manually swapping.
15254         (simplify_associative_operation): Likewise.
15255         (simplify_binary_operation): Likewise.
15256         (simplify_plus_minus): Likewise.
15257         (simplify_relational_operation): Likewise.
15258         (simplify_ternary_operation): Likewise.
15260 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
15262         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15263         (xs_hi_nonmemory_operand): Remove error.
15264         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15265         general_operand rather than xs_hi_general_operand.
15267 2015-04-27  Richard Biener  <rguenther@suse.de>
15269         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15270         (record_equivalences_from_stmt): Valueize rhs.
15271         (record_equality): Canonicalize x and y order via
15272         tree_swap_operands_p.  Do not swap operands for same loop depth.
15274 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
15276         PR target/65296
15277         PR target/65895
15278         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15279         Add hint how to use own spec file.
15281 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
15283         PR tree-optimization/65875
15284         * tree-vrp.c (update_value_range): If in is_new case setting
15285         old_vr to VR_VARYING, also set new_vr to it.  Remove
15286         old_vr->type == VR_VARYING test.
15287         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15288         SSA_PROP_INTERESTING if update_value_range returned true,
15289         but new range is VR_VARYING.
15291 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15293         * combine.c (sign_extend_short_imm): New.
15294         (set_nonzero_bits_and_sign_copies): Use above new function for sign
15295         extension of src short immediate.
15296         (reg_nonzero_bits_for_combine): Likewise for tem.
15298 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15300         * stor-layout.c (self_referential_component_ref_p): New predicate.
15301         (copy_self_referential_tree_r): Use it.
15302         (self_referential_size): Punt for simple operations directly involving
15303         self-referential component references.
15304         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15306 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15308         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15310 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
15312         * vec.h (vec): Make splice arguments const.  Update definitions
15313         accordingly.
15315 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
15317         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15318         alternatives.
15320 2015-04-26  Tom de Vries  <tom@codesourcery.com>
15322         PR tree-optimization/65826
15323         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15325 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
15327         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15328         (*madd3<mode>): Ditto.
15329         (*msub4<mode>): Ditto.
15330         (*msub3<mode>): Ditto.
15331         (*nmadd4<mode>): Ditto.
15332         (*nmadd3<mode>): Ditto.
15333         (*nmadd4<mode>_fastmath): Ditto.
15334         (*nmadd3<mode>_fastmath): Ditto.
15335         (*nmsub4<mode>): Ditto.
15336         (*nmsub3<mode>): Ditto.
15337         (*nmsub4<mode>_fastmath): Ditto.
15338         (*nmsub3<mode>_fastmath): Ditto.
15340 2015-04-24  Jason Merrill  <jason@redhat.com>
15342         PR c++/50800
15343         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15344         down when building TYPE_CANONICAL.
15345         (build_pointer_type_for_mode): Likewise.
15347 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
15349         * genrecog.c (validate_pattern): Check matching constraint refers
15350         to a lower numbered operand.
15352 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15354         PR target/65849
15355         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15356         save to independent variables use the Save attribute.  This will
15357         allow these options to be modified with the #pragma/attribute
15358         target support.
15359         (-mallow-movmisalign): Likewise.
15360         (-mallow-df-permute): Likewise.
15361         (-msched-groups): Likewise.
15362         (-malways-hint): Likewise.
15363         (-malign-branch-targets): Likewise.
15364         (-mvectorize-builtins): Likewise.
15365         (-msave-toc-indirect): Likewise.
15367         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15368         can be set via the #pragma/attribute target support.
15369         (rs6000_opt_vars): Likewise.
15370         (rs6000_inner_target_options): If VSX was set, also set
15371         -mno-avoid-indexed-addresses.
15373 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15375         * config/arm/iterators.md (shiftable_ops): Rename to...
15376         (SHIFTABLE_OPS): ... This.  Update use in comments.
15377         (ior_xor): Rename to...
15378         (IOR_XOR): ... This.
15379         (vqh_ops): Rename to...
15380         (VQH_OPS): ... This.
15381         (vqhs_ops): Rename to...
15382         (VQHS_OPS): ... This.
15383         (rshifts): Rename to...
15384         (RSHIFTS): ... This.
15385         (returns): Rename to...
15386         (RETURNS): ... This.
15387         * config/arm/arm.md: Update uses of the above.
15388         * config/arm/neon.md: Likewise.
15390 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15392         * config.host (case ${host}): Add aarch64*-*-linux case.
15393         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15394         fields to all the cores.
15395         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15396         Add MCPU_MTUNE_NATIVE_SPECS.
15397         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15398         field to all extensions.
15399         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15400         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15401         Adjust definition of AARCH64_OPT_EXTENSION.
15402         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15403         (MCPU_MTUNE_NATIVE_SPECS): Define.
15404         * config/aarch64/driver-aarch64.c: New file.
15405         * config/aarch64/x-arch64: New file.
15406         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15407         -mtune and -march.
15409 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15410             Wei Mi  <wmi@google.com>
15412         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15413         * config/i386/i386.c (extract_base_offset_in_addr): New function.
15414         (ix86_operands_ok_for_move_multiple): Ditto.
15415         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15416         (movlpd/movhpd to movupd peephole2): Ditto.
15418 2015-04-24  Marek Polacek  <polacek@redhat.com>
15420         PR c/61534
15421         * input.h (from_macro_expansion_at): Define.
15423         PR c/63357
15424         * doc/invoke.texi: Update description of -Wlogical-op.
15426 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15428         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15429         ternary operator in fprintf and harmonize spacing.
15431 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15433         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15434         Mark operand1 commutative.
15436 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15438         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15439         input operands in memory.
15440         (*vec_concatv2si_sse4_1): Ditto.
15441         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15442         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15443         register_operand.
15444         (vec_extract_hi_v32hi): Ditto.
15445         (vec_extract_hi_v64hi): Ditto.
15446         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15448 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15449             Steven Bosscher <steven@gcc.gnu.org>
15451         PR rtl-optimization/34503
15452         * cprop.c (cprop_reg_p): New.
15453         (hash_scan_set): Use above function to check if register can be
15454         propagated.
15455         (find_avail_set): Return up to two sets, one whose source is a
15456         register and one whose source is a constant.  Sets are returned in an
15457         array passed as parameter rather than as a return value.
15458         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
15459         sets returned by find_avail_set, starting with the one whose source is
15460         a constant. Use cprop_reg_p to check if register can be propagated.
15461         (do_local_cprop): Use cprop_reg_p to check if register can be
15462         propagated.
15463         (implicit_set_cond_p): Likewise.
15465 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15467         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15468         (sem_function::equals): IGNORED_NODES parameter is now unused;
15469         update call of equals_private.
15470         (sem_function::equals_private): Do not call equals_wpa; skip
15471         gimple body matching if there is no body.
15472         (sem_function::init): Add logic to hash tthunk info.
15473         (sem_function::parse): Also parse thunks.
15474         * ipa-icf.h (equals_private): Update declaration.
15476 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15478         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15479         asterisk from name so this can be generated directly.
15480         (*altivec_stvx_<mode>_internal): Likewise.
15481         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15482         that this is never called during or after reload/lra.
15483         (rs6000_frame_related): Remove split_reg
15484         argument and logic that references it.
15485         (emit_frame_save): Remove last parameter from call to
15486         rs6000_frame_related.
15487         (rs6000_emit_prologue): Remove last parameter from eight calls to
15488         rs6000_frame_related.  Force generation of stvx instruction for
15489         Altivec register saves.  Remove split_reg handling, which is no
15490         longer needed.
15491         (rs6000_emit_epilogue):  Force generation of lvx instruction for
15492         Altivec register restores.
15494 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15496         * config/rs6000/rs6000.opt (mcrypto): Change option description to
15497         match category changes in ISA 2.07B.
15499 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15501         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15502         iterators.
15503         (cmp_op, cmp_type): New code attributes.
15504         (NEON_VCMP, NEON_VACMP): New int iterators.
15505         (cmp_op_unsp): New int attribute.
15506         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15507         (neon_vceq<mode>): Delete.
15508         (neon_vc<cmp_op><mode>_insn): New pattern.
15509         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15510         (neon_vcgeu<mode>): Delete.
15511         (neon_vcle<mode>): Likewise.
15512         (neon_vclt<mode>: Likewise.
15513         (neon_vcage<mode>): Likewise.
15514         (neon_vcagt<mode>): Likewise.
15515         (neon_vca<cmp_op><mode>): New define_expand.
15516         (neon_vca<cmp_op><mode>_insn): New pattern.
15517         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15519 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15521         * tree.h (attribute_value_equal): Declare.
15522         * tree.c (attribute_value_equal): Export.
15524 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15526         * ipa-icf.c (sem_item::compare_attributes): New function.
15527         (sem_item::compare_referenced_symbol_properties): Compare variable
15528         attributes.
15529         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15530         (sem_function::param_used_p): New function.
15531         (sem_function::equals_wpa): Fix attribute comparsion; match
15532         parameter type codes; do not compare paremter flags when
15533         they are not used; compare edge flags; compare indirect calls.
15534         (sem_item::update_hash_by_addr_refs): Hash reference type.
15535         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15536         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15537         reference use type.
15538         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15539         * ipa-icf.h (compare_attributes, param_used_p): Declare.
15541 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15543         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15544         cleanup.
15545         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15546         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15547         (sem_item::compare_referenced_symbol_properties): New.
15548         (sem_item::hash_referenced_symbol_properties): New.
15549         (sem_item::compare_cgraph_references): Rename to ...
15550         (sem_item::compare_symbol_references): ... this one; use
15551         compare_referenced_symbol_properties.
15552         (sem_function::equals_wpa): Do not compare
15553         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15554         DECL_IS_OPERATOR_NEW; compare pointer sizes.
15555         (sem_item::update_hash_by_addr_refs): Call
15556         hash_referenced_symbol_properties.
15557         (sem_item::update_hash_by_local_refs): Cleanup.
15558         (sem_function::merge): Do not mix up symbol properties.
15559         (sem_variable::equals_wpa): Use compare_symbol_references.
15560         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15561         (sem_item::hash_referenced_symbol_properties): New.
15562         (sem_item::compare_symbol_references): New.
15563         (sem_item::compare_cgraph_references): Remove.
15565 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
15567         PR target/26702
15568         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15569         Emit size of local.
15571 2015-04-23  Nick Clifton  <nickc@redhat.com>
15573         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15574         ATTRIBUTE_UNUSED to x parameter.
15575         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15577 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15579         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15580         TARGET_CRYPTO to TARGET_P8_VECTOR>
15581         (crypto_vpermxor_<mode>): Likewise.
15582         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15583         (BU_CRYPTO_3A): Likewise.
15584         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15585         (BU_CRYPTO_OVERLOAD_3A): New #define.
15586         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15587         (VPMSUMH): Likewise.
15588         (VPMSUMW): Likewise.
15589         (VPMSUMD): Likewise.
15590         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15591         (VPERMXOR_V4SI): Likewise.
15592         (VPERMXOR_V8HI): Likewise.
15593         (VPERMXOR_V16QI): Likewise.
15594         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15595         BU_CRYPTO_OVERLOAD_2A.
15596         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15597         BU_CRYPTO_OVERLOAD_3A.
15598         * config/rs6000/rs6000.opt (mcrypto): Change description of
15599         option.
15601 2015-04-23  Richard Biener  <rguenther@suse.de>
15603         * passes.def: Remove copy propagation passes run directly after CCP.
15604         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15605         SSA names.
15606         (ccp_visit_phi_node): Rework to handle first executable edge
15607         specially.
15609 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
15611         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15612         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15613         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15614         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15615         (thumb_legimitimize_reload_address): Remove.
15616         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15617         Remove.
15618         (thumb_legimitimize_reload_address): Remove.
15620 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15622         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15624 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15626         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15627         MAX_LDM_STM_OPS.
15628         (store_multiple): Likewise.
15630 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15632         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15633         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15634         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15635         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15636         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15637         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15638         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15639         Specify issue_rate value.
15640         (arm_issue_rate): Look up issue rate from tuning structs. Remove
15641         large switch statement.
15642         (arm_marvell_pj4_tune): New struct.
15643         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15644         struct.
15646 2015-04-23  Richard Biener  <rguenther@suse.de>
15648         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15649         (vect_find_last_store_in_slp_instance): Rename to ...
15650         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15651         (vect_analyze_slp_cost_1): Use vector_load for constant defs
15652         and vec_construct for external defs when estimating prologue cost.
15653         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15654         Compute costs here only when vectorizing loops.
15655         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15656         have been determined.
15657         (vect_schedule_slp_instance): Simplify vectorized code placement
15658         and prepare for in-BB external defs.
15659         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15660         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15661         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15662         guard.
15663         (vect_model_load_cost): Likewise.
15664         (vectorizable_store): Instead add it here.
15665         (vectorizable_load): Likewise.
15666         (vect_is_simple_use): Dump def type textually.
15668 2015-04-23  Richard Biener  <rguenther@suse.de>
15670         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15671         * cfgloop.c (verify_loop_structure): Verify the root loop node.
15672         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15673         instead of get_eh_region_from_lp_number.
15674         * loop-init.c (fix_loop_structure): If we removed a loop, reset
15675         the SCEV cache.
15677 2015-04-23  Anton Blanchard  <anton@samba.org>
15679         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15680         need for -mprofile-kernel to save LR to stack.
15682 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15684         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15685         adjustments.
15686         (insn_is_swappable_p): Return 1 for a convert from double to
15687         single precision when all of its uses are splats of BE element
15688         zero.
15690 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15692         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15694 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15696         PR target/65456
15697         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
15698         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15699         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15700         option.
15701         (rs6000_builtin_mask_for_load): Return 0 for targets with
15702         efficient unaligned VSX accesses so that the vectorizer will use
15703         direct unaligned loads.
15704         (rs6000_builtin_support_vector_misalignment): Always return true
15705         for targets with efficient unaligned VSX accesses.
15706         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15707         stores on targets with efficient unaligned VSX accesses is almost
15708         always the same as the cost of an aligned load or store, so model
15709         it that way.
15710         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15711         unaligned vectors if we have efficient unaligned VSX accesses.
15712         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15713         undocumented option.
15715 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15717         Revert:
15718         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15720         * config.gcc (LIBC_MUSL): New tm_defines macro.
15721         * config/linux.h (OPTION_MUSL): Define.
15722         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15723         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15724         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15726         * config/linux.opt (mmusl): New option.
15727         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15728         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15730         * configure: Regenerate.
15732 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15734         * config.gcc (LIBC_MUSL): New tm_defines macro.
15735         * config/linux.h (OPTION_MUSL): Define.
15736         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15737         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15738         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15740         * config/linux.opt (mmusl): New option.
15741         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15742         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15744         * configure: Regenerate.
15746 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
15748         * doc/invoke.texi (-fsanitize-sections): Update description.
15749         * asan.c (set_sanitized_sections): Parse incoming arg.
15750         (section_sanitized_p): Support wildcards.
15752 2015-04-22  Tom de Vries  <tom@codesourcery.com>
15754         PR tree-optimization/65823
15755         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15756         equality between ap_copy and ap.
15758 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15760         PR target/47098
15761         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15763 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15765         PR target/47122
15766         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
15768 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15770         PR target/55144
15771         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
15772         remove already contained t-files.
15774 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15776         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
15777         Remove unneeded forward declarations.
15778         (suitable_for_tail_call_opt_p): Commentary typo fix.
15780 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15782         * varasm.c (emit_bss): Remove redundant guard.
15784 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15786         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
15788 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15790         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
15792 2015-04-22  Hale Wang  <hale.wang@arm.com>
15793             Terry Guo  <terry.guo@arm.com>
15795         PR rtl-optimization/64818
15796         * combine.c (can_combine_p): Don't combine user-specified
15797         register if it is in an asm input.
15799 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
15801         PR ipa/65076
15802         * passes.def (early_optimizations): Add pass_dse.
15804 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15806         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
15807         * reorg.c (redundant_insn): Remove ifdef
15808         INSN_REFERENCES_ARE_DELAYED.
15809         * resource.c (mark_referenced_resources): Likewise.
15811 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15813         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
15814         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
15815         * resource.c (mark_set_resources): Likewise.
15817 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15819         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
15820         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15821         (flow_find_head_matching_sequence): Likewise.
15822         (try_head_merge_bb): Likewise.
15823         * combine.c (can_combine_p): Likewise.
15824         (try_combine): Likewise.
15825         (distribute_notes): Likewise.
15826         * df-problems.c (can_move_insns_across): Likewise.
15827         * final.c (final): Likewise.
15828         * gcse.c (insert_insn_end_basic_block): Likewise.
15829         * ira.c (find_moveable_pseudos): Likewise.
15830         * reorg.c (try_merge_delay_insns): Likewise.
15831         (fill_simple_delay_slots): Likewise.
15832         (fill_slots_from_thread): Likewise.
15833         * sched-deps.c (sched_analyze_2): Likewise.
15835 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15837         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
15838         PIC_OFFSET_TABLE_REGNUM.
15840 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15842         * alias.c (init_alias_target): Remove ifdef
15843         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
15844         * df-scan.c (df_insn_refs_collect): Likewise.
15845         (df_get_regular_block_artificial_uses): Likewise.
15846         (df_get_eh_block_artificial_uses): Likewise.
15847         (df_get_entry_block_def_set): Likewise.
15848         (df_get_exit_block_use_set): Likewise.
15849         * emit-rtl.c (gen_rtx_REG): Likewise.
15850         * ira.c (ira_setup_eliminable_regset): Likewise.
15851         * reginfo.c (init_reg_sets_1): Likewise.
15852         * regrename.c (rename_chains): Likewise.
15853         * reload1.c (reload): Likewise.
15854         (eliminate_regs_in_insn): Likewise.
15855         * resource.c (mark_referenced_resources): Likewise.
15856         (init_resource_info): Likewise.
15858 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15860         * defaults.h (MASK_RETURN_ADDR): New definition.
15861         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15862         MASK_RETURN_ADDR.
15864 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15866         * defaults.h (RETURN_ADDR_OFFSET): New definition.
15867         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15868         RETURN_ADDR_OFFSET.
15869         (expand_builtin_frob_return_addr): Likewise.
15871 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15873         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
15874         (try_redirect_by_replacing_jump): Likewise.
15875         (rtl_tidy_fallthru_edge): Likewise.
15876         * combine.c (insn_a_feeds_b): Likewise.
15877         (find_split_point): Likewise.
15878         (simplify_set): Likewise.
15879         * cprop.c (cprop_jump): Likewise.
15880         * cse.c (cse_extended_basic_block): Likewise.
15881         * df-problems.c (can_move_insns_across): Likewise.
15882         * function.c (emit_use_return_register_into_block): Likewise.
15883         * haifa-sched.c (sched_init): Likewise.
15884         * ira.c (find_moveable_pseudos): Likewise.
15885         * loop-invariant.c (find_invariant_insn): Likewise.
15886         * lra-constraints.c (curr_insn_transform): Likewise.
15887         * postreload.c (reload_combine_recognize_const_pattern):
15888         * Likewise.
15889         * reload.c (find_reloads): Likewise.
15890         * reorg.c (delete_scheduled_jump): Likewise.
15891         (steal_delay_list_from_target): Likewise.
15892         (steal_delay_list_from_fallthrough): Likewise.
15893         (redundant_insn): Likewise.
15894         (fill_simple_delay_slots): Likewise.
15895         (fill_slots_from_thread): Likewise.
15896         (delete_computation): Likewise.
15897         * sched-rgn.c (add_branch_dependences): Likewise.
15899 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15901         * genconfig.c (main): Always define HAVE_cc0.
15902         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
15903         HAVE_cc0.
15904         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15905         (flow_find_head_matching_sequence): Likewise.
15906         (try_head_merge_bb): Likewise.
15907         * cfgrtl.c (rtl_merge_blocks): Likewise.
15908         (try_redirect_by_replacing_jump): Likewise.
15909         (rtl_tidy_fallthru_edge): Likewise.
15910         * combine.c (do_SUBST_MODE): Likewise.
15911         (insn_a_feeds_b): Likewise.
15912         (combine_instructions): Likewise.
15913         (can_combine_p): Likewise.
15914         (try_combine): Likewise.
15915         (find_split_point): Likewise.
15916         (subst): Likewise.
15917         (simplify_set): Likewise.
15918         (distribute_notes): Likewise.
15919         * cprop.c (cprop_jump): Likewise.
15920         * cse.c (cse_extended_basic_block): Likewise.
15921         * df-problems.c (can_move_insns_across): Likewise.
15922         * final.c (final): Likewise.
15923         (final_scan_insn): Likewise.
15924         * function.c (emit_use_return_register_into_block): Likewise.
15925         * gcse.c (insert_insn_end_basic_block): Likewise.
15926         * haifa-sched.c (sched_init): Likewise.
15927         * ira.c (find_moveable_pseudos): Likewise.
15928         * loop-invariant.c (find_invariant_insn): Likewise.
15929         * lra-constraints.c (curr_insn_transform): Likewise.
15930         * optabs.c (prepare_cmp_insn): Likewise.
15931         * postreload.c (reload_combine_recognize_const_pattern):
15932         * Likewise.
15933         * reload.c (find_reloads): Likewise.
15934         (find_reloads_address_1): Likewise.
15935         * reorg.c (delete_scheduled_jump): Likewise.
15936         (steal_delay_list_from_target): Likewise.
15937         (steal_delay_list_from_fallthrough): Likewise.
15938         (try_merge_delay_insns): Likewise.
15939         (redundant_insn): Likewise.
15940         (fill_simple_delay_slots): Likewise.
15941         (fill_slots_from_thread): Likewise.
15942         (delete_computation): Likewise.
15943         (relax_delay_slots): Likewise.
15944         * sched-deps.c (sched_analyze_2): Likewise.
15945         * sched-rgn.c (add_branch_dependences): Likewise.
15947 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15949         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
15950         that is trivially ded on non cc0 targets.
15951         (simplify_set): Likewise.
15952         (mark_used_regs_combine): Likewise.
15953         * cse.c (new_basic_block): Likewise.
15954         (fold_rtx): Likewise.
15955         (cse_insn): Likewise.
15956         (cse_extended_basic_block): Likewise.
15957         (set_live_p): Likewise.
15958         * rtlanal.c (canonicalize_condition): Likewise.
15959         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15961 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15963         * conditions.h: Define macros even if HAVE_cc0 is undefined.
15964         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
15965         * final.c: Likewise.
15966         * jump.c: Likewise.
15967         * recog.c: Likewise.
15968         * recog.h: Declare functions even when HAVE_cc0 is undefined.
15969         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
15971 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15973         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
15974         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
15975         * builtins.c (expand_builtin): Remove check if
15976         EH_RETURN_DATA_REGNO is defined.
15977         * df-scan.c (df_bb_refs_collect): Likewise.
15978         (df_get_exit_block_use_set): Likewise.
15979         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
15980         * ira-lives.c (process_bb_node_lives): Likewise.
15981         * lra-lives.c (process_bb_lives): Likewise.
15983 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
15985         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
15986         FIRST_PSEUDO_REG): New.
15987         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
15988         (ARG_POINTER_REGNUM): Define to ARGP_REG.
15989         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
15990         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
15991         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
15992         (FIRST_INT_REG): New.
15993         (LAST_INT_REG): New.
15994         (FIRST_*_REG): Define using *_REG.
15995         (LAST_*_REG): Ditto.
15996         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
15997         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
15998         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16000 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16002         * expmed.c: (synth_mult): Only assume overlapping
16003         shift with previous steps in alg_sub_t_m2 case.
16005 2015-04-21  Richard Biener  <rguenther@suse.de>
16007         PR tree-optimization/65650
16008         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16009         transitions involving copies.
16010         (set_lattice_value): Adjust for copy lattice state.
16011         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16012         if that doesn't dominate the merge point.
16013         (bit_value_unop): Adjust what we treat as varying mask.
16014         (bit_value_binop): Likewise.
16015         (bit_value_assume_aligned): Likewise.
16016         (evaluate_stmt): When we simplified to a SSA name record a copy
16017         instead of dropping to varying.
16018         (visit_assignment): Simplify.
16020         * gimple-match.h (gimple_simplify): Add another callback.
16021         * gimple-fold.c (fold_stmt_1): Adjust caller.
16022         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16023         for the 2nd callback.
16024         * gimple-match-head.c (gimple_simplify): Add a callback that is
16025         used to valueize the stmt operands and use it that way.
16027 2015-04-21  Richard Biener  <rguenther@suse.de>
16029         PR tree-optimization/65788
16030         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16032 2015-04-21  Richard Biener  <rguenther@suse.de>
16034         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16035         vec_construct cost by vec_stmt_cost.
16037 2015-04-21  Richard Biener  <rguenther@suse.de>
16039         * cfghooks.h (create_basic_block): Replace with two overloads
16040         for RTL and GIMPLE.
16041         (split_block): Likewise.
16042         * cfghooks.c (split_block): Rename to ...
16043         (split_block_1): ... this.
16044         (split_block): Add two type-safe overloads for RTL and GIMPLE.
16045         (split_block_after_labels): Call split_block_1.
16046         (create_basic_block): Rename to ...
16047         (create_basic_block_1): ... this.
16048         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16049         (create_empty_bb): Call create_basic_block_1.
16050         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16051         split_block_after_labels.
16052         * omp-low.c (expand_parallel_call): Likewise.
16053         (expand_omp_target): Likewise.
16054         (simd_clone_adjust): Likewise.
16055         * tree-chkp.c (chkp_get_entry_block): Likewise.
16056         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16057         create_basic_block overload.
16058         (cgraph_node::expand_thunk): Likewise.
16059         * tree-cfg.c (make_blocks): Likewise.
16060         (handle_abnormal_edges): Likewise.
16061         * tree-inline.c (copy_bb): Likewise.
16063 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16065         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16066         New pattern.
16067         (*xor_one_cmplsidi3_ze): Likewise.
16069 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16071         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16072         use df_remove_problem rather than manually removing problems, leaving
16073         holes in df->problems_in_order[].
16075 2015-04-21  Tom de Vries  <tom@codesourcery.com>
16077         PR tree-optimization/65802
16078         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16080 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16082         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16083         Increase to 128.
16084         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16085         at '.'.  Assert that there's enough space for everything.
16087 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
16089         PR tree-optimization/64950
16090         Revert:
16091         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16093         PR target/41089
16094         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16095         as volatile.
16097 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
16099         PR rtl-optimization/64916
16100         * cfgcleanup.c (values_equal_p): New function.
16101         (can_replace_by): Use it.
16103 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
16105         PR c++/65801
16106         * doc/invoke.texi ([-Wnarrowing]): Update.
16108 2015-04-20  Jeff Law  <law@redhat.com>
16110         PR tree-optimization/65658
16111         * tree-ssa-threadupdate.c (redirection_block_p): Remove
16112         redundant test for GIMPLE_ASSIGN in last change.
16114 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
16116         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16117         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16118         (legitimize_tls_address): Ditto.
16119         (ix86_expand_move): Ditto.
16120         (ix86_expand_binary_operator): Remove reload_in_progress checks.
16121         (ix86_expand_unary_operator): Ditto.
16122         * config/i386/predicates.md (index_register_operand): Ditto.
16124 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
16126         * reorg.c (try_merge_delay_insns): Improve correctness checking
16127         for targets with multiple delay slots.
16129 2015-04-20  Jeff Law  <law@redhat.com>
16131         PR tree-optimization/65658
16132         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16133         statements too.
16135 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
16137         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16138         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16139         Delete.
16141 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
16143         PR debug/65807
16144         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16146 2015-04-20  Richard Biener  <rguenther@suse.de>
16148         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16149         * gimple-fold.c (gimple_build_valueize): New function.
16150         (gimple_build): Always use gimple_build_valueize as valueize hook.
16152 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
16154         PR target/64134
16155         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16156         and overwrite variable parts if <= 1/2 the elements are variable.
16158 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16160         PR rtl-optimization/65805
16161         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16162         Don't use difference of offset and previous offset if
16163         update_sp_offset is non-zero.
16164         (eliminate_regs_in_insn): Ditto.
16165         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16166         lra_eliminate_regs_1 call.
16167         * lra-constraints.c (get_equiv_with_elimination): Ditto.
16169 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
16171         * hash-table.h: Remove version of hash_table that stored value_type *.
16172         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16173         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16174         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16175         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16176         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16177         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16178         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16179         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16180         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16181         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16182         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16183         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16184         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16185         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16186         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16187         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16189 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16190             Jakub Jelinek  <jakub@redhat.com>
16192         PR target/65787
16193         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16194         subsequent SH_NONE operand does not overwrite an existing *special
16195         value.
16196         (adjust_extract): Handle case where a vec_extract operation is
16197         wrapped in a PARALLEL.
16199 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16201         PR target/65780
16202         * config/i386/i386.c (ix86_binds_local_p): Define only if
16203         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16205 2015-04-17  Jeff Law  <law@redhat.com>
16207         PR tree-optimization/47679
16208         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16209         * tree-ssa-scopedtables.c: New file.
16210         * tree-ssa-scopedtables.h: New file.
16211         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16212         (const_and_copies): Change name/type.
16213         (record_const_or_copy): Move into tree-ssa-scopedtables.c
16214         (record_const_or_copy_1): Similarly.
16215         (restore_vars_to_original_value): Similarly.
16216         (pass_dominator::execute): Create and destroy const_and_copies table.
16217         (thread_across_edge): Update passing of const_and_copies.
16218         (record_temporary_equivalence): Use method calls rather than
16219         manipulating const_and_copies directly.
16220         (record_equality, cprop_into_successor_phis): Similarly.
16221         (dom_opt_dom_walker::before_dom_children): Similarly.
16222         (dom_opt_dom_walker::after_dom_children): Similarly.
16223         (eliminate_redundant_computations): Similarly.
16224         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16225         (record_temporary_equivalence): Likewise.
16226         (invalidate_equivalences): Likewise.
16227         (record_temporary_equivalences_from_phis): Update due to type
16228         change of const_and_copies.  Use method calls rather than
16229         manipulating the stack directly.
16230         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16231         (thread_through_normal_block, thread_across_edge): Likewise.
16232         (thread_across_edge): Likewise.
16233         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16234         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
16235         of equiv_stack.
16236         (identify_jump_threads): Update due to type change of equiv_stack.
16237         (finalize_jump_threads): Delete the equiv_stack when complete.
16239 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
16241         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16242         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16243         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16245 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
16247         PR target/65535
16248         * config.gcc: Exit with a comment when we do not have a major version
16249         number for the FreeBSD target.
16251 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16253         PR target/65689
16254         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16255         maybe_allows_mem bitfields.
16256         (maybe_allows_none_start, maybe_allows_none_end,
16257         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16258         maybe_allows_mem_end): New variables.
16259         (compute_maybe_allows): New function.
16260         (add_constraint): Use it to initialize maybe_allows_reg and
16261         maybe_allows_mem fields.
16262         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16263         is_address constraints such that those that allow neither mem nor
16264         reg come first, then those that only allow reg but not mem, then
16265         those that only allow mem but not reg, then the rest.
16266         (write_allows_reg_mem_function): New function.
16267         (write_tm_preds_h): Call it.
16268         * stmt.c (parse_output_constraint, parse_input_constraint): Use
16269         the generated insn_extra_constraint_allows_reg_mem function
16270         instead of always setting *allows_reg = true; *allows_mem = true;
16271         for unknown extra constraints.
16273 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16275         PR target/65780
16276         * output.h (default_binds_local_p_3): New.
16277         * varasm.c (default_binds_local_p_3): Make it public.  Take an
16278         argument to indicate if common symbol may be local.  If common
16279         symbol may be local, treat non-external variable as defined
16280         locally.
16281         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16282         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16283         * config/i386/i386.c (ix86_binds_local_p): New.
16284         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16285         ix86_binds_local_p.
16287 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16289         PR debug/65771
16290         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16291         trying mem_loc_descriptor on XEXP (rtl, 0).
16293 2015-04-17  Martin Liska  <mliska@suse.cz>
16295         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16296         Release symbol_compare_collection.
16297         * ipa-reference.c: Add TODO that a vector should be released.
16299 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16301         PR target/65296
16302         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16303         to new AVR-LibC file layout (bug #44574).
16304         (*avrlibc_devicelib): Same.
16305         * config/avr/avr-mcus.def: Adjust comments.
16306         * config/avr/avr.opt (nodevicelib): Adjust help.
16308 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
16310         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16312 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
16314         PR c++/64527
16315         * gimplify.c (gimplify_init_constructor): Always emit a
16316         side-effecting constructor.
16318 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16320         PR tree-optimization/64950
16321         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16322         in cfun->curr_properties.
16323         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16324         if we generate an IFN_VA_ARG.
16325         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16326         function if PROP_gimple_lva is not set in src function.
16328 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16329             Michael Matz  <matz@suse.de>
16331         PR tree-optimization/64950
16332         * gimple-iterator.c (update_modified_stmts): Remove static.
16333         * gimple-iterator.h (update_modified_stmts): Declare.
16334         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16335         (gimplify_va_arg_internal): New function.
16336         (gimplify_va_arg_expr): Use IFN_VA_ARG.
16337         * gimplify.h (gimplify_va_arg_internal): Declare.
16338         * internal-fn.c (expand_VA_ARG): New unreachable function.
16339         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16340         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16341         (expand_ifn_va_arg): New function.
16342         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16343         (pass_stdarg::execute): Call expand_ifn_va_arg.
16344         (pass_data_lower_vaarg): New pass_data.
16345         (pass_lower_vaarg): New gimple_opt_pass.
16346         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16347         (make_pass_lower_vaarg): New function.
16348         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16349         properties_required field.
16350         * passes.def (all_passes): Add pass_lower_vaarg.
16351         * tree-pass.h (PROP_gimple_lva): Add define.
16352         (make_pass_lower_vaarg): Declare.
16354 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16356         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16357         * calls.c (call_expr_flags): Same.
16359 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16361         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16362         (pass_stdarg::execute): ... here.
16364 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16365             Michael Matz  <matz@suse.de>
16367         * tree-cfg.c (make_blocks_1): Factor out of ...
16368         (make_blocks): ... here.
16369         (make_edges_bb): Factor out of ...
16370         (make_edges): ... here.
16371         (gimple_find_sub_bbs): New function.
16372         * tree-cfg.h (gimple_find_sub_bbs): Declare.
16374 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16376         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16378 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
16380         * asan.c (set_sanitized_sections): New function.
16381         (section_sanitized_p): Ditto.
16382         (asan_protect_global): Optionally sanitize user-defined
16383         sections.
16384         * asan.h (set_sanitized_sections): Declare new function.
16385         * common.opt (fsanitize-sections): New option.
16386         * doc/invoke.texi (-fsanitize-sections): Document new option.
16387         * opts-global.c (handle_common_deferred_options): Handle new
16388         option.
16390 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16392         PR debug/65771
16393         * dwarf2out.c (loc_list_from_tree): Return NULL
16394         for DEBUG_EXPR_DECL.
16396 2015-04-17  Christian Bruel  <christian.bruel@st.com>
16398         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16399         same attributes.
16401 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16403         * ira-color.c (setup_left_conflict_sizes_p): Do not process
16404         node itself when computing left conflict subnode size.
16406 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
16408         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16409         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16410         *fop_<mode>_1_sse using enabled attribute.  Use
16411         register_mixssei387nonimm_operand operand 1 predicate. Change
16412         alternative 3 constraints from "x" to "v".
16414 2015-04-16  Richard Biener  <rguenther@suse.de>
16416         PR tree-optimization/65774
16417         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16418         bit-value tracking on.
16420 2015-04-16  Richard Biener  <rguenther@suse.de>
16422         PR tree-optimization/64277
16423         * tree-vrp.c (check_array_ref): Fix anti-range handling,
16424         simplify upper bound handling.
16425         (search_for_addr_array): Simplify.
16426         (check_array_bounds): Handle ADDR_EXPRs here.
16427         (check_all_array_refs): Simplify.
16429 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
16431         * config/i386/i386.c (print_reg): Rewrite function.
16433 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16435         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16436         Invert the condition.
16438 2015-04-16  Renlin Li  <renlin.li@arm.com>
16440         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16441         simplifications for UNSIGNED_FLOAT.
16443 2015-04-16  Nick Clifton  <nickc@redhat.com>
16445         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16446         MUL_UNINIT.
16447         (enum rl78_cpu_type): New.
16448         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16449         (umulhi3_shift_virt): Remove m constraint from operand 1.
16450         (umulqihi3_virt): Likewise.
16451         * config/rl78/rl78.c (rl78_option_override): Add code to process
16452         -mcpu and -mmul options.
16453         (rl78_alloc_physical_registers): Add code to handle divhi and
16454         divsi valloc attributes.
16455         (set_origin): Likewise.
16456         * config/rl78/rl78.h (RL78_MUL_G14): Define.
16457         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16458         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16459         __RL78_Gxx__.
16460         (ASM_SPEC): Pass -mcpu on to assembler.
16461         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16462         (mulqi3_rl78): Likewise.
16463         (mulhi3_g13): Likewise.
16464         (mulhi3): Generate the G13 or G14 versions of the insn directly.
16465         (mulsi3): Likewise.
16466         (mulhi3_g14): Add clobbers of AX and BC.
16467         (mulsi3_g14): Likewise.
16468         (mulsi3_g13): Likewise.
16469         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16470         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16471         * config/rl78/rl78.opt (mmul): Initialise value to
16472         RL78_MUL_UNINIT.
16473         (mcpu): New option.
16474         (m13, m14, mrl78): New option aliases.
16475         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16476         (MULTILIB_DIRNAMES): Add g13 and g14.
16477         * doc/invoke.texi: Document -mcpu and -mmul options.
16479 2015-04-16  Richard Biener  <rguenther@suse.de>
16481         * tree-ssa-ccp.c (likely_value): See if we have operands that
16482         are marked as never simulate again and return CONSTANT in this
16483         case.
16484         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16485         not have any operands that will be simulated again as
16486         not being simulated again.
16488 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
16490         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16491         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16492         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16493         attribute.
16494         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16495         enabled attribute.
16496         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16497         *float<SWI48:mode><MODEF:mode>2_sse.
16498         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16499         enabled attribute.
16500         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16501         enabled attribute.
16503 2015-04-15  Tom de Vries  <tom@codesourcery.com>
16505         PR other/65487
16506         * function.c (push_dummy_function): New function.
16507         (init_dummy_function_start): Use push_dummy_function.
16508         (pop_dummy_function): New function.  Factored out of ...
16509         (expand_dummy_function_end): ... here.
16510         * function.h (push_dummy_function, pop_dummy_function): Declare.
16511         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16512         pop_dummy_function.
16513         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16515 2015-04-15  Jeff Law  <law@redhat.com>
16517         PR tree-optimization/47679
16518         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16519         need for forward declaration in upcoming changes.
16520         (record_conditions, record_edge_info): Likewise.
16522         PR rtl-optimization/42522
16523         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16524         SIGN_EXTRACT as a whole object rather than simplifying
16525         its operand.
16527 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
16529         PR ipa/65765
16530         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16531         and GIMPLE_PREDICT use break instead of return true. For
16532         GIMPLE_EH_DISPATCH, compare dispatch region.
16534 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
16536         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
16537         details about the implementation.  Make clear preference for
16538         __atomic builtins.  Reduce possibility of future change.
16540 2015-04-15  Nick Clifton  <nickc@redhat.com>
16542         * config/rx/rx.opt (mallow-string-insns): New option.
16543         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16544         builtin if string instructions are denied.
16545         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16546         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16547         appropriate.
16548         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16549         * config/rx/rx.md (movstr): Enable pattern only if string
16550         instructions are allowed.
16551         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16552         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16553         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16554         (MULTILIB_DIRNAMES): Add no-strings.
16555         * doc/invoke.texi: Document -mno-allow-string-insns.
16557 2015-04-15  Alan Modra  <amodra@gmail.com>
16559         PR target/65408
16560         PR target/58744
16561         PR middle-end/36043
16562         * calls.c (load_register_parameters): Don't load past end of
16563         mem unless suitably aligned.
16565 2015-04-15  Nick Clifton  <nickc@redhat.com>
16567         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16568         decrement instruction as being frame related.
16569         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16570         based addresses.
16571         If zero extending a function address enclose the operation in
16572         %code(...).
16573         (rl78_preferred_reload_class): New function.
16574         (TARGET_PREFERRED_RELOAD_CLASS): Define.
16575         * config/rl78/rl78.md: Remove useless constraints in expanders.
16576         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16577         (mulhi3_rl78): Likewise.
16578         (mulhi3_g13): Likewise.
16579         (mulsi3_rl78): Likewise.
16580         (es_addr): Move to before the multiply patterns.
16582 2015-04-15  Alan Modra  <amodra@gmail.com>
16584         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16585         and sequence_stack.  Add seq.
16586         (seq_stack): Delete.
16587         * function.c (prepare_function_start): Don't access x_last_insn.
16588         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16589         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16590         * emit_rtl.c (start_sequence, push_topmost_sequence,
16591         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16592         sequence accessors.
16593         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16594         remove_insn): Likewise.  Simplify.
16595         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16596         and pop_topmost_sequence.
16597         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
16598         debug insns.
16599         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16601 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
16603         PR target/65729
16604         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16605         the assertiion.
16607 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
16609         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16610         (LEGACY_INT_REGNO_P): Ditto.
16611         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16612         (ANY_MASK_REG_P): Remove.
16613         (BND_REG_P): Rename from ANY_BND_REG_P.
16614         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16615         legacy integer registers.  Do not handle MMX_REG_P in a special way.
16616         Merge 64byte and 32byte SSE handling.
16618 2015-04-14  Nick Clifton  <nickc@redhat.com>
16620         * expr.c (expand_assignment): Force an address offset computation
16621         into a register before changing its mode.
16622         (expand_expr_real_1): Likewise.
16624 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
16626         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16627         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16628         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16629         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16630         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16631         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16632         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16633         and __aarch64_vget_lane_any.
16635 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
16637         PR rtl-optimization/65761
16638         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16639         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16641 2015-04-14  Richard Biener  <rguenther@suse.de>
16643         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16644         (graphite_can_represent_scev): Use POINTER_TYPE_P.
16646 2015-04-14  Richard Biener  <rguenther@suse.de>
16648         PR tree-optimization/65758
16649         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16650         against -1.
16651         (ccp_lattice_meet): Likewise.
16652         (bit_value_unop): Likewise.
16653         (bit_value_binop): Likewise.
16654         (bit_value_assume_aligned): Likewise.
16656 2015-04-14  Christian Bruel  <christian.bruel@st.com>
16658         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16659         function.
16661 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
16663         PR tree-optimization/63387
16664         * match.pd ((x unord x) | (y unord y) -> (x unord y),
16665         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16667 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
16669         * config/i386/predicates.md (any_QIreg_operand): Rename from
16670         q_regs_operand.  Do not process subregs.
16671         (QIreg_operand): Use QI_REGNO_P predicate.
16672         (ext_QIreg_operand): Ditto.
16673         (ext_register_operand): Ditto.
16674         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16675         (AND splitters): Ditto.
16676         (AND with -65536 splitter): Add SWI48 mode for operand 0.
16677         (AND with -256 splitter): Use any_QIreg_operand predicate and
16678         SWI248 mode for operand 0.
16679         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16680         mode for operand 0.
16681         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16683 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
16685         * doc/plugins.texi: Rewrite first introductory paragraph.
16687 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16689         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16690         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16692 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16694         * ipa-profie.c (ipa_profile): Check number of parameters
16695         and possible polymorphic call targets before
16696         devirtualizing.
16698 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
16700         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16701         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16703 2015-04-13  Richard Biener  <rguenther@suse.de>
16705         PR tree-optimization/65204
16706         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16707         takens for bit-CCP.
16709 2015-04-13  Richard Biener  <rguenther@suse.de>
16711         PR target/65660
16712         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16713         and cond_not_taken_branch_cost to 4 and 2.
16714         (bdver2_cost): Likewise.
16715         (bdver3_cost): Likewise.
16716         (bdver4_cost): Likewise.
16718 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16720         * hash-table.h (hash_table constructor): Add mem stats.
16721         (alloc_entries): Likewise.
16723 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16725         * ipa-cp.c (ipcp_driver): Relase prev_edge.
16726         * passes.c (execute_one_pass): Only add transform if pass has one.
16728 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
16730         * config/i386/i386.c (ix86_option_override_internal): Don't set
16731         -fprefetch-loop-arrays if optimizing for size.
16733 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16734             Gerald Pfeifer  <gerald@pfeifer.com>
16736         * doc/contrib.texi (Contributors): Add Martin Jambor and
16737         Michael Matz.
16739 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
16741         * BASE-VER: Set to 6.0.0.
16743         PR tree-optimization/65747
16744         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16745         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16747 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16749         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16750         sentence.  Improve grammar.
16752 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16754         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16756 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16758         PR ipa/65743
16759         * ipa-inline-transform.c (speculation_removed): Remove static var.
16760         (check_speculations): New function.
16761         (clone_inlined_nodes): Do not check spculations.
16762         (inline_call): Call check_speculations.
16763         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16764         consider non-invariants.
16766 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16767             Martin Liska  <mliska@suse.cz>
16769         PR ipa/65722
16770         * ipa-icf.c (sem_item::compare_cgraph_references): function and
16771         variable can not match.
16772         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
16773         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
16775 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
16777         PR tree-optimization/65735
16778         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
16779         Remove visited_phis argument, add visited_bbs, avoid recursing into the
16780         same bb rather than just into the same phi node.
16781         (thread_through_normal_block): Adjust caller.
16783 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16785         * doc/contrib.texi (Contributors): Add Ira Rosen.
16787 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
16789         * gcov.c (find_source): Fix miswording in error message.
16790         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
16791         (ix86_expand_sse_comi_round): Fix typo in error message.
16793 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16795         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
16797 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
16799         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
16801 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16803         PR target/65710
16804         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
16805         Print bad_spills_num and insn_pseudos_num.
16807 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16809         PR target/65694
16810         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
16811         when creating +1 values for SImode.
16813 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16815         PR target/65729
16816         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
16817         assert.
16819 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
16820             Iain Sandoe  <iain@codesourcery.com>
16822         PR target/65351
16823         * configure: Regenerate.
16825 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16827         PR target/65671
16828         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
16830 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
16832         * doc/contrib.texi (Contributors): Add John Marino.
16834 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16836         PR tree-optimization/65709
16837         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
16838         TREE_TYPE (TREE_TYPE (t)).
16840 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
16842         PR target/65710
16843         * lra-int.h (lra_bad_spill_regno_start): New.
16844         * lra.c (lra_bad_spill_regno_start): New.
16845         (lra): Set up lra_bad_spill_regno_start.  Set up
16846         lra_constraint_new_regno_start unconditionally.
16847         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
16848         spill preferences.
16850 2015-04-09  Marek Polacek  <polacek@redhat.com>
16851             Jakub Jelinek  <jakub@redhat.com>
16853         PR middle-end/65554
16854         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
16855         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
16856         of STRIP_NOPS.
16858 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
16860         PR rtl-optimization/65693
16861         * combine.c (is_parallel_of_n_reg_sets): Move outside of
16862         #ifndef HAVE_cc0.
16864 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
16866         PR target/65296
16867         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
16868         device specs file if "device-specs%s" didn't resolve to a path.
16870 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16872         PR target/65676
16873         * config/i386/i386.c (fixup_modeless_constant): New.
16874         (ix86_expand_args_builtin): Fixup modeless constant operand.
16875         (ix86_expand_round_builtin): Ditto.
16876         (ix86_expand_special_args_builtin): Ditto.
16877         (ix86_expand_builtin): Ditto.
16879 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16881         PR target/65693
16882         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
16883         any pow2 integer in between 2 and 0x80000000U inclusive.
16885 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
16887         PR rtl-optimization/65693
16888         * combine.c (is_parallel_of_n_reg_sets): Change first argument
16889         from an rtx_insn * to an rtx.
16890         (try_combine): Adjust both callers.  Use it once more.
16892 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16894         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
16895         (chkp_make_static_const_bounds): Search existing
16896         symbol by assembler name.  Use make_decl_one_only.
16897         (chkp_get_zero_bounds_var): Remove node search which
16898         is now performed in chkp_make_static_const_bounds.
16899         (chkp_get_none_bounds_var): Likewise.
16901 2015-04-08  Michael Witten  <mfwitten@gmail.com>
16903         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
16904         to an example.
16906 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16908         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
16910 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16912         * doc/extend.texi (__sync Builtins): Fix grammar.
16914 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16916         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
16918 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16920         * varasm.c (emit_local): Move definition of align.
16922 2015-04-08  Julian Brown  <julian@codesourcery.com>
16924         * config/nvptx/mkoffload.c (process): Support variable mapping.
16926 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
16928         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
16929         alpha_links **.
16930         (alpha_write_one_linkage): Correct typo.
16932 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16934         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
16936 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16938         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
16940 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16942         * tree-chkp.h (chkp_insert_retbnd_call): New.
16943         * tree-chkp.c (chkp_insert_retbnd_call): New.
16944         * ipa-split.c (insert_bndret_call_after): Remove.
16945         (split_function): Use chkp_insert_retbnd_call.
16946         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
16947         bounds for instrumented functions.
16949 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
16951         PR ipa/65540
16952         * calls.c (initialize_argument_information): When producing tail
16953         call also turn SSA_NAMES passed by references to original PARM_DECLs
16955 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
16957         PR target/65648
16958         * lra-remat.c (do_remat): Process input and non-input insn
16959         registers separately.
16961 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16963         PR debug/65678
16964         * valtrack.c (debug_lowpart_subreg): New function.
16965         (dead_debug_insert_temp): Use it.
16967         PR middle-end/65680
16968         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
16969         into signed HOST_WIDE_INT the same as negative bit_offset.
16971 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16973         * ipa-comdats.c (ipa_comdats): Visit all thunks
16974         to set proper comdat group.
16976 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16978         PR target/65489
16979         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
16980         on constants for NEON VSTRUCT modes.
16982 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16983             Iain Sandoe  <iain@codesourcery.com>
16985         PR target/65351
16986         * configure: Regenerate.
16988 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16990         PR target/65614
16991         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
16992         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
16993         that LFD is used to load double constants instead of LFS.  Add
16994         defaults for all costs structures.  Add comments for missing
16995         initialization fields.
16996         (size32_cost): Likewise.
16997         (size64_cost): Likewise.
16998         (rs64a_cost): Likewise.
16999         (mpccore_cost): Likewise.
17000         (ppc403_cost): Likewise.
17001         (ppc405_cost): Likewise.
17002         (ppc440_cost): Likewise.
17003         (ppc476_cost): Likewise.
17004         (ppc601_cost): Likewise.
17005         (ppc603_cost): Likewise.
17006         (ppc604_cost): Likewise.
17007         (ppc604e_cost): Likewise.
17008         (ppc620_cost): Likewise.
17009         (ppc630_cost): Likewise.
17010         (ppccell_cost): Likewise.
17011         (ppc750_cost): Likewise.
17012         (ppc7450_cost): Likewise.
17013         (ppc8540_cost): Likewise.
17014         (ppce300c2c3_cost): Likewise.
17015         (ppce500mc_cost): Likewise.
17016         (ppce500mc64_cost): Likewise.
17017         (ppce5500_cost): Likewise.
17018         (ppce6500_cost): Likewise.
17019         (titan_cost): Likewise.
17020         (power4_cost): Likewise.
17021         (power6_cost): Likewise.
17022         (power7_cost): Likewise.
17023         (power8_cost): Likewise.
17024         (ppca2_cost): Likewise.
17025         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17027         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17028         instead of XXLOR to copy SFmode to clear out dirty bits created
17029         when SFmode denormals are generated.
17030         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17031         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17033 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
17035         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17036         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17037         * config/aarch64/aarch64-tune.md: Regenerate.
17039 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
17041         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17042         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17043         * config/arm/arm-cores.def (exynos-m1): New core.
17044         * config/arm/arm-tune.md: Regenerate.
17045         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17046         * config/arm/bpabi.h: Likewise.
17048 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
17050         * ipa-cp (set_single_call_flag): Remove too
17051         restrictive assert.
17053 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
17055         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17056         GOMP_offload_unregister from the destructor.
17058 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
17060         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17061         flags for instrumentation thunk.
17062         (chkp_produce_thunks): Likewise.
17064 2015-04-05  Martin Liska  <mliska@suse.cz>
17066         PR ipa/65665
17067         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17068         has computed data structure.
17069         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17071 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
17073         * invoke.texi (inline-unit-growth): Increase growth to 20%
17074         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17076 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
17078         PR target/65647
17079         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
17080         value checking.
17081         (lra_rematerialization_iter): New.
17082         * lra.c (lra): Initialize lra_rematerialization_iter.
17083         Stop updating lra_constraint_new_regno_start after switching of
17084         inheritance and rematerialization.
17085         * lra-remat.c (lra_rematerialization_iter): New.
17086         (lra_remat): Add printing pass iteration.  Do rematerialization
17087         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17089 2015-04-04  Richard Biener  <rguenther@suse.de>
17091         PR tree-optimization/64909
17092         PR tree-optimization/65660
17093         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17094         to take a cost vector for scalar iteration cost.
17095         (vect_get_single_scalar_iteration_cost): Likewise.
17096         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17097         Compute the scalar iteration cost into a cost vector.
17098         (vect_get_known_peeling_cost): Use the scalar cost vector to
17099         account for the cost of the peeled iterations.
17100         (vect_estimate_min_profitable_iters): Likewise.
17101         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17102         Likewise.
17104 2015-04-04  Alan Modra  <amodra@gmail.com>
17106         PR target/65576
17107         PR target/65240
17108         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17109         0.0 constant unless TARGET_VSX.
17110         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17111         alternative.
17113 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17115         PR ipa/65654
17116         * ipa-inline-transform.c (inline_call): Skip sanity check to work
17117         around the ICE
17119 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17121         PR ipa/65655
17122         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17123         speculative indirect edges to avoid ordering issue.
17125 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
17127         PR ipa/65076
17128         * ipa-inline.c (edge_badness): Add combined size to the denominator.
17130 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
17132         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17133         TYPE_ARTIFICIAL on the .omp_data* types.
17135 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17137         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17138         instrumentation thunks.
17140 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17142         * config/i386/i386.c (ix86_expand_call): Avoid nested
17143         PARALLEL in returned call value.
17145 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17147         * lto-cgraph.c (input_cgraph_1): Always link instrumented
17148         assembler name with original one.
17150 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17152         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17154 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17156         Revert parts of r216820.
17157         * config/i386/i386.md (movqi_internal): Correct type calculation
17158         for alternatives 3 and 5.
17160 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
17162         PR preprocessor/61977
17163         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17164         predefine __vector/__bool/__pixel macros nor context sensitive
17165         macros for CLK_ASM.
17166         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17168 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
17170         * config/pa/pa.c (pa_output_move_double): Directly handle register
17171         indexed memory operand.  Simplify handling of scaled register indexed
17172         memory operands.
17174 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
17176         PR driver/65444
17177         * config/i386/linux-common.h (MPX_SPEC): New.
17178         (CHKP_SPEC): Add MPX_SPEC.
17179         * doc/invoke.texi (-fcheck-pointer-boudns): Document
17180         possible issues with '-z bndplt' support in linker.
17182 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
17184         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17185         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17186         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17187         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17188         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17190 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
17192         * config/i386/sync.md (UNSPEC_MOVA): Remove.
17193         (atomic_load<mode>): Change operand 0 predicate to
17194         nonimmediate_operand and fix up the destination when needed.
17195         Use UNSPEC_LDA.
17196         (atomic_loaddi_fpu): Use UNSPEC_LDA.
17197         (atomic_store<mode>): Change operand 1 predicate to
17198         nonimmendate_operand and move the source to register when needed.
17199         Use UNSPEC_STA.
17200         (atomic_store<mode>_1): Use UNSPEC_STA.
17201         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17202         Fix moves from memory operand.  Use UNSPEC_STA.
17204 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17206         * expmed.c (strict_volatile_bitfield_p): Check that the access will
17207         not cross a MODESIZE boundary.
17208         (store_bit_field, extract_bit_field): Added assertions in the
17209         strict volatile bitfields code path.
17211 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17213         PR target/65624
17214         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17215         Increase args array size by one to avoid buffer overflow.
17217 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
17219         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17220         split_part.
17221         * ipa-inline.c (edge_badness): Add wrapper penalty.
17222         (sum_callers): Move up.
17223         (inline_small_functions): Set single_caller.
17224         * ipa-inline.h (inline_summary): Add single_caller.
17225         * ipa-split.c (split_function): Set split_part.
17226         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17227         * cgraph.h (cgraph_node): Add split_part.
17229 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
17231         PR target/58945
17232         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17233         Do not split operands 0 and operands 2 to halfmode.
17234         (atomic_compare_and_swap<mode>): Update for
17235         atomic_compare_and_swap<dwi>_doubleword changes.
17237 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
17239         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17240         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17241         no caching is done.
17243 2015-03-31  Martin Liska  <mliska@suse.cz>
17245         PR ipa/65557
17246         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17247         has already filled up function summary.
17248         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17250 2015-03-31  Richard Biener  <rguenther@suse.de>
17252         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17253         of types.
17255 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17257         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17258         nested functions.
17259         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17260         (s390_asm_output_function_label): Adapt to new signature of
17261         s390_function_num_hotpatch_hw
17262         Optimise the code generating assembler output.
17263         Add comments to assembler file.
17265 2015-03-31  Richard Biener  <rguenther@suse.de>
17267         PR middle-end/65626
17268         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17269         of the noreturn call so it is last and cleanup_control_flow_bb
17270         can do the CFG part.
17272 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
17274         PR target/65531
17275         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17276         same_comdat_group for external symbols.
17277         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17278         infinite same_comdat_group traversal loop.
17280 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
17282         PR plugins/61176
17283         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17284         automatically to $headers.
17286 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
17288         PR ipa/65610
17289         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17290         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17291         function.
17292         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17293         Use it.
17294         * ipa-prop.c (param_type_may_change_p): Likewise.
17295         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17296         (remove_unused_scope_block_p): Add in_ctor_dtor_block
17297         argument.  Before inlining, preserve
17298         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17299         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
17300         recursive calls.
17301         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17303 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17305         PR ipa/65076
17306         * ipa-inline.c (edge_badness): Base denominator on callee's
17307         grwoth squared.
17309 2015-03-27  Martin Jambor  <mjambor@suse.cz>
17311         PR ipa/65478
17312         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17313         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17314         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17315         node_calling_single_call.
17316         * ipa-cp.c (count_callers): New function.
17317         (set_single_call_flag): Likewise.
17318         (initialize_node_lattices): Count callers and set single_flag_call if
17319         necessary.
17320         (incorporate_penalties): New function.
17321         (good_cloning_opportunity_p): Use it, dump new flags.
17322         (propagate_constants_topo): Set node_within_scc flag if appropriate.
17323         * doc/invoke.texi (ipa-cp-recursion-penalty,
17324         ipa-cp-single-call-pentalty): Document.
17326 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17328         PR ipa/65588
17329         * symtab.c (symtab_node::get_partitioning_class): Register vars
17330         are duplicated.
17331         * varpool.c (symbol_table::output_variables) Do not assemble unefined
17332         decls for non-symbols.
17334 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17336         PR target/65248
17337         * output.h (default_binds_local_p_2): New.
17338         * varasm.c (default_binds_local_p_2): Renamed to ...
17339         (default_binds_local_p_3): This.  Don't return true on protected
17340         data symbol if protected data may be external.
17341         (default_binds_local_p): Use default_binds_local_p_3.
17342         (default_binds_local_p_1): Likewise.
17343         (default_binds_local_p_2): New.
17344         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17345         default_binds_local_p_2 if TARGET_MACHO is undefined.
17347 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
17349         PR target/65593
17350         * config/i386/i386.c (legitimize_pic_address): If base
17351         is SYMBOL_REF or LABEL_REF using %rip addressing, force
17352         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17354 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17356         PR target/65531
17357         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17358         comdat groups.
17360 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17362         PR ipa/65600
17363         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17364         of optimized out indirect call.
17365         (redirect_to_unreachable): Always build symbol table node for
17366         BUILT_IN_UNREACHABLE
17368 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
17370         PR target/65407
17371         * ira-costs.c (record_reg_classes): Process all constraint string
17372         containing 0-9.
17374 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
17376         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17377         memory_operand.
17379         PR target/65052
17380         * config/c6x/constraints.md (S3): New constraint.
17381         * config/c6x/c6x.md (real_jump): Use it.
17383 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17385         PR middle-end/65595
17386         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17387         do redirection if the call is not optimized out.
17389 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
17391         PR target/65495
17392         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17393         (fchkp-check-incomplete-type): Add LTO.
17394         (fchkp-zero-input-bounds-for-main): Likewise.
17395         (fchkp-first-field-has-own-bounds): Likewise.
17396         (fchkp-narrow-bounds): Likewise.
17397         (fchkp-narrow-to-innermost-array): Likewise.
17398         (fchkp-use-static-bounds): Likewise.
17399         (fchkp-use-static-const-bounds): Likewise.
17400         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17402 2015-03-27  Marek Polacek  <polacek@redhat.com>
17404         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17406 2015-03-27  Marek Polacek  <polacek@redhat.com>
17408         PR sanitizer/65583
17409         * ubsan.c (ubsan_create_edge): New function.
17410         (instrument_bool_enum_load): Call it.
17411         (instrument_nonnull_arg): Likewise.
17412         (instrument_nonnull_return): Likewise.
17413         (instrument_object_size): Likewise.
17415 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17417         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17418         auto_vec.
17420 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17422         PR lto/65536
17423         * lto-streamer.h (class lto_location_cache): New.
17424         (struct data_in): Add location_cache.
17425         (lto_input_location): Update prototype.
17426         (stream_input_location_now): New.
17427         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17428         pointer to location.
17429         (stream_input_location): Update.
17430         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17431         (warn_odr): Apply location cache before warning.
17432         (lto_input_location): Update prototype.
17433         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17434         Use stream_input_location_now.
17435         * lto-streamer-in.c (lto_location_cache::current_cache): New static
17436         variable.
17437         (lto_location_cache::cmp_loc): New function.
17438         (lto_location_cache::apply_location_cache): New function.
17439         (lto_location_cache::accept_location_cache): New function.
17440         (lto_location_cache::revert_location_cache): New function.
17441         (lto_location_cache::input_location): New function.
17442         (lto_input_location): Do location caching.
17443         (stream_input_location_now): New function.
17444         (input_eh_region, input_struct_function_base): Use
17445         stream_input_location_now.
17446         (lto_data_in_create): use new.
17447         (lto_data_in_delete): Use delete.
17448         * tree-streamer-in.c (unpack_ts_block_value_fields,
17449         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17450         lto_input_ts_exp_tree_pointers): Update for cached location api.
17452 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17454         PR ipa/65076
17455         * passes.def: Add pass_nothrow.
17456         * ipa-pure-const.c: (pass_data_nothrow): New.
17457         (pass_nothrow): New.
17458         (pass_nothrow::execute): New.
17459         (make_pass_nothrow): New.
17460         * tree-pass.h (make_pass_nothrow): Declare.
17462 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17464         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17465         edge to change by speculation resolution or redirection.
17466         (edge_set_predicate): Likewise.
17467         (inline_summary_t::duplicate): Likewise.
17468         (remap_edge_summaries): Likewise.
17470 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17472         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17473         New macros.
17474         (can_inline_edge_p): Relax option matching for always inline functions.
17476 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
17478         PR target/65561
17479         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17480         Check operand 4 and operand 0 for equality.
17481         (avx512f_vextract<shuffletype>32x4_1_maskm):
17482         Check operand 6 and operand 0 for equality.
17483         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17484         for equality.
17485         (vec_extract_hi_<mode>_maskm): Ditto.
17487 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17489         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17490         dead calls back to live.
17491         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17492         cross check to ...
17493         (cgraph_node::verify_node): ... here; verify only callee edges,
17494         not caller.
17495         * cif-code.def (CILK_SPAWN): New code.
17497 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17499         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17500         (edge_set_predicate): Use it to mark unreachable edges.
17501         (inline_summary_t::duplicate): Remove unnecesary code.
17502         (remap_edge_summaries): Likewise.
17503         (dump_inline_summary): Report contains_cilk_spawn.
17504         (compute_inline_parameters): Compute contains_cilk_spawn.
17505         (inline_read_section, inline_write_summary): Stream
17506         contains_cilk_spawn.
17507         * ipa-inline.c (can_inline_edge_p): Do not touch
17508         DECL_STRUCT_FUNCTION that may not be available;
17509         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17510         remove check for callee_fun->can_throw_non_call_exceptions and
17511         replace it by optimization attribute check; check for flag_exceptions.
17512         * ipa-inline-transform.c (inline_call): Maintain
17513         DECL_FUNCTION_PERSONALITY
17514         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17516 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
17518         PR tree-optimization/65551
17519         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17520         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17522 2015-03-26  Richard Biener  <rguenther@suse.de>
17524         PR middle-end/65555
17525         * tree-cfg.c (verify_gimple_call): Do not require a call to
17526         have no LHS if it wasn't recognized as control altering yet.
17528 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
17530         PR tree-optimization/64715
17531         * passes.def: Add another instance of pass_object_sizes before ccp1.
17532         * tree-object-size.c (pass_object_sizes::execute): In
17533         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17534         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17535         __bos result and the computed constant.  Remove redundant
17536         checks, obsoleted by gimple_call_builtin_p test.
17538         * var-tracking.c (variable_tracking_main_1): Don't track
17539         variables for targetm.no_register_allocation targets.
17541 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
17543         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17544         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17546 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17548         PR target/65569
17549         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17550         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
17551         0.0 is correctly setup.
17552         (extenddftf2_internal): Likewise.
17554 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
17556         PR tree-optimization/65177
17557         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17558         (bb_in_bbs): New.
17559         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
17560         edges not adjacent on the path to the original code.
17562 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
17564         PR bootstrap/65537
17565         * doc/install.texi (Building a native compiler): Document new
17566         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
17567         configuration assumes that the host supports the linker plugin.
17569 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
17571         PR target/65508
17572         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17573         chain for generated call.
17575 2015-03-25  Richard Biener  <rguenther@suse.de>
17577         * passes.c (pass_manager::execute_early_local_passes): Guard
17578         execution of pass_chkp_instrumentation_passes with
17579         flag_check_pointer_bounds.
17580         (pass_chkp_instrumentation_passes::gate): Likewise.
17582 2015-03-25  Martin Liska  <mliska@suse.cz>
17584         PR tree-optimization/65538
17585         * symbol-summary.h (function_summary::~function_summary):
17586         Relese memory for allocated summaries.
17587         (function_summary::release): New function.
17589 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
17591         PR lto/65515
17592         * lto-streamer-out.c (DFS::worklist): New struct.
17593         (DFS::worklist_vec): New data member.
17594         (DFS::next_dfs_num): Remove.
17595         (DFS::DFS): Rewritten using worklist instead of recursion,
17596         using most of code from DFS::DFS_write_tree.
17597         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17598         pass it to DFS_write_tree calls.
17599         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17600         quick initial checks push it into worklist_vec and return.
17602 2015-03-25  Richard Biener  <rguenther@suse.de>
17604         PR middle-end/65519
17605         * genmatch.c (expr::gen_transform): Re-write to avoid
17606         using gimple_build.
17608 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
17610         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17612 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
17614         * config/arm/arm.opt (print_tune_info): New option.
17615         * config/arm/arm.c (arm_print_tune_info): New function.
17616         (arm_file_start): Call arm_print_tune_info.
17617         * config/arm/arm-protos.h (struct tune_params): Add comment.
17618         * doc/invoke.texi (@item -mprint-tune-info): New item.
17619         (-mtune): mention it in ARM Option Summary.
17621 2015-03-25  DJ Delorie  <dj@redhat.com>
17623         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17624         correct clause.
17626 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
17627             Martin Liska  <mliska@suse.cz>
17629         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17630         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17631         (sem_item::add_type): New function.
17632         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17633         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17634         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17635         (sem_function::equals_wpa): Fix typo.
17636         * ipa-icf.h (sem_item::add_type): New function.
17637         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17638         order.
17640 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
17642         PR tree-optimization/65533
17643         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17644         with swapped operands, call vect_free_slp_tree on
17645         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17646         vector.
17648 2015-03-24  Richard Biener  <rguenther@suse.de>
17650         PR middle-end/65517
17651         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17652         for fixup if necessary.
17654 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
17656         * doc/extend.texi (Function Attributes): Add @cindex entries
17657         for all attributes and regularize their format.  Delete text
17658         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
17659         information about "eightbit_data", "tiny_data", and "model"
17660         variable attributes to the Variable Attributes section.  Fix
17661         some obvious typos and copy-editing issues.
17662         (Variable Attributes, Type Attributes): Likewise add/fix
17663         @cindex entries for all attributes.
17665 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
17667         PR target/65523
17668         * tree-chkp.c (chkp_build_returned_bound): Ignore
17669         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17671 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
17673         PR target/65505
17674         * config/sh/predicates.md (simple_mem_operand,
17675         displacement_mem_operand): Add test for reg.
17676         (short_displacement_mem_operand): Test for displacement_mem_operand
17677         before invoking sh_disp_addr_displacement.
17678         * config/sh/constraints.md (Sdd, Sra): Simplify.
17679         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17680         Remove redundant displacement_mem_operand tests.
17682 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
17684         PR target/65296
17685         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17686         the same -mmcu=MCU more than once.
17688 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
17690         PR bootstrap/65522
17691         * ipa-devirt.c: Remove duplicate demangle.h include.
17693         PR target/65504
17694         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17695         on the pseudo.
17696         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17697         REG_POINTER on *destptr after adjusting it for prologue size.
17699         PR ipa/65521
17700         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17701         ultimate_alias_target ()->order ints instead of
17702         ultimate_alias_target () pointers.
17704 2015-03-23  Richard Biener  <rguenther@suse.de>
17706         PR tree-optimization/65518
17707         * tree-vect-stmts.c (vectorizable_load): Reject single-element
17708         interleaving cases we generate absymal code for.
17710 2015-03-23  Richard Biener  <rguenther@suse.de>
17712         PR tree-optimization/65494
17713         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17714         matches here.
17715         (vect_analyze_slp_instance): But do that here, always and once.
17717 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17719         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17720         adding T or multiplying by T+1 and subracting T.
17722 2015-03-22  Jeff Law  <law@redhat.com>
17724         PR rtl-optimization/64317
17725         * Makefile.in (OBJS): Add gcse-common.c
17726         * gcse.c: Include gcse-common.h
17727         (struct modify_pair_s): Move structure definition to gcse-common.h
17728         (compute_transp): Move function to gcse-common.c.
17729         (canon_list_insert): Similarly.
17730         (record_last_mem_set_info): Break out some code and put it into
17731         gcse-common.c.  Call into the new common code.
17732         (compute_local_properties): Pass additional arguments to compute_transp.
17733         * postreload-gcse.c: Include gcse-common.h and df.h
17734         (modify_mem_list_set, blocks_with_calls): New variables.
17735         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17736         (get_bb_avail_insn): Pass in the expression index too.
17737         (alloc_mem): Allocate memory for the new bitmaps and lists.
17738         (free_mem): Free memory for the new bitmaps and lists.
17739         (insert_expr_in_table): Record a bitmap index for each entry we
17740         add to the table.
17741         (record_last_mem_set_info): Call into common code in gcse-common.c.
17742         (get_bb_avail_insn): If no available insn was found in the requested
17743         BB.  If BB has a single predecessor, see if the expression is
17744         transparent in BB and available in that single predecessor.
17745         (compute_expr_transp): New wrapper for compute_transp.
17746         (eliminate_partially_redundant_load): Pass expression's bitmap_index
17747         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
17748         (gcse_after_reload_main): If there are elements in the hash table,
17749         then compute transparency for all the elements in the hash table.
17750         * gcse-common.h: New file.
17751         * gcse-common.c: New file.
17753 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
17755         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17756         as an adjective.
17757         (System Headers): Likewise.
17758         (Ifdef): Likewise.
17759         (Traditional macros): Likewise.
17760         (Invocation): Likewise.
17761         (Option Index): Likewise.
17762         * doc/cppopts.texi (-M): Likewise.
17763         (-finput-charset): Likewise.
17764         (--help): Likewise.
17765         * doc.invoke.texi (AVR Options): Likewise.
17766         (V850 Options): Likewise.
17768 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
17770         PR ipa/65475
17771         * ipa-devirt.c: Include demangle.h
17772         (odr_type_d): Add field rtti_broken.
17773         (odr_subtypes_equivalent_p): Do not require name to match.
17774         (compare_virtual_tables): Fix typo; if type already has ODR violation,
17775         bypass the tests; be ready for function referneces in vtables that are
17776         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
17777         (warn_odr): Give up for nameless types.
17778         (warn_types_mismatch): Report mismatch in mangled names;
17779         report mismatch in anonymous namespaces; look into component types to
17780         give useful error; report when mismatch is dragged in from other ODR
17781         type.
17782         (odr_types_equivalent_p): Match types for being polymorphic; avoid
17783         duplicated diagnostics.
17784         (add_type_duplicate): Reorder checks so more informative ones come
17785         first; fix typo; do not output "the extra base is defined here" when
17786         we did not warn.
17787         (BINFO_N_BASE_BINFOS): Relax sanity check.
17789 2015-03-22  Martin Liska  <mliska@suse.cz>
17790             Jakub Jelinek  <jakub@redhat.com>
17792         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
17793         masks that can potentially include a builtin.
17794         (ix86_add_new_builtins): Introduce fast filter for isa values
17795         that cannot trigger builtin inclusion.
17797 2015-03-22  Martin Liska  <mliska@suse.cz>
17799         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
17800         (sem_item::update_hash_by_local_refs): Likewise.
17801         (sem_variable::get_hash): Empty line is fixed.
17802         (sem_item_optimizer::execute): Include adding of hash references.
17803         (sem_item_optimizer::update_hash_by_addr_refs): New function.
17804         (sem_item_optimizer::build_hash_based_classes): Use local hash.
17805         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
17806         (sem_item::update_hash_by_local_refs): Likewise.
17808 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17810         PR ipa/65502
17811         * ipa-comdats.c (enqueue_references): Walk through thunks.
17812         (ipa_comdats): Likewise.
17813         (set_comdat_group_1): New function.
17815 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17817         PR ipa/65475
17818         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
17819         non-polymorphic
17821 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
17822             Gerald Pfeifer  <gerald@pfeifer.com>
17824         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
17826 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17827             Sandra Loosemore  <sandra@codesourcery.com>
17829         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
17830         function parameter declaration.
17831         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
17832         Update arguments to nios2_adjust_call_address().
17833         (sibcall_internal): Rename from *sibcall.
17834         (sibcall_value_internal): Rename from *sibcall_value.
17835         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
17836         (nios2_large_got_address): Add target temp reg parameter.
17837         (nios2_got_address): Adjust call to nios2_large_got_address, add
17838         force_reg around it.
17839         (nios2_load_pic_address): Add target temp reg parameter, replace call
17840         to nios2_got_address with corresponding code.
17841         (nios2_legitimize_constant_address): Update call to
17842         nios2_load_pic_address.
17843         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
17844         to use temp reg for PIC loading purposes.
17845         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
17846         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17847         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
17849 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17851         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
17852         usage of "the @option{...}".
17853         (-Wopenmp-simd): Likewise.
17854         (-fsanitize-recover): Likewise.
17855         (-fsanitize-undefined-trap-on-error): Likewise.
17856         (-flto): Likewise.
17857         (tracer-dynamic-coverage-feedback): Likewise.
17858         (reorder-block-duplicate-feedback): Likewise.
17859         (loop-unroll-jam-size): Likewise.
17860         (-B): Likewise.
17861         (-I-): Likewise.
17862         (-mabs=legacy): Likewise.
17863         (-mupper-regs-df): Likewise.
17864         (-mupper-regs-sf): Likewise.
17865         (-mpointers-to-nested-functions): Likewise.
17867 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17869         * doc/extend.texi (Cilk Plus Builtins): Add markup.
17871 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17873         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
17874         additional index entries and cross-references.
17875         (-fchkp-check-incomplete-type): Likewise.
17876         (-fchkp-first-field-has-own-bounds): Likewise.
17877         (-fchkp-narrow-to-innermost-array): Likewise.
17878         (-fchkp-use-fast-string-functions): Likewise.
17879         (-fchkp-use-nochk-string-functions): Likewise.
17880         (-fchkp-use-static-const-bounds): Likewise.
17881         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17882         (-fchkp-instrument-marked-only): Likewise.
17883         (-fchkp-use-wrappers): Likewise.
17884         (-static-libmpx): Likewise.
17885         (-static-libmpxwrappers): Likewise.
17886         * doc/extend.texi (bnd_legacy): Likewise.
17887         (bnd_instrument): Likewise.
17888         (bnd_variable_size): Likewise.
17889         (Pointer Bounds Checker builtins): Likewise.
17891 2015-03-21  Tom de Vries  <tom@codesourcery.com>
17893         PR tree-optimization/65458
17894         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
17895         * cgraph.h (cgraph_node): Add parallelized_function field.
17896         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
17897         (input_overwrite_node): Read parallelized_function field.
17898         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
17899         parallelized_function on cgraph_node for child_fn.
17900         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
17901         Remove include of gt-tree-parloops.h.
17902         (parallelized_functions): Remove static variable.
17903         (parallelized_function_p): Rewrite using parallelized_function field of
17904         cgraph_node.
17905         (create_loop_fn): Remove adding to parallelized_functions.
17906         * Makefile.in (GTFILES): Remove tree-parloops.c
17908 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
17910         PR rtl-optimization/64366
17911         * lra.c (lra_update_insn_regno_info): Consider regs in
17912         CALL_INSN_FUNCTION_USAGE memory.
17914 2015-03-20  Richard Biener  <rguenther@suse.de>
17916         PR middle-end/64715
17917         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
17918         for type comparison and gcc_checking_assert.
17919         (chrec_fold_plus_poly_poly): Likewise.
17920         (chrec_fold_multiply_poly_poly): Likewise.
17921         (chrec_convert_1): Likewise.
17922         * gimplify.c (gimplify_expr): Remove premature folding of
17923         &X + CST to &MEM[&X, CST].
17925 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17927         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
17928         already is final.
17929         (ipa_inline): Recompute inline_failed codes.
17930         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
17931         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
17932         CIF_FINAL_ERROR.
17934 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
17936         PR rtl-optimization/60851
17937         * recog.c (constrain_operands): Accept a pseudo register before reload
17938         for LRA enabled targets.
17940 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17942         PR target/65240
17943         * config/rs6000/predicates.md (easy_fp_constant): Remove special
17944         -ffast-math handling that kept non-0 constants live in the RTL
17945         until reload.  Remove logic testing the number of instructions it
17946         took to create a constant in a GPR that was never used, due to a
17947         test for soft-float earlier.
17948         (memory_fp_constant): Delete, no longer used.
17950         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
17951         alternatives for loading non-0 constants into GPRs for hard
17952         floating point that is no longer needed due to changes in
17953         easy_fp_constant.  Add support for loading 0.0 into GPRs.
17954         (mov<mode>_hardfloat32): Likewise.
17955         (mov<mode>_hardfloat64): Likewise.
17956         (mov<mode>_64bit_dm): Likewise.
17957         (movtd_64bit_nodm): Likewise.
17958         (pre-reload move FP constant define_split): Delete define_split,
17959         since it is no longer used.
17960         (extenddftf2_internal): Remove GHF constraints that are not valid
17961         for extenddftf2.
17963 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
17965         PR rtl-optimization/63491
17966         * lra-constraints.c (check_and_process_move): Use src instead of
17967         sreg.  Remove some dead code.
17969 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
17971         PR ipa/65380
17972         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
17973         (sem_variable::merge): Likewise.
17975 2015-03-19  Martin Liska  <mliska@suse.cz>
17977         PR ipa/65465
17978         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
17979         all fields of cgraph_thunk_info.
17981 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
17983         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
17984         clone instrumented thunks.
17986 2015-03-19  Richard Biener  <rguenther@suse.de>
17988         Revert
17989         2015-03-10  Richard Biener  <rguenther@suse.de>
17991         PR middle-end/63155
17992         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17993         * tree-ssa-coalesce.c: Include timevar.h.
17994         (attempt_coalesce): Handle graph being NULL.
17995         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17996         Split out abnormal coalescing to ...
17997         (perform_abnormal_coalescing): ... this function.
17998         (coalesce_ssa_name): Perform abnormal coalescing without computing
17999         live/conflict.
18000         (verify_ssa_coalescing_worker): New function.
18001         (verify_ssa_coalescing): Likewise.
18003 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18004             Jakub Jelinek  <jakub@redhat.com>
18006         PR sanitizer/65400
18007         * tsan.c (instrument_gimple): Clear tail call flag on
18008         calls.
18010 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
18012         PR sanitizer/65400
18013         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18014         call in the return bb.
18015         (find_split_points): Add RETURN_BB argument, don't call
18016         find_return_bb.
18017         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
18018         if true append TSAN_FUNC_EXIT internal call after the call to
18019         the split off function.
18020         (execute_split_functions): Call find_return_bb here.
18021         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18022         Adjust find_split_points and split_function calls.
18024 2015-03-18  DJ Delorie  <dj@redhat.com>
18026         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18027         (iorqi3_virt): Likewise.
18029 2015-03-18  Tom de Vries  <tom@codesourcery.com>
18031         * tree-parloops.c (parallelize_loops): Make static.
18032         * tree-parloops.h (parallelize_loops): Remove extern declaration.
18034 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
18036         PR middle-end/64491
18037         Revert:
18038         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
18040         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18041         condition would be removed due to undefined behaviour.
18043 2015-03-18  Martin Liska  <mliska@suse.cz>
18045         PR ipa/65432
18046         * cgraph.c (cgraph_node::get_create): Remove unnecessary
18047         xstrdup_for_dump wrapper.
18048         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18049         sem_item::name.
18050         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18051         with xstrdup_for_dump.
18052         (sem_variable::equals): Likewise.
18053         (sem_item_optimizer::read_section): Use symtab_node::name instead of
18054         sem_item::name.
18055         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18056         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18057         symtab_node::asm_name with xstrdup_for_dump.
18058         (congruence_class::dump): Use symtab_node::name instead of
18059         sem_item::name.
18060         * ipa-icf.h (symtab_node::name): Remove.
18061         (symtab_node::asm_name): Likewise.
18063 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
18065         PR tree-optimization/65450
18066         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18067         function.
18068         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18069         it instead of duplicate_ssa_name_ptr_info.
18071         PR target/65222
18072         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18074 2015-03-18  Richard Biener  <rguenther@suse.de>
18076         * tree-data-ref.h (struct access_matrix): Remove.
18077         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18078         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18079         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18080         (am_vector_index_for_loop): Likewise.
18081         (struct data_reference): Remove access_matrix member.
18082         (DR_ACCESS_MATRIX): Remove.
18083         (lambda_vector_new): Add comment.
18084         (lambda_matrix_new): Use XOBNEWVEC.
18086 2015-03-18  Richard Biener  <rguenther@suse.de>
18088         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18089         (pass_ch::execute): Cleanup the CFG only if we did sth.
18090         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18092 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18094         * expmed.c (synth_mult): Use std::swap instead of manually
18095         swapping algorithms.
18097 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
18099         PR target/65078
18100         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18102 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
18104         PR target/65296
18105         * config/avr/avr.opt (-nodevicelib): New option.
18106         * doc/invoke.texi (AVR Options): Document it.
18107         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18108         libgcc.a, libc.a, libm.a.
18109         * config/avr/specs.h: Same.
18110         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18111         which don't (directly) depend on the device.  Print more help.
18112         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18113         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18114         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18115         case of an error.
18116         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18117         for specs file name.
18118         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18119         * config/avr/avr-mcus.def: Adjust initializers and comments.
18121 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
18123         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18124         DECL_ONE_ONLY to check if decl is one only.
18125         * ipa-split.c (consider_split): Limit splitt of one only functions.
18127 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
18129         PR tree-optimization/65427
18130         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18131         functions.
18132         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18134 2015-03-16  Marek Polacek  <polacek@redhat.com>
18136         * cgraph.h (add_new_static_var): Remove declaration.
18137         * varpool.c (add_new_static_var): Remove function.
18139 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
18141         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18142         instead of vec<tree> * with vec_alloc and release for args.
18143         Adjust all users.
18145         PR middle-end/65431
18146         * omp-low.c (delete_omp_context): Only splay_tree_delete
18147         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18148         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
18150 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
18152         PR sanitizer/64820
18153         * cfgexpand.c (align_base): New function.
18154         (alloc_stack_frame_space): Call it.
18155         (expand_stack_vars): Align prev_frame to be sure
18156         data->asan_vec elements aligned properly.
18158 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
18160         PR middle-end/65409
18161         * expr.c (store_field): Do not do a direct block copy if the source is
18162         a PARALLEL with BLKmode.
18164 2015-03-16  Tom de Vries  <tom@codesourcery.com>
18166         PR middle-end/65414
18167         Revert:
18168         2015-03-12  Tom de Vries  <tom@codesourcery.com>
18170         PR rtl-optimization/64895
18171         * lra-lives.c (check_pseudos_live_through_calls): Use
18172         actual_call_used_reg_set instead of call_used_reg_set, if available.
18174 2015-03-16  Alan Modra  <amodra@gmail.com>
18176         PR target/63150
18177         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18178         Modify Z->r bswapdi splitter to use dest in place of scratch.
18179         In r->Z and Z->r bswapdi splitter rename word_high, word_low
18180         to word1, word2 and rearrange logic to suit.
18181         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18182         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
18183         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18184         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
18185         early clobber.
18187 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
18189         PR tree-optimization/65369
18190         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18191         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18192         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18194         PR tree-optimization/65418
18195         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18196         are casts in the first PLUS_EXPR operand, ensure tbias and
18197         *totallowp are in the inner type.
18199         PR rtl-optimization/65401
18200         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18201         argument.  If true, adjust_address_nv of x with big-endian
18202         correction for the mode widening to GET_MODE (y).
18203         (make_field_assignment): Don't do MEM mode widening here.
18204         Use MEM_P instead of GET_CODE == MEM.
18206 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
18208         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18209         the external decls.
18211 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18213         PR target/64600
18214         * config/arm/arm.c (arm_gen_constant, AND case): Use
18215         ARM_SIGN_EXTEND when constructing AND mask.
18217 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18219         * graph.c (print_graph_cfg): Make function names visible and append
18220         parenthesis to it.  Also make groups of basic blocks belonging to the
18221         same function visible.
18223 2015-03-12  Richard Biener  <rguenther@suse.de>
18225         PR middle-end/44563
18226         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18227         to avoid quadratic behavior with inline expansion splitting blocks.
18228         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18229         with the successor if the predecessor will be merged with it.
18230         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18231         entry block with its successor.
18233 2015-03-13  Richard Biener  <rguenther@suse.de>
18235         PR middle-end/44563
18236         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18237         (cleanup_tree_cfg_1): Do not call it.
18238         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18239         (fixup_noreturn_call): Mark the stmt as control altering.
18240         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18241         here.
18242         (pass_data_fixup_cfg): Produce a dump file.
18243         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18244         (need_noreturn_fixup): New global.
18245         (pass_dominator::execute): Fixup queued noreturn calls.
18246         (optimize_stmt): Queue calls that became noreturn for fixup.
18247         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18248         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18249         (el_to_fixup): New global.
18250         (eliminate_dom_walker::before_dom_childre): Queue calls that
18251         became noreturn for fixup.
18252         (eliminate): Fixup queued noreturn calls.
18253         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18254         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18255         (substitute_and_fold_dom_walker::before_dom_children): Queue
18256         alls that became noreturn for fixup.
18257         (substitute_and_fold): Fixup queued noreturn calls.
18259 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
18261         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18262         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18263         are building; for methods check ODR type of class they belong to if
18264         they may lead to a polymorphic call.
18265         (sem_function::compare_polymorphic_p): Be bit smarter about testing
18266         when function may lead to a polymorphic call.
18267         (sem_function::compare_type_list): Remove.
18268         (sem_variable::equals): Update use of compatible_types_p.
18269         (sem_variable::parse_tree_refs): Remove.
18270         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18271         cdtor.
18272         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18273         matching here.
18274         (func_checker::compatible_polymorphic_types_p): Break out from ...
18275         (unc_checker::compatible_types_p): ... here.
18276         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18277         Declare.
18278         (unc_checker::compatible_types_p): Update.
18279         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18280         Remove.
18282 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18284         PR rtl-optimization/65235
18285         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18286         When first element of vec_concat is const_int, calculate its size
18287         using second element.
18289 2015-03-12  Richard Biener  <rguenther@suse.de>
18291         PR middle-end/65270
18292         * fold-const.c (operand_equal_p): Fix ordering of resetting
18293         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18295 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
18297         * config/s390/s390.c (s390_reorg): Move code to output nops after label
18298         to s390_reorg ().
18299         (s390_asm_output_function_label): Likewise.
18300         * config/s390/s390.c (s390_asm_output_function_label):
18301         Fix function label alignment with -mhtopatch.
18302         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18303         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18304         ("nop_2_byte"): New define_insn.
18305         ("nop_4_byte"): Likewise.
18306         ("nop_6_byte"): Likewise.
18307         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18308         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18310 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
18312         PR target/65103
18313         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18314         register.
18316 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
18318         PR target/65044
18319         * toplev.c (process_options): Restrict Pointer Bounds Checker
18320         usage with Address Sanitizer.
18322 2015-03-12  Richard Biener  <rguenther@suse.de>
18324         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18325         to split on.
18326         * omp-low.c (expand_omp_taskreg): Split block before removing
18327         the stmt.
18328         (expand_omp_target): Likewise.
18329         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18330         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18331         stmt to split_block.
18333 2015-03-12  Tom de Vries  <tom@codesourcery.com>
18335         PR rtl-optimization/64895
18336         * lra-lives.c (check_pseudos_live_through_calls): Use
18337         actual_call_used_reg_set instead of call_used_reg_set, if available.
18339 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18341         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18342         (cgraph_node::remove): Likewise.
18343         (cgraph_node::get_untransformed_body): Likewise.
18344         * varpool.c (varpool_node::remove): Likewise.
18345         (varpool_node::get_constructor): Add sanity check.
18347 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
18349         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18350         old GCC versions.
18351         (-fabi-compat-version): Likewise.
18352         (-ffriend-injection): Likewise.
18353         (-Wdeclaration-after-statement): Likewise.
18354         (-fomit-frame-pointer): Likewise.
18355         (-ftree-coalesce-inlined-vars): Likewise.
18356         (-fvisibility=): Likewise.
18357         * doc/extend.texi (Typeof): Likewise.
18358         (Zero Length): Likewise.
18359         (Escaped Newlines): Likewise.
18360         (Compound Literals): Likewise.
18361         (Function Attributes): Likewise.
18362         (Label Attributes): Likewise.
18363         (Type Attributes): Likewise.
18364         (Function Names): Likewise.
18365         (Other Builtins): Likewise.
18366         (Function Specific Option Pragmas): Likewise.
18367         (C++ Interface): Likewise.
18369 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
18371         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18373 2015-03-11  Marek Polacek  <polacek@redhat.com>
18375         PR tree-optimization/65388
18376         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18378 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
18380         PR target/65296
18381         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18382         * configure: Regenerate.
18383         * config.in: Regenerate.
18384         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18385         [-mn-flash]: Document it.
18386         [__AVR_ARCH__]: Document avrtiny.
18388         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18389         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18390         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18392 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18394         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18396 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18398         PR target/65242
18399         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18400         allow reloads of PLUS in floating point/VSX registers.
18402 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
18404         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18405         crypto_sha256_fast.
18406         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18408 2015-03-11  Richard Biener  <rguenther@suse.de>
18410         PR tree-optimization/65310
18411         * tree-sra.c (build_ref_for_offset): Also preserve larger
18412         alignment.
18414 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
18416         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18418 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18420         PR target/65368
18421         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18422         new define_expand.
18423         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18425 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18427         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18428         (sem_function::equals_wpa): ... here.
18430 2015-03-10  Marek Polacek  <polacek@redhat.com>
18431             Jakub Jelinek  <jakub@redhat.com>
18433         PR sanitizer/65367
18434         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18435         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
18436         separately.
18438 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18440         PR target/65286
18441         * config/rs6000/t-linux: For powerpc64* target set
18442         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18444 2015-03-10  Richard Biener  <rguenther@suse.de>
18446         PR middle-end/44563
18447         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18448         for redirect_all_calls.
18450 2015-03-10  Marek Polacek  <polacek@redhat.com>
18452         * gdbinit.in (pcfun): Define and document.
18454 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
18456         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18457         of libgomp-plugin.h.
18458         (find_target_compiler): Support a case when the path to gcc is
18459         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18460         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18461         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18462         libgomp-plugin.h.
18463         (main): Use GCC_INSTALL_NAME as target_driver_name.
18464         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18465         define.
18466         (mkoffload.o): Remove obsolete include path and defines.
18467         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18469 2015-03-10  Richard Biener  <rguenther@suse.de>
18471         PR middle-end/63155
18472         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18473         * tree-ssa-coalesce.c: Include timevar.h.
18474         (attempt_coalesce): Handle graph being NULL.
18475         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18476         Split out abnormal coalescing to ...
18477         (perform_abnormal_coalescing): ... this function.
18478         (coalesce_ssa_name): Perform abnormal coalescing without computing
18479         live/conflict.
18480         (verify_ssa_coalescing_worker): New function.
18481         (verify_ssa_coalescing): Likewise.
18483 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
18485         PR target/65296
18486         * config.gcc (extra_options) [avr]: Remove.
18487         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18488         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18489         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18491         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18492         (-mmcu=): Add Var and MissingArgError properties.
18493         (-march=): Remove.
18494         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18495         * config/avr/t-multilib: Regenerate.
18496         * config/avr/specs.h: New file.
18497         * config/avr/driver-avr.c: New file.
18498         * config/avr/genopt.sh: Remove file.
18499         * config/avr/avr-tables.opt: Remove file.
18500         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18501         * config/avr/avr-c.c: Same.
18502         * avr-arch.h: Same.
18503         (avr_current_device): Remove proto.
18504         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18505         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18506         (EXTRA_SPEC_FUNCTIONS): Define.
18507         (avr_devicespecs_file): New specs function proto.
18508         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18509         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18510         (avr_current_device): Remove definition and usage.
18511         (avr_set_core_architecture): New static function.
18512         (avr_option_override): Use it.
18513         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18514         (mcu_name): New static array.
18515         (comparator, avr_archs_str, avr_mcus_str): New static functions.
18516         (avr_inform_devices, avr_inform_core_architectures): New functions.
18517         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18518         (avrlibc.h) [WITH_AVRLIBC]: Include.
18519         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18520         (print_mcu): Rewrite from scratch.
18521         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18522         Forward to avr-specific specs defined in device-specs file.
18523         * config/avr/t-avr (driver-avr.o): New rule.
18524         (avr-devices.o): Depend on avr-arch.h.
18525         (avr-mcus): No more depend on avr-tables.opt.
18526         (avr-tables.opt): Remove rule.
18527         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18529 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18531         * c-family/c.opt (fchkp-use-wrappers): New.
18532         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18533         (chkp_wrap_function): New.
18534         (chkp_build_instrumented_fndecl): Support wrapped
18535         functions.
18536         * doc/invoke.texi (-fcheck-pointer-bounds): New.
18537         (-fchkp-check-incomplete-type): New.
18538         (-fchkp-first-field-has-own-bounds): New.
18539         (-fchkp-narrow-bounds): New.
18540         (-fchkp-narrow-to-innermost-array): New.
18541         (-fchkp-optimize): New.
18542         (-fchkp-use-fast-string-functions): New.
18543         (-fchkp-use-nochk-string-functions): New.
18544         (-fchkp-use-static-bounds): New.
18545         (-fchkp-use-static-const-bounds): New.
18546         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18547         (-fchkp-check-read): New.
18548         (-fchkp-check-write): New.
18549         (-fchkp-store-bounds): New.
18550         (-fchkp-instrument-calls): New.
18551         (-fchkp-instrument-marked-only): New.
18552         (-fchkp-use-wrappers): New.
18553         (-static-libmpx): New.
18554         (-static-libmpxwrappers): New.
18556 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18558         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18559         (CHKP_SPEC): Add wrappers library.
18560         * c-family/c.opt (static-libmpxwrappers): New.
18562 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18564         * config/i386/linux-common.h (LIBMPX_LIBS): New.
18565         (LIBMPX_SPEC): New.
18566         (CHKP_SPEC): New.
18567         * gcc.c (CHKP_SPEC): New.
18568         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18569         * c-family/c.opt (static-libmpx): New.
18571 2015-03-10  Richard Biener  <rguenther@suse.de>
18573         PR middle-end/44563
18574         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18575         for compare_type.
18576         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18577         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18578         (cgraph_add_edge_to_call_site_hash): Likewise.
18579         (cgraph_node::get_edge): Likewise.
18580         (cgraph_edge::set_call_stmt): Likewise.
18581         (cgraph_edge::remove_caller): Likewise.
18583 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
18585         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18586         (callee_saved_gpr_regs_size): ... this.
18587         (callee_saved_regs_first_regno): Rename to ...
18588         (callee_saved_first_gpr_regno): ... this.
18589         (callee_saved_regs_last_regno) Rename to ...
18590         (callee_saved_last_gpr_regno): ... this.
18591         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18592         variables.
18593         (nds32_initial_elimination_offset): Likewise.
18594         (nds32_expand_prologue): Likewise.
18595         (nds32_expand_epilogue): Likewise.
18596         (nds32_expand_prologue_v3push): Likewise.
18597         (nds32_expand_epilogue_v3pop): Likewise.
18598         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18599         Adjust renamed variables.
18600         (nds32_output_stack_pop): Likewise.
18602 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18604         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18605         code in comment.
18607 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18609         PR rtl-optimization/65321
18610         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18611         than shift mode.
18612         * var-tracking.c (use_narrower_mode): Likewise.
18614 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18616         PR tree-optimization/65355
18617         * varasm.c (notice_global_symbol): Do not produce RTL.
18618         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18619         anchor.
18620         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18621         check for section anchors.
18623 2015-03-10  Alan Modra  <amodra@gmail.com>
18625         PR target/65286
18626         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18627         to be single-arch by default.  Set cpu_is_64bit for powerpc64
18628         given --with-cpu=native.
18629         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18630         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18631         and powerpc64le.
18632         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18633         rs6000_isa_flags rather than TARGET_64BIT.
18635 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
18636             Kaz Kojima  <kkojima@gcc.gnu.org>
18638         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18640 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
18642         PR lto/65361
18643         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18644         on a TREE_BINFO, instead use BINFO_TYPE.
18646 2015-03-09  Richard Biener  <rguenther@suse.de>
18648         PR middle-end/65270
18649         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18650         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18651         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
18652         of that.  When comparing dereferences compare alignment.
18653         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18655 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
18657         * ipa-inline-analysis.c (check_callers): Check
18658         node->can_remove_if_no_direct_calls_and_refs_p.
18659         (growth_likely_positive): Reorganize to call
18660         can_remove_if_no_direct_calls_p later.
18661         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18662         will_be_removed_from_program_if_no_direct_calls_p): Add
18663         will_inline parameter.
18664         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18665         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18666         Handle inliner case correctly.
18668 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18670         PR tree-optimization/63743
18671         * cfgexpand.c (reorder_operands): Also reorder if only second operand
18672         had its definition forwarded by TER.
18674 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
18676         PR lto/65316
18677         * ipa-utils.h (types_odr_comparable): Add strict argument.
18678         * ipa-devirt.c: Fix whitespace;
18679         (odr_hasher): Remove.
18680         (odr_name_hasher, odr_vtable_hasher): New hashers.
18681         (can_be_name_hashed_p): New predicate.
18682         (hash_type_name): remove.
18683         (hash_odr_name): New.
18684         (odr_name_hasher::hash): new.
18685         (can_be_vtable_hashed_p): New.
18686         (hash_odr_vtable): New.
18687         (odr_vtable_hasher::hash): New.
18688         (types_same_for_odr): Add strict parameter.
18689         (types_odr_comparable): Likewise.
18690         (odr_name_hasher::equal): New.
18691         (odr_vtable_hasher::equal): New.
18692         (odr_name_hasher::remove): New.
18693         (odr_hash_type): Change to hash_table<odr_name_hasher>.
18694         (odr_vtable_hash_type): New.
18695         (odr_vtable_hash): New.
18696         (odr_subtypes_equivalent_p): Do strict comparsion.
18697         (add_type_duplicate): Merge type names; cleanup; avoid type
18698         duplicates.
18699         (register_odr_type): Initialize vtable hash.
18700         (build_type_inheritance_graph): Likewise
18701         (get_odr_type): Reorg to use two hashes.
18702         (dump_possible_polymorphic_call_targets): Move sanity check after debug
18703         output.
18704         (ipa_devirt): Dump type_inheritance_graph.
18705         (types_same_for_odr): Add strict mode.
18707 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18709         PR ipa/65334
18710         * cgraph.h (symtab_node): Add definition_alignment,
18711         can_increase_alignment_p and increase_alignment.
18712         * symtab.c (symtab_node::can_increase_alignment_p,
18713         increase_alignment_1, symtab_node::increase_alignment,
18714         symtab_node::definition_alignment): New.
18715         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18716         can_increase_alignment_p.
18717         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18718         * tree-vect-stmts.c (ensure_base_align): Likewise.
18719         * varasm.c (function_section_1): Use definition_alignment.
18720         (assemble_start_function): Likewise.
18721         (emit_local): likewise.
18722         (build_constant_desc): Likewsie.
18723         (output_constant_def_contents): Likewise.
18724         (place_block_symbol): Likewise.
18725         (output_object_block): Likewise.
18727 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18729         PR ipa/65316
18730         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18731         when outputting debug.
18733 2015-03-07  Marek Polacek  <polacek@redhat.com>
18734             Martin Uecker  <uecker@eecs.berkeley.edu>
18736         PR sanitizer/65280
18737         * doc/invoke.texi: Update description of -fsanitize=bounds.
18739 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
18741         * tree-ssa-phiopt.c (neg_replacement): Remove.
18742         (tree_ssa_phiopt_worker): Remove negate optimization.
18744 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18746         PR ipa/65302
18747         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18749 2015-03-06  Richard Biener  <rguenther@suse.de>
18751         PR middle-end/64928
18752         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18753         and liveout_obstack members.
18754         (calculate_live_on_exit): Remove.
18755         (calculate_live_ranges): Change declaration.
18756         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18757         (new_tree_live_info): Adjust.
18758         (calculate_live_ranges): Delete livein when not wanted.
18759         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18760         Deal with partly deleted live info.
18761         (loe_visit_block): Remove temporary bitmap by using
18762         bitmap_ior_and_compl_into.
18763         (live_worklist): Adjust accordingly.
18764         (calculate_live_on_exit): Make static.
18765         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18766         we do not need livein.
18768 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
18770         * real.c (real_from_string): Fix typo in assertion.
18772 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
18774         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
18775         the patch.
18777 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18779         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
18781 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
18783         PR target/64342
18784         * lra-assigns.c (find_hard_regno_for): Rename to
18785         find_hard_regno_for_1.  Add a new parameter.
18786         (find_hard_regno_for): New function using find_hard_regno_for_1.
18788 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18790         PR rtl-optimization/65067
18791         * expmed.c (store_bit_field, extract_bit_field): Reworked the
18792         strict volatile bitfield handling.
18794 2015-03-05  Martin Liska  <mliska@suse.cz>
18796         PR ipa/65318
18797         * ipa-icf.c (sem_variable::equals): Compare variables types.
18799 2015-03-05  Richard Henderson  <rth@redhat.com>
18801         PR target/65121
18802         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
18803         correctly check weak symbol binding.
18805 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
18807         PR middle-end/65315
18808         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
18809         needed alignment.
18811 2015-03-05  Martin Liska  <mliska@suse.cz>
18813         * ipa-inline.c (inline_small_functions): Set default value to
18814         prevent warning during bootstrap.
18815         * tree.h: Add pragma guard that ignores false positives during
18816         bootstrap.
18818 2015-03-05  Richard Biener  <rguenther@suse.de>
18820         PR tree-optimization/65310
18821         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18822         Properly preserve alignment of the base of the access.
18824 2015-03-05  Richard Biener  <rguenther@suse.de>
18826         PR ipa/65270
18827         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
18828         Compare dependence info.
18830 2015-03-05  Richard Biener  <rguenther@suse.de>
18832         PR middle-end/65233
18833         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
18834         tree-into-ssa.h.
18835         (walk_ssa_copies): Revert last chage.  Instead do not walk
18836         SSA names registered for SSA update.
18838 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18840         PR ipa/65270
18841         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
18842         vtable references for their containing type.
18843         (sem_function::equals_wpa): Compare TYPE_RESTRICT
18844         and type attributes.
18846 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18848         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
18849         before negating it.
18850         * stor-layout.c (finalize_record_size): Revert latest change.
18852 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
18854         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
18856 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18858         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
18859         for correct comdat handling.
18860         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18861         Likewise.
18862         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
18863         (used_from_object_file_p_worker): Remove.
18864         (cgraph_node::only_called_directly_or_alised): Add
18865         used_from_object_file_p.
18866         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
18867         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
18868         can_remove_if_no_direct_calls_and_refs_p.
18870 2015-03-04  Nick Clifton  <nickc@redhat.com>
18872         * config/rl78/rl78.h (enum reg_class): Remove real registers from
18873         General register class.
18874         * config/rl78/rl78-real.md: Replace general register constraints
18875         with real+virtual register constraints.
18877 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18879         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
18880         from checking for -mhtm option.
18882 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18884         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
18885         (struct ipa_sra_check_caller_data): Add has_thunk field.
18886         (ipa_sra_check_caller): Check for thunk.
18887         (ipa_sra_preliminary_function_checks): Give up on function with
18888         thunks.
18889         (ipa_early_sra): Use call_for_symbol_and_aliases.
18891 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
18893         PR target/65249
18894         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
18895         called for __stack_chk_guard symbol.
18897 2015-03-03  DJ Delorie  <dj@redhat.com>
18899         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
18900         inc/dec.
18901         (*addhi3_real): Likewise.
18902         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
18903         pattern to match incrementing memory.
18904         * config/rl78/predicates.md (rl78_1_2_operand): New.
18905         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
18906         it's the same and only mem.
18907         (rl78_alloc_physical_registers_op2): If there's effectively only
18908         one MEM, transcode it into HL.
18909         (rl78_far_p): Reject addresses that aren't legitimate.
18911 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18913         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
18914         negating it.
18916         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
18918 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
18920         Implement call0 ABI for xtensa
18921         * config/xtensa/constraints.md ("a" constraint): Include stack
18922         pointer in case of call0 ABI.
18923         ("q" constraint): Make empty in case of call0 ABI.
18924         ("D" constraint): Include stack pointer in case of call0 ABI.
18925         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
18926         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
18927         prototypes.
18928         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
18929         variable.
18930         (xtensa_regno_to_class): Make it a local variable in the
18931         function xtensa_regno_to_class.
18932         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
18933         macro, function prototype and implementation.
18934         (reg_nonleaf_alloc_order): Make it a local variable in the
18935         function order_regs_for_local_alloc.
18936         (xtensa_conditional_register_usage): New function.
18937         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
18938         (xtensa_valid_move): Allow direct moves to stack pointer
18939         register in call0 ABI.
18940         (xtensa_setup_frame_addresses): Only spill register windows in
18941         windowed ABI.
18942         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
18943         call0 ABI respectively.
18944         (xtensa_function_arg_1): Only mark a7 register for copying in
18945         windowed ABI.
18946         (xtensa_call_save_reg): New function.
18947         (compute_frame_size): Add space for callee saved register
18948         storage to the frame size in call0 ABI.
18949         (xtensa_expand_prologue): Generate code to set up stack frame
18950         and save callee-saved registers in call0 ABI.
18951         (xtensa_expand_epilogue): New function.
18952         (xtensa_set_return_address): New function.
18953         (xtensa_return_addr): Calculate return address in call0 ABI.
18954         (xtensa_builtin_saveregs): Only mark a7 register for copying and
18955         emit copying code in windowed ABI.
18956         (order_regs_for_local_alloc): Add preferred register allocation
18957         order for non-leaf function in call0 ABI.
18958         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
18959         (xtensa_asm_trampoline_template): Add trampoline generation for
18960         call0 ABI.
18961         (xtensa_trampoline_init): Add trampoline initialization for
18962         call0 ABI.
18963         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
18964         functions.
18965         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
18966         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
18967         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
18968         ABI call-used registers.
18969         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
18970         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
18971         call0 ABI.
18972         (REG_CLASS_CONTENTS): Include all registers into the preferred
18973         reload registers set, adjust the set in the
18974         xtensa_conditional_register_usage.
18975         (xtensa_regno_to_class): Drop variable declaration.
18976         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
18977         function.
18978         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
18979         respectively.
18980         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
18981         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
18982         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
18983         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
18984         location in call0 ABI.
18985         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
18986         stack adjustment size when handling exception.
18987         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
18988         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
18989         definitions.
18990         ("return" pattern): Generate ret.n/ret in call0 ABI.
18991         ("epilogue" pattern): Expand epilogue.
18992         ("nonlocal_goto" pattern): Use default in call0 ABI.
18993         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
18994         emit eh_set_a0_* depending on ABI.
18995         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
18996         ("eh_set_a0_call0", "blockage"): New patterns.
18998 2015-03-03  Martin Liska  <mliska@suse.cz>
19000         PR ipa/65287
19001         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19003 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19005         PR 65138/target
19006         * config/rs6000/rs6000-tables.opt: Regenerate table.
19008 2015-03-03  Renlin Li  <renlin.li@arm.com>
19010         * doc/md.texi (@item ^): Change ? into ^.
19012 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
19014         * doc/tm.texi: Regenerated.
19016 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
19018         * builtins.c (expand_builtin_return_addr): Add
19019         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19020         surrounding #ifdef.
19021         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19022         definition to 1.
19023         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19024         Likewise.
19025         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19026         undefined.
19027         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19028         paragraph.
19030 2015-03-03  Martin Jambor  <mjambor@suse.cz>
19031             Eric Botcazou  <ebotcazou@adacore.com>
19033         * tree-sra.c (ipa_sra_check_caller_data): New type.
19034         (has_caller_p): Removed.
19035         (ipa_sra_check_caller): New function.
19036         (ipa_sra_preliminary_function_checks): Use it.
19038 2015-03-03  Martin Liska  <mliska@suse.cz>
19040         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19041         instead of if branch.
19043 2015-03-03  Martin Liska  <mliska@suse.cz>
19045         PR ipa/65282
19046         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19048 2015-03-23  Jeff Law  <law@redhat.com>
19050         PR tree-optimization/65241
19051         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19052         hash table if INSERT is true.
19054 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19056         PR target/65296
19057         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19059 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19061         PR target/64331
19062         * config/avr/avr.c (context.h, tree-pass.h): Include them.
19063         (avr_pass_data_recompute_notes): New static variable.
19064         (avr_pass_recompute_notes): New class.
19065         (avr_register_passes): New static function.
19066         (avr_option_override): Call it.
19068 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
19070         Fix various problems with specs file generation.
19072         PR target/65296
19073         * config.gcc (extra_gcc_objs) [avr]: Remove.
19074         * config/avr/driver-avr.c: Remove file.
19075         * config/avr/t-avr (driver-avr.o): Remove rule.
19076         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19077         INCLUDES to build.  Depend on TM_H.
19078         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
19079         build warnings.  Fix non-matching types and non-existing %-codes.
19080         (tm.h): Include.
19081         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19082         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19083         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19084         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19085         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19086         (LIBGCC_SPEC): Remove definitions.
19088 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
19090         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19091         to create a register in testing mode.
19093 2015-03-03  Martin Liska  <mliska@suse.cz>
19094             Jan Hubicka  <hubicka@ucw.cz>
19096         PR ipa/65263
19097         * cgraph.c (cgraph_node::has_thunk_p): New function.
19098         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19099         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19100         (sem_function::merge): Assert is changed.
19102 2015-03-03  Martin Liska  <mliska@suse.cz>
19103             Martin Jambor  <mjambor@suse.cz>
19105         PR ipa/65087
19106         * ipa-icf.c (sem_item_optimizer::execute): Change function
19107         return value to boolean.
19108         (sem_item_optimizer::merge_classes): Likewise.
19109         (ipa_icf_driver): Return TODO_remove_functions in case there's
19110         a merge operation processed.
19111         * ipa-icf.h: Change function return value to boolean.
19113 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
19115         PR 65138/target
19116         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19117         processor type for 64-bit little endian PowerPC.
19119         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19120         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
19121         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
19122         printing built-in mask so it does not pass NULL pointers.
19124         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19125         -mcpu=powerpc64le.
19127 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
19129         PR target/58158
19130         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19131         !ISA_HAS_FP_CONDMOVE.
19133 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
19135         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19136         reload_completed.
19138 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
19140         * doc/invoke.texi (Options for Code Generation Conventions):
19141         Fix URL of DSO paper.
19143 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19145         PR ipa/65130
19146         * ipa-inline.c (check_callers): Looks for recursion.
19147         (inline_to_all_callers): Give up on uninlinable or recursive edges.
19148         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19149         summary of inline clones.
19150         (do_estimate_growth_1): Fix recursion check.
19152 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19154         PR ipa/64988
19155         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19156         comdat groups.
19158 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
19159             Aldy Hernandez  <aldyh@redhat.com>
19161         PR lto/65276
19162         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19163         when checking TYPE_BINFO.
19165 2015-03-02  Richard Biener  <rguenther@suse.de>
19167         PR ipa/65270
19168         * ipa-icf-gimple.c: Include builtins.h.
19169         (func_checker::compare_memory_operand): Compare base alignment.
19171 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19173         PR target/65184
19174         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19175         are never passed by reference.
19177 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
19179         PR target/65183
19180         * tree-chkp.c (chkp_check_lower): Don't check against
19181         zero bounds for already instrumented functions.
19182         (chkp_check_upper): Likewise.
19183         (chkp_fini): Clean pass local data to avoid wrong reusage.
19185 2015-02-28  Martin Liska  <mliska@suse.cz>
19186             Jan Hubicka  <hubicka@ucw.cz>
19188         * ipa-icf.c (sem_variable::equals): Improve debug output;
19189         get variable constructor.
19190         (sem_variable::parse): Do not filter out too early; give up on
19191         volatile and register vars.
19192         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19193         variables.
19194         * ipa-icf.h (sem_variable::init): Do not set ctor.
19195         (sem_variable::ctor): Remove.
19197 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
19199         PR middle-end/65233
19200         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19202 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19204         * ipa-icf.c: Include stor-layout.h
19205         (sem_function::compare_cgraph_references): Rename to ...
19206         (sem_item::compare_cgraph_references): ... this one.
19207         (sem_variable::equals_wpa): New function
19208         (sem_variable::equals): Do not check stuff already verified by
19209         equals_wpa.
19210         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19211         * ipa-icf.h (sem_item): Add compare_cgraph_references.
19212         (sem_function): Remove compare_cgraph_references.
19213         (sem_variable): Turns equals_wpa into non-inline.
19215 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19217         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19218         (sem_item::add_expr): New function.
19219         (sem_function::hash_stmt): Handle operands of most statements.
19220         (sem_variable::get_hash): Hash the actual constructor.
19221         * ipa-icf.h (sem_item): Add add_expr.
19222         (sem_function): Update prototype of hash_stmt
19224 2015-02-28  Martin Liska  <mliska@suse.cz>
19225             Jan Hubicka  <hubicka@ucw.cz>
19227         PR ipa/65245
19228         * ipa-icf-gimple.c (func_checker::compare_function_decl):
19229         Remove.
19230         (func_checker::compare_variable_decl): Skip symtab vars.
19231         (func_checker::compare_cst_or_decl): Update.
19232         * ipa-icf.c (sem_function::parse): Do not consider aliases.
19233         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19234         use correct symtab predicates.
19235         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19236         (sem_variable::parse):  Update comment.
19237         (sem_item_optimizer::build_graph): Consider ultimate aliases
19238         for references.
19240 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19242         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19243         of OBJ_TYPE_REF.
19245 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19247         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19248         (sem_variable::merge) Likewise.
19250 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19252         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19253         target; also match flag_ipa_devirt.
19255 2015-03-01  Martin Liska  <mliska@suse.cz>
19256             Jan Hubicka  <hubicka@ucw.cz>
19258         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19259         Validate variable alignment.
19260         * ipa-icf.c (sem_function::equals_private): Be more precise
19261         about non-common function attributes.
19262         (sem_variable::equals): Likewise.
19264 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19266         PR ipa/65237
19267         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19268         across COMDAT group boundary.
19270 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19272         PR ipa/65232
19273         * ipa-icf.c (clear_decl_rtl): New function.
19274         (sem_function::merge): Clear RTL before forming alias.
19275         (sem_variable::merge): Clear RTL before forming alias.
19277 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
19279         PR ipa/65236
19280         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19282 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
19284         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19285         to neon_to_gp<q>.
19287 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19289         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19290         a typo in the description.
19292 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19294         PR target/64317
19295         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19296         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19297         * lra-constraints.c: Include "params.h".
19298         (EBB_PROBABILITY_CUTOFF): Use
19299         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19300         (lra_inheritance): Use '<' instead of '<=' for
19301         EBB_PROBABILITY_CUTOFF.
19302         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19303         Document change.
19305 2015-02-27  Martin Liska  <mliska@suse.cz>
19307         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19308         vector length condition.
19310 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
19312         * doc/extend.texi (x86 transactional memory intrinsics):
19313         Reorganize discussion of _xbegin.  Clarify that the return
19314         value is a bit mask.  Expand example and move to end of section.
19316 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19317             Aldy Hernandez  <aldyh@redhat.com>
19319         PR rtl-optimization/65220
19320         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19322 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19324         PR target/65032
19325         * lra-remat.c (update_scratch_ops): New.
19326         (do_remat): Call it.
19327         * lra.c (lra_register_new_scratch_op): New. Take code from ...
19328         (remove_scratches): ... here.
19329         * lra-int.h (lra_register_new_scratch_op): New prototype.
19331 2015-02-27  Marek Polacek  <polacek@redhat.com>
19333         PR c/65040
19334         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19335         -Wformat-signedness anymore.
19337 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19339         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19340         function.
19341         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19343 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19345         * config/s390/s390.c (enum s390_builtin):
19346         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19347         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19348         (s390_init_builtins): Generate new builtin functions.
19349         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19350         (s390_sfpc, s390_efpc): New pattern definitions.
19352 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19354         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19355         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19356         (s390_builtin_decls): New array.
19357         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19358         (s390_builtin_decl): New function.
19359         (TARGET_BUILTIN_DECL): Define macro.
19361 2015-02-27  Richard Biener  <rguenther@suse.de>
19363         PR middle-end/63175
19364         * builtins.c (get_object_alignment_2): Make sure to re-apply
19365         the ANDed mask after recursing to its operand gets us a new
19366         misalignment bit position.
19368 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
19369             Martin Liska  <mliska@suse.cz>
19371         PR bootstrap/65150
19372         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19373         Use address_matters_p.
19374         (redirect_all_callers, set_addressable): New functions.
19375         (sem_function::merge): Reorganize and fix merging issues.
19376         (sem_variable::merge): Likewise.
19377         (sem_variable::compare_sections): Remove.
19378         * common.opt (fmerge-all-constants, fmerge-constants): Remove
19379         Optimization flag.
19380         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19381         redirect them.
19382         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19383         decl is used.
19384         (address_matters_1): New function.
19385         (symtab_node::address_matters_p): New function.
19386         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19387         check for merged flag.
19388         * cgraph.h (address_matters_p): Declare.
19389         (symtab_node::address_taken_from_non_vtable_p): Remove.
19390         (symtab_node::address_can_be_compared_p): New method.
19391         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19392         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19393         Remove.
19394         (comdat_can_be_unshared_p_1) Use address_matters_p.
19395         (update_vtable_references): Fix formating.
19396         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19397         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19398         * cgraphclones.c: Preserve merged and icf_merged flags.
19400 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
19402         * doc/extend.texi (Function Attributes): Fix spelling and typos.
19403         (Label Attributes): Likewise.
19404         (Cilk Plus Builtins): Likewise.
19405         (ARC SIMD Built-in Functions): Likewise.
19406         (ARM C Language Extensions (ACLE)): Likewise.
19407         (PowerPC Built-in Functions): Likewise.
19408         (PowerPC Hardware Transactional Memory Built-in Functions):
19409         Likewise.
19411 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19413         PR tree-optimization/65216
19414         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19415         new stmt and new SSA_NAME for lhs whenever the arguments have
19416         changed and weren't just swapped.  Fix comment typo.
19418         PR tree-optimization/65215
19419         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19420         for PDP endian targets.
19421         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19422         Fix up formatting issues.
19423         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
19424         size is smaller than the original, adjust MEM_REF offset by the
19425         difference of sizes.  Use is_gimple_mem_ref_addr instead of
19426         is_gimple_min_invariant test to avoid adding address temporaries.
19428 2015-02-26  Martin Liska  <mliska@suse.cz>
19429             Jan Hubicka  <hubicka@ucw.cz>
19431         PR ipa/64693
19432         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19433         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19434         (sem_item_optimizer::process_cong_reduction): Include division by
19435         sensitive references.
19436         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19437         * ipa-ref.c (ipa_ref::address_matters_p): New function.
19438         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19440 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
19442         PR target/65192
19443         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19444         Remove.
19445         * config/avr/avr.c: Same.
19446         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19447         Refuse any constant address not in 0..0xbf.
19448         * config/avr/avr.md (*mov<mode>, *movsf): Remove
19449         tiny_valid_direct_memory_access_range from insn conditions.
19450         (mov<mode>): Don't special-case expansion of avrtiny addresses.
19452 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
19454         PR target/61142
19455         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19456         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19457         * config/sh/predicates.md (const_logical_operand): New predicate.
19458         * config/sh/sh.md: Add new peephole2 patterns.
19460 2015-02-26  Marek Polacek  <polacek@redhat.com>
19462         PR ipa/65008
19463         * ipa-inline.c (early_inliner): Recompute inline parameters.
19465 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19467         PR target/65171
19468         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19469         instructions with TImode operands are included in the analysis.
19471 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
19473         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19474         of an EDGE_FSM_THREAD.
19476 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19478         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19480 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
19482         PR debug/46102
19483         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19485 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
19487         PR tree-optimization/65048
19488         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19489         (thread_through_all_blocks): Call valid_jump_thread_path.
19490         Remove invalid FSM jump-thread paths.
19492 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19494         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19495         (ipa_write_optimization_summaries): Likewise.
19496         * tree-streamer.h: Include data-streamer.h.
19497         (streamer_mode_table): Declare extern variable.
19498         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19499         * lto-streamer-out.c (lto_output_init_mode_table,
19500         lto_write_mode_table): New functions.
19501         (produce_asm_for_decls): Call lto_write_mode_table when streaming
19502         offloading LTO.
19503         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19504         (lto_create_simple_input_block): Add mode_table argument to the
19505         lto_input_block constructors.
19506         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19507         Likewise.
19508         * data-streamer-in.c (string_for_index): Likewise.
19509         * ipa-inline-analysis.c (inline_read_section): Likewise.
19510         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19511         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19512         * lto-streamer-in.c (lto_read_body_or_constructor,
19513         lto_input_toplevel_asms): Likewise.
19514         (lto_input_mode_table): New function.
19515         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19516         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19517         Use bp_pack_machine_mode.
19518         * real.h (struct real_format): Add name field.
19519         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19520         (class lto_input_block): Add mode_table member.
19521         (lto_input_block::lto_input_block): Add mode_table_ argument,
19522         initialize mode_table.
19523         (struct lto_file_decl_data): Add mode_table field.
19524         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19525         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19526         unpack_ts_decl_common_value_fields,
19527         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19528         * tree-streamer.c (streamer_mode_table): New variable.
19529         * real.c (ieee_single_format, mips_single_format,
19530         motorola_single_format, spu_single_format, ieee_double_format,
19531         mips_double_format, motorola_double_format,
19532         ieee_extended_motorola_format, ieee_extended_intel_96_format,
19533         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19534         ibm_extended_format, mips_extended_format, ieee_quad_format,
19535         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19536         decimal_single_format, decimal_double_format, decimal_quad_format,
19537         ieee_half_format, arm_half_format, real_internal_format): Add name
19538         field.
19539         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19541 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
19543         PR target/65161
19544         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19545         reordering for selective scheduling.
19547 2015-02-26  Terry Guo  <terry.guo@arm.com>
19549         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19550         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19551         (arm_arch_no_volatile_ce): Declare new global variable.
19552         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19553         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19554         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19555         (TARGET_NO_VOLATILE_CE): New macro.
19556         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19557         volatile memory access in IT block
19559 2015-02-25  Kai Tietz  <ktietz@redhat.com>
19561         PR tree-optimization/61917
19562         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19563         that reduc_def_stmt is null.
19565 2015-02-25  Martin Liska  <mliska@suse.cz>
19567         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19568         hard register variables.
19570 2015-02-25  Kai Tietz  <ktietz@redhat.com>
19572         PR target/64212
19573         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19574         (symtab::noninterposable_alias): Likewise.
19576 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19578         PR target/65167
19579         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19580         bounds registers.
19581         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19583 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
19585         PR target/64997
19586         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19587         as split condition; force split via '#' in output pattern.
19589 2015-02-25  Richard Biener  <rguenther@suse.de>
19590             Kai Tietz  <ktietz@redhat.com>
19592         PR tree-optimization/61917
19593         * tree-vect-loop.c (vectorizable_reduction): Allow
19594         vect_internal_def without reduction to exit graceful.
19596 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
19598         PR target/65196
19599         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19600         only with NONDEBUG_INSN_P.
19602 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
19604         Use variadic macros with avr-log.c.
19606         * config/avr/avr-protos.h (avr_vdump): New prototype.
19607         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19608         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19609         * config/avr/avr-log.c: Adjust comments.
19610         (avr_vdump): New function.
19611         (avr_vadump): Pass caller as 2nd argument instead of format string.
19612         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19613         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19615 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
19617         PR lto/64374
19618         * target.def (target_option_stream_in): New target hook.
19619         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19620         targetm.target_option.post_stream_in if non-NULL.
19621         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19622         * doc/tm.texi: Updated.
19623         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19624         function.
19625         (TARGET_OPTION_POST_STREAM_IN): Redefine.
19627 2015-02-24  Jeff Law  <law@redhat.com>
19629         PR target/65117
19630         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19631         of operand 0 and operand 2.
19632         (zero_cost_loop_end, loop_end): Similarly.
19634 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
19636         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19637         CXX_MEM_STAT_INFO.
19639 2015-02-24  DJ Delorie  <dj@redhat.com>
19641         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19642         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19643         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19644         instead of hardcoding SImode.
19646 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
19648         * omp-low.c (create_omp_child_function): Tag entrypoint
19649         functions with a special attribute.
19651 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19653         PR target/65058
19654         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19656 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
19658         PR rtl-optimization/65123
19659         * lra-remat.c (operand_to_remat): Check hard regs in insn
19660         definition too.
19662 2015-02-24  Nick Clifton  <nickc@redhat.com>
19664         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19665         to the assembler.
19667 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
19669         PR libgomp/64625
19670         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19671         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19672         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19673         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19674         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19675         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19676         (BUILT_IN_GOACC_PARALLEL): Specify as
19677         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19678         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19679         * builtin-types.def
19680         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19681         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19682         Remove function types.
19683         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19684         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19685         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19686         New function types.
19688 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
19690         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19692 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
19694         PR tree-optimization/65170
19695         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19696         if val[1] < 0, clear also val[2] and return 3.
19698 2015-02-24  Alan Modra  <amodra@gmail.com>
19700         PR target/65172
19701         * config/rs6000/rs6000.c (get_memref_parts): Only return true
19702         when *base is a reg.  Handle nested plus addresses.  Simplify
19703         pre_modify test.
19705 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
19707         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19708         use natural alignment when optimizing for size.
19710 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
19712         PR target/65153
19713         * config/sh/sh.md (movsicc_true+3): Remove peephole.
19714         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19715         * config/sh/sh.c (replace_n_hard_rtx): Remove.
19717 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
19719         PR fortran/63427
19720         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19721         too big for a wide_int.  Implement missing wrapping operation.
19723 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
19725         PR target/65163
19726         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19727         instead of const_int 4294901760.
19729 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
19731         * config/avr/t-avr: Fix typo in comment.
19733 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
19735         * doc/rtl.texi (fma): Clarify documentation.
19737 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
19739         PR debug/58123
19740         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19741         over input_location.
19743 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19745         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19746         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19747         restrict alignments to absolute_biggest_alignment.
19748         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19749         Define.
19750         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19751         * doc/tm.texi: Regenerate.
19752         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19754 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
19756         PR target/64172
19757         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19759 2015-02-20  Richard Biener  <rguenther@suse.de>
19761         PR tree-optimization/65136
19762         * tree-ssa-propagate.c: Include cfgloop.h.
19763         (replace_phi_args_in): Avoid replacing loop latch edge PHI
19764         arguments with constants.
19766 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
19767             Martin Liska  <mliska@suse.cz>
19769         PR target/63892
19770         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
19771         don't try to create_thunk if stdarg_p.  If
19772         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
19773         redirect_callers if possible.
19774         (sem_item_optimizer::execute): Call unregister_hooks here...
19775         (ipa_icf_driver): ... instead of here.
19777 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19779         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
19780         Mark operand 0 as earlyclobber in 2nd alternative.
19781         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
19782         Write negated shift amount into QI lowpart operand 0 and use it
19783         in the shift step.
19784         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19786 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19788         * cgraph.h (clone_function_name_1): Declare.
19789         * cgraphclones.c (clone_function_name_1): New function.
19790         (clone_function_name): Use it.
19791         * lto-partition.c: Include "stringpool.h".
19792         (must_not_rename, maybe_rewrite_identifier)
19793         (validize_symbol_for_target): New static functions.
19794         (privatize_symbol_name): Use must_not_rename.
19795         (promote_symbol): Call validize_symbol_for_target.
19796         (lto_promote_cross_file_statics): Likewise.
19797         (lto_promote_statics_nonwpa): Likewise.
19799 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
19801         PR target/64452
19802         * config/avr/avr.md (pushhi_insn): New insn.
19803         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
19805 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19806             Jakub Jelinek  <jakub@redhat.com>
19808         * tree-streamer.c (preload_common_nodes): Don't preload
19809         TI_VA_LIST* for offloading.
19810         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
19811         in_lto_p.
19813 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
19815         * config/pa/pa.c (pa_emit_move_sequence): Always force
19816         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
19817         note on insn.
19819         * config/pa/pa.c (pa_reloc_rw_mask): New function.
19820         (TARGET_ASM_RELOC_RW_MASK): Define.
19821         (pa_cannot_force_const_mem): Revert previous change.
19823 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
19824             Jan Hubicka  <hubicka@ucw.cz>
19826         PR ipa/65028
19827         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
19828         across jump functions.
19830 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
19832         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
19834 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
19836         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
19838 2015-02-19  Richard Henderson  <rth@redhat.com>
19840         PR middle-end/65074
19841         * varasm.c (default_binds_local_p_2): Don't test node->definition;
19842         test DECL_EXTERNAL independent of symtab_node.
19844 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
19846         PR lto/65012
19847         * varpool.c (varpool_node::get_constructor): Return early
19848         if this->lto_file_data is NULL.
19850 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19852         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
19853         (rank_for_schedule_debug): Update.
19854         (ready_sort): Make static.  Move sorting logic to ...
19855         (ready_sort_debug, ready_sort_real): New static functions.
19856         (schedule_block): Sort both debug insns and real insns in preparation
19857         for ready list trimming.  Improve debug output.
19858         * sched-int.h (ready_sort): Remove global declaration.
19860 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
19862         * ipa-icf.c (sem_function::equals_private): Adjust.
19863         (sem_function::bb_dict_test): Take a vec<int> * instead of
19864         auto_vec<int>.
19865         * ipa-icf.h (bb_dict_test): Likewise.
19867 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19869         PR gcov-profile/64634
19870         * tree-eh.c (frob_into_branch_around): Fix up typos
19871         in function comment.
19872         (lower_catch): Put eh_seq resulting from EH lowering of
19873         the cleanup sequence after the cleanup rather than before it.
19875 2015-02-18  Tom de Vries  <tom@codesourcery.com>
19877         * common.opt (fstdarg-opt): New option.
19878         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
19879         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
19880         (@item -fstdarg-opt): New item.
19882 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19884         PR target/65064
19885         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
19886         for common symbols.
19888 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19890         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
19891         insn-modes.h.
19892         (ALL_HOST_OBJS): Add mkoffload.o.
19893         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
19895 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
19897         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
19898         (compare_virtual_tables): Be smarter about skipping typeinfos;
19899         do sane output on virtual table table mismatch.
19900         (warn_odr): Be ready for forward declarations of enums;
19901         output sane info on base mismatch and virtual table mismatch.
19902         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
19903         when only one type is polymorphic.
19904         (get_odr_type): Fix hashtable corruption.
19905         (dump_odr_type): Dump mangled names.
19907 2015-02-18  Richard Biener  <rguenther@suse.de>
19909         PR tree-optimization/65063
19910         * tree-predcom.c (determine_unroll_factor): Return 1 if we
19911         have replaced looparound PHIs.
19913 2015-02-18  Martin Liska  <mliska@suse.cz>
19915         * lto-streamer.c (lto_streamer_init): Encapsulate
19916         streamer_check_handled_ts_structures with checking macro.
19918 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19920         PR ipa/65087
19921         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
19922         section if !implicit_section.
19923         (cgraph_node::create_version_clone_with_body): Likewise.
19924         * trans-mem.c (ipa_tm_create_version): Likewise.
19926 2015-02-18  Richard Biener  <rguenther@suse.de>
19928         PR tree-optimization/62217
19929         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
19930         into BIVs.
19932 2015-02-18  Marek Polacek  <polacek@redhat.com>
19934         PR sanitizer/65081
19935         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
19936         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
19937         is in range [-16K, -1].  Don't issue run-time error if
19938         (ptr > ptr + offset).
19940 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
19942         * doc/install.texi (nvptx-*-none): New section.
19943         * doc/invoke.texi (Nvidia PTX Options): Likewise.
19944         * config/nvptx/nvptx.opt: Update.
19946         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
19947         (access_check): New functions, copied from
19948         config/i386/intelmic-mkoffload.c.
19949         (main): For non-installed testing, look in all COMPILER_PATHs for
19950         GCC_INSTALL_NAME.
19952         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
19954 2015-02-18  Andrew Pinski  <apinski@cavium.com>
19955             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19957         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
19958         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
19960 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
19962         * ipa-visibility.c (function_and_variable_visibility): Only
19963         check locality if node is not already local.
19964         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19965         call_for_symbol_and_aliases instead of
19966         call_for_symbol_thunks_and_aliases.
19967         (ipa_inline): Likewise.
19968         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19969         first walk aliases.
19970         * ipa.c (symbol_table::remove_unreachable_nodes): Use
19971         call_for_symbol_and_aliases.
19972         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19973         (ipa_propagate_frequency_1): Use it; use opt_for_fn
19974         (ipa_propagate_frequency): Update.
19975         (ipa_profile): Add opt_for_fn gueards.
19977 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19979         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
19980         * doc/invoke.texi (SH options): Document it.
19981         * config/sh/sh.c (sh_insn_length_adjustment): Check
19982         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
19984 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
19986         * common.opt (fipa-cp-alignment): New.
19987         * ipa-cp.c (ipcp_store_alignment_results): Check
19988         flag_ipa_cp_alignment.
19989         * opts.c (default_options_table): Enable -fipa-cp-alignment for
19990         -O2.
19991         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
19992         * doc/invoke.texi: Document -fipa-cp-alignment.
19994 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19996         PR target/64793
19997         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
19998         to nil.  Adjust comments.
20000 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
20002         * ipa-visibility.c (function_and_variable_visibility): Only
20003         check locality if node is not already local.
20004         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20005         call_for_symbol_and_aliases instead of
20006         call_for_symbol_thunks_and_aliases.
20007         (ipa_inline): Likewise.
20008         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20009         first walk aliases.
20010         * ipa.c (symbol_table::remove_unreachable_nodes): Use
20011         call_for_symbol_and_aliases.
20012         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20013         (ipa_propagate_frequency_1): Use it; use opt_for_fn
20014         (ipa_propagate_frequency): Update.
20015         (ipa_profile): Add opt_for_fn guards.
20017 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
20019         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20020         skipping of "strange" tokens.
20022 2015-02-17  Jeff Law  <law@redhat.com>
20024         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
20025         obsolete comment.
20027 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
20029         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20030         as forcing a HARD_DEP between instructions, thereby
20031         disallowing rewriting to break dependencies.
20033 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
20035         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20036         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20037         variables in boundary that have no inlitalizer encoded and are
20038         not aliases.
20039         * varasm.c (default_binds_local_p_2): External definitions do not
20040         count as definitions here.
20042 2015-02-16  Jeff Law  <law@redhat.com>
20044         PR tree-optimization/64823
20045         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20046         statements.
20047         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20048         threading through blocks with PHIs, but no statements.
20049         (thread_through_normal_block): Distinguish between blocks where
20050         we did not process all the statements and blocks with no statements.
20052 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
20053             James Greenhalgh  <james.greenhalgh@arm.com>
20055         PR ipa/64963
20056         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20057         section if not linkonce.  Fix up formatting.
20058         (cgraph_node::create_version_clone_with_body): Copy section.
20059         * trans-mem.c (ipa_tm_create_version): Likewise.
20061 2015-02-16  Richard Biener  <rguenther@suse.de>
20063         PR tree-optimization/65077
20064         * tree-ssa-structalias.c (get_constraint_for_1): Handle
20065         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20066         (find_func_aliases): Allow float values to carry pointers again.
20068 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
20070         * doc/install.texi (Specific): Reorder targets list to put
20071         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
20072         from the top menu.
20074 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
20075             David Edelsohn  <dje.gcc@gmail.com>
20077         PR target/65058
20078         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20079         mapping class to external variable or function reference.
20080         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20081         mapping class.
20083 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
20085         PR target/53348
20086         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20087         ASM_WEAKEN_DECL if defined.
20089 2015-02-16  Richard Biener  <rguenther@suse.de>
20091         PR lto/65015
20092         * varasm.c (default_file_start): For LTO produced units
20093         emit <artificial> as file directive.
20095 2015-02-16  Richard Biener  <rguenther@suse.de>
20097         PR tree-optimization/63593
20098         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20099         stmts and releasing SSA names until...
20100         (execute_pred_commoning): ... after processing all chains.
20102 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
20104         PR ipa/65059
20105         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20106         external functions.
20108 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
20110         * doc/bugreport.texi: Adjust section titles throughout the file
20111         to use "Title Case".
20112         * doc/extend.texi: Likewise.
20113         * doc/gcov.texi: Likewise.
20114         * doc/implement-c.texi: Likewise.
20115         * doc/implement-cxx.texi: Likewise.
20116         * doc/invoke.texi: Likewise.
20117         * doc/objc.texi: Likewise.
20118         * doc/standards.texi: Likewise.
20119         * doc/trouble.texi: Likewise.
20121 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
20123         * cgraph.h (symtab_node::has_aliases_p): Simplify.
20124         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20125         * tree.c (lookup_binfo_at_offset): Make static.
20126         (get_binfo_at_offset): Do not shadow offset; add explanatory
20127         comment.
20129 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
20131         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20132         for all floading point loads and stores except those using a register
20133         index address.
20134         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20135         to a register.
20137 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
20139         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20140         (do_estimate_growth_1): Record if any uninlinable edge was seen.
20141         (estimate_growth): Handle uninlinable edges correctly.
20142         (check_callers): New.
20143         (growth_likely_positive): Handle aliases correctly.
20145 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
20147         * ipa-chkp.c: Use iterate_direct_aliases.
20148         * symtab.c (resolution_used_from_other_file_p): Move inline.
20149         (symtab_node::create_reference): Fix formating.
20150         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20151         (symtab_node::iterate_reference): Move inline.
20152         (symtab_node::iterate_referring): Move inline.
20153         (symtab_node::iterate_direct_aliases): Move inline.
20154         (symtab_node::used_from_object_file_p_worker): Inline into ...
20155         (symtab_node::used_from_object_file_p): ... this one; move inline.
20156         (symtab_node::call_for_symbol_and_aliases): Move inline;
20157         use iterate_direct_aliases.
20158         (symtab_node::call_for_symbol_and_aliases_1): New method.
20159         (cgraph_node::call_for_symbol_and_aliases): Move inline;
20160         use iterate_direct_aliases.
20161         (cgraph_node::call_for_symbol_and_aliases_1): New method.
20162         (varpool_node::call_for_node_and_aliases): Rename to ...
20163         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20164         use iterate_direct_aliases.
20165         (varpool_node::call_for_symbol_and_aliases_1): New method.
20166         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20167         (ipa_discover_readonly_nonaddressable_var): Update.
20168         * ipa-devirt.c: Fix formating.
20169         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20170         Move inline.
20171         (cgraph_node::call_for_symbol_and_aliases): Move inline.
20172         (cgraph_node::call_for_symbol_and_aliases_1): New function..
20173         * cgraph.h (used_from_object_file_p_worker): Remove.
20174         (resolution_used_from_other_file_p): Move inline.
20175         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20176         (symtab_node::iterate_reference): Move inline.
20177         (symtab_node::iterate_referring): Move inline.
20178         (symtab_node::iterate_direct_aliases): Move inline.
20179         (symtab_node::used_from_object_file_p_worker): Inline into ...
20180         (symtab_node::used_from_object_file_p): Move inline.
20181         * tree-emutls.c (ipa_lower_emutls): Update.
20182         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20183         (varpool_node::call_for_node_and_aliases): Remove.
20185 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
20187         PR tree-optimization/62209
20188         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20189         op == range->exp, insert seq and gimplified code after labels
20190         instead of after the phi.
20192 2015-02-13  Jeff Law  <law@redhat.com>
20194         PR bootstrap/65060
20195         Revert my change for tree-optimization/64823.
20197 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
20199         PR tree-optimization/65053
20200         * tree-ssa-phiopt.c (value_replacement): When moving assign before
20201         cond, either reset VR on lhs or set it to phi result VR.
20203 2015-02-13  Jeff Law  <law@redhat.com>
20205         PR tree-optimization/64823
20206         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20207         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20208         threading through blocks with PHIs, but no statements.
20209         (thread_through_normal_block): Distinguish between blocks where
20210         we did not process all the statements and blocks with no statements.
20212         PR rtl-optimization/47477
20213         * match.pd (convert (plus/minus (convert @0) (convert @1): New
20214         simplifier to narrow arithmetic.
20216 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
20218         PR ipa/65028
20219         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20220         polymorphic call info when type is not known to be preserved.
20222 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
20224         PR ipa/65028
20225         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20226         (inline_call): Use it.
20228 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
20230         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20231         GOMP_DEVICE_NVIDIA_PTX.
20233 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
20235         PR ipa/65034
20236         * stmt.c (emit_case_nodes): Use void_type_node instead of
20237         NULL_TREE as LABEL_DECL type.
20239 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
20241         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20242         constraints.
20243         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20244         symbolic references to data to be forced to constant memory on the
20245         SOM target.
20247 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
20249         PR tree-optimization/65002
20250         * tree-cfg.c (pass_data_fixup_cfg): Don't update
20251         SSA on start.
20252         * tree-sra.c (some_callers_have_no_vuse_p): New.
20253         (ipa_early_sra): Reject functions whose callers
20254         assume function is read only.
20256 2015-02-13  Richard Biener  <rguenther@suse.de>
20258         PR lto/65015
20259         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20260         for LTO produced CUs.
20262 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
20264         PR tree-optimization/64705
20265         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20266         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20267         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20268         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20269         expand_simple_operations.
20271 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
20272             Richard Henderson  <rth@redhat.com>
20274         PR rtl/32219
20275         * cgraphunit.c (cgraph_node::finalize_function): Set definition
20276         before notice_global_symbol.
20277         (varpool_node::finalize_decl): Likewise.
20278         * varasm.c (default_binds_local_p_2): Rename from
20279         default_binds_local_p_1, add weak_dominate argument.  Use direct
20280         returns instead of assigning to local variable.  Unify varpool and
20281         cgraph paths via symtab_node.  Reject undef weak variables before
20282         testing visibility.  Reorder tests for simplicity.
20283         (default_binds_local_p): Use default_binds_local_p_2.
20284         (default_binds_local_p_1): Likewise.
20285         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20286         via symtab_node.
20287         (default_elf_asm_output_external): Emit visibility when specified.
20289 2015-02-13  Alan Modra  <amodra@gmail.com>
20291         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20292         code setting up r11 for out-of-line fp restore.
20294 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
20296         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20297         (muser-mode): Likewise.
20299 2015-02-13  Alan Modra  <amodra@gmail.com>
20301         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20302         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20304 2015-02-12  David Howells  <dhowells@redhat.com>
20306         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20307         warning.
20308         * tree-ssa-uninit.c (dump_predicates): Likewise.
20309         * opts.c (print_filtered_help): Likewise.
20311 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
20313         * dwarf2out.c (output_die): Use "%s", name instead of name to
20314         avoid -Wformat-security warning.
20316         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20317         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20318         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20319         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20321 2015-02-12  Jason Merrill  <jason@redhat.com>
20323         * common.opt (-flifetime-dse): New.
20325 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
20327         PR sanitizer/65019
20328         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20330         PR tree-optimization/65014
20331         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20332         use original second operand of arg0 or arg1 instead of
20333         that adjusted by STRIP_NOPS.
20335 2015-02-11  Jeff Law  <law@redhat.com>
20337         PR target/63347
20338         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20339         that needs to be queued, just queue it for a single cycle.
20341 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
20343         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20344         bodies of thunks; comment on why.
20345         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20346         symbols are extern.
20348 2015-02-11  Richard Henderson  <rth@redhat.com>
20350         PR sanitize/65000
20351         * tree-eh.c (mark_reachable_handlers): Mark source and destination
20352         regions of __builtin_eh_copy_values.
20354 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20356         PR middle-end/65003
20357         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20358         ultimate alias is MEM with SYMBOL_REF satisfying
20359         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
20360         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20362 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
20364         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20365         "diagnostic-core.h".
20366         (main): Initialize progname, and call diagnostic_initialize.
20368         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20369         instead of __OPENMP_TARGET__.
20371         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20372         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20373         hard-coding PTX_ID.
20375 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
20377         * doc/sourcebuild.texi (pie_enabled): Document.
20379 2015-02-11  Martin Liska  <mliska@suse.cz>
20381         PR ipa/64813
20382         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20383         a return value for call to a function that is noreturn.
20385 2015-02-11  Richard Biener  <rguenther@suse.de>
20387         PR lto/65015
20388         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20389         and -fresolution.
20391 2015-02-11  Andrew Pinski  <apinski@cavium.com>
20393         PR target/64893
20394         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20395         Change the first argument type to size_type_node and add another
20396         size_type_node.
20397         (aarch64_simd_expand_builtin): Handle the new argument to
20398         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20399         print an out when the first two arguments are not
20400         nonzero integer constants.
20401         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20402         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20404 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20406         PR target/61925
20407         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20408         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20409         (ix86_set_current_function): Rewritten.
20410         (ix86_add_new_builtins): Temporarily clear current_target_pragma
20411         when creating builtin fndecls.
20413 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20415         PR ipa/65005
20416         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20417         function.
20418         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20419         have no comdat group.
20420         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20421         (lto_output_varpool_node): Always output alias info.
20422         (output_refs): Output refs of boundary aliases, too.
20423         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20424         (output_symtab): Output call eges in thunks in boundary.
20425         (get_alias_symbol): Remove.
20426         (input_node, input_varpool_node): Do not special case weakrefs.
20427         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20428         alias and thunks targets in the boundary; do not take removed symbols
20429         from their comdat groups.
20430         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20431         (cgraph_node::global_info): Remove.
20432         (cgraph_node::rtl_info): Look through aliases and thunks.
20433         * cgrpah.h (global_info): Remove.
20434         (non_local_p): Remove.
20436 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20437             Sandra Loosemore  <sandra@codesourcery.com>
20439         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20440         to inline asm.  List dialects in proper order.
20442 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20443             Sandra Loosemore  <sandra@codesourcery.com>
20445         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20447 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20449         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20450         modified) reference to Solaris.
20452 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
20454         * doc/extend.texi (Extended Asm): Fix typos.
20456 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
20458         PR sanitizer/65004
20459         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20461 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
20463         PR target/64661
20464         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20465         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20466         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20467         * config/sh/constraints.md (Ara, Add): New constraints.
20468         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20469         predicates.
20470         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20471         atomic_mem_operand_0.  Don't use force_reg on the memory address.
20472         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20473         Sra constraint.  Convert to insn_and_split.  Add workaround for
20474         PR 64974.
20475         (atomic_compare_and_swap<mode>_hard): Copy to
20476         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
20477         Use atomic_mem_operand_0 predicate.
20478         (atomic_compare_and_swap<mode>_soft_gusa,
20479         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20480         AraAdd constraints.
20481         (atomic_compare_and_swap<mode>_soft_tcb,
20482         atomic_compare_and_swap<mode>_soft_imask,
20483         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20484         atomic_mem_operand_0 predicate and SraSdd constraints.
20485         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20486         constraint.
20487         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20488         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
20489         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20490         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
20491         force_reg on the memory address.
20492         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20493         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20494         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20495         atomic_mem_operand_1 predicate and Sra constraint.
20496         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20497         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
20498         Use atomic_mem_operand_1 predicate.
20499         (atomic_<fetchop_name><mode>_hard): Copy to
20500         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
20501         Use atomic_mem_operand_1 predicate.
20502         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20503         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
20504         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
20505         insn_and_split.  Use atomic_mem_operand_1 predicate.
20506         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20507         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
20508         Use atomic_mem_operand_1 predicate.
20509         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20510         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
20511         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20512         in generated insn with original mem operand before emitting the insn.
20513         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20514         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20515         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20516         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20517         Use atomic_mem_operand_1 predicate and AraAdd constraints.
20518         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20519         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20520         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20521         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20522         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20523         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20524         atomic_not_fetch<mode>_soft_tcb,
20525         atomic_<fetchop_name>_fetch<mode>_soft_imask,
20526         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20527         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20528         Use atomic_mem_operand_1 predicate and SraSdd constraints.
20530 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
20532         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20533         and 3 earlyclobber operands.
20535 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20537         * common.opt (fstack-reuse): Mark as optimization.
20539 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20541         PR ipa/64982
20542         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20544 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
20546         PR tree-optimization/64326
20547         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20549 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
20551         PR gcov-profile/61889
20552         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20554 2015-02-10  Richard Biener  <rguenther@suse.de>
20556         PR tree-optimization/64995
20557         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20558         value we use is final.
20559         (visit_reference_op_store): Always valueize op.
20560         (visit_use): Properly valueize vuses.
20562 2015-02-10  Richard Biener  <rguenther@suse.de>
20564         PR tree-optimization/64909
20565         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20566         pass a scalar-stmt count estimate to the cost model.
20567         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20569 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
20571         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20572         enabled by default together with var-tracking.
20574 2015-02-10  Nick Clifton  <nickc@redhat.com>
20576         * config/rl78/rl78.c: Remove DIV attribute code accidentally
20577         included in previous rl78 commit.
20579 2015-02-10  Richard Biener  <rguenther@suse.de>
20581         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20582         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20583         return the bitpack.
20585 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
20587         PR gcov-profile/61889
20588         * config.in: regenerate.
20589         * configure.in: Likewise.
20590         * configure.ac: Check for ftw.h.
20591         * gcov-tool.c: Check for ftw.h before using nftw.
20593 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
20595         PR lto/64076
20596         * ipa-visibility.c (update_visibility_by_resolution_info): Only
20597         assert when not in lto mode.
20599 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20601         * ira-color.c (setup_left_conflict_sizes_p): Simplify
20602         initialization/assignment of conflict_size.
20604 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
20606         PR ipa/64978
20607         * ipa-cp.c (gather_caller_stats): Skip thunks.
20608         (propagate_constants_topo): Skip aliases.
20610 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
20612         PR target/64761
20613         * config/sh/sh.c (sh_option_override): Don't change
20614         -freorder-blocks-and-partition to -freorder-blocks even when
20615         unwinding is enabled.
20616         (sh_can_follow_jump): Return false if the followee jump is
20617         a crossing jump when -freorder-blocks-and-partition is specified.
20618         * config/sh/sh.md (*jump_compact_crossing): New insn.
20620 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20621             Kaz Kojima  <kkojima@gcc.gnu.org>
20623         PR target/64761
20624         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20625         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20626         (sh_can_redirect_branch): Rename to ...
20627         (sh_can_follow_jump): ... this.  Constify argument types.
20628         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20629         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20630         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20631         * doc/tm.texi: Regenerate.
20633 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
20635         PR sanitizer/64981
20636         * builtins.c (expand_builtin): Call targetm.expand_builtin
20637         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20639 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20641         PR ipa/61548
20642         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20644 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20646         PR ipa/63566
20647         * ipa-icf.c (set_local): New function.
20648         (sem_function::merge): Use it.
20650 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20652         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20653         (add_type_duplicate): Fix comparison of BINFOs.
20655 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20657         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20658         on getting VOID pointer.
20660 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
20662         PR target/64979
20663         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20664         va_list escapes.
20666 2015-02-09  Richard Biener  <rguenther@suse.de>
20668         * genmatch.c (replace_id): Copy expr_type.
20670 2015-02-09  Richard Biener  <rguenther@suse.de>
20672         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20673         (streamer_write_tree_bitfields): Declare.
20674         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20675         properly unpack padding.
20676         (unpack_value_fields): Inline ...
20677         (streamer_read_tree_bitfields): ... here.
20678         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20679         and properly add padding bits.
20680         (streamer_pack_tree_bitfields): Fold into ...
20681         (streamer_write_tree_bitfields): ... this new function,
20682         exposing the bitpack object.
20683         * lto-streamer-out.c (lto_write_tree_1): Call
20684         streamer_write_tree_bitfields.
20686 2015-02-09  Richard Biener  <rguenther@suse.de>
20688         PR tree-optimization/54000
20689         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20690         (struct ivopts_data): Add loop_loc member.
20691         (tree_ssa_iv_optimize_loop): Dump loop location.
20692         (create_new_ivs): Likewise, also dump number of IVs generated.
20694 2015-02-09  Martin Liska  <mliska@suse.cz>
20696         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20697         just if not yet registered.
20698         (ipa_icf_generate_summary): Register callgraph hooks.
20700 2015-02-08  Andrew Pinski  <apinski@cavium.com>
20702         * config/aarch64/aarch64.c (gty_dummy): Delete.
20704 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20706         PR ipa/63566
20707         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20708         (cgraph_node::local_p): Remove thunk related FIXME.
20710 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20712         PR ipa/63566
20713         * i386.c (ix86_function_regparm): Look through aliases to see if callee
20714         is local and optimized.
20715         (ix86_function_sseregparm): Likewise; also use target's SSE math
20716         settings; error out instead of silently generating wrong code
20717         on mismatches.
20718         (init_cumulative_args): Look through aliases.
20720 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20722         PR ipa/63566
20723         * ipa-split.c (execute_split_functions): Split if function has aliases.
20725 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20727         PR ipa/63566
20728         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20729         aliases before trying to expand it.
20730         (cgraph_node::expand_thunk): Fix formating.
20732 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
20734         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20735         (Using Assembly Language with C): Expand introduction.
20736         (Basic Asm): Copy-edit.  Add more information about uses of
20737         basic asm.
20738         (Extended Asm): Copy-edit.  Document new escape syntax and
20739         %l[label] syntax.
20740         (Global Reg Vars): Copy-edit.
20741         (Local Reg Vars): Likewise.
20743 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
20745         PR debug/2714
20746         PR bootstrap/64256
20747         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20748         (DBX_CONTIN_CHAR): Define.
20750 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
20751             Brian Rzycki  <b.rzycki@samsung.com>
20753         PR tree-optimization/64878
20754         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20755         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20756         Stop recursion at loop phi nodes after having visited a loop phi node.
20758 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20760         * toplev.c (process_options): Change flag_ipa_ra before creating
20761         optimization_{default,current}_node.
20763         PR ipa/64896
20764         * cgraphunit.c (cgraph_node::expand_thunk): If
20765         restype is not is_gimple_reg_type nor the thunk_fndecl
20766         returns aggregate_value_p, set restmp to a temporary variable
20767         instead of resdecl.
20769 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
20771         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
20773 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20775         PR target/64205
20776         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
20777         add a general secondary reload handler for SDmode, unless we have
20778         both read/write support for SDmode.
20780 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20782         PR middle-end/64937
20783         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
20784         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
20785         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
20786         1 before, push it to abstract_vec.
20787         (dwarf2out_abstract_function): Adjust caller.  Don't call
20788         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
20789         DECL_ABSTRACT_P flags for all abstract_vec elts.
20791 2015-02-06  Renlin Li  <renlin.li@arm.com>
20793         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
20794         complex gimple.
20795         * tree-ssa.c (execute_update_addresses_taken): Likewise.
20797 2015-02-06  Jeff Law  <law@redhat.com>
20799         PR target/64889
20800         * config/h8300/h8300.c (push): New argument "in_prologue".
20801         Pass "in_prologue" along to "F".
20802         (h8300_push_pop): Corresponding changes.
20803         (h8300_expand_prologue): Likewise.
20804         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
20806 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20808         PR rtl-optimization/64957
20809         PR debug/64817
20810         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
20811         IOR rather than for AND.
20813 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
20815         PR target/62631
20816         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
20817         of shift-add and (add + shift) operations.  Rename local variable.
20819 2015-02-05  Jeff Law  <law@redhat.com>
20821         PR target/17306
20822         * config/h8300/constraints.md (U): Correctly dectect
20823         "eightbit_data" memory addresses.
20824         * config/h8300/h8300.c (eightbit_constant_address_p): Also
20825         handle (const (plus (symbol_ref (x)))) where x is declared
20826         as an 8-bit data memory address.
20827         * config/h8300/h8300.md (call, call_value): Correctly detect
20828         "funcvec" functions.
20830         PR target/43264
20831         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
20832         24 to 28 bits for the H8/300.
20834 2015-02-06  Alan Modra  <amodra@gmail.com>
20836         PR target/64876
20837         * config/rs6000/rs6000.c (chain_already_loaded): New function.
20838         (rs6000_call_aix): Use it.
20840 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
20842         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
20843         check.
20845 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20847         * config/h8300/constraints.md ("U" constraint): Use strict
20848         variant of REG_OK_FOR_BASE_P after reload has started.
20850 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
20852         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
20853         define to zero if !TARGET_NEON.
20854         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
20856 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20857             Trevor Saunders  <tsaunders@mozilla.com>
20859         PR ipa/61548
20860         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
20862 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20864         PR ipa/61548
20865         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
20866         when removing varpool nodes.
20868 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20870         PR ipa/61548
20871         * varpool.c (varpool_node::remove): Fix order of variables.
20873 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20875         PR ipa/64686
20876         * ipa-inline.c (inline_small_functions): Fix ordering issue between
20877         speculation resolution and key updates.
20879 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20881         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
20882         about not letting any speculative edges unupdated.
20884 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20886         PR gcov/64123
20887         * gcov-io.c (gcov_var): Export.
20889 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20891         PR middle-end/64922
20892         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
20893         edges that become speculative.
20895 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20897         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
20898         or DW_LANG_Fortran08.
20899         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
20900         DW_LANG_Fortran08.
20901         (gen_compile_unit_die): Handle "GNU Fortran2003" and
20902         "GNU Fortran2008" language strings.
20903         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
20904         * langhooks.h (lang_GNU_Fortran): New prototype.
20905         * langhooks.c (lang_GNU_Fortran): New function.
20906         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
20907         lang_GNU_Fortran.
20909 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20911         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
20912         (RTX_OK_FOR_OLO10_P): Likewise.
20914 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20916         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
20918 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20920         PR middle-end/64922
20921         * gimple.c: Include gimple-ssa.h.
20922         (maybe_remove_unused_call_args): New function.
20923         * gimple.h (maybe_remove_unused_call_args): Declare.
20924         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
20925         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20926         * gimple-fold.c (gimple_fold_call): Likewise.
20928 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
20930         PR rtl-optimization/64905
20931         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
20932         pointer alignment if it isn't needed.
20934 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
20936         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
20937         cortex-a72.cortex-a53.
20938         * config/aarch64/aarch64-tune.md: Regenerate.
20939         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
20941 2015-02-04  Nick Clifton  <nickc@redhat.com>
20943         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
20944         inside a MEM.
20946 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20948         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
20949         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
20950         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
20951         of DEF_BUILTIN.
20952         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
20953         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
20954         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
20955         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
20956         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
20957         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
20958         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
20959         * tree-core.h (enum built_in_function): In between
20960         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
20961         for builtins that use DEF_BUILTIN_CHKP macro.
20963 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
20965         PR debug/64817
20966         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
20967         operands for tcc_comparison exprs.  Fix typos.
20969         PR debug/64817
20970         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
20971         of two XORs that have an intervening AND or IOR.
20973         PR debug/64817
20974         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
20975         simplification of XOR of AND to not allocate new rtx before
20976         committing to a simplification.
20978 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20980         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
20981         manual swaps in all peepholes.
20983 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20985         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
20986         of manual swapping implementation.
20987         (aarch64_expand_vec_perm_const_1): Likewise.
20989 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
20991         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
20992         (generic_addrcost_table): Remove NAMED_PARAM.
20993         (cortexa57_addrcost_table): Likewise.
20994         (xgene1_addrcost_table): Likewise.
20995         (generic_regmove_table): Likewise.
20996         (cortexa53_regmove_table): Likewise.
20997         (xgene1_regmove_table): Likewise.
20998         (generic_vector_table): Likewise.
20999         (cortexa57_vector_table): Likewise.
21000         (xgene1_vector_table): Likewise.
21001         (generic_tunings): Likewise.
21002         (cortexa53_tunings): Likewise.
21003         (cortexa57_tunings): Likewise.
21004         (xgene1_tunings): Likewise.
21006 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
21008         * config/arm/arm-cores.def: Add cortex-a72 and
21009         cortex-a72.cortex-a53.
21010         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21011         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21012         * config/arm/arm-tune.md: Regenerate.
21013         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21014         "cortex-a72.cortex-a53".
21015         * doc/invoke.texi (ARM Options/-mtune): Likewise.
21017 2015-02-04  Nick Clifton  <nickc@redhat.com>
21019         PR target/64408
21020         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21021         of accepted codes.
21022         (nonimmediate_di_operand): Likewise.
21024         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21025         prefixes of known F5 using MSP430 MCUs.
21027 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21029         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21030         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21031         instead of __builtin_sqrt.
21033 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
21035         * varasm.c (do_assemble_alias): Follow transparent alias
21036         chain for target.
21037         (default_assemble_visibility): Follow transparent alias
21038         chain for decl name.
21040 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21042         PR middle-end/62103
21043         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21044         to compute size of referenced value in the constant case.
21046 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
21048         PR rtl-optimization/64756
21049         * cse.c (invalidate_dest): New function.
21050         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
21051         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21052         invalidate and do not record it.
21054 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
21056         PR target/64660
21057         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21058         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21059         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21060         atomic_nand<mode>_soft_tcb): New insns.
21061         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21062         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21063         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21064         Split into atomic_not_fetchsi_hard if operands[0] is unused.
21065         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21066         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21067         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
21068         atomic_not<mode>_hard if operands[0] is unused.
21069         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21070         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21071         if operands[0] is unused.
21072         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
21073         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21074         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21075         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21076         unused.
21077         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
21078         into atomic_not<mode>_soft_tcb if operands[0] is unused.
21079         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21080         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21081         if operands[0] is unused.
21082         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
21083         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21084         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
21085         atomic_nand_fetchsi_hard if operands[0] is unused.
21086         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
21087         atomic_nand<mode>_hard if operands[0] is unused.
21088         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
21089         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21090         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
21091         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21092         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
21093         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21094         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21095         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21096         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
21097         atomic_not<mode>_hard if operands[0] is unused.
21098         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21099         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21100         unused.
21101         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
21102         into atomic_not<mode>_soft_tcb if operands[0] is unused.
21103         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
21104         atomic_nand<mode>_hard if operands[0] is unused.
21105         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
21106         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21108 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
21110         PR jit/64810
21111         * Makefile.in (GCC_OBJS): Add gcc-main.o.
21112         * gcc-main.c: New file, containing "main" taken from gcc.c.
21113         * gcc.c (do_self_spec): Free decoded_options.
21114         (class driver): Move declaration to gcc.h.
21115         (main): Move declaration and implementation to new file
21116         gcc-main.c.
21117         (driver_get_configure_time_options): New function.
21118         * gcc.h (class driver): Move this declaration here, from
21119         gcc.c.
21120         (driver_get_configure_time_options): New declaration.
21122 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
21124         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21125         cross-module inlining.
21126         * cgraph.h (cgraph_node): Add flag merged.
21127         * ipa-icf.c (sem_function::merge): Maintain it.
21129 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
21131         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21132         instead of OBJECT_P.
21134 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
21136         PR target/62631
21137         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21138         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21139         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21140         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21142 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
21144         PR other/63504
21145         * combine.c (reg_n_sets_max): New variable.
21146         (can_change_dest_mode, reg_nonzero_bits_for_combine,
21147         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21148         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21149         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21150         (rest_of_handle_combine): Initialize reg_n_sets_max.
21152 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
21154         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21155         if some always_inline was inlined, apply changes before inlining
21156         heuristically.
21158 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
21160         PR jit/64810
21161         * config/arm/arm.c (arm_option_override): Set
21162         arm_selected_arch/cpu/tune to NULL on entry.
21164 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
21165             Andrew Pinski  <pinskia@gcc.gnu.org>
21166             Jakub Jelinek  <jakub@gcc.gnu.org>
21168         PR target/64231
21169         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21170         integer typing for small model. Use IN_RANGE.
21172 2015-02-02  Richard Biener  <rguenther@suse.de>
21174         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21175         * tree-vrp.c (vrp_valueize_1): Likewise.
21177 2015-02-02  Alan Modra  <amodra@gmail.com>
21179         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21180         than mem for toc_restore.
21181         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21182         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21183         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21185 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
21187         PR target/64047
21188         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21189         explicit default options.
21191 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
21193         PR ipa/64872
21194         * ipa-utils.c (ipa_merge_profiles): Add release argument.
21195         * ipa-icf.c (sem_function::merge): Do not release body when merging.
21196         * ipa-utils.h (ipa_merge_profiles): Update prototype.
21198 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
21200         PR debug/64817
21201         * cfgexpand.c (deep_ter_debug_map): New variable.
21202         (avoid_deep_ter_for_debug): New function.
21203         (expand_debug_expr): If TERed SSA_NAME is in
21204         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21205         instead of trying to expand SSA_NAME's def stmt.
21206         (expand_debug_locations): When expanding debug bind
21207         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21208         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21209         value.
21210         (pass_expand::execute): Call avoid_deep_ter_for_debug on
21211         all debug bind stmts.  Delete deep_ter_debug_map after
21212         expand_debug_location if non-NULL and clear it.
21214 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
21216         PR target/64851
21217         * config/sh/sync.md (atomic_fetch_notsi_hard,
21218         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21219         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21220         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21221         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21222         atomic_not_fetch<mode>_soft_imask): New insns.
21224 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21226         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21227         (rank_for_schedule_debug): Split from ...
21228         (rank_for_schedule): ... this.
21229         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21230         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21232 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
21234         * doc/md.texi (Machine Constraints): Alphabetize table by target.
21235         * doc/extend.texi (x86 Variable Attributes): Move section to
21236         correct alphabetization after renaming.
21237         (x86 Type Attributes): Likewise.
21238         (Target Builtins): Re-alphabetize menu.
21239         (x86 Built-in Functions): Move section to correct alphabetization
21240         after renaming.
21241         (x86 transactional memory intrinsics): Likewise.
21242         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21243         and x86 Windows Options in table and menu.
21244         (x86 Options): Move section to correct alphabetization after
21245         renaming.
21246         (x86 Windows Options): Likewise.
21248 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
21250         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21251         preferred names of the architecture and its 32- and 64-bit
21252         variants.
21253         * doc/invoke.texi: Likewise.
21254         * doc/md.texi: Likewise.
21256 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
21258         PR target/64882
21259         * config/i386/predicates.md (address_no_seg_operand): Reject
21260         non-CONST_INT_P operands in invalid mode.
21262 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
21264         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21265         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
21266         * config/i386/predicates.md (address_no_seg_operand): Call
21267         address_operand with VOIDmode.
21268         (vsib_address_operand): Ditto.
21269         (address_mpx_no_base_operand): Ditto.
21270         (address_mpx_no_index_operand): Ditto.
21272 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21274         PR target/64688
21275         * lra-constraints.c (original_subreg_reg_mode): New.
21276         (simplify_operand_subreg): Try to simplify subreg of const.  Use
21277         original_subreg_reg_mode for it.
21278         (swap_operands): Update original_subreg_reg_mode.
21279         (curr_insn_transform): Set up original_subreg_reg_mode.
21281 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21283         PR target/64617
21284         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21285         function.
21286         (process_alt_operands): Use it.
21287         (curr_insn_transform): Check the optional reload pseudo class is
21288         ok for the mode.
21290 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
21292         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21293         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21294         prototype.
21295         * toplev.h (init_asm_output): Update comment on use of
21296         UNKNOWN_LOCATION with fatal_error.
21297         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21298         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21299         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21300         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21301         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21302         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21303         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21304         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21305         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21306         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21307         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21308         fatal_error changed to pass input_location as first argument.
21310 2015-01-30  Martin Liska  <mliska@suse.cz>
21312         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21313         in #pragma GCC diagnostic guards.
21315 2015-01-30  Richard Biener  <rguenther@suse.de>
21317         PR tree-optimization/64829
21318         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21319         not add a widening conversion pattern but hand off extra
21320         widenings to callers.
21321         (vect_recog_widen_mult_pattern): Handle extra widening produced
21322         by vect_handle_widen_op_by_const.
21323         (vect_recog_widen_shift_pattern): Likewise.
21324         (vect_pattern_recog_1): Remove excess vertical space in dumping.
21325         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21326         (vect_init_vector_1): Likewise.
21327         (vect_get_vec_def_for_operand): Likewise.
21328         (vect_finish_stmt_generation): Likewise.
21329         (vectorizable_load): Likewise.
21330         (vect_analyze_stmt): Likewise.
21331         (vect_is_simple_use): Likewise.
21333 2015-01-29  Jeff Law  <law@redhat.com>
21335         * combine.c (try_combine): Fix typo in comment.
21337 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
21339         PR target/64580
21340         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21341         (rs6000_stack_info): Add assert.
21342         (rs6000_output_savres_externs): New function, split off from...
21343         (rs6000_output_function_prologue): ... here.  Do not call it for
21344         thunks.
21346 2015-01-29  Jeff Law  <law@redhat.com>
21348         PR target/15184
21349         * combine.c (try_combine): If I0 is a memory load and I3 a store
21350         to a related address, increase the "goodness" of doing a 4-insn
21351         combination with I0-I3.
21352         (make_field_assignment): Handle SUBREGs in the ior+and case.
21354 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
21356         PR tree-optimization/64746
21357         * tree-if-conv.c (mask_exists): New function.
21358         (predicate_mem_writes): Save created mask with given size for further
21359         use.
21360         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21361         (ifcvt_repair_bool_pattern): Collect all statements that are root
21362         of bool pattern and use iterative algorithm to remove multiple uses
21363         of predicates, display number of required iterations.
21365 2015-01-29  Richard Biener  <rguenther@suse.de>
21367         PR tree-optimization/64853
21368         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21369         stmt will get simulated again.
21370         * tree-ssa-ccp.c (valueize_op_1): Likewise.
21372 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21374         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21375         return_in_pc.  Remove redundant assignments.
21376         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21377         (arm_expand_epilogue): Don't compare boolean with true in if condition.
21379 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
21381         * config/i386/i386.c (ix86_mode_after): Make static.
21383 2015-01-29  Richard Biener  <rguenther@suse.de>
21385         PR tree-optimization/64844
21386         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21387         dump cost model analysis.
21388         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21389         Do not register adjusted load/store costs here.
21391 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21392             Uros Bizjak  <ubizjak@gmail.com>
21394         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21395         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21396         using x86_use_pseudo_pic_reg.
21397         * config/i386/i386.c (ix86_conditional_register_usage): Remove
21398         support for fixed PIC register.
21399         (ix86_use_pseudo_pic_reg): Not static any more.
21401 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21403         PR middle-end/64805
21404         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21405         to avoid error in cgraph node verification.
21407 2015-01-29  Marek Polacek  <polacek@redhat.com>
21409         * doc/standards.texi: Reflect that the default for C is gnu11.
21411 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21413         PR target/64761
21414         * reorg.c (switch_text_sections_between_p): New function.
21415         (relax_delay_slots): Call it when testing if the jump insn
21416         is removable.  Use targetm.can_follow_jump when testing if
21417         the conditional branch can follow an unconditional jump.
21419 2015-01-27  Caroline Tice  <cmtice@google.com>
21421         Committing VTV Cywin/Ming patch for Patrick Wollgast
21422         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21423         if -fvtable-verify=preinit/std is used.
21424         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21425         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21426         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21427         if -fvtable-verify=preinit/std is used.
21428         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21429         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21430         if -fvtable-verify=preinit/std is used.
21431         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21432         * config/i386/mingw32.h (LIB_SPEC): Likewise.
21433         * varasm.c (assemble_variable): Add code to properly set the comdat
21434         section and name for the .vtable_map_vars section in case the
21435         target is PE or COFF.
21437 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
21439         PR ipa/64801
21440         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21441         make sane BB profile.
21442         (cgraph_node::expand_thunk): Make sane BB profile.
21443         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21444         * cgraph.h (init_lowered_empty_function): Update prototype.
21445         * config/i386/i386.c (make_resolver_func): Update call.
21446         * predict.c (gate): Disable branch prediction pass if
21447         profile is already there.
21449 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
21451         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21452         * opth-gen.awk: Likewise.
21453         * common.opt: Mark flag_fp_contract_mode as Optimization.
21455 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21457         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21458         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21460 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
21462         PR target/64659
21463         * config/sh/predicates.md (atomic_arith_operand,
21464         atomic_logical_operand): Remove.
21465         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21466         (atomic_arith_operand_0): New predicate.
21467         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21468         Use atomic_arith_operand_0 for input values.
21469         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21470         atomic_compare_and_swap<mode>_soft_gusa,
21471         atomic_compare_and_swap<mode>_soft_tcb,
21472         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21473         arith_reg_operand instead of register_operand.
21474         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
21475         atomic_arith_operand_0 for newval input.
21476         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21477         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21478         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21479         arith_reg_operand instead of register_operand.
21480         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21481         fetchop_predicate_1, fetchop_constraint_1_llcs,
21482         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21483         fetchop_constraint_1_imask): New code iterator attributes.
21484         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21485         register_operand.  Use fetchop_predicate_1.
21486         (atomic_fetch_<fetchop_name>si_hard,
21487         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21488         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21489         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21490         and arith_reg_operand instead of register_operand.  Use
21491         fetchop_predicate_1, fetchop_constraint_1_gusa.
21492         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21493         and arith_reg_operand instead of register_operand.  Use
21494         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
21495         to allow R0 usage.
21496         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21497         and arith_reg_operand instead of register_operand.  Use
21498         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
21499         to allow R0 usage.
21500         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21501         register_operand.  Use atomic_logical_operand_1.
21502         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21503         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21504         arith_reg_operand instead of register_operand.
21505         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21506         Use arith_reg_dest and arith_reg_operand instead of register_operand.
21507         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
21508         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21509         register_operand.  Use fetchop_predicate_1.
21510         (atomic_<fetchop_name>_fetchsi_hard,
21511         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21512         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21513         fetchop_constraint_1_llcs.
21514         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21515         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21516         fetchop_constraint_1_gusa.
21517         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21518         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21519         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
21520         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21521         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21522         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
21523         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21524         register_operand.  Use atomic_logical_operand_1.
21525         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21526         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21527         arith_reg_operand instead of register_operand.
21528         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21529         arith_reg_operand instead of register_operand.  Use logical_operand
21530         and K08.  Adjust asm sequence to allow R0 usage.
21531         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21532         arith_reg_operand instead of register_operand.  Use logical_operand
21533         and K08.
21535 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
21537         PR other/63504
21538         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21539         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21540         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21541         only get_full_len HOST_WIDE_INTs from get_val () array rather than
21542         all bits in *val_wide.
21544 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
21546         * varpool.c (tls_model_names): Fix names.
21547         (varpool_node::dump): Dump tls- prefix for tls models.
21549 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
21550             Bernd Schmidt  <bernds@codesourcery.com>
21551             Nathan Sidwell  <nathan@codesourcery.com>
21553         * config/nvptx/mkoffload.c: New file.
21554         * config/nvptx/t-nvptx: Add build rules for it.
21555         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21556         (extra_programs): Add mkoffload.
21557         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21558         function.
21559         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21561 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
21563         PR middle-end/64809
21564         * cfgexpand.c (reorder_operands): Skip debug gimples.
21566 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
21568         PR tree-optimization/64277
21569         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21570         range info when possible to refine estimation.
21572 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21574         PR tree-optimization/64718
21575         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21576         be a 16bit unsigned integer when n->range is 16.
21577         (bswap_replace): Convert src to that type if necessary for all bswap
21578         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
21579         set in pass_optimize_bswap::execute ().
21581 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
21583         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21584         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21585         integer and floating point variants.
21586         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21588 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
21590         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21591         for all vector modes.
21593 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
21595         PR bootstrap/64612
21596         * doc/sourcebuild.texi (comdat_group): Document.
21598 2015-01-28  Terry Guo  <terry.guo@arm.com>
21600         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21602 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
21604         * toplev.c (print_version): Add param "show_global_state", and
21605         only print GGC and plugin information if it is true.
21606         (init_asm_output): Pass in "true" for the new param when calling
21607         print_version.
21608         (process_options): Likewise.
21609         (toplev::main): Likewise.
21610         * toplev.h (print_version): Add new param to decl.
21612 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
21614         PR ipa/60871
21615         PR ipa/64139
21616         * tree.c (lookup_binfo_at_offset): New function.
21617         (get_binfo_at_offset): Use it.
21619 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
21621         PR ipa/64282
21622         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21623         on vtable being vtable.
21625 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21627         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21628         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21629         -mhotpatch= option.
21630         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21631         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
21632         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21633         Renamed.
21634         (s390_hotpatch_trampoline_halfwords_max): Renamed.
21635         (s390_hotpatch_hw_max): New name.
21636         (s390_hotpatch_trampoline_halfwords): Renamed.
21637         (s390_hotpatch_hw_before_label): New name.
21638         (get_hotpatch_attribute): Removed.
21639         (s390_hotpatch_hw_after_label): New name.
21640         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21641         attribute.
21642         (s390_attribute_table): Ditto.
21643         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21644         (s390_function_num_hotpatch_hw): New name.
21645         Remove special handling of inline functions and hotpatching.
21646         Return number of nops before and after the function label.
21647         (s390_can_inline_p): Removed.
21648         (s390_asm_output_function_label): Emit a configurable number of nops
21649         after the function label.
21650         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21651         (TARGET_CAN_INLINE_P) Removed.
21652         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21654 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21655             Jiong Wang  <jiong.wang@arm.com>
21657         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21658         of scratch reg.
21659         (cb<optab><mode>1): Likewise.
21660         * config/aarch64/iterators.md (bcond): New define_code_attr.
21662 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21664         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21665         memory accesses.
21667 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21669         * config/s390/s390.c (s390_register_move_cost): Increase costs for
21670         FPR->GPR moves.
21672 2015-01-27  Richard Biener  <rguenther@suse.de>
21674         * tree-vrp.c (update_value_range): Intersect the range with
21675         old recorded SSA name range information.
21677 2015-01-27  Nick Clifton  <nickc@redhat.com>
21679         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21680         BC, DE and HL registers directly, not via AX.
21681         When decrementing the stack pointer by a large amount, transfer SP
21682         into AX and perform the subtraction there.
21683         (rl78_expand_epilogue): Perform the inverse of the above
21684         enhancements.
21686 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21688         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21690 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21691             Yury Gribov  <y.gribov@samsung.com>
21693         PR ubsan/64741
21694         * ubsan.c (ubsan_source_location): Refactor code.
21695         (ubsan_type_descriptor): Update type size. Refactor code.
21697 2015-01-27  Richard Biener  <rguenther@suse.de>
21699         PR tree-optimization/56273
21700         PR tree-optimization/59124
21701         PR tree-optimization/64277
21702         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21703         from the first VRP pass.
21705 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21707         PR ipa/64776
21708         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21709         handle the first argument in the same loop as all the other arguments.
21711         PR rtl-optimization/61058
21712         * jump.c (cleanup_barriers): Update basic block boundaries
21713         if BLOCK_FOR_INSN is non-NULL on PREV.
21715 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
21717         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21718         bounds narrowing, already instrumented calls and calls to
21719         not instrumentable functions.
21721 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21723         PR tree-optimization/64807
21724         * wide-int.cc (wi::divmod_internal): Clear
21725         b_dividend[dividend_blocks_needed].
21727 2015-01-26  DJ Delorie  <dj@redhat.com>
21729         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21730         volatile memory references.
21732 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
21734         PR target/49263
21735         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21736         remove_insn.
21737         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21738         shifts if it already fits into K08.
21740 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21742         PR ipa/64730
21743         * ipa-inline.c (inline_small_functions): Print "unknown" even
21744         if edge->call_stmt is non-NULL, but has builtins or unknown
21745         location.
21747         PR middle-end/64421
21748         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21749         with asterisk, skip the first character.
21751 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21753         PR target/64806
21754         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21755         order change.
21757 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
21759         PR target/64795
21760         * config/i386/i386.md (*movdi_internal): Also check operand 0
21761         to determine TYPE_LEA operand.
21762         (*movsi_internal): Ditto.
21764 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21766         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21767         OPTION_MASK_QUAD_MEMORY_ATOMIC.
21769 2015-01-26  Renlin Li  <renlin.li@arm.com>
21771         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
21772         the comment.
21773         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
21774         for higher part.
21776 2015-01-26  Richard Biener  <rguenther@suse.de>
21778         PR middle-end/64764
21779         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
21780         combining two BIT_AND_EXPR predicates.
21782 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21784         PR bootstrap/64754
21785         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
21787 2015-01-26  Terry Guo  <terry.guo@arm.com>
21789         * config/arm/arm.c (arm_file_start): Update the assignment of
21790         Tag_ABI_HardFP_use.
21792 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
21794         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
21795         pipeline model.
21796         config/arm/arm.md: Include the new Cortex-A57 model.
21797         (generic_sched): Don't use generic_sched when tuning for
21798         Cortex-A57.
21800 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
21801             Uros Bizjak  <ubizjak@gmail.com>
21803         * config/i386/i386.c (get_builtin_code_for_version): Add
21804         support for BMI and BMI2 multiversion functions.
21806 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21808         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
21809         (extract_bit_field): Likewise.
21810         (extract_low_bits): Likewise.
21811         (expand_mult): Likewise.
21812         (expand_mult_highpart_adjust): Likewise.
21814 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21816         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
21817         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
21818         * config/i386/i386.c (processor_model): Add
21819         M_INTEL_COREI7_BROADWELL.
21820         (arch_names_table): Add "broadwell".
21822 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
21824         PR target/49263
21825         PR target/53987
21826         PR target/64345
21827         PR target/59533
21828         PR target/52933
21829         PR target/54236
21830         PR target/51244
21831         * config/sh/sh-protos.h
21832         (sh_extending_set_of_reg::can_use_as_unextended_reg,
21833         sh_extending_set_of_reg::use_as_unextended_reg,
21834         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
21835         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
21836         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
21837         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
21838         (sh_treg_insns): New class.
21839         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
21840         (scope_counter): New class.
21841         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
21842         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
21843         sh_extending_set_of_reg::can_use_as_unextended_reg,
21844         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
21845         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
21846         sh_split_treg_set_expr): New functions.
21847         (addsubcosts): Handle treg_set_expr.
21848         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
21849         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
21850         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
21851         (sh_insn_operands_modified_between_p): Make non-static.
21852         * config/sh/predicates.md (zero_extend_movu_operand): Allow
21853         simple_mem_operand in addition to displacement_mem_operand.
21854         (zero_extend_operand): Don't allow zero_extend_movu_operand.
21855         (treg_set_expr, treg_set_expr_not_const01,
21856         arith_reg_or_treg_set_expr): New predicates.
21857         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
21858         arith_or_int_operand instead of logical_operand.  Convert to
21859         insn_and_split.  Try to optimize constant operand in splitter.
21860         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
21861         (*tstqi_t_zero): Delete.
21862         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
21863         (tstsi_t_and_not): Delete.
21864         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
21865         Convert to insn_and_split.
21866         (unnamed split, tstsi_t_zero_extract_xor,
21867         tstsi_t_zero_extract_subreg_xor_little,
21868         tstsi_t_zero_extract_subreg_xor_big): Delete.
21869         (*tstsi_t_shift_mask): New insn_and_split.
21870         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
21871         to recombine with surrounding insns when splitting.
21872         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
21873         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
21874         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
21875         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
21876         (*cbranch_div0s: Delete.
21877         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21878         Try to recombine with surrounding insns when splitting.  Add operand
21879         order variants.
21880         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
21881         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
21882         *addc_r_r_msb, *addc_2r_msb): Delete.
21883         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
21884         order variant.
21885         (*addc_negreg_t): New insn_and_split.
21886         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21887         Try to recombine with surrounding insns when splitting.
21888         Add operand order variants.
21889         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
21890         insn_and_split patterns.
21891         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
21892         surrounding insns when splitting.
21893         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
21894         (*rotcl): Likewise.  Add zero_extract variant.
21895         (*ashrsi2_31): New insn_and_split.
21896         (*negc): Convert to insn_and_split.  Use treg_set_expr.
21897         (*zero_extend<mode>si2_disp_mem): Update comment.
21898         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
21899         condition.
21900         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
21901         with surrounding insns when splitting.
21902         (any_treg_expr_to_reg): New insn_and_split.
21903         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
21904         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
21905         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
21906         *zero_extract_2): New single bit zero extract patterns.
21907         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
21908         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
21909         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
21910         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
21911         set destination.
21912         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
21913         register_operand for set source.
21915 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
21917         * i386.opt (prefetch_sse): New targetsave.
21918         * i386.c (ix86_function_specific_save): Save prefetch_sse.
21919         (ix86_function_specific_restore): Restore prefetch_sse and initialize
21920         ix86_cost/ix86_tune_cost.
21922 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21924         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
21925         Support the JIT by using 0 as the language type.
21927 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
21929         PR target/64317
21930         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
21931         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
21932         (mark_regno_live, process_bb_lives): Pass new parameter value to
21933         make_hard_regno_born.
21935 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21937         PR rtl-optimization/63637
21938         PR rtl-optimization/60663
21939         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
21940         if elt->cost is MAX_COST for ASM_OPERANDS.
21941         (find_sets_in_insn): Fix up comment typo.
21942         (cse_insn): Don't set src_volatile for all non-volatile
21943         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
21944         or with "memory" clobber.  Set elt->cost to MAX_COST
21945         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
21946         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
21948 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21950         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
21951         alternative 1.
21953 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21955         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
21956         libgcc/config/i386/elf-lib.h.
21958 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21960         PR driver/64737
21961         * gcc.c (print_configuration): Don't print a blank line at the end
21962         here...
21963         (run_attempt): ... but here unstead.
21965         PR middle-end/64734
21966         * omp-low.c (scan_sharing_clauses): Don't ignore
21967         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
21968         on target data/update constructs.
21970 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21972         PR target/50928
21973         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
21974         (DEBUG_RELOAD): Removed define.
21975         (m32c_limit_reload_class): Enable traces with if DEBUG0.
21976         (m32c_function_arg): Added a type cast.
21977         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
21978         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
21979         * config/m32c/bitops.md (andqi3_16): Likewise.
21980         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
21981         (push_a01_l): Likewise.
21983 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21985         PR jit/64721
21986         * main.c (main): Construct toplev instances with init_signals=true.
21987         * toplev.c (general_init): Add param "init_signals", and use it to
21988         conditionalize the calls to signal and host_hooks.extra_signals.
21989         (toplev::toplev): Add param "init_signals".
21990         (toplev::main): When invoking general_init, pass m_init_signals
21991         to control whether signal-handlers are installed.
21992         * toplev.h (toplev::toplev): Add param "init_signals".
21993         (toplev::m_init_signals): New field.
21995 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21997         PR jit/64722
21998         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
21999         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22000         latter may be affected by the former (e.g. on i686).
22002 2015-01-23  Martin Liska  <mliska@suse.cz>
22004         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22005         false positive during profiledbootstrap.
22007 2015-01-23  Tom de Vries  <tom@codesourcery.com>
22009         PR libgomp/64672
22010         * lto-opts.c (lto_write_options): Output non-explicit conservative
22011         -fno-openacc.
22012         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22013         (append_compiler_options): Pass -fopenacc through.
22015 2015-01-23  Tom de Vries  <tom@codesourcery.com>
22017         PR libgomp/64707
22018         * lto-opts.c (lto_write_options): Output non-explicit conservative
22019         -fno-openmp.
22020         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22021         (append_compiler_options): Pass -fopenmp through.
22023 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
22025         PR debug/64511
22026         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22027         GTY markup.
22029         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22030         * diagnostic.def (DK_ICE_NOBT): New kind.
22031         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22032         like DK_ICE, but never print backtrace.
22033         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22034         (internal_error_no_backtrace): New function.
22035         * gcc.c (execute): Use internal_error_no_backtrace instead of
22036         internal_error.
22038 2015-01-22  Jeff Law  <law@redhat.com>
22040         PR target/52076
22041         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22042         improve code density for small immediate to memory case.
22043         (insv): Better handle bitfield assignments when the field is
22044         being set to all ones.
22045         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22046         operand predicate.
22048 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22049             Jakub Jelinek  <jakub@redhat.com>
22051         PR middle-end/64729
22052         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22053         for !TARGET_LIBC_PROVIDES_SSP version and
22054         -fstack-protector-{all,strong,explicit} otherwise.
22055         * config/freebsd.h (LINK_SSP_SPEC): Handle
22056         -fstack-protector-{strong,explicit}.
22058 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
22059             H.J. Lu  <hongjiu.lu@intel.com>
22061         PR ipa/64694
22062         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22063         heap.
22065 2015-01-22  Wei Mi  <wmi@google.com>
22067         PR rtl-optimization/64557
22068         * dse.c (record_store): Call get_addr for mem_addr.
22069         (check_mem_read_rtx): Likewise.
22071 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22073         * fold-const.c (const_binop): Add early return for non-tcc_binary.
22075 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
22077         * toplev.c (init_local_tick): Process the failure when read
22078         fails for random_seed.
22080         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22081         'pretty_name' to avoid memory overflow.
22083 2015-01-22  Richard Biener  <rguenther@suse.de>
22085         PR middle-end/64728
22086         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22087         abnormal coalescing on undefined SSA names.
22089 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
22091         PR target/64688
22092         PR target/64477
22093         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22094         for alternative 3.
22095         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22097 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
22099         PR middle-end/63325
22100         * fold-const.c (fold_checksum_tree): Don't include value of
22101         expr->decl_with_vis.symtab_node in the checksum.
22103 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22105         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22107 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
22109         PR driver/64690
22110         * gcc.c (insert_comments): New function.
22111         (try_generate_repro): Call it.
22112         (append_text): Removed.
22114 2015-01-22  Richard Biener  <rguenther@suse.de>
22116         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22117         with IL incompatible options.  Properly honor user optimize
22118         attributes.
22120 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
22122         PR rtl-optimization/64682
22123         * combine.c (distribute_notes): When moving a death note for
22124         a register that is set in the new I2, make sure to put it
22125         before that new I2.
22127 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
22129         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22130         not TARGET_DEFAULT.
22132 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
22134         PR debug/64511
22135         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22136         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22137         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22139         PR sanitizer/64706
22140         * doc/invoke.texi (-fsanitize=vptr): Document.
22142         PR rtl-optimization/62078
22143         * dse.c: Include cfgcleanup.h.
22144         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22145         anything call purge_all_dead_edges and cleanup_cfg at the end
22146         of the pass.
22148 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
22150         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22151         edges.
22153 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22155         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22156         decl attribute.
22158 2015-01-21  David Sherwood  <david.sherwood@arm.com>
22159             Tejas Belagod <Tejas.Belagod@arm.com>
22161         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22162         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22163         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22164         Removed.
22166 2015-01-21  David Sherwood  <david.sherwood@arm.com>
22167             Tejas Belagod <Tejas.Belagod@arm.com>
22169         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22170         (aarch64_reverse_mask): New decls.
22171         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22172         (insn_count): New mode_attr.
22173         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22174         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22175         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22176         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22177         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22178         (aarch64_simd_st4): New patterns.
22179         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22180         (aarch64_reverse_mask): New functions.
22182 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
22184         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22185         Declare.
22186         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22187         addressing modes for BE.
22188         (aarch64_print_operand): Add 'R' specifier.
22189         (aarch64_simd_disambiguate_copy): Delete.
22190         (aarch64_simd_emit_reg_reg_move): New function.
22191         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22192         in define_splits for structural moves.
22193         (mov<mode>): Use less restrictive predicates.
22194         (*aarch64_mov<mode>): Simplify and only allow for LE.
22195         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22197 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
22199         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22201 2015-01-21  Richard Henderson  <rth@redhat.com>
22203         PR target/64669
22204         * ccmp.c (used_in_cond_stmt_p): Remove.
22205         (expand_ccmp_expr): Don't use it.
22207 2015-01-21  Nick Clifton  <nickc@redhat.com>
22209         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22210         PARALLELs.
22212 2015-01-21  Richard Biener  <rguenther@suse.de>
22214         PR middle-end/64313
22215         * tree-core.h (builtin_info, builtin_info_type): Turn from
22216         an object with two arrays into an array of an object with
22217         decl and two flags, implicit_p and declared_p.
22218         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22219         set_builtin_decl, set_builtin_decl_implicit_p,
22220         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22221         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22222         * builtins.c (builtin_info): Adjust.
22223         * gimplify.c (gimplify_addr_expr): References to builtins
22224         that have been declared by the user makes them eligible for
22225         use by the compiler.  Call set_builtin_decl_implicit_p on them.
22227 2015-01-20  Jeff Law  <law@redhat.com>
22229         PR target/59946
22230         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22231         allow pc-relative addresses in operand predicates or constraints.
22233 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
22235         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22236         neon on aarch32 processors for stringops.
22238 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22240         PR ipa/63576
22241         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22243 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22245         PR lto/45375
22246         * ipa-inline.c: Include lto-streamer.h
22247         (report_inline_failed_reason): Output source file differences and
22248         flags on optimization/target node mismatch.
22249         (can_inline_edge_p): Consider caller to be the outer inline function;
22250         be less restrictive about matching opimize and optimize_size attributes.
22251         (inline_account_function_p): Break out from ...
22252         (inline_small_functions): ... here.
22253         * ipa-inline-transform.c (clone_inlined_nodes): Use
22254         inline_account_function_p.
22255         (inline_call): Use optimize attribution; use inline_account_function_p.
22256         (inline_transform): Use opt_for_fn.
22257         * ipa-inline.h (inline_account_function_p): Declare.
22259 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
22261         PR debug/64663
22262         * dwarf2out.c (decl_piece_node): Don't put bitsize into
22263         mode if bitsize <= 0.
22264         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22265         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22266         sizes and positions.
22268 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
22270         * config/nios2/nios2.c (nios2_asm_file_end): Implement
22271         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22272         needed.
22273         (TARGET_ASM_FILE_END): Define.
22275 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22277         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22278         (struct tune_params): Use the enum.
22279         * arm.c (arm_*_tune): Update.
22280         (arm_option_override): Update.
22282 2015-01-20  Richard Biener  <rguenther@suse.de>
22284         PR ipa/64684
22285         * ipa-reference.c (add_static_var): Inline ...
22286         (analyze_function): ... here after splitting out from ...
22287         (is_proper_for_analysis): ... this.
22289 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
22291         PR target/64149
22292         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22293         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22294         replace the conditional with it's true branch.
22295         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22296         (arm_lra_p): Remove.
22298 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
22300         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22302 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22304         * config/tilegx/mul-tables.c: Move symtab.h include after
22305         coretypes.h include.
22306         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22307         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22308         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22309         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22310         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22312 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
22314         PR bootstrap/64676
22315         Revert:
22316         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
22318         PR rtl-optimization/64081
22319         * loop-iv.c (def_pred_latch_p): New function.
22320         (latch_dominating_def): Allow specific cases with non-single
22321         definitions.
22322         (iv_get_reaching_def): Likewise.
22323         (check_complex_exit_p): New function.
22324         (check_simple_exit): Use check_complex_exit_p to allow certain cases
22325         with exits not executing on any iteration.
22327 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22329         PR lto/45375
22330         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22331         to set branch cost.
22333 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22335         PR lto/45375
22336         * i386.c (gate): Check flag_expensive_optimizations and
22337         optimize_size.
22338         (ix86_option_override_internal): Drop optimize_size condition
22339         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22340         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22341         MASK_PREFER_AVX128.
22342         (ix86_avx256_split_vector_move_misalign,
22343         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22344         * sse.md (all uses of TARGET_PREFER_AVX128): Add
22345         optimize_insn_for_speed_p check.
22347 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
22349         * config/mips/mips.h (FP_ASM_SPEC): New define.
22350         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22351         instead.
22353 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
22355         PR target/53988
22356         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22357         nullptr for insn when reaching the first insn.
22358         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22359         (sh_insn_operands_modified_between_p): Add nullptr check.
22360         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
22361         sign extending mem load if the insn contains any UNSPEC or
22362         UNSPEC_VOLATILE.
22364 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22366         * params.def (inline-unit-growth): Drop to 15%.
22367         * invoke.texi (inline-unit-growth): Document change.
22369 2015-01-19  Martin Liska  <mliska@suse.cz>
22371         PR ipa/64668
22372         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22373         function for second argument of OBJ_TYPE_REF.
22375 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22377         PR ipa/64218
22378         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22379         whether function is an alias.
22381 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22383         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22384         cases.
22386 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
22388         PR rtl-optimization/64671
22389         * lra-remat.c (operand_to_remat): Don't consider jump and call
22390         insns.
22392 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
22394         PR target/59828
22395         * config/rs6000/default64.h: Include rs6000-cpus.def.
22396         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22397         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22398         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22399         and POWER8.
22400         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22401         POWER8.
22402         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22403         pseudo-op to specify assembler dialect.
22405 2015-01-19  Martin Liska  <mliska@suse.cz>
22407         PR ipa/64664
22408         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22409         Handle safe potentially removed nodes during filtering.
22411 2015-01-19  Martin Liska  <mliska@suse.cz>
22413         * doc/extend.texi (no_icf): Add new attribute description.
22414         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22415         where the pass attempts to merge a function with no_icf attribute.
22417 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22419         PR target/64532
22420         * doc/md.texi (ARM Options): Document register constraints.
22422 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
22423             Andrew Pinski  <apinski@cavium.com>
22425         PR target/64304
22426         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22427         (ashl<mode>3): Don't expand if operands[2] is not constant.
22429 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22431         PR target/64448
22432         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22433         Match xor-and-xor RTL pattern.
22435 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
22437         PR rtl-optimization/64081
22438         * loop-iv.c (def_pred_latch_p): New function.
22439         (latch_dominating_def): Allow specific cases with non-single
22440         definitions.
22441         (iv_get_reaching_def): Likewise.
22442         (check_complex_exit_p): New function.
22443         (check_simple_exit): Use check_complex_exit_p to allow certain cases
22444         with exits not executing on any iteration.
22446 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
22448         * common.opt (fgraphite): Fix a typo.
22450 2015-01-19  Felix Yang  <felix.yang@huawei.com>
22452         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22453         pattern.
22454         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22455         uminp, smax_nanp, smin_nanp): New builtins.
22456         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22457         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22458         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22459         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22460         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22461         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22462         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22463         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22464         vpminnms_f32): Rewrite using builtin functions.
22466 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
22468         PR libgomp/64625
22469         * omp-low.c (offload_symbol_decl): Remove variable.
22470         (get_offload_symbol_decl): Remove function.
22471         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22472         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22473         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22474         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22475         BUILT_IN_GOACC_UPDATE don't pass it at all.
22477 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
22479         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22480         callers.
22482 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
22484         * ipa-chkp.c (chkp_produce_thunks): Add early param
22485         to split thunks production into two passes.  Keep
22486         'always_inline' function bodies after the first pass.
22487         (pass_data_ipa_chkp_early_produce_thunks): New.
22488         (pass_ipa_chkp_early_produce_thunks): New.
22489         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22490         chkp_produce_thunks signature.
22491         (make_pass_ipa_chkp_early_produce_thunks): New.
22492         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22493         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22494         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22496 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22498         * cgraph.c (cgraph_node::dump): Dump profile flags.
22500 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
22502         PR target/64652
22503         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22504         reg appear first in the parallel.
22506 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22508         * ipa-reference.c (set_reference_optimization_summary,
22509         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22510         disabled.
22511         (ignore_module_statics): New static var.
22512         (propagate_bits): If ipa-reference is disabled, do not look into local
22513         properties.
22514         (analyze_function): Disable analysis when ipa_reference is disabled.
22515         (generate_summary): Do not dump when reference is disabled;
22516         collect vars accessed from functions with ipa-reference disabled.
22517         (get_read_write_all_from_node): When ipa-reference is disabled, use the
22518         node flags.
22519         (gate): Enable for LTO.
22520         (ignore_edge_p): New function.
22521         (propagate): Skip functions w/o ipa-reference analysis.
22522         * optc-save-gen.awk: Handle optimize_debug correctly.
22523         * opth-gen.awk: Likewise.
22524         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22525         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22526         fira-share-save-slots, fira-share-spill-slots,
22527         fmodulo-sched-allow-regmoves, fpartial-inlining,
22528         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22529         ftracer, ftree-parallelize-loops, fassociative-math,
22530         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22531         Optimization
22532         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22533         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22534         Optimization.
22535         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22536         Fix for IPA.
22538 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22540         PR ipa/64378
22541         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22542         flag correctly.
22543         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22545 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
22547         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22548         Remove duplicate option listings.
22550 2015-01-18  Felix Yang  <felix.yang@huawei.com>
22552         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22553         (autofdo_source_profile::get_callsite_total_count,
22554         function_instance::get_function_instance_by_decl,
22555         string_table::get_index, string_table::get_index_by_decl,
22556         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22557         Fix comment typos. Reformatting and minor code rearrangement.
22559 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22561         * config/rs6000/rs6000.md (probe_stack): Delete.
22562         (probe_stack_address): New.
22564 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22566         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22567         to test for 32-bit ABIs, not !TARGET_POWERPC64.
22569 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22571         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22572         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
22573         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
22574         snafu.
22575         (rs6000_libcall_value): Use the new function.
22577 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
22579         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22581 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22583         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22584         implement a more precise life analysis for it during backward scan.
22586 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
22588         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22590 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
22592         PR rtl-optimization/52773
22593         * calls.c (emit_library_call_value): When pushing arguments use
22594         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22595         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
22596         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22598 2015-01-17  Jeff Law  <law@redhat.com>
22600         PR rtl-optimization/32790
22601         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22602         not ZERO_EXTEND in SET_DESTs.
22604 2015-01-17  Alan Modra  <amodra@gmail.com>
22606         * cprop.c (do_local_cprop): Revert last change.
22608 2015-01-16  DJ Delorie  <dj@redhat.com>
22609             Nick Clifton  <nickc@redhat.com>
22611         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22612         (addhi3_real): Likewise.  Fix [HL+0] syntax.
22613         (subqi3_real): Likewise.
22614         (subhi3_real): Likewise.
22615         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
22616         (cbranchhi4_real): Likewise.
22617         (cbranchhi4_real_inverted): Likewise.
22618         (cbranchsi4_real_lt): Likewise.
22619         (cbranchsi4_real_ge): Likewise.
22620         (cbranchsi4_real_ge): Likewise.
22621         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22622         (sub<mode>3_virt): Likewise.
22623         (cbranchqi4_virt): Likewise.
22624         (cbranchhi4_virt): Likewise.
22625         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22626         always use '[reg+imm]' even when imm is zero.
22627         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22628         (rl78_general_operand): New.
22629         (rl78_nonimmediate_operand): New.
22630         (rl78_nonfar_operand): Use them.
22631         (rl78_nonfar_nonimm_operand): Likewise.
22632         (rl78_stack_based_mem): Fix.
22633         * config/rl78/constraints.md (Ibqi): New.
22634         (IBqi): New.
22635         (Wsa): New.
22636         (Wsf): New.
22637         (Cs1): Fix.
22638         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22639         (iorqi3): Likewise.
22640         (xorqi3): Likewise.
22641         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22643         * config/rl78/constrains (Qs8): New constraint.
22644         * config/rl78/rl78.c (rl78_flags_already_set): New function.
22645         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22646         * config/rl78/rl78-real.md (update_Z): New attribute.
22647         Update patterns to set it.
22648         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22649         shorter compare and branch sequence can be used.
22650         (cbranchhi4_real): Likewise.
22651         (cbranchhi4_real_inverted): Likewise.
22653         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22654         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22655         address space.
22656         * config/rl78/rl78.c (rl78_get_name_encoding): New.
22657         (rl78_option_override): Allow -mes0 only if C.
22658         (characterize_address): Support subregs of symbol_refs.
22659         (rl78_addr_space_address_mode): Move.  Add __near.
22660         (rl78_far_p): Likewise.
22661         (rl78_addr_space_pointer_mode): Likewise.
22662         (rl78_as_legitimate_address): Likewise.
22663         (rl78_addr_space_subset_p): Likewise.
22664         (rl78_addr_space_convert): Likewise.
22665         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22666         symbols with -mes0.
22667         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
22668         addressing.
22669         (rl78_alloc_physical_registers_op1): Change logic to prefer
22670         symbol[BC] addressing.
22671         (frodata_section): New.
22672         (rl78_asm_init_sections): Initialize it.
22673         (rl78_select_section): Put __far readonly symbols in .frodata.
22674         (rl78_make_type_far): New.
22675         (rl78_insert_attributes): Force all readonly symbols to be
22676         __far when -mes0.
22677         (rl78_asm_out_integer): New.
22678         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22679         * config/rl78/rl78.opt (-mes0): New.
22681         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22682         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22683         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22684         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22685         (rl78_saddr_p): New.
22686         (rl78_output_aligned_common): New.
22687         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22688         (rl78_handle_saddr_attribute): New.
22689         (rl78_handle_naked_attribute): New.
22690         (rl78_attribute_table): Add saddr.
22691         (rl78_print_operand_1): Don't print '!' on saddr operands.
22692         (rl78_print_operand_1): Strip encodings.
22693         (rl78_sfr_p): New.
22694         (rl78_strip_name_encoding): New.
22695         (rl78_attrlist_to_encoding): New.
22696         (rl78_encode_section_info): New.
22697         (rl78_asm_init_sections): New.
22698         (rl78_select_section): New.
22699         (rl78_output_labelref): New.
22700         (rl78_output_aligned_common): New.
22701         (rl78_asm_out_integer): New.
22702         (rl78_asm_ctor_dtor): New.
22703         (rl78_asm_constructor): New.
22704         (rl78_asm_destructor): New.
22706         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22707         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22708         (transcode_memory_rtx): Update.
22709         (rl78_expand_epilogue): Use A_REG instead of 0.
22711 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22713         * config/arm/arm-protos.h (struct tune_params): New field
22714         sched_autopref_queue_depth.
22715         * config/arm/arm.c (sched-int.h): Include header.
22716         (arm_first_cycle_multipass_dfa_lookahead_guard,)
22717         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22718         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22719         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22720         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22721         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22722         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22723         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22724         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
22725         * config/arm/t-arm (arm.o): Update.
22726         * haifa-sched.c (update_insn_after_change): Update.
22727         (rank_for_schedule): Use auto-prefetcher model, if requested.
22728         (autopref_multipass_init): New static function.
22729         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22730         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22731         variable for debug dumps.
22732         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22733         (autopref_multipass_dfa_lookahead_guard): New global function that
22734         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22735         (init_h_i_d): Update.
22736         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22737         * sched-int.h (enum autopref_multipass_data_status): New const enum.
22738         (autopref_multipass_data_): Structure for auto-prefetcher data.
22739         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22740         (struct _haifa_insn_data:autopref_multipass_data): New field.
22741         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22742         (autopref_multipass_dfa_lookahead_guard): Declare.
22744 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22746         * rtlanal.c (get_base_term): Handle SCRATCH.
22748 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22750         * config/aarch64/aarch64.c
22751         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22752         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22753         * config/arm/arm.c
22754         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22755         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22757 2015-01-17  Alan Modra  <amodra@gmail.com>
22759         * cprop.c (do_local_cprop): Disallow replacement of fixed
22760         hard registers.
22762 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22764         PR target/62066
22765         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
22766         early return 0.
22768 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22770         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
22771         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
22773 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22775         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
22776         * config/arm/thumb1.md: ... Here.
22778 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22780         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
22781         TImode for TARGET_32BIT.
22783 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22785         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
22786         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
22787         as ...
22788         (rs6000_abi_word_mode): New function.
22790 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22792         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
22793         instead of UNITS_PER_WORD to describe the size of stack slots.
22795 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22797         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
22798         as rs6000_promote_function_mode.  Move comment to there.
22799         (rs6000_promote_function_mode): New function.
22801 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22803         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
22804         -mpowerpc64 is active.
22806 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22808         PR middle-end/64353
22809         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
22810         virtuals on start.
22812 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22814         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
22815         introduced in revision 219724.
22817 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22818             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22820         PR target/64263
22821         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
22822         destination is not a GP reg.
22823         (*movdi_aarch64): Likewise.
22825 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
22827         PR target/64623
22828         * config/rs6000/default64.h: Revert ISA change.
22830 2015-01-16  Richard Biener  <rguenther@suse.de>
22832         PR middle-end/64614
22833         * tree-ssa-uninit.c: Include tree-cfg.h.
22834         (MAX_SWITCH_CASES): New define.
22835         (convert_control_dep_chain_into_preds): Handle switch statements.
22836         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
22837         (normalize_one_pred_1): Do not split bit-manipulations.
22838         Record (x & CST).
22840 2015-01-16  Richard Biener  <rguenther@suse.de>
22842         PR tree-optimization/64568
22843         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
22844         complex load rewriting for TARGET_MEM_REFs.
22846 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
22848         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
22850 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
22852         PR target/64149
22853         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
22854         variable.
22855         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
22856         (aarch64_lra_p): Remove.
22858 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22860         PR target/64363
22861         * ipa-chkp.h (chkp_instrumentable_p): New.
22862         * ipa-chkp.c: Include tree-inline.h.
22863         (chkp_instrumentable_p): New.
22864         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
22865         Fix processing of not instrumentable functions.
22866         (chkp_versioning): Use chkp_instrumentable_p. Warn about
22867         not instrumentable functions.
22868         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
22869         chkp_instrumentable_p.
22870         * tree-inline.h (copy_forbidden): New.
22871         * tree-inline.c (copy_forbidden): Not static anymore.
22873 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22875         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
22876         ptr1, ptr2 unused.
22878 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22880         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
22881         type OP_OUT to OP_INOUT.
22883 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22885         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
22886         (high x) y) to y if x and y have the same base.
22888 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22890         * config/arm/cortex-a57.md: New.
22891         * config/aarch64/aarch64.md: Include it.
22892         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
22893         * config/aarch64/aarch64-tune.md: Regenerate.
22895 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
22897         PR target/64015
22898         * ccmp.c (expand_ccmp_next): New function.
22899         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
22900         and compare insn sequence.
22901         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
22902         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
22903         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
22904         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
22905         (*ccmp_ior): Changed to ccmp_ior<mode>.
22906         (cmp<mode>): New pattern.
22907         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
22908         parameters.
22909         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
22911 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
22913         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
22914         _mm256_bsrli_epi128): New.
22915         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
22917 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22919         * expmed.c (store_bit_field_using_insv): Improve warning message.
22920         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
22922 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22924         PR rtl-optimization/64011
22925         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
22926         there is partial overflow.
22928 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22930         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
22931         prototype.
22932         (nds32_expand_epilogue_v3pop): Likewise.
22933         * config/nds32/nds32.md (sibcall): Define this for sibling call
22934         optimization.
22935         (sibcall_register): Likewise.
22936         (sibcall_immediate): Likewise.
22937         (sibcall_value): Likewise.
22938         (sibcall_value_register): Likewise.
22939         (sibcall_value_immediate): Likewise.
22940         (sibcall_epilogue): Likewise.
22941         (epilogue): Pass false to indicate this is not a sibcall epilogue.
22942         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
22943         (nds32_expand_epilogue_v3pop): Likewise.
22945 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22947         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
22948         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
22949         (return_internal): New.
22950         (return): Define this named pattern.
22951         (simple_return): Define this named pattern.
22952         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
22953         pattern instead of unspec_volatile_func_return.
22954         (nds32_expand_epilogue_v3pop): Likewise.
22955         (nds32_can_use_return_insn): New function.
22957 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22959         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
22960         * config/nds32/nds32.md (pop25return): New.
22961         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
22962         pop25return pattern.
22964 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22966         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
22967         -mforbid-fp-as-gp, and -mex9 options.
22969 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22971         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
22972         remove -mgp-direct option.
22974 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22976         * doc/invoke.texi (--param early-inlining-insns): Update default value.
22977         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
22979 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22981         * ipa-inline.c (inline_small_functions): Work around hints
22982         cache issue.
22984 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
22986         PR target/59710
22987         * doc/invoke.texi (Option Summary): Document new Nios II
22988         -mgpopt= syntax.
22989         (Nios II Options): Likewise.
22990         * config/nios2/nios2.opt: Add -mgpopt= option support.
22991         Modify existing -mgpopt and -mno-gpopt options to be aliases.
22992         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
22993         * config/nios2/nios2.c (nios2_option_override): Adjust
22994         -mgpopt defaulting.
22995         (nios2_in_small_data_p): Return true for explicit small data
22996         sections even with -G0.
22997         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
22998         option choices.
23000 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23002         PR ipa/64612
23003         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23004         of comdat locals.
23005         (inline_call): Fix removal of aliases.
23007 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
23009         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23010         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23011         * opts.c (common_handle_option): Add -fsanitize=vptr.
23012         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23013         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23014         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23015         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23016         (ubsan_expand_vptr_ifn): New prototype.
23017         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23018         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23019         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23020         expand_LOOP_VECTORIZED): Make argument nameless, remove
23021         ATTRIBUTE_UNUSED.
23022         (expand_UBSAN_VPTR): New function.
23023         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23024         in fn spec.
23025         (UBSAN_VPTR): New internal function.
23026         * sanopt.c (tree_map_traits): Renamed to ...
23027         (sanopt_tree_map_traits): ... this.
23028         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23029         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23030         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
23031         (maybe_optimize_ubsan_vptr_ifn): New function.
23032         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23033         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
23034         -fsanitize=vptr.
23035         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23036         internal calls like pure functions for aliasing, even when they
23037         have other side-effects that prevent making them ECF_PURE.
23038         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23039         (ubsan_expand_vptr_ifn): New function.
23041 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
23043         PR rtl-optimization/64110
23044         * stmt.c (parse_output_constraint): Process '^' and '$'.
23045         (parse_input_constraint): Ditto.
23046         * lra-constraints.c (process_alt_operands): Process the new
23047         constraints.
23048         * ira-costs.c (record_reg_classes): Process the new constraint
23049         '^'.
23050         * genoutput.c (indep_constraints): Add '^' and '$'.
23051         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23052         * doc/md.texi: Add description of the new constraints.
23054 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
23055             Bernd Schmidt  <bernds@codesourcery.com>
23056             Cesar Philippidis  <cesar@codesourcery.com>
23057             James Norris  <jnorris@codesourcery.com>
23058             Tom de Vries  <tom@codesourcery.com>
23059             Ilmir Usmanov  <i.usmanov@samsung.com>
23060             Dmitry Bocharnikov  <dmitry.b@samsung.com>
23061             Evgeny Gavrin  <e.gavrin@samsung.com>
23062             Jakub Jelinek  <jakub@redhat.com>
23064         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23065         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23066         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23067         New function types.
23068         * builtins.c: Include "gomp-constants.h".
23069         (expand_builtin_acc_on_device): New function.
23070         (expand_builtin, is_inexpensive_builtin): Handle
23071         BUILT_IN_ACC_ON_DEVICE.
23072         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23073         New macros.
23074         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23075         flag_openmp.
23076         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23077         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23078         i386/intelmic-offload.h.
23079         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23080         to libgomp and its dependencies.
23081         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23082         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23083         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23084         * config/ia64/hpux.h (LIB_SPEC): Likewise.
23085         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23086         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23087         * doc/generic.texi: Update for OpenACC changes.
23088         * doc/gimple.texi: Likewise.
23089         * doc/invoke.texi: Likewise.
23090         * doc/sourcebuild.texi: Likewise.
23091         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23092         GF_OMP_FOR_KIND_OACC_LOOP.
23093         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23094         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23095         GF_OMP_TARGET_KIND_OACC_UPDATE,
23096         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23097         Dump more data.
23098         * gimple.c: Update comments for OpenACC changes.
23099         * gimple.def: Likewise.
23100         * gimple.h: Likewise.
23101         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23102         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23103         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23104         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23105         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23106         appropriate place.
23107         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23108         * gimplify.c: Include "gomp-constants.h".
23109         Update comments for OpenACC changes.
23110         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23111         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23112         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23113         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23114         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23115         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23116         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23117         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23118         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23119         OMP_CLAUSE_SEQ.
23120         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23121         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
23122         OMP_CLAUSE_SET_MAP_KIND.
23123         (gimplify_oacc_cache): New function.
23124         (gimplify_omp_for): Handle OACC_LOOP.
23125         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23126         OACC_DATA.
23127         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23128         OACC_EXIT_DATA, OACC_UPDATE.
23129         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23130         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23131         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23132         (gimplify_body): Consider flag_openacc next to flag_openmp.
23133         * lto-streamer-out.c: Include "gomp-constants.h".
23134         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23135         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23136         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23137         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23138         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23139         (BUILT_IN_ACC_ON_DEVICE): New builtins.
23140         * omp-low.c: Include "gomp-constants.h".
23141         Update comments for OpenACC changes.
23142         (struct omp_context): Add reduction_map, gwv_below, gwv_this
23143         members.
23144         (extract_omp_for_data, use_pointer_for_field, install_var_field)
23145         (new_omp_context, delete_omp_context, scan_sharing_clauses)
23146         (create_omp_child_function, scan_omp_for, scan_omp_target)
23147         (check_omp_nesting_restrictions, lower_reduction_clauses)
23148         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23149         Update for OpenACC changes.
23150         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23151         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23152         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23153         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23154         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23155         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
23156         OMP_CLAUSE_MAP_*.
23157         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23158         Handle GF_OMP_FOR_KIND_OACC_LOOP.
23159         (expand_omp_target, lower_omp_target): Handle
23160         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23161         GF_OMP_TARGET_KIND_OACC_UPDATE,
23162         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23163         GF_OMP_TARGET_KIND_OACC_DATA.
23164         (pass_expand_omp::execute, execute_lower_omp)
23165         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23166         flag_openmp.
23167         (offload_symbol_decl): New variable.
23168         (oacc_get_reduction_array_id, oacc_max_threads)
23169         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23170         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23171         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23172         (oacc_gimple_assign, oacc_initialize_reduction_data)
23173         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23174         functions.
23175         (is_targetreg_ctx): Remove function.
23176         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23177         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23178         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23179         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23180         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23181         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23182         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23183         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23184         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23185         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23186         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23187         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23188         * tree-core.h: Update comments for OpenACC changes.
23189         (enum omp_clause_map_kind): Remove.
23190         (struct tree_omp_clause): Change type of map_kind member from enum
23191         omp_clause_map_kind to unsigned char.
23192         * tree-inline.c: Update comments for OpenACC changes.
23193         * tree-nested.c: Likewise.  Include "gomp-constants.h".
23194         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23195         (convert_tramp_reference_stmt, convert_gimple_call): Update for
23196         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
23197         OMP_CLAUSE_SET_MAP_KIND.
23198         * tree-pretty-print.c: Include "gomp-constants.h".
23199         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23200         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23201         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23202         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23203         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23204         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
23205         instead of OMP_CLAUSE_MAP_*.
23206         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23207         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23208         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23209         * tree-streamer-in.c: Include "gomp-constants.h".
23210         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23211         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
23212         * tree-streamer-out.c: Include "gomp-constants.h".
23213         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23214         OMP_CLAUSE_MAP_*.
23215         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23216         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23217         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23218         * tree.c (omp_clause_num_ops): Update accordingly.
23219         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23220         Likewise.
23221         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23222         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23223         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23224         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23225         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23226         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23227         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23228         (OMP_CLAUSE_SET_MAP_KIND): New macro.
23229         * varpool.c (varpool_node::get_create): Consider flag_openacc next
23230         to flag_openmp.
23231         * config/i386/intelmic-offload.h: New file.
23232         * config/nvptx/offload.h: Likewise.
23234 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23236         * explow.h: Remove duplicate contents.
23237         * dojump.h: Likewise.
23239 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
23241         * arm.c (arm_xgene_tune): Add default initializer for instruction
23242         fusion.
23244 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
23246         PR ipa/64068
23247         PR ipa/64559
23248         * ipa.c (symbol_table::remove_unreachable_nodes):
23249         Do not put abstract origins into boundary.
23251 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
23253         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23254         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23256 2015-01-15  Steve Ellcey  <sellcey@mips.com>
23258         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23259         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23260         builtins.def, and chkp-builtins.def.
23262 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
23264         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23265         ISA 2.7 (POWER8).
23267 2015-01-15  Richard Biener  <rguenther@suse.de>
23269         PR tree-optimization/61743
23270         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23271         information on PHIs for some simple cases.
23273 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23275         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23276         Include xgene1.md.
23277         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23278         * config/arm/arm-cores.def (xgene1): New entry.
23279         * config/arm/arm-tables.opt: Regenerate.
23280         * config/arm/arm-tune.md: Regenerate.
23281         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23283 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
23285         * tree-if-conv.c: Include hash-map.h.
23286         (aggressive_if_conv): New variable.
23287         (fold_build_cond_expr): Add simplification of non-zero condition.
23288         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23289         destination block is not always executed.
23290         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23291         than two predecessors if AGGRESSIVE_IF_CONV is true.
23292         (if_convertible_stmt_p): Fix commentary.
23293         (all_preds_critical_p): New function.
23294         (has_pred_critical_p): New function.
23295         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23296         BB can have more than two predecessors and all incoming edges can be
23297         critical.
23298         (predicate_bbs): Skip predication for loop exit block, use build2_loc
23299         to compute predicate for true edge.
23300         (find_phi_replacement_condition): Delete this function.
23301         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23302         Allow interchange PHI arguments if EXTENDED is false.
23303         Change check that block containing reduction statement candidate
23304         is predecessor of phi-block since phi may have more than two arguments.
23305         (phi_args_hash_traits): New helper structure.
23306         (struct phi_args_hash_traits): New type.
23307         (phi_args_hash_traits::hash): New function.
23308         (phi_args_hash_traits::equal_keys): New function.
23309         (gen_phi_arg_condition): New function.
23310         (predicate_scalar_phi): Add handling of phi nodes with more than two
23311         arguments, delete COND and TRUE_BB arguments, insert body of
23312         find_phi_replacement_condition to predicate ordinary phi nodes.
23313         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23314         delete call of find_phi_replacement_condition and invoke
23315         predicate_scalar_phi with two arguments.
23316         (insert_gimplified_predicates): Add assert that non-predicated block
23317         don't have statements to insert.
23318         (ifcvt_split_critical_edges): New function.
23319         (ifcvt_split_def_stmt): Likewise.
23320         (ifcvt_walk_pattern_tree): Likewise.
23321         (stmt_is_root_of_bool_pattern): Likewise.
23322         (ifcvt_repair_bool_pattern): Likewise.
23323         (ifcvt_local_dce): Likewise.
23324         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23325         is copy of inner or outer loop force_vectorize field, invoke
23326         ifcvt_split_critical_edges, ifcvt_local_dce and
23327         ifcvt_repair_bool_pattern for aggressive if-conversion.
23329 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
23331         * config/aarch64/aarch64.md: Include xgene1.md.
23332         * config/aarch64/xgene1.md: New file.
23334 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23336         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23337         xgene1 (APM XGene-1) core definition.
23338         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23339         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23340         * doc/invoke.texi: Document -mcpu=xgene1.
23342 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23344         * dojump.h: New header file.
23345         * explow.h: Likewise.
23346         * expr.h: Remove includes.
23347         Move expmed.c prototypes to expmed.h.
23348         Move dojump.c prototypes to dojump.h.
23349         Move alias.c prototypes to alias.h.
23350         Move explow.c prototypes to explow.h.
23351         Move calls.c prototypes to calls.h.
23352         Move emit-rtl.c prototypes to emit-rtl.h.
23353         Move varasm.c prototypes to varasm.h.
23354         Move stmt.c prototypes to stmt.h.
23355         (saved_pending_stack_adjust): Move to dojump.h.
23356         (adjust_address): Move to explow.h.
23357         (adjust_address_nv): Move to emit-rtl.h.
23358         (adjust_bitfield_address): Likewise.
23359         (adjust_bitfield_address_size): Likewise.
23360         (adjust_bitfield_address_nv): Likewise.
23361         (adjust_automodify_address_nv): Likewise.
23362         * explow.c (expr_size): Move to expr.c.
23363         (int_expr_size): Likewise.
23364         (tree_expr_size): Likewise.
23365         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23366         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23367         * genemit.c (main): Generate includes statistics.h, real.h,
23368         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23369         stmt.h.
23370         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23371         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23372         explow.h, emit-rtl.h, stmt.h.
23373         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23374         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23375         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23376         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23377         emit-rtl.h, varasm.h, stmt.h.
23378         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23379         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23380         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23381         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23382         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23383         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23384         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23385         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23386         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23387         tm.h tree.h varasm.h vec.h wide-int.h.
23388         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23389         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23390         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23391         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23392         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23393         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23394         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23395         * loop-iv.c: Likewise.
23396         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23397         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23398         statistics.h stmt.h tree.h varasm.h wide-int.h.
23399         * lra-constraints.c: Likewise.
23400         * lra-eliminations.c: Likewise.
23401         * lra-lives.c: Likewise.
23402         * lra-remat.c: Likewise.
23403         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23404         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23405         statistics.h stmt.h tree.h varasm.h wide-int.h.
23406         * hw-doloop.c: Likewise.
23407         * ira-color.c: Likewise.
23408         * ira-emit.c: Likewise.
23409         * loop-doloop.c: Likewise.
23410         * loop-invariant.c: Likewise.
23411         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23412         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23413         statistics.h stmt.h tree.h varasm.h wide-int.h.
23414         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23415         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23416         statistics.h stmt.h tree.h varasm.h wide-int.h.
23417         * combine-stack-adj.c: Likewise.
23418         * cse.c: Likewise.
23419         * ddg.c: Likewise.
23420         * ifcvt.c: Likewise.
23421         * ira-costs.c: Likewise.
23422         * jump.c: Likewise.
23423         * lra-coalesce.c: Likewise.
23424         * lra-spills.c: Likewise.
23425         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23426         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23427         stmt.h varasm.h wide-int.h.
23428         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23429         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23430         varasm.h.
23431         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23432         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23433         statistics.h stmt.h varasm.h wide-int.h.
23434         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23435         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23436         varasm.h wide-int.h.
23437         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23438         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23439         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23440         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23441         statistics.h stmt.h.
23442         * config/tilepro/tilepro.c: Likewise.
23443         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23444         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23445         * config/pdp11/pdp11.c: Likewise.
23446         * config/xtensa/xtensa.c: Likewise.
23447         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23448         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23449         varasm.h.
23450         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23451         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23452         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23453         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23454         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23455         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23456         * rtl-chkp.c: Likewise.
23457         * tree-chkp-opt.c: Likewise.
23458         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23459         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23460         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23461         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23462         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23463         statistics.h stmt.h.
23464         * tree-vect-data-refs.c: Likewise.
23465         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23466         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23467         rtl.h statistics.h stmt.h varasm.h.
23468         * internal-fn.c: Likewise.
23469         * ipa-icf-gimple.c: Likewise.
23470         * lto-section-out.c: Likewise.
23471         * tree-data-ref.c: Likewise.
23472         * tree-nested.c: Likewise.
23473         * tree-outof-ssa.c: Likewise.
23474         * tree-predcom.c: Likewise.
23475         * tree-pretty-print.c: Likewise.
23476         * tree-scalar-evolution.c: Likewise.
23477         * tree-ssa-strlen.c: Likewise.
23478         * tree-vect-loop.c: Likewise.
23479         * tree-vect-patterns.c: Likewise.
23480         * tree-vect-slp.c: Likewise.
23481         * tree-vect-stmts.c: Likewise.
23482         * tsan.c: Likewise.
23483         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23484         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23485         stmt.h.
23486         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23487         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23488         statistics.h stmt.h varasm.h.
23489         * loop-unroll.c: Likewise.
23490         * ubsan.c: Likewise.
23491         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23492         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23493         stmt.h varasm.h.
23494         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23495         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23496         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23497         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23498         statistics.h stmt.h.
23499         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23500         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23501         statistics.h stmt.h varasm.h.
23502         * gimple-match-head.c: Likewise.
23503         * lto-cgraph.c: Likewise.
23504         * lto-section-in.c: Likewise.
23505         * lto-streamer-in.c: Likewise.
23506         * lto-streamer-out.c: Likewise.
23507         * tree-affine.c: Likewise.
23508         * tree-cfg.c: Likewise.
23509         * tree-cfgcleanup.c: Likewise.
23510         * tree-if-conv.c: Likewise.
23511         * tree-into-ssa.c: Likewise.
23512         * tree-ssa-alias.c: Likewise.
23513         * tree-ssa-copyrename.c: Likewise.
23514         * tree-ssa-dse.c: Likewise.
23515         * tree-ssa-forwprop.c: Likewise.
23516         * tree-ssa-live.c: Likewise.
23517         * tree-ssa-math-opts.c: Likewise.
23518         * tree-ssa-pre.c: Likewise.
23519         * tree-ssa-sccvn.c: Likewise.
23520         * tree-tailcall.c: Likewise.
23521         * tree-vect-generic.c: Likewise.
23522         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23523         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23524         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23525         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23526         * varasm.c: Likewise.
23527         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23528         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23529         varasm.h.
23530         * init-regs.c: Likewise.
23531         * ira.c: Likewise.
23532         * omp-low.c: Likewise.
23533         * stack-ptr-mod.c: Likewise.
23534         * tree-ssa-reassoc.c: Likewise.
23535         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23536         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23537         varasm.h.
23538         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23539         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23540         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23541         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23542         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23543         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23544         * tree-ssa-phiopt.c: Likewise.
23545         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23546         fixed-value.h hashtab.h real.h statistics.h stmt.h.
23547         * config/fr30/fr30.c: Likewise.
23548         * config/frv/frv.c: Likewise.
23549         * expr.c: Likewise.
23550         * final.c: Likewise.
23551         * optabs.c: Likewise.
23552         * passes.c: Likewise.
23553         * simplify-rtx.c: Likewise.
23554         * stmt.c: Likewise.
23555         * toplev.c: Likewise.
23556         * var-tracking.c: Likewise.
23557         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23558         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23559         * lower-subreg.c: Likewise.
23560         * postreload-gcse.c: Likewise.
23561         * ree.c: Likewise.
23562         * reginfo.c: Likewise.
23563         * store-motion.c: Likewise.
23564         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23565         fixed-value.h hashtab.h real.h stmt.h varasm.h.
23566         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23567         fixed-value.h hashtab.h statistics.h stmt.h.
23568         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23569         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23570         * except.c: Likewise.
23571         * explow.c: Likewise.
23572         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23573         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23574         varasm.h.
23575         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23576         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23577         * tree-ssa-structalias.c: Likewise.
23578         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23579         fixed-value.h insn-config.h real.h statistics.h.
23580         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23581         fixed-value.h insn-config.h real.h statistics.h stmt.h.
23582         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23583         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23584         * cfgbuild.c: Likewise.
23585         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23586         fixed-value.h real.h rtl.h statistics.h stmt.h.
23587         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23588         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23589         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23590         fixed-value.h real.h statistics.h stmt.h.
23591         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23592         fixed-value.h real.h statistics.h stmt.h varasm.h.
23593         * cprop.c: Likewise.
23594         * modulo-sched.c: Likewise.
23595         * postreload.c: Likewise.
23596         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23597         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23598         statistics.h stmt.h varasm.h.
23599         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23600         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23601         rtl.h statistics.h stmt.h varasm.h.
23602         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23603         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23604         varasm.h.
23605         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23606         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23607         varasm.h.
23608         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23609         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23610         varasm.h.
23611         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23612         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23613         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23614         function.h real.h statistics.h stmt.h varasm.h.
23615         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23616         insn-config.h real.h statistics.h stmt.h.
23617         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23618         statistics.h stmt.h.
23619         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23620         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23621         statistics.h stmt.h varasm.h.
23622         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23623         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23624         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23625         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23626         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23627         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23628         statistics.h stmt.h varasm.h.
23629         * ipa-polymorphic-call.c: Likewise.
23630         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23631         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23632         statistics.h stmt.h.
23633         * config/c6x/c6x.c: Likewise.
23634         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23635         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23636         statistics.h stmt.h varasm.h.
23637         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23638         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23639         stmt.h varasm.h.
23640         * ipa-split.c: Likewise.
23641         * tree-eh.c: Likewise.
23642         * tree-ssa-dce.c: Likewise.
23643         * tree-ssa-loop-niter.c: Likewise.
23644         * tree-vrp.c: Likewise.
23645         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23646         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23647         stmt.h.
23648         * config/nds32/nds32-fp-as-gp.c: Likewise.
23649         * config/nds32/nds32-intrinsic.c: Likewise.
23650         * config/nds32/nds32-isr.c: Likewise.
23651         * config/nds32/nds32-md-auxiliary.c: Likewise.
23652         * config/nds32/nds32-memory-manipulation.c: Likewise.
23653         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23654         * config/nds32/nds32-predicates.c: Likewise.
23655         * config/nds32/nds32.c: Likewise.
23656         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23657         fixed-value.h hashtab.h real.h statistics.h.
23658         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23659         fixed-value.h hashtab.h real.h statistics.h stmt.h.
23660         * config/arm/arm.c: Likewise.
23661         * config/avr/avr.c: Likewise.
23662         * config/bfin/bfin.c: Likewise.
23663         * config/h8300/h8300.c: Likewise.
23664         * config/i386/i386.c: Likewise.
23665         * config/ia64/ia64.c: Likewise.
23666         * config/iq2000/iq2000.c: Likewise.
23667         * config/m32c/m32c.c: Likewise.
23668         * config/m32r/m32r.c: Likewise.
23669         * config/m68k/m68k.c: Likewise.
23670         * config/mcore/mcore.c: Likewise.
23671         * config/mep/mep.c: Likewise.
23672         * config/mips/mips.c: Likewise.
23673         * config/mn10300/mn10300.c: Likewise.
23674         * config/moxie/moxie.c: Likewise.
23675         * config/pa/pa.c: Likewise.
23676         * config/rl78/rl78.c: Likewise.
23677         * config/rx/rx.c: Likewise.
23678         * config/s390/s390.c: Likewise.
23679         * config/sh/sh.c: Likewise.
23680         * config/sparc/sparc.c: Likewise.
23681         * config/spu/spu.c: Likewise.
23682         * config/stormy16/stormy16.c: Likewise.
23683         * config/v850/v850.c: Likewise.
23684         * config/vax/vax.c: Likewise.
23685         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23686         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23687         * config/msp430/msp430.c: Likewise.
23688         * predict.c: Likewise.
23689         * value-prof.c: Likewise.
23690         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23691         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23692         * config/microblaze/microblaze.c: Likewise.
23693         * config/nios2/nios2.c: Likewise.
23694         * config/rs6000/rs6000.c: Likewise.
23695         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23696         insn-config.h real.h rtl.h statistics.h stmt.h.
23697         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23698         insn-config.h real.h statistics.h stmt.h.
23699         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23700         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23701         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23702         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23703         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23704         fixed-value.h real.h statistics.h stmt.h.
23705         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23706         fixed-value.h statistics.h stmt.h.
23707         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23708         stmt.h.
23710 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
23712         * gengtype.c (create_user_defined_type): Workaround
23713         -Wmaybe-uninitialized false positives.
23714         * cse.c (fold_rtx): Likewise.
23715         * loop-invariant.c (gain_for_invariant): Likewise.
23717 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23719         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23720         set the memory attributes in all cases but clear MEM_EXPR if need be.
23722 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
23724         PR tree-optimization/64434
23725         * cfgexpand.c (reorder_operands): New function.
23726         (expand_gimple_basic_block): Insert call of reorder_operands if
23727         optimized is true.
23729 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
23731         * config/mips/micromips.md (*swp): Remove explicit parallel.
23732         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23733         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23734         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23735         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23736         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23737         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23738         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23739         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23740         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23741         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23742         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23743         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23744         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23745         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23746         (mips_wrdsp): Likewise.
23747         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23748         parallel.
23749         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23750         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23751         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23752         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23753         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23754         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23755         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23756         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23757         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23759 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23761         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23762         (mips_print_operand): Support 'y' to print exact log2 in decimal
23763         of a const_int.
23764         * config/mips/mips.h (ISA_HAS_LSA): New define.
23765         (ISA_HAS_DLSA): Likewise.
23766         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23767         * config/mips/predicates.md (const_immlsa_operand): New predicate.
23769 2015-01-15  Martin Liska  <mliska@suse.cz>
23771         PR target/64377
23772         * optc-save-gen.awk: Add support for array types.
23774 2015-01-15  Richard Biener  <rguenther@suse.de>
23776         PR middle-end/64365
23777         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
23778         for MEM_REF access functions with the same base can never partially
23779         overlap.
23781 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
23783         * common.opt: New option -fstack-protector-explicit.
23784         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
23785         (stack_protect_decl_phase): Handle stack_protect attribute for
23786         explicit stack protection requests.
23787         (expand_used_vars): Similarly.
23788         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
23789         * doc/extend.texi: Add documentation for "stack_protect" attribute.
23790         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
23792 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
23794         PR target/53988
23795         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
23796         reg-reg copies.
23797         (sh_extending_set_of_reg): New struct.
23798         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
23799         sh_remove_reg_dead_or_unused_notes): New Declarations.
23800         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
23801         sh_find_extending_set_of_reg, sh_split_tst_subregs,
23802         sh_extending_set_of_reg::use_as_extended_reg): New functions.
23803         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
23804         convert to insn_and_split and use new function sh_split_tst_subregs.
23806 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
23808         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
23809         option.
23810         (Optimization Options): Move -fuse-ld documentation to...
23811         (Link Options): ...here.
23813 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23815         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
23816         offsets.
23817         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
23818         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
23819         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
23820         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
23821         instead of ZR for the memory operand of LL/SC.
23822         (compare_and_swap_12, sync_add<mode>): Likewise.
23823         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
23824         (sync_new_<optab>_12, sync_nand_12): Likewise.
23825         (sync_old_nand_12, sync_new_nand_12): Likewise.
23826         (sync_sub<mode>, sync_old_add<mode>): Likewise.
23827         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
23828         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
23829         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
23830         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
23831         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
23832         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
23833         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
23834         * doc/md.texi (ZC): Update description.
23836 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23838         * builtins.c (expand_builtin_atomic_exchange): Remove error when
23839         memory model is CONSUME.
23840         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
23841         expand_builtin_atomic_store): Change invalid memory model errors to
23842         warnings.
23843         (expand_builtin_atomic_clear): Change invalid model errors to warnings
23844         and issue warning for CONSUME.
23846 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
23848         * lto-cgraph: Update function comments for
23849         lto_symtab_encoder_encode_*.
23851 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23853         * Makefile.in (site.exp): Do not set ENABLE_LTO.
23855 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23857         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
23858         * lto-cgraph.c (select_what_to_stream): Remove argument, use
23859         lto_stream_offload_p instead.
23860         * lto-streamer.h (select_what_to_stream): Remove argument.
23861         * passes.c (ipa_write_summaries): Likewise.
23862         * tree-pass.h (ipa_write_summaries): Likewise.
23864 2015-01-14  Richard Biener  <rguenther@suse.de>
23866         PR tree-optimization/59354
23867         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
23868         groups larger than the slp group size as having gaps.
23870 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23872         PR middle-end/59448
23873         * builtins.c (get_memmodel): Promote consume to acquire always.
23875 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23877         PR target/64386
23878         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
23879         V32HImode.
23881 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23883         PR target/64393
23884         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
23885         Enable AVX512BW.
23886         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
23887         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
23888         AVX512VBMI, as it implies AVX512BW.
23890 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23892         PR target/64387
23893         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
23894         (vec_unpacks_hi_v16sf): Ditto.
23896 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23898         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
23899         is not available.
23901 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23903         * doc/invoke.texi (mapcs): Mention deprecation.
23904         (mapcs-frame): Likewise.
23906 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23908         PR target/64453
23909         * config/arm/arm.c (callee_saved_reg_p): Define.
23910         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
23911         register is callee saved instead of !call_used_regs[reg].
23912         (thumb1_compute_save_reg_mask): Likewise.
23914 2015-01-14  Hale Wang  <hale.wang@arm.com>
23916         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
23917         Cortex-M7.
23919 2015-01-14  Richard Biener  <rguenther@suse.de>
23921         PR lto/64415
23922         * tree-inline.c (insert_debug_decl_map): Check destination
23923         function MAY_HAVE_DEBUG_STMTS.
23924         (insert_init_debug_bind): Likewise.
23925         (insert_init_stmt): Remove redundant check.
23926         (remap_gimple_stmt): Drop debug stmts if the destination
23927         function has var-tracking assignments disabled.
23929 2015-01-14  Martin Liska  <mliska@suse.cz>
23931         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
23932         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
23934 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23936         PR target/64460
23937         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
23938         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
23940 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23942         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
23943         level from an ARCH; do not inject the default.
23944         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
23945         MIPS_ISA_LEVEL_SPEC.
23946         (MIPS_ISA_NAN2008_SPEC): Update comment.
23947         (BASE_DRIVER_SELF_SPECS): Likewise.
23948         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
23949         MIPS_DEFAULT_ISA_LEVEL_SPEC.
23950         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
23951         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
23952         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
23954 2015-01-14  Richard Biener  <rguenther@suse.de>
23956         PR tree-optimization/64493
23957         PR tree-optimization/64495
23958         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
23959         assign the proper vectorized PHI to the inner loop exit PHIs.
23961 2015-01-14  Joey Ye  <joey.ye@arm.com>
23963         * config/arm/arm.c (arm_compute_save_reg_mask):
23964         Do not save lr in case of tail call.
23965         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
23967 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
23969         * tree-vrp.c (check_array_ref): Emit more warnings
23970         for warn_array_bounds >= 2.
23971         * common.opt: New option -Warray-bounds=.
23972         * doc/invoke.texi: Document -Warray-bounds=.
23974 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23976         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
23977         (mforbid-fp-as-gp): Remove.
23978         (mex9): Remove.
23979         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
23980         (nds32_symbol_load_store_p): Remove.
23981         (nds32_fp_as_gp_check_available): Clean up implementation.
23982         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
23983         cases.
23984         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
23985         fp-as-gp and ex9 cases.
23987 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23989         * tree-profile.c (init_ic_make_global_vars): Drop workaround
23990         for bintuils bug 14342.
23991         (init_ic_make_global_vars): Likewise.
23992         (gimple_init_edge_profiler): Likewise.
23993         (gimple_gen_ic_func_profiler): Likewise.
23995 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23997         * ipa-inline.c (inline_small_functions): Swap the operands in
23998         enum.
24000 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
24002         PR ipa/64481
24003         * ipa-inline-analysis.c (node_growth_cache): Remove.
24004         (initialize_growth_caches): Do not initialize it.
24005         (free_growth_caches): Do not free it.
24006         (do_estimate_growth): Rename to ...
24007         (estimate_growth): ... this one; drop growth cache code.
24008         (growth_likely_positive): Always go the heuristics way.
24009         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24010         (reset_edge_caches): Do not reset node growth.
24011         (heap_edge_removal_hook): Do not maintain cache.
24012         (inline_small_functions): Likewise; strenghten sanity check.
24013         (ipa_inline): Do not maintain caches.
24014         * ipa-inline.h (node_growth_cache): Remove.
24015         (do_estimate_growth): Remove to ...
24016         (estimate_growth): this one; remove inline version.
24017         (reset_node_growth_cache): Remove.
24019 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
24021         PR ipa/64565
24022         * ipa-inline.c (inline_small_functions): Update callee keys after
24023         resolving speculation
24024         (inline_small_functions): Always check monotonicity of the queue.
24026 2015-01-13  Marek Polacek  <polacek@redhat.com>
24028         PR middle-end/64391
24029         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24031 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
24033         PR rtl-optimization/64286
24034         * ree.c (combine_reaching_defs): Move part of comment earlier,
24035         remove !SCALAR_INT_MODE_P check.
24036         (add_removable_extension): Don't add vector mode
24037         extensions if all uses of the source register aren't the same
24038         vector extensions.
24040 2015-01-13  Renlin Li  <renlin.li@arm.com>
24042         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24043         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24045 2015-01-13  Martin Liska  <mliska@suse.cz>
24047         * ipa-icf.c (sem_function::equals_private): Call new functions
24048         cl_target_option_print_diff and cl_optimization_print_diff.
24049         * optc-save-gen.awk (cl_target_option_print_diff): New function.
24050         (cl_optimization_print_diff): Likewise.
24051         * opth-gen.awk: Likewise.
24053 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
24055         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24056         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24057         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24058         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24059         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24060         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24062 2015-01-13  Andrew Pinski  <apinski@cavium.com>
24064         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24065         instead of src mode.
24067 2015-01-13  Richard Biener  <rguenther@suse.de>
24069         PR lto/64373
24070         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24071         DECL_CONTEXT.
24073 2015-01-13  Andrew Pinski  <apinski@cavium.com>
24075         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24076         volatile mems.
24077         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24079 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
24081         PR middle-end/63974
24082         * cfgexpand.c (expand_computed_goto): Don't call
24083         convert_memory_address here.
24085 2015-01-13  Richard Biener  <rguenther@suse.de>
24087         PR tree-optimization/64406
24088         * tree-loop-distibution.c (pass_loop_distribution::execute):
24089         Reset the SCEV hashtable if we distributed anything.
24091 2015-01-13  Richard Biener  <rguenther@suse.de>
24093         PR tree-optimization/64404
24094         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24095         SLP types for CSEd loads.
24097 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24099         PR tree-optimization/64436
24100         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24101         merge of two symbolic numbers for a bitwise OR to ...
24102         (perform_symbolic_merge): This. Also fix computation of the range and
24103         end of the symbolic number corresponding to the result of a bitwise OR.
24105 2015-01-13  Richard Biener  <rguenther@suse.de>
24107         PR tree-optimization/64568
24108         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24109         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24111 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24113         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24114         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24116 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24118         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24119         target-specific symbol_ref flag.
24120         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24121         resides in rodata section.
24122         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24123         (nds32_encode_section_info): New function.
24125 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24127         * config/nds32/nds32.md (call): Use pseudo instruction bal which
24128         clobbers TA_REGNUM if large code model is specified.
24129         (call_register): Likewise.
24130         (call_immediate): Likewise.
24131         (call_value): Likewise.
24132         (call_value_register): Likewise.
24133         (call_value_immediate): Likewise.
24135 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24137         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24138         (TARGET_CMODEL_MEDIUM): New macro.
24139         (TARGET_CMODEL_LARGE): New macro.
24140         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24141         code model setting in assembly code.
24143 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24145         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24146         Remove MASK_GP_DIRECT flag.
24147         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24148         one of the multilib default options.
24149         * config/nds32/nds32.opt (mgp-direct): Remove.
24150         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24151         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
24153 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
24155         * config/nds32/nds32.opt (mcmodel): Add new option.
24156         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24157         to describe code model.
24159 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
24161         PR target/64479
24162         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24164 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
24166         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24167         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24168         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24169         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24170         __builtin_sh_set_fpscr.
24172 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24174         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24175         after a funtion name just to indicate it is a function.
24176         ([-fsanitize-undefined-trap-on-error]): Likewise.
24177         ([-fdbg-cnt=]): Likewise.
24178         ([-mmemcpy]): Likewise.
24179         ([-mflush-func]): Likewise.
24180         ([-msynci]): Likewise.
24182 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
24184         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24185         example.
24187 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
24189         PR tree-optimization/64563
24190         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24191         instead of != VR_VARYING.
24193         PR target/64513
24194         * config/i386/i386.c (ix86_expand_prologue): Add
24195         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24197         PR tree-optimization/64454
24198         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24199         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24200         for signed or [0, op1 - 1] for unsigned modulo.
24201         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24202         even if op1 does not satisfy integer_pow2p.
24204         PR other/64370
24205         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24207 2015-01-12  Jeff Law  <law@redhat.com>
24209         PR target/64461
24210         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24211         (trunchiqi2, truncsihi2): Similarly.
24213         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24214         rather than calling F.
24216 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24218         * tsan.c (instrument_expr): Use force_gimple_operand.
24219         Use may_be_nonaddressable_p instead of is_gimple_addressable.
24221 2015-01-12  Richard Biener  <rguenther@suse.de>
24223         PR tree-optimization/64530
24224         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24225         back dr1.
24227 2015-01-12  Richard Biener  <rguenther@suse.de>
24229         PR middle-end/64357
24230         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24231         latches properly.
24233 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24235         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24236         Cortex-A17 tuning parameters.
24237         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24239 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24241         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24242         * config/arm/arm.c (arm_macro_fusion_p): New function.
24243         (arm_macro_fusion_pair_p): Likewise.
24244         (TARGET_SCHED_MACRO_FUSION_P): Define.
24245         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24246         (ARM_FUSE_NOTHING): Likewise.
24247         (ARM_FUSE_MOVW_MOVT): Likewise.
24248         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24249         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24250         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24251         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24252         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24253         arm_cortex_a5_tune): Specify fuseable_ops value.
24255 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
24257         PR bootstrap/64561
24258         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24259         test for PIE with copy reloc.
24260         * configure: Regenerated.
24262 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24264         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24265         in gen_rtx_REG.
24266         (arm_tls_descseq_addr): Likewise.
24267         (arm_gen_movmemqi): Likewise.
24268         (arm_expand_epilogue_apcs_frame): Likewise.
24269         (arm_expand_epilogue): Likewise.
24270         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
24271         in gen_rtx_REG.
24273 2015-01-12  Martin Liska  <mliska@suse.cz>
24275         PR ipa/64550
24276         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24277         volatility for correct operands.
24279 2015-01-12  Martin Liska  <mliska@suse.cz>
24281         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24282         indication that a function is not leaf.
24283         (sem_function::compare_polymorphic_p): Likewise.
24285 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24287         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24288         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24289         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24290         fold-const.h, tree-check.h.
24292 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
24294         PR ipa/63967
24295         PR ipa/64425
24296         * ipa-inline.c (compute_uninlined_call_time,
24297         compute_inlined_call_time): Use counts for extra precision when
24298         needed possible.
24299         (big_speedup_p): Fix formating.
24300         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24301         (relative_time_benefit): Remove.
24302         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24303         merge guessed and read profile paths.
24304         (inline_small_functions): Count only !optimize_size functions into
24305         initial size; be more lax about sanity check when profile is used;
24306         be sure to update inlined function profile when profile is read.
24308 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
24310         PR ipa/63470
24311         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24312         cost when edge becomes direct.
24313         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24314         is resolved or when introducing new speculation.
24316 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
24318         PR ipa/64551
24319         PR ipa/64552
24320         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24321         '||' to fix typo issue.
24323         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24324         accept and return NULL.
24326 2015-01-12  Martin Liska  <mliska@suse.cz>
24328         * cgraph.c (cgraph_edge::remove_callee): Move function to header
24329         file for being inlined.
24330         (cgraph_set_edge_callee): Delete.
24331         (cgraph_edge::redirect_callee): Move function to header file
24332         for being inlined.
24333         (cgraph_edge::make_direct): Use new function.
24334         (cgraph_edge::dump_edge_flags): New function created from
24335         static dump_edge_flags function.
24336         (cgraph_node::dump): Use new function.
24337         (cgraph_edge::verify_count_and_frequency): New function created
24338         from verify_edge_count_and_frequency.
24339         (cgraph_edge::verify_corresponds_to_fndecl): New function created
24340         from verify_edge_corresponds_to_fndecl.
24341         (verify_edge_corresponds_to_fndecl): Delete.
24342         (cgraph_node::verify_node): Use new function.
24343         * cgraph.h (cgraph_edge::set_callee): New function.
24344         (cgraph_edge::dump_edge_flags): Likewise.
24345         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24347 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
24349         * ipa-utils.c (estimate_function_body_sizes): Do not
24350         free node params when called late with early=true.
24352 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
24354         * doc/md.texi (Instruction Patterns): Rewrite text for
24355         clarity.
24356         (Example): Likewise.
24358 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
24360         * doc/invoke.texi (Option Summary): Break long lines.
24361         [(-fdiagnostics-color)]: Put long literal in @smallexample
24362         instead of inline.
24363         [(-fsanitize-recover)]: Likewise.
24364         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24365         [(-ffast-math)]: Likewise.
24366         [(--param max-inline-insns-recursive)]: Likewise.
24367         [(--param max-inline-recursive-depth)]: Likewise.
24368         [(-mno-text-section-literals)]: Likewise.
24370 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
24372         * doc/install.texi: Update for libgomp being renamed from "GNU
24373         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24374         Runtime Library".
24375         * doc/sourcebuild.texi: Likewise.
24377 2015-01-10  Anthony Green  <green@moxielogic.com>
24379         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24380         mul.x availability for moxiebox configuration.
24382 2015-01-09  Anthony Green  <green@moxielogic.com>
24384         * config/moxie/moxie.md: Tabify assembly output.
24386 2015-01-09  Anthony Green  <green@moxielogic.com>
24388         * config/moxie/moxie.md (CC_REG): Correct register definition.
24390 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24392         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24393         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
24394         of log files.
24396 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24398         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24400 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
24401             Jakub Jelinek  <jakub@redhat.com>
24403         PR middle-end/64412
24404         * lto-streamer.h (lto_stream_offload_p): New declaration.
24405         * lto-streamer.c (lto_stream_offload_p): New variable.
24406         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24407         at the same time as section_name_prefix.
24408         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24409         if lto_stream_offload_p.
24410         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24411         stream TREE_TARGET_OPTION if lto_stream_offload_p.
24412         (write_ts_function_decl_tree_pointers): Don't
24413         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24414         * tree-streamer-in.c (unpack_value_fields): Don't stream
24415         TREE_TARGET_OPTION in if ACCEL_COMPILER.
24416         (lto_input_ts_function_decl_tree_pointers): Don't stream
24417         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24418         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24419         instead of section_name_prefix string comparisons.
24421 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
24423         PR rtl-optimization/64536
24424         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24425         tablejumps.
24427 2015-01-09  Michael Collison  <michael.collison@linaro.org>
24429         PR tree-optimization/64322
24430         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24431         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24433 2015-01-09  Tom de Vries  <tom@codesourcery.com>
24435         PR rtl-optimization/64539
24436         * regcprop.c (kill_clobbered_values): Factor out of ...
24437         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
24438         instead of note_stores with kill_clobbered_value.
24440 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24442          * ginclude/unwind-arm-common.h: Revert previous commit.
24444 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24446         * config.gcc (arm*-*-freebsd*): New configuration.
24447         * config/arm/freebsd.h: New file.
24448         * config.host: Add extra components for arm*-*-freebsd*.
24449         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24450         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24452 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24454         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24455         for -mcpu=e6500.
24456         * config/rs6000/t-rtems: Add e6500 multilibs.
24458 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24460         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24461         MPC8540.
24463 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24465         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24466         MULTILIB_EXCEPTIONS.
24468 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24470         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24471         MULTILIB_EXCEPTIONS.
24473 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24475         * config/arm/t-rtems-eabi: Rename to...
24476         * config/arm/t-rtems: ...this.
24477         * config/arm/rtems-eabi.h: Rename to...
24478         * config/arm/rtems.h: ...this.
24479         * config.gcc (arm*-*-rtems*): Reflect changes above.
24481 2015-01-09  Richard Biener  <rguenther@suse.de>
24483         PR tree-optimization/64410
24484         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24485         on the LHS.
24486         (execute_update_addresses_taken): Deal with that.
24487         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24488         loads/stores for complex variables.
24490 2015-01-09  Martin Liska  <mliska@suse.cz>
24492         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24493         name comparison.
24494         (func_checker::compare_memory_operand): New function.
24495         (func_checker::compare_operand): Split case to newly
24496         added functions.
24497         (func_checker::compare_cst_or_decl): New function.
24498         (func_checker::compare_gimple_call): Identify
24499         memory operands.
24500         (func_checker::compare_gimple_assign): Likewise.
24501         * ipa-icf-gimple.h: New function.
24503 2015-01-09  Martin Liska  <mliska@suse.cz>
24505         PR ipa/64503
24506         * sreal.c (sreal::dump): Change unsigned format to signed for
24507         m_exp value.
24508         (sreal::to_double): Replace exp2 with scalbln.
24510 2015-01-09  Martin Liska  <mliska@suse.cz>
24512         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24513         * ipa-icf.c (sem_function::equals_private): Add support for target and
24514         (sem_item_optimizer::merge_classes): Remove redundant function
24515         optimization flags comparison.
24516         * tree.h (target_opts_for_fn): New function.
24518 2015-01-09  Tom de Vries  <tom@codesourcery.com>
24520         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24522 2015-01-09  Kito Cheng  <kito@0xlab.org>
24524         PR rtl-optimization/64348
24525         * lra-constraints.c (split_reg): Fix caller-save store/restore
24526         instruction generation.
24528 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
24530         PR gcov-profile/61790
24531         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24532         long long.  Fallback to int64_t if host doesn't have long long and
24533         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
24535 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24537         PR tree-optimization/63989
24538         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24539         from 1000 to 10000.
24540         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24541         (get_stridx): If we don't have a record for certain SSA_NAME,
24542         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24543         constant offset, call get_stridx_plus_constant.
24544         (get_stridx_plus_constant): New function.
24545         (zero_length_string): Don't use get_stridx here.
24547         PR target/55023
24548         PR middle-end/64388
24549         * dse.c (struct insn_info): Mention frame_read set also
24550         before reload for tail calls on some targets.
24551         (scan_insn): Revert 2014-12-22 change.  Set frame_read
24552         also before reload for tail calls if
24553         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
24554         instead of add_non_frame_wild_read for non-const/memset
24555         tail calls after reload.
24557 2015-01-08  Jason Merrill  <jason@redhat.com>
24559         * ubsan.c (do_ubsan_in_current_function): New.
24560         (pass_ubsan::gate): Use it.
24561         * ubsan.h: Declare it.
24562         * convert.c (convert_to_integer): Use it.
24564 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24566         PR target/64338
24567         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24568         compare_code when it is unconditionally overwritten afterwards.
24569         Use ix86_reverse_condition instead of reverse_condition.  Don't
24570         change code if *reverse_condition* returned UNKNOWN and don't
24571         swap ct/cf and negate diff in that case.
24573 2015-01-08  Mike Stump  <mikestump@comcast.net>
24575         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24576         (pass_tsan_O0::gate): Likewise.
24577         * extend.texi (Function Attributes): Add no_sanitize_thread
24578         documentation.
24580 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
24582         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24583         for registering builtins.
24584         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24585         add -fopenmp to the argv_obstack used when invoking
24586         compile_for_target.
24588         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24589         add "-m32" or "-m64" to argv_obstack.
24590         (generate_host_descr_file): Likewise, when invoking host_compiler.
24591         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24592         ld.
24594 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
24596         * config/sh/sh-mem.cc: Use constant as second operand when emitting
24597         tstsi_t insns.
24599 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
24601         PR target/55212
24602         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24603         constant load if constant operand fits into I08.
24605 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24607         PR sanitizer/64336
24608         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24609         and TREE_THIS_VOLATILE for MEM_REFs.
24610         (build5_stat): Fix up initialization of TREE_READONLY and
24611         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24613 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
24615         PR target/64533
24616         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24617         of r for the second alternative of the destination operand.
24619 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
24621         PR target/36557
24622         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24624 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24626         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24627         keywords.
24628         ([-fivar-visibility], [-fvisibility]): Likewise.
24630 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24632         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24633         the file where @code, @command, etc is more appropriate.
24635 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
24637         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24638         of -mrecip= documentation.
24640 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24642         PR target/64505
24643         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24644         correct reload handler if -m32 -mpowerpc64 is used.
24646 2015-01-06  Tom de Vries  <tom@codesourcery.com>
24648         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24650 2015-01-08  Christian Bruel  <christian.bruel@st.com>
24652         PR target/64507
24653         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24655 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24657         PR tree-optimization/63259
24658         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24659         if optab exists for 16bit byteswap.
24661 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
24663         * opts.c (common_handle_option): Add support for
24664         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24665         * doc/invoke.texi: Document -fno-sanitize=all,
24666         -f{,no-}sanitize-recover=all.  Document that
24667         -fsanitize=float-cast-overflow is not enabled
24668         by -fsanitize=undefined.  Fix up documentation
24669         of -f{,no-}sanitize-recover.
24671 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
24673         * config.gcc: Add Visium support.
24674         * configure.ac: Likewise.
24675         * configure: Regenerate.
24676         * doc/extend.texi (interrupt attribute): Add Visium.
24677         * doc/invoke.texi: Document Visium options.
24678         * doc/install.texi: Document Visium target.
24679         * doc/md.texi: Document Visium constraints.
24680         * common/config/visium: New directory.
24681         * config/visium: Likewise.
24683 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
24685         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24686         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24688 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
24690         * combine.c (combine_validate_cost): Do not count the cost of a
24691         split I2 twice.  Do not display it twice in the dump, either.
24693 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24695         Revert parts of r219199.
24696         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24697         <inttypes.h>.
24698         ([-Wtraditional]): Restore markup on <limits.h>.
24700 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
24702         PR c++/31397
24703         * doc/invoke.texi: Document -Wsuggest-override.
24705 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
24707         PR rtl-optimization/64287
24708         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24709         (process_options): Disable flag_ipa_ra if profiling.
24711 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24713         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24715 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
24717         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24718         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24719         put under #if TARGET_LOOPS guard.
24721 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
24723         * config/i386/i386.c (output_387_binary_op): Use std::swap.
24725 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
24727         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24728         * rtl.h (refers_to_regno_p): Add overload.
24729         * cse.c: Use it.
24730         * bt-load.c: Likewise.
24731         * combine.c: Likewise.
24732         * df-scan.c: Likewise.
24733         * sched-deps.c: Likewise.
24734         * config/s390/s390.c: Likewise.
24735         * config/m32r/m32r.c: Likewise.
24736         * config/rs6000/spe.md: Likewise.
24737         * config/rs6000/rs6000.c: Likewise.
24738         * config/pa/pa.c: Likewise.
24739         * config/stormy16/stormy16.c: Likewise.
24740         * config/cris/cris.c: Likewise.
24741         * config/arc/arc.md: Likewise.
24742         * config/arc/arc.c: Likewise.
24743         * config/sh/sh.md: Likewise.
24744         * config/sh/sh.c: Likewise.
24745         * config/frv/frv.c: Likewise.
24747 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24749         PR sanitizer/64265
24750         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24751         call as cleanup of the whole body.
24752         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24753         * tsan.c (replace_func_exit): New function.
24754         (instrument_func_exit): Moved earlier.
24755         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24756         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24757         been found.
24758         (tsan_pass): Don't call instrument_func_exit.
24759         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24760         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24761         inlining.
24763         PR sanitizer/64344
24764         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24765         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24766         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
24767         if the result is integer_zerop, return NULL_TREE.
24768         * convert.c (convert_to_integer): Pass expr as ARG.
24770         PR tree-optimization/64465
24771         * tree-inline.c (redirect_all_calls): During inlining
24772         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
24773         changed the stmt to a non-throwing call.
24775 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24777         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
24778         etc markup throughout the file.
24780 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24782         Enable experimental TSAN support for Ada.
24783         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
24785 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24787         PR tree-optimization/64494
24788         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
24789         clear SSA_NAME_ANTI_RANGE_P flag.
24791 2015-01-05  Marek Polacek  <polacek@redhat.com>
24793         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
24795 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24797         Update copyright years.
24799         * gcc.c (process_command): Update copyright notice dates.
24800         * gcov-dump.c: Ditto.
24801         * gcov.c: Ditto.
24802         * doc/cpp.texi: Bump @copying's copyright year.
24803         * doc/cppinternals.texi: Ditto.
24804         * doc/gcc.texi: Ditto.
24805         * doc/gccint.texi: Ditto.
24806         * doc/gcov.texi: Ditto.
24807         * doc/install.texi: Ditto.
24808         * doc/invoke.texi: Ditto.
24810         * auto-profile.c, auto-profile.h: Fix up Copyright line.
24812 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
24814         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
24815         verb tense, etc.
24816         ([-fvtable-verify], [-fvtv-debug]): Likewise.
24817         ([-Wabi]): Likewise.
24818         ([-fmessage-length]): Likewise.
24819         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
24820         ([-Wno-discarded-qualifiers]): Likewise.
24821         ([-Wnodiscarded-array-qualifiers]): Likewise.
24822         ([-Wno-virtual-move-assign]): Likewise.
24823         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
24824         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
24825         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
24826         ([-fsanitize-undefined-trap-on-error]): Likewise.
24827         ([-floop-interchange]): Likewise.
24828         ([-ftree-coalesce-inlined-vars]): Likewise.
24829         ([-fvect-cost-model]): Likewise.
24830         ([-flto]): Likewise.
24831         ([--param]): Likewise.
24832         (Spec Files): Likewise.
24833         ([-mstrict-align]): Likewise.
24834         ([-mfix-cortex-a53-835769]): Likewise.
24835         ([-march], [-mtune]): Likewise.
24836         ([-mpic-register]): Likewise.
24837         ([-munaligned-access]): Likewise.
24838         ([-msp8]): Likewise.
24839         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
24840         (AVR Built-in Macros): Likewise.
24841         ([-mpreferred-stack-boundary]): Likewise.
24842         ([-mtune-crtl]): Likewise.
24843         ([-mashf]): Likewise.
24844         ([-mmcu=]): Likewise.
24845         ([-minrt]): Likewise.
24846         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
24847         ([-mupper-regs]): Likewise.
24848         ([-matomic-model]): Likewise.
24849         ([-mdiv]): Likewise.
24850         ([-mzdcbranch]): Likewise.
24851         ([-mdisable-callt]): Likewise.
24852         ([-msoft-float]): Likewise.
24853         ([-m8byte-align]): Likewise.
24854         ([-fstack-reuse]): Likewise.
24856 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24858         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
24859         Fix markup, light copy-editing.
24860         ([-fauto-profile]): Rewrite to fix formatting and content
24861         problems.
24863 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24865         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
24866         Copy-edit description.
24867         ([-fisolate-erroneous-paths-attribute]): Likewise.
24868         * common.opt (fisolate-erroneous-paths-dereference):
24869         Copy-edit description.
24870         (fisolate-erroneous-paths-attribute): Likewise.
24872 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24874         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
24875         tidy grammar.
24877 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24879         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
24880         ([-fvtv-debug]): Likewise.
24881         ([-Wc++-compat]): Likewise.
24882         ([-Wc++11-compat]): Likewise.
24883         ([-Wc++14-compat]): Likewise.
24884         ([-Wno-sized-deallocation]): Likewise.
24885         ([-femit-class-debug-always]): Likewise.
24886         ([-femit-struct-debug-detailed]): Likewise.
24887         ([-fno-keep-inline-dllexport]): Likewise.
24888         ([-fira-algorithm]): Likewise.
24889         ([-fira-region]): Likewise.
24890         ([-flra-remat]): Likewise.
24891         ([-fipa-ra]): Likewise.
24892         ([-fhoist-adjacent-loads]): Likewise.
24893         ([-fisolate-erroneous-paths-dereference]): Likewise.
24894         ([-fisolate-erroneous-paths-attribute]): Likewise.
24895         ([-ftree-switch-conversion]): Likewise.
24896         ([-ftree-tail-merge]): Likewise.
24897         ([-ftree-loop-if-convert]): Likewise.
24898         ([-ftree-loop-if-convert-stores]): Likewise.
24899         ([-ftree-loop-distribution]): Likewise.
24900         ([-ftree-loop-distribute-patterns]): Likewise.
24901         ([-flto-compression-level]): Likewise.
24902         ([-flto-report]): Likewise.
24903         ([-flto-report-wpa]): Likewise.
24904         ([-fuse-linker-plugin]): Likewise.
24905         ([-mfix-cortex-a53-835769]): Likewise.
24906         ([-mno-fix-cortex-a53-835769]): Likewise.
24907         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
24908         explicit listing; add a note to the discussion indicating they
24909         exist.  Reorder table to group similar options.  Add missing
24910         @opindex entries.  Add @need commands throughout the table to
24911         allow it to be split across multiple pages.
24912         ([-m8bit-idiv]): Fix @opindex.
24913         ([-mavx256-split-unaligned-load]): Likewise.
24914         ([-mavx256-split-unaligned-store]): Likewise.
24915         ([-mstack-protector-guard]): Likewise.
24916         ([-mcpu=]): Likewise.
24917         ([-mcpu]): Likewise.
24918         ([-mpointer-size=]): Likewise.
24920 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
24922         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
24923         instead of `m' constraint.  Likewise for unnamed movb comparison
24924         patterns using reg_before_reload_operand predicate.
24925         * config/pa/predicates.md (reg_before_reload_operand): Tighten
24926         predicate to reject register index and LO_SUM DLT memory forms
24927         after reload.
24929 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24931         * doc/invoke.texi (Option Summary): Fix spelling of
24932         -fdevirtualize-at-ltrans.
24933         ([-fdevirtualize]): Fix markup.
24934         ([-fdevirtualize-speculatively]): Fix typo.
24935         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
24936         implementor-speaky.
24937         * common.opt (fdevirtualize-at-ltrans): Likewise.
24938         * ipa-devirt.c: Fix typos in comments throughout the file.
24939         (ipa_devirt): Fix typos in format strings for dump output.
24941 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24943         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
24944         discussion of defaults, light copy-editing.
24946 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24948         * tsan.c (instrument_expr): corrected previous checkin.
24950 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24952         Instrument bit field and unaligned accesses for TSAN.
24953         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
24954         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
24955         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
24956         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
24957         unaligned memory regions.
24959 2015-01-01  Anthony Green  <green@moxielogic.com>
24961         * config/moxie/predicates.md (moxie_general_movsrc_operand):
24962         Restrict move source register offsets to 16 bits.
24964 Copyright (C) 2015 Free Software Foundation, Inc.
24966 Copying and distribution of this file, with or without modification,
24967 are permitted in any medium without royalty provided the copyright
24968 notice and this notice are preserved.