[doc][13/14] Document AArch64 target attributes and pragmas
[official-gcc.git] / gcc / ChangeLog
blob798b11af69a92e1b735a4ee894e49d0c4cf06776
1 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * doc/extend.texi (AArch64 Function Attributes): New node.
4         (AArch64 Pragmas): Likewise.
6 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9         Initialize simd builtins if TARGET_SIMD.
10         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
11         Make sure that the builtins are initialized only once no matter how
12         many times the function is called.
13         (aarch64_init_builtins): Unconditionally initialize crc builtins.
14         (aarch64_relayout_simd_param): New function.
15         (aarch64_simd_expand_args): Use above during argument expansion.
16         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17         simd builtins if TARGET_SIMD.
18         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
19         prototype.
20         (aarch64_relayout_simd_types): Likewise.
22 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
25         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
26         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
27         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
28         static keyword.
29         (aarch64_reset_previous_fndecl): New function.
30         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
31         the string.
32         * config/aarch64/aarch64-c.c: New file.
33         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
34         Push and pop options at beginning and end.  Remove ifdef
35         __ARM_FEATURE_CRC32.
36         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
37         Add pragma +nothing+simd and +nothing+crypto where appropriate.
38         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
39         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
40         Define prototype.
41         (aarch64_register_pragmas): Likewise.
42         (aarch64_reset_previous_fndecl): Likewise.
43         (aarch64_process_target_attr): Likewise.
44         (aarch64_override_options_internal): Likewise.
46 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
48         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
49         New function.
50         (aarch64_can_inline_p): Likewise.
51         (TARGET_CAN_INLINE_P): Define.
53 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
55         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
56         Remove static.  Handle OPT_mgeneral_regs_only,
57         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
58         OPT_momit_leaf_frame_pointer.
59         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
60         (aarch64_attr_opt_type): New enum.
61         (aarch64_attribute_info): New struct.
62         (aarch64_handle_attr_arch): New function.
63         (aarch64_handle_attr_cpu): Likewise.
64         (aarch64_handle_attr_tune): Likewise.
65         (aarch64_handle_attr_isa_flags): Likewise.
66         (aarch64_attributes): New table.
67         (aarch64_process_one_target_attr): New function.
68         (num_occurences_in_str): Likewise.
69         (aarch64_process_target_attr): Likewise.
70         (aarch64_option_valid_attribute_p): Likewise.
71         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
72         * config/aarch64/aarch64-protos.h: Include input.h
73         (aarch64_handle_option): Declare prototype.
75 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
77         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
78         * config/aarch64/aarch64.c: Include target-globals.h
79         (aarch64_previous_fndecl): New variable.
80         (aarch64_set_current_function): New function.
81         (TARGET_SET_CURRENT_FUNCTION): Define.
83 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
85         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
86         (explicit_arch): Likewise.
87         (x_aarch64_isa_flags): Likewise.
88         (mgeneral-regs-only): Mark as Save.
89         (mfix-cortex-a53-835769): Likewise.
90         (mcmodel=): Likewise.
91         (mstrict-align): Likewise.
92         (momit-leaf-frame-pointer): Likewise.
93         (mtls-dialect): Likewise.
94         (master=): Likewise.
95         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
96         (aarch64_isa_flags): Remove extern declaration.
97         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
98         to indicate success or failure.
99         (aarch64_validate_march): Likewise.
100         (aarch64_validate_mtune): Likewise.
101         (aarch64_isa_flags): Delete.
102         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
103         instead of aarch64_isa_flags.
104         (aarch64_get_tune_cpu): New function.
105         (aarch64_get_arch): Likewise.
106         (aarch64_override_options): Use above and set up explicit_tune_core
107         and explicit_arch.
108         (aarch64_print_extension): Move earlier in file.  Add isa_flags
109         argument and use that instead of the global aarch64_isa_flags.
110         (aarch64_option_save): New function.
111         (aarch64_option_restore): Likewise.
112         (aarch64_option_print): Likewise.
113         (aarch64_declare_function_name): Likewise.
114         (aarch64_start_file): Delete.
115         (TARGET_ASM_FILE_START): Do not define.
116         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
117         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
118         Declare prototype.
120 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
122         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
123         flag_omit_leaf_frame_pointer to 2.
125 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
127         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
128         define to 0 or 1.
129         (TARGET_FIX_ERR_A53_835769): New macro.
130         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
131         handling of opts->x_aarch64_fix_a53_err835769.
132         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
133         than aarch64_fix_a53_err835769.
134         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
135         * config/aarch64/aarch64-linux.h: Likewise.
137 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
139         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
140         ix86_expand_int_movcc as boolean.
142 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
144         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
145         (aarch64_cpu_string): Likewise.
146         (aarch64_tune_string): Likewise.
147         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
148         (aarch64_parse_extension): Return aarch64_parse_opt_result.
149         Add extra argument to put result into.
150         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
151         (aarch64_parse_cpu): Add arguments to put results into. Return
152         aarch64_parse_opt_result.
153         (aarch64_parse_tune): Likewise.
154         (aarch64_override_options_after_change_1): New function.
155         (aarch64_override_options_internal): New function.
156         (aarch64_validate_mcpu): Likewise.
157         (aarch64_validate_march): Likewise.
158         (aarch64_validate_mtune): Likewise.
159         (aarch64_override_options): Update to reflect above changes.
160         Move some logic into aarch64_override_options_internal.
161         Initialize target_option_default_node and target_option_current_node.
162         (aarch64_override_options_after_change): Move logic into
163         aarch64_override_options_after_change_1 and call it with global_options.
164         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
165         flag values from that.
167 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
169         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
170         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
171         * config/aarch64/aarch64.c (struct processor): Add arch field.
172         (all_architectures): Handle above, move above all_cores.
173         (all_cores): Handle above.
174         (aarch64_parse_arch): Handle above changes.
175         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
176         above.  Update comments.
177         (armv8.1-a): Likewise.
178         * config/aarch64/aarch64-cores.def: Update according to above.
179         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
180         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
181         aarch64_arch_driver_info.
183 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
185         * config/aarch64/aarch64.c (struct processor): Add ident field.
186         Rename core sched_core.
187         (all_cores): Handle above changes.
188         (all_architectures): Likewise.
189         (aarch64_parse_arch): Likewise.
190         (aarch64_override_options): Likewise.
192 2015-08-04  Richard Biener  <rguenther@suse.de>
194         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
195         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
196         comparisons embedded in [VEC_]COND_EXPRs.
198 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
200         * tree-if-conv.c: Fix various typos in comments.
201         * tree-vect-stmts.c: Likewise.
203 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
205         PR tree-optimization/67043
206         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
207         preheader after hoisting invariant in it.
208         (find_defs): Force recomputation of all luids.
210 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
212         * config/rs6000/htm.md (tabort.): Restrict the source operand to
213         using a base register.
215 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
217         * main.c (main): Pass in NULL for toplev's external_timer.
218         * timevar.c: Include coretypes.h.
219         (class timer::named_items): New.
220         (timer::named_items::named_items): New.
221         (timer::named_items::~named_items): New.
222         (timer::named_items::push): New.
223         (timer::named_items::pop): New.
224         (timer::named_items::print): New.
225         (timer::timer): Initialize field "m_jit_client_items".
226         (timer::~timer): New.
227         (timer::push): Move bulk of implementation to...
228         (timer::push_internal): ...here.  New function.
229         (timer::pop): Move bulk of implementation to...
230         (timer::pop_internal): ...here.  New function.
231         (timer::push_client_item): New.
232         (timer::pop_client_item): New.
233         (timer::print_row): New function, taken from timer::print.
234         (timer::print): Print "GCC items" header if we also have client
235         items.  Move row-printing to timer::print_row.  Print any client
236         items.
237         (timer::get_topmost_item_name): New method.
238         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
239         (TV_JIT_CLIENT_CODE): New.
240         * timevar.h (timer::push_client_item): New declaration.
241         (timer::pop_client_item): New declaration.
242         (timer::get_topmost_item_name): New method.
243         (timer::push_internal): New declaration.
244         (timer::pop_internal): New declaration.
245         (timer::print_row): New declaration.
246         (timer::named_items): New declaration.
247         (timer::m_jit_client_items): New field.
248         (timer): Add friend class named_items.
249         (auto_timevar::auto_timevar): Add timer param.
250         (auto_timevar::~auto_timevar): Use field "m_timer".
251         (auto_timevar::m_timer): New field.
252         * toplev.c (initialize_rtl): Add g_timer as param when
253         constructing auto_timevar instance.
254         (toplev::toplev): Add "external_timer" param, and use it to
255         initialize the "g_timer" global if non-NULL.
256         (toplev::~toplev): If this created "g_timer", delete it.
257         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
258         with "external_timer" timer *.
260 2015-08-03  Alexander Basov <coohpt@gmail.com>
262         PR middle-end/64744
263         PR middle-end/48470
264         PR middle-end/43404
265         * cfgexpand.c (expand_one_var): Add check if stack is going to
266         be used in naked function.
267         * expr.c (expand_expr_addr_expr_1): Remove excess checking
268         whether expression should not reside in MEM.
269         * function.c (use_register_for_decl): Do not use registers for
270         non-register things (volatile, float, BLKMode) in naked functions.
272 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
274         PR target/67060
275         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
276         Adjust splits to match new pattern.
278 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
280         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
281         (VEC_M): Likewise.
282         (VEC_N): Likewise.
283         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
284         point in VSX registers.
286         * config/rs6000/constraints.md (wb constraint): Document unused
287         w<x> constraint.
288         (we constraint): Likewise.
289         (wo constraint): Likewise.
290         (wp constraint): New constraint for IEEE 128-bit floating point in
291         VSX registers.
292         (wq constraint): Likewise.
294         * config/rs6000/predicates.md (easy_fp_constant): Add support for
295         IEEE 128-bit floating point in VSX registers.
296         (easy_scalar_constant): Likewise.
298         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
299         constraints (wp, wq) for IEEE 128-bit floating point in VSX
300         registers.
301         (rs6000_init_hard_regno_mode_ok): Likewise.
303         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
304         floating point in VSX registers.
305         (VSX_L): Likewise.
306         (VSX_M): Likewise.
307         (VSX_M2): Likewise.
308         (VSm): Likewise.
309         (VSs): Likewise.
310         (VSr): Likewise.
311         (VSa): Likewise.
312         (VSv): Likewise.
313         (vsx_le_permute_<mode>): Add support to properly swap bytes for
314         IEEE 128-bit floating point in VSX registers on little endian.
315         (vsx_le_undo_permute_<mode>): Likewise.
316         (vsx_le_perm_load_<mode>): Likewise.
317         (vsx_le_perm_store_<mode>): Likewise.
318         (splitters for IEEE 128-bit fp moves): Likewise.
320         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
321         wq constraints.
323         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
324         floating point in VSX registers.
325         (VM2): Likewise.
327         * doc/md.text (Machine Constraints): Document wp and wq
328         constraints on PowerPC.
330 2015-08-03  Jeff Law  <law@redhat.com>
332         PR middle-end/66314
333         PR gcov-profile/66899
334         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
335         iterate over the jump threading paths when an element in the
336         jump threading paths array is eliminated.
338 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
340         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
342 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
344         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
345         is_use_properly_guarded the variable def_preds.  Free its
346         contents before returning.
347         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
348         (is_use_properly_guarded): Replace local variable def_preds with
349         a parameter.  Adjust accordingly.  Only update *def_preds if it's
350         the empty vector.
352 2015-08-03  Richard Biener  <rguenther@suse.de>
354         * genmatch.c (simplify::for_subst_vec): New member.
355         (binary_ok): New helper for for lowering.
356         (lower_for): Delay substituting operators into result expressions
357         if we can merge the results eventually again.
358         (capture_info::walk_result): Adjust for user_id appearing as
359         result expression operator.
360         (expr::gen_transform): Likewise.
361         (dt_simplify::gen_1): Likewise.
362         (dt_simplify::gen): Pass not substituted operators to tail
363         functions or initialize local variable with it.
364         (decision_tree::gen): Adjust function signature.
365         * match.pd: Fix tests against global code and add default
366         cases to switch stmts.
368 2015-08-03  Richard Biener  <rguenther@suse.de>
370         * genmatch.c (dt_simplify::gen): Create captures array
371         with an initializer.
373 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
375         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
376         the host compiler is affected by placement new aliasing bug.
377         * configure: Regenerate.
378         * Makefile.in (ALIASING_FLAGS): New variable.
379         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
381 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
383         PR target/66731
384         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
385         (negmulsf3_vfp): Likewise.
386         (muldf3negdf_vfp): Disable for -frounding-math.
387         (mulsf3negsf_vfp): Likewise.
388         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
389         fix MULT cost with -frounding-math.
391 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
393         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
394         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
395         explicit.  Prefer to add the flag whenever possible.
396         (noce_process_if_block): Try noce_try_store_flag_constants before
397         noce_try_cmove.
399 2015-08-03  Richard Biener  <rguenther@suse.de>
401         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
402         New hash-map to record equivalent transforms.
403         (dt_node::analyze): Populate the equivalent transforms hash-map.
404         (dt_simplify::info): Add reference to hash-map entry.
405         (dt_simplify::gen): If we have split out a function for the
406         transform, generate a call to it.
407         (sinfo_hashmap_traits::hash): New function.
408         (compare_op): New helper function for ...
409         (sinfo_hashmap_traits::equal_keys): ... this new function.
410         (decision_tree::gen): Split out common equivalent transforms
411         into functions.
413 2015-08-03  Richard Biener  <rguenther@suse.de>
415         * gimple-fold.c (fold_gimple_assign): Remove folding of
416         the comparison in COND_EXPRs.
418 2015-08-03  Richard Biener  <rguenther@suse.de>
420         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
421         on the rhs of assignments first simplify the embedded
422         GENERIC condition.
424 2015-08-03  Richard Biener  <rguenther@suse.de>
426         PR tree-optimization/66917
427         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
428         field.
429         (DR_VECT_AUX): New macro.
430         (set_dr_misalignment): Adjust.
431         (dr_misalignment): Likewise.
432         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
433         Compute whether the base is at least element aligned.
434         * tree-vect-stmts.c (ensure_base_align): Adjust.
435         (vectorizable_store): If the base is not element aligned
436         preserve alignment of the original access if misalignment is unknown.
437         (vectorizable_load): Likewise.
439 2015-08-02  Martin Sebor  <msebor@redhat.com>
441         * c-family/c.opt (-Wframe-address): New warning option.
442         * doc/invoke.texi (Wframe-address): Document it.
443         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
444         Clarify possible effects of calling the functions with non-zero
445         arguments and mention -Wframe-address.
446         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
448 2015-08-01  Michael Collison  <michael.collison@linaro.org
449             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
451         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
452         (*arm_umin_cmp): Likewise.
454 2015-08-01  Caroline Tice  <cmtice@google.com>
456         PR 66521
457         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
458         global variables.
459         (vtbl_find_mangled_name):  New function.
460         (vtbl_register_mangled_name):  New function.
461         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
462         mangled name in mangled name vectors.
463         (find_or_create_vtbl_map_node):  Ditto.
464         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
465         update recursion_depth on function entry; pass it to every recursive
466         call; automatically exit if depth > 25 (give up looking at that point).
467         (verify_bb_vtables):  Initialize recursion_depth and pass it to
468         var_is_used_for_virtual_call_p.
469         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
470         global variable decls.
471         (vtbl_register_mangled_name): New extern function decl.
473 2015-08-01  Tom de Vries  <tom@codesourcery.com>
475         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
476         function.
477         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
478         Declare.
479         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
480         operation_no_trapping_overflow.  Allow non-overflow operations.
481         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
482         operations.
484 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
486         PR target/67049
487         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
489 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
491         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
492         Enable for TARGET_32BIT.
493         (*if_move_neg): Likewise.
495 2015-07-31  Nick Clifton  <nickc@redhat.com>
497         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
498         Returns true for __model__.
499         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
501 2015-07-31  Alan Modra  <amodra@gmail.com>
503         PR target/66870
504         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
505         (rs6000_emit_prologue): Set it.
506         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
508 2015-07-31  Richard Biener  <rguenther@suse.de>
510         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
511         -> X == (C1 ^ C2) which is already implemented in match.pd.
512         Remove redundant dispatching to fold_relational_const.
513         Move unordered self and NaN compares ...
514         * match.pd: ... as patterns here.  Remove some stray captures
515         and add a comment.
517 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
519         * config/i386/i386.c
520         (bdesc_special_args): Convert mask type from signed to unsigned for
521         masked builtins.
522         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
523         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
524         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
525         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
526         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
527         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
528         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
529         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
530         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
531         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
532         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
533         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
534         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
535         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
536         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
537         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
538         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
539         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
540         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
541         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
542         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
543         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
544         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
545         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
546         * config/i386/i386-builtin-types.def
547         (V16QI_FTYPE_V16SI): Remove.
548         (V8DF_FTYPE_V8SI): Ditto.
549         (V8HI_FTYPE_V8DI): Ditto.
550         (V8SI_FTYPE_V8DI): Ditto.
551         (V8SF_FTYPE_V8DF): Ditto.
552         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
553         (V16HI_FTYPE_V16SI): Ditto.
554         (V16SF_FTYPE_V16HI): Ditto.
555         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
556         (V16SF_FTYPE_V16SI): Ditto.
557         (V4DI_FTYPE_V4DI): Ditto.
558         (V16SI_FTYPE_V16SF): Ditto.
559         (V16SF_FTYPE_FLOAT): Ditto.
560         (V8DF_FTYPE_DOUBLE): Ditto.
561         (V8DI_FTYPE_INT64): Ditto.
562         (V8DI_FTYPE_V4DI): Ditto.
563         (V16QI_FTYPE_V8DI): Ditto.
564         (UINT_FTYPE_V4SF): Ditto.
565         (UINT64_FTYPE_V4SF): Ditto.
566         (UINT_FTYPE_V2DF): Ditto.
567         (UINT64_FTYPE_V2DF): Ditto.
568         (V16SI_FTYPE_V16SI): Ditto.
569         (V8DI_FTYPE_V8DI): Ditto.
570         (V16SI_FTYPE_PV4SI): Ditto.
571         (V16SF_FTYPE_PV4SF): Ditto.
572         (V8DI_FTYPE_PV2DI): Ditto.
573         (V8DF_FTYPE_PV2DF): Ditto.
574         (V4DI_FTYPE_PV2DI): Ditto.
575         (V4DF_FTYPE_PV2DF): Ditto.
576         (V16SI_FTYPE_PV2SI): Ditto.
577         (V16SF_FTYPE_PV2SF): Ditto.
578         (V8DI_FTYPE_PV4DI): Ditto.
579         (V8DF_FTYPE_PV4DF): Ditto.
580         (V8SF_FTYPE_FLOAT): Ditto.
581         (V4SF_FTYPE_FLOAT): Ditto.
582         (V4DF_FTYPE_DOUBLE): Ditto.
583         (V8SF_FTYPE_PV4SF): Ditto.
584         (V8SI_FTYPE_PV4SI): Ditto.
585         (V4SI_FTYPE_PV2SI): Ditto.
586         (V8SF_FTYPE_PV2SF): Ditto.
587         (V8SI_FTYPE_PV2SI): Ditto.
588         (V16SF_FTYPE_PV8SF): Ditto.
589         (V16SI_FTYPE_PV8SI): Ditto.
590         (V8DI_FTYPE_V8SF): Ditto.
591         (V4DI_FTYPE_V4SF): Ditto.
592         (V2DI_FTYPE_V4SF): Ditto.
593         (V64QI_FTYPE_QI): Ditto.
594         (V32HI_FTYPE_HI): Ditto.
595         (V8UHI_FTYPE_V8UHI): Ditto.
596         (V16UHI_FTYPE_V16UHI): Ditto.
597         (V32UHI_FTYPE_V32UHI): Ditto.
598         (V2UDI_FTYPE_V2UDI): Ditto.
599         (V4UDI_FTYPE_V4UDI): Ditto.
600         (V8UDI_FTYPE_V8UDI): Ditto.
601         (V4USI_FTYPE_V4USI): Ditto.
602         (V8USI_FTYPE_V8USI): Ditto.
603         (V16USI_FTYPE_V16USI): Ditto.
604         (V2DF_FTYPE_V2DF_UINT64): Ditto.
605         (V2DI_FTYPE_V2DF_V2DF): Ditto.
606         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
607         (V8DF_FTYPE_V8DF_V8DI): Ditto.
608         (V4SF_FTYPE_V4SF_UINT64): Ditto.
609         (V4SI_FTYPE_V4SF_V4SF): Ditto.
610         (V16SF_FTYPE_V16SF_V16SI): Ditto.
611         (V64QI_FTYPE_V32HI_V32HI): Ditto.
612         (V32HI_FTYPE_V16SI_V16SI): Ditto.
613         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
614         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
615         (V32HI_FTYPE_V64QI_V64QI): Ditto.
616         (V32HI_FTYPE_V32HI_V32HI): Ditto.
617         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
618         (V16SI_FTYPE_V16SI_V4SI): Ditto.
619         (V16SI_FTYPE_V16SI_V16SI): Ditto.
620         (V16SI_FTYPE_V32HI_V32HI): Ditto.
621         (V16SI_FTYPE_V16SI_SI): Ditto.
622         (V8DI_FTYPE_V8DI_V8DI): Ditto.
623         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
624         (V8DI_FTYPE_V16SI_V16SI): Ditto.
625         (V8DI_FTYPE_V8DI_V2DI): Ditto.
626         (QI_FTYPE_QI): Ditto.
627         (SI_FTYPE_SI): Ditto.
628         (DI_FTYPE_DI): Ditto.
629         (QI_FTYPE_QI_QI): Ditto.
630         (QI_FTYPE_QI_INT): Ditto.
631         (HI_FTYPE_HI_INT): Ditto.
632         (SI_FTYPE_SI_INT): Ditto.
633         (DI_FTYPE_DI_INT): Ditto.
634         (HI_FTYPE_V16QI_V16QI): Ditto.
635         (SI_FTYPE_V32QI_V32QI): Ditto.
636         (DI_FTYPE_V64QI_V64QI): Ditto.
637         (QI_FTYPE_V8HI_V8HI): Ditto.
638         (HI_FTYPE_V16HI_V16HI): Ditto.
639         (SI_FTYPE_V32HI_V32HI): Ditto.
640         (QI_FTYPE_V4SI_V4SI): Ditto.
641         (QI_FTYPE_V8SI_V8SI): Ditto.
642         (QI_FTYPE_V2DI_V2DI): Ditto.
643         (QI_FTYPE_V4DI_V4DI): Ditto.
644         (QI_FTYPE_V8DI_V8DI): Ditto.
645         (HI_FTYPE_V16SI_V16SI): Ditto.
646         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
647         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
648         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
649         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
650         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
651         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
652         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
653         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
654         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
655         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
656         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
657         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
658         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
659         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
660         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
661         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
662         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
663         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
664         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
665         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
666         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
667         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
668         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
669         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
670         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
671         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
672         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
673         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
674         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
675         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
676         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
677         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
678         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
679         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
680         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
681         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
682         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
683         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
684         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
685         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
686         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
687         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
688         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
689         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
690         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
691         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
692         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
693         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
694         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
695         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
696         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
697         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
698         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
699         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
700         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
701         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
702         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
703         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
704         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
705         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
706         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
707         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
708         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
709         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
710         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
711         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
712         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
713         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
714         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
715         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
716         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
717         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
718         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
719         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
720         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
721         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
722         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
723         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
724         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
725         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
726         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
727         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
728         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
729         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
730         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
731         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
732         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
733         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
734         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
735         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
736         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
737         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
738         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
739         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
740         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
741         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
742         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
743         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
744         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
745         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
746         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
747         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
748         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
749         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
750         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
751         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
752         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
753         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
754         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
755         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
756         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
757         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
758         (HI_FTYPE_HI): Ditto.
759         (HI_FTYPE_V16QI): Ditto.
760         (SI_FTYPE_V32QI): Ditto.
761         (DI_FTYPE_V64QI): Ditto.
762         (QI_FTYPE_V8HI): Ditto.
763         (HI_FTYPE_V16HI): Ditto.
764         (SI_FTYPE_V32HI): Ditto.
765         (QI_FTYPE_V4SI): Ditto.
766         (QI_FTYPE_V8SI): Ditto.
767         (HI_FTYPE_V16SI): Ditto.
768         (QI_FTYPE_V2DI): Ditto.
769         (QI_FTYPE_V4DI): Ditto.
770         (QI_FTYPE_V8DI): Ditto.
771         (V16QI_FTYPE_HI): Ditto.
772         (V32QI_FTYPE_SI): Ditto.
773         (V64QI_FTYPE_DI): Ditto.
774         (V8HI_FTYPE_QI): Ditto.
775         (V16HI_FTYPE_HI): Ditto.
776         (V32HI_FTYPE_SI): Ditto.
777         (V4SI_FTYPE_QI): Ditto.
778         (V4SI_FTYPE_HI): Ditto.
779         (V8SI_FTYPE_QI): Ditto.
780         (V8SI_FTYPE_HI): Ditto.
781         (V2DI_FTYPE_QI): Ditto.
782         (V4DI_FTYPE_QI): Ditto.
783         (HI_FTYPE_HI_HI): Ditto.
784         (SI_FTYPE_SI_SI): Ditto.
785         (DI_FTYPE_DI_DI): Ditto.
786         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
787         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
788         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
789         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
790         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
791         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
792         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
793         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
794         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
795         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
796         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
797         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
798         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
799         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
800         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
801         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
802         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
803         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
804         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
805         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
806         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
807         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
808         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
809         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
810         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
811         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
812         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
813         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
814         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
815         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
816         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
817         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
818         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
819         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
820         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
821         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
822         (V16SI_FTYPE_HI): Ditto.
823         (V8DI_FTYPE_QI): Ditto.
824         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
825         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
826         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
827         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
828         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
829         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
830         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
831         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
832         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
833         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
834         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
835         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
836         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
837         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
838         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
839         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
840         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
841         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
842         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
843         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
844         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
845         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
846         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
847         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
848         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
849         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
850         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
851         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
852         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
853         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
854         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
855         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
856         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
857         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
858         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
859         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
860         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
861         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
862         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
863         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
864         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
865         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
866         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
867         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
868         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
869         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
870         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
871         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
872         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
873         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
874         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
875         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
876         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
877         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
878         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
879         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
880         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
881         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
882         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
883         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
884         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
885         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
886         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
887         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
888         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
889         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
890         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
891         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
892         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
893         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
894         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
895         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
896         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
897         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
898         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
899         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
900         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
901         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
902         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
903         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
904         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
905         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
906         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
907         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
908         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
909         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
910         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
911         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
912         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
913         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
914         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
915         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
916         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
917         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
918         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
919         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
920         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
921         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
922         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
923         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
924         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
925         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
926         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
927         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
928         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
929         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
930         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
931         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
932         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
933         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
934         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
935         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
936         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
937         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
938         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
939         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
940         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
941         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
942         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
943         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
944         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
945         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
946         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
947         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
948         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
949         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
950         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
951         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
952         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
953         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
954         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
955         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
956         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
957         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
958         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
959         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
960         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
961         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
962         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
963         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
964         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
965         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
966         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
967         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
968         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
969         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
970         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
971         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
972         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
973         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
974         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
975         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
976         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
977         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
978         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
979         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
980         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
981         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
982         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
983         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
984         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
985         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
986         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
987         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
988         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
989         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
990         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
991         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
992         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
993         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
994         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
995         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
996         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
997         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
998         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
999         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1000         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1001         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1002         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1003         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1004         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1005         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1006         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1007         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1008         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1009         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1010         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1011         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1012         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1013         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1014         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1015         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1016         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1017         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1018         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1019         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1020         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1021         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1022         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1023         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1024         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1025         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1026         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1027         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1028         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1029         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1030         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1031         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1032         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1033         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1034         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1035         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1036         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1037         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1038         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1039         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1040         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1041         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1042         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1043         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1044         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1045         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1046         (QI_FTYPE_V8DF_INT_QI): Ditto.
1047         (QI_FTYPE_V4DF_INT_QI): Ditto.
1048         (QI_FTYPE_V2DF_INT_QI): Ditto.
1049         (HI_FTYPE_V16SF_INT_HI): Ditto.
1050         (QI_FTYPE_V8SF_INT_QI): Ditto.
1051         (QI_FTYPE_V4SF_INT_QI): Ditto.
1052         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1054 2015-07-31  Richard Biener  <rguenther@suse.de>
1056         * gimple-fold.c (fold_gimple_assign): Remove folding of
1057         GIMPLE_BINARY_RHS.
1059 2015-07-31  Tom de Vries  <tom@codesourcery.com>
1061         PR tree-optimization/66846
1062         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1063         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1064         (expand_omp_target) [ENABLE_CHECKING]: Same.
1065         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1066         cfun if !LOOPS_NEED_FIXUP.
1067         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
1068         that omp_for already has its own loop struct.
1069         * tree-parloops.c (create_phi_for_local_result)
1070         (create_call_for_reduction): Handle simple latch bb.
1071         (create_parallel_loop): Add simple latch bb to preserve
1072         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
1073         (gen_parallel_loop): Remove call to cancel_loop_tree.
1074         (parallelize_loops): Skip loops that are inner loops of parallelized
1075         loops.
1076         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1077         verify_loop_structure.
1079 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1081         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1082         * config/v850/v850.md (RV_REGNUM): New constants.
1083         * config/v850/v850.c (v850_libcall_value): New functions.
1084         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1085         (TARGET_LIBCALL_VALUE): Define.
1087 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
1089         * rtl.h (lowpart_subreg): Move in file.
1090         * loop-iv.c (lowpart_subreg): Move to...
1091         * simplify-rtx.c (lowpart_subreg): ...here.
1092           (simplify_binary_operation_1): Use lowpart_subreg instead of
1093           simplify_gen_subreg.
1094         * expr.c (expand_expr_real_2): Ditto.
1095         * emit-rtl.c (gen_lowpart_common): Ditto.
1096         * combine.c (gen_lowpart_for_combine): Ditto.
1097         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1098           expand_debug_source_expr): Ditto.
1100 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
1102         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1103         (expand_builtin_atomic_clear): Remove support for atomic_clear
1104         pattern.
1106 2015-07-30  Richard Biener  <rguenther@suse.de>
1108         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1109         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1110         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
1111         redundant operand canonicalization.
1113 2015-07-30  David Sherwood  <david.sherwood@arm.com>
1115         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1116         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1117         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1118         * config/arm/arm.c (neon_valid_immediate): Likewise.
1119         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1120         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1121         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1122         (expand_vec_perm_vpshufb2_vpermq): Likewise.
1123         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1124         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1125         * config/i386/sse.md
1126         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1127         (*ssse3_palignr<mode>_perm): Likewise.
1128         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1129         * config/spu/spu.c (arith_immediate_p): Likewise.
1130         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1131         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1133 2015-07-30  Richard Biener  <rguenther@suse.de>
1135         * genmatch.c (decision_tree::gen_gimple): Merge with ...
1136         (decision_tree::gen_generic): ... this into ...
1137         (decision_tree::gen): ... this.
1138         (main): Adjust callers.
1140 2015-07-30  Richard Biener  <rguenther@suse.de>
1142         * genmatch.c (verbose): New global.
1143         (warning_at): Add overload with source_location.
1144         (capture_info::capture_info): Add bool whether generating gimple
1145         or generic.  Add gimple member.
1146         (capture_info::cinfo): Add capture member.
1147         (capture_info::walk_match): Record capture.  Warn on
1148         non-captured leafs.
1149         (capture_info::walk_c_expr): Add more fragments captures cannot
1150         escape through.  Warn on escaped captures.
1151         (dt_simplify::gen_1): Warn on operands we force to have no
1152         side-effects.
1153         (main): Initialize verbose.
1154         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1156 2015-07-30  Richard Biener  <rguenther@suse.de>
1158         PR middle-end/67053
1159         * match.pd: Allow both operands to independently have conversion
1160         when simplifying compares of addresses.
1162 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
1164         PR target/66217
1165         PR target/67045
1166         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1167         around those cases that need one.
1169 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
1171         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1173 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
1175         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1176         New.  Copied from config/i386/gnu-user.h.
1177         (ASM_COMMENT_START): Likewise.
1178         (DBX_REGISTER_NUMBER): Likewise.
1180 2015-07-29  Richard Biener  <rguenther@suse.de>
1182         * gimple-fold.c (fold_gimple_cond): Remove.
1183         (fold_stmt_1): Do not call it.
1185 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
1187         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1188         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1190         * config/aarch64/aarch64-modes.def: Add HFmode.
1192         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1193         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1195         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1196         aarch64_promoted_type): New.
1198         (aarch64_float_const_representable_p): Disable HFmode.
1199         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1200         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1201         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1203         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1204         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1206         * config/aarch64/iterators.md (GPF_F16): New.
1208 2015-07-29  Richard Biener  <rguenther@suse.de>
1210         * match.pd: Merge address comparison patterns and make them
1211         handle some more cases.
1213 2015-07-29  Richard Biener  <rguenther@suse.de>
1215         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1216         (parser::parse_capture): Add bool argument on whether to reject
1217         unknown captures.
1218         (parser::parse_expr): Adjust.
1219         (parser::parse_op): Likewise.
1220         (parser::parse_pattern): Likewise.
1222 2015-07-29  Richard Biener  <rguenther@suse.de>
1224         * gimple-fold.c (has_use_on_stmt): New function.
1225         (replace_stmt_with_simplification): Use it to allow
1226         abnormals originally referenced in the stmt.
1227         (fold_stmt_1): Canonicalize operand order.
1229 2015-07-28  David Sherwood  <david.sherwood@arm.com>
1231         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1232         GET_MODE_INNER unconditionally.
1233         * config/spu/spu.c (arith_immediate_p): Likewise.
1234         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1235         * expmed.c (synth_mult): Remove check for VOIDmode result from
1236         GET_MODE_INNER.
1237         (expand_mult_const): Likewise.
1238         * fold-const.c (fold_binary_loc): Replace call to element_precision
1239         with call to GET_MODE_PRECISION.
1240         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1241         m->name.
1242         (emit_mode_inner): Likewise.
1243         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1244         result check.
1245         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1246         (GET_MODE_UNIT_PRECISION): Likewise.
1247         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1248         * simplify-rtx.c (simplify_immed_subreg): Likewise.
1249         * stor-layout.c (bitwise_type_for_mode): Update assert.
1250         (element_precision): Remove.
1252 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1254         * target-insns.def (reload_load_address): New targetm instruction
1255         pattern.
1256         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1258 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1260         * target-insns.def (atomic_test_and_set): New targetm instruction
1261         pattern.
1262         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1263         HAVE_*/gen_* interface.
1265 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1267         * target-insns.def (can_extend, ptr_extend): New targetm instruction
1268         patterns.
1269         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1270         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1271         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1272         * rtlanal.c (nonzero_bits1): Likewise.
1273         (num_sign_bit_copies1): Likewise.
1275 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1277         * target-insns.def (eh_return): New targetm instruction pattern.
1278         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1279         interface.
1280         * function.c (thread_prologue_and_epilogue_insns): Remove
1281         preprocessor condition.
1283 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1285         * target-insns.def (indirect_jump): New targetm instruction pattern.
1286         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1287         interface.
1289 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
1291         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1292         instead of nonimmediate_operand.  Remove C condiition.
1294 2015-07-28  Richard Biener  <rguenther@suse.de>
1296         * match.pd: Add more simplification of address comparisons.
1298 2015-07-28  Richard Biener  <rguenther@suse.de>
1300         * match.pd: Re-order two cases in comparison with max/min
1301         value simplification to make it apply for bools.
1303 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1305         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1306         Handle simple SIGN_EXTEND or ZERO_EXTEND.
1307         (aarch64_rtx_costs): Properly strip extend or extract before
1308         passing down to rtx costs again.
1310 2015-07-28  Nick Clifton  <nickc@redhat.com>
1312         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1313         Optimizes the case where -mes0 is active and a constant symbolic
1314         address is used.
1315         * config/rl78/rl78-protos.h: Prototype the new function.
1316         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1318 2015-07-28  Tom de Vries  <tom@codesourcery.com>
1320         * tree-parloops.c (reduc_stmt_res): New function.
1321         (initialize_reductions, add_field_for_reduction)
1322         (create_phi_for_local_result, create_loads_for_reductions)
1323         (create_stores_for_reduction, build_new_reduction): Handle case that
1324         reduc_stmt is a phi.
1325         (gather_scalar_reductions): Allow double_reduc reductions.
1327 2015-07-28  Richard Biener  <rguenther@suse.de>
1329         * fold-const.c (fold_comparison): Remove equality folding
1330         of decl addresses ...
1331         * match.pd: ... here and merge with existing pattern.
1333 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1335         PR tree-optimization/66828
1336         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1337         from int64_t to uint64_t.
1339 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1341         * opts-common.c (read_cmdline_option): List DriverOnly enum values
1342         as valid only in the error message of the driver, not in the
1343         messages of the language compilers.
1345 2015-07-27  Tom de Vries  <tom@codesourcery.com>
1347         * tree-parloops.c (gather_scalar_reductions): Simplify function
1348         structure.
1350 2015-07-27  Marek Polacek  <polacek@redhat.com>
1352         * ipa-devirt.c (types_same_for_odr): Fix typo.
1354 2015-07-27  Jason Merrill  <jason@redhat.com>
1356         PR debug/66468
1357         * dwarf2out.c (gen_inlined_subroutine_die): Check
1358         cgraph_function_possibly_inlined_p.
1360 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
1362         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1363         Place integer variant first.
1364         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1366 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
1368         PR/63870
1369         * config/arm/arm-builtins.c (enum arm_builtins):
1370         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1371         (ARM_BUILTIN_NEON_BASE): Rename macro to....
1372         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1373         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1374         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1376 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
1378         PR/63870
1379         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1380         Add qualifier_lane_index.
1381         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1382         (arm_getlane_qualifiers): Use qualifier_lane_index.
1383         (arm_lanemac_qualifiers): Rename to...
1384         (arm_mac_n_qualifiers): ...this.
1385         (LANEMAC_QUALIFIERS): Rename to...
1386         (MAC_N_QUALIFIERS): ...this.
1387         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1388         (arm_setlane_qualifiers): Use qualifier_lane_index.
1389         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1390         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1391         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1392         (arm_expand_neon_builtin): Handle qualifier_lane_index.
1394         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1395         * config/arm/arm.c (bounds_check): Likewise, improve error message.
1396         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1397         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1398         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1399         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1400         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1401         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1402         qualifiers to TERNOP_IMM.
1403         (vdup_lane): Change qualifiers to GETLANE.
1404         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1405         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1406         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1407         vqdmlsl_n): Change qualifiers to MAC_N.
1409         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1410         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1411         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1412         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1413         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1414         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1415         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1416         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1417         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1418         Remove call to neon_lane_bounds.
1420 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
1422         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1423         Place integer variant first.
1425 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
1427         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1428         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1429         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1430         for armv6kz targets.
1431         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1432         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1433         (FL_FOR_ARCH6ZK): Remove.
1434         (FL_FOR_ARCH6KZ): New.
1435         (arm_arch6zk): New declaration.
1436         * config/arm/arm-tables.opt: Regenerate.
1437         * config/arm/arm.c (arm_arch6kz): New.
1438         (arm_option_override): Set arm_arch6kz.
1439         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1440         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1441         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1443 2015-07-27  Marek Polacek  <polacek@redhat.com>
1445         PR c++/66555
1446         PR c/54979
1447         * doc/invoke.texi: Document -Wtautological-compare.
1449 2015-07-27  Richard Biener  <rguenther@suse.de>
1451         * genmatch.c (decision_tree::gen_gimple): Split out large
1452         subtrees into separate functions.
1453         (decision_tree::gen_generic): Likewise.
1455 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
1457         * config/alpha/alpha.c: Use SUBREG_P predicate.
1458         * config/alpha/predicates.md: Ditto.
1460 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1462         * config.host (s390*-*-*): Include driver-native.c only when
1463         building with s390* as host *and* target.
1465 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
1467         PR target/66930
1468         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1469         T bit register modified_between_p check.
1471 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1473         * config/i386/i386.c: Use SUBREG_P predicate.
1474         * config/i386/i386.md: Ditto.
1475         * config/i386/sse.md: Ditto.
1476         * config/i386/predicates.md: Ditto.
1478 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1480         PR target/67004
1481         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
1482         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
1484 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1486         * Makefile.in: Remove use of TREEBROWSER.
1487         * config.in: Regenerated.
1488         * configure: Regenerated.
1489         * configure.ac: Remove definition of TREEBROWSER.
1490         * tree-browser.c: Removed.
1491         * tree-browser.def: Removed.
1493 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1495         * graphite-scop-detection.c: Include gimple-pretty-print.h.
1496         (stmt_simple_for_scop_p): Print when a stmt is not handled in
1497         Graphite.
1498         (scopdet_basic_block_info): Print when a loop or bb cannot be
1499         represented in Graphite.
1501 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1503         PR target/66648
1504         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1505         execution guard when min_size is less than size_needed.
1507 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
1509         * doc/install.texi: Document supported versions of ISL.
1511 2015-07-25  Jeff Law  <law@redhat.com>
1513         Revert:
1514         PR lto/66752
1515         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1516         unable to find X NE 0 in the tables, return X as the simplified
1517         condition.
1518         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1519         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1520         to VISISTED_BBS.  */
1521         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1522         after removing the control flow statement and unnecessary edges.
1524 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
1526         Revert:
1527         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
1529         PR rtl-optimization/64164
1530         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1531         * tree-ssa-copyrename.c: Removed.
1532         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1533         -ftree-coalesce-vars.
1534         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1535         * common.opt (ftree-copyrename): Ignore.
1536         (ftree-coalesce-inlined-vars): Likewise.
1537         * doc/invoke.texi: Remove the ignored options above.
1538         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1539         * tree-ssa-coalesce.h: ... here.
1540         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1541         headers required by it.
1542         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1543         across variables when flag_tree_coalesce_vars.  Check register
1544         use and promoted modes to allow coalescing.  Moved to
1545         tree-ssa-coalesce.c.
1546         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1547         with its member functions to tree-ssa-coalesce.c.
1548         (var_map_base_init): Likewise.  Renamed to
1549         compute_samebase_partition_bases.
1550         (partition_view_normal): Drop want_bases parameter.
1551         (partition_view_bitmap): Likewise.
1552         * tree-ssa-live.h: Adjust declarations.
1553         * tree-ssa-coalesce.c: Include explow.h.
1554         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1555         default defs at the entry point.
1556         (dump_part_var_map): New.
1557         (compute_optimized_partition_bases): New, called by...
1558         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1559         of compute_samebase_partition_bases.  Adjust.
1560         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1561         * cfgexpand.c (leader_merge): New.
1562         (get_rtl_for_parm_ssa_default_def): New.
1563         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1564         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1565         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1566         redundant MEM attr setting.
1567         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1568         from...
1569         (expand_one_stack_var): ... this.  New wrapper to check and
1570         skip already expanded SSA partitions.
1571         (record_alignment_for_reg_var): New, factored out of...
1572         (expand_one_var): ... this.
1573         (expand_one_ssa_partition): New.
1574         (adjust_one_expanded_partition_var): New.
1575         (expand_one_register_var): Check and skip already expanded SSA
1576         partitions.
1577         (expand_used_vars): Don't create DECLs for anonymous SSA
1578         names.  Expand all SSA partitions, then adjust all SSA names.
1579         (pass::execute): Replace the loops that set
1580         SA.partition_to_pseudo from partition leaders and cleared
1581         DECL_RTL for multi-location variables, and that which used to
1582         rename vars and set attrs, with one that clears DECL_RTL and
1583         checks that PARMs and RESULTs default_defs match DECL_RTL.
1584         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1585         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1586         * explow.c (promote_ssa_mode): New.
1587         * explow.h (promote_ssa_mode): Declare.
1588         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1589         * function.c: Include cfgexpand.h.
1590         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1591         (use_register_for_parm_decl): Wrapper for the above to
1592         special-case the result_ptr.
1593         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1594         (split_complex_args): Take assign_parm_data_all argument.
1595         Pass it to rtl_for_parm.  Set up rtl and context for split
1596         args.
1597         (assign_parms_augmented_arg_list): Adjust.
1598         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1599         multiple locations.  Recognize split complex args.
1600         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1601         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1602         (assign_parm_setup_block): Prefer SSA-assigned location.
1603         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1604         if stack_parm is NULL.
1605         (assign_parm_setup_stack): Prefer SSA-assigned location.
1606         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1607         rtl before testing for pointer bounds.  Special-case result_ptr.
1608         (expand_function_start): Maybe reset DECL_RTL of result.
1609         Prefer SSA-assigned location for result and static chain.
1610         Factor out DECL_RESULT and SET_DECL_RTL.
1611         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1612         anonymous SSA names.  Use promote_ssa_mode.
1613         (get_temp_reg): Likewise.
1614         (remove_ssa_form): Adjust.
1615         * stor-layout.c (layout_decl): Don't set mem attributes of
1616         non-MEMs.
1617         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1618         and get its reg_usage for reg invalidation.
1619         (compute_bb_dataflow): Pass it insn.
1620         (emit_notes_in_bb): Likewise.
1622 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
1624         * config/i386/i386.c (ix86_va_start): Remove
1625         unneeded !TARGET_64BIT check.
1626         (ix86_gimplify_va_arg): Ditto.
1628 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1630         * graphite-sese-to-poly.c (build_poly_scop): Always call
1631         rewrite_commutative_reductions_out_of_ssa.
1633 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1635         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
1636         flag_associative_math to FLOAT_TYPE_P.  Honour
1637         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
1639 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1641         PR c++/64079
1642         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
1643         and "%qD" in warning_at instead of "%q+D" in warning.
1645 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1647         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
1648         (ix86_function_abi): Cleanup.
1650 2015-07-24  Michael Darling  <darlingm@gmail.com>
1652         PR other/66259
1653         * acinclude.m4: Reflects renaming of configure.in to configure.ac
1654         * configure: Likewise
1655         * configure.ac: Likewise
1656         * doc/install.texi: Likewise
1657         * doc/tm.texi: Likewise
1658         * doc/tm.texi.in: Likewise
1660 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1662         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
1663         manually swapping values.
1664         * cse.c (fold_rtx): Likewise.
1665         * lra-eliminations.c (form_sum): Likewise.
1667 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
1669         PR target/64003
1670         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
1671         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
1672         (*jcc_1, *jcc_2, jump, simple_return_internal)
1673         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
1674         Set length_nobnd attribute instead of length attribute.
1675         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
1676         (length_nobnd): Remove attribute.
1677         (length): Remove length_nobnd processing.
1679 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1681         * gimplify.c (omp_default_clause): New function.  Reorganize flow
1682         for clarity. Broken out of ...
1683         (omp_notice_variable): ... here.
1685 2015-07-24  Gary Funck  <gary@intrepid.com>
1687         PR middle-end/66984
1688         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
1689         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
1691 2015-07-24  Tom de Vries  <tom@codesourcery.com>
1693         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
1694         exit-first loop transform.
1696 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
1698         PR 66714
1699         * tree-cfg.c (struct replace_decls_d): New struct.
1700         (replace_block_vars_by_duplicates_1): New function.
1701         (replace_block_vars_by_duplicates): Use it to replace the decls
1702         in the value exprs by duplicates.
1704 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1706         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
1707         -shared, -symbolic, -rdynamic.
1709 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1711         PR target/65711
1712         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
1713         -dynamic-linker within %{!static %{!shared, and -rdynamic within
1714         %{!static.
1716 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
1718         PR ipa/66566
1719         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
1720         edge summary is available.
1722 2015-07-24  Richard Biener  <rguenther@suse.de>
1724         * genmatch.c (struct dt_node): Add statistic fields.
1725         (dt_node::analyze): New method.
1726         (decision_tree::gen_gimple): Call analyze on the root node
1727         and print statistics to stderr.
1728         (decision_tree::gen_generic): Likewise.
1730 2015-07-24  Richard Biener  <rguenther@suse.de>
1732         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
1733         against the highest or lowest possible integer ...
1734         * match.pd: ... as patterns here.
1736 2015-07-24  Richard Biener  <rguenther@suse.de>
1738         * genmatch.c (struct capture_info): Add same_as field.
1739         (capture_info::capture_info): Initialize same_as.
1740         (capture_info::walk_match): Compute same_as.
1741         (capture_info::walk_result): Compute stuff for the leader.
1742         (capture_info::walk_c_expr): Likewise.
1743         (dt_simplify::gen_1): Only look at leaders when deciding
1744         to force no side-effects or emit side-effects of omitted operands.
1746 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1748         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
1749         reg note to the GPR -> FPR save instructions.
1751 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1753         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
1754         cheaper.
1755         (s390_expand_insv): Don't generate risbg pattern for constant zero
1756         sources.
1757         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
1758         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
1759         splitters.
1761 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1763         * config/s390/s390.c (s390_reorg): Clean up handling of processors
1764         with
1765         -mtune=
1766         (s390_issue_rate): Likewise.
1767         (s390_sched_reorder): Likewise.
1768         (s390_sched_variable_issue): Likewise.
1769         (s390_loop_unroll_adjust): Likewise.
1770         (s390_option_override):  Likewise.
1772 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1774         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
1775         processor capabilities with -march=native.
1776         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
1777         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
1778         (S390_TARGET_BITS_STRING): Macro to simplify specs.
1780 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1782         * config/s390/s390.c (s390_issue_rate): Handle
1783         PROCESSOR_2094_Z9_EC.
1784         (s390_option_override): Likewise.
1785         (s390_adjust_priority): Likewise.
1787 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1789         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
1790         when cross compiling.
1792 2015-07-24  Richard Biener  <rguenther@suse.de>
1794         * fold-const.c (maybe_canonicalize_comparison_1): Move
1795         A code CST canonicalization ...
1796         * match.pd: ... to a pattern here.
1798 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
1800         Revert:
1801         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
1802         PR target/63521
1803         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1804         (HONOR_REG_ALLOC_ORDER): Define.
1806 2015-07-24  Richard Biener  <rguenther@suse.de>
1808         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
1809         * fold-const.c (fold_comparison): Move parameter does not
1810         alias &local simplification ...
1811         * match.pd: ... as a pattern here.
1813 2015-07-24  Richard Biener  <rguenther@suse.de>
1815         * gimple-fold.c (replace_stmt_with_simplification): Special-case
1816         valueizing call operands.
1817         * gimple-match-head.c (maybe_push_res_to_seq): Take
1818         number of call arguments from ops array.
1819         (do_valueize): New function.
1820         (gimple_simplify): Return true if valueization changed
1821         any operand even if the result didn't simplify further.
1823 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1825         PR middle-end/25530
1826         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
1828 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1830         PR middle-end/25529
1831         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
1833 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1835         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
1836         instruction.
1838 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
1840         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
1841         clean up.
1843 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
1845         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
1846         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
1847         targets here.
1848         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
1849         ms_va_list_type_node initialization.
1851 2015-07-23  Jeff Law  <law@redhat.com>
1853         PR lto/66752
1854         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1855         unable to find X NE 0 in the tables, return X as the simplified
1856         condition.
1857         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1858         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1859         to VISISTED_BBS.  */
1860         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1861         after removing the control flow statement and unnecessary edges.
1863 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1865         * tree-pass.h (get_current_pass_name): Removed.
1867 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
1869         PR rtl-optimization/64164
1870         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1871         * tree-ssa-copyrename.c: Removed.
1872         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
1873         -ftree-coalesce-vars.
1874         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1875         * common.opt (ftree-copyrename): Ignore.
1876         (ftree-coalesce-inlined-vars): Likewise.
1877         * doc/invoke.texi: Remove the ignored options above.
1878         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1879         * tree-ssa-coalesce.h: ... here.
1880         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1881         headers required by it.
1882         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1883         across variables when flag_tree_coalesce_vars.  Check register
1884         use and promoted modes to allow coalescing.  Moved to
1885         tree-ssa-coalesce.c.
1886         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1887         with its member functions to tree-ssa-coalesce.c.
1888         (var_map_base_init): Likewise.  Renamed to
1889         compute_samebase_partition_bases.
1890         (partition_view_normal): Drop want_bases parameter.
1891         (partition_view_bitmap): Likewise.
1892         * tree-ssa-live.h: Adjust declarations.
1893         * tree-ssa-coalesce.c: Include explow.h.
1894         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1895         default defs at the entry point.
1896         (dump_part_var_map): New.
1897         (compute_optimized_partition_bases): New, called by...
1898         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1899         of compute_samebase_partition_bases.  Adjust.
1900         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1901         * cfgexpand.c (leader_merge): New.
1902         (get_rtl_for_parm_ssa_default_def): New.
1903         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1904         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1905         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
1906         redundant MEM attr setting.
1907         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
1908         from...
1909         (expand_one_stack_var): ... this.  New wrapper to check and
1910         skip already expanded SSA partitions.
1911         (record_alignment_for_reg_var): New, factored out of...
1912         (expand_one_var): ... this.
1913         (expand_one_ssa_partition): New.
1914         (adjust_one_expanded_partition_var): New.
1915         (expand_one_register_var): Check and skip already expanded SSA
1916         partitions.
1917         (expand_used_vars): Don't create DECLs for anonymous SSA
1918         names.  Expand all SSA partitions, then adjust all SSA names.
1919         (pass::execute): Replace the loops that set
1920         SA.partition_to_pseudo from partition leaders and cleared
1921         DECL_RTL for multi-location variables, and that which used to
1922         rename vars and set attrs, with one that clears DECL_RTL and
1923         checks that PARMs and RESULTs default_defs match DECL_RTL.
1924         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1925         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1926         * explow.c (promote_ssa_mode): New.
1927         * explow.h (promote_ssa_mode): Declare.
1928         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1929         * function.c: Include cfgexpand.h.
1930         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1931         (use_register_for_parm_decl): Wrapper for the above to
1932         special-case the result_ptr.
1933         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1934         (split_complex_args): Take assign_parm_data_all argument.
1935         Pass it to rtl_for_parm.  Set up rtl and context for split
1936         args.
1937         (assign_parms_augmented_arg_list): Adjust.
1938         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1939         multiple locations.  Recognize split complex args.
1940         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1941         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
1942         (assign_parm_setup_block): Prefer SSA-assigned location.
1943         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
1944         if stack_parm is NULL.
1945         (assign_parm_setup_stack): Prefer SSA-assigned location.
1946         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
1947         rtl before testing for pointer bounds.  Special-case result_ptr.
1948         (expand_function_start): Maybe reset DECL_RTL of result.
1949         Prefer SSA-assigned location for result and static chain.
1950         Factor out DECL_RESULT and SET_DECL_RTL.
1951         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1952         anonymous SSA names.  Use promote_ssa_mode.
1953         (get_temp_reg): Likewise.
1954         (remove_ssa_form): Adjust.
1955         * stor-layout.c (layout_decl): Don't set mem attributes of
1956         non-MEMs.
1957         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1958         and get its reg_usage for reg invalidation.
1959         (compute_bb_dataflow): Pass it insn.
1960         (emit_notes_in_bb): Likewise.
1962 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
1964         PR target/66217
1965         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
1966         prototype.
1967         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
1968         (rs6000_emit_2insn_and): Handle dot forms.
1969         * config/rs6000/rs6000.md (and<mode>3): Adjust.
1970         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
1971         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
1973 2015-07-23  Richard Biener  <rguenther@suse.de>
1975         * generic-match-head.c: Include cgraph.h.
1976         * gimple-match-head.c: Likewise.
1977         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
1978         SSA names.
1979         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
1980         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
1981         pattern.
1983 2015-07-23  Richard Biener  <rguenther@suse.de>
1985         * gimple-fold.c (fold_gimple_cond): Do not require folding
1986         results to pass valid_gimple_rhs_p.
1987         * tree-cfg.h (fold_cond_expr_cond): Remove.
1988         * tree-cfg.c (fold_cond_expr_cond): Likewise.
1989         (make_edges): Do not call it.
1990         * tree-inline.c (tree_function_versioning): Likewise.
1992 2015-07-23  Tom de Vries  <tom@codesourcery.com>
1994         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
1995         vect_force_simple_reduction.
1996         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
1997         (vect_is_simple_reduction_1): Add and handle
1998         need_wrapping_integral_overflow parameter.
1999         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2000         need_wrapping_integral_overflow parameter.
2001         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2002         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2003         decl.
2005 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
2007         PR tree-optimization/66926,66951
2008         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2009         INNER_LOOP and fix up condition for renaming virtual operands.
2011 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2013         * combine.c (try_combine): Use std::swap instead of manually
2014         swapping.
2016 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
2018         * config/mips/i6400.md: New file.
2019         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2020         (mips64r6): Likewise.
2021         (i6400): Define.
2022         * config/mips/mips-tables.opt: Regenerate.
2023         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2024         (mips_issue_rate): Add support for i6400.
2025         (mips_multipass_dfa_lookahead): Likewise.
2026         * config/mips/mips.h (TUNE_I6400): Define.
2027         * config/mips/mips.md: Include i6400.md.
2028         (processor): Add i6400.
2029         * doc/invoke.texi (-march=@var{arch}): Add i6400.
2031 2015-07-23  Richard Biener  <rguenther@suse.de>
2033         PR middle-end/66916
2034         * match.pd: Guard widen and sign-change comparison simplification
2035         with single_use.
2037 2015-07-23  Richard Biener  <rguenther@suse.de>
2039         PR tree-optimization/66945
2040         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2041         ::before_dom_children): Force the propagators idea of
2042         non-executable edges to materialize, not what the folder
2043         chooses.
2045 2015-07-23  Richard Biener  <rguenther@suse.de>
2047         * gimple.h (gimple_cond_make_false): Use 0 != 0.
2048         (gimple_cond_make_true): Use 1 != 0.
2050 2015-07-22  DJ Delorie  <dj@redhat.com>
2052         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2053         slashes.
2055         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2056         (ashrhi3): Likewise.
2057         (lshrhi3): Likewise.
2058         (movhi): Take advantage of zero-extend to load small constants.
2059         (movpsi): Likewise.
2060         (and<mode>3): Likewise.
2061         (zero_extendqihi2): Likewise.
2062         (zero_extendqisi2): New.
2063         * config/msp430/constraints.md (N,O): New.
2064         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2066 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
2068         PR target/66954
2069         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2070         to enum feature_priority and feature_list.
2071         (fold_builtin_cpu): Add F_AES to enum processor_features
2072         and isa_names_table.
2074 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
2076         PR driver/66737
2077         * config/i386/linux-common.h (MPX_SPEC): Use linker option
2078         for 64bit target only.
2080 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2082         * config/nvptx/nvptx.c: Expand some comments.
2084 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
2086         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2087         (cortex_a53_advsimd): ...This.
2089 2015-07-22  Richard Biener  <rguenther@suse.de>
2091         * genmatch.c (expr::gen_transform): Clarify error message
2092         and display location.
2094 2015-07-22  Richard Biener  <rguenther@suse.de>
2096         * genmatch.c (struct operand): Add location member.
2097         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2098         constructors.
2099         (struct simplify): Remove match_location and result_location
2100         members.
2101         (elsehwere): Adjust.
2103 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
2105         * config/mips/m5100.md: New file.
2106         * config/mips/mips-cpus.def (m5100, m5101): Define.
2107         * config/mips/mips-tables.opt: Regenerate.
2108         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2109         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2110         -march=m5101 to -mips32r5.
2111         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2112         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2113         !-msoft-float.
2114         * config/mips/mips.md: Include m5100.md.
2115         (processor): Add m5100.
2116         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2118 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
2120         * config/mips/mips-cpus.def (interaptiv): Define.
2121         * config/mips/mips-tables.opt: Regenerate.
2122         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2123         -mips32r2.
2124         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2125         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2127 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
2129         PR target/63521
2130         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2131         (HONOR_REG_ALLOC_ORDER): Define.
2133 2015-07-22  Richard Biener  <rguenther@suse.de>
2135         PR tree-optimization/66952
2136         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2137         blocks we end up executing unconditionally reset all SSA
2138         info such as range and alignment.
2139         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2140         * tree-ssanames.c (reset_flow_sensitive_info): New function.
2142 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
2144         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2145         typo in attribute.
2147 2015-07-22  Richard Biener  <rguenther@suse.de>
2149         * genmatch.c (parser::parse_result): Properly handle
2150         match with result operands and conditions.
2152 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
2154         PR target/63870
2155         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2156         Add qualifier_struct_load_store_lane_index.
2157         (aarch64_types_loadstruct_lane_qualifiers): Use
2158         qualifier_struct_load_store_lane_index for lane index argument for
2159         last argument.
2160         (aarch64_types_storestruct_lane_qualifiers): Ditto.
2161         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2162         (aarch64_simd_expand_args): Add new argument describing mode of
2163         builtin. Check lane bounds for arguments with
2164         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2165         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2166         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2167         (aarch64_simd_expand_builtin): Handle arguments with
2168         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2169         aarch64_simd_expand_args.
2170         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2171         vst[234]_lane with BUILTIN_VALLDIF.
2172         * config/aarch64/aarch64-simd.md:
2173         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2174         endianness reversal on lane index.
2175         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2176         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2177         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2178         (vec_store_lanesci_lane<mode>): Ditto.
2179         (vec_store_lanesxi_lane<mode>): Ditto.
2180         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2181         reversal of lane index.
2182         (aarch64_ld3_lane<mode>): Ditto.
2183         (aarch64_ld4_lane<mode>): Ditto.
2184         (aarch64_st2_lane<mode>): Ditto.
2185         (aarch64_st3_lane<mode>): Ditto.
2186         (aarch64_st4_lane<mode>): Ditto.
2187         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2188         to qmode. Add new mode parameter. Update uses.
2189         (__LD3_LANE_FUNC): Ditto.
2190         (__LD4_LANE_FUNC): Ditto.
2191         (__ST2_LANE_FUNC): Ditto.
2192         (__ST3_LANE_FUNC): Ditto.
2193         (__ST4_LANE_FUNC): Ditto.
2195 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
2197         * doc/invoke.texi (Language Independent Options): Rename node to
2198         Diagnostic Message Formatting Options.
2200 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
2202         PR ipa/66424.
2203         * lra-remat.c (operand_to_remat): Prevent using insns with input
2204         subregs processed separately by IRA.
2206 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
2208         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2209         straight loops.
2210         (single_imm_use): Check for iterator node.
2211         (num_imm_uses): Likewise.
2212         * tree-ssa-operands.c (has_zero_uses_1): Delete.
2213         (single_imm_use_1): Check for iterator node.
2215 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
2216             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2218         * configure.ac: Add check for new options in isl-0.15.
2219         * config.in, configure: Rebuilt.
2220         * graphite-blocking.c: Include <isl/constraint.h>
2221         * graphite-interchange.c,  graphite-poly.c: Likewise.
2222         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2223         * graphite.c: Likewise.
2224         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2225         <isl/union_set.h>.
2226         * graphite-dependences.c: Include <isl/constraint.h>.
2227         (max_number_of_out_dimensions): Returns isl_stat.
2228         (extend_schedule_1): Likewise
2229         (extend_schedule): Corresponding changes.
2230         * graphite-optimize-isl.c: Include <isl/constraint.h> and
2231         <isl/union_set.h>.
2232         (getSingleMap): Change return type of isl_stat.
2233         (optimize_isl): Conditionally use
2234         isl_options_set_schedule_serialize_sccs.
2235         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2236         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2238 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
2240         PR target/66956
2241         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2242         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2244 2015-07-21  Richard Biener  <rguenther@suse.de>
2246         PR tree-optimization/66948
2247         * genmatch.c (capture_info::walk_match): Also recurse to
2248         captures.  Properly compute expr state from captures of
2249         captures.
2250         * match.pd: Add single-use guards to
2251         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2253 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
2255         * config/nvptx/mkoffload.c (process): Add static destructor call.
2257 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2259         PR middle-end/66915
2260         * match.pd (A - B -> A + (-B)): Don't allow folding
2261         when type if a fixed-point type.
2263 2015-07-20  DJ Delorie  <dj@redhat.com>
2265         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2266         (iorqi3_real): Likewise for set1.
2268 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
2270         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2271         for !TARGET_64BIT.
2273 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
2275         * graphite-isl-ast-to-gimple.c:
2276         Refactor so that each function can access 'region'. This will help
2277         maintain a parameter rename_map within a region.
2279 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
2281         * config/rs6000/rs6000.md (*lt0_disi): New.
2283 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
2285         PR target/66217
2286         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
2287         "available letters" comment.
2288         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2289         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2290         and_2rld_operand):  Delete.
2291         (and_operand): Adjust.
2292         (rotate_mask_operator): New.
2293         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2294         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2295         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2296         extract_ME): Delete.
2297         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2298         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2299         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2300         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2301         rs6000_emit_2insn_and): New.
2302         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2303         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2304         includes_rldic_lshift_p, includes_rldicr_lshift_p,
2305         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2306         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2307         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2308         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2309         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2310         rs6000_emit_2insn_and): New.
2311         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2312         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2313         handling.
2314         <NOT>: Don't fall through to next case.
2315         <AND>: Handle the various rotate-and-mask cases directly.
2316         <IOR>: Always cost as one insn.
2317         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2318         (and<mode>3): Adjust expander for the new patterns.
2319         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2320         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2321         (*and<mode>3_imm_dot_shifted): New.
2322         (*and<mode>3_mask): Delete, rewrite as ...
2323         (and<mode>3_mask): ... New.
2324         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2325         (andsi3_internal0_nomc): Delete.
2326         (*andsi3_internal6): Delete.
2327         (*and<mode>3_2insn): New.
2328         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2329         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2330         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2331         *insvdi_internal3): Delete.
2332         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2333         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2334         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2335         *ior<mode>_mask): New.
2336         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2337         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2338         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2339         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2340         Delete.
2341         (ashr<mode>3): Delete expander.
2342         (*ashr<mode>3): Rename to ...
2343         (ashr<mode>3): ... This.
2344         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2345         (*rotldi3_internal4, *rotldi3_internal5 and split,
2346         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2347         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2348         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2349         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2350         (splitter for loading a mask): Adjust.
2351         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2353 2015-07-20  Marek Polacek  <polacek@redhat.com>
2355         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2356         output_add_clobbers, output_added_clobbers_hard_reg_p,
2357         gen_rtx_scratch): Remove declarations.
2359 2015-07-20  Marek Polacek  <polacek@redhat.com>
2361         PR c++/55095
2362         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2364 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2366         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2367         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2369 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2371         * combine.c (combine_simplify_rtx): Move simplification step
2372         before various transformations/substitutions.
2374 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
2376         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2377         (struct int_traits): Likewise.
2379 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2381         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2382         function to vmsdbgout_function_decl.
2384 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2386         PR target/66922
2387         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2388         from misaligned positions.
2389         (ix86_expand_pinsr): Reject insertions to misaligned positions.
2391 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
2393         PR middle-end/46851
2394         PR middle-end/60340
2395         * Makefile.in: Removed omega.o.
2396         * common.opt: Document flag fcheck-data-deps as deprecated.
2397         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2398         its associated params: omega-max-vars, omega-max-geqs,
2399         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2400         omega-max-keys, omega-eliminate-redundant-constraints.
2401         * doc/loop.texi: Remove all the section on Omega.
2402         * graphite-blocking.c: Include missing params.h: it used to be
2403         included through tree-data-ref.h and omega.h.
2404         * graphite-isl-ast-to-gimple.c: Same.
2405         * graphite-optimize-isl.c: Same.
2406         * graphite-sese-to-poly.c: Same.
2407         * graphite.c: Same.
2408         * omega.c: Remove.
2409         * omega.h: Remove.
2410         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2411         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2412         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2413         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2414         * passes.def: Remove pass_check_data_deps.
2415         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2416         (dump_conflict_function): Same.
2417         (dump_subscript): Same.
2418         (print_direction_vector): Same.
2419         (print_dir_vectors): Same.
2420         (print_lambda_vector): Same.
2421         (print_dist_vectors): Same.
2422         (dump_data_dependence_relation): Same.
2423         (dump_data_dependence_relations): Same.
2424         (dump_dist_dir_vectors): Same.
2425         (dump_ddrs): Same.
2426         (init_omega_eq_with_af): Removed.
2427         (omega_extract_distance_vectors): Removed.
2428         (omega_setup_subscript): Removed.
2429         (init_omega_for_ddr_1): Removed.
2430         (init_omega_for_ddr): Removed.
2431         (ddr_consistent_p): Removed.
2432         (compute_affine_dependence): Do not use omega to check data
2433         dependences.
2434         (compute_data_dependences_for_bb): Removed.
2435         (analyze_all_data_dependences): Removed.
2436         (tree_check_data_deps): Removed.
2437         * tree-data-ref.h: Do not include omega.h.
2438         (compute_data_dependences_for_bb): Removed.
2439         (tree_check_data_deps): Removed.
2440         * tree-ssa-loop.c (pass_check_data_deps): Removed.
2441         (make_pass_check_data_deps): Removed.
2442         * tree-ssa-phiopt.c: Include params.h.
2443         * tree-vect-data-refs.c: Same.
2444         * tree-vect-slp.c: Same.
2446 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
2448         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2449         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
2450         (mem->fpreg splitters): Ditto.
2451         (general_operand->nonimmediate_operand splitter): Use explicit modes.
2452         Disable DFmode for TARGET_64BIT.
2454 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
2456         PR target/66906
2457         * config/i386/i386.c (ix86_expand_prologue): Replicate static
2458         chain on the stack.
2460 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2462         * config/nvptx/mkoffload.c (process): Constify host data.
2463         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2464         Constify host data.
2465         (generate_host_descr_file): Likewise.
2467 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
2468             Sebastian Pop  <s.pop@samsung.com>
2470         PR middle-end/61929
2471         * graphite-dependences.c (add_pdr_constraints): Renamed
2472         pdr->extent to pdr->subscript_sizes.
2473         * graphite-interchange.c (build_linearized_memory_access): Add
2474         back all gcc_assert's that the "isl_int to isl_val conversion"
2475         patch has removed.  Refactored.
2476         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
2477         * graphite-poly.c (new_poly_dr): Same.
2478         (free_poly_dr): Same.
2479         * graphite-poly.h (struct poly_dr): Same.
2480         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
2481         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
2482         * graphite-scop-detection.h: Fix space.
2483         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
2484         back all gcc_assert's removed by a previous patch.
2485         (wrap): Remove the_isl_ctx global variable that the same patch has
2486         added.
2487         (build_loop_iteration_domains): Same.
2488         (add_param_constraints): Same.
2489         (pdr_add_data_dimensions): Same.  Refactored.
2490         (build_poly_dr): Renamed extent to subscript_sizes.
2492 2015-07-17  Marek Polacek  <polacek@redhat.com>
2494         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
2495         * match.pd: ... here.
2497 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
2499         * config/nvptx/mkoffload.c (process): Constify target data.
2500         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2501         Constify target data.
2502         (generate_target_offloadend_file): Likewise.
2504 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
2506         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
2507         to allow renaming of PHI arguments on edges incoming from outer
2508         loop header, add corresponding check before start PHI iterator.
2509         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
2510         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
2511         with true force_vectorize.  Set-up dominator for outer loop too.
2512         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
2513         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
2514         was marked with force_vectorize and has restricted cfg.
2515         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
2516         inner loop.
2517         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2518         do peeling for outer loops.
2520 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
2521             Matthias Klose  <doko@ubuntu.com>
2523         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
2524         build-sysroot, sysroot from the `Miscenalleous configure options' to
2525         the `Directories' section and strip trailing `/' from with_sysroot.
2526         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
2527         * configure: Regenerated.
2529 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2531         PR target/66824
2532         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
2533         (TARGET_HARD_DF_REGS): Ditto.
2534         (TARGET_HARD_XF_REGS): Ditto.
2535         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
2536         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
2537         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
2538         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
2539         (*movsf_internal): Add alternatives 16 and 17. Enable
2540         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
2542 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
2544         PR rtl-optimization/66891
2545         * calls.c (expand_call): Wrap precompute_register_parameters with
2546         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
2548 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
2550         * config/nvptx/mkoffload.c (process): Constify mapping variables.
2551         Define target data struct and initialize it.
2553 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
2555         PR rtl-optimization/66626
2556         * ira.h (emit-rtl.h): Include.
2557         (non_spilled_static_chain_regno_p): New.
2558         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
2559         unless it is non spilled static chain pseudo.
2560         (assign_hard_rego): Spill memory profitable allocno unless it is
2561         non spilled static chain pseudo.
2562         (allocno_spill_priority_compare): Put non spilled static chain
2563         pseudo at the end of sorted array.
2564         (improve_allocation): Do nothing if we have static chain and
2565         non-local goto.
2566         (allocno__priority_compare_func): Put non spilled static chain
2567         pseudo at the beginning of sorted array.
2568         (move_spill_restore): Ignore non spilled static chain pseudo.
2569         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
2570         to non spilled static chain pseudo.
2571         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
2572         pseudo at the beginning of sorted array.
2573         (spill_for): Spill non spilled static chain pseudo last.
2574         * lra-constraints.c (lra_constraints): Remove static chain pseudo
2575         check for equivalence.
2577 2015-07-16  Martin Liska  <mliska@suse.cz>
2579         PR ipa/66896.
2580         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
2581         dst_ctx if it does not exist.
2583 2015-07-16  Martin Liska  <mliska@suse.cz>
2585         * hash-set.h (remove): New function.
2586         (iterator): New iteration class for hash_set.
2588 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2590         * genattrtab.c (make_canonical): Add a file_location parameter.
2591         Use fatal_at rather than fatal.
2592         (get_attr_value): Likewise.  Update call to make_canonical.
2593         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
2594         (make_internal_attr): Update calls accordingly.
2596 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2598         * read-md.h (message_with_line, error_with_line): Delete.
2599         * read-md.c (message_with_line, error_with_line): Delete.
2600         * gensupport.h: Include read-md.h.
2601         (md_rtx_info): New structure.
2602         (read_md_rtx): Use it.  Return a bool success value.
2603         * gensupport.c (read_md_rtx): Likewise.
2604         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
2605         (main): Update after interface changes.
2606         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
2607         (main): Update after interface changes.
2608         * genattrtab.c (insn_code_number): Delete.
2609         (optimize_attrs): Add a max_insn_code parameter and use it instead
2610         of insn_code_number.
2611         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
2612         Use *_at rather than *_with_line functions.
2613         (gen_insn): Likewise.
2614         (gen_delay): Likewise.
2615         (gen_insn_reserv): Likewise.
2616         (gen_bypass): Take an md_rtx_info rather than an rtx.
2617         (main): Update after interface changes.  Use a local max_insn_code
2618         variable instead of insn_code_number.
2619         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
2620         an rtx.  Use fatal_at rather than fatal.
2621         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
2622         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
2623         (gen_absence_set, gen_final_absence_set, gen_automaton)
2624         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
2625         (main): Update after interface changes.
2626         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
2627         and code number.
2628         (main): Update after interface changes.
2629         * genconditions.c (main): Use new read_md_rtx interface.
2630         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
2631         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
2632         (main): Update after interface changes.
2633         * genemit.c (insn_code_number, insn_index_number): Delete.
2634         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2635         Use fatal_at rather than fatal.
2636         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
2637         rather than fatal.
2638         (gen_split): Likewise.
2639         (main): Update after interface changes.
2640         * genextract.c (line_no): Delete.
2641         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2642         Update call to walk_rtx.
2643         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
2644         rather than message_with_line.
2645         (walk_rtx): Add an md_rtx_info argument.  Update call to
2646         VEC_safe_set_locstr.
2647         (main): Update after interface changes.
2648         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
2649         and lineno.  Use error_at rather than separate message_with_line
2650         calls and have_error assignments.
2651         (main): Update after interface changes.
2652         * genmddump.c (main): Use new read_md_rtx interface.
2653         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
2654         (main): Update after interface changes.
2655         * genoutput.c (next_code_number): Delete.
2656         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2657         (gen_peephole, gen_expand, gen_split): Likewise.
2658         (note_constraint): Likewise.  Use *_at rather than *_with_line
2659         functions.
2660         (main): Update after interface changes.
2661         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
2662         rtx and lineno.
2663         (main): Update after interface changes.
2664         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
2665         than an rtx and lineno.
2666         (process_define_constraint): Likewise.
2667         (process_define_register_constraint): Likewise.
2668         (main): Update after interface changes.
2669         * genrecog.c (next_insn_code, pattern_lineno): Delete.
2670         (validate_pattern): Replace top-level rtx with an md_rtx_info.
2671         Use *_at rather than *_with_line functions.
2672         (match_pattern_2): Likewise.
2673         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
2674         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
2675         Use *_at rather than *_with_line functions.
2676         * gentarget-def.c (add_insn): New function.
2677         (main): Use it.  Use new read_md_rtx interface.
2679 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2681         * gensupport.h (compute_test_codes): Take a file_location rather
2682         than a line number.
2683         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
2684         rather than *_with_line functions.
2685         (process_define_predicate): Update call to compute_test_codes.
2686         * genpreds.c (validate_exp): Take a file_location rather than a
2687         line number.  Use *_at functions rather than *_with_line functions.
2688         (process_define_predicate): Update call to validate_exp.
2689         (constraint_data): Replace lineno field with a file_location.
2690         (add_constraint): Take a file_location rather than a line number.
2691         Use *_at functions rather than *_with_line functions.  Fix error
2692         message for address constraints.  Update after changes to
2693         validate_exp, constraint_data and compute_test_codes.
2694         (process_define_constraint): Update accordingly.
2695         (process_define_register_constraint): Likewise.
2697 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2699         * genoutput.c (data): Use a file_location to record the source
2700         position.
2701         (nothing): Delete.
2702         (idata, idata_end): Remove initialization.
2703         (constraint_data): Replace lineno with a file_location.
2704         (output_insn_data): Update after changes to data.
2705         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
2706         (scan_operands): Likewise, using *_at rather than *_with_line
2707         functions.
2708         (process_template): Likewise.
2709         (validate_insn_alternatives): Likewise.
2710         (validate_insn_operands): Likewise.
2711         (validate_optab_operands): Likewise.
2712         (init_insn_for_nothing): Initialize idata and idata_end.
2713         (note_constraint): Update after changes to constraint_data,
2714         using at rather than with_line functions.
2715         (mdep_constraint_len): Take a file_location rather than a
2716         line number.  Use at rather than with_line functions.
2718 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2720         * read-md.h (fatal_at): Declare.
2721         * read-md.c (fatal_at): New function.
2722         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
2723         to record the source position.
2724         (check_attr_test): Take a file_location instead of a line number.
2725         Use fatal_at instead of fatal.
2726         (check_attr_value): Update after above changes, using "at"
2727         rather than "with_line" reporting functions.
2728         (convert_set_attr_alternative): Likewise.
2729         (gen_attr): Likewise.
2730         (check_defs): Likewise.  Don't assign to read_md_filename.
2731         (gen_insn): Update initialization after above changes.
2732         (gen_delay): Likewise.
2733         (write_insn_cases): Print the filename for a define_peephole.
2734         (gen_insn_reserv): Take a line number as argument and update
2735         the call to check_attr_test.
2736         (main): Pass a line number to gen_insn_reserv.
2738 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2740         * read-md.h (file_location): New structure.
2741         (directive_handler_t): Take a file_location rather than a line number.
2742         (message_at, error_at): Declare.
2743         (read_skip_construct): Delete.
2744         * read-md.c (message_with_line_1): Replace with...
2745         (message_at_1): ...this new function.
2746         (message_at, error_at): New functions.
2747         (message_with_line, error_with_line): Update to use message_at_1.
2748         (handle_enum): Take a file_location rather than a line number
2749         and use error_at for error reporting.
2750         (handle_include): Likewise.
2751         (read_skip_construct): Likewise.  Make static.
2752         (handle_file): Update after above changes.  Pass a file_location
2753         rather than a line number to handle_directive.
2754         * gensupport.c (queue_elem): Replace separate filename and lineno
2755         with a file_location.
2756         (queue_pattern): Replace filename and lineno arguments with a
2757         file_location.  Update after change to queue_elem.
2758         (process_define_predicate): Replace lineno argument with a
2759         file_location and use error_at for error reporting.  Update
2760         after above changes.
2761         (process_rtx): Likewise.
2762         (subst_pattern_match): Likewise.
2763         (get_alternatives_number): Likewise.
2764         (alter_predicate_for_insn): Likewise.
2765         (rtx_handle_directive): Likewise.
2766         (is_predicable): Update after above changes, using error_at rather
2767         than error_with_line.
2768         (has_subst_attribute): Likewise.
2769         (identify_predicable_attribute): Likewise.
2770         (alter_attrs_for_subst_insn): Likewise.
2771         (process_one_cond_exec): Likewise.
2772         (process_substs_on_one_elem): Likewise.
2773         (process_define_subst): Likewise.
2774         (check_define_attr_duplicates): Likewise.
2775         (read_md_rtx): Update after change to queue_elem.
2777 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2779         * genoutput.c (next_index_number): Delete.
2780         (data): Remove index_number.
2781         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
2782         (main): Remove manipulation of next_index_number.
2784 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
2786         * genattrtab.c (check_attr_value): Remove handling of null attrs.
2787         (make_canonical): Likewise.
2789 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
2791         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
2792         instead of adjust_address_nv.
2793         (restore_stack_nonlocal): Likewise.
2794         (nonlocal_goto): Likewise.
2796 2015-07-16  Tom de Vries  <tom@codesourcery.com>
2798         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
2799         not have a corresponding loop header phi.
2801 2015-07-16  Tom de Vries  <tom@codesourcery.com>
2803         * tree-parloops.c (create_loads_for_reductions): Handle case that
2804         reduction is unused.
2806 2015-07-16  Richard Biener  <rguenther@suse.de>
2808         PR tree-optimization/66894
2809         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
2810         about deriving NE_EXPR from truncated values.
2812 2015-07-16  Martin Liska  <mliska@suse.cz>
2814         * alloc-pool.h
2815         (object_allocator): Add new class.
2816         (pool_allocator::initialize): Use the underlying class.
2817         (pool_allocator::allocate): Likewise.
2818         (pool_allocator::remove): Likewise.
2819         (operator new): A new generic allocator.
2820         * asan.c (struct asan_mem_ref): Remove unused members.
2821         (asan_mem_ref_new): Replace new operator with
2822         object_allocator::allocate.
2823         (free_mem_ref_resources): Change deallocation.
2824         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
2825         with object_allocator.
2826         * config/sh/sh.c (add_constant): Replace new operator with
2827         object_allocator::allocate.
2828         (sh_reorg): Change call to a release method.
2829         * cselib.c (struct elt_list): Remove unused members.
2830         (new_elt_list): Replace new operator with
2831         object_allocator::allocate.
2832         (new_elt_loc_list): Likewise.
2833         (new_cselib_val): Likewise.
2834         (unchain_one_elt_list): Change delete operator with remove method.
2835         (unchain_one_elt_loc_list): Likewise.
2836         (unchain_one_value): Likewise.
2837         (cselib_finish): Release newly added static allocators.
2838         * cselib.h (struct cselib_val): Remove unused members.
2839         (struct elt_loc_list): Likewise.
2840         * df-problems.c (df_chain_alloc): Replace pool_allocator with
2841         object_allocator.
2842         * df-scan.c (struct df_scan_problem_data): Likewise.
2843         (df_scan_alloc): Likewise.
2844         * df.h (struct dataflow): Likewise.
2845         * dse.c (struct read_info_type): Likewise.
2846         (struct insn_info_type): Likewise.
2847         (struct dse_bb_info_type): Likewise.
2848         (struct group_info): Likewise.
2849         (struct deferred_change): Likewise.
2850         (get_group_info): Likewise.
2851         (delete_dead_store_insn): Likewise.
2852         (free_read_records): Likewise.
2853         (replace_read): Likewise.
2854         (check_mem_read_rtx): Likewise.
2855         (scan_insn): Likewise.
2856         (dse_step1): Likewise.
2857         (dse_step7): Likewise.
2858         * et-forest.c (struct et_occ): Remove unused members.
2859         (et_new_occ): Use allocate instead of new operator.
2860         (et_new_tree): Likewise.
2861         (et_free_tree): Call release method explicitly.
2862         (et_free_tree_force): Likewise.
2863         (et_free_pools): Likewise.
2864         (et_split): Use remove instead of delete operator.
2865         * et-forest.h (struct et_node): Remove unused members.
2866         * ipa-cp.c: Change pool_allocator to object_allocator.
2867         * ipa-inline-analysis.c: Likewise.
2868         * ipa-profile.c: Likewise.
2869         * ipa-prop.c: Likewise.
2870         * ipa-prop.h: Likewise.
2871         * ira-build.c (initiate_cost_vectors): Cast return value.
2872         (ira_allocate_cost_vector): Likewise.
2873         * ira-color.c (struct update_cost_record): Remove unused members.
2874         * lra-int.h (struct lra_live_range): Likewise.
2875         (struct lra_copy): Likewise.
2876         (struct lra_insn_reg): Likewise.
2877         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
2878         * lra.c (new_insn_reg): Replace new operator with allocate method.
2879         (free_insn_regs): Same for operator delete.
2880         (finish_insn_regs): Release new static allocator.
2881         (finish_insn_recog_data): Likewise.
2882         (lra_free_copies): Replace delete operator with remove method.
2883         (lra_create_copy): Replace operator new with allocate method.
2884         (invalidate_insn_data_regno_info): Same for remove method.
2885         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
2886         (free_debug_insn_changes): Replace delete operator with remove method.
2887         (replace_oldest_value_reg): Replace operator new with allocate method.
2888         (pass_cprop_hardreg::execute): Release new static variable.
2889         * sched-deps.c (sched_deps_init): Change pool_allocator to
2890         object_allocator.
2891         * sel-sched-ir.c: Likewise.
2892         * sel-sched-ir.h: Likewise.
2893         * stmt.c (expand_case): Likewise.
2894         (expand_sjlj_dispatch_table): Likewise.
2895         * tree-sra.c (struct access): Remove unused members.
2896         (struct assign_link): Likewise.
2897         (sra_deinitialize): Release newly added static pools.
2898         (create_access_1):Replace operator new with allocate method.
2899         (build_accesses_from_assign): Likewise.
2900         (create_artificial_child_access): Likewise.
2901         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
2902         pool_allocator to object_allocator.
2903         * tree-ssa-pre.c: Likewise.
2904         * tree-ssa-reassoc.c: Likewise.
2905         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
2906         * tree-ssa-strlen.c: Likewise.
2907         * tree-ssa-structalias.c: Likewise.
2908         * var-tracking.c (onepart_pool_allocate): New function.
2909         (unshare_variable): Use the newly added function.
2910         (variable_merge_over_cur): Likewise.
2911         (variable_from_dropped): Likewise.
2912         (variable_was_changed): Likewise.
2913         (set_slot_part): Likewise.
2914         (emit_notes_for_differences_1): Likewise.
2915         (vt_finalize): Release newly added static pools.
2917 2015-07-16  Martin Jambor  <mjambor@suse.cz>
2919         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
2920         all uses.  Fix two typos in its general comment.
2921         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
2923 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
2925         * config/i386/linux-common.h (LINK_MPX): New.
2926         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
2927         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
2928         indicating '-z bndplt' support by linker.
2929         * configure: Regenerate.
2930         * config.in: Regenerate.
2932 2015-07-16  Richard Biener  <rguenther@suse.de>
2934         * fold-const.c (fold_widened_comparison): Remove.
2935         (fold_sign_changed_comparison): Likewise.
2936         (fold_comparison): Move widened and sign-changed comparison
2937         simplification ...
2938         * match.pd: ... to patterns here.
2939         * generic-match-head.c: Include target.h.
2940         * gimple-match-head.c: Likewise.
2942 2015-07-16  Richard Biener  <rguenther@suse.de>
2944         * tree-ssa-dom.c (dom_valueize): New function.
2945         (record_temporary_equivalences): Also record equivalences
2946         for dominating stmts that have uses of equivalences we are
2947         about to record.
2949 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
2951         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
2952         add_autoinc_candidates.
2953         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
2954         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
2955         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
2956         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
2957         Call new function.
2958         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
2959         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
2960         Remove parameter struct iv*.  Call add_autoinc_candidates here.
2961         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
2962         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
2963         Call new function.
2964         (find_iv_candidates): Call new functions.
2966 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2968         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
2969         uninitialized-variable warning.
2971 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2973         PR target/65249
2974         * config/sh/sh.md (movdi): Split simple reg move to two movsi
2975         when the destination is R0.
2977 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
2979         PR target/66866
2980         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
2981         * config/i386/i386.c (ix86_expand_pextr): New function.
2982         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
2983         for non-lowpart subregs.
2984         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
2985         (insv<mode>): Use SWI248 mode iterator.
2986         (insv<mode>_1): Ditto.
2988 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2989             Sebastian Pop  <s.pop@samsung.com>
2991         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
2992         iterator to use_stmt.
2994 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
2995             Sebastian Pop <s.pop@samsung.com>
2997         * graphite-scop-detection.c (build_scops_1): Discard scops for
2998         which entry==exit.
3000 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3001             Sebastian Pop <s.pop@samsung.com>
3003         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3004         case of a return statement in scop.
3006 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
3007             Sebastian Pop <s.pop@samsung.com>
3009         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3010         INTEGER_TYPE parameters.
3011         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3012         VECTOR_CST in scan_tree_for_params.
3013         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3015 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3017         * gimple-pretty-print.h: Don't include pretty-print.h.
3018         * tree-streamer.h: Don't include lto-streamer.h.
3019         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3020         * gimple-streamer-in.c: Remove redundant includes.
3021         * gimple-streamer-out.c: Likewise.
3022         * ipa-devirt.c: Likewise.
3023         * ipa-icf.c: Likewise.
3024         * ipa-inline-analysis.c: Likewise.
3025         * ipa-polymorphic-call.c: Likewise.
3026         * ipa-profile.c: Likewise.
3027         * ipa-prop.c: Likewise.
3028         * ipa-pure-const.c: Likewise.
3029         * lto-cgraph.c: Likewise.
3030         * lto-streamer-in.c: Likewise.
3031         * lto-streamer-out.c: Likewise.
3032         * lto-streamer.c: Likewise.
3033         * tree-streamer-in.c: Likewise.
3034         * tree-streamer-out.c: Likewise.
3035         * tree-streamer.c: Likewise.
3037 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
3039         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3040         include input.h.
3041         * opts.c: Remove multiline #include comment.
3043 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
3045         * config/nvptx/mkoffload.c (process): Add C++ protection to
3046         emitted code.
3048 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3050         PR target/66854
3051         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3052         null before IEEE 128-bit floating point support patch.
3054 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3056         * simplify-rtx.c (simplify_ternary_operation): Add simplification
3057         for (!c) != {0,...,0} ? a : b for vector modes.
3059 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
3060             Martin Jambor  <mjambor@suse.cz>
3062         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3063         struct func_body_info* instead of struct ipa_node_params*, expecting
3064         fbi->info to be filled in.  Replace throughout.  Adjust call to
3065         ipa_load_from_parm_agg.
3066         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3067         instead of struct ipa_node_params*.  Adjust calls to other functions
3068         so that they pass either fbi or fbi->info.
3069         (set_switch_stmt_execution_predicate): Likewise.
3070         (will_be_nonconstant_predicate): Likewise.
3071         (compute_bb_predicates): Likewise.
3072         (estimate_function_body_sizes): Move asserts earlier.  Fill in
3073         struct func_body_info, replace parms_info with fbi.info.  Adjust
3074         calls to functions that now accept struct func_body_info.
3075         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3076         (struct func_body_info): Likewise.
3077         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3078         remove static.  Adjust callers.
3079         (ipa_load_from_parm_agg): Remove.
3080         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3081         (func_body_info): Likewise.
3082         (ipa_load_from_parm_agg): Adjust prototype.
3084 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3086         * gensupport.c (rtx_handle_directive): Adjust.
3087         * read-rtl.c (apply_iterators): Take vector to add rtxs to
3088         instead of expr list rtx.
3089         (add_define_attr_for_define_subst): Likewise.
3090         (add_define_subst_attr): Likewise.
3091         (read_subst_mapping): Likewise.
3092         (read_rtx): Likewise.
3093         * rtl.h (read_rtx): Adjust.
3095 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3097         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3099 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3101         PR target/58066
3102         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3103         (*tls_local_dynamic_base_64_<mode>): Ditto.
3104         (*tls_local_dynamic_base_64_largepic): Ditto.
3105         (tls_global_dynamic_64_<mode>): Update expander pattern.
3106         (tls_local_dynamic_base_64_<mode>): Ditto.
3108 2015-07-15  Richard Biener  <rguenther@suse.de>
3110         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3111         and bool_var == 1 -> bool_var simplifications ...
3112         * match.pd: ... to patterns here.  Factor out negate_expr_p
3113         cases from the A - B -> A + (-B) patterns as negate_expr_p
3114         predicate and add a -(A + B) -> (-B) - A pattern.
3116 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
3118         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3120 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
3121             Robert Suchanek  <robert.suchanek@imgtec.com>
3123         * config/mips/mips.c (mips_int_mask): New enum.
3124         (mips_shadow_set): Likewise.
3125         (int_mask): New variable.
3126         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3127         (machine_function): Add int_mask and use_shadow_register_set.
3128         (mips_attribute_table): Add attribute handlers for interrupt and
3129         use_shadow_register_set.
3130         (mips_interrupt_mask): New static function.
3131         (mips_handle_interrupt_attr): Likewise.
3132         (mips_handle_use_shadow_register_set_attr): Likewise.
3133         (mips_use_shadow_register_set): Change return type to enum
3134         mips_shadow_set.  Add argument handling for use_shadow_register_set
3135         attribute.
3136         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3137         compare with mips_shadow_set enum.
3138         (mips_compute_frame_info): Add interrupt mask and
3139         use_shadow_register_set to per-function information structure.
3140         Add a stack slot for EPC unconditionally.
3141         (mips_expand_prologue): Compare use_shadow_register_set value
3142         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
3143         masked interrupt register but in EIC mode use K0 and save Cause in K0.
3144         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
3145         copying the stack pointer from the shadow register set.
3146         * config/mips/mips.h (SR_IM0): New define.
3147         * config/mips/mips.md (mips_rdpgpr): Rename to...
3148         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
3149         * doc/extend.texi (Declaring Attributes of Functions): Document
3150         optional arguments for interrupt and use_shadow_register_set
3151         attributes.
3153 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
3155         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3156         interrupt attribute.
3157         (mips_expand_prologue): Disable the floating point unit in an ISR.
3158         * config/mips/mips.h (SR_COP1): New define.
3160 2015-07-15  Richard Biener  <rguenther@suse.de>
3162         * genmatch.c (parser::peek, parser::peek_ident): Add argument
3163         to tell how many tokens to peek ahead (default 1).
3164         (parser::eat_token, parser::eat_ident): Return token consumed.
3165         (parser::parse_result): Parse new switch statement.
3166         * match.pd: Use case statements where appropriate.
3168 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3170         PR rtl-optimization/58066
3171         * calls.c (expand_call): Precompute register parameters before stack
3172         alignment is performed.
3174 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
3176         PR rtl-optimization/66838
3177         * postreload.c (reload_cse_move2add): Also process
3178         CALL_INSN_FUNCTION_USAGE when resetting information of
3179         call-clobbered registers.
3181 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3182             Cesar Philippidis  <cesar@codesourcery.com>
3183             Chung-Lin Tang  <cltang@codesourcery.com>
3185         * config/nios2/constraints.md (U, v): New constraints.
3186         * config/nios2/predicates.md (rdprs_dcache_operand): New.
3187         (ldstex_memory_operand): New.
3188         * config/nios2/sync.md: New file.
3189         * config/nios2/nios2.md (unspecv): Add new builtin function
3190         UNSPECV codes.
3191         (rdprs, flushd, flushda, wrpie, eni): New patterns.
3192         (top-level): Include sync.md.
3193         * config/nios2/nios2.c (N2_FTYPES): Add function types for
3194         new builtins.
3195         (N2_BUILTINS): Add arch field setting, add new builtins.
3196         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3197         for arch field.
3198         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3199         Also handle ldex/stex/ldsex/stsex builtins.
3200         (nios2_expand_rdprs_builtin): New function.
3201         (nios2_expand_cache_builtin): New function.
3202         (nios2_expand_wrpie_builtin): New function.
3203         (nios2_expand_eni_builtin): New function.
3204         (nios2_expand_builtin): Add arch field handling and new builtin
3205         cases.
3206         * doc/extend.texi (Altera Nios II Built-in Functions): Document
3207         new builtins.
3208         * doc/md.texi (Machine Constraints): Document U and v constraints.
3210 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3211             Cesar Philippidis  <cesar@codesourcery.com>
3212             Chung-Lin Tang  <cltang@codesourcery.com>
3214         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3215         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3216         callee_save_reg_size and uses_anonymous_args fields.
3217         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3218         (nios2_create_cfa_notes): New function.
3219         (nios2_adjust_stack): New function for adjusting stack.
3220         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3221         Use nios2_adjust_stack.
3222         (nios2_expand_epilogue): Likewise.
3223         (nios2_expand_return): New function.
3224         (nios2_can_use_return_insn): Update for CDX pop.n usage.
3225         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3226         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3227         * config/nios2/nios2.md (return): Use nios2_expand_return.
3229 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3230             Cesar Philippidis  <cesar@codesourcery.com>
3231             Chung-Lin Tang  <cltang@codesourcery.com>
3233         * config/nios2/predicates.md (pop_operation): New.
3234         (ldwm_operation, stwm_operation): New.
3235         (nios2_hard_register_operand): New.
3236         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3237         (ldstwm_operation_p): Declare.
3238         (gen_ldstwm_peep): Declare.
3239         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3240         (base_reg_adjustment_p): New.
3241         (pop_operation_p): New.
3242         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3243         (nios2_ldstwm_regset_p): New.
3244         (ldstwm_operation_p): New.
3245         (gen_ldst): New.
3246         (nios2_ldst_parallel): New.
3247         (struct ldswm_operand): Declare.
3248         (compare_ldstwm_operands): New.
3249         (can_use_cdx_ldstw): New.
3250         (gen_ldstwm_peep): New.
3251         * config/nios2/nios2-ldstwm.sml: New.
3252         * config/nios2/nios2.md: Include ldstwm.md.
3253         * config/nios2/ldstwm.md: Generated.
3255 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3256             Cesar Philippidis  <cesar@codesourcery.com>
3257             Chung-Lin Tang  <cltang@codesourcery.com>
3259         * config/nios2/nios2.h (LABEL_ALIGN): Define.
3260         (REG_ALLOC_ORDER): Define.
3261         (ADJUST_REG_ALLOC_ORDER): Define.
3262         (HONOR_REG_ALLOC_ORDER): Define.
3263         (CDX_REG_P): Define.
3264         (ANDCLEAR_INT): Define.
3265         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3266         (nios2_label_align): Declare.
3267         (nios2_cdx_narrow_form_p): Declare.
3268         (nios2_adjust_reg_alloc_order): Declare.
3269         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3270         operation.
3271         (nios2_large_unspec_reloc_p): New function, split from...
3272         (nios2_legitimate_pic_operand_p): ...here.
3273         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3274         (nios2_print_operand_punct_valid_p): New.
3275         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
3276         (split_mem_address): New.
3277         (split_alu_insn): New.
3278         (cdxreg): New.
3279         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3280         (enum nios2_add_insn_kind): New.
3281         (nios2_add_insn_names, nios2_add_insn_narrow): New.
3282         (nios2_add_insn_classify): New.
3283         (nios2_add_insn_asm): New.
3284         (nios2_cdx_narrow_form_p): New.
3285         (label_align, min_labelno, max_labelno): New.
3286         (nios2_reorg): New.
3287         (nios2_label_align): New.
3288         (nios2_adjust_reg_alloc_order): New.
3289         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3290         (TARGET_MACHINE_DEPENDENT_REORG): Define.
3291         * config/nios2/constraints.md (P): New constraint.
3292         * config/nios2/predicates.md (const_and_operand): New.
3293         (and_operand): New.
3294         (stack_memory_operand): New.
3295         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3296         (length): Update to use nios2_cdx_narrow_form_p().
3297         (type): Add new insn type values.
3298         (control, alu, st, ld, shift): Update insn reservations with
3299         new insn type values.
3300         (*high, *lo_sum): Define new insn patterns for constant generation.
3301         (movqi_internal, movhi_internal, movsi_internal): Reduce
3302         alternatives, update asm template to handle CDX variants, update
3303         type attributes.
3304         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3305         template, update type attributes.
3306         (extendhisi2, extendqi<mode>2): Likewise.
3307         (addsi3): Change to use function for asm string.
3308         (subsi3): Add CDX notation to asm template, update type attributes.
3309         (negsi3, one_cmplsi3): Likewise.
3310         (andsi3): New pattern, specialized from logical patterns.
3311         (<code>si3): Remove and case, combine alternatives, update asm
3312         template.
3313         (<shift_op>si3): Add CDX notation, update type attributes.
3314         (rotrsi3): Update type attribute.
3315         (*merge, extzv, insv): New insn patterns.
3316         (return): Change to define_expand.
3317         (simple_return): Add CDX notation, update type attributes.
3318         (indirect_jump): Add CDX notation.
3319         (jump): Update asm cases, update length attribute expression.
3320         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3321         (nios2_cbranch): Update asm cases and length attribute expression
3322         to handle CDX variants.
3323         (nios2_cmp<code>): Update asm template.
3324         (nop): Add CDX notation, update type attributes.
3325         (trap): Add CDX notation.
3326         (ctrapsi4): Update asm cases and length attribute expression to
3327         handle CDX variant.
3328         * doc/md.texi (Machine Constraints): Document P constraint.
3330 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3331             Cesar Philippidis  <cesar@codesourcery.com>
3332             Chung-Lin Tang  <cltang@codesourcery.com>
3334         * config/nios2/nios2.h (SMALL_INT12): New macro.
3335         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3336         (nios2_valid_addr_expr_p): Use it.
3337         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3338         with implicit "io" instructions on R2.
3339         * config/nios2/constraints.md (w): New constraint.
3340         * config/nios2/predicates.md (ldstio_memory_operand): New.
3341         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3342         operand predicate and constraint.
3343         (ld<bh>io_signed, st<bhw>io>): Likewise.
3344         * doc/md.texi (Machine Constraints): Document w constraint.
3346 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3347             Cesar Philippidis  <cesar@codesourcery.com>
3348             Chung-Lin Tang  <cltang@codesourcery.com>
3350         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3351         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3352         Nios II architecture level.
3353         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3354         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3355         (OPTION_DEFAULT_SPECS): Define.
3356         (ASM_SPEC): Add -march= spec strings.
3357         * config/nios2/nios2.c (nios2_option_override): Check for
3358         conflicts involving new options.
3359         * config.gcc (nios2*-*-*): Support --with-arch=.
3360         * doc/invoke.texi (Option Summary, Nios II Options): Document
3361         -march=, -mbmx, and -mcdx.
3363 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
3365         PR rtl-optimization/66626
3366         * lra-constraints.c (lra_constraints): Prevent equivalence
3367         substitution for static chain pseudo in functions with nonlocal
3368         goto.
3370 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
3372         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3373         (nios2_emit_stack_limit_check): Add size parameter.  Handle
3374         -fstack-limit-symbol as well as -fstack-limit-register.
3375         (nios2_expand_prologue): Emit only a single stack limit check,
3376         even if multiple stack adjustments are required.
3377         (nios2_option_override): Diagnose unsupported combination of -fpic
3378         and -stack-limit-symbol.
3380 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
3382         * Makefile.in (top_srcdir): New.
3383         * configure.ac: Use AM_ZLIB.
3384         * configure: Regeneated.
3386 2015-07-14  Matthias Klose  <doko@ubuntu.com>
3388         PR target/66840
3389         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3391 2015-07-14  Richard Biener  <rguenther@suse.de>
3393         PR tree-optimization/66863
3394         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3395         what we record for conversion use stmt lhs inequalities.
3397 2015-07-14  Richard Biener  <rguenther@suse.de>
3399         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3400         (decision_tree::gen_gimple): Likewise.
3402 2015-07-14  Tom de Vries  <tom@codesourcery.com>
3404         * gcc.c (greater_than_spec_func): Declare forward.
3405         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3406         -ftree-parallelize-loops={0,1}.
3407         (static_spec_functions): Add greater_than_spec_func function with name
3408         "gt".
3409         (greater_than_spec_func): New function.
3411 2015-07-14  Richard Biener  <rguenther@suse.de>
3413         * tree-ssa-dom.c (record_temporary_equivalences): Merge
3414         wideing type conversion case from record_equivalences_from_incoming_edge
3415         and use record_equality to record equivalences.
3416         (record_equivalences_from_incoming_edge): Call
3417         record_temporary_equivalences.
3419 2015-07-14  Richard Biener  <rguenther@suse.de>
3421         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3422         (struct if_expr): New.
3423         (struct with_expr): Likewise.
3424         (is_a_helper): Add helpers for if_expr and with_expr.
3425         (struct simplify): Add simplify_kind enum and member.  Remove
3426         ifexpr_vec member.
3427         (simplify::simplify): Adjust.
3428         (lower_commutative): Adjust.
3429         (lower_opt_convert): Likewise.
3430         (lower_cond): Likewise.
3431         (replace_id): Handle with_expr and if_expr.
3432         (lower_for): Adjust.
3433         (dt_simplify::gen_1): New recursive worker, split out from ...
3434         (dt_simplify::gen): ... here.  Deal with if and with expansion
3435         recursively.
3436         (capture_info::capture_info): Take context argument
3437         (capture_info::walk_result): Only analyze specific result.
3438         (parser::parse_result): New function.
3439         (parser::parse_simplify): Adjust to parse ifs with then end
3440         else case.
3441         (parser::parse_if): Simplify.
3442         (parser::parse_pattern): Pass down simplify kind.
3443         * match.pd: Convert if structure to new syntax.
3445 2015-07-13  Marek Polacek  <polacek@redhat.com>
3447         * rtl.c (rtx_equal_p_cb): Fix typo.
3449 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
3451         * omega.h: Don't include config.h, don't include params.h again if
3452         omega.h has already been included.
3453         * graphite-poly.h: Include sese.h.
3454         * graphite.c: Don't include sese.h, remove needless includes and
3455         minimize includes outside #ifdef HAVE_isl block.
3456         * graphite-blocking.c: Don't include sese.h, remove needless includes,
3457         and wrap entire file in #ifdef HAVE_isl
3458         * graphite-dependences.c: Likewise.
3459         * graphite-interchange.c: Likewise.
3460         * graphite-isl-ast-to-gimple.c: Likewise.
3461         * graphite-optimize-isl.c: Likewise.
3462         * graphite-poly.c: Likewise.
3463         * graphite-scop-detection.c: Likewise.
3464         * graphite-sese-to-poly.c: Likewise.
3466 2015-07-13  Tom de Vries  <tom@codesourcery.com>
3468         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
3470 2015-07-13  Renlin Li  <renlin.li@arm.com>
3472         PR rtl/66556
3473         * simplify-rtx.c (simplify_const_relational_operation): Add
3474         side_effects_p checks.
3476 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
3478         * bitmap.h: Fix double word typos.
3479         * builtins.c: Same.
3480         * calls.c: Same.
3481         * cfgloopmanip.c: Same.
3482         * cgraph.c: Same.
3483         * cgraph.h: Same.
3484         * cgraphclones.c: Same.
3485         * combine.c: Same.
3486         * config/aarch64/aarch64-protos.h: Same.
3487         * config/aarch64/aarch64.c: Same.
3488         * config/aarch64/aarch64.md: Same.
3489         * config/arm/arm.md: Same.
3490         * config/arm/arm1020e.md: Same.
3491         * config/arm/arm1026ejs.md: Same.
3492         * config/arm/arm926ejs.md: Same.
3493         * config/arm/fa526.md: Same.
3494         * config/arm/fa606te.md: Same.
3495         * config/arm/fa626te.md: Same.
3496         * config/arm/fa726te.md: Same.
3497         * config/arm/fmp626.md: Same.
3498         * config/darwin.c: Same.
3499         * config/epiphany/epiphany.c: Same.
3500         * config/frv/frv.c: Same.
3501         * config/ft32/ft32.c: Same.
3502         * config/gnu-user.h: Same.
3503         * config/h8300/constraints.md: Same.
3504         * config/i386/i386.c: Same.
3505         * config/i386/i386.md: Same.
3506         * config/iq2000/iq2000.md: Same.
3507         * config/mips/mips.c: Same.
3508         * config/mmix/mmix.md: Same.
3509         * config/moxie/moxie.c: Same.
3510         * config/nds32/nds32.md: Same.
3511         * config/pa/pa.h: Same.
3512         * config/rs6000/aix.h: Same.
3513         * config/rs6000/rs6000.h: Same.
3514         * config/sh/sh.c: Same.
3515         * config/tilegx/tilegx.md: Same.
3516         * config/tilepro/gen-mul-tables.cc: Same.
3517         * cse.c: Same.
3518         * dbxout.c: Same.
3519         * doc/invoke.texi: Same.
3520         * dse.c: Same.
3521         * dwarf2out.c: Same.
3522         * final.c: Same.
3523         * gcc.c: Same.
3524         * genmatch.c: Same.
3525         * gimplify.c: Same.
3526         * hash-table.h: Same.
3527         * internal-fn.c: Same.
3528         * ipa-cp.c: Same.
3529         * ipa-devirt.c: Same.
3530         * ipa-icf.c: Same.
3531         * ipa-icf.h: Same.
3532         * ipa-profile.c: Same.
3533         * ipa-prop.c: Same.
3534         * ipa-prop.h: Same.
3535         * ira.c: Same.
3536         * omp-low.c: Same.
3537         * reg-stack.c: Same.
3538         * regcprop.c: Same.
3539         * reorg.c: Same.
3540         * rtl.h: Same.
3541         * sbitmap.h: Same.
3542         * tree-eh.c: Same.
3543         * tree-inline.c: Same.
3544         * tree-sra.c: Same.
3545         * tree-ssa-dom.c: Same.
3546         * tree-ssa-loop-ivopts.c: Same.
3547         * tree-ssa-structalias.c: Same.
3548         * tree-ssa-tail-merge.c: Same.
3549         * tree-ssa-ter.c: Same.
3550         * tree-ssa-threadupdate.c: Same.
3551         * tree-ssa-uninit.c: Same.
3552         * tree-ssanames.c: Same.
3553         * tree-vect-loop-manip.c: Same.
3554         * tree-vrp.c: Same.
3555         * tree.c: Same.
3556         * valtrack.c: Same.
3557         * vec.h: Same.
3559 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3561         PR middle-end/66726
3562         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
3563         tree_ssa_phiopt_worker): Call it.
3565 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
3567         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
3568         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
3569         REG_EQUAL note.
3571 2015-07-11  Marek Polacek  <polacek@redhat.com>
3573         PR middle-end/66353
3574         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
3575         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
3576         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
3577         rather than bb_has_abnormal_call_pred.
3578         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
3579         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
3580         rather than bb_has_abnormal_call_pred.
3582 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
3584         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3585         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
3586         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3587         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
3588         v850_legitimate_address_p): New functions.
3589         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3591 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3593         PR target/66819
3594         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
3595         indirect sibcall with register arguments if register available
3596         for argument passing.
3597         (init_cumulative_args): Set cfun->machine->arg_reg_available
3598         to (cum->nregs > 0) or to true if function has a variable
3599         argument list.
3600         (function_arg_advance_32): Set cfun->machine->arg_reg_available
3601         to false if cum->nregs <= 0.
3602         * config/i386/i386.h (machine_function): Add arg_reg_available.
3604 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
3606         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
3607         and gen_higpart instead of gen_rtx_SUBREG.
3608         * config/i386/i386.md
3609         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
3610         (read-modify peephole2): Use gen_lowpart instead of
3611         gen_rtx_SUBREG for operand 5.
3613 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3615         * config/tilepro/gen-mul-tables.cc (main): Change include list for
3616         generated files.
3617         * config/tilepro/mul-tables.c: Regenerate.
3618         * config/tilegx/mul-tables.c: Regenerate.
3620 2015-07-10  Richard Biener  <rguenther@suse.de>
3622         * fold-const.c (distribute_bit_expr): Remove.
3623         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
3624         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
3625         to A & (B | C) and simplifying A << C1 << C2 to ...
3626         * match.pd: ... patterns here.
3628 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
3630         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3631         Mark mem as READONLY and NOTRAP for PIC symbol.
3633 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
3635         * gimple-predict.h: New file.
3636         (gimple_predict_predictor, gimple_predict_set_predictor,
3637         gimple_predict_outcome, gimple_predict_set_outcome,
3638         gimple_build_predict): Relocate here.
3639         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
3640         gimple_predict_outcome, gimple_predict_set_outcome): Move to
3641         gimple-predict.h.
3642         * gimple.c (gimple_build_predict): Move to gimple-predict.h
3643         * basic-block.h: Don't include cfghooks.h.
3644         * backend.h: Don't include predict.h.
3645         * cfghooks.h: Include predict.h.
3646         * gimple-pretty-print.c: Include gimple-predict.h.
3647         * gimplify.c: Likwise.
3648         * predict.c: Adjust includes.
3649         * tree-inline.c: Likewise.
3650         * asan.c: Likewise.
3651         * auto-inc-dec.c: Likewise.
3652         * auto-profile.c: Likewise.
3653         * bb-reorder.c: Likewise.
3654         * builtins.c: Likewise.
3655         * caller-save.c: Likewise.
3656         * calls.c: Likewise.
3657         * cfganal.c: Likewise.
3658         * cfgbuild.c: Likewise.
3659         * cfg.c: Likewise.
3660         * cfgcleanup.c: Likewise.
3661         * cfgexpand.c: Likewise.
3662         * cfghooks.c: Likewise.
3663         * cfgloopanal.c: Likewise.
3664         * cfgloop.c: Likewise.
3665         * cfgloopmanip.c: Likewise.
3666         * cfgrtl.c: Likewise.
3667         * cgraph.c: Likewise.
3668         * cgraphunit.c: Likewise.
3669         * combine.c: Likewise.
3670         * cprop.c: Likewise.
3671         * cse.c: Likewise.
3672         * dce.c: Likewise.
3673         * dojump.c: Likewise.
3674         * dse.c: Likewise.
3675         * except.c: Likewise.
3676         * expmed.c: Likewise.
3677         * expr.c: Likewise.
3678         * final.c: Likewise.
3679         * fold-const.c: Likewise.
3680         * function.c: Likewise.
3681         * fwprop.c: Likewise.
3682         * gcc-plugin.h: Likewise.
3683         * gcse.c: Likewise.
3684         * genattrtab.c: Likewise.
3685         * genemit.c: Likewise.
3686         * gengtype.c: Likewise.
3687         * genopinit.c: Likewise.
3688         * genoutput.c: Likewise.
3689         * genpreds.c: Likewise.
3690         * genrecog.c: Likewise.
3691         * gimple-fold.c: Likewise.
3692         * gimple-iterator.c: Likewise.
3693         * gimple-ssa-isolate-paths.c: Likewise.
3694         * gimple-ssa-strength-reduction.c: Likewise.
3695         * graph.c: Likewise.
3696         * graphite-blocking.c: Likewise.
3697         * graphite.c: Likewise.
3698         * graphite-dependences.c: Likewise.
3699         * graphite-interchange.c: Likewise.
3700         * graphite-isl-ast-to-gimple.c: Likewise.
3701         * graphite-optimize-isl.c: Likewise.
3702         * graphite-poly.c: Likewise.
3703         * graphite-scop-detection.c: Likewise.
3704         * graphite-sese-to-poly.c: Likewise.
3705         * haifa-sched.c: Likewise.
3706         * ifcvt.c: Likewise.
3707         * internal-fn.c: Likewise.
3708         * ipa-cp.c: Likewise.
3709         * ipa-profile.c: Likewise.
3710         * ipa-split.c: Likewise.
3711         * ipa-utils.c: Likewise.
3712         * ira-build.c: Likewise.
3713         * ira-color.c: Likewise.
3714         * ira-conflicts.c: Likewise.
3715         * ira-costs.c: Likewise.
3716         * ira-emit.c: Likewise.
3717         * ira-lives.c: Likewise.
3718         * jump.c: Likewise.
3719         * loop-doloop.c: Likewise.
3720         * loop-init.c: Likewise.
3721         * loop-invariant.c: Likewise.
3722         * loop-unroll.c: Likewise.
3723         * lower-subreg.c: Likewise.
3724         * lra-assigns.c: Likewise.
3725         * lra.c: Likewise.
3726         * lra-coalesce.c: Likewise.
3727         * lra-constraints.c: Likewise.
3728         * lra-lives.c: Likewise.
3729         * lto-cgraph.c: Likewise.
3730         * lto-streamer-in.c: Likewise.
3731         * mode-switching.c: Likewise.
3732         * modulo-sched.c: Likewise.
3733         * omp-low.c: Likewise.
3734         * optabs.c: Likewise.
3735         * passes.c: Likewise.
3736         * postreload.c: Likewise.
3737         * postreload-gcse.c: Likewise.
3738         * profile.c: Likewise.
3739         * recog.c: Likewise.
3740         * regstat.c: Likewise.
3741         * reload1.c: Likewise.
3742         * reorg.c: Likewise.
3743         * rtlanal.c: Likewise.
3744         * sched-ebb.c: Likewise.
3745         * sel-sched-ir.c: Likewise.
3746         * sese.c: Likewise.
3747         * shrink-wrap.c: Likewise.
3748         * simplify-rtx.c: Likewise.
3749         * stmt.c: Likewise.
3750         * store-motion.c: Likewise.
3751         * tracer.c: Likewise.
3752         * trans-mem.c: Likewise.
3753         * tree-call-cdce.c: Likewise.
3754         * tree-cfg.c: Likewise.
3755         * tree-cfgcleanup.c: Likewise.
3756         * tree-chkp.c: Likewise.
3757         * tree-complex.c: Likewise.
3758         * tree-eh.c: Likewise.
3759         * tree-if-conv.c: Likewise.
3760         * tree-loop-distribution.c: Likewise.
3761         * tree-outof-ssa.c: Likewise.
3762         * tree-parloops.c: Likewise.
3763         * tree-predcom.c: Likewise.
3764         * tree-pretty-print.c: Likewise.
3765         * tree-profile.c: Likewise.
3766         * tree-sra.c: Likewise.
3767         * tree-ssa.c: Likewise.
3768         * tree-ssa-coalesce.c: Likewise.
3769         * tree-ssa-dce.c: Likewise.
3770         * tree-ssa-dom.c: Likewise.
3771         * tree-ssa-forwprop.c: Likewise.
3772         * tree-ssa-ifcombine.c: Likewise.
3773         * tree-ssa-loop-ch.c: Likewise.
3774         * tree-ssa-loop-im.c: Likewise.
3775         * tree-ssa-loop-ivcanon.c: Likewise.
3776         * tree-ssa-loop-ivopts.c: Likewise.
3777         * tree-ssa-loop-manip.c: Likewise.
3778         * tree-ssa-loop-prefetch.c: Likewise.
3779         * tree-ssa-loop-unswitch.c: Likewise.
3780         * tree-ssa-math-opts.c: Likewise.
3781         * tree-ssa-phiopt.c: Likewise.
3782         * tree-ssa-pre.c: Likewise.
3783         * tree-ssa-reassoc.c: Likewise.
3784         * tree-ssa-sink.c: Likewise.
3785         * tree-ssa-tail-merge.c: Likewise.
3786         * tree-ssa-threadedge.c: Likewise.
3787         * tree-ssa-threadupdate.c: Likewise.
3788         * tree-switch-conversion.c: Likewise.
3789         * tree-tailcall.c: Likewise.
3790         * tree-vect-data-refs.c: Likewise.
3791         * tree-vect-loop.c: Likewise.
3792         * tree-vect-loop-manip.c: Likewise.
3793         * tree-vectorizer.c: Likewise.
3794         * tree-vrp.c: Likewise.
3795         * ubsan.c: Likewise.
3796         * value-prof.c: Likewise.
3797         * varasm.c: Likewise.
3798         * var-tracking.c: Likewise.
3799         * config/aarch64/aarch64-builtins.c: Likewise.
3800         * config/aarch64/aarch64.c: Likewise.
3801         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3802         * config/alpha/alpha.c: Likewise.
3803         * config/arc/arc.c: Likewise.
3804         * config/arm/arm.c: Likewise.
3805         * config/avr/avr.c: Likewise.
3806         * config/bfin/bfin.c: Likewise.
3807         * config/c6x/c6x.c: Likewise.
3808         * config/cr16/cr16.c: Likewise.
3809         * config/cris/cris.c: Likewise.
3810         * config/darwin.c: Likewise.
3811         * config/darwin-c.c: Likewise.
3812         * config/epiphany/epiphany.c: Likewise.
3813         * config/epiphany/mode-switch-use.c: Likewise.
3814         * config/epiphany/resolve-sw-modes.c: Likewise.
3815         * config/fr30/fr30.c: Likewise.
3816         * config/frv/frv.c: Likewise.
3817         * config/ft32/ft32.c: Likewise.
3818         * config/h8300/h8300.c: Likewise.
3819         * config/i386/i386.c: Likewise.
3820         * config/i386/winnt.c: Likewise.
3821         * config/ia64/ia64.c: Likewise.
3822         * config/iq2000/iq2000.c: Likewise.
3823         * config/lm32/lm32.c: Likewise.
3824         * config/m32c/m32c.c: Likewise.
3825         * config/m32r/m32r.c: Likewise.
3826         * config/m68k/m68k.c: Likewise.
3827         * config/mcore/mcore.c: Likewise.
3828         * config/mep/mep.c: Likewise.
3829         * config/microblaze/microblaze.c: Likewise.
3830         * config/mips/mips.c: Likewise.
3831         * config/mmix/mmix.c: Likewise.
3832         * config/mn10300/mn10300.c: Likewise.
3833         * config/moxie/moxie.c: Likewise.
3834         * config/msp430/msp430.c: Likewise.
3835         * config/nds32/nds32.c: Likewise.
3836         * config/nds32/nds32-cost.c: Likewise.
3837         * config/nds32/nds32-fp-as-gp.c: Likewise.
3838         * config/nds32/nds32-intrinsic.c: Likewise.
3839         * config/nds32/nds32-isr.c: Likewise.
3840         * config/nds32/nds32-md-auxiliary.c: Likewise.
3841         * config/nds32/nds32-memory-manipulation.c: Likewise.
3842         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3843         * config/nds32/nds32-predicates.c: Likewise.
3844         * config/nios2/nios2.c: Likewise.
3845         * config/nvptx/nvptx.c: Likewise.
3846         * config/pa/pa.c: Likewise.
3847         * config/pdp11/pdp11.c: Likewise.
3848         * config/rl78/rl78.c: Likewise.
3849         * config/rs6000/rs6000.c: Likewise.
3850         * config/rx/rx.c: Likewise.
3851         * config/s390/s390.c: Likewise.
3852         * config/sh/sh.c: Likewise.
3853         * config/sh/sh-mem.cc: Likewise.
3854         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3855         * config/sh/sh_treg_combine.cc: Likewise.
3856         * config/sparc/sparc.c: Likewise.
3857         * config/spu/spu.c: Likewise.
3858         * config/stormy16/stormy16.c: Likewise.
3859         * config/tilegx/tilegx.c: Likewise.
3860         * config/tilepro/tilepro.c: Likewise.
3861         * config/v850/v850.c: Likewise.
3862         * config/vax/vax.c: Likewise.
3863         * config/visium/visium.c: Likewise.
3864         * config/xtensa/xtensa.c: Likewise.
3866 2015-07-10  Richard Biener  <rguenther@suse.de>
3868         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
3869         (decision_tree::gen_gimple): Likewise.
3870         (decision_tree::gen_generic): Likewise.
3872 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
3874         PR target/66813
3875         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
3876         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
3878 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
3880         PR middle-end/66820
3881         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
3882         or ORT_TASK contexts.
3883         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
3884         is non-zero.
3886 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3888         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
3889         above function.
3891 2015-07-10  Tom de Vries  <tom@codesourcery.com>
3893         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
3894         insert nit + 1 bound.
3896 2015-07-10  Richard Biener  <rguenther@suse.de>
3898         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
3899         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
3900         (if_convertible_loop_p_1): For this always compute bb predicates.
3901         (if_convertible_loop_p): And free them.
3903 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3905         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
3906         in dump message.
3908 2015-07-10  Richard Biener  <rguenther@suse.de>
3910         PR tree-optimization/66823
3911         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
3912         inverted predicate.
3914 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
3916         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
3917         to handle mips[32|64]r3 and mips[32|64]r5.
3919 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
3921         PR middle-end/66633
3922         * tree-nested.c (get_static_chain): Or in a flag into
3923         info->static_chain_added.
3924         (get_frame_field, get_nonlocal_debug_decl): Likewise.
3925         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
3926         2015-07-01 changes.
3927         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
3928         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
3929         add it to clauses.
3931         PR tree-optimization/66718
3932         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
3933         field.
3934         (vect_simd_lane_linear): New function.
3935         (vectorizable_simd_clone_call): Support using linear arguments for
3936         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
3938 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
3940         PR target/66821
3941         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
3943 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3945         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
3946         Use machine mode, not enum machine_mode in the prototype.
3948         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
3949         classify 128-bit floating point support.
3950         (FLOAT128_IBM_P): Likewise.
3951         (FLOAT128_VECTOR_P): Likewise.
3952         (FLOAT128_2REG_P): Likewise.
3953         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
3954         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
3955         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3956         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
3958         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
3959         tests against TFmode/TDmode, since those modes do not use VSX
3960         addresses.
3961         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
3962         support.
3963         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
3964         tests against TFmode, etc.
3965         (invalid_e500_subreg): Add tests against IFmode/KFmode.
3966         (reg_offset_addressing_ok_p): Likewise.
3967         (rs6000_legitimate_offset_address_p): Likewise.
3968         (rs6000_legitimize_address): Likewise.
3969         (rs6000_legitimize_reload_address): Likewise.
3970         (rs6000_legitimate_address_p): Clean up tests against TFmode and
3971         TDmode to use the new helper macros, which will include IFmode and
3972         KFmode.
3973         (rs6000_emit_move): Likewise.
3974         (rs6000_darwin64_record_arg_recurse): Likewise.
3975         (print_operand): Likewise.
3976         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
3977         that uses a single vector register as a vector and not as a
3978         floating point register in terms of the calling sequence.
3979         (rs6000_discover_homogeneous_aggregate): Likewise.
3980         (rs6000_return_in_memory): Likewise.
3981         (init_cumulative_args): Likewise.
3982         (rs6000_function_arg_boundary): Likewise.
3983         (rs6000_function_arg_advance_1): Likewise.
3984         (rs6000_function_arg): Likewise.
3985         (rs6000_pass_by_reference): Likewise.
3986         (rs6000_gimplify_va_arg): Likewise.
3987         (rs6000_secondary_reload_memory): Use machine_mode not enum
3988         machine mode.
3989         (rs6000_split_multireg_move): Use new helper macros.
3990         (spe_func_has_64bit_regs_p): Likewise.
3991         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
3992         (output_toc): Use new helper macros.
3993         (rs6000_register_move_cost): Likewise.
3994         (rs6000_function_value): Add IEEE 128-bit floating point calling
3995         sequence support.
3996         (rs6000_libcall_value): Likewise.
3997         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
3998         floating point support.
3999         (rs6000_vector_mode_supported_p): Likewise.
4001 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
4003         PR rtl-optimization/66782
4004         * lra-int.h (struct lra_insn_recog_data): Add comment about
4005         clobbered hard regs for arg_hard_regs.
4006         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4007         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4008         Add condition for processing used hard regs.
4009         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4010         Process clobbered hard regs.
4012 2015-07-09  Michael Matz  <matz@suse.de>
4014         * genmatch.c (fprintf_indent): New function.
4015         (operand::gen_transform): Add indent parameter.
4016         (expr::gen_transform, c_expr::gen_transform,
4017         capture::gen_transform): Ditto and use fprintf_indent.
4018         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4019         (dt_operand::gen, dt_operand::gen_predicate,
4020         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4021         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4022         (decision_tree::gen_gimple): Adjust calls and indent generated
4023         code.
4024         (decision_tree::gen_generic): Ditto.
4025         (write_predicate): Ditto.
4027 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4029         PR target/66814
4030         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4031         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4032         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4033         {GENERAL,SSE,MMX}_REG_P where appropriate.
4035 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4037         * lto-streamer.h: Don't include target.h and alloc-pool.h.
4038         * builtins.c: Adjust includes.
4039         * gimple.c: Likewise.
4040         * ipa-icf.c: Likewise.
4041         * lto-opts.c: Likewise.
4042         * ipa-reference.c: Likewise.
4043         * lto-section-out.c: Likewise.
4044         * lto-streamer-in.c: Likewise.
4045         * lto-streamer-out.c: Likewise.
4046         * opts-global.c: Likewise.
4047         * symtab.c: Likewise.
4048         * tree-chkp.c: Likewise.
4049         * tree-ssa-live.c: Likewise.
4050         * tree-streamer-in.c: Likewise.
4051         * tree-streamer-out.c: Likewise.
4052         * config/darwin.c: Likewise.
4053         * config/i386/winnt.c: Likewise.
4055 2015-07-09  Richard Biener  <rguenther@suse.de>
4057         * genmatch.c (struct expr): Add force_single_use flag.
4058         (expr::expr): Add copy constructor.
4059         (capture_info::walk_match): Gather force_single_use captures.
4060         (expr::gen_transform): Use possibly NULLified sequence.
4061         (dt_simplify::gen): Apply single-use restrictions by NULLifying
4062         seq if any constrained expr is not single-use.
4063         (parser::parse_expr): Refactor to allow multiple flags.  Handle
4064         's' flag to force an expression have a single-use if the pattern
4065         simplifies to more than one statement.
4066         * match.pd: Convert most single_use conditionals to :s flags.
4068 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4070         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4071         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4072         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4074 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
4076         * flags.h: Don't include flag-types.h or options.h.
4077         * opts-common.c: Adjust includes.
4078         * opts-global.c: Likewise.
4079         * common/config/epiphany/epiphany-common.c: Likewise.
4081 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4083         PR target/66818
4084         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4085         for IA MCU.
4087 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
4089         PR target/66817
4090         * config/i386/i386.c (ix86_return_in_memory): Return true
4091         if int_size_in_bytes returns negative for IA MCU.
4093 2015-07-09  Marek Polacek  <polacek@redhat.com>
4095         PR tree-optimization/66718
4096         * Makefile.in (OBJS): Add gimple-laddress.o.
4097         * passes.def: Schedule pass_laddress.
4098         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4099         * tree-pass.h (make_pass_laddress): Declare.
4100         * gimple-laddress.c: New file.
4102 2015-07-09  Richard Biener  <rguenther@suse.de>
4104         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4106 2015-07-09  Richard Biener  <rguenther@suse.de>
4108         PR tree-optimization/66807
4109         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4111 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
4113         * function.c (stack_protect_epilogue): Use if rather than switch for
4114         check targetm.have_stack_protect_test.
4116 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4118         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4119         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4120         * config/arc/arc.h: Likewise.
4121         * config/arm/arm.h: Likewise.
4122         * config/bfin/bfin.h: Likewise.
4123         * config/epiphany/epiphany.h: Likewise.
4124         * config/frv/frv.h: Likewise.
4125         * config/ia64/ia64.h: Likewise.
4126         * config/iq2000/iq2000.h: Likewise.
4127         * config/lm32/lm32.h: Likewise.
4128         * config/m32r/m32r.h: Likewise.
4129         * config/mcore/mcore.h: Likewise.
4130         * config/mep/mep.h: Likewise.
4131         * config/microblaze/microblaze.h: Likewise.
4132         * config/mips/mips.h: Likewise.
4133         * config/mmix/mmix.h: Likewise.
4134         * config/mn10300/mn10300.h: Likewise.
4135         * config/nds32/nds32.h: Likewise.
4136         * config/nios2/nios2.h: Likewise.
4137         * config/pa/pa.h: Likewise.
4138         * config/rl78/rl78.h: Likewise.
4139         * config/sh/sh.h: Likewise.
4140         * config/sparc/sparc.h: Likewise.
4141         * config/stormy16/stormy16.h: Likewise.
4142         * config/tilegx/tilegx.h: Likewise.
4143         * config/tilepro/tilepro.h: Likewise.
4144         * config/v850/v850.h: Likewise.
4145         * config/xtensa/xtensa.h: Likewise.
4146         * doc/tm.texi: Regenerate.
4147         * doc/tm.texi.in: Adjust.
4148         * combine.c (simplify_set): Likewise.
4149         (simplify_comparison): Likewise.
4150         * expr.c (store_constructor): Likewise.
4151         * internal-fn.c (expand_arith_overflow): Likewise.
4152         * reload.c (push_reload): Likewise.
4153         (find_reloads): Likewise.
4154         (find_reloads_subreg_address): Likewise.
4155         * reload1.c (eliminate_regs_1): Likewise.
4156         * rtlanal.c (nonzero_bits1): Likewise.
4157         (num_sign_bit_copies1): Likewise.
4158         * simplify-rtx.c (simplify_truncation): Likewise.
4160 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4162         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4163         of AUTO_INC_DEC with the preprocessor.
4164         * combine.c (combine_instructions): Likewise.
4165         (can_combine_p): Likewise.
4166         (try_combine): Likewise.
4167         * emit-rtl.c (try_split): Likewise.
4168         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4169         * lower-subreg.c (resolve_simple_move): Likewise.
4170         * lra.c (update_inc_notes): Likewise.
4171         * recog.c (asm_operand_ok): Likewise.
4172         (constrain_operands): Likewise.
4173         * regrename.c (scan_rtx_address): Likewise.
4174         * reload.c (update_auto_inc_notes): Likewise.
4175         (reg_inc_found_and_valid_p): Likewise.
4176         * reload1.c (reload): Likewise.
4177         (emit_input_reload_insns): Likewise.
4178         (delete_output_reload): Likewise.
4179         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4180         * valtrack.c (cleanup_auto_inc_dec): Likewise.
4182 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4184         * rtl.h: Always define AUTO_INC_DEC.
4185         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4186         * combine.c (combine_instructions): Likewise.
4187         (can_combine_p): Likewise.
4188         (try_combine): Likewise.
4189         * emit-rtl.c (try_split): Likewise.
4190         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4191         * lower-subreg.c (resolve_simple_move): Likewise.
4192         * lra.c (update_inc_notes): Likewise.
4193         * recog.c (asm_operand_ok): Likewise.
4194         (constrain_operands): Likewise.
4195         * regrename.c (scan_rtx_address): Likewise.
4196         * reload.c (update_auto_inc_notes): Likewise.
4197         (find_equiv_reg): Likewise.
4198         * reload1.c (reload): Likewise.
4199         (reload_as_needed): Likewise.
4200         (choose_reload_regs): Likewise.
4201         (emit_input_reload_insns): Likewise.
4202         (delete_output_reload): Likewise.
4203         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4204         * valtrack.c (cleanup_auto_inc_dec): Likewise.
4206 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4208         * combine.c (can_combine_def_p): Don't check the value of
4209         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4210         (combinable_i3pat): Likewise.
4211         (mark_used_regs_combine): Likewise.
4212         * regrename.c (rename_chains): Likewise.
4213         * reload.c (find_reloads_address): Likewise.
4214         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4216 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4218         * combine.c (update_rsp_from_reg_equal): Don't check if
4219         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4220         (reg_nonzero_bits_for_combine): Likewise.
4221         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4222         1.
4223         * config/frv/frv.h: Likewise.
4224         * config/lm32/lm32.h: Likewise.
4225         * config/mep/mep.h: Likewise.
4226         * config/mips/mips.h: Likewise.
4227         * config/rs6000/rs6000.h: Likewise.
4228         * config/sh/sh.h: Likewise.
4229         * config/tilegx/tilegx.h (enum reg_class): Likewise.
4230         * config/tilepro/tilepro.h: Likewise.
4231         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4232         * doc/tm.texi: Regenerate.
4233         * doc/tm.texi.in: Adjust.
4234         * rtlanal.c (nonzero_bits1): Likewise.
4236 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4238         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4239         with the preprocessor.
4240         (combine_instructions): Likewise.
4241         (try_combine): Likewise.
4242         (subst): Likewise.
4243         (distribute_notes): Likewise.
4245 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4247         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4248         defined.
4249         (simplify_set): Likewise.
4250         * cse.c (cse_insn): Likewise.
4251         * fold-const.c (fold_single_bit_test): Likewise.
4252         (fold_unary_loc): Likewise.
4253         * postreload.c (reload_cse_simplify_set): Likewise.
4254         (reload_cse_simplify_operands): Likewise.
4256 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
4258         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4259         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4261 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
4263         PR target/66746
4264         * config/i386/x86intrin.h: Include <adxintrin.h> even if
4265         __iamcu__ is defined.
4267 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4269         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4271 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
4273         PR target/66523
4274         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4275         names from preservation.
4277 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
4279         PR target/66806
4280         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4281         change for IAMCU.
4282         (function_arg_advance_32): Don't pass vectors in registers for
4283         IAMCU.
4284         (function_arg_32): Likewise.
4285         (ix86_return_in_memory): Don't return vectors in registers for
4286         IAMCU.
4288 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4290         PR middle-end/66334
4291         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4292         hard regno live at the start of BB with incoming abnormal edges.
4293         * lra-lives.c (process_bb_lives): Ditto.
4295 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
4297         PR libgomp/65099
4298         * config/nvptx/mkoffload.c (main): Create an offload image only in
4299         64-bit configurations.
4301 2015-07-08  Martin Liska  <mliska@suse.cz>
4303         PR bootstrap/66744
4304         * tree-sra.c (create_access_1): Call ctor without brackets.
4305         (create_artificial_child_access): Likewise.
4307 2015-07-08  Richard Biener  <rguenther@suse.de>
4309         PR tree-optimization/66793
4310         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4311         Properly split the block after stmts ending it.
4313 2015-07-08  Richard Biener  <rguenther@suse.de>
4315         PR tree-optimization/66794
4316         * passes.c (execute_function_todo): Assert that post-dominators
4317         are not computed.
4318         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4319         Free post-dominators.
4321 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4323         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4324         with early exit.
4326 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
4328         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4329         more than or equal 8 and less than 32 when optimizing for size.
4331 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4333         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4334         COSTS_N_INSNS (1) and increment it appropriately throughout the
4335         function.
4337 2015-07-08  Richard Biener  <rguenther@suse.de>
4339         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4341 2015-07-08  Alan Modra  <amodra@gmail.com>
4343         * target.def (rtx_costs): Remove "code" param, add "mode".
4344         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4345         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
4346         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4347         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
4348         call.  Track mode when given in rtx.
4349         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
4350         (default_address_cost): Pass Pmode to rtx_cost.
4351         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4352         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4353         with NULL set.
4354         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
4355         (notreg_cost): Add mode param.  Use it.
4356         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
4357         mode param and pass to set_src_cost.  Update all calls.
4358         (hash_scan_set): Formatting.
4359         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4360         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4361         * hooks.h: Ditto.
4362         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4363         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4364         emit_store_flag): Update set_src_cost and rtx_cost calls.
4365         * auto-inc-dec.c (attempt_change): Likewise.
4366         * calls.c (precompute_register_parameters): Likewise.
4367         * combine.c (expand_compound_operation, make_extraction,
4368         force_to_mode, distribute_and_simplify_rtx): Likewise.
4369         * dojump.c (prefer_and_bit_test): Likewise.
4370         * dse.c (find_shift_sequence): Likewise.
4371         * expr.c (compress_float_constant): Likewise.
4372         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4373         * ifcvt.c (noce_try_sign_mask): Likewise.
4374         * loop-doloop.c (doloop_optimize): Likewise.
4375         * loop-invariant.c (create_new_invariant): Likewise.
4376         * lower-subreg.c (shift_cost, compute_costs): Likewise.
4377         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4378         lshift_cheap_p): Likewise.
4379         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4380         try_replace_in_use, reload_cse_move2add): Likewise.
4381         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4382         Likewise.
4383         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4384         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4385         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4386         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4387         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4388         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
4389         to rtx_cost calls.
4390         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4391         * config/arc/arc.c (arc_rtx_costs): Likewise.
4392         * config/arm/arm.c (arm_rtx_costs): Likewise.
4393         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4394         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4395         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4396         * config/cris/cris.c (cris_rtx_costs): Likewise.
4397         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4398         * config/frv/frv.c (frv_rtx_costs): Likewise.
4399         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4400         * config/i386/i386.c (ix86_rtx_costs): Likewise.
4401         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4402         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4403         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4404         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4405         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4406         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4407         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4408         * config/mep/mep.c (mep_rtx_cost): Likewise.
4409         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4410         * config/mips/mips.c (mips_rtx_costs): Likewise.
4411         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4412         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4413         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4414         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4415         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4416         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4417         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4418         * config/pa/pa.c (hppa_rtx_costs): Likewise.
4419         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4420         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4421         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4422         * config/s390/s390.c (s390_rtx_costs): Likewise.
4423         * config/sh/sh.c (sh_rtx_costs): Likewise.
4424         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4425         * config/spu/spu.c (spu_rtx_costs): Likewise.
4426         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4427         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4428         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4429         * config/v850/v850.c (v850_rtx_costs): Likewise.
4430         * config/vax/vax.c (vax_rtx_costs): Likewise.
4431         * config/visium/visium.c (visium_rtx_costs): Likewise.
4432         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4433         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4434         "code" param, and pass as outer_code to first rtx_cost call.  Pass
4435         mode to rtx_cost calls.
4436         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4437         calls.
4438         (aarch64_rtx_costs_wrapper): Update.
4439         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4440         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4441         rtx_cost calls.
4442         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4443         and rtx_cost calls.
4444         (avr_operand_rtx_cost): Similarly.
4445         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4446         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4447         * config/mips/mips.c (mips_stack_address_p): Comment typo.
4448         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4449         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4450         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
4451         rtx_cost.
4452         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
4453         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
4454         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
4455         * doc/tm.texi: Regenerate.
4457 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
4459         * tree-core.h: Include symtab.h.
4460         * rtl.h: Include hard-reg-set.h but not flags.h.
4461         (HARD_CONST): Remove condition compilation involving HARD_CONST since
4462         hard-reg-set.h is always included.
4463         * regs.h: Don't include hard-reg-set.h or rtl.h.
4464         * cfg.h: Include dominance.h.
4465         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
4466         * backend.h: New.  Aggregate commonly used backend header files.
4467         * gimple-ssa.h: Don't include tree-hasher.h.
4468         * ssa.h: New.  Aggregate commonly used SSA header files.
4469         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
4470         * sel-sched-ir.h: Flatten includes.
4471         * lra-int.h: Flatten completely.
4472         * sel-sched-dump.h: Flatten includes.
4473         * ira-int.h: Flatten includes.
4474         * gimple-streamer.h: Remove all includes.
4475         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
4476         * resource.h: Flatten hard-reg-set.h and df.h.
4477         * sched-int.h: Flatten insn-arrt.h and df.h.
4478         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
4479         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
4480         * genattrtab.c (write_header): Adjust generated includes.
4481         * genautomata.c (main): Likewise.
4482         * genconditions.c (write-header): Likewise.
4483         * genemit.c (main): Likewise.
4484         * gengtype.c (open_base_files): Likewise.
4485         * genopinit.c (main): Likewise.
4486         * genoutput.c (output_prologue): Likewise.
4487         * genpeep.c (main): Likewise.
4488         * genpreds.c (write_insn_preds_c): Likewise.
4489         * genrecog.c (write_header): Likewise.
4490         * alias.c: Adjust includes.
4491         * asan.c: Likewise.
4492         * attribs.c: Likewise.
4493         * auto-inc-dec.c: Likewise.
4494         * auto-profile.c: Likewise.
4495         * bb-reorder.c: Likewise.
4496         * bt-load.c: Likewise.
4497         * builtins.c: Likewise.
4498         * caller-save.c: Likewise.
4499         * calls.c: Likewise.
4500         * ccmp.c: Likewise.
4501         * cfg.c: Likewise.
4502         * cfganal.c: Likewise.
4503         * cfgbuild.c: Likewise.
4504         * cfgcleanup.c: Likewise.
4505         * cfgexpand.c: Likewise.
4506         * cfghooks.c: Likewise.
4507         * cfgloop.c: Likewise.
4508         * cfgloopanal.c: Likewise.
4509         * cfgloopmanip.c: Likewise.
4510         * cfgrtl.c: Likewise.
4511         * cgraph.c: Likewise.
4512         * cgraphbuild.c: Likewise.
4513         * cgraphclones.c: Likewise.
4514         * cgraphunit.c: Likewise.
4515         * cilk-common.c: Likewise.
4516         * combine-stack-adj.c: Likewise.
4517         * combine.c: Likewise.
4518         * compare-elim.c: Likewise.
4519         * convert.c: Likewise.
4520         * coverage.c: Likewise.
4521         * cppbuiltin.c: Likewise.
4522         * cprop.c: Likewise.
4523         * cse.c: Likewise.
4524         * cselib.c: Likewise.
4525         * data-streamer-in.c: Likewise.
4526         * data-streamer-out.c: Likewise.
4527         * data-streamer.c: Likewise.
4528         * dbxout.c: Likewise.
4529         * dce.c: Likewise.
4530         * ddg.c: Likewise.
4531         * debug.c: Likewise.
4532         * df-core.c: Likewise.
4533         * df-problems.c: Likewise.
4534         * df-scan.c: Likewise.
4535         * dfp.c: Likewise.
4536         * dojump.c: Likewise.
4537         * dominance.c: Likewise.
4538         * domwalk.c: Likewise.
4539         * double-int.c: Likewise.
4540         * dse.c: Likewise.
4541         * dumpfile.c: Likewise.
4542         * dwarf2asm.c: Likewise.
4543         * dwarf2cfi.c: Likewise.
4544         * dwarf2out.c: Likewise.
4545         * emit-rtl.c: Likewise.
4546         * et-forest.c: Likewise.
4547         * except.c: Likewise.
4548         * explow.c: Likewise.
4549         * expmed.c: Likewise.
4550         * expr.c: Likewise.
4551         * final.c: Likewise.
4552         * fixed-value.c: Likewise.
4553         * fold-const.c: Likewise.
4554         * function.c: Likewise.
4555         * fwprop.c: Likewise.
4556         * gcc-plugin.h: Likewise.
4557         * gcse-common.c: Likewise.
4558         * gcse.c: Likewise.
4559         * generic-match-head.c: Likewise.
4560         * ggc-page.c: Likewise.
4561         * gimple-builder.c: Likewise.
4562         * gimple-expr.c: Likewise.
4563         * gimple-fold.c: Likewise.
4564         * gimple-iterator.c: Likewise.
4565         * gimple-low.c: Likewise.
4566         * gimple-match-head.c: Likewise.
4567         * gimple-pretty-print.c: Likewise.
4568         * gimple-ssa-isolate-paths.c: Likewise.
4569         * gimple-ssa-strength-reduction.c: Likewise.
4570         * gimple-streamer-in.c: Likewise.
4571         * gimple-streamer-out.c: Likewise.
4572         * gimple-walk.c: Likewise.
4573         * gimple.c: Likewise.
4574         * gimplify-me.c: Likewise.
4575         * gimplify.c: Likewise.
4576         * godump.c: Likewise.
4577         * graph.c: Likewise.
4578         * graphite-blocking.c: Likewise.
4579         * graphite-dependences.c: Likewise.
4580         * graphite-interchange.c: Likewise.
4581         * graphite-isl-ast-to-gimple.c: Likewise.
4582         * graphite-optimize-isl.c: Likewise.
4583         * graphite-poly.c: Likewise.
4584         * graphite-scop-detection.c: Likewise.
4585         * graphite-sese-to-poly.c: Likewise.
4586         * graphite.c: Likewise.
4587         * haifa-sched.c: Likewise.
4588         * hw-doloop.c: Likewise.
4589         * ifcvt.c: Likewise.
4590         * init-regs.c: Likewise.
4591         * internal-fn.c: Likewise.
4592         * ipa-chkp.c: Likewise.
4593         * ipa-comdats.c: Likewise.
4594         * ipa-cp.c: Likewise.
4595         * ipa-devirt.c: Likewise.
4596         * ipa-icf-gimple.c: Likewise.
4597         * ipa-icf.c: Likewise.
4598         * ipa-inline-analysis.c: Likewise.
4599         * ipa-inline-transform.c: Likewise.
4600         * ipa-inline.c: Likewise.
4601         * ipa-polymorphic-call.c: Likewise.
4602         * ipa-profile.c: Likewise.
4603         * ipa-prop.c: Likewise.
4604         * ipa-pure-const.c: Likewise.
4605         * ipa-ref.c: Likewise.
4606         * ipa-reference.c: Likewise.
4607         * ipa-split.c: Likewise.
4608         * ipa-utils.c: Likewise.
4609         * ipa-visibility.c: Likewise.
4610         * ipa.c: Likewise.
4611         * ira-build.c: Likewise.
4612         * ira-color.c: Likewise.
4613         * ira-conflicts.c: Likewise.
4614         * ira-costs.c: Likewise.
4615         * ira-emit.c: Likewise.
4616         * ira-lives.c: Likewise.
4617         * ira.c: Likewise.
4618         * jump.c: Likewise.
4619         * langhooks.c: Likewise.
4620         * lcm.c: Likewise.
4621         * loop-doloop.c: Likewise.
4622         * loop-init.c: Likewise.
4623         * loop-invariant.c: Likewise.
4624         * loop-iv.c: Likewise.
4625         * loop-unroll.c: Likewise.
4626         * lower-subreg.c: Likewise.
4627         * lra-assigns.c: Likewise.
4628         * lra-coalesce.c: Likewise.
4629         * lra-constraints.c: Likewise.
4630         * lra-eliminations.c: Likewise.
4631         * lra-lives.c: Likewise.
4632         * lra-remat.c: Likewise.
4633         * lra-spills.c: Likewise.
4634         * lra.c: Likewise.
4635         * lto-cgraph.c: Likewise.
4636         * lto-compress.c: Likewise.
4637         * lto-opts.c: Likewise.
4638         * lto-section-in.c: Likewise.
4639         * lto-section-out.c: Likewise.
4640         * lto-streamer-in.c: Likewise.
4641         * lto-streamer-out.c: Likewise.
4642         * lto-streamer.c: Likewise.
4643         * mcf.c: Likewise.
4644         * mode-switching.c: Likewise.
4645         * modulo-sched.c: Likewise.
4646         * omega.c: Likewise.
4647         * omp-low.c: Likewise.
4648         * optabs.c: Likewise.
4649         * opts-global.c: Likewise.
4650         * passes.c: Likewise.
4651         * plugin.c: Likewise.
4652         * postreload-gcse.c: Likewise.
4653         * postreload.c: Likewise.
4654         * predict.c: Likewise.
4655         * print-rtl.c: Likewise.
4656         * print-tree.c: Likewise.
4657         * profile.c: Likewise.
4658         * real.c: Likewise.
4659         * realmpfr.c: Likewise.
4660         * recog.c: Likewise.
4661         * ree.c: Likewise.
4662         * reg-stack.c: Likewise.
4663         * regcprop.c: Likewise.
4664         * reginfo.c: Likewise.
4665         * regrename.c: Likewise.
4666         * regstat.c: Likewise.
4667         * reload.c: Likewise.
4668         * reload1.c: Likewise.
4669         * reorg.c: Likewise.
4670         * resource.c: Likewise.
4671         * rtl-chkp.c: Likewise.
4672         * rtlanal.c: Likewise.
4673         * rtlhooks.c: Likewise.
4674         * sanopt.c: Likewise.
4675         * sched-deps.c: Likewise.
4676         * sched-ebb.c: Likewise.
4677         * sched-rgn.c: Likewise.
4678         * sched-vis.c: Likewise.
4679         * sdbout.c: Likewise.
4680         * sel-sched-dump.c: Likewise.
4681         * sel-sched-ir.c: Likewise.
4682         * sel-sched.c: Likewise.
4683         * sese.c: Likewise.
4684         * shrink-wrap.c: Likewise.
4685         * simplify-rtx.c: Likewise.
4686         * stack-ptr-mod.c: Likewise.
4687         * stmt.c: Likewise.
4688         * stor-layout.c: Likewise.
4689         * store-motion.c: Likewise.
4690         * stringpool.c: Likewise.
4691         * symtab.c: Likewise.
4692         * target-globals.c: Likewise.
4693         * targhooks.c: Likewise.
4694         * toplev.c: Likewise.
4695         * tracer.c: Likewise.
4696         * trans-mem.c: Likewise.
4697         * tree-affine.c: Likewise.
4698         * tree-browser.c: Likewise.
4699         * tree-call-cdce.c: Likewise.
4700         * tree-cfg.c: Likewise.
4701         * tree-cfgcleanup.c: Likewise.
4702         * tree-chkp-opt.c: Likewise.
4703         * tree-chkp.c: Likewise.
4704         * tree-chrec.c: Likewise.
4705         * tree-complex.c: Likewise.
4706         * tree-data-ref.c: Likewise.
4707         * tree-dfa.c: Likewise.
4708         * tree-diagnostic.c: Likewise.
4709         * tree-dump.c: Likewise.
4710         * tree-eh.c: Likewise.
4711         * tree-emutls.c: Likewise.
4712         * tree-if-conv.c: Likewise.
4713         * tree-inline.c: Likewise.
4714         * tree-into-ssa.c: Likewise.
4715         * tree-iterator.c: Likewise.
4716         * tree-loop-distribution.c: Likewise.
4717         * tree-nested.c: Likewise.
4718         * tree-nrv.c: Likewise.
4719         * tree-object-size.c: Likewise.
4720         * tree-outof-ssa.c: Likewise.
4721         * tree-parloops.c: Likewise.
4722         * tree-phinodes.c: Likewise.
4723         * tree-predcom.c: Likewise.
4724         * tree-pretty-print.c: Likewise.
4725         * tree-profile.c: Likewise.
4726         * tree-scalar-evolution.c: Likewise.
4727         * tree-sra.c: Likewise.
4728         * tree-ssa-address.c: Likewise.
4729         * tree-ssa-alias.c: Likewise.
4730         * tree-ssa-ccp.c: Likewise.
4731         * tree-ssa-coalesce.c: Likewise.
4732         * tree-ssa-copy.c: Likewise.
4733         * tree-ssa-copyrename.c: Likewise.
4734         * tree-ssa-dce.c: Likewise.
4735         * tree-ssa-dom.c: Likewise.
4736         * tree-ssa-dse.c: Likewise.
4737         * tree-ssa-forwprop.c: Likewise.
4738         * tree-ssa-ifcombine.c: Likewise.
4739         * tree-ssa-live.c: Likewise.
4740         * tree-ssa-loop-ch.c: Likewise.
4741         * tree-ssa-loop-im.c: Likewise.
4742         * tree-ssa-loop-ivcanon.c: Likewise.
4743         * tree-ssa-loop-ivopts.c: Likewise.
4744         * tree-ssa-loop-manip.c: Likewise.
4745         * tree-ssa-loop-niter.c: Likewise.
4746         * tree-ssa-loop-prefetch.c: Likewise.
4747         * tree-ssa-loop-unswitch.c: Likewise.
4748         * tree-ssa-loop.c: Likewise.
4749         * tree-ssa-math-opts.c: Likewise.
4750         * tree-ssa-operands.c: Likewise.
4751         * tree-ssa-phiopt.c: Likewise.
4752         * tree-ssa-phiprop.c: Likewise.
4753         * tree-ssa-pre.c: Likewise.
4754         * tree-ssa-propagate.c: Likewise.
4755         * tree-ssa-reassoc.c: Likewise.
4756         * tree-ssa-sccvn.c: Likewise.
4757         * tree-ssa-scopedtables.c: Likewise.
4758         * tree-ssa-sink.c: Likewise.
4759         * tree-ssa-strlen.c: Likewise.
4760         * tree-ssa-structalias.c: Likewise.
4761         * tree-ssa-tail-merge.c: Likewise.
4762         * tree-ssa-ter.c: Likewise.
4763         * tree-ssa-threadedge.c: Likewise.
4764         * tree-ssa-threadupdate.c: Likewise.
4765         * tree-ssa-uncprop.c: Likewise.
4766         * tree-ssa-uninit.c: Likewise.
4767         * tree-ssa.c: Likewise.
4768         * tree-ssanames.c: Likewise.
4769         * tree-stdarg.c: Likewise.
4770         * tree-streamer-in.c: Likewise.
4771         * tree-streamer-out.c: Likewise.
4772         * tree-streamer.c: Likewise.
4773         * tree-switch-conversion.c: Likewise.
4774         * tree-tailcall.c: Likewise.
4775         * tree-vect-data-refs.c: Likewise.
4776         * tree-vect-generic.c: Likewise.
4777         * tree-vect-loop-manip.c: Likewise.
4778         * tree-vect-loop.c: Likewise.
4779         * tree-vect-patterns.c: Likewise.
4780         * tree-vect-slp.c: Likewise.
4781         * tree-vect-stmts.c: Likewise.
4782         * tree-vectorizer.c: Likewise.
4783         * tree-vrp.c: Likewise.
4784         * tree.c: Likewise.
4785         * tsan.c: Likewise.
4786         * ubsan.c: Likewise.
4787         * valtrack.c: Likewise.
4788         * value-prof.c: Likewise.
4789         * var-tracking.c: Likewise.
4790         * varasm.c: Likewise.
4791         * varpool.c: Likewise.
4792         * vmsdbgout.c: Likewise.
4793         * vtable-verify.c: Likewise.
4794         * web.c: Likewise.
4795         * wide-int.cc: Likewise.
4796         * xcoffout.c: Likewise.
4797         * config/aarch64/aarch64-builtins.c: Likewise.
4798         * config/aarch64/aarch64.c: Likewise.
4799         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4800         * config/alpha/alpha.c: Likewise.
4801         * config/arc/arc.c: Likewise.
4802         * config/arm/aarch-common.c: Likewise.
4803         * config/arm/arm-builtins.c: Likewise.
4804         * config/arm/arm-c.c: Likewise.
4805         * config/arm/arm.c: Likewise.
4806         * config/avr/avr-c.c: Likewise.
4807         * config/avr/avr-log.c: Likewise.
4808         * config/avr/avr.c: Likewise.
4809         * config/bfin/bfin.c: Likewise.
4810         * config/c6x/c6x.c: Likewise.
4811         * config/cr16/cr16.c: Likewise.
4812         * config/cris/cris.c: Likewise.
4813         * config/darwin-c.c: Likewise.
4814         * config/darwin.c: Likewise.
4815         * config/epiphany/epiphany.c: Likewise.
4816         * config/epiphany/mode-switch-use.c: Likewise.
4817         * config/epiphany/resolve-sw-modes.c: Likewise.
4818         * config/fr30/fr30.c: Likewise.
4819         * config/frv/frv.c: Likewise.
4820         * config/ft32/ft32.c: Likewise.
4821         * config/h8300/h8300.c: Likewise.
4822         * config/i386/i386-c.c: Likewise.
4823         * config/i386/i386.c: Likewise.
4824         * config/i386/msformat-c.c: Likewise.
4825         * config/i386/winnt-cxx.c: Likewise.
4826         * config/i386/winnt-stubs.c: Likewise.
4827         * config/i386/winnt.c: Likewise.
4828         * config/ia64/ia64-c.c: Likewise.
4829         * config/ia64/ia64.c: Likewise.
4830         * config/iq2000/iq2000.c: Likewise.
4831         * config/lm32/lm32.c: Likewise.
4832         * config/m32c/m32c-pragma.c: Likewise.
4833         * config/m32c/m32c.c: Likewise.
4834         * config/m32r/m32r.c: Likewise.
4835         * config/m68k/m68k.c: Likewise.
4836         * config/mcore/mcore.c: Likewise.
4837         * config/mep/mep-pragma.c: Likewise.
4838         * config/mep/mep.c: Likewise.
4839         * config/microblaze/microblaze-c.c: Likewise.
4840         * config/microblaze/microblaze.c: Likewise.
4841         * config/mips/mips.c: Likewise.
4842         * config/mmix/mmix.c: Likewise.
4843         * config/mn10300/mn10300.c: Likewise.
4844         * config/moxie/moxie.c: Likewise.
4845         * config/msp430/msp430-c.c: Likewise.
4846         * config/msp430/msp430.c: Likewise.
4847         * config/nds32/nds32-cost.c: Likewise.
4848         * config/nds32/nds32-fp-as-gp.c: Likewise.
4849         * config/nds32/nds32-intrinsic.c: Likewise.
4850         * config/nds32/nds32-isr.c: Likewise.
4851         * config/nds32/nds32-md-auxiliary.c: Likewise.
4852         * config/nds32/nds32-memory-manipulation.c: Likewise.
4853         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4854         * config/nds32/nds32-predicates.c: Likewise.
4855         * config/nds32/nds32.c: Likewise.
4856         * config/nios2/nios2.c: Likewise.
4857         * config/nvptx/nvptx.c: Likewise.
4858         * config/pa/pa.c: Likewise.
4859         * config/pdp11/pdp11.c: Likewise.
4860         * config/rl78/rl78-c.c: Likewise.
4861         * config/rl78/rl78.c: Likewise.
4862         * config/rs6000/rs6000-c.c: Likewise.
4863         * config/rs6000/rs6000.c: Likewise.
4864         * config/rx/rx.c: Likewise.
4865         * config/s390/s390-c.c: Likewise.
4866         * config/s390/s390.c: Likewise.
4867         * config/sh/sh-c.c: Likewise.
4868         * config/sh/sh-mem.cc: Likewise.
4869         * config/sh/sh.c: Likewise.
4870         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4871         * config/sh/sh_treg_combine.cc: Likewise.
4872         * config/sol2-c.c: Likewise.
4873         * config/sol2-cxx.c: Likewise.
4874         * config/sol2-stubs.c: Likewise.
4875         * config/sol2.c: Likewise.
4876         * config/sparc/sparc-c.c: Likewise.
4877         * config/sparc/sparc.c: Likewise.
4878         * config/spu/spu-c.c: Likewise.
4879         * config/spu/spu.c: Likewise.
4880         * config/stormy16/stormy16.c: Likewise.
4881         * config/tilegx/mul-tables.c: Likewise.
4882         * config/tilegx/tilegx-c.c: Likewise.
4883         * config/tilegx/tilegx.c: Likewise.
4884         * config/tilepro/mul-tables.c: Likewise.
4885         * config/tilepro/tilepro-c.c: Likewise.
4886         * config/tilepro/tilepro.c: Likewise.
4887         * config/v850/v850-c.c: Likewise.
4888         * config/v850/v850.c: Likewise.
4889         * config/vax/vax.c: Likewise.
4890         * config/visium/visium.c: Likewise.
4891         * config/vms/vms-c.c: Likewise.
4892         * config/vms/vms.c: Likewise.
4893         * config/vxworks.c: Likewise.
4894         * config/xtensa/xtensa.c: Likewise.
4896 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
4898         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
4899         Remove operand constraints.  Change operand 2 predicate to
4900         nonmemory operand.  Limit const_int values to mode bitsize.  Only
4901         allow const_int values less than 32 when optimizing for size.
4902         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
4903         Remove operand constraints.
4904         (*bt<mode>): Use SImode for const_int values less than 32.
4905         (regmode): Remove mode attribute.
4907 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
4909         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4910         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
4911           moxie_legitimate_address_p): New functions.
4912           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4914 2015-07-07  Tom de Vries  <tom@codesourcery.com>
4916         PR tree-optimization/66642
4917         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
4918         header comment.  Rename split_edge variable to edge_at_split.  Split
4919         exit edge to create new loop exit bb.  Insert loop exit phis in new
4920         loop exit bb.
4922 2015-07-07  Tom de Vries  <tom@codesourcery.com>
4924         * tree-cfg.c (get_virtual_phi): New function.
4925         * tree-cfg.h (get_virtual_phi): Declare.
4926         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
4927         (rewrite_virtuals_into_loop_closed_ssa): New function.
4928         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
4929         Declare.
4930         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
4931         (transform_to_exit_first_loop_alt): Use
4932         rewrite_virtuals_into_loop_closed_ssa.
4934 2015-07-07  Richard Biener  <rguenther@suse.de>
4936         * fold-const.c (fold_binary_loc): Move
4937         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
4938         * match.pd: ... here.
4939         Add (X * C1) % C2 -> 0 simplification pattern derived from
4940         extract_muldiv_1.
4942 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4944         PR target/66780
4945         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
4946         change for target/65249.
4948 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
4950         * symtab.c (address_matters_1): Fix typo in comment above.
4951         (can_increase_alignment_p): Likewise.
4953 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4955         * function.c (free_after_compilation): Clear PROP_cfg in
4956         f->curr_properties.
4958 2015-07-07  Richard Biener  <rguenther@suse.de>
4960         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
4961         add which use to.
4962         (add_control_edge): Remove excessive vertical space in dumping.
4963         (process_ssa_edge_worklist): Simulate at most one statement and
4964         return whether we did.  Do not simulate PHIs if they are in a
4965         BB not yet simulated.
4966         (ssa_propagate): Adjust to always drain the BB worklist whenever
4967         a BB is available there, likewise the VARYING edges list before
4968         the interesting edge list.
4970 2015-07-07  Christian Bruel  <christian.bruel@st.com>
4972         PR target/52144
4973         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
4975 2015-07-07  Richard Biener  <rguenther@suse.de>
4977         PR middle-end/66739
4978         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
4979         A - B.
4981 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
4983         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
4984         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
4985         Copy operand 0 to a temporary if !ext_register_operand.  Remove
4986         ancient extract_bit_field workaround.
4987         (insv<mode>_1): Rename from mov<mode>_insv_1.
4988         (*insvqi): Rename from *movqi_insv_2.
4989         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
4990         for renamed insvsi_1.
4991         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
4993 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
4995         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
4996         call to nvptx_reorg_subreg.
4998 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
5000         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5001         * graphite-dependencies.c, graphite-interchange.c,
5002         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5003         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5004         Likewise.
5006 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
5008         * match.pd: Remove element_mode inside HONOR_*.
5009         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5010         (~X | X -> -1, ~X ^ X -> -1): Merge.
5011         * tree.c (build_each_one_cst): New function.
5012         * tree.h (build_each_one_cst): Likewise.
5014 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5016         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5017         PROCESSOR_IAMCU.
5019 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
5021         * config.gcc <mips*-*-*>: Add fused-madd.opt.
5022         * config/mips/mips.opt (mfused-madd): Remove.
5023         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5024         * config/mips/mips.h (TARGET_MIPS8000): New.
5025         (ISA_HAS_FP_MADD4_MSUB4): Remove.
5026         (ISA_HAS_FP_MADDF_MSUBF): Remove.
5027         (ISA_HAS_FP_MADD3_MSUB3): Remove.
5028         (ISA_HAS_NMADD4_NMSUB4): Remove.
5029         (ISA_HAS_NMADD3_NMSUB3): Remove.
5030         (ISA_HAS_FUSED_MADD4): New.
5031         (ISA_HAS_UNFUSED_MADD4): New.
5032         (ISA_HAS_FUSED_MADDF): New.
5033         (ISA_HAS_FUSED_MADD3): New.
5034         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5035         (*fma<mode>4_madd3) New.
5036         (*fma<mode>4_madd4) New.
5037         (*fma<mode>4_maddf) New.
5038         (fms<mode>4) New.
5039         (*fms<mode>4_msub3) New.
5040         (*fms<mode>4_msub4) New.
5041         (fnma<mode>4) New.
5042         (*fnma<mode>4_nmadd3) New.
5043         (*fnma<mode>4_nmadd4) New.
5044         (fnms<mode>4) New.
5045         (*fnms<mode>4_nmsub3) New.
5046         (*fnms<mode>4_nmsub4) New.
5047         (*madd4<mode>) Modify to be unfused only.
5048         (*msub4<mode>) Modify to be unfused only.
5049         (*nmadd4<mode>) Modify to be unfused only.
5050         (*nmsub4<mode>) Modify to be unfused only.
5051         (*madd3<mode>) Remove.
5052         (*msub3<mode>) Remove.
5053         (*nmadd3<mode>) Remove.
5054         (*nmsub3<mode>) Remove.
5055         (*nmadd3<mode>_fastmath) Remove.
5056         (*nmsub3<mode>_fastmath) Remove.
5057         (*nmadd4<mode>_fastmath) Update condition.
5058         (*nmsub4<mode>_fastmath) Update condition.
5060 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5062         PR target/65956
5063         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5064         alignment attribute, exploring one level down for records and arrays.
5066 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
5068         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
5069         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
5070         Copy operand 1 to a temporary if !ext_register_operand.  Remove
5071         ancient extract_bit_field workaround.
5072         (*extv<mode>): Rename from *mov<mode>_extv_1.
5073         (*extvqi): Rename from *movqi_extv_1.
5074         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
5075         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
5076         to a temporary if !ext_register_operand.  Remove ancient
5077         extract_bit_field workaround.
5078         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5079         (*extzvqi): Rename from *movqi_extzv_2.
5080         (*testqi_ext_3): Remove modes from const_int_operand predicated
5081         operands.  Add "n" constraint.
5082         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5083         operand.  Add "J" constraint.
5084         (*btsq, *btrq, *btcq peephole2s): Remove mode from
5085         const_0_to_63 predicated operand.
5086         (regmode): New insn attribute.
5087         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
5088         to nonmemory_operand.  Use regmode insn attribute.
5089         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5090         (*jcc_bt<mode>_mask): Remove mode from operand 3.
5091         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5092         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5093         operands.  Use "N" constraint instead of "n".
5095 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
5097         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5099 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5101         PR target/66749
5102         * config/i386/i386.c (iamcu_cost): New.
5103         (m_IAMCU): Likewise.
5104         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5105         (processor_target_table): Add an entry for "iamcu".
5106         (processor_alias_table): Likewise.
5107         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5108         (ix86_adjust_cost): Likewise.
5109         (ia32_multipass_dfa_lookahead): Likewise.
5110         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5111         * config/i386/x86-tune.def: Updated for m_IAMCU.
5113 2015-07-06  Richard Biener  <rguenther@suse.de>
5115         PR tree-optimization/66772
5116         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5117         values are available in the PHI node BB when there are
5118         still unexecutable edges.
5120 2015-07-06  Richard Biener  <rguenther@suse.de>
5122         PR tree-optimization/66767
5123         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5124         Make sure to build the alignment test on a SSA name without
5125         final alignment info valid only if the alignment test
5126         evaluates to true.
5128 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
5130         PR target/66620
5131         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5132         loop start when inserting LSETUP.
5134 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
5136         PR target/53383
5137         * config/i386/i386.c (ix86_option_override_internal): Allow
5138         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5140 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5142         * read-md.c (decimal_string): Rename to ...
5143         (md_decimal_string): ... this.
5144         (handle_enum): Reflect this.
5146 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5148         PR target/66731
5149         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5151 2015-07-06  Richard Biener  <rguenther@suse.de>
5153         PR middle-end/66759
5154         * match.pd: Add missing constraint of y to REAL_CST in
5155         REAL_CST - x CMP y to y - CST CMP x simplification.
5157 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
5159         PR tree-optimization/66757
5160         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5162 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
5163             Sandra Loosemore <sandra@codesourcery.com>
5165         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5166         Delete extern declaration.
5167         (gprel_constant_p): Add extern declaration.
5168         * config/nios2/constraints.md ("S"): Use gprel_constant_p
5169         instead of nios2_symbol_ref_in_small_data_p.
5170         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5171         (nios2_symbol_ref_in_small_data_p): Make static.
5172         (gprel_constant_p): Make non-static.
5174 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
5176         * doc/fragments.texi (Target Fragment): Convert debian.org
5177         link to use https.
5178         * doc/install.texi (Configuration): Ditto.
5180 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
5182         PR tree-optimization/66718
5183         * tree-vect-stmts.c (vectorizable_call): Replace uses of
5184         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5186         PR tree-optimization/66718
5187         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5188         vectorizable_load, vectorizable_condition): Move vectype,
5189         nunits, ncopies computation after checking what kind of statement
5190         stmt is.
5192 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5194         * target-insns.def (extv, extzv, insv): New targetm instruction
5195         patterns.
5196         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5197         interface.
5198         * recog.c (simplify_while_replacing): Likewise.
5200 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5202         * target-insns.def (doloop_begin, doloop_end): New targetm
5203         instruction patterns.
5204         * loop-init.c: Include target.h.
5205         (pass_loop2::gate): Use the new targetm patterns instead of
5206         HAVE_*/gen_* interface.
5207         (pass_rtl_doloop::gate): Likewise.
5208         (pass_rtl_doloop::execute): Remove preprocessor condition.
5209         * hw-doloop.c: Build unconditionally.
5210         * loop-doloop.c: Likewise.
5211         (doloop_optimize): Use the new targetm patterns instead of
5212         HAVE_*/gen_* interface.
5213         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5214         * modulo-sched.c (doloop_register_get): Likewise.
5216 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5218         * target-insns.def (clear_cache): New targetm instruction pattern.
5219         * builtins.c (expand_builtin___clear_cache): Use it instead of
5220         HAVE_*/gen_* interface.
5222 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5224         * target-insns.def (allocate_stack, check_stack, probe_stack)
5225         (probe_stack_address, split_stack_prologue, split_stack_space_check):
5226         New targetm instruction patterns.
5227         * explow.c (allocate_dynamic_stack_space): Use them instead of
5228         HAVE_*/gen_* interface.
5229         (emit_stack_probe): Likewise.
5230         (probe_stack_range): Likewise.
5231         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5233 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5235         * target-insns.def (stack_protect_set, stack_protect_test): New
5236         targetm instruction patterns.
5237         * cfgexpand.c (stack_protect_prologue): Use them instead of
5238         HAVE_*/gen_* interface.
5239         * function.c (stack_protect_epilogue): Likewise.
5241 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5243         * expr.h (gen_move_insn_uncast): Delete.
5244         * expr.c (gen_move_insn_uncast): Delete.
5246 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5248         * target-insns.def (restore_stack_block, restore_stack_function)
5249         (restore_stack_nonlocal, save_stack_block, save_stack_function)
5250         (save_stack_nonlocal): New targetm instruction patterns.
5251         * builtins.c (expand_builtin_apply): Use them instead of
5252         HAVE_*/gen_* interface.
5253         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5255 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5257         * target-insns.def (trap): New targetm instruction pattern.
5258         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5259         interface.
5260         * explow.c (allocate_dynamic_stack_space): Likewise.
5261         * ifcvt.c (find_if_header): Likewise.
5263 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5265         * target-insns.def (prefetch): New targetm instruction pattern.
5266         * tree-ssa-loop-prefetch.c: Include targeth.
5267         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5268         of HAVE_*/gen_* interface.
5269         * builtins.c (expand_builtin_prefetch): Likewise.
5270         * toplev.c (process_options): Likewise.
5272 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5274         * target-insns.def (untyped_call, untyped_return): New targetm
5275         instruction patterns.
5276         * builtins.c (expand_builtin_apply): Use them instead of
5277         HAVE_*/gen_* interface.
5278         (result_vector): Define unconditionally.
5280 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5282         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5283         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5284         (nonlocal_goto_receiver): New targetm instruction patterns.
5285         * builtins.c (expand_builtin_setjmp_setup): Use them instead
5286         of HAVE_*/gen_* interface.
5287         (expand_builtin_setjmp_receiver): Likewise.
5288         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5289         * except.c (expand_dw2_landing_pad_for_region): Likewise.
5291 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
5293         * target.def: Add code_for_* hooks.
5294         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5295         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5296         * target-insns.def (casesi, tablejump): New targetm instruction
5297         patterns.
5298         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5299         (do_tablejump): Likewise.
5300         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5301         (expand_sjlj_dispatch_table): Likewise.
5302         * targhooks.c (default_case_values_threshold): Likewise.
5304 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
5306         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5307         Use rtx_insn * instead of rtx.
5308         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5309         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5310         (nios2_call_tls_get_addr): Likewise.
5311         (nios2_emit_expensive_div): Likewise.
5312         (nios2_emit_move_sequence): Change return type to bool.
5313         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5314         Change return type to bool.
5316 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5318         PR target/66747
5319         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5321 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
5323         PR target/66114
5324         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5325         of register_operand.  Remove constraint.
5327 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
5329         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5330         the first argument.
5332 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
5334         * attribs.c (decl_attributes): Guard inform with the return value
5335         of the preceding warning.
5337 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
5339         * doc/invoke.texi (moverride): Move to correct section.
5341 2015-07-03  Richard Biener  <rguenther@suse.de>
5343         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5344         Copy from tree.c
5345         (dt_operand::gen_gimple_expr): After valueizing operands
5346         re-canonicalize operand order for commutative tree codes.
5348 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5350         PR target/66746.
5351         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5352         is defined.
5353         (__crc32w): Likewise.
5354         (__crc32d): Likewise.
5355         (__rdpmc): Likewise.
5356         (__rdtscp): Likewise.
5357         (_rdpmc): Likewise.
5358         (_rdtscp): Likewise.
5359         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5360         is defined.
5362 2015-07-03  Richard Biener  <rguenther@suse.de>
5364         * fold-const.c (fold_mathfn_compare): Remove.
5365         (fold_inf_compare): Likewise.
5366         (fold_comparison): Move floating point comparison simplifications...
5367         * match.pd: ... to patterns here.  Introduce simple_comparisons
5368         operator list and use it for patterns formerly in fold_comparison.
5370 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
5372         PR tree-optimization/66119
5373         * toplev.c (process_options): Don't set up default values for
5374         the sra_max_scalarization_size_{speed,size} parameters.
5375         * tree-sra (analyze_all_variable_accesses): If no values
5376         have been set for the sra_max_scalarization_size_{speed,size}
5377         parameters, call get_move_ratio to get target defaults.
5379 2015-07-03  Richard Biener  <rguenther@suse.de>
5381         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5382         * match.pd: ... here.
5384 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
5386         PR target/37072
5387         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5388         is not actually the default on FreeBSD.
5390 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5392         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5393         definition.
5394         (CMPGE_8HI): Likewise.
5395         (CMPGE_4SI): Likewise.
5396         (CMPGE_2DI): Likewise.
5397         (CMPGE_U16QI): Likewise.
5398         (CMPGE_U8HI): Likewise.
5399         (CMPGE_U4SI): Likewise.
5400         (CMPGE_U2DI): Likewise.
5401         (CMPLE_16QI): Likewise.
5402         (CMPLE_8HI): Likewise.
5403         (CMPLE_4SI): Likewise.
5404         (CMPLE_2DI): Likewise.
5405         (CMPLE_U16QI): Likewise.
5406         (CMPLE_U8HI): Likewise.
5407         (CMPLE_U4SI): Likewise.
5408         (CMPLE_U2DI): Likewise.
5409         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5410         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5411         ALTIVEC_BUILTIN_VEC_CMPLE.
5412         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5413         floating-point vector modes.
5414         (vector_nlt<mode>): New define_expand.
5415         (vector_nltu<mode>): Likewise.
5416         (vector_ngt<mode>): Likewise.
5417         (vector_ngtu<mode>): Likewise.
5419 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
5421         PR rtl-optimization/66706
5422         * combine.c (make_compound_operation): If an AND of SUBREG of
5423         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5425 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
5427         * tree-pass.h (make_pass_ch_vect): New.
5428         * passes.def: Add pass_ch_vect just before pass_if_conversion.
5430         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5431         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5432         make_pass_ch_vect): New.
5433         (pass_ch): Extend ch_base.
5435         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5436         (ch_base::copy_headers): ...here.
5438 2015-07-02  Richard Biener  <rguenther@suse.de>
5440         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5441         * fold-const.c (get_pointer_modulus_and_residue): Remove.
5442         (fold_binary_loc): Implement (T)ptr & CST in terms of
5443         get_pointer_alignment_1.
5444         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5445         Make sure to build the alignment test on a SSA name without
5446         final alignment info valid only after the prologue.
5448 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
5450         * config/cris/cris.md ("epilogue"): Remove condition.
5451         ("prologue"): Ditto.
5453 2015-07-02  Richard Biener  <rguenther@suse.de>
5455         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
5456         parameter to record a condition that is false.
5457         (record_conditions): When recording an extra NE_EXPR that is
5458         true also record a EQ_EXPR that is false.
5460 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
5462         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
5463         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
5464         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
5465         (set_iv, find_interesting_uses_address, add_candidate_1): New
5466         argument to alloc_iv.
5467         (find_interesting_uses_op, find_interesting_uses_cond): Don't
5468         duplicate struct iv.
5469         (free_loop_data): Don't free struct iv explicitly.
5470         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
5472 2015-07-01  DJ Delorie  <dj@redhat.com>
5474         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
5475         (LIB_SPEC): Add.
5476         (SUPPORTS_DISCRIMINATOR): Define.
5478 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5480         PR bootstrap/66685
5481         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
5482         there are no CALLs in the same pattern.
5484 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5486         PR rtl-optimization/61047
5487         * rtlanal.c (get_initial_register_offset): New function.
5488         (rtx_addr_can_trap_p_1): Check offsets of stack references.
5490 2015-07-01  Richard Biener  <rguenther@suse.de>
5492         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
5493         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
5494         ~X CMP C -> X CMP' ~C to ...
5495         * match.pd: ... patterns here.
5497 2015-07-01  Nick Clifton  <nickc@redhat.com>
5499         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
5500         a 16-bit value into a 20-bit memory slot.
5502 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5504         * doc/sourcebuild.texi (AArch64-specific attributes): Document
5505         "aarch64_tiny", "aarch64_small", "aarch64_large",
5506         "aarch64_little_endian", "aarch64_big_endian".
5508 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5510         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
5511         Document "aarch64_small_fpic".
5513 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
5515         * configure.ac: Add check for aarch64 assembler -fpic relocation
5516         modifier support.
5517         * configure: Regenerate.
5518         * config.in: Regenerate.
5519         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
5520         to -fPIC if not support of -fpic relocation modifier in assembler.
5522 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
5524         PR bootstrap/66685
5525         * rtl.c (classify_insn): Handle returns in PARALLELs.
5527 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
5529         PR middle-end/66633
5530         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
5531         to true if the function is nested and if not optimizing.
5532         (convert_local_omp_clauses): Initialize need_frame to true if the
5533         function contains nested functions and if not optimizing.
5535 2015-07-01  Richard Biener  <rguenther@suse.de>
5537         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
5538         (X & Y) ^ Y -> ~X & Y transforms to ...
5539         * match.pd: ... here.
5541 2015-07-01  Richard Biener <rguenther@suse.de>
5543         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
5544         of converts to avoid uninteresting noise from the conversion
5545         simplifying patterns.
5547 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
5549         * config/c6x/c6x.c (try_rename_operands): Do not depend on
5550         gcc_assert evaluating its argument for side-effect.
5552 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5554         PR target/64833
5555         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
5556         flag_pic is set.
5558 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5560         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
5561         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
5562         (hash_scc): Add this_ref_p and ref_p parameters and pass them
5563         to the inner DFS walk.
5565 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5567         * target-insns.def (jump): New targetm instruction pattern.
5568         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
5569         instead of gen_jump.
5570         (fix_up_crossing_landing_pad): Likewise.
5571         (add_labels_and_missing_jumps): Likewise.
5572         (fix_crossing_conditional_branches): Likewise.
5573         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5574         (force_nonfallthru_and_redirect): Likewise.
5575         * cse.c (cse_insn): Likewise.
5576         * expmed.c (expand_divmod): Likewise.
5577         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
5578         * haifa-sched.c (init_before_recovery): Likewise.
5579         (sched_create_recovery_edges): Likewise.
5580         * ifcvt.c (find_cond_trap): Likewise.
5581         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
5582         (expand_float, expand_fix): Likewise.
5583         * stmt.c (emit_jump): Likewise.
5585 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5587         * defaults.h (HAVE_load_multiple, gen_load_multiple)
5588         (HAVE_store_multiple, gen_store_multiple): Delete.
5589         * target-insns.def (load_multiple, store_multiple): New targetm
5590         instruction patterns.
5591         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
5592         of HAVE_*/gen_* interface.
5594 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5596         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
5597         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
5598         (gen_mem_signal_fence): Delete.
5599         * target-insns.def (mem_signal_fence, mem_thread_fence)
5600         (memory_barrier): New targetm instruction patterns.
5601         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
5602         interface.
5603         (expand_mem_signal_fence): Likewise.
5605 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
5607         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
5608         * target-insns.def (epilogue, prologue, sibcall_prologue): New
5609         targetm instruction patterns.
5610         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
5611         interface.
5612         * calls.c (expand_call): Likewise.
5613         * cfgrtl.c (cfg_layout_finalize): Likewise.
5614         * df-scan.c (df_get_entry_block_def_set): Likewise.
5615         (df_get_exit_block_use_set): Likewise.
5616         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
5617         * final.c (final_start_function): Likewise.
5618         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5619         (reposition_prologue_and_epilogue_notes): Likewise.
5620         * reorg.c (find_end_label): Likewise.
5621         * toplev.c (process_options): Likewise.
5623 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
5625         * typed-splay-tree.h: New file.
5627 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
5629         PR debug/66691
5630         * lra-int.h (lra_substitute_pseudo): Add a parameter.
5631         (lra_substitute_pseudo_within_insn): Ditto.
5632         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
5633         of constant.
5634         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
5635         to lra_substitute_pseudo.
5636         * lra-lives.c (process_bb_lives): Add an argument to
5637         lra_substitute_pseudo_within_insn call.
5638         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
5639         argument to lra_substitute_pseudo and
5640         lra_substitute_pseudo_within_insn calls.
5641         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
5643 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5645         * configure: Regenerated.
5647 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5649         * config.gcc: Support i[34567]86-*-elfiamcu target.
5650         * config/i386/iamcu.h: New.
5651         * config/i386/i386.opt: Add -miamcu.
5652         * doc/invoke.texi: Document -miamcu.
5653         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
5654         off x87/MMX/SSE/AVX codegen for -miamcu.
5655         * config/i386/i386-c.c (ix86_target_macros_internal): Define
5656         __iamcu/__iamcu__ for -miamcu.
5657         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
5658         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
5659         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
5660         * config/i386/i386.c (ix86_option_override_internal): Ignore and
5661         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
5662         MCU by default.  Default long double to 64-bit for Intel MCU.
5663         Turn on -freg-struct-return for Intel MCU.  Issue an error when
5664         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
5665         AVX is turned on.
5666         (function_arg_advance_32): Pass value whose size is no larger
5667         than 8 bytes in registers for Intel MCU.
5668         (function_arg_32): Likewise.
5669         (ix86_return_in_memory): Return value whose size is no larger
5670         than 8 bytes in registers for Intel MCU.
5671         (iamcu_alignment): New function.
5672         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
5673         true.
5674         (ix86_local_alignment): Don't increase alignment for Intel MCU.
5675         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
5676         true.
5678 2015-06-30  Marek Polacek  <polacek@redhat.com>
5680         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
5681         both operands of the resulting expression.
5683         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
5684         the final expression with the operand's type and then convert
5685         it to the type of the expression.
5687 2015-06-30  Richard Biener  <rguenther@suse.de>
5689         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
5690         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
5691         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
5692         * match.pd: ... to patterns here.
5694 2015-06-30  Richard Biener  <rguenther@suse.de>
5696         PR tree-optimization/66704
5697         * tree-vect-data-refs.c (vect_setup_realignment): Use
5698         make_ssa_name for non-SSA name source.
5700 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
5702         PR middle-end/66702
5703         * omp-low.c (simd_clone_adjust): Handle addressable linear
5704         or uniform parameters or non-gimple type uniform parameters.
5706 2015-06-30  Richard Biener  <rguenther@suse.de>
5708         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
5709         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
5710         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
5711         * match.pd: ... here.
5712         Add a few cases of A - B -> A + (-B) when B "easily" negates.
5713         Move (x & y) | x -> x and friends before
5714         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
5716 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5718         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
5719         -mfix-ut699 is not specified.
5720         (leon3_load): Rename into...
5721         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
5722         is specified.
5724 2015-06-30  Marek Polacek  <polacek@redhat.com>
5726         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
5727         * match.pd: ... here.
5729 2015-06-30  Richard Biener  <rguenther@suse.de>
5731         * target-insns.def (canonicalize_funcptr_for_compare): Add.
5732         * fold-const.c (build_range_check): Replace uses of
5733         HAVE_canonicalize_funcptr_for_compare.
5734         (fold_widened_comparison): Likewise.
5735         (fold_sign_changed_comparison): Likewise.
5736         * dojump.c: Include "target.h".
5737         (do_compare_and_jump): Replace uses of
5738         HAVE_canonicalize_funcptr_for_compare and
5739         gen_canonicalize_funcptr_for_compare.
5740         * expr.c (do_store_flag): Likewise.
5742 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5744         PR tree-optimization/66652
5745         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
5746         max_loop_iterations to determine if nit + 1 overflows.
5748 2015-06-30  Richard Biener  <rguenther@suse.de>
5750         * tree-vrp.c (register_edge_assert_for_2): Also register
5751         asserts for dominating conversion results.
5753 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
5755         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
5756         field in struct iv.
5758 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
5760         PR target/66509
5761         * configure.ac: Fix filds and fildq test for 64-bit.
5762         * configure: Regenerated.
5764 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
5766         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
5767         (nvptx_reorg): Here.  Keep the non-subreg pieces.
5769 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
5771         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
5772         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5774 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
5776         * config/i386/i386.md (*jcc_1): Use %! in asm template.
5777         Set attribute "length_nobnd" instead of "length".
5778         (*jcc_2): Ditto.
5779         (jump): Ditto.
5780         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
5782 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
5784         * config/nios2/nios2.c (nios2_delegitimize_address): Make
5785         assert less restrictive.
5787 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5789         PR fortran/66605
5790         * cgraphunit.c (cgraph_node::finalize_function): Do not call
5791         do_warn_unused_parameter.
5792         * function.c (do_warn_unused_parameter): Move from here.
5793         * function.h (do_warn_unused_parameter): Do not declare.
5795 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5797         PR target/65697
5798         * gcc.target/arm/armv-sync-comp-swap.c: New.
5799         * gcc.target/arm/armv-sync-op-acquire.c: New.
5800         * gcc.target/arm/armv-sync-op-full.c: New.
5801         * gcc.target/arm/armv-sync-op-release.c: New.
5803 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5805         PR target/65697
5806         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
5807         initial acquire barrier with final barrier.
5809 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5811         PR target/65697
5812         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
5813         initial acquire barrier with final barrier.
5815 2015-06-29  Richard Henderson  <rth@redhat.com>
5817         * config/i386/constraints.md (Bf): New constraint.
5818         * config/i386/i386-c.c (ix86_target_macros): Define
5819         __GCC_ASM_FLAG_OUTPUTS__.
5820         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
5821         as flags outputs.
5822         * doc/extend.texi (FlagOutputOperands): Document them.
5824 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
5826         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
5827         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
5828         unspec name.
5829         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
5830         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
5831         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
5832         (aarch64_symbol_context): Ditto.
5833         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
5834         and use new pattern name.
5835         (aarch64_expand_mov_immediate): Ditto.
5836         (aarch64_print_operand): Ditto.
5837         (aarch64_classify_tls_symbol): Ditto.
5839 2015-06-29  Marek Polacek  <polacek@redhat.com>
5840             Marc Glisse  <marc.glisse@inria.fr>
5842         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
5843         * match.pd: ... pattern here.
5845 2015-06-29  Tom de Vries  <tom@codesourcery.com>
5847         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
5848         function structure.
5850 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
5852         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
5853         feature description, split out the native option, add a link to
5854         the feature documentation, rearrange and slightly rewrite text.
5855         (Aarch64 options, -mcpu): Likewise.
5856         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
5857         +rdma implies Adv. SIMD.
5859 2015-06-29  Marek Polacek  <polacek@redhat.com>
5861         PR c/66322
5862         * function.c (stack_protect_epilogue): Remove a cast to int.
5863         * doc/invoke.texi: Update -Wswitch-bool description.
5865 2015-06-29  Richard Biener  <rguenther@suse.de>
5867         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
5868         * fold-const.c (fold_binary_loc): Move &A - &B simplification
5869         via ptr_difference_const ...
5870         * match.pd: ... here.
5871         When matching (X ^ Y) == Y also match with swapped operands.
5873 2015-06-29  Richard Biener  <rguenther@suse.de>
5875         * lto-streamer.h (LTO_major_version): Bump to 5.
5877 2015-06-29  Richard Biener  <rguenther@suse.de>
5879         PR tree-optimization/66677
5880         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
5881         STMT_VINFO_VEC_STMT clobbering less strict.
5883 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
5885         PR middle-end/64130
5886         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
5887         division, compute max and min when value ranges for dividend and
5888         divisor are available.
5890 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
5891             Sandra Loosemore <sandra@codesourcery.com>
5893         * regrename.h (regrename_do_replace): Change to return bool.
5894         * regrename.c (rename_chains): Check return value of
5895         regname_do_replace.
5896         (regrename_do_replace): Re-validate the modified insns and
5897         return bool status.
5898         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5899         Update to match rename_chains changes.
5900         * config/c6x/c6x.c (try_rename_operands): Assert that
5901         regrename_do_replace returns true.
5903 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
5905         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
5906         operand 2 here.  Use copy_addr_to_reg to copy non-index
5907         register operand 2 to a temporary.
5908         (<mode>_stx): Ditto for operand 1.
5909         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
5910         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
5911         (ix86_store_bounds): Ditto.
5913 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
5915         * print-tree.c (print_node) [TREE_VEC]: Print its length.
5917 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
5919         * gimple.c (gimple_call_set_fndecl): Remove.
5920         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
5921         build1_loc directly instead of build_fold_addr_expr_loc.
5923 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
5925         * hash-map.h (hash_map::traverse): Use the definition of the
5926         Key typedef rather than the typedef itself.
5928 2015-06-26  Martin Jambor  <mjambor@suse.cz>
5930         PR debug/66301
5931         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
5932         NULL instead of calling dump_enabled_p.
5934 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5936         * config/aarch64/aarch64.opt: (override): New.
5937         * doc/invoke.texi (override): Document.
5938         * config/aarch64/aarch64.c (aarch64_flag_desc): New
5939         (aarch64_fusible_pairs): Likewise.
5940         (aarch64_tuning_flags): Likewise.
5941         (aarch64_tuning_override_function): Likewise.
5942         (aarch64_tuning_override_functions): Likewise.
5943         (aarch64_parse_one_option_token): Likewise.
5944         (aarch64_parse_boolean_options): Likewise.
5945         (aarch64_parse_fuse_string): Likewise.
5946         (aarch64_parse_tune_string): Likewise.
5947         (aarch64_parse_one_override_token): Likewise.
5948         (aarch64_parse_override_string): Likewise.
5949         (aarch64_override_options): Parse the -override string if it
5950         is present.
5952 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5954         * config/aarch64/aarch64-protos.h (tune_params): Remove
5955         const from members.
5956         (aarch64_tune_params): Remove const, change to no longer be
5957         a pointer.
5958         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
5959         change to no longer be a pointer, initialize to generic_tunings.
5960         (aarch64_min_divisions_for_recip_mul): Change dereference of
5961         aarch64_tune_params to member access.
5962         (aarch64_reassociation_width): Likewise.
5963         (aarch64_rtx_mult_cost): Likewise.
5964         (aarch64_address_cost): Likewise.
5965         (aarch64_branch_cost): Likewise.
5966         (aarch64_rtx_costs): Likewise.
5967         (aarch64_register_move_cost): Likewise.
5968         (aarch64_memory_move_cost): Likewise.
5969         (aarch64_sched_issue_rate): Likewise.
5970         (aarch64_builtin_vectorization_cost): Likewise.
5971         (aarch64_override_options): Take a copy of the selected tuning
5972         struct in to aarch64_tune_params, rather than just setting
5973         a pointer, change dereferences of aarch64_tune_params to member
5974         accesses.
5975         (aarch64_override_options_after_change): Change dereferences of
5976         aarch64_tune_params to member access.
5977         (aarch64_macro_fusion_p): Likewise.
5978         (aarch_macro_fusion_pair_p): Likewise.
5979         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
5981 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
5983         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
5984         (aarch64_tune_flags): Likewise.
5985         (AARCH64_TUNE_FMA_STEERING): Likewise.
5986         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
5987         to AARCH64_FL_USE_FMA_STEERING_PASS.
5988         (cortex-a57.cortex-a53): Likewise.
5989         (cortex-a72): Use cortexa72_tunings.
5990         (cortex-a72.cortex-a53): Likewise.
5991         (exynos-m1): Likewise.
5992         * config/aarch64/aarch64-protos.h (tune_params): Add
5993         a field: extra_tuning_flags.
5994         * config/aarch64/aarch64-tuning-flags.def: New.
5995         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
5996         (aarch64_extra_tuning_flags): Likewise.
5997         (aarch64_tune_params): Declare here.
5998         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
5999         (cortexa53_tunings): Likewise.
6000         (cortexa57_tunings): Likewise.
6001         (thunderx_tunings): Likewise.
6002         (xgene1_tunings): Likewise.
6003         (cortexa72_tunings): New.
6004         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6005          (gate): Check against aarch64_tune_params.
6006         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6007         aarch64-protos.h.
6009 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
6011         * config/aarch64/aarch64-fusion-pairs.def: New.
6012         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6013         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6014         aarch64_fusion_pairs.
6015         (AARCH64_FUSE_MOV_MOVK): Likewise.
6016         (AARCH64_FUSE_ADRP_ADD): Likewise.
6017         (AARCH64_FUSE_MOVK_MOVK): Likewise.
6018         (AARCH64_FUSE_ADRP_LDR): Likewise.
6019         (AARCH64_FUSE_CMP_BRANCH): Likewise.
6021 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6023         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6024         SYMBOL_SMALL_GOT_28K.
6025         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6026         relocation modifiers.
6027         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6028         (ldr_got_small_28k_<mode>): New.
6029         (ldr_got_small_28k_sidi): New.
6030         * config/aarch64/iterators.md (got_modifier): New mode iterator.
6031         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6032         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6033         SYMBOL_SMALL_GOT_28K.
6034         (aarch64_rtx_costs): Add costs for new instruction sequences.
6035         (initialize_aarch64_code_model): Initialize new model.
6036         (aarch64_classify_symbol): Recognize new model and new symbol classification.
6037         (aarch64_asm_preferred_eh_data_format): Support new model.
6038         (aarch64_load_symref_appropriately): Generate new instruction
6039         sequences for -fpic.
6040         (TARGET_USE_PSEUDO_PIC_REG): New definition.
6041         (aarch64_use_pseudo_pic_reg): New function.
6043 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
6045         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6046         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6047         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6048         (aarch64_expand_mov_immediate): Ditto.
6049         (aarch64_print_operand): Ditto.
6050         (aarch64_classify_symbol): Ditto.
6052 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
6054         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6056 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
6058         PR bootstrap/66638
6059         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6060         assertion failed.  Remove assertion itself.
6062 2015-06-26  Richard Biener  <rguenther@suse.de>
6064         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6065         and -A CMP CST -> A CMP -CST which is redundant with a pattern
6066         in match.pd.
6067         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6068         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6069         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6070         * match.pd: ... patterns here.
6072 2015-06-26  Marek Polacek  <polacek@redhat.com>
6074         * match.pd ((x | y) & ~(x & y) -> x ^ y,
6075         (x | y) & (~x ^ y) -> x & y): New patterns.
6077 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
6079         * rtl.h (emit): Add an optional boolean parameter to control
6080         whether barriers are emitted.
6081         * emit-rtl.c (emit): Likewise.
6082         * gensupport.c (get_emit_function): Return null rather than "emit".
6083         * genemit.c (gen_emit_seq): Handle the null return value.
6084         Don't emit barriers after the final instruction in the sequence.
6085         * gentarget-def.c (main): Don't emit barriers after the instruction.
6087 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6089         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6090         TARGET_UNIFIED_ASM.
6092 2015-06-26  Richard Biener  <rguenther@suse.de>
6094         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6096 2015-06-26  Richard Biener  <rguenther@suse.de>
6098         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6099         irrespective on whether the inner operation has a single use
6100         of both off are constant.
6102 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
6103             Segher Boessenkool  <segher@kernel.crashing.org>
6105         PR target/66412
6106         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6107         before doing PUT_MODE or PUT_CODE on operands to avoid
6108         in-place RTX modification.
6110 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6112         * gentarget-def.c (def_target_insn): Cast return of strtol to
6113         unsigned int.
6115 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6117         * gimple.h (gimple_call_set_fn): Move inline function.
6118         * gimple.c (gimple_call_set_fn): Relocate here.
6120 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
6122         PR target/65979
6123         PR target/66611
6124         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6125         the replacement insn will work.
6127 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6129         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6130         by default.
6132 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6134         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6135         * cgraph.h: Include ipa-ref.h and plugin-api.h.
6136         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6137         (symtab_node::address_can_be_compared_p): Move function.
6138         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6139         definition here.
6140         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6141         * auto-profile.c: Likewise.
6142         * bb-reorder.c: Likewise.
6143         * builtins.c: Likewise.
6144         * calls.c: Likewise.
6145         * cfgexpand.c: Likewise.
6146         * cgraphbuild.c: Likewise.
6147         * cgraphclones.c: Likewise.
6148         * cgraphunit.c: Likewise.
6149         * combine.c: Likewise.
6150         * coverage.c: Likewise.
6151         * data-streamer-in.c: Likewise.
6152         * data-streamer-out.c: Likewise.
6153         * data-streamer.c: Likewise.
6154         * dbxout.c: Likewise.
6155         * dwarf2out.c: Likewise.
6156         * except.c: Likewise.
6157         * expr.c: Likewise.
6158         * final.c: Likewise.
6159         * fold-const.c: Likewise.
6160         * ggc-page.c: Likewise.
6161         * gimple-fold.c: Likewise.
6162         * gimple-iterator.c: Likewise.
6163         * gimple-pretty-print.c: Likewise.
6164         * gimple-streamer-in.c: Likewise.
6165         * gimple-streamer-out.c: Likewise.
6166         * gimple.c: Likewise.
6167         * gimplify.c: Likewise.
6168         * ipa-chkp.c: Likewise.
6169         * ipa-comdats.c: Likewise.
6170         * ipa-cp.c: Likewise.
6171         * ipa-devirt.c: Likewise.
6172         * ipa-icf-gimple.c: Likewise.
6173         * ipa-icf.c: Likewise.
6174         * ipa-inline-analysis.c: Likewise.
6175         * ipa-inline-transform.c: Likewise.
6176         * ipa-inline.c: Likewise.
6177         * ipa-polymorphic-call.c: Likewise.
6178         * ipa-profile.c: Likewise.
6179         * ipa-prop.c: Likewise.
6180         * ipa-pure-const.c: Likewise.
6181         * ipa-ref.c: Likewise.
6182         * ipa-reference.c: Likewise.
6183         * ipa-split.c: Likewise.
6184         * ipa-utils.c: Likewise.
6185         * ipa-visibility.c: Likewise.
6186         * ipa.c: Likewise.
6187         * langhooks.c: Likewise.
6188         * lto-cgraph.c: Likewise.
6189         * lto-compress.c: Likewise.
6190         * lto-opts.c: Likewise.
6191         * lto-section-in.c: Likewise.
6192         * lto-section-out.c: Likewise.
6193         * lto-streamer-in.c: Likewise.
6194         * lto-streamer-out.c: Likewise.
6195         * lto-streamer.c: Likewise.
6196         * omp-low.c: Likewise.
6197         * opts-global.c: Likewise.
6198         * passes.c: Likewise.
6199         * predict.c: Likewise.
6200         * print-tree.c: Likewise.
6201         * profile.c: Likewise.
6202         * ree.c: Likewise.
6203         * sanopt.c: Likewise.
6204         * stor-layout.c: Likewise.
6205         * symtab.c: Likewise.
6206         * toplev.c: Likewise.
6207         * trans-mem.c: Likewise.
6208         * tree-cfg.c: Likewise.
6209         * tree-chkp.c: Likewise.
6210         * tree-eh.c: Likewise.
6211         * tree-emutls.c: Likewise.
6212         * tree-inline.c: Likewise.
6213         * tree-nested.c: Likewise.
6214         * tree-parloops.c: Likewise.
6215         * tree-pretty-print.c: Likewise.
6216         * tree-profile.c: Likewise.
6217         * tree-sra.c: Likewise.
6218         * tree-ssa-alias.c: Likewise.
6219         * tree-ssa-live.c: Likewise.
6220         * tree-ssa-loop-ivcanon.c: Likewise.
6221         * tree-ssa-loop-ivopts.c: Likewise.
6222         * tree-ssa-pre.c: Likewise.
6223         * tree-ssa-sccvn.c: Likewise.
6224         * tree-ssa-strlen.c: Likewise.
6225         * tree-ssa-structalias.c: Likewise.
6226         * tree-streamer-in.c: Likewise.
6227         * tree-streamer-out.c: Likewise.
6228         * tree-streamer.c: Likewise.
6229         * tree-switch-conversion.c: Likewise.
6230         * tree-tailcall.c: Likewise.
6231         * tree-vect-data-refs.c: Likewise.
6232         * tree-vect-stmts.c: Likewise.
6233         * tree-vectorizer.c: Likewise.
6234         * tree.c: Likewise.
6235         * tsan.c: Likewise.
6236         * ubsan.c: Likewise.
6237         * value-prof.c: Likewise.
6238         * varasm.c: Likewise.
6239         * varpool.c: Likewise.
6240         * config/arm/arm.c: Likewise.
6241         * config/bfin/bfin.c: Likewise.
6242         * config/c6x/c6x.c: Likewise.
6243         * config/cris/cris.c: Likewise.
6244         * config/darwin-c.c: Likewise.
6245         * config/darwin.c: Likewise.
6246         * config/i386/i386.c: Likewise.
6247         * config/i386/winnt.c: Likewise.
6248         * config/microblaze/microblaze.c: Likewise.
6249         * config/mips/mips.c: Likewise.
6250         * config/rs6000/rs6000.c: Likewise.
6251         * config/rx/rx.c: Likewise.
6252         * config/s390/s390.c: Likewise.
6253         * config/tilegx/mul-tables.c: Likewise.
6255 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6257         * config/aarch64/aarch64.c, config/alpha/alpha.c,
6258         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6259         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6260         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6261         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6262         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6263         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6264         config/microblaze/microblaze.c, config/mips/mips.c,
6265         config/mmix/mmix.c, config/mn10300/mn10300.c,
6266         config/moxie/moxie.c, config/msp430/msp430.c,
6267         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6268         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6269         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6270         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6271         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6272         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6273         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6274         target-def.h include.
6275         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
6277 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6279         * Makefile.in (TARGET_DEF): Add target-insns.def.
6280         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6281         (build/gentarget-def.o): New rule.
6282         (genprogrtl): Add target-def.
6283         * target-insns.def, gentarget-def.c: New files.
6284         * target.def: Add targetm.have_* and targetm.gen_* hooks,
6285         based on the contents of target-insns.def.
6286         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6287         (HAVE_return, gen_return): Delete.
6288         * target-def.h: Include insn-target-def.h.
6289         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6290         instead of direct calls.  Rely on them to do the appropriate assertions.
6291         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
6292         (convert_jumps_to_returns): Use targetm interface instead of
6293         direct calls.
6294         (thread_prologue_and_epilogue_insns): Likewise.
6295         * reorg.c (find_end_label, dbr_schedule): Likewise.
6296         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6297         * shrink-wrap.c (convert_to_simple_return): Likewise.
6298         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6300 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6302         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6303         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6304         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6305         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6306         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6307         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6308         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6309         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6310         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6311         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6312         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6313         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6314         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6315         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6316         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6317         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6318         includes to end.
6320 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6322         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6323         (unbounded_int_hashmap_traits::key_type): Likewise.
6324         * hash-map.h (hash_map): Get the key type from the traits.
6325         * hash-traits.h (default_hash_traits): By default, inherit from the
6326         template parameter.
6327         * alias.c (alias_set_traits): Delete.
6328         (alias_set_entry_d::children): Use alias_set_hash as the first
6329         template parameter.
6330         (record_alias_subset): Update accordingly.
6331         * except.c (tree_hash_traits): Delete.
6332         (type_to_runtime_map): Use tree_hash as the first template parameter.
6333         (init_eh): Update accordingly.
6334         * genmatch.c (capture_id_map_hasher): Delete.
6335         (cid_map_t): Use nofree_string_hash as first template parameter.
6336         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6337         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6338         Use symbol_compare_hash as the first template parameter in
6339         subdivide_hash_map.
6340         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6341         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6342         template parameter.
6343         * passes.c (pass_registry_hasher): Delete.
6344         (name_to_pass_map): Use nofree_string_hash as the first template
6345         parameter.
6346         (register_pass_name): Update accordingly.
6347         * sanopt.c (sanopt_tree_map_traits): Delete.
6348         (sanopt_tree_triplet_map_traits): Delete.
6349         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6350         template parameter.
6351         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6352         the first template parameter.
6353         * sese.c (rename_map_hasher): Delete.
6354         (rename_map_type): Use tree_ssa_name_hash as the first template
6355         parameter.
6356         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6357         (function_summary::m_map): Use map_hash as the first template
6358         parameter.
6359         (function_summary::release): Update accordingly.
6360         * tree-if-conv.c (phi_args_hash_traits): Delete.
6361         (predicate_scalar_phi): Use tree_operand_hash as the first template
6362         parameter to phi_arg_map.
6363         * tree-inline.h (dependence_hasher): Delete.
6364         (copy_body_data::dependence_map): Use dependence_hash as the first
6365         template parameter.
6366         * tree-inline.c (remap_dependence_clique): Update accordingly.
6367         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6368         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6369         parameter.
6370         (addr_stridxptr): Update accordingly.
6371         * value-prof.c (profile_id_traits): Delete.
6372         (cgraph_node_map): Use profile_id_hash as the first template
6373         parameter.
6374         (init_node_map): Update accordingly.
6375         * config/alpha/alpha.c (string_traits): Delete.
6376         (machine_function::links): Use nofree_string_hash as the first
6377         template parameter.
6378         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6379         * config/m32c/m32c.c (pragma_traits): Delete.
6380         (pragma_htab): Use nofree_string_hash as the first template parameter.
6381         (m32c_note_pragma_address): Update accordingly.
6382         * config/mep/mep.c (pragma_traits): Delete.
6383         (pragma_htab): Use nofree_string_hash as the first template parameter.
6384         (mep_note_pragma_flag): Update accordingly.
6385         * config/mips/mips.c (mips16_flip_traits): Delete.
6386         (mflip_mips16_htab): Use nofree_string_hash as the first template
6387         parameter.
6388         (mflip_mips16_use_mips16_p): Update accordingly.
6389         (local_alias_traits): Delete.
6390         (mips16_local_aliases): Use nofree_string_hash as the first template
6391         parameter.
6392         (mips16_local_alias): Update accordingly.
6394 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6396         * hash-map-traits.h (default_hashmap_traits): Delete.
6398 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6400         * hash-map-traits.h (unbounded_hashmap_traits): New class.
6401         (unbounded_int_hashmap_traits): Likewise.
6402         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6404 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6406         * ipa-icf.h (symbol_compare_hash): New class.
6407         (symbol_compare_hashmap_traits): Use it.
6408         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6409         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6410         (mem_alloc_description::reverse_mem_map_t): Remove redundant
6411         default_hashmap_traits.
6412         * sanopt.c (sanopt_tree_triplet_hash): New class.
6413         (sanopt_tree_triplet_map_traits): Use it.
6415 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6417         * gengtype-parse.c (require_template_declaration): Allow '+' in
6418         template parameters.  Consolidate cases.
6419         * hash-traits.h (int_hash): New class.
6420         * alias.c (alias_set_hash): New structure.
6421         (alias_set_traits): Use it.
6422         * symbol-summary.h (function_summary::map_hash): New class.
6423         (function_summary::summary_hashmap_traits): Use it.
6424         * tree-inline.h (dependence_hash): New class.
6425         (dependence_hasher): Use it.
6426         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6427         * value-prof.c (profile_id_hash): New class.
6428         (profile_id_traits): Use it.
6430 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6432         * config/mips/mips.c (mips16_flip_traits): Use it.
6433         (local_alias_traits, mips16_local_aliases): Convert from a map of
6434         rtxes to a map of symbol names.
6435         (mips16_local_alias): Update accordingly.
6437 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6439         * hash-traits.h (string_hash, nofree_string_hash): New classes.
6440         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6441         * passes.c (pass_registry_hasher): Likewise.
6442         * config/alpha/alpha.c (string_traits): Likewise.
6443         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6444         * config/m32c/m32c.c (pragma_traits): Likewise.
6445         * config/mep/mep.c (pragma_traits): Likewise.
6447 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6449         * tree-hash-traits.h (tree_hash): New class.
6450         * except.c: Include tree-hash-traits.h.
6451         (tree_hash_traits): Use tree_hash.
6453 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6455         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
6456         * sese.c: Include tree-hash-traits.h.
6457         (rename_map_hasher): Use tree_ssa_name_hasher.
6459 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6461         * tree-hash-traits.h (tree_decl_hash): New class.
6462         * tree-ssa-strlen.c: Include tree-hash-traits.h.
6463         (stridxlist_hash_traits): Use tree_decl_hash.
6465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6467         * tree-hash-traits.h: New file.
6468         (tree_operand_hash): New class.
6469         * sanopt.c: Include tree-hash-traits.h.
6470         (sanopt_tree_map_traits): Use tree_operand_hash.
6471         * tree-if-conv.c: Include tree-hash-traits.h.
6472         (phi_args_hash_traits): Use tree_operand_hash.
6473         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
6474         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
6476 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6478         * hash-map-traits.h: Include hash-traits.h.
6479         (simple_hashmap_traits): New class.
6480         * mem-stats.h (hash_map): Change the default traits to
6481         simple_hashmap_traits<default_hash_traits<Key> >.
6483 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6485         * hash-table.h: Update comments.
6487 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6489         * hash-traits.h (default_hash_traits): New structure.
6490         * hash-set.h (default_hashset_traits): Delete.
6491         (hash_set): Use default_hash_traits<Key> instead of
6492         default_hashset_traits.  Delete hash_entry type and use Key directly.
6493         * ipa-devirt.c (pair_traits): Delete.
6494         (default_hash_traits <type_pair>): Override.
6495         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
6496         (odr_types_equivalent_p, add_type_duplicate): Likewise.
6498 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6500         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
6502 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6504         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
6505         (has_is_empty, is_empty_helper): Delete.
6506         (has_mark_deleted, mark_deleted_helper): Delete.
6507         (has_mark_empty, mark_empty_helper): Delete.
6508         (hash_table::is_deleted): Call the Descriptor unconditionally.
6509         (hash_table::is_empty): Likewise.
6510         (hash_table::mark_deleted): Likewise.
6511         (hash_table::mark_empty): Likewise.
6513 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6515         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
6516         redundant typedefs and members.
6517         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
6518         redundant typedefs.
6519         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
6520         * ipa-devirt.c (odr_name_hasher): Likewise.
6521         (polymorphic_call_target_hasher): Likewise.
6522         * ira-costs.c (cost_classes_hasher): Likewise.
6523         * statistics.c (stats_counter_hasher): Likewise.
6524         * trans-mem.c (log_entry_hasher): Likewise.
6525         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6526         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
6527         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
6528         * var-tracking.c (variable_hasher): Likewise.
6529         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
6530         Remove redundant typedefs and members.
6532 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6534         * hash-traits.h (ggc_cache_hasher): Rename to...
6535         (ggc_cache_remove): ...this and remove typedefs.
6536         (ggc_cache_ptr_hash): New class.
6537         * hash-table.h: Update commentary.
6538         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
6539         rather than ggc_cache_hasher.
6540         (const_wide_int_hasher, reg_attr_hasher): Likewise.
6541         (const_double_hasher, const_fixed_hasher): Likewise.
6542         * function.c (insn_cache_hasher): Likewise.
6543         * trans-mem.c (tm_wrapper_hasher): Likewise.
6544         * tree.h (tree_decl_map_cache_hasher): Likewise.
6545         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
6546         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
6547         * ubsan.c (tree_type_map_cache_hasher): Likewise.
6548         * varasm.c (tm_clone_hasher): Likewise.
6549         * config/i386/i386.c (dllimport_hasher): Likewise.
6550         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
6551         (tree_hasher): Likewise.
6553 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6555         * hash-traits.h (ggc_hasher): Rename to...
6556         (ggc_remover): ...this and remove typedefs.
6557         (ggc_cache_hasher): Update accordingly.  Add typedefs.
6558         (ggc_ptr_hash): New class.
6559         * hash-table.h: Update comment.
6560         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
6561         ggc_hasher.
6562         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
6563         (tree_descriptor_hasher): Likewise.
6564         * cgraph.c (function_version_hasher): Likewise.
6565         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
6566         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
6567         (dw_loc_list_hasher, addr_hasher): Likewise.
6568         * function.h (used_type_hasher): Likewise.
6569         * function.c (temp_address_hasher): Likewise.
6570         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
6571         * libfuncs.h (libfunc_hasher): Likewise.
6572         * lto-streamer.h (decl_state_hasher): Likewise.
6573         * optabs.c (libfunc_decl_hasher): Likewise.
6574         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
6575         * varasm.c (section_hasher, object_block_hasher): Likewise.
6576         (const_rtx_desc_hasher): Likewise.
6577         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
6578         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
6580 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6582         * hash-traits.h (free_ptr_hash): New class.
6583         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
6584         rather than typed_free_remove.  Remove redudant typedefs.
6585         (external_ref_hasher): Likewise.
6586         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
6587         (ehspec_hasher): Likewise.
6588         * ggc-common.c (saving_hasher): Likewise.
6589         * gimplify.c (gimplify_hasher): Likewise.
6590         * haifa-sched.c (delay_i2_hasher): Likewise.
6591         * loop-invariant.c (invariant_expr_hasher): Likewise.
6592         * loop-iv.c (biv_entry_hasher): Likewise.
6593         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
6594         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
6595         * tree-cfg.c (locus_discrim_hasher): Likewise.
6596         * tree-eh.c (finally_tree_hasher): Likewise.
6597         * tree-into-ssa.c (var_info_hasher): Likewise.
6598         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
6599         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
6600         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
6601         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
6602         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
6603         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
6604         (shared_bitmap_hasher): Likewise.
6605         * tree-ssa-threadupdate.c (redirection_data): Likewise.
6606         * tree-vectorizer.h (peel_info_hasher): Likewise.
6607         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
6608         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
6610 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6612         * hash-table.h: Update comments.
6613         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
6614         (nofree_ptr_hash): New class.
6615         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
6616         than typed_noop_remove.  Remove redudant typedefs.
6617         * attribs.c (attribute_hasher): Likewise.
6618         * cfg.c (bb_copy_hasher): Likewise.
6619         * cselib.c (cselib_hasher): Likewise.
6620         * dse.c (invariant_group_base_hasher): Likewise.
6621         * dwarf2cfi.c (trace_info_hasher): Likewise.
6622         * dwarf2out.c (macinfo_entry_hasher): Likewise.
6623         (comdat_type_hasher, loc_list_hasher): Likewise.
6624         * gcse.c (pre_ldst_expr_hasher): Likewise.
6625         * genmatch.c (id_base): Likewise.
6626         * genrecog.c (test_pattern_hasher): Likewise.
6627         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
6628         * haifa-sched.c (delay_i1_hasher): Likewise.
6629         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
6630         * ipa-icf.h (congruence_class_group_hash): Likewise.
6631         * ipa-profile.c (histogram_hash): Likewise.
6632         * ira-color.c (allocno_hard_regs_hasher): Likewise.
6633         * lto-streamer.h (string_slot_hasher): Likewise.
6634         * lto-streamer.c (tree_entry_hasher): Likewise.
6635         * plugin.c (event_hasher): Likewise.
6636         * postreload-gcse.c (expr_hasher): Likewise.
6637         * store-motion.c (st_expr_hasher): Likewise.
6638         * tree-sra.c (uid_decl_hasher): Likewise.
6639         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
6640         (ssa_name_var_hash): Likewise.
6641         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
6642         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
6643         * tree-ssa-pre.c (pre_expr_d): Likewise.
6644         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
6645         * vtable-verify.h (registration_hasher): Likewise.
6646         * vtable-verify.c (vtbl_map_hasher): Likewise.
6647         * config/arm/arm.c (libcall_hasher): Likewise.
6648         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
6649         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
6650         * config/sol2.c (comdat_entry_hasher): Likewise.
6651         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
6652         (print_fold_checksum, fold_checksum_tree): Likewise.
6653         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
6654         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
6655         (fold_build_call_array_loc): Likewise.
6656         * tree-ssa-ccp.c (gimple_htab): Likewise.
6657         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
6658         rather than pointer_type.
6660 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6662         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
6663         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
6665 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6667         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
6668         (ggc_hasher::ggc_mx): Likewise.
6669         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
6670         that duplicate ggc_hasher ones.
6672 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6674         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
6675         (gt_cleare_cache): Check here for deleted and empty entries.
6676         Replace handle_cache_entry with a call to keep_cache_entry.
6677         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
6678         (ggc_cache_hasher::keep_cache_entry): New function.
6679         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
6680         (tm_wrapper_hasher::keep_cache_entry): New function.
6681         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
6682         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6683         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
6684         (type_cache_hasher::keep_cache_entry): New function.
6685         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
6686         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6687         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
6688         (tree_type_map_cache_hasher::keep_cache_entry): New function.
6689         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
6690         (tm_clone_hasher::keep_cache_entry): New function.
6691         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
6692         (dllimport_hasher::keep_cache_entry): New function.
6694 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6696         * hash-table.h: Include hash-traits.h.
6697         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
6698         (ggc_cache_hasher): Move to...
6699         * hash-traits.h: ...this new file.
6701 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6703         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
6704         struct cl_optimization.
6705         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
6706         * tree.c (make_node_stat): Allocate cl_optimization struct.
6707         (copy_node_stat): Allocate and copy cl_optimization struct.
6709 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6711         * function.h (struct incoming_args): Move struct.
6712         (pass_by_reference, reference_callee_copied): Remove prototypes.
6713         * emit-rtl.h (struct incoming_args): Relocate struct here.
6714         * calls.h (pass_by_reference, reference_callee_copied): Relocate
6715         prototypes here.
6716         * function.c (pass_by_reference, reference_callee_copied): Move.
6717         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
6718         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
6719         * ipa-chkp.c: Include calls.h.
6721 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
6723         * alias.h (alias_set_type): Move typedef.
6724         * coretypes.h (alias_set_type): Relocate typedef here.
6725         * rtl.h: Don't include alias.h.
6727 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
6729         * cgraph.h (cgraph_rtl_info): Move to rtl.h
6730         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
6731         and instance.
6732         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
6733         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
6734         doesn't exist.
6735         * calls.c: Include hard-reg-set.h before rtl.h.
6736         * ira.c: Likewise.
6738 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
6739             Vladimir Makarov  <vmakarov@redhat.com>
6741         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
6742         Add assert.
6744 2015-06-25  Richard Biener  <rguenther@suse.de>
6746         * fold-const.c (fold_binary_loc): Move simplification of
6747         (X <<>> C1) & C2 ...
6748         * match.pd: ... here.
6750 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
6752         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
6754 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
6756         * match.pd: Add patterns for vec_conds between 1 and 0.
6758 2015-06-25  Richard Biener  <rguenther@suse.de>
6760         * tree-vect-stmts.c (vectorizable_conversion): Do not set
6761         STMT_VINFO_VEC_STMT for SLP.
6762         (vectorizable_store): Likewise.
6763         (vectorizable_load): Likewise.
6764         (vect_transform_stmt): Catch SLP vectorization clobbering
6765         STMT_VINFO_VEC_STMT.
6767 2015-06-25  Richard Biener  <rguenther@suse.de>
6769         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
6770         dumping.
6771         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
6772         cleanup resulting dead code and parameters.
6773         (vect_transform_slp_perm_load): Adjust.
6775 2015-06-25  Nick Clifton  <nickc@redhat.com>
6777         * config/bfin/bfin.c (bfin_expand_prologue): Set
6778         current_function_static_stack_size if flag_stack_usage_info is set.
6779         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
6780         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
6781         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6782         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
6784 2015-06-25  Tom de Vries  <tom@codesourcery.com>
6786         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
6787         comment that the generated IV is unsigned.
6789 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6791         PR target/29693
6792         * config/arm/arm.c (arm_dbx_register_number): Return
6793         DWARF_FRAME_REGISTERS by default.
6795 2015-06-25  Tom de Vries  <tom@codesourcery.com>
6797         * dominance.c (calculate_dominance_info): Fix verify_dominators call
6798         argument.  Call verify_dominator when reusing dominator info.
6800 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
6802         PR target/66563
6803         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
6804         an additional element of the unspec vector.  Modify indices
6805         of operands.
6806         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
6807         * config/sh/sh.c (prepare_move_operands): Pass incremented
6808         const_int to gen_GOTaddr2picreg.
6809         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
6811 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6813         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
6814         Condition on TARGET_FLOAT.
6816 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6818         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
6819         and (no)crypto.
6821 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
6823         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
6825         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
6826         aarch64_err_no_fpadvsimd.
6828         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
6829         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
6830         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
6831         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
6832         Turn error into assert, test TARGET_FLOAT.
6833         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
6834         TARGET_FLOAT.
6836 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
6838         PR debug/66482
6839         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
6841 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
6843         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
6845 2015-06-24 Renlin Li <renlin.li@arm.com>
6847         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
6848         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
6850 2015-06-24  Richard Biener  <rguenther@suse.de>
6852         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
6853         (main): Likewise.
6854         (lower_opt_convert): Support lowering of conditional view_convert.
6855         (parser::parse_operation): Likewise.
6856         (parser::parse_for): Likewise.
6858 2015-06-24  Renlin Li  <renlin.li@arm.com>
6860         * varasm.c (emit_local): Use unsigned int for align variable.
6862 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6864         PR target/63408
6865         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
6866         for negative numbers.
6868 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6870         PR rtl-optimization/66306
6871         * reload.c (find_reloads): Swap the match_dup info for
6872         commutative operands.
6874 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6876         * config/s390/vx-builtins.md
6877         ("vec_scatter_element<mode>_<non_vec_int>")
6878         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
6879         attribute with bhfgq.
6881 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6883         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
6885 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6887         * config/s390/s390-builtin-types.def: Add flag to indicate the
6888         options under which the function type is needed.
6889         * config/s390/s390-builtins.def: Add flag to indicate the options
6890         under which the builtin is enabled.
6891         * config/s390/s390-builtins.h: Add flags parameter to macro
6892         definitions.
6893         (bflags_for_builtin): New function.
6894         (flags_for_builtin): Renamed to ...
6895         (opflags_for_builtin): ... this.
6896         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
6897         flags_for_builtin to bflags_for_builtin and
6898         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
6899         * config/s390/s390.c: Add initialization of bflags_builtin and
6900         opflags_builtin arrays.
6901         Remove code for flags_builtin.
6902         (s390_init_builtins): Only create builtin function types if one of
6903         their flags is active.
6904         Only create builtins if all of their flags are active.
6905         (s390_expand_builtin): Rename flags_for_builtin to
6906         opflags_for_builtin.
6908 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6910         * config/s390/vecintrin.h: Remove internal builtins.
6912 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6914         * config/s390/s390.c (s390_secondary_reload): Fix check for
6915         GENERAL_REGS register class.
6917 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6919         * config/s390/s390.c (s390_support_vector_misalignment): Call
6920         default implementation for !TARGET_VX.
6922 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6924         * config/s390/s390.c (s390_legitimate_constant_p): Add
6925         TARGET_VX check.
6927 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6929         * config/s390/s390.c (s390_vector_abi): New variable definition.
6930         (s390_check_type_for_vector_abi): New function.
6931         (TARGET_ASM_FILE_END): New macro definition.
6932         (s390_asm_file_end): New function.
6933         (s390_function_arg): Call s390_check_type_for_vector_abi.
6934         (s390_gimplify_va_arg): Likewise.
6935         * configure: Regenerate.
6936         * configure.ac: Check for .gnu_attribute Binutils feature.
6938 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
6940         PR target/65803
6941         * config/bfin/bfin.c (hwloop_optimize): Initialize
6942         JUMP_LABEL for newly created jump.
6944 2015-06-23  Tristan Gingold  <gingold@adacore.com>
6946         * collect-utils.c (collect_wait): Unlink the response file here
6947         instead of...
6948         (do_wait): ...here.
6949         (utils_cleanup): ...and here.
6951 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
6953         * df-scan.c: Don't include target-def.h.
6954         * targhooks.c: Likewise.
6955         * config/arm/arm-c.c: Likewise.
6956         * config/i386/i386-c.c: Likewise.
6957         * config/nds32/nds32-cost.c: Likewise.
6958         * config/nds32/nds32-fp-as-gp.c: Likewise.
6959         * config/nds32/nds32-intrinsic.c: Likewise.
6960         * config/nds32/nds32-isr.c: Likewise.
6961         * config/nds32/nds32-md-auxiliary.c: Likewise.
6962         * config/nds32/nds32-memory-manipulation.c: Likewise.
6963         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6964         * config/nds32/nds32-predicates.c: Likewise.
6966 2015-06-23  Richard Biener  <rguenther@suse.de>
6968         PR tree-optimization/66636
6969         * tree-vect-stmts.c (vectorizable_store): Properly compute the
6970         def type for further defs for strided stores.
6972 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
6974         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
6975         conditional selects.
6976         (setcc_int<mode>, setcc_float<mode>): Reformat.
6978 2015-06-23  Marek Polacek  <polacek@redhat.com>
6980         * match.pd ((x + y) - (x | y) -> x & y,
6981         (x + y) - (x & y) -> x | y): New patterns.
6983 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
6985         PR 65711
6986         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
6987         '-dynamic-linker' within %{!shared: ...}.
6989 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
6991         PR target/66560
6992         * config/i386/predicates.md (addsub_vm_operator): New predicate.
6993         (addsub_vs_operator): Ditto.
6994         (addsub_vs_parallel): Ditto.
6995         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
6996         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
6997         Put minus RTX before plus and adjust vec_merge selector.
6998         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
6999         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7000         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7001         (addsub vec_merge splitters): New combiner splitters.
7002         (addsub vec_select/vec_concat splitters): Ditto.
7004 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
7006         PR tree-optimization/66449
7007         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7008         POINTER_PLUS_EXPR for pointers.
7010 2015-06-23  Alan Modra  <amodra@gmail.com>
7012         * rtlanal.c (commutative_operand_precedence): Correct comments.
7013         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7014         declaration.  Return an int.  Distinguish REG,REG return from
7015         others.
7016         (struct simplify_plus_minus_op_data): Make local to function.
7017         (simplify_plus_minus): Don't set canonicalized if merely sorting
7018         registers.  Avoid packing ops if nothing changes.  White space fixes.
7020 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
7022         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7023         -fdump-ada-spec is passed but not if -fsyntax-only is.
7025 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
7027         PR bootstrap/63740
7028         * lra-lives.c (process_bb_lives): Check insn copying the same
7029         reload pseudo and don't create a copy for it.
7031 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7033         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7034         for cond_stmt.
7036 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7038         * builtins.def (DEF_GOMP_BUILTIN): Test
7039         'flag_tree_parallelize_loops > 1' instead of
7040         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
7042 2015-06-22  Tom de Vries  <tom@codesourcery.com>
7044         * dominance.c (calculate_dominance_info): Verify dominators if
7045         early-out.
7047 2015-06-22  Marek Polacek  <polacek@redhat.com>
7049         * match.pd ((x ^ y) ^ (x | y) -> x & y,
7050         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7051         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7052         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7054 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
7056         PR target/65871
7057         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7058         cost of embedded comparison.
7060 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7062         PR target/65914
7063         * config/rs6000/predicates.md (altivec_register_operand): Permit
7064         virtual stack registers.
7065         (vsx_register_operand): Likewise.
7066         (vfloat_operand): Likewise.
7067         (vint_operand): Likewise.
7068         (vlogical_operand): Likewise.
7070 2015-06-22  Richard Biener  <rguenther@suse.de>
7072         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7073         and single_scalar_iteration_cost members.
7074         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7075         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7076         (vect_get_single_scalar_iteration_cost): Remove.
7077         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7078         Use LOOP_VINFO_SCALAR_ITERATION_COST.
7079         * tree-vect-loop.c (destroy_loop_vec_info): Free
7080         scalar_cost_vec.
7081         (vect_get_single_scalar_iteration_cost): Compute result into
7082         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7083         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
7084         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7085         (vect_estimate_min_profitable_iters): Use them.
7087 2015-06-22  Christian Bruel  <christian.bruel@st.com>
7089         PR target/52144
7090         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7091         (TARGET_INSERT_ATTRIBUTES): Define.
7092         (thumb_flipper): New var.
7093         * config/arm/arm.opt (-mflip-thumb): New switch.
7095 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
7096             Martin Liska  <mliska@suse.cz>
7098         PR ipa/65908
7099         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7100         construction of arg_types.
7101         (sem_function::sem_function): Likewise.
7102         (sem_function::~sem_function): Remove destruction of arg_types.
7103         (sem_function::compatible_parm_types_p): New function.
7104         (sem_function::equals_wpa): Reorg matching of return values
7105         and parameter types.
7106         (sem_function::equals_private): Reorg mathcing of argument types.
7107         (sem_function::parse_tree_args): Remove.
7108         * ipa-icf.h (init_wpa): Do not call it.
7109         (parse_tree_args): Remove.
7110         (compatible_parm_types_p): Declare.
7111         (result_type): Remove.
7112         (arg_types): Remove.
7114 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
7116         PR ipa/66351
7117         * ipa-polymorphic-call.c
7118         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7119         initializing alias oracle; fix formating; set base_alias_set if it
7120         is known.
7122 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
7124         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7125         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7126         (find_inc): Likewise.
7127         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7128         swapping.
7129         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7130         * df-scan.c (df_swap_refs): Remove.
7131         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7132         * dominance.c (link_roots): Use std::swap instead of manually swapping.
7133         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7134         * fold-const.c (fold_relational_const): Likewise.
7135         * genattrtab.c (simplify_test_exp): Likewise.
7136         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7137         gimple_simplify): Likewise.
7138         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7139         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7140         * ipa-devirt.c (add_type_duplicate): Likewise.
7141         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7142         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7143         * lra.c (lra_create_copy): Likewise.
7144         * lto-streamer-out.c (DFS::DFS): Likewise.
7145         * modulo-sched.c (get_sched_window): Likewise.
7146         * omega.c (omega_pretty_print_problem): Likewise.
7147         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7148         * reload1.c (reloads_unique_chain_p): Likewise.
7149         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7150         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7151         use std::swap.
7152         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7153         manually swapping.
7154         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7155         predicate_mem_writes): Likewise.
7156         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7157         * tree-predcom.c (combine_chains): Likewise.
7158         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7159         refs_may_alias_p_1): Likewise.
7160         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7161         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7162         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7163         number_of_iterations_cond): Likewise.
7164         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7165         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7166         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7167         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7168         * tree-vrp.c (extract_range_from_binary_expr_1,
7169         extract_range_from_unary_expr_1): Likewise.
7171 2015-06-20  Marek Polacek  <polacek@redhat.com>
7173         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7175 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
7177         PR target/66591
7178         * config/sh/sh.c (prepare_move_operands): Replace subreg
7179         index term with R0 for base and index addressing.
7181 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
7183         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7184         op1 is an fp zero.
7185         (movsf_aarch64): Change condition from register_operand to
7186         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
7187         load1.  Change type for alternative 7 to store1.
7188         (movdf_aarch64): Likewise.
7190 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
7192         * config/vax/vax.md: Adjust sign/zero extend patterns to
7193         handle SUBREGs in operands[1].
7195 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7197         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7198         of manually swapping.
7199         (expand_vec_perm_interleave2): Likewise.
7201 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
7203         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7204         reuse bounds created for abnormal ssa names.
7206 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
7208         * config/nvptx/nvptx.md (allocate_stack): Rename to...
7209         (allocate_stack_<mode>): ... this, and add :P on both
7210         match_operand and unspec.
7211         (allocate_stack): New expander.
7213 2015-06-19  Christian Bruel  <christian.bruel@st.com>
7215         PR target/66541
7216         PR target/52144
7217         * config/arm/arm.c (arm_set_current_function): Handle
7218         explicit default options.
7220 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
7222         * config/i386/i386.md (*movsicc_noc_zext): New insn.
7223         (zero-extended cmove with mem peephole2): New pattern.
7224         (cmove with mem peephole2): Merge patterns.
7226 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
7228         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7230 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
7232         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7233         * config/mips/mips.md (*madd4<mode>): Ditto.
7234         (*nmadd3<mode>) Ditto.
7235         (*nmadd4<mode>_fastmath): Ditto.
7236         (*nmadd3<mode>_fastmath): Ditto.
7237         (*nmsub4<mode>): Ditto.
7238         (*nmsub3<mode>): Ditto.
7239         (*nmsub4<mode>_fastmath): Ditto.
7240         (*nmsub3<mode>_fastmath): Ditto.
7242 2015-06-18  Michael Matz  <matz@suse.de>
7244         PR middle-end/66253
7245         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7246         grouped strided stores.
7247         (vectorizable_load): Don't use the DR from first_stmt in
7248         the non-SLP grouped strided case.
7250 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7252         PR target/66569
7253         * function.c (assign_bounds): Add arguments assign_regs,
7254         assign_special, assign_bt.
7255         (assign_parms): For vararg functions handle bounds in BT
7256         and special slots after incoming vararg bounds.
7258 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7260         PR middle-end/66568
7261         * cfgexpand.c (expand_return): Handle missing bounds.
7262         (expand_gimple_stmt_1): Likewise.
7263         * tree-chkp.c (chkp_expand_zero_bounds): New.
7264         * tree-chkp.h (chkp_expand_zero_bounds): New.
7266 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7268         PR middle-end/66567
7269         * ipa-chkp.c (chkp_maybe_create_clone): Require
7270         functions to be instrumentable.
7271         * tree-chkp.c (chkp_replace_function_pointer): Use
7272         chkp_instrumentable_p instead of attribute check.
7274 2015-06-18  Richard Biener  <rguenther@suse.de>
7276         PR tree-optimization/66510
7277         * tree-vect-stmts.c (vectorizable_load): Properly compute the
7278         number of vector loads for SLP permuted loads.
7279         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7280         check the stride for loop vectorization.
7281         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7282         vectorization factor.
7283         (vect_analyze_group_access): If the group size is not a power
7284         of two require a epilogue loop.
7285         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7286         compute and optimizing and alias test pruning after final
7287         vectorization factor computation.
7288         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7289         vector alignment.
7290         (vect_transform_slp_perm_load): Properly compute the original
7291         number of vector load stmts.
7293 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
7295         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7296         "unlikely character , in @var" warning.
7298 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
7300         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7301         (ix86_function_arg_advance): Ditto.
7302         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
7304 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7306         * function.h (struct rtl_data): Remove struct and accessor macros.
7307         * emit-rtl.h (struct rtl_data): Relocate to here.
7308         * Makefile.in (GTFILES): Add emit-rtl.h.
7309         * df-core.c: Include emit-rtl.h.
7310         * genattrtab.c: Likewise.
7311         * genconditions.c: Likewise.
7312         * genpreds.c: Likewise.
7313         * genrecog.c: Likewise.
7314         * regcprop.c: Likewise.
7315         * resource.c: Likewise.
7316         * sched-rgn.c: Likewise.
7317         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7318         * config/i386/winnt.c: Likewise.
7320 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
7322         PR middle-end/66429
7323         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7324         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
7325         and has_force_vectorize_loops flags from cfun into
7326         child_cfun.
7327         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7328         if simduid is non-NULL.
7329         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7330         * passes.def (pass_simduid_cleanup): Add new pass after loop
7331         passes.
7332         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7333         indirection from htab argument's type.
7334         (shrink_simd_arrays): New function.
7335         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
7336         Don't call adjust_simduid_builtins if there are no loops.
7337         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7338         (pass_simduid_cleanup::execute): New method.
7339         (make_pass_simduid_cleanup): New function.
7341 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
7343         * tree-core.h (tree_target_option): Make opts field a pointer to a
7344         cl_target_option instead of an instance of the struct.
7345         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7346         the structure.
7347         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7348         TARGET_OPTION_NODE.
7349         (copy_node_stat): Allocate and copy struct cl_target_option.
7351 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7353         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7354         Remove conditional exposure of prototypes.
7355         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7356         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
7357         definitions in tree.h with functions.
7358         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7359         anon_aggrname_p.
7360         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7362 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
7364         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7365         (*cmp<mode>_signed): ... this.
7366         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7367         (*cmp<mode>_unsigned): ... this.  Remove %b.
7369 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
7371         * coretypes.h: Include input.h and as-a.h.
7372         * rtl.h: Include input.h and as-a.h for generator files.
7373         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7374         * vec.c: Don't include diagnostic-core.h.
7375         * alias.c: Do not include input.h, line-map.h or is-a.h.
7376         * asan.c: Likewise.
7377         * attribs.c: Likewise.
7378         * auto-inc-dec.c: Likewise.
7379         * auto-profile.c: Likewise.
7380         * bb-reorder.c: Likewise.
7381         * bt-load.c: Likewise.
7382         * builtins.c: Likewise.
7383         * caller-save.c: Likewise.
7384         * calls.c: Likewise.
7385         * ccmp.c: Likewise.
7386         * cfg.c: Likewise.
7387         * cfganal.c: Likewise.
7388         * cfgbuild.c: Likewise.
7389         * cfgcleanup.c: Likewise.
7390         * cfgexpand.c: Likewise.
7391         * cfghooks.c: Likewise.
7392         * cfgloop.c: Likewise.
7393         * cfgloop.h: Likewise.
7394         * cfgloopanal.c: Likewise.
7395         * cfgloopmanip.c: Likewise.
7396         * cfgrtl.c: Likewise.
7397         * cgraph.c: Likewise.
7398         * cgraphbuild.c: Likewise.
7399         * cgraphclones.c: Likewise.
7400         * cgraphunit.c: Likewise.
7401         * cilk-common.c: Likewise.
7402         * combine-stack-adj.c: Likewise.
7403         * combine.c: Likewise.
7404         * compare-elim.c: Likewise.
7405         * convert.c: Likewise.
7406         * coverage.c: Likewise.
7407         * cppbuiltin.c: Likewise.
7408         * cprop.c: Likewise.
7409         * cse.c: Likewise.
7410         * cselib.c: Likewise.
7411         * data-streamer-in.c: Likewise.
7412         * data-streamer-out.c: Likewise.
7413         * data-streamer.c: Likewise.
7414         * dbxout.c: Likewise.
7415         * dce.c: Likewise.
7416         * ddg.c: Likewise.
7417         * debug.c: Likewise.
7418         * df-core.c: Likewise.
7419         * df-problems.c: Likewise.
7420         * df-scan.c: Likewise.
7421         * df.h: Likewise.
7422         * dfp.c: Likewise.
7423         * diagnostic-core.h: Likewise.
7424         * diagnostic.c: Likewise.
7425         * dojump.c: Likewise.
7426         * dominance.c: Likewise.
7427         * domwalk.c: Likewise.
7428         * double-int.c: Likewise.
7429         * dse.c: Likewise.
7430         * dumpfile.c: Likewise.
7431         * dumpfile.h: Likewise.
7432         * dwarf2asm.c: Likewise.
7433         * dwarf2cfi.c: Likewise.
7434         * dwarf2out.c: Likewise.
7435         * emit-rtl.c: Likewise.
7436         * et-forest.c: Likewise.
7437         * except.c: Likewise.
7438         * explow.c: Likewise.
7439         * expmed.c: Likewise.
7440         * expr.c: Likewise.
7441         * final.c: Likewise.
7442         * fixed-value.c: Likewise.
7443         * fold-const.c: Likewise.
7444         * function.c: Likewise.
7445         * fwprop.c: Likewise.
7446         * gcc-plugin.h: Likewise.
7447         * gcse.c: Likewise.
7448         * generic-match-head.c: Likewise.
7449         * ggc-page.c: Likewise.
7450         * gimple-builder.c: Likewise.
7451         * gimple-expr.c: Likewise.
7452         * gimple-fold.c: Likewise.
7453         * gimple-iterator.c: Likewise.
7454         * gimple-low.c: Likewise.
7455         * gimple-match-head.c: Likewise.
7456         * gimple-pretty-print.c: Likewise.
7457         * gimple-ssa-isolate-paths.c: Likewise.
7458         * gimple-ssa-strength-reduction.c: Likewise.
7459         * gimple-streamer-in.c: Likewise.
7460         * gimple-streamer-out.c: Likewise.
7461         * gimple-streamer.h: Likewise.
7462         * gimple-walk.c: Likewise.
7463         * gimple.c: Likewise.
7464         * gimplify-me.c: Likewise.
7465         * gimplify.c: Likewise.
7466         * godump.c: Likewise.
7467         * graph.c: Likewise.
7468         * graphite-blocking.c: Likewise.
7469         * graphite-dependences.c: Likewise.
7470         * graphite-interchange.c: Likewise.
7471         * graphite-isl-ast-to-gimple.c: Likewise.
7472         * graphite-optimize-isl.c: Likewise.
7473         * graphite-poly.c: Likewise.
7474         * graphite-scop-detection.c: Likewise.
7475         * graphite-sese-to-poly.c: Likewise.
7476         * graphite.c: Likewise.
7477         * haifa-sched.c: Likewise.
7478         * hw-doloop.c: Likewise.
7479         * ifcvt.c: Likewise.
7480         * init-regs.c: Likewise.
7481         * input.c: Likewise.
7482         * internal-fn.c: Likewise.
7483         * ipa-chkp.c: Likewise.
7484         * ipa-comdats.c: Likewise.
7485         * ipa-cp.c: Likewise.
7486         * ipa-devirt.c: Likewise.
7487         * ipa-icf-gimple.c: Likewise.
7488         * ipa-icf.c: Likewise.
7489         * ipa-inline-analysis.c: Likewise.
7490         * ipa-inline-transform.c: Likewise.
7491         * ipa-inline.c: Likewise.
7492         * ipa-polymorphic-call.c: Likewise.
7493         * ipa-profile.c: Likewise.
7494         * ipa-prop.c: Likewise.
7495         * ipa-pure-const.c: Likewise.
7496         * ipa-ref.c: Likewise.
7497         * ipa-reference.c: Likewise.
7498         * ipa-split.c: Likewise.
7499         * ipa-utils.c: Likewise.
7500         * ipa-visibility.c: Likewise.
7501         * ipa.c: Likewise.
7502         * ira-build.c: Likewise.
7503         * ira-color.c: Likewise.
7504         * ira-conflicts.c: Likewise.
7505         * ira-costs.c: Likewise.
7506         * ira-emit.c: Likewise.
7507         * ira-lives.c: Likewise.
7508         * ira.c: Likewise.
7509         * jump.c: Likewise.
7510         * langhooks.c: Likewise.
7511         * lcm.c: Likewise.
7512         * loop-doloop.c: Likewise.
7513         * loop-init.c: Likewise.
7514         * loop-invariant.c: Likewise.
7515         * loop-iv.c: Likewise.
7516         * loop-unroll.c: Likewise.
7517         * lower-subreg.c: Likewise.
7518         * lra-assigns.c: Likewise.
7519         * lra-coalesce.c: Likewise.
7520         * lra-constraints.c: Likewise.
7521         * lra-eliminations.c: Likewise.
7522         * lra-lives.c: Likewise.
7523         * lra-remat.c: Likewise.
7524         * lra-spills.c: Likewise.
7525         * lra.c: Likewise.
7526         * lto-cgraph.c: Likewise.
7527         * lto-compress.c: Likewise.
7528         * lto-opts.c: Likewise.
7529         * lto-section-in.c: Likewise.
7530         * lto-section-out.c: Likewise.
7531         * lto-streamer-in.c: Likewise.
7532         * lto-streamer-out.c: Likewise.
7533         * lto-streamer.c: Likewise.
7534         * mcf.c: Likewise.
7535         * mode-switching.c: Likewise.
7536         * modulo-sched.c: Likewise.
7537         * omega.c: Likewise.
7538         * omp-low.c: Likewise.
7539         * optabs.c: Likewise.
7540         * opts-global.c: Likewise.
7541         * opts.h: Likewise.
7542         * passes.c: Likewise.
7543         * plugin.c: Likewise.
7544         * postreload-gcse.c: Likewise.
7545         * postreload.c: Likewise.
7546         * predict.c: Likewise.
7547         * pretty-print.h: Likewise.
7548         * print-rtl.c: Likewise.
7549         * print-tree.c: Likewise.
7550         * profile.c: Likewise.
7551         * real.c: Likewise.
7552         * realmpfr.c: Likewise.
7553         * recog.c: Likewise.
7554         * ree.c: Likewise.
7555         * reg-stack.c: Likewise.
7556         * regcprop.c: Likewise.
7557         * reginfo.c: Likewise.
7558         * regrename.c: Likewise.
7559         * regstat.c: Likewise.
7560         * reload.c: Likewise.
7561         * reload1.c: Likewise.
7562         * reorg.c: Likewise.
7563         * resource.c: Likewise.
7564         * rtl-chkp.c: Likewise.
7565         * rtl-error.c: Likewise.
7566         * rtlanal.c: Likewise.
7567         * rtlhooks.c: Likewise.
7568         * sanopt.c: Likewise.
7569         * sched-deps.c: Likewise.
7570         * sched-ebb.c: Likewise.
7571         * sched-rgn.c: Likewise.
7572         * sched-vis.c: Likewise.
7573         * sdbout.c: Likewise.
7574         * sel-sched-dump.c: Likewise.
7575         * sel-sched-ir.c: Likewise.
7576         * sel-sched.c: Likewise.
7577         * sese.c: Likewise.
7578         * shrink-wrap.c: Likewise.
7579         * simplify-rtx.c: Likewise.
7580         * stack-ptr-mod.c: Likewise.
7581         * statistics.c: Likewise.
7582         * stmt.c: Likewise.
7583         * stor-layout.c: Likewise.
7584         * store-motion.c: Likewise.
7585         * streamer-hooks.c: Likewise.
7586         * stringpool.c: Likewise.
7587         * symtab.c: Likewise.
7588         * target-globals.c: Likewise.
7589         * targhooks.c: Likewise.
7590         * toplev.c: Likewise.
7591         * tracer.c: Likewise.
7592         * trans-mem.c: Likewise.
7593         * tree-affine.c: Likewise.
7594         * tree-browser.c: Likewise.
7595         * tree-call-cdce.c: Likewise.
7596         * tree-cfg.c: Likewise.
7597         * tree-cfgcleanup.c: Likewise.
7598         * tree-chkp-opt.c: Likewise.
7599         * tree-chkp.c: Likewise.
7600         * tree-chrec.c: Likewise.
7601         * tree-complex.c: Likewise.
7602         * tree-data-ref.c: Likewise.
7603         * tree-dfa.c: Likewise.
7604         * tree-diagnostic.c: Likewise.
7605         * tree-dump.c: Likewise.
7606         * tree-eh.c: Likewise.
7607         * tree-emutls.c: Likewise.
7608         * tree-if-conv.c: Likewise.
7609         * tree-inline.c: Likewise.
7610         * tree-into-ssa.c: Likewise.
7611         * tree-iterator.c: Likewise.
7612         * tree-loop-distribution.c: Likewise.
7613         * tree-nested.c: Likewise.
7614         * tree-nrv.c: Likewise.
7615         * tree-object-size.c: Likewise.
7616         * tree-outof-ssa.c: Likewise.
7617         * tree-parloops.c: Likewise.
7618         * tree-phinodes.c: Likewise.
7619         * tree-predcom.c: Likewise.
7620         * tree-pretty-print.c: Likewise.
7621         * tree-profile.c: Likewise.
7622         * tree-scalar-evolution.c: Likewise.
7623         * tree-sra.c: Likewise.
7624         * tree-ssa-address.c: Likewise.
7625         * tree-ssa-alias.c: Likewise.
7626         * tree-ssa-ccp.c: Likewise.
7627         * tree-ssa-coalesce.c: Likewise.
7628         * tree-ssa-copy.c: Likewise.
7629         * tree-ssa-copyrename.c: Likewise.
7630         * tree-ssa-dce.c: Likewise.
7631         * tree-ssa-dom.c: Likewise.
7632         * tree-ssa-dse.c: Likewise.
7633         * tree-ssa-forwprop.c: Likewise.
7634         * tree-ssa-ifcombine.c: Likewise.
7635         * tree-ssa-live.c: Likewise.
7636         * tree-ssa-loop-ch.c: Likewise.
7637         * tree-ssa-loop-im.c: Likewise.
7638         * tree-ssa-loop-ivcanon.c: Likewise.
7639         * tree-ssa-loop-ivopts.c: Likewise.
7640         * tree-ssa-loop-manip.c: Likewise.
7641         * tree-ssa-loop-niter.c: Likewise.
7642         * tree-ssa-loop-prefetch.c: Likewise.
7643         * tree-ssa-loop-unswitch.c: Likewise.
7644         * tree-ssa-loop.c: Likewise.
7645         * tree-ssa-math-opts.c: Likewise.
7646         * tree-ssa-operands.c: Likewise.
7647         * tree-ssa-phiopt.c: Likewise.
7648         * tree-ssa-phiprop.c: Likewise.
7649         * tree-ssa-pre.c: Likewise.
7650         * tree-ssa-propagate.c: Likewise.
7651         * tree-ssa-reassoc.c: Likewise.
7652         * tree-ssa-sccvn.c: Likewise.
7653         * tree-ssa-scopedtables.c: Likewise.
7654         * tree-ssa-sink.c: Likewise.
7655         * tree-ssa-strlen.c: Likewise.
7656         * tree-ssa-structalias.c: Likewise.
7657         * tree-ssa-tail-merge.c: Likewise.
7658         * tree-ssa-ter.c: Likewise.
7659         * tree-ssa-threadedge.c: Likewise.
7660         * tree-ssa-threadupdate.c: Likewise.
7661         * tree-ssa-uncprop.c: Likewise.
7662         * tree-ssa-uninit.c: Likewise.
7663         * tree-ssa.c: Likewise.
7664         * tree-ssanames.c: Likewise.
7665         * tree-stdarg.c: Likewise.
7666         * tree-streamer-in.c: Likewise.
7667         * tree-streamer-out.c: Likewise.
7668         * tree-streamer.c: Likewise.
7669         * tree-switch-conversion.c: Likewise.
7670         * tree-tailcall.c: Likewise.
7671         * tree-vect-data-refs.c: Likewise.
7672         * tree-vect-generic.c: Likewise.
7673         * tree-vect-loop-manip.c: Likewise.
7674         * tree-vect-loop.c: Likewise.
7675         * tree-vect-patterns.c: Likewise.
7676         * tree-vect-slp.c: Likewise.
7677         * tree-vect-stmts.c: Likewise.
7678         * tree-vectorizer.c: Likewise.
7679         * tree-vrp.c: Likewise.
7680         * tree.c: Likewise.
7681         * tsan.c: Likewise.
7682         * ubsan.c: Likewise.
7683         * valtrack.c: Likewise.
7684         * value-prof.c: Likewise.
7685         * var-tracking.c: Likewise.
7686         * varasm.c: Likewise.
7687         * varpool.c: Likewise.
7688         * vmsdbgout.c: Likewise.
7689         * vtable-verify.c: Likewise.
7690         * web.c: Likewise.
7691         * wide-int.cc: Likewise.
7692         * xcoffout.c: Likewise.
7693         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
7694         * common/common-targhooks.c: Likewise.
7695         * config/aarch64/aarch64-builtins.c: Likewise.
7696         * config/aarch64/aarch64.c: Likewise.
7697         * config/alpha/alpha.c: Likewise.
7698         * config/arc/arc.c: Likewise.
7699         * config/arm/aarch-common.c: Likewise.
7700         * config/arm/arm-builtins.c: Likewise.
7701         * config/arm/arm-c.c: Likewise.
7702         * config/arm/arm.c: Likewise.
7703         * config/avr/avr-c.c: Likewise.
7704         * config/avr/avr-log.c: Likewise.
7705         * config/avr/avr.c: Likewise.
7706         * config/bfin/bfin.c: Likewise.
7707         * config/c6x/c6x.c: Likewise.
7708         * config/cr16/cr16.c: Likewise.
7709         * config/cris/cris.c: Likewise.
7710         * config/darwin-c.c: Likewise.
7711         * config/darwin.c: Likewise.
7712         * config/default-c.c: Likewise.
7713         * config/epiphany/epiphany.c: Likewise.
7714         * config/epiphany/mode-switch-use.c: Likewise.
7715         * config/epiphany/resolve-sw-modes.c: Likewise.
7716         * config/fr30/fr30.c: Likewise.
7717         * config/frv/frv.c: Likewise.
7718         * config/ft32/ft32.c: Likewise.
7719         * config/glibc-c.c: Likewise.
7720         * config/h8300/h8300.c: Likewise.
7721         * config/i386/i386-c.c: Likewise.
7722         * config/i386/i386.c: Likewise.
7723         * config/i386/msformat-c.c: Likewise.
7724         * config/i386/winnt-cxx.c: Likewise.
7725         * config/i386/winnt-stubs.c: Likewise.
7726         * config/i386/winnt.c: Likewise.
7727         * config/ia64/ia64-c.c: Likewise.
7728         * config/ia64/ia64.c: Likewise.
7729         * config/iq2000/iq2000.c: Likewise.
7730         * config/lm32/lm32.c: Likewise.
7731         * config/m32c/m32c-pragma.c: Likewise.
7732         * config/m32c/m32c.c: Likewise.
7733         * config/m32r/m32r.c: Likewise.
7734         * config/m68k/m68k.c: Likewise.
7735         * config/mcore/mcore.c: Likewise.
7736         * config/mep/mep-pragma.c: Likewise.
7737         * config/mep/mep.c: Likewise.
7738         * config/microblaze/microblaze-c.c: Likewise.
7739         * config/microblaze/microblaze.c: Likewise.
7740         * config/mips/mips.c: Likewise.
7741         * config/mmix/mmix.c: Likewise.
7742         * config/mn10300/mn10300.c: Likewise.
7743         * config/moxie/moxie.c: Likewise.
7744         * config/msp430/msp430-c.c: Likewise.
7745         * config/msp430/msp430.c: Likewise.
7746         * config/nds32/nds32-cost.c: Likewise.
7747         * config/nds32/nds32-fp-as-gp.c: Likewise.
7748         * config/nds32/nds32-intrinsic.c: Likewise.
7749         * config/nds32/nds32-isr.c: Likewise.
7750         * config/nds32/nds32-md-auxiliary.c: Likewise.
7751         * config/nds32/nds32-memory-manipulation.c: Likewise.
7752         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7753         * config/nds32/nds32-predicates.c: Likewise.
7754         * config/nds32/nds32.c: Likewise.
7755         * config/nios2/nios2.c: Likewise.
7756         * config/nvptx/nvptx.c: Likewise.
7757         * config/pa/pa.c: Likewise.
7758         * config/pdp11/pdp11.c: Likewise.
7759         * config/rl78/rl78-c.c: Likewise.
7760         * config/rl78/rl78.c: Likewise.
7761         * config/rs6000/rs6000-c.c: Likewise.
7762         * config/rs6000/rs6000.c: Likewise.
7763         * config/rx/rx.c: Likewise.
7764         * config/s390/s390-c.c: Likewise.
7765         * config/s390/s390.c: Likewise.
7766         * config/sh/sh-c.c: Likewise.
7767         * config/sh/sh-mem.cc: Likewise.
7768         * config/sh/sh.c: Likewise.
7769         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7770         * config/sh/sh_treg_combine.cc: Likewise.
7771         * config/sol2-c.c: Likewise.
7772         * config/sol2-cxx.c: Likewise.
7773         * config/sol2-stubs.c: Likewise.
7774         * config/sol2.c: Likewise.
7775         * config/sparc/sparc-c.c: Likewise.
7776         * config/sparc/sparc.c: Likewise.
7777         * config/spu/spu-c.c: Likewise.
7778         * config/spu/spu.c: Likewise.
7779         * config/stormy16/stormy16.c: Likewise.
7780         * config/tilegx/mul-tables.c: Likewise.
7781         * config/tilegx/tilegx-c.c: Likewise.
7782         * config/tilegx/tilegx.c: Likewise.
7783         * config/tilepro/mul-tables.c: Likewise.
7784         * config/tilepro/tilepro-c.c: Likewise.
7785         * config/tilepro/tilepro.c: Likewise.
7786         * config/v850/v850-c.c: Likewise.
7787         * config/v850/v850.c: Likewise.
7788         * config/vax/vax.c: Likewise.
7789         * config/visium/visium.c: Likewise.
7790         * config/vms/vms-c.c: Likewise.
7791         * config/vms/vms.c: Likewise.
7792         * config/vxworks.c: Likewise.
7793         * config/winnt-c.c: Likewise.
7794         * config/xtensa/xtensa.c: Likewise.
7796 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
7798         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
7799         function.
7800         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
7802 2015-06-17  Richard Biener  <rguenther@suse.de>
7804         PR tree-optimization/66251
7805         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
7806         stmts for SLP strided stores.
7808         Revert
7809         2015-05-22  Richard Biener  <rguenther@suse.de>
7811         PR tree-optimization/66251
7812         * tree-vect-stmts.c (vectorizable_conversion): Properly
7813         set STMT_VINFO_VEC_STMT even for the SLP case.
7815         2015-05-26  Michael Matz  <matz@suse.de>
7817         PR middle-end/66251
7818         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
7819         STMT_VINFO_VEC_STMT, also with SLP.
7821 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
7823         PR target/56766
7824         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
7825         (*avx_addsubv4df3_1s): Ditto.
7826         (*sse3_addsubv2df3_1): Ditto.
7827         (*sse3_addsubv2df3_1s): Ditto.
7828         (*avx_addsubv8sf3_1): Ditto.
7829         (*avx_addsubv8sf3_1s): Ditto.
7830         (*sse3_addsubv4sf3_1): Ditto.
7831         (*sse3_addsubv4sf3_1s): Ditto.
7833 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
7835         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
7836         (SYSROOT_SUFFIX_SPEC): Update.
7837         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
7838         (STARTFILE_PREFIX_SPEC): Update.
7839         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
7840         (MULTILIB_REQUIRED): New.
7841         (MULTILIB_OSDIRNAMES): New.
7842         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
7843         (MULTILIB_REQUIRED): New.
7844         (MULTILIB_OSDIRNAMES): New.
7846 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
7848         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
7849         * config/aarch64/aarch64-options-extensions.def: Update "fP",
7850         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
7851         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
7852         (AARCH64_FL_PAN): New.
7853         (AARCH64_FL_LOR): New.
7854         (AARCH64_FL_RDMA): New.
7855         (AARCH64_FL_FOR_ARCH8_1): New.
7856         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
7857         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
7859 2015-06-16  Martin Liska  <mliska@suse.cz>
7861         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
7862         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
7863         guard.
7865 2015-06-16  Richard Biener  <rguenther@suse.de>
7867         * tree-vect-stmts.c (vectorizable_store): Adjust.
7868         (vectorizable_load): Likewise.
7869         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7870         Simplify.
7871         (vect_create_data_ref_ptr): Likewise.
7872         (bump_vector_ptr): Adjust.
7874 2015-06-16  Richard Biener  <rguenther@suse.de>
7876         * tree-vect-stmts.c (vectorizable_load): Properly start loads
7877         with the first element if this is grouped loads.
7879 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
7881         * config/arm/arm-protos.h (struct tune_params): Rename
7882         log_op_non_sc to log_op_non_short_circuit, and rename enum
7883         values to expand SC to SHORT_CIRCUIT.
7884         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
7885         to LOG_OP_NON_SHORT_CIRCUIT.
7886         (arm_fastmul_tune):Likewise
7887         (arm_strongarm_tune): Likewise.
7888         (arm_xscale_tune): Likewise.
7889         (arm_9e_tune): Likewise.
7890         (arm_marvell_pj4_tune): Likewise.
7891         (arm_v6t2_tune): Likewise.
7892         (arm_cortex_tune): Likewise.
7893         (arm_cortex_a8_tune): Likewise.
7894         (arm_cortex_a7_tune): Likewise.
7895         (arm_cortex_a15_tune): Likewise.
7896         (arm_cortex_a53_tune): Likewise.
7897         (arm_cortex_a57_tune): Likewise.
7898         (arm_xgene1_tune): Likewise.
7899         (arm_cortex_a5_tune): Likewise.
7900         (arm_cortex_a9_tune): Likewise.
7901         (arm_cortex_a12_tune): Likewise.
7902         (arm_v7m_tune): Likewise.
7903         (arm_cortex_m7_tune): Likewise.
7904         (arm_v6m_tune): Likewise.
7905         (arm_fa726te_tune): Likewise.
7907 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
7909         * altivec.md: Delete UNSPEC_VMLADDUHM.
7910         (mulv4si3_p8): New pattern.
7911         (mulv4si3): Use it for POWER8.
7912         (mulv8hi3): Use vmladduhm with zero addend.
7913         (altivec_vmladduhm): Descriptive RTL.
7915 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
7917         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
7918         to use neon_move instead of mov_imm.
7919         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
7920         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
7922         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
7923         aarch64_float_const_zero_rtx_p check before TFmode check.
7924         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
7925         an fp zero.
7926         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
7927         code and attributes to match.  Change condition from register_operand
7928         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
7929         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
7930         to store2.
7932 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
7934         PR debug/66535
7935         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
7936         there is no parent.
7938 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
7940         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
7941         HOST_WIDE_INT parameter.
7943 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
7945         PR ipa/66181
7946         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
7947         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
7948         TYPE_NO_FORCE_BLK.
7949         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7951 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
7953         * rtl.h (classify_insn): Declare.
7954         * emit-rtl.c (classify_insn): Move to...
7955         * rtl.c: ...here and add generator support.
7956         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
7957         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
7958         * genemit.c (gen_emit_seq): New function.
7959         (gen_expand, gen_split): Use it.
7961 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
7963         * tree.c (make_vector_stat): Fix comment to state that the
7964         function returns a VECTOR_CST.
7966 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
7968         * gensupport.h (add_implicit_parallel): Declare.
7969         * genrecog.c (add_implicit_parallel): Move to...
7970         * gensupport.c (add_implicit_parallel): ...here.
7971         (process_one_cond_exec): Use it.
7972         * genemit.c (gen_insn): Likewise.
7974 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
7976         PR bootstrap/66448
7977         * passes.c (rest_of_decl_compilation): Do not register globals for
7978         early debug if they are declared in built-ins.
7980 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
7982         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
7984 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7986         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
7987         manually swapping.
7988         (noce_try_cmove_arith): Likewise.
7989         (noce_get_alt_condition): Likewise.
7991 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7993         * common/config/i386/i386-common.c
7994         (OPTION_MASK_ISA_MWAITX_SET): New.
7995         (ix86_handle_option): Handle mwaitx.
7996         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
7997         (x86_64-*-*): Likewise.
7998         * config/i386/mwaitxintrin.h: New header.
7999         * config/i386/cpuid.h (bit_MWAITX):  Define.
8000         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8001         MWAITX support.
8002         * config/i386/i386.opt (mwaitx): New.
8003         * config/i386/i386-builtin-types.def
8004         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8005         * config/i386/i386-c.c: Define __MWAITX__ if needed.
8006         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8007         (PTA_MWAITX): New.
8008         (ix86_option_override_internal): Handle new option.
8009         (processor_alias_table): Added PTA_MWAITX.
8010         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8011         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8012         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8013         IX86_BUILTIN_MONITORX  built-ins.
8014         * config/i386/i386.h (TARGET_MWAITX): New.
8015         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8016         UNSPEC_MONITORX.
8017         (mwaitx):  New pattern.
8018         (monitorx_<mode>): New pattern.
8019         * config/i386/x86intrin.h: Include mwaitxintrin.h.
8020         * doc/extend.texi: Document monitorx and mwaitx builtins.
8021         * doc/invoke.texi: Document -mmwaitx option.
8023 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
8025         * emit-rtl.c (need_atomic_barrier_p): Mask model with
8026         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
8028 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8030         * dbxout.c (xcoff_debug_hooks): Provide a function for
8031         register_main_translation_unit hook.
8033 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
8035         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8036         variants cases from switch.
8037         (rs6000_post_atomic_barrier): Same.
8038         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8039         (rs6000_expand_atomic_exchange): Same.
8040         (rs6000_expand_atomic_op): Same.
8041         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8042         SYNC variants cases from switch.
8043         (atomic_load): Same.
8044         (atomic_store): Same.
8046 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
8048         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8049         CONST_INT for goto.
8051 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
8053         PR bootstrap/66448
8054         * dwarf2out.c (check_die): Check for common duplicate attributes.
8055         (add_location_or_const_value_attribute): Do not add duplicate
8056         attributes.
8057         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8058         time around.
8059         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8060         (gen_type_die_with_usage): Call check_die.
8061         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8063 2015-06-11  Jason Merrill  <jason@redhat.com>
8065         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8066         dies.
8068 2015-06-11  Marek Polacek  <polacek@redhat.com>
8070         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8072 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
8074         PR bootstrap/66252
8075         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8076         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8077         (*addx_extend_sp32): Fix pasto.
8078         (*subx_extend): Rename into...
8079         (*subx_extend_sp32): ...this.
8080         (*adddi3_extend_sp32): Add earlyclobber.
8081         (*subdi3_insn_sp32): Likewise.
8082         (*subdi3_extend_sp32): Likewise.
8083         (*and_not_di_sp32): Likewise.
8084         (*or_not_di_sp32): Likewise.
8085         (*xor_not_di_sp32): Likewise.
8086         (*negdi2_sp32): Likewise.
8087         (*one_cmpldi2_sp32): Likewise.
8089 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
8091         * debug.h (struct gcc_debug_hooks): Add a
8092         register_main_translation_unit hook.
8093         * debug.c (do_nothing_debug_hooks): Provide a function for this
8094         new hook.
8095         * dbxout.c (dbx_debug_hooks): Likewise.
8096         * sdbout.c (sdb_debug_hooks): Likewise.
8097         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8098         * dwarf2out.c (main_translation_unit): New global variable.
8099         (dwarf2out_register_main_translation_unit): New function
8100         implementing the new hook.
8101         (dwarf2_debug_hooks): Assign
8102         dwarf2out_register_main_translation_unit to this new hook.
8103         (dwarf2out_init): Associate any main translation unit to
8104         comp_unit_die ().
8106 2015-06-11  Marek Polacek  <polacek@redhat.com>
8108         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8110 2015-06-11  Marek Polacek  <polacek@redhat.com>
8112         * match.pd: Use single_use throughout.
8114 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8116         * config/arm/arm.c (arm_option_params_internal): When optimising
8117         for speed set max_insns_skipped when arm_restrict_it.
8119 2015-06-11  Christian Bruel  <christian.bruel@st.com>
8121         PR target/52144
8122         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8123          macros in ...
8124         (arm_cpu_builtins): New function.
8125         (arm_pragma_target_parse): Call arm_cpu_builtins.
8126         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8127         (arm_register_target_pragmas): Likewise.
8128         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8129          Call arm_register_target_pragmas.
8130         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8131         (arm_pragma_target_parse): Likewise.
8133 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
8135         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8136         of the second operand.
8138 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
8140         PR target/66473
8141         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8142         to prepare mask operand for AVX512 modes.
8144 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
8146         PR target/66474
8147         * doc/md.texi (Machine Constraints): Document that on the PowerPC
8148         if you use a constraint that targets a VSX register, you must use
8149         %x<n> in the template.
8151 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
8153         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8154         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8155         (define_insn "trap"): New definition.
8157 2015-06-10  Richard Biener  <rguenther@suse.de>
8159         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8160         out from ...
8161         (vect_supported_load_permutation_p): ... here.  Handle
8162         supportable permutations in reductions.
8163         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8164         for vectorizing strided group loads.
8166 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
8168         PR target/66470
8169         * config/i386/i386.c (ix86_split_long_move): For collisions
8170         involving direct tls segment refs, move the UNSPEC_TP possibly
8171         wrapped in ZERO_EXTEND out of the address for lea, to each of
8172         the memory loads.
8174 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8176         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8177         dmb sy. Adjust tabs.
8179 2015-06-10  Tom de Vries  <tom@codesourcery.com>
8181         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8183 2015-06-10  Martin Liska  <mliska@suse.cz>
8185         PR bootstrap/66471
8186         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8187         all enum values in mem_alloc_origin.
8188         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8189         name.
8190         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8191         * bitmap.c (bitmap_register): Likewise.
8192         (dump_bitmap_statistics): Likewise.
8193         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8194         (ggc_record_overhead): Likewise.
8195         * hash-map.h: Likewise.
8196         * hash-set.h: Likewise.
8197         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8198         * hash-table.h: Likewise.
8199         * vec.c (vec_prefix::register_overhead): Likewise.
8200         (vec_prefix::release_overhead): Likewise.
8201         (dump_vec_loc_statistics): Likewise.
8203 2015-06-09  Christian Bruel  <christian.bruel@st.com>
8205         PR target/52144
8206         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8207         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8208         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8209         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8210         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8211         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8212         (arm_valid_target_attribute_p): Likewise.
8213         (arm_set_current_function, arm_can_inline_p): Likewise.
8214         (arm_valid_target_attribute_rec): Likewise.
8215         (arm_previous_fndecl): New variable.
8216         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8217         (TARGET_CAN_INLINE_P): Define.
8218         (arm_asm_trampoline_template): Emit mode.
8219         (arm_file_start): Don't set unified syntax.
8220         (arm_declare_function_name): Set unified syntax and mode.
8221         (arm_option_override): Init target_option_default_node.
8222         and target_option_current_node.
8223         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8224         (*call_symbol): Likewise.
8225         * doc/extend.texi: Document ARM/Thumb target attribute.
8226         * doc/invoke.texi: Likewise.
8228 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8230         Revert:
8231         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8232         PR rtl-optimization/64164
8233         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8234         * tree-ssa-copyrename.c: Removed.
8235         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8236         -ftree-coalesce-vars.
8237         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8238         * common.opt (ftree-copyrename): Ignore.
8239         (ftree-coalesce-inlined-vars): Likewise.
8240         * doc/invoke.texi: Remove the ignored options above.
8241         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8242         * tree-ssa-coalesce.h: ... here.
8243         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8244         headers required by it.
8245         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8246         across variables when flag_tree_coalesce_vars.  Check register
8247         use and promoted modes to allow coalescing.  Moved to
8248         tree-ssa-coalesce.c.
8249         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8250         with its member functions to tree-ssa-coalesce.c.
8251         (var_map_base_init): Likewise.  Renamed to
8252         compute_samebase_partition_bases.
8253         (partition_view_normal): Drop want_bases parameter.
8254         (partition_view_bitmap): Likewise.
8255         * tree-ssa-live.h: Adjust declarations.
8256         * tree-ssa-coalesce.c: Include explow.h.
8257         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8258         default defs at the entry point.
8259         (dump_part_var_map): New.
8260         (compute_optimized_partition_bases): New, called by...
8261         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8262         of compute_samebase_partition_bases.  Adjust.
8263         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8264         * cfgexpand.c (leader_merge): New.
8265         (get_rtl_for_parm_ssa_default_def): New.
8266         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8267         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8268         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8269         redundant MEM attr setting.
8270         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8271         from...
8272         (expand_one_stack_var): ... this.  New wrapper to check and
8273         skip already expanded SSA partitions.
8274         (record_alignment_for_reg_var): New, factored out of...
8275         (expand_one_var): ... this.
8276         (expand_one_ssa_partition): New.
8277         (adjust_one_expanded_partition_var): New.
8278         (expand_one_register_var): Check and skip already expanded SSA
8279         partitions.
8280         (expand_used_vars): Don't create DECLs for anonymous SSA
8281         names.  Expand all SSA partitions, then adjust all SSA names.
8282         (pass::execute): Replace the loops that set
8283         SA.partition_to_pseudo from partition leaders and cleared
8284         DECL_RTL for multi-location variables, and that which used to
8285         rename vars and set attrs, with one that clears DECL_RTL and
8286         checks that PARMs and RESULTs default_defs match DECL_RTL.
8287         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8288         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8289         * explow.c (promote_ssa_mode): New.
8290         * explow.h (promote_ssa_mode): Declare.
8291         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8292         * function.c: Include cfgexpand.h.
8293         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8294         (use_register_for_parm_decl): Wrapper for the above to
8295         special-case the result_ptr.
8296         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8297         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8298         multiple locations.
8299         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8300         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8301         (assign_parm_setup_block): Prefer SSA-assigned location.
8302         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8303         if stack_parm is NULL.
8304         (assign_parm_setup_stack): Prefer SSA-assigned location.
8305         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8306         rtl before testing for pointer bounds.  Special-case result_ptr.
8307         (expand_function_start): Maybe reset DECL_RTL of result.
8308         Prefer SSA-assigned location for result and static chain.
8309         Factor out DECL_RESULT and SET_DECL_RTL.
8310         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8311         anonymous SSA names.  Use promote_ssa_mode.
8312         (get_temp_reg): Likewise.
8313         (remove_ssa_form): Adjust.
8314         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8315         and get its reg_usage for reg invalidation.
8316         (compute_bb_dataflow): Pass it insn.
8317         (emit_notes_in_bb): Likewise.
8318         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8319         fail assert on conversion between unsigned types.
8321 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8323         PR tree-optimization/65460
8324         * omp-low.c (expand_omp_target): Set parallelized_function on
8325         cgraph_node for child_fn.
8327 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8329         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8330         parallelized_function before add_new_function.
8332 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
8334         * gcc-plugin.h: Move decls to plugin.h and include it.
8335         * plugin.h: Relocate decls from gcc-plugin.h
8336         * ggc-page.c: Include required header files.
8337         * passes.c: Likewise.
8338         * cgraphunit.c: Likewise.
8340 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8342         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8344 2015-06-09  Jason Merrill  <jason@redhat.com>
8346         PR bootstrap/66448
8347         * toplev.c (check_global_declaration): Don't warn about a clone.
8349 2015-06-09  Marek Polacek  <polacek@redhat.com>
8351         PR tree-optimization/66299
8352         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8353         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8354         patterns.
8356 2015-06-09  Richard Biener  <rguenther@suse.de>
8358         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8359         (vect_analyze_slp_instance): Instead do not falsely drop
8360         load permutations.
8362 2015-06-09  Richard Biener  <rguenther@suse.de>
8364         PR middle-end/66423
8365         * match.pd: Handle A % (unsigned)(1 << B).
8367 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
8369         * varasm.c (output_object_block_htab): Remove.
8370         (output_object_block_compare): New.
8371         (output_object_blocks): Sort named object_blocks before outputting
8372         them.
8374 2015-06-09  Richard Biener  <rguenther@suse.de>
8376         PR tree-optimization/66419
8377         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8378         consider GROUP_GAP when detecting a perfect subchain.
8380 2015-06-09  Nick Clifton  <nickc@redhat.com>
8382         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8383         place read only data in the .frodata section.
8385 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
8387         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8388         (atomic_store<mode>): Likewise.
8390 2015-06-09  Richard Biener  <rguenther@suse.de>
8392         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8394 2015-06-09  Richard Biener  <rguenther@suse.de>
8396         PR middle-end/66413
8397         * tree-inline.c (insert_init_debug_bind): Unshare value.
8399 2015-06-09  Richard Biener  <rguenther@suse.de>
8401         PR tree-optimization/66396
8402         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8403         Rename virtual operands.
8405 2015-06-09  Tom de Vries  <tom@codesourcery.com>
8407         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8408         always return false.
8410 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8412         PR rtl-optimization/64164
8413         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8414         * tree-ssa-copyrename.c: Removed.
8415         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8416         -ftree-coalesce-vars.
8417         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8418         * common.opt (ftree-copyrename): Ignore.
8419         (ftree-coalesce-inlined-vars): Likewise.
8420         * doc/invoke.texi: Remove the ignored options above.
8421         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8422         * tree-ssa-coalesce.h: ... here.
8423         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8424         headers required by it.
8425         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8426         across variables when flag_tree_coalesce_vars.  Check register
8427         use and promoted modes to allow coalescing.  Moved to
8428         tree-ssa-coalesce.c.
8429         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8430         with its member functions to tree-ssa-coalesce.c.
8431         (var_map_base_init): Likewise.  Renamed to
8432         compute_samebase_partition_bases.
8433         (partition_view_normal): Drop want_bases parameter.
8434         (partition_view_bitmap): Likewise.
8435         * tree-ssa-live.h: Adjust declarations.
8436         * tree-ssa-coalesce.c: Include explow.h.
8437         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8438         default defs at the entry point.
8439         (dump_part_var_map): New.
8440         (compute_optimized_partition_bases): New, called by...
8441         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8442         of compute_samebase_partition_bases.  Adjust.
8443         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8444         * cfgexpand.c (leader_merge): New.
8445         (get_rtl_for_parm_ssa_default_def): New.
8446         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8447         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8448         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8449         redundant MEM attr setting.
8450         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8451         from...
8452         (expand_one_stack_var): ... this.  New wrapper to check and
8453         skip already expanded SSA partitions.
8454         (record_alignment_for_reg_var): New, factored out of...
8455         (expand_one_var): ... this.
8456         (expand_one_ssa_partition): New.
8457         (adjust_one_expanded_partition_var): New.
8458         (expand_one_register_var): Check and skip already expanded SSA
8459         partitions.
8460         (expand_used_vars): Don't create DECLs for anonymous SSA
8461         names.  Expand all SSA partitions, then adjust all SSA names.
8462         (pass::execute): Replace the loops that set
8463         SA.partition_to_pseudo from partition leaders and cleared
8464         DECL_RTL for multi-location variables, and that which used to
8465         rename vars and set attrs, with one that clears DECL_RTL and
8466         checks that PARMs and RESULTs default_defs match DECL_RTL.
8467         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8468         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8469         * explow.c (promote_ssa_mode): New.
8470         * explow.h (promote_ssa_mode): Declare.
8471         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8472         * function.c: Include cfgexpand.h.
8473         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8474         (use_register_for_parm_decl): Wrapper for the above to
8475         special-case the result_ptr.
8476         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8477         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8478         multiple locations.
8479         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8480         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8481         (assign_parm_setup_block): Prefer SSA-assigned location.
8482         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8483         if stack_parm is NULL.
8484         (assign_parm_setup_stack): Prefer SSA-assigned location.
8485         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8486         rtl before testing for pointer bounds.  Special-case result_ptr.
8487         (expand_function_start): Maybe reset DECL_RTL of result.
8488         Prefer SSA-assigned location for result and static chain.
8489         Factor out DECL_RESULT and SET_DECL_RTL.
8490         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8491         anonymous SSA names.  Use promote_ssa_mode.
8492         (get_temp_reg): Likewise.
8493         (remove_ssa_form): Adjust.
8494         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8495         and get its reg_usage for reg invalidation.
8496         (compute_bb_dataflow): Pass it insn.
8497         (emit_notes_in_bb): Likewise.
8498         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8499         fail assert on conversion between unsigned types.
8501 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
8503         PR debug/58315
8504         * tree-inline.c (reset_debug_binding): New.
8505         (reset_debug_bindings): Likewise.
8506         (expand_call_inline): Call it.
8508 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8510         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
8511         TYPE_STRING_FLAG.
8513 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8515         * lto-streamer-out.c (lto_output_location): Stream
8516         reserved locations correctly.
8517         * lto-streamer-in.c (lto_output_location): Likewise.
8519 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
8521         * coretypes.h: Include hash-table.h and hash-set.h for host files.
8522         * ggc.h: Don't include statistics.h>
8523         * hash-map.h: Remove all includes.
8524         * hash-set.h: Likewise.
8525         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
8526         the include list. Remove <new>.
8527         * inchash.h: Remove all includes.
8528         * mem-stats.h: Likewise.
8529         * vec.h: No special processing for generators or ggc.
8530         * alias.c : Adjust include files.
8531         * alloc-pool.c : Likewise.
8532         * alloc-pool.h : Likewise.
8533         * asan.c : Likewise.
8534         * attribs.c : Likewise.
8535         * auto-inc-dec.c : Likewise.
8536         * auto-profile.c : Likewise.
8537         * bb-reorder.c : Likewise.
8538         * bitmap.c : Likewise.
8539         * bitmap.h : Likewise.
8540         * bt-load.c : Likewise.
8541         * builtins.c : Likewise.
8542         * caller-save.c : Likewise.
8543         * calls.c : Likewise.
8544         * ccmp.c : Likewise.
8545         * cfg.c : Likewise.
8546         * cfganal.c : Likewise.
8547         * cfgbuild.c : Likewise.
8548         * cfgcleanup.c : Likewise.
8549         * cfgexpand.c : Likewise.
8550         * cfghooks.c : Likewise.
8551         * cfgloop.c : Likewise.
8552         * cfgloop.h : Likewise.
8553         * cfgloopanal.c : Likewise.
8554         * cfgloopmanip.c : Likewise.
8555         * cfgrtl.c : Likewise.
8556         * cgraph.c : Likewise.
8557         * cgraphbuild.c : Likewise.
8558         * cgraphclones.c : Likewise.
8559         * cgraphunit.c : Likewise.
8560         * cilk-common.c : Likewise.
8561         * combine-stack-adj.c : Likewise.
8562         * combine.c : Likewise.
8563         * compare-elim.c : Likewise.
8564         * context.c : Likewise.
8565         * convert.c : Likewise.
8566         * coverage.c : Likewise.
8567         * cppbuiltin.c : Likewise.
8568         * cprop.c : Likewise.
8569         * cse.c : Likewise.
8570         * cselib.c : Likewise.
8571         * data-streamer-in.c : Likewise.
8572         * data-streamer-out.c : Likewise.
8573         * data-streamer.c : Likewise.
8574         * data-streamer.h : Likewise.
8575         * dbxout.c : Likewise.
8576         * dce.c : Likewise.
8577         * ddg.c : Likewise.
8578         * debug.c : Likewise.
8579         * df-core.c : Likewise.
8580         * df-problems.c : Likewise.
8581         * df-scan.c : Likewise.
8582         * df.h : Likewise.
8583         * dfp.c : Likewise.
8584         * dojump.c : Likewise.
8585         * dominance.c : Likewise.
8586         * domwalk.c : Likewise.
8587         * double-int.c : Likewise.
8588         * dse.c : Likewise.
8589         * dumpfile.c : Likewise.
8590         * dwarf2asm.c : Likewise.
8591         * dwarf2cfi.c : Likewise.
8592         * dwarf2out.c : Likewise.
8593         * emit-rtl.c : Likewise.
8594         * et-forest.c : Likewise.
8595         * except.c : Likewise.
8596         * except.h : Likewise.
8597         * explow.c : Likewise.
8598         * expmed.c : Likewise.
8599         * expr.c : Likewise.
8600         * final.c : Likewise.
8601         * fixed-value.c : Likewise.
8602         * fold-const.c : Likewise.
8603         * function.c : Likewise.
8604         * fwprop.c : Likewise.
8605         * gcc-plugin.h : Likewise.
8606         * gcc.c : Likewise.
8607         * gcse-common.c : Likewise.
8608         * gcse.c : Likewise.
8609         * genattrtab.c : Likewise.
8610         * genautomata.c : Likewise.
8611         * genconditions.c : Likewise.
8612         * genemit.c : Likewise.
8613         * generic-match-head.c : Likewise.
8614         * genextract.c : Likewise.
8615         * gengtype-state.c : Likewise.
8616         * gengtype.c : Likewise.
8617         * genhooks.c : Likewise.
8618         * genmatch.c : Likewise.
8619         * genmodes.c : Likewise.
8620         * genrecog.c : Likewise.
8621         * gensupport.c : Likewise.
8622         * ggc-common.c : Likewise.
8623         * ggc-internal.h : Likewise.
8624         * ggc-none.c : Likewise.
8625         * ggc-page.c : Likewise.
8626         * gimple-builder.c : Likewise.
8627         * gimple-expr.c : Likewise.
8628         * gimple-fold.c : Likewise.
8629         * gimple-iterator.c : Likewise.
8630         * gimple-low.c : Likewise.
8631         * gimple-match-head.c : Likewise.
8632         * gimple-pretty-print.c : Likewise.
8633         * gimple-ssa-isolate-paths.c : Likewise.
8634         * gimple-ssa-strength-reduction.c : Likewise.
8635         * gimple-ssa.h : Likewise.
8636         * gimple-streamer-in.c : Likewise.
8637         * gimple-streamer-out.c : Likewise.
8638         * gimple-streamer.h : Likewise.
8639         * gimple-walk.c : Likewise.
8640         * gimple.c : Likewise.
8641         * gimplify-me.c : Likewise.
8642         * gimplify.c : Likewise.
8643         * godump.c : Likewise.
8644         * graph.c : Likewise.
8645         * graphds.c : Likewise.
8646         * graphite-blocking.c : Likewise.
8647         * graphite-dependences.c : Likewise.
8648         * graphite-interchange.c : Likewise.
8649         * graphite-isl-ast-to-gimple.c : Likewise.
8650         * graphite-optimize-isl.c : Likewise.
8651         * graphite-poly.c : Likewise.
8652         * graphite-scop-detection.c : Likewise.
8653         * graphite-sese-to-poly.c : Likewise.
8654         * graphite.c : Likewise.
8655         * haifa-sched.c : Likewise.
8656         * hard-reg-set.h : Likewise.
8657         * hw-doloop.c : Likewise.
8658         * ifcvt.c : Likewise.
8659         * inchash.c : Likewise.
8660         * incpath.c : Likewise.
8661         * init-regs.c : Likewise.
8662         * input.c : Likewise.
8663         * internal-fn.c : Likewise.
8664         * ipa-chkp.c : Likewise.
8665         * ipa-comdats.c : Likewise.
8666         * ipa-cp.c : Likewise.
8667         * ipa-devirt.c : Likewise.
8668         * ipa-icf-gimple.c : Likewise.
8669         * ipa-icf.c : Likewise.
8670         * ipa-inline-analysis.c : Likewise.
8671         * ipa-inline-transform.c : Likewise.
8672         * ipa-inline.c : Likewise.
8673         * ipa-polymorphic-call.c : Likewise.
8674         * ipa-profile.c : Likewise.
8675         * ipa-prop.c : Likewise.
8676         * ipa-pure-const.c : Likewise.
8677         * ipa-ref.c : Likewise.
8678         * ipa-reference.c : Likewise.
8679         * ipa-split.c : Likewise.
8680         * ipa-utils.c : Likewise.
8681         * ipa-visibility.c : Likewise.
8682         * ipa.c : Likewise.
8683         * ira-build.c : Likewise.
8684         * ira-color.c : Likewise.
8685         * ira-conflicts.c : Likewise.
8686         * ira-costs.c : Likewise.
8687         * ira-emit.c : Likewise.
8688         * ira-lives.c : Likewise.
8689         * ira.c : Likewise.
8690         * jump.c : Likewise.
8691         * langhooks.c : Likewise.
8692         * lcm.c : Likewise.
8693         * libfuncs.h : Likewise.
8694         * lists.c : Likewise.
8695         * loop-doloop.c : Likewise.
8696         * loop-init.c : Likewise.
8697         * loop-invariant.c : Likewise.
8698         * loop-iv.c : Likewise.
8699         * loop-unroll.c : Likewise.
8700         * lower-subreg.c : Likewise.
8701         * lra-assigns.c : Likewise.
8702         * lra-coalesce.c : Likewise.
8703         * lra-constraints.c : Likewise.
8704         * lra-eliminations.c : Likewise.
8705         * lra-lives.c : Likewise.
8706         * lra-remat.c : Likewise.
8707         * lra-spills.c : Likewise.
8708         * lra.c : Likewise.
8709         * lto-cgraph.c : Likewise.
8710         * lto-compress.c : Likewise.
8711         * lto-opts.c : Likewise.
8712         * lto-section-in.c : Likewise.
8713         * lto-section-out.c : Likewise.
8714         * lto-streamer-in.c : Likewise.
8715         * lto-streamer-out.c : Likewise.
8716         * lto-streamer.c : Likewise.
8717         * lto-streamer.h : Likewise.
8718         * mcf.c : Likewise.
8719         * mode-switching.c : Likewise.
8720         * modulo-sched.c : Likewise.
8721         * omega.c : Likewise.
8722         * omp-low.c : Likewise.
8723         * optabs.c : Likewise.
8724         * opts-global.c : Likewise.
8725         * opts.h : Likewise.
8726         * passes.c : Likewise.
8727         * plugin.c : Likewise.
8728         * postreload-gcse.c : Likewise.
8729         * postreload.c : Likewise.
8730         * predict.c : Likewise.
8731         * print-rtl.c : Likewise.
8732         * print-tree.c : Likewise.
8733         * profile.c : Likewise.
8734         * read-md.c : Likewise.
8735         * read-md.h : Likewise.
8736         * read-rtl.c : Likewise.
8737         * real.c : Likewise.
8738         * realmpfr.c : Likewise.
8739         * recog.c : Likewise.
8740         * ree.c : Likewise.
8741         * reg-stack.c : Likewise.
8742         * regcprop.c : Likewise.
8743         * reginfo.c : Likewise.
8744         * regrename.c : Likewise.
8745         * regstat.c : Likewise.
8746         * reload.c : Likewise.
8747         * reload1.c : Likewise.
8748         * reorg.c : Likewise.
8749         * resource.c : Likewise.
8750         * rtl-chkp.c : Likewise.
8751         * rtl.c : Likewise.
8752         * rtl.h : Likewise.
8753         * rtlanal.c : Likewise.
8754         * rtlhash.c : Likewise.
8755         * rtlhash.h : Likewise.
8756         * rtlhooks.c : Likewise.
8757         * sanopt.c : Likewise.
8758         * sched-deps.c : Likewise.
8759         * sched-ebb.c : Likewise.
8760         * sched-rgn.c : Likewise.
8761         * sched-vis.c : Likewise.
8762         * sdbout.c : Likewise.
8763         * sel-sched-dump.c : Likewise.
8764         * sel-sched-ir.c : Likewise.
8765         * sel-sched-ir.h : Likewise.
8766         * sel-sched.c : Likewise.
8767         * sese.c : Likewise.
8768         * shrink-wrap.c : Likewise.
8769         * shrink-wrap.h : Likewise.
8770         * simplify-rtx.c : Likewise.
8771         * stack-ptr-mod.c : Likewise.
8772         * statistics.c : Likewise.
8773         * stmt.c : Likewise.
8774         * stor-layout.c : Likewise.
8775         * store-motion.c : Likewise.
8776         * stringpool.c : Likewise.
8777         * symtab.c : Likewise.
8778         * target-globals.c : Likewise.
8779         * targhooks.c : Likewise.
8780         * tlink.c : Likewise.
8781         * toplev.c : Likewise.
8782         * tracer.c : Likewise.
8783         * trans-mem.c : Likewise.
8784         * tree-affine.c : Likewise.
8785         * tree-affine.h : Likewise.
8786         * tree-browser.c : Likewise.
8787         * tree-call-cdce.c : Likewise.
8788         * tree-cfg.c : Likewise.
8789         * tree-cfgcleanup.c : Likewise.
8790         * tree-chkp-opt.c : Likewise.
8791         * tree-chkp.c : Likewise.
8792         * tree-chrec.c : Likewise.
8793         * tree-complex.c : Likewise.
8794         * tree-data-ref.c : Likewise.
8795         * tree-dfa.c : Likewise.
8796         * tree-diagnostic.c : Likewise.
8797         * tree-dump.c : Likewise.
8798         * tree-eh.c : Likewise.
8799         * tree-eh.h : Likewise.
8800         * tree-emutls.c : Likewise.
8801         * tree-hasher.h : Likewise.
8802         * tree-if-conv.c : Likewise.
8803         * tree-inline.c : Likewise.
8804         * tree-inline.h : Likewise.
8805         * tree-into-ssa.c : Likewise.
8806         * tree-iterator.c : Likewise.
8807         * tree-loop-distribution.c : Likewise.
8808         * tree-nested.c : Likewise.
8809         * tree-nrv.c : Likewise.
8810         * tree-object-size.c : Likewise.
8811         * tree-outof-ssa.c : Likewise.
8812         * tree-parloops.c : Likewise.
8813         * tree-phinodes.c : Likewise.
8814         * tree-predcom.c : Likewise.
8815         * tree-pretty-print.c : Likewise.
8816         * tree-profile.c : Likewise.
8817         * tree-scalar-evolution.c : Likewise.
8818         * tree-sra.c : Likewise.
8819         * tree-ssa-address.c : Likewise.
8820         * tree-ssa-alias.c : Likewise.
8821         * tree-ssa-ccp.c : Likewise.
8822         * tree-ssa-coalesce.c : Likewise.
8823         * tree-ssa-copy.c : Likewise.
8824         * tree-ssa-copyrename.c : Likewise.
8825         * tree-ssa-dce.c : Likewise.
8826         * tree-ssa-dom.c : Likewise.
8827         * tree-ssa-dse.c : Likewise.
8828         * tree-ssa-forwprop.c : Likewise.
8829         * tree-ssa-ifcombine.c : Likewise.
8830         * tree-ssa-live.c : Likewise.
8831         * tree-ssa-loop-ch.c : Likewise.
8832         * tree-ssa-loop-im.c : Likewise.
8833         * tree-ssa-loop-ivcanon.c : Likewise.
8834         * tree-ssa-loop-ivopts.c : Likewise.
8835         * tree-ssa-loop-manip.c : Likewise.
8836         * tree-ssa-loop-niter.c : Likewise.
8837         * tree-ssa-loop-prefetch.c : Likewise.
8838         * tree-ssa-loop-unswitch.c : Likewise.
8839         * tree-ssa-loop.c : Likewise.
8840         * tree-ssa-math-opts.c : Likewise.
8841         * tree-ssa-operands.c : Likewise.
8842         * tree-ssa-phiopt.c : Likewise.
8843         * tree-ssa-phiprop.c : Likewise.
8844         * tree-ssa-pre.c : Likewise.
8845         * tree-ssa-propagate.c : Likewise.
8846         * tree-ssa-reassoc.c : Likewise.
8847         * tree-ssa-sccvn.c : Likewise.
8848         * tree-ssa-scopedtables.c : Likewise.
8849         * tree-ssa-sink.c : Likewise.
8850         * tree-ssa-strlen.c : Likewise.
8851         * tree-ssa-structalias.c : Likewise.
8852         * tree-ssa-tail-merge.c : Likewise.
8853         * tree-ssa-ter.c : Likewise.
8854         * tree-ssa-threadedge.c : Likewise.
8855         * tree-ssa-threadupdate.c : Likewise.
8856         * tree-ssa-uncprop.c : Likewise.
8857         * tree-ssa-uninit.c : Likewise.
8858         * tree-ssa.c : Likewise.
8859         * tree-ssanames.c : Likewise.
8860         * tree-stdarg.c : Likewise.
8861         * tree-streamer-in.c : Likewise.
8862         * tree-streamer-out.c : Likewise.
8863         * tree-streamer.c : Likewise.
8864         * tree-streamer.h : Likewise.
8865         * tree-switch-conversion.c : Likewise.
8866         * tree-tailcall.c : Likewise.
8867         * tree-vect-data-refs.c : Likewise.
8868         * tree-vect-generic.c : Likewise.
8869         * tree-vect-loop-manip.c : Likewise.
8870         * tree-vect-loop.c : Likewise.
8871         * tree-vect-patterns.c : Likewise.
8872         * tree-vect-slp.c : Likewise.
8873         * tree-vect-stmts.c : Likewise.
8874         * tree-vectorizer.c : Likewise.
8875         * tree-vectorizer.h : Likewise.
8876         * tree-vrp.c : Likewise.
8877         * tree.c : Likewise.
8878         * tsan.c : Likewise.
8879         * ubsan.c : Likewise.
8880         * valtrack.c : Likewise.
8881         * valtrack.h : Likewise.
8882         * value-prof.c : Likewise.
8883         * var-tracking.c : Likewise.
8884         * varasm.c : Likewise.
8885         * varpool.c : Likewise.
8886         * vec.c: Likewise.
8887         * vmsdbgout.c : Likewise.
8888         * vtable-verify.c : Likewise.
8889         * vtable-verify.h : Likewise.
8890         * web.c : Likewise.
8891         * wide-int.cc : Likewise.
8892         * xcoffout.c : Likewise.
8893         * config/aarch64/aarch64-builtins.c : Likewise.
8894         * config/aarch64/aarch64.c : Likewise.
8895         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
8896         * config/alpha/alpha.c : Likewise.
8897         * config/arc/arc.c : Likewise.
8898         * config/arm/aarch-common.c : Likewise.
8899         * config/arm/arm-builtins.c : Likewise.
8900         * config/arm/arm-c.c : Likewise.
8901         * config/arm/arm.c : Likewise.
8902         * config/avr/avr-c.c : Likewise.
8903         * config/avr/avr-log.c : Likewise.
8904         * config/avr/avr.c : Likewise.
8905         * config/bfin/bfin.c : Likewise.
8906         * config/c6x/c6x.c : Likewise.
8907         * config/cr16/cr16.c : Likewise.
8908         * config/cris/cris.c : Likewise.
8909         * config/darwin-c.c : Likewise.
8910         * config/darwin.c : Likewise.
8911         * config/default-c.c : Likewise.
8912         * config/epiphany/epiphany.c : Likewise.
8913         * config/epiphany/mode-switch-use.c : Likewise.
8914         * config/epiphany/resolve-sw-modes.c : Likewise.
8915         * config/fr30/fr30.c : Likewise.
8916         * config/frv/frv.c : Likewise.
8917         * config/ft32/ft32.c : Likewise.
8918         * config/glibc-c.c : Likewise.
8919         * config/h8300/h8300.c : Likewise.
8920         * config/i386/i386-c.c : Likewise.
8921         * config/i386/i386.c : Likewise.
8922         * config/i386/msformat-c.c : Likewise.
8923         * config/i386/winnt-cxx.c : Likewise.
8924         * config/i386/winnt-stubs.c : Likewise.
8925         * config/i386/winnt.c : Likewise.
8926         * config/ia64/ia64-c.c : Likewise.
8927         * config/ia64/ia64.c : Likewise.
8928         * config/iq2000/iq2000.c : Likewise.
8929         * config/lm32/lm32.c : Likewise.
8930         * config/m32c/m32c-pragma.c : Likewise.
8931         * config/m32c/m32c.c : Likewise.
8932         * config/m32r/m32r.c : Likewise.
8933         * config/m68k/m68k.c : Likewise.
8934         * config/mcore/mcore.c : Likewise.
8935         * config/mep/mep-pragma.c : Likewise.
8936         * config/mep/mep.c : Likewise.
8937         * config/microblaze/microblaze-c.c : Likewise.
8938         * config/microblaze/microblaze.c : Likewise.
8939         * config/mips/mips.c : Likewise.
8940         * config/mmix/mmix.c : Likewise.
8941         * config/mn10300/mn10300.c : Likewise.
8942         * config/moxie/moxie.c : Likewise.
8943         * config/msp430/msp430-c.c : Likewise.
8944         * config/msp430/msp430.c : Likewise.
8945         * config/nds32/nds32-cost.c : Likewise.
8946         * config/nds32/nds32-fp-as-gp.c : Likewise.
8947         * config/nds32/nds32-intrinsic.c : Likewise.
8948         * config/nds32/nds32-isr.c : Likewise.
8949         * config/nds32/nds32-md-auxiliary.c : Likewise.
8950         * config/nds32/nds32-memory-manipulation.c : Likewise.
8951         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
8952         * config/nds32/nds32-predicates.c : Likewise.
8953         * config/nds32/nds32.c : Likewise.
8954         * config/nios2/nios2.c : Likewise.
8955         * config/nvptx/nvptx.c : Likewise.
8956         * config/pa/pa.c : Likewise.
8957         * config/pdp11/pdp11.c : Likewise.
8958         * config/rl78/rl78-c.c : Likewise.
8959         * config/rl78/rl78.c : Likewise.
8960         * config/rs6000/rs6000-c.c : Likewise.
8961         * config/rs6000/rs6000.c : Likewise.
8962         * config/rx/rx.c : Likewise.
8963         * config/s390/s390-c.c : Likewise.
8964         * config/s390/s390.c : Likewise.
8965         * config/sh/sh-c.c : Likewise.
8966         * config/sh/sh-mem.cc : Likewise.
8967         * config/sh/sh.c : Likewise.
8968         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
8969         * config/sh/sh_treg_combine.cc : Likewise.
8970         * config/sol2-c.c : Likewise.
8971         * config/sol2-cxx.c : Likewise.
8972         * config/sol2-stubs.c : Likewise.
8973         * config/sol2.c : Likewise.
8974         * config/sparc/sparc-c.c : Likewise.
8975         * config/sparc/sparc.c : Likewise.
8976         * config/spu/spu-c.c : Likewise.
8977         * config/spu/spu.c : Likewise.
8978         * config/stormy16/stormy16.c : Likewise.
8979         * config/tilegx/mul-tables.c : Likewise.
8980         * config/tilegx/tilegx-c.c : Likewise.
8981         * config/tilegx/tilegx.c : Likewise.
8982         * config/tilepro/mul-tables.c : Likewise.
8983         * config/tilepro/tilepro-c.c : Likewise.
8984         * config/tilepro/tilepro.c : Likewise.
8985         * config/v850/v850-c.c : Likewise.
8986         * config/v850/v850.c : Likewise.
8987         * config/vax/vax.c : Likewise.
8988         * config/visium/visium.c : Likewise.
8989         * config/vms/vms-c.c : Likewise.
8990         * config/vms/vms.c : Likewise.
8991         * config/vxworks.c : Likewise.
8992         * config/winnt-c.c : Likewise.
8993         * config/xtensa/xtensa.c : Likewise.
8995 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
8997         PR lto/65378
8998         * ipa-utils.h (warn_types_mismatch): Update prototype.
8999         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9000         parameters.
9001         (type_mismatch_p): New function.
9002         (warn_types_mismatch): Reorg to work better on non-C++ types.
9003         (odr_types_equivalent_p): Add loc1/loc2 parameters.
9004         (add_type_duplicate): Update.
9006 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9008         PR rtl-optimization/66444
9009         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9010         call_used_regs.
9012 2015-06-08  Richard Biener  <rguenther@suse.de>
9014         PR tree-optimization/66422
9015         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9016         block after inserted gcc_unreachable.
9018 2015-06-08  Nick Clifton  <nickc@redhat.com>
9020         * config/rx/rx.c (rx_function_value): Do not promote vector types.
9021         (rx_promote_function_mode): Likewise.
9022         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9024 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
9026         * genattrtab.c (insn_alternatives): Change type from int *
9027         to uint64_t *.
9028         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9029         (get_attr_value): Change type of num_alt to uint64_t.
9030         (compute_alternative_mask): Change return type from
9031         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9032         (make_alternative_compare, mk_attr_alt): Change argument type
9033         from int to uint64_t.
9034         (simplify_test_exp): Change type of i from int to uint64_t.
9035         Shift ((uint64_t) 1) instead of 1 up.
9036         (main): Adjust oballocvec first argument from int to uint64_t.
9037         Shift ((uint64_t) 1) instead of 1 up.
9039 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9041         PR other/65366
9042         * gdbhooks.py: Import sys.
9043         (intptr): New function.  Replace int(...) by intptr(...).
9045 2015-06-08  Richard Biener  <rguenther@suse.de>
9047         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9048         adjustment for gaps at the end of a SLP load group properly.
9049         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9050         all permutations we can generate.
9051         (vect_transform_slp_perm_load): Use the correct group-size.
9053 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
9055         * genmatch.c (expr::gen_transform): For conditions, guess the type
9056         from the second operand.
9058 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9060         PR tree-optimization/66442
9061         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9062         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9063         if the loop latch is not a singleton.  Use
9064         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9066 2015-06-08  Marek Polacek  <polacek@redhat.com>
9068         PR sanitizer/66452
9069         * toplev.c (check_global_declaration): Don't warn about artificial
9070         decls.
9072 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9074         PR tree-optimization/66436
9075         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9076         dump file.
9077         * gimplify.c: Add tree-dump.h include.
9078         (gimplify_function_tree): Dump function to gimple dump file.
9079         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9080         dump file.
9082 2015-06-08  Tom de Vries  <tom@codesourcery.com>
9084         PR tree-optimization/66435
9085         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9086         function.
9088 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
9090         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9091         of ptr_type_node to not be ptr_to_node.
9092         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9093         TREE_TYPE of pointers.
9094         * gimple-expr.c (useless_type_conversion): Reorder the check for
9095         function pointers and TYPE_CANONICAL.
9097 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
9099         PR bootstrap/66319
9100         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9101         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9102         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9103         later.
9104         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9105         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9106         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9107         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9108         and non iso if unix2003.
9110 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
9112         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9114 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
9116         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9117         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9118         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9119         except.c, final.c, function.c, gcse-common.c, genemit.c,
9120         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9121         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9122         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9123         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9124         more derived ones.
9126 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
9128         * combine.c (combine_split_insns): Remove cast.
9129         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9130         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9131         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9132         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9133         * genemit.c (gen_split): Change return type of generated functions to
9134         rtx_insn.
9135         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9136         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9137         gen_peephole2_* functions.
9138         (print_subroutine, main): Likewise.
9139         * recog.c (peephole2_optimize): Remove cast.
9140         (peep2_next_insn): Promote return type to rtx_insn.
9141         * recog.h (peep2_next_insn): Fix prototype.
9142         * rtl.h (try_split, split_insns): Likewise.
9144 2015-06-06  DJ Delorie  <dj@redhat.com>
9146         * config/msp430/msp430.c (msp430_asm_integer): Support addition
9147         and subtraction too.
9149 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9151         PR target/66410
9152         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9153         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9154         instead of Snd.  Disparage Sid/z alternative with '^'.
9156 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
9158         * dwarf2out.c: Remove deferred_locations*.
9159         (dwarf2_debug_hooks): Add early_finish hook.
9160         Remove global_decl hook.
9161         Add early_global_decl and late_global_decl hook.
9162         New global early_dwarf.
9163         New structure set_early_dwarf.
9164         (output_die): Indicate whether a DIE was generated early
9165         when generating assembly with -dA.
9166         (struct limbo_die_struct): Document created_for field.
9167         Remove file_table_last_lookup.
9168         (remove_AT): Return TRUE if successful.
9169         (remove_child_TAG): Clear die_parent.
9170         (reparent_child): New function abstracted from...
9171         (splice_child_die): ...here.
9172         (new_die): ICE if a DIE ends up in limbo too late.
9173         (check_die): New.
9174         (defer_location): Remove.
9175         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9176         (fill_variable_array_bounds): New.
9177         (decl_start_label): Call fill_variable_array_bounds.
9178         (gen_formal_parameter_die): Rewrite to reuse previously generated
9179         DIEs.
9180         (gen_subprogram_die): Same.
9181         (gen_variable_die): Same.
9182         (gen_const_die): Same.
9183         (gen_label_die): Same.
9184         (gen_lexical_block_die): Same.
9185         (decl_will_get_specification_p): New.
9186         (local_function_static): New.
9187         (gen_struct_or_union_type_die): Fill in variable-length fields.
9188         (gen_typedef_die): Fill in variable-length typedefs.
9189         (gen_tagged_type_die): Gracefully return on error_mark_node.
9190         Handle re-entrancy.
9191         (gen_type_die_with_usage): Handle variable-length types.
9192         Remove duplicate code for ARRAY_TYPE case.
9193         (process_scope_var): Only process imported modules during early
9194         dwarf.
9195         (dwarf2out_early_global_decl): New.
9196         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9197         (dwarf2out_type_decl): Set early_dwarf while calling
9198         dwarf2out_decl.
9199         (dwarf2out_decl): Verify that we did not recreate a previously
9200         generated DIE.
9201         Do not return on DECL_EXTERNALs in VAR_DECLs.
9202         Abstract some code to local_function_static.
9203         (lookup_filename): Remove use of file_table_last_lookup.
9204         Gracefully exit on missing file_name.
9205         (dwarf2out_finish): Verify limbo list.
9206         Remove deferred_locations_list use.
9207         Move deferred_asm_name and limbo flushing to...
9208         (dwarf2out_early_finish): ...here.  New.
9209         (dwarf2out_c_finalize): Remove set of deferred_location_list,
9210         deferred_asm_name, and file_table_last_lookup.
9211         * cgraph.h (referred_to_p): Add default argument.
9212         * cgraphunit.c (referred_to_p): Add and handle include_self
9213         argument.
9214         (analyze_functions): Add first_time argument.
9215         Call check_global_declaration for all symbols.
9216         Call late_global_decl for nodes for moribund nodes.
9217         (finalize_compilation_unit): Add new argument to
9218         analyze_functions.
9219         Call early_global_decl for functions.
9220         Call early_finish debug hook.
9221         * dbxout.c (dbxout_early_global_decl): New.
9222         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
9223         (dbx_debug_hooks): Add new hooks.
9224         (xcoff_debug_hooks): Same.
9225         * debug.c (do_nothing_debug_hooks): Add early_finish field.
9226         Add early and late debug hooks.
9227         Remove global_decl hook.
9228         * debug.h (struct gcc_debug_hooks): Add early_finish,
9229         early_global_decl, and late_global_decl fields.
9230         Remove global_decl field.
9231         Document gcc_debug_hooks.
9232         * gengtype.c (output_typename): Remove.
9233         * godump.c (go_early_global_decl): New.
9234         (go_late_global_decl): New.
9235         (go_global_decl): Remove.
9236         (dump_go_spec_init): Remove global_decl.  Add
9237         {early,late}_global_decl.
9238         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9239         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9240         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9241         (write_global_declarations): Remove.
9242         (global_decl_processing): New.
9243         * langhooks.h (struct lang_hooks_for_decls): Remove
9244         final_write_globals field.
9245         Add post_compilation_parsing_cleanups field.
9246         * passes.c (rest_of_decl_compilation): Call early_global_decl.
9247         * sdbout.c: Add early and late_global_decl hooks.  Remove
9248         sdbout_global_decl hook.
9249         Add early_finish field for sdb_debug_hooks.
9250         (sdbout_global_decl): Remove.
9251         (sdbout_early_global_decl): New.
9252         (sdbout_late_global_decl): New.
9253         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9254         * toplev.c (check_global_declaration): Rename from
9255         check_global_declaration_1.
9256         Adapt to use symtab infrastructure.
9257         (check_global_declarations): Remove.
9258         (emit_debug_global_declarations): Remove.
9259         (compile_file): Remove call to final_write_globals langhook.
9260         Run the actual compilation process.
9261         Perform any post compilation parser cleanups.
9262         Generate late debug info.
9263         * toplev.h (check_global_declaration): New.
9264         (check_global_declaration_1): Remove.
9265         (check_global_declarations): Remove.
9266         (write_global_declarations): Remove.
9267         (emit_debug_global_declarations): Remove.
9268         (global_decl_processing): New.
9269         * tree-core.h (struct tree_block): Add DIE field.
9270         * tree.h (BLOCK_DIE): New.
9271         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9272         throughout.
9273         (vmsdbgout_early_global_decl): New.
9274         (vmsdbgout_late_global_decl): New.
9275         Add early_finish debug hook field to vmsdbg_debug_hooks.
9276         Remove vmsdbgout_decl to vmsdbgout_function_decl.
9277         Add early and late_global_decl debug hooks.
9279 2015-06-05  Julian Brown  <julian@codesourcery.com>
9280             Sandra Loosemore  <sandra@codesourcery.com>
9282         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9283         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9284         to print-sysroot-suffix.sh script.
9286 2015-06-05  Tom de Vries  <tom@codesourcery.com>
9288         merge from gomp4 branch:
9289         2015-05-28  Tom de Vries  <tom@codesourcery.com>
9291         PR tree-optimization/65443
9292         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9293         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9294         (try_transform_to_exit_first_loop_alt): New function.
9295         (transform_to_exit_first_loop): Use
9296         try_transform_to_exit_first_loop_alt.
9298 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
9300         * builtins.c (expand_builtin_atomic_compare_exchange): Call
9301         emit_cmp_and_jump_insns with the mode of target.
9303 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
9305         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9307 2015-06-04  DJ Delorie  <dj@redhat.com>
9309         * config/msp430/msp430.md (movsi_s): New.  Special case for
9310         storing a 20-bit symbol into a 32-bit register.
9311         * config/msp430/msp430.c (msp430_subreg): Add support for it.
9312         * config/msp430/predicates.md (msp430_symbol_operand): New.
9314 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
9316         * c-family/c-common.c (noplt): New attribute.
9317         (handle_noplt_attribute): New handler.
9318         * calls.c (prepare_call_address): Check for noplt
9319         attribute.
9320         * config/i386/i386.c (ix86_expand_call): Check
9321         for noplt attribute.
9322         (ix86_nopic_noplt_attribute_p): New function.
9323         (ix86_output_call_insn): Output indirect call for non-pic
9324         no plt calls.
9325         * doc/extend.texi (noplt): Document new attribute.
9326         * doc/invoke.texi: Document new attribute.
9328 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
9330         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9331         real.h, and fixed-value.h when included in host source files.
9332         * double-int.h: Remove redundant #includes listed above.
9333         * fixed-value.h: Likewise.
9334         * real.h: Likewise.
9335         * wide-int.h: Likewise.
9336         * inchash.h: Likewise.
9337         * rtl.h: Add some include files When included from a generator file.
9338         * target.h: Remove wide-int.h and insn-modes.h from the include list.
9339         * internal-fn.h: Don't include coretypes.h.
9340         * alias.c: Adjust includes for restructured coretypes.h.
9341         * asan.c: Likewise.
9342         * attribs.c: Likewise.
9343         * auto-inc-dec.c: Likewise.
9344         * auto-profile.c: Likewise.
9345         * bb-reorder.c: Likewise.
9346         * bt-load.c: Likewise.
9347         * builtins.c: Likewise.
9348         * caller-save.c: Likewise.
9349         * calls.c: Likewise.
9350         * ccmp.c: Likewise.
9351         * cfg.c: Likewise.
9352         * cfganal.c: Likewise.
9353         * cfgbuild.c: Likewise.
9354         * cfgcleanup.c: Likewise.
9355         * cfgexpand.c: Likewise.
9356         * cfghooks.c: Likewise.
9357         * cfgloop.c: Likewise.
9358         * cfgloop.h: Likewise.
9359         * cfgloopanal.c: Likewise.
9360         * cfgloopmanip.c: Likewise.
9361         * cfgrtl.c: Likewise.
9362         * cgraph.c: Likewise.
9363         * cgraphbuild.c: Likewise.
9364         * cgraphclones.c: Likewise.
9365         * cgraphunit.c: Likewise.
9366         * cilk-common.c: Likewise.
9367         * combine-stack-adj.c: Likewise.
9368         * combine.c: Likewise.
9369         * compare-elim.c: Likewise.
9370         * convert.c: Likewise.
9371         * coverage.c: Likewise.
9372         * cppbuiltin.c: Likewise.
9373         * cprop.c: Likewise.
9374         * cse.c: Likewise.
9375         * cselib.c: Likewise.
9376         * data-streamer-in.c: Likewise.
9377         * data-streamer-out.c: Likewise.
9378         * data-streamer.c: Likewise.
9379         * dbxout.c: Likewise.
9380         * dce.c: Likewise.
9381         * ddg.c: Likewise.
9382         * debug.c: Likewise.
9383         * df-core.c: Likewise.
9384         * df-problems.c: Likewise.
9385         * df-scan.c: Likewise.
9386         * df.h: Likewise.
9387         * dfp.c: Likewise.
9388         * dojump.c: Likewise.
9389         * dominance.c: Likewise.
9390         * domwalk.c: Likewise.
9391         * double-int.c: Likewise.
9392         * dse.c: Likewise.
9393         * dumpfile.c: Likewise.
9394         * dwarf2asm.c: Likewise.
9395         * dwarf2cfi.c: Likewise.
9396         * dwarf2out.c: Likewise.
9397         * dwarf2out.h: Likewise.
9398         * emit-rtl.c: Likewise.
9399         * et-forest.c: Likewise.
9400         * except.c: Likewise.
9401         * explow.c: Likewise.
9402         * expmed.c: Likewise.
9403         * expr.c: Likewise.
9404         * final.c: Likewise.
9405         * fixed-value.c: Likewise.
9406         * fold-const.c: Likewise.
9407         * function.c: Likewise.
9408         * fwprop.c: Likewise.
9409         * gcc-plugin.h: Likewise.
9410         * gcse.c: Likewise.
9411         * generic-match-head.c: Likewise.
9412         * ggc-page.c: Likewise.
9413         * gimple-builder.c: Likewise.
9414         * gimple-expr.c: Likewise.
9415         * gimple-fold.c: Likewise.
9416         * gimple-iterator.c: Likewise.
9417         * gimple-low.c: Likewise.
9418         * gimple-match-head.c: Likewise.
9419         * gimple-pretty-print.c: Likewise.
9420         * gimple-ssa-isolate-paths.c: Likewise.
9421         * gimple-ssa-strength-reduction.c: Likewise.
9422         * gimple-streamer-in.c: Likewise.
9423         * gimple-streamer-out.c: Likewise.
9424         * gimple-streamer.h: Likewise.
9425         * gimple-walk.c: Likewise.
9426         * gimple.c: Likewise.
9427         * gimplify-me.c: Likewise.
9428         * gimplify.c: Likewise.
9429         * godump.c: Likewise.
9430         * graph.c: Likewise.
9431         * graphite-blocking.c: Likewise.
9432         * graphite-dependences.c: Likewise.
9433         * graphite-interchange.c: Likewise.
9434         * graphite-isl-ast-to-gimple.c: Likewise.
9435         * graphite-optimize-isl.c: Likewise.
9436         * graphite-poly.c: Likewise.
9437         * graphite-scop-detection.c: Likewise.
9438         * graphite-sese-to-poly.c: Likewise.
9439         * graphite.c: Likewise.
9440         * haifa-sched.c: Likewise.
9441         * hooks.h: Likewise.
9442         * hw-doloop.c: Likewise.
9443         * ifcvt.c: Likewise.
9444         * incpath.c: Likewise.
9445         * init-regs.c: Likewise.
9446         * internal-fn.c: Likewise.
9447         * ipa-chkp.c: Likewise.
9448         * ipa-comdats.c: Likewise.
9449         * ipa-cp.c: Likewise.
9450         * ipa-devirt.c: Likewise.
9451         * ipa-icf-gimple.c: Likewise.
9452         * ipa-icf.c: Likewise.
9453         * ipa-inline-analysis.c: Likewise.
9454         * ipa-inline-transform.c: Likewise.
9455         * ipa-inline.c: Likewise.
9456         * ipa-polymorphic-call.c: Likewise.
9457         * ipa-profile.c: Likewise.
9458         * ipa-prop.c: Likewise.
9459         * ipa-pure-const.c: Likewise.
9460         * ipa-ref.c: Likewise.
9461         * ipa-reference.c: Likewise.
9462         * ipa-split.c: Likewise.
9463         * ipa-utils.c: Likewise.
9464         * ipa-visibility.c: Likewise.
9465         * ipa.c: Likewise.
9466         * ira-build.c: Likewise.
9467         * ira-color.c: Likewise.
9468         * ira-conflicts.c: Likewise.
9469         * ira-costs.c: Likewise.
9470         * ira-emit.c: Likewise.
9471         * ira-lives.c: Likewise.
9472         * ira.c: Likewise.
9473         * jump.c: Likewise.
9474         * langhooks.c: Likewise.
9475         * lcm.c: Likewise.
9476         * loop-doloop.c: Likewise.
9477         * loop-init.c: Likewise.
9478         * loop-invariant.c: Likewise.
9479         * loop-iv.c: Likewise.
9480         * loop-unroll.c: Likewise.
9481         * lower-subreg.c: Likewise.
9482         * lra-assigns.c: Likewise.
9483         * lra-coalesce.c: Likewise.
9484         * lra-constraints.c: Likewise.
9485         * lra-eliminations.c: Likewise.
9486         * lra-lives.c: Likewise.
9487         * lra-remat.c: Likewise.
9488         * lra-spills.c: Likewise.
9489         * lra.c: Likewise.
9490         * lto-cgraph.c: Likewise.
9491         * lto-compress.c: Likewise.
9492         * lto-opts.c: Likewise.
9493         * lto-section-in.c: Likewise.
9494         * lto-section-out.c: Likewise.
9495         * lto-streamer-in.c: Likewise.
9496         * lto-streamer-out.c: Likewise.
9497         * lto-streamer.c: Likewise.
9498         * mcf.c: Likewise.
9499         * mode-switching.c: Likewise.
9500         * modulo-sched.c: Likewise.
9501         * omega.c: Likewise.
9502         * omp-low.c: Likewise.
9503         * optabs.c: Likewise.
9504         * opts-global.c: Likewise.
9505         * passes.c: Likewise.
9506         * plugin.c: Likewise.
9507         * postreload-gcse.c: Likewise.
9508         * postreload.c: Likewise.
9509         * predict.c: Likewise.
9510         * print-rtl.c: Likewise.
9511         * print-tree.c: Likewise.
9512         * profile.c: Likewise.
9513         * real.c: Likewise.
9514         * realmpfr.c: Likewise.
9515         * realmpfr.h: Likewise.
9516         * recog.c: Likewise.
9517         * ree.c: Likewise.
9518         * reg-stack.c: Likewise.
9519         * regcprop.c: Likewise.
9520         * reginfo.c: Likewise.
9521         * regrename.c: Likewise.
9522         * regs.h: Likewise.
9523         * regstat.c: Likewise.
9524         * reload.c: Likewise.
9525         * reload1.c: Likewise.
9526         * reorg.c: Likewise.
9527         * resource.c: Likewise.
9528         * rtl-chkp.c: Likewise.
9529         * rtlanal.c: Likewise.
9530         * rtlhooks.c: Likewise.
9531         * sanopt.c: Likewise.
9532         * sched-deps.c: Likewise.
9533         * sched-ebb.c: Likewise.
9534         * sched-rgn.c: Likewise.
9535         * sched-vis.c: Likewise.
9536         * sdbout.c: Likewise.
9537         * sel-sched-dump.c: Likewise.
9538         * sel-sched-ir.c: Likewise.
9539         * sel-sched.c: Likewise.
9540         * sese.c: Likewise.
9541         * shrink-wrap.c: Likewise.
9542         * shrink-wrap.h: Likewise.
9543         * simplify-rtx.c: Likewise.
9544         * stack-ptr-mod.c: Likewise.
9545         * statistics.c: Likewise.
9546         * stmt.c: Likewise.
9547         * stor-layout.c: Likewise.
9548         * store-motion.c: Likewise.
9549         * stringpool.c: Likewise.
9550         * symtab.c: Likewise.
9551         * target-globals.c: Likewise.
9552         * targhooks.c: Likewise.
9553         * toplev.c: Likewise.
9554         * tracer.c: Likewise.
9555         * trans-mem.c: Likewise.
9556         * tree-affine.c: Likewise.
9557         * tree-affine.h: Likewise.
9558         * tree-browser.c: Likewise.
9559         * tree-call-cdce.c: Likewise.
9560         * tree-cfg.c: Likewise.
9561         * tree-cfgcleanup.c: Likewise.
9562         * tree-chkp-opt.c: Likewise.
9563         * tree-chkp.c: Likewise.
9564         * tree-chrec.c: Likewise.
9565         * tree-complex.c: Likewise.
9566         * tree-data-ref.c: Likewise.
9567         * tree-dfa.c: Likewise.
9568         * tree-diagnostic.c: Likewise.
9569         * tree-dump.c: Likewise.
9570         * tree-eh.c: Likewise.
9571         * tree-emutls.c: Likewise.
9572         * tree-if-conv.c: Likewise.
9573         * tree-inline.c: Likewise.
9574         * tree-into-ssa.c: Likewise.
9575         * tree-iterator.c: Likewise.
9576         * tree-loop-distribution.c: Likewise.
9577         * tree-nested.c: Likewise.
9578         * tree-nrv.c: Likewise.
9579         * tree-object-size.c: Likewise.
9580         * tree-outof-ssa.c: Likewise.
9581         * tree-parloops.c: Likewise.
9582         * tree-phinodes.c: Likewise.
9583         * tree-predcom.c: Likewise.
9584         * tree-pretty-print.c: Likewise.
9585         * tree-pretty-print.h: Likewise.
9586         * tree-profile.c: Likewise.
9587         * tree-scalar-evolution.c: Likewise.
9588         * tree-sra.c: Likewise.
9589         * tree-ssa-address.c: Likewise.
9590         * tree-ssa-alias.c: Likewise.
9591         * tree-ssa-ccp.c: Likewise.
9592         * tree-ssa-coalesce.c: Likewise.
9593         * tree-ssa-copy.c: Likewise.
9594         * tree-ssa-copyrename.c: Likewise.
9595         * tree-ssa-dce.c: Likewise.
9596         * tree-ssa-dom.c: Likewise.
9597         * tree-ssa-dse.c: Likewise.
9598         * tree-ssa-forwprop.c: Likewise.
9599         * tree-ssa-ifcombine.c: Likewise.
9600         * tree-ssa-live.c: Likewise.
9601         * tree-ssa-loop-ch.c: Likewise.
9602         * tree-ssa-loop-im.c: Likewise.
9603         * tree-ssa-loop-ivcanon.c: Likewise.
9604         * tree-ssa-loop-ivopts.c: Likewise.
9605         * tree-ssa-loop-manip.c: Likewise.
9606         * tree-ssa-loop-niter.c: Likewise.
9607         * tree-ssa-loop-prefetch.c: Likewise.
9608         * tree-ssa-loop-unswitch.c: Likewise.
9609         * tree-ssa-loop.c: Likewise.
9610         * tree-ssa-loop.h: Likewise.
9611         * tree-ssa-math-opts.c: Likewise.
9612         * tree-ssa-operands.c: Likewise.
9613         * tree-ssa-phiopt.c: Likewise.
9614         * tree-ssa-phiprop.c: Likewise.
9615         * tree-ssa-pre.c: Likewise.
9616         * tree-ssa-propagate.c: Likewise.
9617         * tree-ssa-reassoc.c: Likewise.
9618         * tree-ssa-sccvn.c: Likewise.
9619         * tree-ssa-scopedtables.c: Likewise.
9620         * tree-ssa-sink.c: Likewise.
9621         * tree-ssa-strlen.c: Likewise.
9622         * tree-ssa-structalias.c: Likewise.
9623         * tree-ssa-tail-merge.c: Likewise.
9624         * tree-ssa-ter.c: Likewise.
9625         * tree-ssa-threadedge.c: Likewise.
9626         * tree-ssa-threadupdate.c: Likewise.
9627         * tree-ssa-uncprop.c: Likewise.
9628         * tree-ssa-uninit.c: Likewise.
9629         * tree-ssa.c: Likewise.
9630         * tree-ssanames.c: Likewise.
9631         * tree-stdarg.c: Likewise.
9632         * tree-streamer-in.c: Likewise.
9633         * tree-streamer-out.c: Likewise.
9634         * tree-streamer.c: Likewise.
9635         * tree-switch-conversion.c: Likewise.
9636         * tree-tailcall.c: Likewise.
9637         * tree-vect-data-refs.c: Likewise.
9638         * tree-vect-generic.c: Likewise.
9639         * tree-vect-loop-manip.c: Likewise.
9640         * tree-vect-loop.c: Likewise.
9641         * tree-vect-patterns.c: Likewise.
9642         * tree-vect-slp.c: Likewise.
9643         * tree-vect-stmts.c: Likewise.
9644         * tree-vectorizer.c: Likewise.
9645         * tree-vrp.c: Likewise.
9646         * tree.c: Likewise.
9647         * tsan.c: Likewise.
9648         * ubsan.c: Likewise.
9649         * valtrack.c: Likewise.
9650         * value-prof.c: Likewise.
9651         * var-tracking.c: Likewise.
9652         * varasm.c: Likewise.
9653         * varpool.c: Likewise.
9654         * vmsdbgout.c: Likewise.
9655         * vtable-verify.c: Likewise.
9656         * web.c: Likewise.
9657         * wide-int-print.cc: Likewise.
9658         * wide-int-print.h: Likewise.
9659         * wide-int.cc: Likewise.
9660         * xcoffout.c: Likewise.
9661         * config/aarch64/aarch64-builtins.c: Likewise.
9662         * config/aarch64/aarch64.c: Likewise.
9663         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9664         * config/alpha/alpha.c: Likewise.
9665         * config/arc/arc.c: Likewise.
9666         * config/arm/aarch-common.c: Likewise.
9667         * config/arm/arm-builtins.c: Likewise.
9668         * config/arm/arm-c.c: Likewise.
9669         * config/arm/arm.c: Likewise.
9670         * config/avr/avr-c.c: Likewise.
9671         * config/avr/avr-log.c: Likewise.
9672         * config/avr/avr.c: Likewise.
9673         * config/bfin/bfin.c: Likewise.
9674         * config/c6x/c6x.c: Likewise.
9675         * config/cr16/cr16.c: Likewise.
9676         * config/cris/cris.c: Likewise.
9677         * config/darwin-c.c: Likewise.
9678         * config/darwin.c: Likewise.
9679         * config/default-c.c: Likewise.
9680         * config/epiphany/epiphany.c: Likewise.
9681         * config/epiphany/mode-switch-use.c: Likewise.
9682         * config/epiphany/resolve-sw-modes.c: Likewise.
9683         * config/fr30/fr30.c: Likewise.
9684         * config/frv/frv.c: Likewise.
9685         * config/ft32/ft32.c: Likewise.
9686         * config/glibc-c.c: Likewise.
9687         * config/h8300/h8300.c: Likewise.
9688         * config/i386/i386-c.c: Likewise.
9689         * config/i386/i386.c: Likewise.
9690         * config/i386/msformat-c.c: Likewise.
9691         * config/i386/winnt-cxx.c: Likewise.
9692         * config/i386/winnt-stubs.c: Likewise.
9693         * config/i386/winnt.c: Likewise.
9694         * config/ia64/ia64-c.c: Likewise.
9695         * config/ia64/ia64.c: Likewise.
9696         * config/iq2000/iq2000.c: Likewise.
9697         * config/lm32/lm32.c: Likewise.
9698         * config/m32c/m32c-pragma.c: Likewise.
9699         * config/m32c/m32c.c: Likewise.
9700         * config/m32r/m32r.c: Likewise.
9701         * config/m68k/m68k.c: Likewise.
9702         * config/mcore/mcore.c: Likewise.
9703         * config/mep/mep-pragma.c: Likewise.
9704         * config/mep/mep.c: Likewise.
9705         * config/microblaze/microblaze-c.c: Likewise.
9706         * config/microblaze/microblaze.c: Likewise.
9707         * config/mips/mips.c: Likewise.
9708         * config/mmix/mmix.c: Likewise.
9709         * config/mn10300/mn10300.c: Likewise.
9710         * config/moxie/moxie.c: Likewise.
9711         * config/msp430/msp430-c.c: Likewise.
9712         * config/msp430/msp430.c: Likewise.
9713         * config/nds32/nds32-cost.c: Likewise.
9714         * config/nds32/nds32-fp-as-gp.c: Likewise.
9715         * config/nds32/nds32-intrinsic.c: Likewise.
9716         * config/nds32/nds32-isr.c: Likewise.
9717         * config/nds32/nds32-md-auxiliary.c: Likewise.
9718         * config/nds32/nds32-memory-manipulation.c: Likewise.
9719         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9720         * config/nds32/nds32-predicates.c: Likewise.
9721         * config/nds32/nds32.c: Likewise.
9722         * config/nios2/nios2.c: Likewise.
9723         * config/nvptx/nvptx.c: Likewise.
9724         * config/pa/pa.c: Likewise.
9725         * config/pdp11/pdp11.c: Likewise.
9726         * config/rl78/rl78-c.c: Likewise.
9727         * config/rl78/rl78.c: Likewise.
9728         * config/rs6000/rs6000-c.c: Likewise.
9729         * config/rs6000/rs6000.c: Likewise.
9730         * config/rx/rx.c: Likewise.
9731         * config/s390/s390-c.c: Likewise.
9732         * config/s390/s390.c: Likewise.
9733         * config/sh/sh-c.c: Likewise.
9734         * config/sh/sh-mem.cc: Likewise.
9735         * config/sh/sh.c: Likewise.
9736         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9737         * config/sh/sh_treg_combine.cc: Likewise.
9738         * config/sol2-c.c: Likewise.
9739         * config/sol2-cxx.c: Likewise.
9740         * config/sol2-stubs.c: Likewise.
9741         * config/sol2.c: Likewise.
9742         * config/sparc/sparc-c.c: Likewise.
9743         * config/sparc/sparc.c: Likewise.
9744         * config/spu/spu-c.c: Likewise.
9745         * config/spu/spu.c: Likewise.
9746         * config/stormy16/stormy16.c: Likewise.
9747         * config/tilegx/mul-tables.c: Likewise.
9748         * config/tilegx/tilegx-c.c: Likewise.
9749         * config/tilegx/tilegx.c: Likewise.
9750         * config/tilepro/mul-tables.c: Likewise.
9751         * config/tilepro/tilepro-c.c: Likewise.
9752         * config/tilepro/tilepro.c: Likewise.
9753         * config/v850/v850-c.c: Likewise.
9754         * config/v850/v850.c: Likewise.
9755         * config/vax/vax.c: Likewise.
9756         * config/visium/visium.c: Likewise.
9757         * config/vms/vms-c.c: Likewise.
9758         * config/vms/vms.c: Likewise.
9759         * config/vxworks.c: Likewise.
9760         * config/winnt-c.c: Likewise.
9761         * config/xtensa/xtensa.c: Likewise.
9762         * common/config/bfin/bfin-common.c: Likewise.
9764 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
9766         * tree.h (tree_code_for_canonical_type_merging): New function.
9767         * tree.c (gimple_canonical_types_compatible_p): Use
9768         tree_code_for_canonical_type_merging..
9770 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9772         PR c++/66192
9773         PR target/66200
9774         * doc/tm.texi: Regenerate.
9775         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
9776         * target.def (TARGET_RELAXED_ORDERING): Likewise.
9777         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
9778         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
9779         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
9780         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
9781         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
9782         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
9783         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
9785 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9787         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
9788         register fma steering pass.
9789         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
9790         AARCH64_TUNE_FMA_STEERING.
9792 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
9794         * tree.c (verify_type_variant): Verify that type and variant is
9795         compatible.
9796         (gimple_canonical_types_compatible_p): Look for main variants.
9798 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
9800         * config.gcc (powerpc*-*-*): Add support for a new configure
9801         option --with-advance-toolchain=<xxx> which overrides using the
9802         default header files, libraries and dynamic linker.
9804         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
9805         specs to support the configure --with-advance-toolchain=<xxx>
9806         option.
9807         (INCLUDE_EXTRA_SPEC): Likewise.
9808         (LINK_OS_EXTRA_SPEC32): Likewise.
9809         (LINK_OK_EXTRA_SPEC64): Likewise.
9810         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
9811         (DYNAMIC_LINKER_PREFIX): Likewise.
9812         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
9813         toolchain support.
9814         (GLIBC_DYNAMIC_LINKER32): Likewise.
9815         (GLIBC_DYNAMIC_LINKER64): Likewise.
9816         (LINK_OS_LINUX_SPEC32): Likewise.
9817         (LINK_OS_LINUX_SPEC64): Likewise.
9819         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
9820         configuration option.
9822 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
9824         PR target/66275
9825         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
9826         to determine current function ABI.
9827         (ix86_function_value_regno_p): Ditto.
9829 2015-06-03  Martin Liska  <mliska@suse.cz>
9831         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
9832         * bitmap.h (struct bitmap_usage): Likewise.
9833         * ggc-common.c (struct ggc_usage): Likewise.
9834         * mem-stats.h (struct mem_location): Likewise.
9835         (struct mem_usage): Likewise.
9836         * vec.c (struct vec_usage): Likewise.
9838 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
9840         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
9841         -Bsymbolic.
9843 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
9845         * doc/plugins.texi (enum plugin_event): New event.
9846         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
9847         and PLUGIN_FINISH_FUNCTION.
9848         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
9849         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
9851 2015-06-03  Richard Biener  <rguenther@suse.de>
9853         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9854         compute GROUP_GAP for the first element.
9855         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
9856         on in-group gaps.
9858 2015-06-03  Nick Clifton  <nickc@redhat.com>
9860         * config/rl78/rl78-real.md: Add peepholes to avoid a register
9861         copy when calling a function.
9862         * config/rl78/rl78.c (need_to_save): Do not push the frame
9863         pointer in an interrupt handler prologue if it is never used.
9865 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9867         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
9869 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
9871         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
9872         reference when cloning alias node.
9874 2015-06-03  Martin Liska  <mliska@suse.cz>
9876         * alloc-pool.h (struct pool_usage): Correct space padding.
9877         * ggc-page.c (ggc_print_statistics): Align columns in a report.
9878         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
9879         * tree.c (dump_tree_statistics): Align columns in a report.
9881 2015-06-03  Martin Liska  <mliska@suse.cz>
9883         * alloc-pool.c (allocate_pool_descriptor): Remove.
9884         (struct pool_output_info): Likewise.
9885         (print_alloc_pool_statistics): Likewise.
9886         (dump_alloc_pool_statistics): Likewise.
9887         * alloc-pool.h (struct pool_usage): New struct.
9888         (pool_allocator::initialize): Change usage of memory statistics
9889         to a new interface.
9890         (pool_allocator::release): Likewise.
9891         (pool_allocator::allocate): Likewise.
9892         (pool_allocator::remove): Likewise.
9893         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
9894         for a pool allocator.
9895         * mem-stats.h (struct mem_location): Add new ctor.
9896         (struct mem_usage): Add counter for number of
9897         instances.
9898         (mem_alloc_description::register_descriptor): New overload of
9899         * mem-stats.h (mem_location::to_string): New function.
9900         * bitmap.h (struct bitmap_usage): Use this new function.
9901         * ggc-common.c (struct ggc_usage): Likewise.
9902         the function.
9904 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
9906         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
9907         of GCC_INSN_FLAGS_H block.
9909 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
9911         * explow.c (plus_constant): Update check after force_const_mem call
9912         to see if the value returned is not a NULL_RTX.
9914 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
9916         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
9917         remove instumentation thunks calling reachable functions.
9918         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
9919         * lto/lto-partition.c (privatize_symbol_name_1): New.
9920         (privatize_symbol_name): Privatize both decl and orig_decl
9921         names for instrumented functions.
9922         * cgraph.c (cgraph_node::verify_node): Add transparent
9923         alias chain check for instrumented node.
9925 2015-06-03  Marek Polacek  <polacek@redhat.com>
9927         PR c/64223
9928         PR c/29358
9929         * tree.c (attribute_value_equal): Handle attribute format.
9930         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
9932 2015-06-03  Richard Biener  <rguenther@suse.de>
9934         PR tree-optimization/63916
9935         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9936         Forward-propagate non-invariant addresses by splicing their
9937         reference ops if the result isn't going to be used by PRE.
9938         (vn_reference_lookup_3): Remove pointless assert.
9940 2015-06-03  Richard Biener  <rguenther@suse.de>
9942         PR tree-optimization/66375
9943         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
9944         add to the evolution before following SSA edges.
9946 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
9948         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
9949         (dump_use, dump_cand, find_induction_variables): Pass new argument
9950         to dump_iv.
9951         (record_use): Preserve the ssa name information in IV.
9953 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
9955         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
9956         NO_MODE_TEST.
9957         (add_mode_tests): Don't add mode tests if the predicate only
9958         accepts scalar constant integers.  Otherwise, allow the mode
9959         of "op" to be VOIDmode if the predicate does accept such integers.
9961 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
9963         PR target/66258
9964         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
9965         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
9966         (aarch64_secondary_reload): Likewise
9967         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
9968         to !TARGET_FLOAT.
9969         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
9970         Likewise.
9972 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
9973             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
9975         PR target/65768
9976         * cprop.c (try_replace_reg): Check cost of constants before propagating.
9978 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9980         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
9981         provide access to the IBM extended double floating point mode if
9982         long double is IEEE 128-bit floating point.
9983         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
9984         point if long double is the IBM extended double type.
9986         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
9987         enable adding IEEE 128-bit floating point support.
9988         (-mfloat128-software): Likewise.
9989         (-mfloat128-sw): Likewise.
9991         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
9992         128-bit floating point types to occupy any register if
9993         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
9994         -mfloat128-software is enabled.
9995         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
9996         support.
9997         (rs6000_option_override_internal): Add -mfloat128-* support.
9998         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10000         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10001         and float128 type nodes.
10002         (ieee128_float_type_node): Likewise.
10003         (ibm128_float_type_node): Likewise.
10005 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10007         PR target/66136
10008         * config/aarch64/geniterators.sh: Rewrite in awk.
10010 2015-06-02  Martin Liska  <mliska@suse.cz>
10012         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10013         values to avoid -Wmaybe-uninitialized errors.
10015 2015-06-02  Richard Biener  <rguenther@suse.de>
10017         PR debug/65549
10018         * dwarf2out.c (lookup_context_die): New function.
10019         (resolve_addr): Avoid forcing a full DIE for the
10020         target of a DW_TAG_GNU_call_site during late compilation.
10021         Instead create a stub DIE without a type if we have a
10022         context DIE present.
10024 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
10026         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10028 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10030         PR tree-optimization/48052
10031         * cfgloop.h (struct control_iv): New.
10032         (struct loop): New field control_ivs.
10033         * tree-ssa-loop-niter.c : Include "stor-layout.h".
10034         (number_of_iterations_lt): Set no_overflow information.
10035         (number_of_iterations_exit): Init control iv in niter struct.
10036         (record_control_iv): New.
10037         (estimate_numbers_of_iterations_loop): Call record_control_iv.
10038         (loop_exits_before_overflow): New.  Interface factored out of
10039         scev_probably_wraps_p.
10040         (scev_probably_wraps_p): Factor loop niter related code into
10041         loop_exits_before_overflow.
10042         (free_numbers_of_iterations_estimates_loop): Free control ivs.
10043         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10045 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
10047         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10048         the target doesn't belong to the current function.
10050 2015-06-02  Marek Polacek  <polacek@redhat.com>
10052         PR middle-end/66345
10053         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10054         get_maxval_strlen does not produce an INTEGER_CST.
10056 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
10058         * config/arc/constraints.md: Use lower-case names in match_code.
10059         * config/mmix/constraints.md: Likewise.
10061 2015-06-02  Richard Biener  <rguenther@suse.de>
10063         PR tree-optimization/65961
10064         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10065         check and clarify dump message.
10066         (vect_build_slp_tree): If all children are built up from scalars
10067         build up the parent from scalars instead.
10068         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10070 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10072         PR other/65366
10073         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
10074         instead of print ... .
10076 2015-06-02  Alan Modra  <amodra@gmail.com>
10078         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10079         2014-08-11 change.
10081 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
10083         PR tree-optimization/52563
10084         PR tree-optimization/62173
10085         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
10086         (alloc_iv, set_iv): New parameter.
10087         (determine_biv_step): Delete.
10088         (find_bivs): Inline original determine_biv_step.  Pass new
10089         argument to set_iv.
10090         (idx_find_step): Use no_overflow information for conversion.
10091         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10092         resolve_mixers handle folded_casts.
10093         (instantiate_scev_name): Change bool parameter to bool pointer.
10094         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10095         (instantiate_array_ref, instantiate_scev_not): Ditto.
10096         (instantiate_scev_3, instantiate_scev_2): Ditto.
10097         (instantiate_scev_1, instantiate_scev_r): Ditto.
10098         (instantiate_scev_convert, ): Change parameter.  Pass argument
10099         to chrec_convert_aggressive.
10100         (instantiate_scev): Change argument.
10101         (resolve_mixers): New parameter and set it.
10102         (scev_const_prop): New argument.
10103         * tree-scalar-evolution.h (resolve_mixers): New parameter.
10104         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10105         of chrec_conert_1.
10106         (chrec_convert): New parameter.  Move definition below.
10107         (chrec_convert_aggressive): New parameter and set it.  Call
10108         convert_affine_scev.
10109         * tree-chrec.h (chrec_convert): New parameter.
10110         (chrec_convert_aggressive): Ditto.
10112 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10114         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10115         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10116         the LHS of a no-return call if its type has variable size.
10117         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10118         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10120 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
10122         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10123         * config.in: Regenerate.
10125 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
10127         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10128         consecutive accesses within outer-loop with force_vectorize
10129         for references with zero step in inner-loop.
10131 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
10133         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10134         rather than from gcc/build directory.
10136 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
10138         PR target/65697
10139         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10140         for __sync memory models, emit initial loads and final barriers as
10141         appropriate.
10143 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
10145         PR target/65697
10146         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10147         (aarch64_split_atomic_op): Check for __sync memory models, emit
10148         appropriate initial loads and final barriers.
10150 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
10152         * Makefile.in: Fix gcov dependencies that should
10153         not point to a build folder.
10155 2015-06-01  Richard Biener  <rguenther@suse.de>
10157         Revert
10158         2015-05-29  Richard Biener  <rguenther@suse.de>
10160         PR tree-optimization/66314
10161         * tree-ssa-threadupdate.c (create_block_for_threading): Add
10162         parameter that says which loop the new block belongs to.
10163         (ssa_create_duplicates): Blocks duplicated for the threaded
10164         path belong to the loop of the thread destination.
10166 2015-06-01  Martin Liska  <mliska@suse.cz>
10168         * sched-deps.c: Include pool-alloc.h before
10169         cselib.h header file is included.
10171 2015-06-01  Richard Biener  <rguenther@suse.de>
10173         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10174         functions.
10176 2015-06-01  Martin Liska  <mliska@suse.cz>
10178         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10179         a function local variable.
10181 2015-06-01  Martin Liska  <mliska@suse.cz>
10183         * alloc-pool.c (create_alloc_pool): Remove.
10184         (empty_alloc_pool): Likewise.
10185         (free_alloc_pool): Likewise.
10186         (free_alloc_pool_if_empty): Likewise.
10187         (pool_alloc): Likewise.
10188         (pool_free): Likewise.
10189         * alloc-pool.h: Remove old declarations.
10191 2015-06-01  Martin Liska  <mliska@suse.cz>
10193         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10194         (ira_create_object): Likewise.
10195         (ira_create_allocno): Likewise.
10196         (ira_create_live_range): Likewise.
10197         (copy_live_range): Likewise.
10198         (ira_finish_live_range): Likewise.
10199         (ira_free_allocno_costs): Likewise.
10200         (finish_allocno): Likewise.
10201         (finish_allocnos): Likewise.
10202         (initiate_prefs): Likewise.
10203         (ira_create_pref): Likewise.
10204         (finish_pref): Likewise.
10205         (finish_prefs): Likewise.
10206         (initiate_copies): Likewise.
10207         (ira_create_copy): Likewise.
10208         (finish_copy): Likewise.
10209         (finish_copies): Likewise.
10210         (finish_prefs): Likewise.
10212 2015-06-01  Martin Liska  <mliska@suse.cz>
10214         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10215         (allocate_and_init_ipcp_value): Likewise.
10216         (ipcp_lattice::add_value): Likewise.
10217         (merge_agg_lats_step): Likewise.
10218         (ipcp_driver): Likewise.
10219         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10220         (ipa_free_all_structures_after_iinln): Likewise.
10221         * ipa-prop.h: Likewise.
10223 2015-06-01  Martin Liska  <mliska@suse.cz>
10225         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10226         pool allocator.
10227         (set_hint_predicate): Likewise.
10228         (inline_summary_alloc): Likewise.
10229         (reset_inline_edge_summary): Likewise.
10230         (reset_inline_summary): Likewise.
10231         (set_cond_stmt_execution_predicate): Likewise.
10232         (set_switch_stmt_execution_predicate): Likewise.
10233         (compute_bb_predicates): Likewise.
10234         (estimate_function_body_sizes): Likewise.
10235         (inline_free_summary): Likewise.
10237 2015-06-01  Martin Liska  <mliska@suse.cz>
10239         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10240         (ipa_edge_duplication_hook): Likewise.
10241         (ipa_free_all_structures_after_ipa_cp): Likewise.
10242         (ipa_free_all_structures_after_iinln): Likewise.
10244 2015-06-01  Martin Liska  <mliska@suse.cz>
10246         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10247         (ipa_profile_generate_summary): Likewise.
10248         (ipa_profile_read_summary): Likewise.
10249         (ipa_profile): Likewise.
10251 2015-06-01  Martin Liska  <mliska@suse.cz>
10253         * tree-ssa-structalias.c (new_var_info): Use new type-based
10254         pool allocator.
10255         (new_constraint): Likewise.
10256         (init_alias_vars): Likewise.
10257         (delete_points_to_sets): Likewise.
10259 2015-06-01  Martin Liska  <mliska@suse.cz>
10261         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10262         (free_strinfo): Likewise.
10263         (pass_strlen::execute): Likewise.
10265 2015-06-01  Martin Liska  <mliska@suse.cz>
10267         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10268         pool allocator.
10269         (vn_reference_insert_pieces): Likewise.
10270         (vn_phi_insert): Likewise.
10271         (visit_reference_op_call): Likewise.
10272         (copy_phi): Likewise.
10273         (copy_reference): Likewise.
10274         (process_scc): Likewise.
10275         (allocate_vn_table): Likewise.
10276         (free_vn_table): Likewise.
10278 2015-06-01  Martin Liska  <mliska@suse.cz>
10280         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10281         pool allocator.
10282         (add_repeat_to_ops_vec): Likewise.
10283         (get_ops): Likewise.
10284         (maybe_optimize_range_tests): Likewise.
10285         (init_reassoc): Likewise.
10286         (fini_reassoc): Likewise.
10288 2015-06-01  Martin Liska  <mliska@suse.cz>
10290         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10291         pool allocator.
10292         (bitmap_set_new): Likewise.
10293         (get_or_alloc_expr_for_constant): Likewise.
10294         (get_or_alloc_expr_for): Likewise.
10295         (phi_translate_1): Likewise.
10296         (compute_avail): Likewise.
10297         (init_pre): Likewise.
10298         (fini_pre): Likewise.
10300 2015-06-01  Martin Liska  <mliska@suse.cz>
10302         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10303         (delete_dep_node): Likewise.
10304         (create_deps_list): Likewise.
10305         (free_deps_list): Likewise.
10306         (sched_deps_init): Likewise.
10307         (sched_deps_finish): Likewise.
10309 2015-06-01  Martin Liska  <mliska@suse.cz>
10311         * regcprop.c (free_debug_insn_changes): Use new type-based
10312         pool allocator.
10313         (replace_oldest_value_reg): Likewise.
10314         (pass_cprop_hardreg::execute): Likewise.
10316 2015-06-01  Martin Liska  <mliska@suse.cz>
10318         * ira-build.c (initiate_cost_vectors): Use new type-based
10319         pool allocator.
10320         (ira_allocate_cost_vector): Likewise.
10321         (ira_free_cost_vector): Likewise.
10322         (finish_cost_vectors): Likewise.
10324 2015-06-01  Martin Liska  <mliska@suse.cz>
10326         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10327         pool allocator.
10328         (free_sched_pools): Likewise.
10329         * sel-sched-ir.h (_list_alloc): Likewise.
10330         (_list_remove): Likewise.
10332 2015-06-01  Martin Liska  <mliska@suse.cz>
10334         * stmt.c (add_case_node): Use new type-based pool allocator.
10335         (expand_case): Likewise.
10336         (expand_sjlj_dispatch_table): Likewise.
10338 2015-06-01  Martin Liska  <mliska@suse.cz>
10340         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10341         (free_bb): Likewise.
10342         (pass_cse_reciprocals::execute): Likewise.
10344 2015-06-01  Martin Liska  <mliska@suse.cz>
10346         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10347         (sra_deinitialize) Likewise.
10348         (create_access_1) Likewise.
10349         (build_accesses_from_assign) Likewise.
10350         (create_artificial_child_access) Likewise.
10352 2015-06-01  Martin Liska  <mliska@suse.cz>
10354         * dse.c (get_group_info):Use new type-based pool allocator.
10355         (dse_step0) Likewise.
10356         (free_store_info) Likewise.
10357         (delete_dead_store_insn) Likewise.
10358         (free_read_records) Likewise.
10359         (record_store) Likewise.
10360         (replace_read) Likewise.
10361         (check_mem_read_rtx) Likewise.
10362         (scan_insn) Likewise.
10363         (dse_step1) Likewise.
10364         (dse_step7) Likewise.
10366 2015-06-01  Martin Liska  <mliska@suse.cz>
10368         * df-scan.c (struct df_scan_problem_data):Use new type-based
10369         pool allocator.
10370         (df_scan_free_internal) Likewise.
10371         (df_scan_alloc) Likewise.
10372         (df_grow_reg_info) Likewise.
10373         (df_free_ref) Likewise.
10374         (df_insn_create_insn_record) Likewise.
10375         (df_mw_hardreg_chain_delete) Likewise.
10376         (df_insn_info_delete) Likewise.
10377         (df_free_collection_rec) Likewise.
10378         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10379         (df_sort_and_compress_mws) Likewise.
10380         (df_ref_create_structure) Likewise.
10381         (df_ref_record) Likewise.
10383 2015-06-01  Martin Liska  <mliska@suse.cz>
10385         * df-problems.c (df_chain_create):Use new type-based pool allocator.
10386         (df_chain_unlink_1) Likewise.
10387         (df_chain_unlink) Likewise.
10388         (df_chain_remove_problem) Likewise.
10389         (df_chain_alloc) Likewise.
10390         (df_chain_free) Likewise.
10391         * df.h (struct dataflow) Likewise.
10393 2015-06-01  Martin Liska  <mliska@suse.cz>
10395         * cselib.c (new_elt_list):Use new type-based pool allocator.
10396         (new_elt_loc_list) Likewise.
10397         (unchain_one_elt_list) Likewise.
10398         (unchain_one_elt_loc_list) Likewise.
10399         (unchain_one_value) Likewise.
10400         (new_cselib_val) Likewise.
10401         (cselib_init) Likewise.
10402         (cselib_finish) Likewise.
10404 2015-06-01  Martin Liska  <mliska@suse.cz>
10406         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10407         (sh_reorg) Likewise.
10409 2015-06-01  Martin Liska  <mliska@suse.cz>
10411         * cfg.c (initialize_original_copy_tables):Use new type-based
10412         pool allocator.
10413         (free_original_copy_tables) Likewise.
10414         (copy_original_table_clear) Likewise.
10415         (copy_original_table_set) Likewise.
10417 2015-06-01  Martin Liska  <mliska@suse.cz>
10419         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10420         pool allocator.
10421         (asan_mem_ref_new) Likewise.
10422         (free_mem_ref_resources) Likewise.
10424 2015-06-01  Martin Liska  <mliska@suse.cz>
10426         * var-tracking.c (variable_htab_free):Use new type-based
10427         pool allocator.
10428         (attrs_list_clear) Likewise.
10429         (attrs_list_insert) Likewise.
10430         (attrs_list_copy) Likewise.
10431         (shared_hash_unshare) Likewise.
10432         (shared_hash_destroy) Likewise.
10433         (unshare_variable) Likewise.
10434         (var_reg_delete_and_set) Likewise.
10435         (var_reg_delete) Likewise.
10436         (var_regno_delete) Likewise.
10437         (drop_overlapping_mem_locs) Likewise.
10438         (variable_union) Likewise.
10439         (insert_into_intersection) Likewise.
10440         (canonicalize_values_star) Likewise.
10441         (variable_merge_over_cur) Likewise.
10442         (dataflow_set_merge) Likewise.
10443         (remove_duplicate_values) Likewise.
10444         (variable_post_merge_new_vals) Likewise.
10445         (dataflow_set_preserve_mem_locs) Likewise.
10446         (dataflow_set_remove_mem_locs) Likewise.
10447         (variable_from_dropped) Likewise.
10448         (variable_was_changed) Likewise.
10449         (set_slot_part) Likewise.
10450         (clobber_slot_part) Likewise.
10451         (delete_slot_part) Likewise.
10452         (loc_exp_insert_dep) Likewise.
10453         (notify_dependents_of_changed_value) Likewise.
10454         (emit_notes_for_differences_1) Likewise.
10455         (vt_emit_notes) Likewise.
10456         (vt_initialize) Likewise.
10457         (vt_finalize) Likewise.
10459 2015-06-01  Martin Liska  <mliska@suse.cz>
10461         * ira-color.c (init_update_cost_records):Use new type-based
10462         pool allocator.
10463         (get_update_cost_record) Likewise.
10464         (free_update_cost_record_list) Likewise.
10465         (finish_update_cost_records) Likewise.
10466         (initiate_cost_update) Likewise.
10468 2015-06-01  Martin Liska  <mliska@suse.cz>
10470         * lra.c (init_insn_regs): Use new type-based pool allocator.
10471         (new_insn_reg) Likewise.
10472         (free_insn_reg) Likewise.
10473         (free_insn_regs) Likewise.
10474         (finish_insn_regs) Likewise.
10475         (init_insn_recog_data) Likewise.
10476         (init_reg_info) Likewise.
10477         (finish_reg_info) Likewise.
10478         (lra_free_copies) Likewise.
10479         (lra_create_copy) Likewise.
10480         (invalidate_insn_data_regno_info) Likewise.
10482 2015-06-01  Martin Liska  <mliska@suse.cz>
10484         * lra-lives.c (free_live_range): Use new type-based pool allocator.
10485         (free_live_range_list) Likewise.
10486         (create_live_range) Likewise.
10487         (copy_live_range) Likewise.
10488         (lra_merge_live_ranges) Likewise.
10489         (remove_some_program_points_and_update_live_ranges) Likewise.
10490         (lra_live_ranges_init) Likewise.
10491         (lra_live_ranges_finish) Likewise.
10493 2015-06-01  Martin Liska  <mliska@suse.cz>
10495         * et-forest.c (et_new_occ): Use new type-based pool allocator.
10496         (et_new_tree): Likewise.
10497         (et_free_tree): Likewise.
10498         (et_free_tree_force): Likewise.
10499         (et_free_pools): Likewise.
10500         (et_split): Likewise.
10502 2015-06-01  Martin Liska  <mliska@suse.cz>
10504         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
10505         to header file.
10506         * alloc-pool.h (pool_allocator::pool_allocator): New function.
10507         (pool_allocator::release): Likewise.
10508         (inline pool_allocator::release_if_empty): Likewise.
10509         (inline pool_allocator::~pool_allocator): Likewise.
10510         (pool_allocator::allocate): Likewise.
10511         (pool_allocator::remove): Likewise.
10513 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10515         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
10516         in comment.
10518 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10520         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
10521         to fusible_ops.
10522         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
10523         (arm_macro_fusion_p): Likewise.
10524         (arm_macro_fusion_pair_p): Likewise.
10526 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
10528         * config/aarch64/aarch64-protos.h (tune_params): Rename
10529         fuseable_ops to fusible_ops.
10530         * config/aarch64/aarch64.c (generic_tunings): Rename
10531         fuseable_ops to fusible_ops.
10532         (cortexa53_tunings): Likewise.
10533         (cortexa57_tunings): Likewise.
10534         (thunderx_tunings): Likewise.
10535         (xgene1_tunings): Likewise.
10536         (aarch64_macro_fusion_p): Likewise.
10537         (aarch64_macro_fusion_pair_p): Likewise.
10539 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10541         * config/s390/driver-native.c: New file.
10542         * config/s390/x-native: New file.
10543         * config.host: Add new files for s390.
10544         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
10545         and -march=native
10546         * config.gcc: Likewise.
10547         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
10548         * config/s390/s390-opts.h (enum processor_type): Ditto.
10549         * config/s390/s390.c (s390_option_override): Catch unhandled
10550         PROCESSOR_NATIVE
10552 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
10554         PR target/65527
10555         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
10556         redirection for instrumented calls.
10557         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
10558         (append_compiler_options): Append -fcheck-pointer-bounds.
10559         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
10560         (chkp_redirect_edge): New.
10561         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
10562         (chkp_redirect_edge): New.
10564 2015-06-01  Richard Biener  <rguenther@suse.de>
10566         PR tree-optimization/66280
10567         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
10568         def-use walking.
10570 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10572         * config/aarch64/aarch64.md
10573         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
10574         logic_shift_imm.
10576 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
10578         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
10579         Remove obsolete kludge.
10581 2015-06-01  Richard Biener  <rguenther@suse.de>
10583         * tree-ssa-reassoc.c (get_rank): Simplify.
10585 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10587         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
10588         * configure: Regenerated.
10590 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
10592         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
10593         issue (add space between string literal and macro).
10594         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
10596 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10598         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
10599         implict or explicit -fPIE or -fpie.
10601 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
10603         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
10605 2015-05-28  DJ Delorie  <dj@redhat.com>
10607         * expmed.c (extract_bit_field_1): Avoid clobbering a
10608         yet-to-be-used base/index register.
10610 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
10612         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
10613         (alias_stats): Add num_universal.
10614         (alias_set_subset_of): Special case pointers; be ready for NULL
10615         children.
10616         (alias_sets_conflict_p): Special case pointers; be ready for NULL
10617         children.
10618         (init_alias_set_entry): Break out from ...
10619         (record_alias_subset): ... here; propagate new fields;
10620         allocate children only when really needed.
10621         (get_alias_set): Do less generous pointer globbing.
10622         (dump_alias_stats_in_alias_c): Update statistics.
10624 2015-05-30  Alan Modra  <amodra@gmail.com>
10626         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
10627         correct block for use of r12.
10628         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
10630 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10632         PR target/66215
10633         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
10634         with -mhotpatch=.
10636 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
10638         PR tree-optimization/66142
10639         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
10640         virtual phis that feed themselves.
10642 2015-05-29  Richard Biener  <rguenther@suse.de>
10644         PR tree-optimization/66314
10645         * tree-ssa-threadupdate.c (create_block_for_threading): Add
10646         parameter that says which loop the new block belongs to.
10647         (ssa_create_duplicates): Blocks duplicated for the threaded
10648         path belong to the loop of the thread destination.
10650 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10652         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
10653         to cleanup-saved-temps.
10654         * doc/sourcebuild.texi (Clean up generated test files): Expand
10655         introduction.
10656         (dg-keep-saved-temps): Document new proc.
10657         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
10658         cleanup-saved-temps): Remove.
10660 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
10662         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
10663         gcc_AC_CHECK_DECLS.
10664         * configure: Regenerate.
10666 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10668         * config/nios2/linux.h (CPP_SPEC): Define.
10670 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10672         * config/microblaze/linux.h (CPP_SPEC): Define.
10674 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
10676         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
10677         -pthread is specified.
10679 2015-05-28  Richard Biener  <rguenther@suse.de>
10681         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
10682         (vect_fixup_scalar_cycles_with_patterns): Likewise.
10683         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
10684         after pattern recog.
10685         (vect_create_epilog_for_reduction): Properly handle reductions
10686         with patterns.
10687         (vectorizable_reduction): Likewise.
10688         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
10689         reduction chains.
10690         (vect_get_constant_vectors): Create the correct number of
10691         initial values for reductions.
10692         (vect_schedule_slp_instance): Handle reduction chains that are
10693         type changing properly.
10694         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
10696 2015-05-28  Richard Biener  <rguenther@suse.de>
10698         PR tree-optimization/66142
10699         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
10700         values better in memcpy destination handling.  Handle non-aliasing
10701         we discover here.
10703 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
10705         PR target/63810
10706         * config/darwin-c.c (version_components): New global enum.
10707         (parse_version, version_as_legacy_macro)
10708         (version_as_modern_macro, macosx_version_as_macro): New functions.
10709         (version_as_macro): Remove.
10710         (darwin_cpp_builtins): Use new function.
10712 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
10714         * builtins.c (expand_builtin_acc_on_device): Mark parameters
10715         with ATTRIBUTE_UNUSED.
10717 2015-05-28  Julian Brown  <julian@codesourcery.com>
10719         PR libgomp/65742
10721         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
10722         sequence for !ACCEL_COMPILER.
10724 2015-05-28  Nick Clifton  <nickc@redhat.com>
10726         * config/rx/rx.c (push_regs): New function.  Extracts code from...
10727         (rx_expand_prologue): ... here.  Use push_regs to push even small
10728         spans of registers.
10729         (pop_regs): New function.
10730         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
10731         registers.
10733 2015-05-28  Richard Biener  <rguenther@suse.de>
10735         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
10736         member.
10737         (SLP_INSTANCE_BODY_COST_VEC): Remove.
10738         (vect_update_slp_costs_according_to_vf): Likewise.
10739         (vect_slp_analyze_operations): Update prototype.
10740         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
10741         vect_update_slp_costs_according_to_vf, adjust.
10742         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
10743         (vect_analyze_slp_cost_1): Likewise.
10744         (vect_analyze_slp_cost): Likewise.  Properly deal with
10745         widening reduction ops.  Commit body costs.
10746         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
10747         cost for loops from here.
10748         (vect_slp_analyze_operations): But do it from here when
10749         the vectorization factor is known and stmts are analyzed.
10750         (vect_bb_vectorization_profitable_p): Simplify.
10751         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
10752         (vect_update_slp_costs_according_to_vf): Remove.
10754 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
10755             H.J. Lu  <hongjiu.lu@intel.com>
10757         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
10758         (BUILD_CFLAGS): Likewise.
10759         (BUILD_CXXFLAGS): Likewise.
10760         (LINKER): Add @NO_PIE_FLAG@.
10761         (BUILD_LDFLAGS): Likewise.
10762         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
10763         --enable-default-pie.
10764         * common.opt (fPIE): Initialize to -1.
10765         (fpie): Likewise.
10766         (no-pie): New option.
10767         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
10768         * configure.ac: Add --enable-default-pie.
10769         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
10770         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
10771         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
10772         * gcc.c (NO_PIE_SPEC): New.
10773         (PIE_SPEC): Likewise.
10774         (NO_FPIE1_SPEC): Likewise.
10775         (FPIE1_SPEC): Likewise.
10776         (NO_FPIE2_SPEC): Likewise.
10777         (FPIE2_SPEC): Likewise.
10778         (NO_FPIE2_SPEC): Likewise.
10779         (FPIE_SPEC): Likewise.
10780         (NO_FPIE_SPEC): Likewise.
10781         (NO_FPIC1_SPEC): Likewise.
10782         (FPIC1_SPEC): Likewise.
10783         (NO_FPIC2_SPEC): Likewise.
10784         (FPIC2_SPEC): Likewise.
10785         (NO_FPIC2_SPEC): Likewise.
10786         (FPIC_SPEC): Likewise.
10787         (NO_FPIC_SPEC): Likewise.
10788         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
10789         (FPIE1_OR_FPIC1_SPEC): Likewise.
10790         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
10791         (FPIE2_OR_FPIC2_SPEC): Likewise.
10792         (NO_FPIE_AND_FPIC_SPEC): Likewise.
10793         (FPIE_OR_FPIC_SPEC): Likewise.
10794         (LD_PIE_SPEC): Likewise.
10795         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
10796         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
10797         * config/darwin.h (PIE_SPEC): Renamed to ...
10798         (DARWIN_PIE_SPEC): This.
10799         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
10800         * config/darwin9.h (PIE_SPEC): Renamed to ...
10801         (DARWIN_PIE_SPEC): This.
10802         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
10803         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10804         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
10805         FPIE2_OR_FPIC2_SPEC.
10806         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
10807         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
10808         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
10809         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10810         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10811         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10812         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
10813         * config/m32r/m32r.h (ASM_SPEC): Likewise.
10814         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
10815         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10816         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
10817         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
10818         * config/sparc/linux.h (ASM_SPEC): Likewise.
10819         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10820         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
10821         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
10822         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10823         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10824         * config/sparc/sparc.h (ASM_SPEC): Likewise.
10825         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
10826         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
10827         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
10828         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
10829         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
10830         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
10831         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
10832         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
10833         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
10834         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
10835         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
10836         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
10837         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10838         * config/vax/linux.h (ASM_SPEC): Likewise.
10839         * doc/install.texi: Document --enable-default-pie.
10840         * doc/invoke.texi: Document -no-pie.
10841         * config.in: Regenerated.
10842         * configure: Likewise.
10844 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10846         PR rtl-optimization/66168
10847         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
10848         can_move_invariant_reg.
10850 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
10852         PR target/66148
10853         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
10854         REG_EQUAL note when doing insert.
10856         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
10857         instead of "%d" for 'o' operand.
10859 2015-05-27  Nathan Sidwell  <nathan@acm.org>
10861         PR c++/66270
10862         * tree.c (build_pointer_type_for_mode): Canonical type does not
10863         inherit can_alias_all.
10864         (build_reference_type_for_mode): Likewise.
10866 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
10868         * expr.h (array_at_struct_end_p): Move to...
10869         (array_ref_element_size): Likewise.
10870         (component_ref_field_offset): Likewise.
10871         * tree.h (array_ref_element_size): ...here.
10872         (array_at_struct_end_p): Likewise.
10873         (component_ref_field_offset): Likewise.
10874         * expr.c (array_ref_element_size): Move to...
10875         (array_ref_low_bound): Likewise.
10876         (array_at_struct_end_p): Likewise.
10877         (array_ref_up_bound): Likewise.
10878         (component_ref_field_offset): Likewise.
10879         * tree.c (array_ref_element_size): ...here.
10880         (array_ref_low_bound): Likewise.
10881         (array_ref_up_bound): Likewise.
10882         (array_at_struct_end_p): Likewise.
10883         (component_ref_field_offset): Likewise.
10885 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
10886             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10888         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
10890 2015-05-27  Jason Merrill  <jason@redhat.com>
10892         PR bootstrap/66304
10893         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
10894         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
10895         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
10897 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
10899         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
10900         is true.
10902         * statistics.c (statistics_fini_pass): Print pass name.
10904 2015-05-27  Richard Biener  <rguenther@suse.de>
10906         PR tree-optimization/66272
10907         Revert parts of
10908         2014-08-15  Richard Biener  <rguenther@suse.de>
10910         PR tree-optimization/62031
10911         * tree-data-ref.c (dr_analyze_indices): Do not set
10912         DR_UNCONSTRAINED_BASE.
10913         (dr_may_alias_p): All indirect accesses have to go the
10914         formerly DR_UNCONSTRAINED_BASE path.
10915         * tree-data-ref.h (struct indices): Remove
10916         unconstrained_base member.
10917         (DR_UNCONSTRAINED_BASE): Remove.
10919 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
10921         * dwarf2out.c: Remove block_map.
10922         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
10923         (gen_lexical_block_die): Same.
10924         (dwarf2out_function_decl): Remove block_map use.
10925         (dwarf2out_c_finalize): Same.
10926         * tree-core.h (struct tree_block): Add die field.
10927         * tree.h (BLOCK_DIE): New.
10929 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10931         PR target/65358
10932         * expr.c (memory_load_overlap): New function.
10933         (emit_push_insn): When pushing partial args to the stack would
10934         clobber the register part load the overlapping part into a pseudo
10935         and put it into the hard reg after pushing.  Change return type
10936         to bool.  Add bool argument.
10937         * expr.h (emit_push_insn): Change return type to bool.
10938         Add bool argument.
10939         * calls.c (expand_call): Cancel sibcall optimization when encountering
10940         partial argument on targets with ARGS_GROW_DOWNWARD and
10941         !STACK_GROWS_DOWNWARD.
10942         (emit_library_call_value_1): Update callsite of emit_push_insn.
10943         (store_one_arg): Likewise.
10945 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
10947         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
10949 2015-05-27  Martin Liska  <mliska@suse.cz>
10951         * Makefile.in: Add additional dependencies related to memory report
10952         enhancement.
10953         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
10954         * bitmap.c (struct bitmap_descriptor_d): Remove.
10955         (struct loc): Likewise.
10956         (struct bitmap_desc_hasher): Likewise.
10957         (bitmap_desc_hasher::hash): Likewise.
10958         (bitmap_desc_hasher::equal): Likewise.
10959         (get_bitmap_descriptor): Likewise.
10960         (bitmap_register): User new memory descriptor API.
10961         (register_overhead): Likewise.
10962         (bitmap_find_bit): Register nsearches and search_iter statistics.
10963         (struct bitmap_output_info): Remove.
10964         (print_statistics): Likewise.
10965         (dump_bitmap_statistics): Use new memory descriptor.
10966         * bitmap.h (struct bitmap_usage): New class.
10967         * genmatch.c: Extend header file inclusion.
10968         * genpreds.c: Likewise.
10969         * ggc-common.c (struct ggc_usage): New class.
10970         (struct ggc_loc_desc_hasher): Remove.
10971         (ggc_loc_desc_hasher::hash): Likewise.
10972         (ggc_loc_desc_hasher::equal): Likewise.
10973         (struct ggc_ptr_hash_entry): Likewise.
10974         (struct ptr_hash_hasher): Likewise.
10975         (ptr_hash_hasher::hash): Likewise.
10976         (ptr_hash_hasher::equal): Likewise.
10977         (make_loc_descriptor): Likewise.
10978         (ggc_prune_ptr): Likewise.
10979         (dump_ggc_loc_statistics): Use new memory descriptor.
10980         (ggc_record_overhead): Likewise.
10981         (ggc_free_overhead): Likewise.
10982         (final_cmp_statistic): Remove.
10983         (cmp_statistic): Likewise.
10984         (ggc_add_statistics): Liekwise.
10985         (ggc_prune_overhead_list): Likewise.
10986         * hash-map-traits.h: New file.
10987         * hash-map.h (struct default_hashmap_traits): Move the traits to a
10988         separate header file.
10989         * hash-set.h: Pass memory statistics info to ctor.
10990         * hash-table.c (void dump_hash_table_loc_statistics): New function.
10991         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
10992         (hash_table::~hash_table): Register memory release operation.
10993         (hash_table::alloc_entries): Handle memory allocation operation.
10994         (hash_table::expand): Likewise.
10995         * inchash.c (iterative_hash_hashval_t): Move implementation to header
10996         file.
10997         (iterative_hash_host_wide_int): Likewise.
10998         * inchash.h (class hash): Likewise.
10999         * mem-stats-traits.h: New file.
11000         * mem-stats.h: New file.
11001         (mem_location): Add new class.
11002         (mem_usage): Likewise.
11003         (mem_alloc_description): Likewise.
11004         * sese.c: Add new header file inclusision.
11005         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11006         and hash_set.
11007         * tree-sra.c: Add new header file inclusision.
11008         * vec.c (struct vec_descriptor): Remove.
11009         (hash_descriptor): Likewise.
11010         (struct vec_usage): Likewise.
11011         (struct ptr_hash_entry): Likewise.
11012         (hash_ptr): Likewise.
11013         (eq_ptr): Likewise.
11014         (vec_prefix::register_overhead): Use new memory descriptor API.
11015         (vec_prefix::release_overhead): Likewise.
11016         (add_statistics): Remove.
11017         (dump_vec_loc_statistics): Use new memory descriptor API.
11018         * vec.h (struct vec_prefix): Likewise.
11019         (va_heap::reserve): Likewise.
11020         (va_heap::release): Likewise.
11021         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11023 2015-05-27  Richard Biener  <rguenther@suse.de>
11025         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11026         earlier and remove ??? comment.
11027         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11028         and got called from loop analysis bail out.  Always pass the SLP
11029         node to the vectorizable_* functions.
11030         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11031         the premature SLP check here.
11032         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11033         detected SLP stmts.
11034         (vect_detect_hybrid_slp_1): Likewise.
11036 2015-05-26  Jeff Law  <law@redhat.com>
11038         * combine.c (find_split_point): Verify that the shift count is a
11039         constant when choosing (plus (ashift ...)) as a split point.
11041         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11042         No functional changes.
11044 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
11046         * ipa-polymorphic-call.c
11047         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11048         case when call target is already known.
11050 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
11052         PR target/65979
11053         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11054         take into account the case that operands[1] and operands[2]
11055         are the same register.
11057 2015-05-26  Michael Matz  <matz@suse.de>
11059         PR middle-end/66251
11061         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11062         stores.
11063         (vect_create_vectorized_demotion_stmts): Always set
11064         STMT_VINFO_VEC_STMT, also with SLP.
11065         (vectorizable_store): Handle strided group stores.
11067 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11069         PR target/66049
11070         * config/aarch64/aarch64.md
11071         (*adds_shift_imm_<mode>):  New pattern.
11072         (*subs_shift_imm_<mode>):  Likewise.
11073         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
11074         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11075         (*add_uxt<mode>_shift2): Likewise.
11076         (*add_uxtsi_shift2_uxtw): Likewise.
11077         (*sub_uxt<mode>_shift2): Likewise.
11078         (*sub_uxtsi_shift2_uxtw): Likewise.
11080 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
11082         * config/rs6000/constraints.md (Y, U): Use match_test.
11084 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11086         PR target/52144
11087         * config/arm/arm.c (arm_option_check_internal)
11088         (arm_option_params_internal): Check opts->target_flags to set macros.
11089         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11090         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11091         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11092         (builtin_define): Replaced with def_or_undef_macro.
11093         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11094         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11095         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11096         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11097         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11098         (TARGET_ARM_FEATURE_LDREX_P)
11099         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11100         * config/arm/arm-c.c (def_or_undef_macro): New function.
11101         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11103 2015-05-26  Christian Bruel  <christian.bruel@st.com>
11105         * c-common.h (builtin_define_with_int_value)
11106         (builtin_define_type_sizeof): Declare.
11107         * c-cppbuiltin.c (builtin_define_with_int_value)
11108         (builtin_define_type_sizeof): Externalize.
11109         (builtin_define_std): Cleanup declaration.
11110         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11111         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11112         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11113         (builtin_define, builtin_assert): New macros.
11115 2015-05-26  Richard Biener  <rguenther@suse.de>
11117         PR tree-optimization/66142
11118         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11119         MEM_REFs for the same base address.
11121 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11123         PR ipa/66181
11124         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11126 2015-05-26  Jason Merrill  <jason@redhat.com>
11128         * configure.ac: Set CXXFLAGS for ISL test.
11129         * configure: Regenerate.
11131         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
11132         strstr and basename.
11133         * configure: Regenerate.
11135 2015-05-26  Richard Biener  <rguenther@suse.de>
11137         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11138         X % C -> X & (C - 1) for C being a power-of two to ...
11139         * match.pd: ... patterns.
11141 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
11143         * match.pd (swapped_tcc_comparison): New operator list.
11144         (-A CMP -B): New simplification.
11145         * fold-const.c (fold_comparison): Remove corresponding code.
11147 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11149         * caller-save.c (init_caller_save): Base temporary register numbers
11150         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11151         * cfgloopanal.c (init_set_costs): Likewise.
11152         * dojump.c (prefer_and_bit_test): Likewise.
11153         * expr.c (init_expr_target): Likewise.
11154         * ira.c (setup_prohibited_mode_move_regs): Likewise.
11155         * lower-subreg.c (init_lower_subreg): Likewise.
11156         * postreload.c (reload_cse_regs_1): Likewise.
11158 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
11160         * gensupport.h (compute_test_codes): Declare.
11161         * gensupport.c (compute_predicate_codes): Rename to...
11162         (compute_test_codes): ...this.  Generalize error message.
11163         (process_define_predicate): Update accordingly.
11164         * genpreds.c (compute_maybe_allows): Delete.
11165         (add_constraint): Use compute_test_codes to determine whether
11166         something can accept a SUBREG, REG or MEM.
11168 2015-05-26  Torvald Riegel  <triegel@redhat.com>
11170         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11171         'memory model' to align with C++11; fix description of memory orders;
11172         fix a few typos.
11174 2015-05-26  Richard Biener  <rguenther@suse.de>
11176         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11177         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
11178         detect whether we apply SLP.  Remove call to
11179         vect_update_slp_costs_according_to_vf.
11180         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11181         vect_update_slp_costs_according_to_vf from here.  Dispatch
11182         to vect_slp_analyze_operations to analyze SLP stmts.
11183         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11184         unused bb_vec_info parameter, adjust assert.
11185         (vect_slp_analyze_operations): Pass in the slp instance tree
11186         instead of bb_vec_info.
11187         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11188         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11190 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
11192         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11193         Q_REGS.  Expand comment.
11194         (REG_CLASS_NAMES): Ditto.
11195         (REG_CLASS_CONTENTS): Ditto.
11197 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
11199         PR target/66274
11200         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11201         when LEGACY_INT_REGNO_P is processed.
11203 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
11205         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11207 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
11209         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11210         register if not marked dead/unused, before return.
11212 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11214         PR lto/66180
11215         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11216         is set; check for assembler name at LTO time.
11217         (type_in_anonymous_namespace): Remove hacks, check that all
11218         anonymous types are called "<anon>"
11219         (odr_type_p): Simplify; add check for "<anon>"
11220         (odr_subtypes_equivalent): Add odr_type_p check.
11221         * tree.c (need_assembler_name_p): Even anonymous namespace needs
11222         assembler name.
11224 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11226         * ipa-utils.h (method_class_type): Remove.
11227         * cgraphunit.c (walk_polymorphic_call_targets): Use
11228         TYPE_METHOD_BASETYPE.
11229         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11230         on main variants only.
11231         (method_class_type): Remove.
11232         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11233         (build_type_inheritance_graph): Likewise.
11234         * ipa-icf.c (sem_function::equals_wpa): Likewise.
11235         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11236         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11238 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
11240         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11241         is_typedef_decl, typedef_variant_p): Constify.
11242         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11243         is_typedef_decl, typedef_variant_p): Constify.
11245 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11247         * defaults.h (gen_tablejump): New function.
11248         (HAVE_tablejump): Add default value.
11249         * expr.c: Adjust.
11250         * stmt.c: Likewise.
11252 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11254         * defaults.h (gen_store_multiple): New function.
11255         (HAVE_store_multiple): Add default value.
11256         * expr.c (move_block_from_reg): Adjust.
11258 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11260         * defaults.h (gen_load_multiple): New function.
11261         (HAVE_load_multiple): Add default value.
11262         * expr.c (move_block_to_reg): Adjust.
11264 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11266         * defaults.h (gen_mem_signal_fence): New function.
11267         (HAVE_mem_signal_fence): Add default value.
11268         * optabs.c: Adjust.
11270 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11272         * defaults.h (gen_memory_barrier): New function.
11273         (HAVE_memory_barrier): Add default value.
11274         * optabs.c: Adjust.
11276 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11278         * defaults.h (gen_mem_thread_fence): New function.
11279         (HAVE_mem_thread_fence): Add default definition.
11280         * optabs.c: Adjust.
11282 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11284         * combine.c (find_split_point): Check the value of HAVE_lo_sum
11285         instead of if it is defined.
11286         (combine_simplify_rtx): Likewise.
11287         * lra-constraints.c (process_address_1): Likewise.
11288         * config/darwin.c: Adjust.
11289         * genconfig.c (main): Always define HAVE_lo_sum.
11291 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11293         * genmatch.c (parser::parse_operation): Reject expanding
11294         operator-list inside 'for'.
11296 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11298         * genmatch.c (parser::parse_for): Reject iterator if used as
11299         operator-list.
11301 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11303         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11304         after end of id-list.
11306 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
11308         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11309         we do not try to compute canonical type for type that does not need
11310         alias set.
11311         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11312         FUNCITON_TYPE.
11313         * tree.h (type_with_alias_set_p): New.
11315 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
11317         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
11318         function attributes.
11319         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11321 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
11323         * Makefile.in (check_gcc_parallelize): Delete.
11324         (lang_checks_parallelized): Update comment.
11326 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
11328         PR rtl-optimization/66237
11329         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11330         location of an "as_a" cast.
11332 2015-05-22  Jeff Law  <law@redhat.com>
11334         * config/pa/pa.md (non-canonical shift-add insns): Remove.
11335         (peepholes with non-canonical RTL sources): Remove.
11336         (peepholes for indexed stores of FP regs in integer modes): Match and
11337         generate canonical RTL.
11339 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11341         PR tree-optimization/63387
11342         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11343         ((x ord x) & (y ord y) -> (x ord y),
11344         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11345         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11346         vectors like scalars.
11348 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11350         * convert.c (convert_to_integer, convert_to_vector): Include the
11351         types in the error message.
11353 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
11355         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11356         simplifications.
11358 2015-05-22  Jeff Law  <law@redhat.com>
11360         * config/pa/pa.md (integer_indexed_store splitters): Use
11361         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
11362         insns -- adjusting the constant 2nd operand accordingly.
11364         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11365         (plus (ashift X log2) Y) if it is a split point.
11367         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11368         out of hppa_legitimize_address to handle both forms of a multiply
11369         by 2, 4 or 8.
11370         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11371         Always generate the ASHIFT variant as the result is not directly
11372         used in a MEM.  Update comments and refactor slightly to improve
11373         readability.
11375 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11377         PR target/65491
11378         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11379         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
11380         (aarch64_composite_type_p): Return false if given type and mode are
11381         for a short vector.
11383 2015-05-22  Richard Biener  <rguenther@suse.de>
11385         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11386         member.
11387         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11388         patterns when determining whether SLP is pure.
11389         (vect_is_slp_reduction): Remove check for pattern stmts.
11390         (vect_is_simple_reduction_1): Remove dead code.
11391         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11392         (vect_get_and_check_slp_defs): Pass in the stmt number.
11393         Allow the first def in a reduction to be not a pattern stmt when
11394         the rest of the stmts def are patterns.
11395         (vect_build_slp_tree_1): Allow tcc_expression codes like
11396         SAD_EXPR and DOT_PROD_EXPR.
11397         (vect_build_slp_tree): Adjust.
11398         (vect_analyze_slp): Refactor and move BB vect error message ...
11399         (vect_slp_analyze_bb_1): ... here.
11401 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
11403         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11404         for CSWTCH temporary.
11406 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11408         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11409         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
11410         unknown unspecs.
11412 2015-05-22  Richard Biener  <rguenther@suse.de>
11414         PR tree-optimization/66251
11415         * tree-vect-stmts.c (vectorizable_conversion): Properly
11416         set STMT_VINFO_VEC_STMT even for the SLP case.
11418 2015-05-22  Marek Polacek  <polacek@redhat.com>
11420         * doc/extend.texi: Use @pxref instead of @xref.
11422 2015-05-22  hiraditya  <hiraditya@msn.com>
11424         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11425         redundant if.
11427 2015-05-22  Richard Biener  <rguenther@suse.de>
11429         PR tree-optimization/65701
11430         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11431         Move peeling cost models into one place.  Peel for alignment
11432         for single loads only if an aligned load is cheaper than
11433         an unaligned load.
11435 2015-05-22  Marek Polacek  <polacek@redhat.com>
11437         PR c/47043
11438         * doc/extend.texi (Enumerator Attributes): New section.
11439         Document syntax of enumerator attributes.
11441 2015-05-22  Richard Biener  <rguenther@suse.de>
11443         * tree-vect-loop.c (get_reduction_op): New function.
11444         (vect_model_reduction_cost): Use it, add reduc_index parameter.
11445         Make ready for BB reductions.
11446         (vect_create_epilog_for_reduction): Use get_reduction_op.
11447         (vectorizable_reduction): Init reduc_index to a valid value.
11448         Adjust vect_model_reduction_cost call.
11449         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11450         operand for reduction defaults.  Add SAD_EXPR support.
11451         Assert we have a neutral op for SLP reductions.
11452         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
11453         walking pattern stmt ops only recurse to SSA names.
11455 2015-05-22  Richard Biener  <rguenther@suse.de>
11457         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
11458         assert with guard, remove check on detected reduction.
11459         (vect_recog_sad_pattern): Likewise.
11460         (vect_recog_widen_sum_pattern): Likewise.
11462 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11464         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
11465         __always_inline__ attribute.
11466         (vaesdq_u8): Likewise.
11467         (vaesmcq_u8): Likewise.
11468         (vaesimcq_u8): Likewise.
11469         (vsha1cq_u32): Likewise.
11470         (vsha1mq_u32): Likewise.
11471         (vsha1pq_u32): Likewise.
11472         (vsha1h_u32): Likewise.
11473         (vsha1su0q_u32): Likewise.
11474         (vsha1su1q_u32): Likewise.
11475         (vsha256hq_u32): Likewise.
11476         (vsha256h2q_u32): Likewise.
11477         (vsha256su0q_u32): Likewise.
11478         (vsha256su1q_u32): Likewise.
11479         (vmull_p64): Likewise.
11480         (vmull_high_p64): Likewise.
11482 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11484         * final.c (final_scan_insn): Don't check HAVE_peephole with the
11485         preprocessor.
11486         * output.h: Likewise.
11487         * genconfig.c (main): Alwways define HAVE_peephole.
11488         * genpeep.c: Don't emit checks of HAVE_peephole.
11490 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11492         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
11493         check HAVE_conditional_move with the preprocessor.
11495 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11497         * genconfig.c (main): Always define HAVE_conditional_move.
11498         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
11499         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
11500         is defined.
11502 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11504         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
11505         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
11506         and FRAME_POINTER_REGNUM with the preprocessor.
11508 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11510         * defaults.h: Add default for STACK_PUSH_CODE.
11511         * expr.c: Don't redefine STACK_PUSH_CODE.
11512         * recog.c: Likewise.
11514 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11516         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
11517         sched-deps.c: Use if instead of preprocessor checks with
11518         STACK_GROWS_DOWNWARD.
11520 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11522         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
11523         is defined.
11524         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
11525         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
11526         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
11527         * doc/tm.texi: Regenerate.
11529 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11531         PR target/66232
11532         * config/i386/constraints.md (Bg): New constraint for GOT memory
11533         operand.
11534         * config/i386/i386.md (*call_got_x32): New pattern.
11535         (*call_value_got_x32): Likewise.
11536         * config/i386/predicates.md (GOT_memory_operand): New predicate.
11538 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
11540         PR tree-optimization/66233
11541         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
11542         Simplify.
11544 2015-05-21  Jeff Law  <law@redhat.com>
11546         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
11547         than MULT for shadd sequences.
11549 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
11551         * alias.c (alias_stats): New static var.
11552         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
11553         (dump_alias_stats_in_alias_c): New function.
11554         * alias.h (dump_alias_stats_in_alias_c): Declare.
11555         * tree-ssa-alias.c (dump_alias_stats): Call it.
11557 2015-05-08  Michael Matz  <matz@suse.de>
11559         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
11560         to strided_p.
11561         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
11562         (STMT_VINFO_STRIDED_P): ... this.
11563         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
11564         (vect_verify_datarefs_alignment): Likewise.
11565         (vect_enhance_data_refs_alignment): Likewise.
11566         (vect_analyze_data_ref_access): Likewise.
11567         (vect_analyze_data_refs): Accept strided stores.
11568         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
11569         (vect_model_load_cost): Adjust for macro rename.
11570         (vectorizable_mask_load_store): Likewise.
11571         (vectorizable_load): Likewise.
11572         (vectorizable_store): Open code strided stores.
11574 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11576         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
11577         Document sqrt_insn.
11579 2015-05-21  Richard Biener  <rguenther@suse.de>
11581         PR c++/66211
11582         * match.pd: Guard pattern optimzing (int)(float)int
11583         conversions to apply only on GIMPLE.
11585 2015-05-21  Jeff Law  <law@redhat.com>
11587         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
11588         multiply-accumulate/shift-add insn generation.
11590 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
11592         PR target/54236
11593         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
11594         operands[1] are the same.
11596 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
11598         PR middle-end/66221
11599         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
11600         build_distinct_type_copy to copy bounds.
11602 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
11604         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
11605         Change to unsigned int.
11607 2015-05-20  Jeff Law  <law@redhat.com>
11609         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
11610         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
11611         (pa_shadd_constant_p): Allow constants for shadd insns rather
11612         than valid scaling constants for memory addresses.
11613         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
11614         * config/pa/predicates.md (mem_shadd_operand): New predicate.
11615         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
11616         (shift-add insns using ASHIFT): New patterns.
11618 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
11620         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
11621         feasible.
11622         (fix_up_fall_thru_edges): Likewise.
11623         (fix_crossing_conditional_branches): Likewise. Promote jump targets
11624         from to rtx_insn to rtx_code_label where feasible.
11625         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
11626         gen_move_insn (returned type changed to rtx_insn).
11627         * builtins.c (expand_errno_check): Fix arguments of
11628         do_compare_rtx_and_jump (now expects rtx_code_label).
11629         (expand_builtin_acc_on_device): Likewise.
11630         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
11631         invert_jump (now exprects rtx_jump_insn).
11632         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
11633         (construct_init_block): Use rtx_code_label.
11634         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
11635         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
11636         calling redirect_jump.
11637         (patch_jump_insn): Likewise.
11638         (redirect_branch_edge): Likewise.
11639         (force_nonfallthru_and_redirect): Likewise.
11640         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
11641         when suitable.
11642         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
11643         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
11644         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
11645         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
11646         to store the value retured by gen_label_rtx.
11647         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
11648         rtx_jump_insn.
11649         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
11650         (split_branches): Fix calls of redirect_jump.
11651         * dojump.c (jumpifnot): Promote argument type from rtx to
11652         rtx_code_label.
11653         (jumpifnot_1): Likewise.
11654         (jumpif): Likewise.
11655         (jumpif_1): Likewise.
11656         (do_jump_1): Likewise.
11657         (do_jump): Likewise. Use rtx_code_label when feasible.
11658         (do_jump_by_parts_greater_rtx): Likewise.
11659         (do_jump_by_parts_zero_rtx): Likewise.
11660         (do_jump_by_parts_equality_rtx): Likewise.
11661         (do_compare_rtx_and_jump): Likewise.
11662         * dojump.h: Update function prototypes.
11663         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
11664         returns rtx_insn).
11665         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
11666         rtx_jump_insn.
11667         (emit_label_before): Likewise.
11668         (emit_jump_insn_after_noloc): Likewise.
11669         (emit_jump_insn_after_setloc): Likewise.
11670         (emit_jump_insn_after): Likewise
11671         (emit_jump_insn_before_setloc): Likewise.
11672         (emit_jump_insn_before): Likewise.
11673         (emit_label_before): Promote return type to rtx_code_label.
11674         (emit_label): Likewise.
11675         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
11676         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
11677         gen_move_insn.
11678         (emit_stack_restore): Likewise.
11679         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
11680         (do_cmp_and_jump): Likewise.
11681         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
11682         from rtx to rtx_code_label.
11683         (gen_move_insn_uncast): New function.
11684         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
11685         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
11686         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
11687         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
11688         invert_jump_1 and redirect_jump_1.
11689         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
11690         do_compare_rtx_and_jump.
11691         (expand_addsub_overflow): Likewise.
11692         (expand_neg_overflow): Likewise.
11693         (expand_mul_overflow): Likewise.
11694         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
11695         return value of gen_move_insn.
11696         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
11697         * loop-doloop.c (add_test): Use rtx_code_label.
11698         (doloop_modify): Likewise.
11699         (doloop_optimize): Likewise.
11700         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
11701         * lra-constraints.c (emit_spill_move): Remove cast of value returned
11702         by gen_move_insn.
11703         (inherit_reload_reg): Add cast when calling dump_insn_slim.
11704         (split_reg): Likewise.
11705         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
11706         gen_move_insn.
11707         * optabs.c (expand_binop_directly): Remove casts of values returned by
11708         maybe_gen_insn.
11709         (expand_unop_direct): Likewise.
11710         (expand_abs): Likewise.
11711         (maybe_emit_unop_insn): Likewise.
11712         (maybe_gen_insn): Promote return type to rtx_insn.
11713         * optabs.h: Update prototype of maybe_gen_insn.
11714         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
11715         redundant cast.
11716         * recog.c (struct peep2_insn_data): Promote type of insn field to
11717         rtx_insn.
11718         (peep2_reinit_state): Use NULL instead of NULL_RTX.
11719         (peep2_attempt): Remove casts of insn in peep2_insn_data.
11720         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
11721         * recog.h (struct insn_gen_fn): Promote return types of function
11722         pointers and operator ().from rtx to rtx_insn.
11723         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
11724         (fill_eager_delay_slots): Likewise.
11725         (relax_delay_slots): Likewise.
11726         (make_return_insns): Likewise.
11727         (dbr_schedule): Likewise.
11728         (optimize_skips): Likewise.
11729         (reorg_redirect_jump): Likewise.
11730         (fill_slots_from_thread): Likewise.
11731         * reorg.h: Update prototypes.
11732         * resource.c (find_dead_or_set_registers): Use dyn_cast to
11733         rtx_jump_insn instead of check.  Use it's jump_target method.
11734         * rtl.h (rtx_jump_insn::jump_label): Define new method.
11735         (rtx_jump_insn::jump_target): Define new method.
11736         (rtx_jump_insn::set_jump_target): Define new method.
11737         * rtlanal.c (tablejump_p): Promote type of one local variable.
11738         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
11739         (sched_analyze_insn): Likewise.
11740         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
11741         (print_insn): Likewise.
11742         * stmt.c (label_rtx): Promote return type to rtx_insn.
11743         (force_label_rtx): Likewise.
11744         (jump_target_rtx): Define new function.
11745         (expand_label): Use it, get rid of one cast.
11746         (expand_naked_return): Promote rtx to rtx_code_label.
11747         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
11748         (expand_case): Use rtx_code_label instread of rtx where feasible.
11749         (expand_sjlj_dispatch_table): Likewise.
11750         (emit_case_nodes): Likewise.
11751         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
11752         * store-motion.c (insert_store): Make use of new return type of
11753         gen_move_insn and remove a cast.
11754         (replace_store_insn): Likewise.
11756 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
11758         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
11759         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
11761 2015-05-20  Jeff Law  <law@redhat.com>
11763         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
11764         dispose of the jump thread path when the jump threading
11765         opportunity is cancelled.
11767 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11769         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
11770         when printing the caret character.
11772 2015-05-20  Marek Polacek  <polacek@redhat.com>
11774         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
11776 2015-05-20  Marek Polacek  <polacek@redhat.com>
11778         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
11779         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
11780         * gimple-fold.c (canonicalize_bool): Likewise.
11781         (same_bool_result_p): Likewise.
11782         * tree-if-conv.c (parse_predicate): Likewise.
11784 2015-05-20  Marek Polacek  <polacek@redhat.com>
11786         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
11787         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
11789 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11791         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
11792         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
11793         values.
11795 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
11797         * config/mips/mips.h (micromips_globals): Declare.
11799 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
11801         * timevar.def (TV_INITIALIZE_RTL): New.
11802         * toplev.c (initialize_rtl): Use an auto_timevar to account this
11803         function's time to TV_INITIALIZE_RTL.
11805 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
11807         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
11808         gimple_build_nop calls.
11809         (chkp_find_bounds_for_elem): Likewise.
11810         (chkp_get_zero_bounds): Likewise.
11811         (chkp_get_none_bounds): Likewise.
11812         (chkp_get_bounds_by_definition): Likewise.
11813         (chkp_generate_extern_var_bounds): Likewise.
11814         (chkp_get_bounds_for_decl_addr): Likewise.
11815         (chkp_get_bounds_for_string_cst): Likewise.
11817 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
11819         PR tree-optimization/65447
11820         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
11821         (dump_use, dump_uses): Support to dump sub use.
11822         (record_use): New parameters to support sub use.  Remove call to
11823         dump_use.
11824         (record_sub_use, record_group_use): New functions.
11825         (compute_max_addr_offset, split_all_small_groups): New functions.
11826         (group_address_uses, rewrite_use_address): New functions.
11827         (strip_offset): New declaration.
11828         (find_interesting_uses_address): Call record_group_use.
11829         (add_candidate): New assertion.
11830         (infinite_cost_p): Move definition forward.
11831         (add_costs): Check INFTY cost and return immediately.
11832         (get_computation_cost_at): Clear setup cost and dependent bitmap
11833         for sub uses.
11834         (determine_use_iv_cost_address): Compute cost for sub uses.
11835         (rewrite_use_address_1): Rename from old rewrite_use_address.
11836         (free_loop_data): Free sub uses.
11837         (tree_ssa_iv_optimize_loop): Call group_address_uses.
11839 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11840             Jim Wilson  <jim.wilson@linaro.org>
11842         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
11843         new  fields loadv and storev.
11844         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
11845         Initialize loadv and storev.
11846         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
11847         (cortexa53_extra_costs): Likewise.
11848         (cortexa57_extra_costs): Likewise.
11849         (xgene1_extra_costs): Likewise.
11850         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
11851         rtx_costs.
11853 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
11855         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
11856          storev.
11857         (cortexa8_extra_costs): Likewise.
11858         (cortexa5_extra_costs): Likewise.
11859         (cortexa7_extra_costs): Likewise.
11860         (cortexa12_extra_costs): Likewise.
11861         (cortexa15_extra_costs): Likewise.
11862         (v7m_extra_costs): Likewise.
11864 2015-05-20  Jeff Law  <law@redhat.com>
11866         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
11867         instead of open-coded version.  Also delete the jump thread created
11868         within this function.
11870 2015-05-20  Alan Modra  <amodra@gmail.com>
11872         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
11873         stack adjusting insn.  Formatting.
11874         (rs6000_emit_prologue): Track stack adjusting insn, and use of
11875         r12.  If possible, emit first -fsplit-stack arg pointer insn
11876         before stack adjust.  Don't use r12 to save cr if split-stack.
11878 2015-05-20  Alan Modra  <amodra@gmail.com>
11880         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
11881         Define.
11882         (rs6000_supports_split_stack): New function.
11883         * gcc/config/rs6000/rs6000.c (machine_function): Add
11884         split_stack_arg_pointer.
11885         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
11886         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
11887         rather than virtual_incoming_args_rtx.
11888         (rs6000_va_start): Likewise.
11889         (split_stack_arg_pointer_used_p): New function.
11890         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
11891         (morestack_ref): New var.
11892         (gen_add3_const, rs6000_expand_split_stack_prologue,
11893         rs6000_internal_arg_pointer, rs6000_live_on_entry,
11894         rs6000_split_stack_space_check): New functions.
11895         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
11896         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
11897         (UNSPECV_SPLIT_STACK_RETURN): Define.
11898         (split_stack_prologue, load_split_stack_limit,
11899         load_split_stack_limit_di, load_split_stack_limit_si,
11900         split_stack_return, split_stack_space_check): New expands and insns.
11901         * gcc/config/rs6000/rs6000-protos.h
11902         (rs6000_expand_split_stack_prologue): Declare.
11903         (rs6000_split_stack_space_check): Declare.
11905 2015-05-20  Alan Modra  <amodra@gmail.com>
11907         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
11908         (direct_return): Test vrsave_size rather than vrsave_mask.
11909         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
11910         (rs6000_emit_epilogue): Likewise.
11912 2015-05-20  Alan Modra  <amodra@gmail.com>
11914         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
11915         when not saving registers.
11916         (debug_stack_info): Adjust to omit printing unused offsets,
11917         as before.
11918         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
11919         expression.
11921 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11923         PR c++/65835
11924         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
11925         value_type to const char *.
11927 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
11929         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
11930         to build a biarch toolchain again.
11932 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
11934         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
11935         or implicit declarations.
11936         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
11937         into it.
11938         (get_odr_type): Check type has linkage before adding bases.
11939         (register_odr_type): Check that type has linkage before adding it.
11940         (type_known_to_have_no_deriavations_p): Rename to ..
11941         (type_known_to_have_no_derivations_p): This one.
11942         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
11943         (type_known_to_have_no_derivations_p): This one.
11944         * ipa-polymorphic-call.c
11945         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
11946         type has linkage.
11948 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
11950         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
11951         (layout_type): Use RECORD_OR_UNION_TYPE_P.
11953 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11955         * config/s390/s390.c (s390_vector_bool_type_p): New function.
11956         (s390_invalid_binary_op): New function.
11957         (TARGET_INVALID_BINARY_OP): Define macro.
11959 2015-05-19  David Sherwood  <david.sherwood@arm.com>
11961         * loop-invariant.c (create_new_invariant): Don't calculate address cost
11962         if mode is not a scalar integer.
11963         (get_inv_cost): Increase computational cost for unused invariants.
11965 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11967         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
11968         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
11969         * config/s390/s390-builtin-types.def: New file.
11970         * config/s390/s390-builtins.def: New file.
11971         * config/s390/s390-builtins.h: New file.
11972         * config/s390/s390-c.c: New file.
11973         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
11974         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
11975         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
11976         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
11977         prototypes.
11978         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
11979         Include.
11980         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
11981         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
11982         variable definitions.
11983         (s390_const_operand_ok): New function.
11984         (s390_expand_builtin): Rewrite.
11985         (s390_init_builtins): New function.
11986         (s390_handle_vectorbool_attribute): New function.
11987         (s390_attribute_table): Add s390_vector_bool attribute.
11988         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
11989         (s390_branch_condition_mask): Generate masks for new modes.
11990         (s390_expand_vec_compare_cc): New function.
11991         (s390_mangle_type): Add mangling for vector bool types.
11992         (enum s390_builtin): Remove.
11993         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
11994         efpc builtins.
11995         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
11996         s390_cpu_cpp_builtins.
11997         (REGISTER_TARGET_PRAGMAS): New macro.
11998         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
11999         (insn_cmp mode attribute): Add new CC modes.
12000         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12001         (lcbb): New pattern definition.
12002         * config/s390/s390intrin.h: Include vecintrin.h.
12003         * config/s390/t-s390: New file.
12004         * config/s390/vecintrin.h: New file.
12005         * config/s390/vector.md: Include vx-builtins.md.
12006         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12007         support.
12009 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12011         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12012         CCVFHE.
12013         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12014         (s390_select_ccmode): Likewise.
12015         (s390_canonicalize_comparison): Swap operands if necessary.
12016         (s390_expand_vec_compare_scalar): Expand DFmode compare using
12017         single element vector instructions.
12018         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12019         (s390_branch_condition_mask): Generate CC masks for the new modes.
12020         * config/s390/s390.md (v0, vf, vd): New mode attributes.
12021         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12022         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12023         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12024         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12025         (*extend<DSF:mode><BFP:mode>2): New insn definition.
12026         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12027         (extend<DSF:mode><BFP:mode>2): Turn into expander.
12028         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12029         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12030         (sqrt<mode>2): Add vector instruction.
12032 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12034         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12035         constraints.
12036         * config/s390/predicates.md (const0_operand, constm1_operand)
12037         (constable_operand): Accept vector operands.
12038         * config/s390/s390-modes.def: Add supported vector modes.
12039         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12040         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12041         (s390_bytemask_vector_p, s390_expand_vec_strlen)
12042         (s390_expand_vec_compare, s390_expand_vcond)
12043         (s390_expand_vec_init): Add prototypes.
12044         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12045         (s390_vector_mode_supported_p): New function.
12046         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12047         (s390_contiguous_bitmask_vector_p): New function.
12048         (s390_bytemask_vector_p): New function.
12049         (s390_split_ok_p): Vector regs don't work either.
12050         (regclass_map): Add VEC_REGS.
12051         (s390_legitimate_constant_p): Handle vector constants.
12052         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12053         (legitimate_reload_vector_constant_p): New function.
12054         (s390_preferred_reload_class): Handle CONST_VECTOR.
12055         (s390_reload_symref_address):  Likewise.
12056         (s390_secondary_reload): Vector memory instructions only support
12057         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
12058         (s390_emit_ccraw_jump): New function.
12059         (s390_expand_vec_strlen): New function.
12060         (s390_expand_vec_compare): New function.
12061         (s390_expand_vcond): New function.
12062         (s390_expand_vec_init): New function.
12063         (s390_dwarf_frame_reg_mode): New function.
12064         (print_operand): Handle addresses with 'O' and 'R' constraints.
12065         (NR_C_MODES, constant_modes): Add vector modes.
12066         (s390_output_pool_entry): Handle vector constants.
12067         (s390_hard_regno_mode_ok): Handle vector registers.
12068         (s390_class_max_nregs): Likewise.
12069         (s390_cannot_change_mode_class): New function.
12070         (s390_invalid_arg_for_unprototyped_fn): New function.
12071         (s390_function_arg_vector): New function.
12072         (s390_function_arg_float): Remove size variable.
12073         (s390_pass_by_reference): Handle vector arguments.
12074         (s390_function_arg_advance): Likewise.
12075         (s390_function_arg): Likewise.
12076         (s390_return_in_memory): Vector values are returned in a VR if
12077         possible.
12078         (s390_function_and_libcall_value): Handle vector arguments.
12079         (s390_gimplify_va_arg): Likewise.
12080         (s390_call_saved_register_used): Consider the arguments named.
12081         (s390_conditional_register_usage): Disable v16-v31 for non-vec
12082         targets.
12083         (s390_preferred_simd_mode): New function.
12084         (s390_support_vector_misalignment): New function.
12085         (s390_vector_alignment): New function.
12086         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12087         (TARGET_VECTOR_MODE_SUPPORTED_P)
12088         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12089         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12090         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12091         (TARGET_VECTOR_ALIGNMENT): Define target macro.
12092         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12093         (FIRST_PSEUDO_REGISTER): Increase value.
12094         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12095         (VECTOR_REG_P): Define macros.
12096         (FIXED_REGISTERS, CALL_USED_REGISTERS)
12097         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12098         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12099         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12100         Add vector registers.
12101         (CANNOT_CHANGE_MODE_CLASS): Call C function.
12102         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12103         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12104         memory.
12105         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12106         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12107         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12108         (VR*_REGNUM): New constants.
12109         (ALL): New mode iterator.
12110         (INTALL): Remove mode iterator.
12111         Include vector.md.
12112         (movti): Implement TImode moves for VRs.
12113         Disable TImode splitter for VR targets.
12114         Implement splitting TImode GPR<->VR moves.
12115         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12116         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12117         reload<mode>_la_in, reload<mode>_la_out.
12118         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12119         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12120         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12121         (mov<mode> SF SD): Prefer lder, lde for loading.
12122         Add lrl and strl instructions.
12123         Add vector instructions.
12124         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12125         Call s390_expand_vec_strlen on z13.
12126         (*cc_to_int): Change predicate to nonimmediate_operand.
12127         (addti3): Rename to *addti3.  New expander.
12128         (subti3): Rename to *subti3.  New expander.
12129         * config/s390/vector.md: New file.
12131 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12133         * common/config/s390/s390-common.c (processor_flags_table): Add
12134         z13.
12135         * config.gcc: Add z13.
12136         * config/s390/s390-opts.h (enum processor_type): Add
12137         PROCESSOR_2964_Z13.
12138         * config/s390/s390.c (s390_adjust_priority): Check for
12139         PROCESSOR_2964_Z13.
12140         (s390_reorg): Likewise.
12141         (s390_sched_reorder): Likewise.
12142         (s390_sched_variable_issue): Likewise.
12143         (s390_loop_unroll_adjust): Likewise.
12144         (s390_option_override): Likewise. Default to -mvx when available.
12145         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12146         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12147         (TARGET_VX_ABI): Define macros.
12148         macros.
12149         (TARGET_DEFAULT): Add MASK_OPT_VX.
12150         * config/s390/s390.md ("cpu" attribute): Add z13.
12151         ("cpu_facility" attribute): Add vec.
12152         * config/s390/s390.opt (processor_type): Add z13.
12153         (mvx): New options.
12154         * doc/invoke.texi: Add z13 option for -march.
12156 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12158         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12159         mode check to make sure that only scalar integer values are
12160         accepted.
12162 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
12164         * tree.c (verify_type_variant): Fix #undef.
12165         (gimple_canonical_types_compatible_p): Move here from lto.c
12166         (verify_type): Verify TYPE_CANONICAL compatibility.
12167         * tree.h (gimple_canonical_types_compatible_p): Declare.
12169 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
12171         PR middle-end/66199
12172         * tree.h (OMP_TEAMS_COMBINED): Define.
12173         * gimplify.c (enum gimplify_omp_var_data): Add
12174         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12175         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12176         (omp_notice_variable): Accept both ORT_TEAMS
12177         and ORT_COMBINED_TEAMS.  Don't recurse if
12178         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12179         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12180         GOVD_FIRSTPRIVATE.
12181         (omp_no_lastprivate): New function.
12182         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12183         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12184         notice_outer and set appropriate bits, otherwise make
12185         sure default(none) combined constructs won't complain.
12186         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12187         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12188         omp_no_lastprivate either remove the clause or turn it
12189         into OMP_CLAUSE_PRIVATE.
12190         (gimplify_omp_for): Fix up handling of implicit
12191         lastprivate or linear iterators.
12192         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12193         ORT_COMBINED_TEAMS.
12194         * omp-low.c (lower_omp_for_lastprivate): For combined
12195         for simd use fd.loop.n2 from the for rather than simd.
12197 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12199         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12200         instead of gen_rtx_raw_REG.
12201         (cris_expand_epilogue): Likewise.
12202         * config/microblaze/microblaze.c (microblaze_classify_address):
12203         Likewise.
12204         * config/sparc/sparc.md: Likewise.
12206 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
12208         * config/alpha/alpha.c (alpha_legitimize_reload_address)
12209         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12210         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12211         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12212         Use CASE_CONST_SCALAR_INT.
12213         (print_operand) <case 'M'>: Use mode_width_operand to check the
12214         value of the constant.
12215         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12216         * config/alpha/predicates.md (input_operand): Use general_operand
12217         instead of match_code as operand check.
12218         (symbolic_operand): Use match_code with subexpression digits.
12219         * config/alpha/constraints.md (Q): Ditto.
12221 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12223         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12225 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12227         * config/s390/s390.c (s390_secondary_reload): Fix check for
12228         load/store relative.
12230 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12232         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
12233         alternative_mask to uint64_t.
12235 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
12237         PR tree-optimization/66187
12238         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12239         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
12240         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12242 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
12244         * diagnostic.c (diagnostic_report_current_module): Strengthen
12245         local "new_map" from const line_map * to
12246         const line_map_ordinary *.
12247         * genmatch.c (error_cb): Likewise for local "map".
12248         (output_line_directive): Likewise for local "map".
12249         * input.c (expand_location_1): Likewise for local "map".
12250         Pass NULL rather than &map to
12251         linemap_unwind_to_first_non_reserved_loc, since the value is never
12252         read from there, and the value written back not read from here.
12253         (is_location_from_builtin_token): Strengthen local "map" from
12254         const line_map * to const line_map_ordinary *.
12255         (dump_location_info): Strengthen locals "map" from
12256         line_map *, one to const line_map_ordinary *, the other
12257         to const line_map_macro *.
12258         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12259         const line_map * to const line_map_macro *.
12260         (maybe_unwind_expanded_macro_loc): Add a call to
12261         linemap_check_macro when writing to the "map" field of the
12262         loc_map_pair.
12263         Introduce local const line_map_ordinary * "ord_map", using it in
12264         place of "map" in the part of the function where we know we have
12265         an ordinary map.  Strengthen local "m" from const line_map * to
12266         const line_map_ordinary *.
12268 2015-05-19  Nick Clifton  <nickc@redhat.com>
12270         PR target/66156
12271         * config/msp430/msp430.md (zero_extendhisi2): Add support for
12272         separate source and destination registers.
12274 2015-05-19  Richard Biener  <rguenther@suse.de>
12276         PR tree-optimization/66165
12277         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12278         for no load permutation.
12280         PR tree-optimization/66185
12281         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12282         when building the SLP node from scalars.
12284 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12285             Tristan Gingold  <gingold@adacore.com>
12287         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12288         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12289         (expand_stack_restore): Call record_new_stack_level.
12290         (expand_stack_save): Do not call do_pending_stack_adjust.
12291         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12292         * calls.c (expand_call): Call record_new_stack_level for alloca.
12293         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12294         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12295         (update_sjlj_context): New global function.
12296         * except.h (update_sjlj_context): Declare.
12297         * explow.c (record_new_stack_level): New global function.
12298         (allocate_dynamic_stack_space): Call record_new_stack_level.
12299         * explow.h (record_new_stack_level): Declare.
12300         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12301         * cfgrtl.c (duplicate_insn_chain): Likewise.
12303 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12305         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12306         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12307         STACK_GROWS_DOWNWARD as normal if.
12308         (expand_call): Likewise.
12310 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
12312         PR target/54236
12313         * config/sh/sh.md (*round_int_even): New insn_and_split and
12314         accompanying new unnamed split.
12316 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12318         * bitmap.c (bitmap_set_range): Handle count==1 specially.
12319         (bitmap_clear_range): Likewise.
12320         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12321         bitmap_set_range unconditionally.
12322         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12323         * df-scan.c (df_mark_reg): Likewise.
12324         * haifa-sched.c (setup_ref_regs): Likewise.
12325         * sched-rgn.c (update_live_1): Likewise.
12327 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12329         * regs.h (END_HARD_REGNO): Delete.
12330         (END_REGNO): Move to...
12331         * rtl.h: ...here.
12332         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12333         * caller-save.c (mark_set_regs): Likewise.
12334         * combine.c (move_deaths, distribute_notes): Likewise.
12335         * cse.c (invalidate, invalidate_for_call): Likewise.
12336         * df-scan.c (df_ref_record): Likewise.
12337         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12338         (record_last_reg_set_info): Likewise.
12339         * reg-stack.c (convert_regs_exit): Likewise.
12340         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12341         * resource.c (update_live_status): Likewise.
12342         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12344 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12346         * rtl.h (reg_info): Add an nregs field.
12347         (REG_NREGS): Use it.
12348         (SET_REGNO_RAW): Delete.
12349         (set_regno_raw): New function.
12350         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12351         (END_REGNO): Redefine in terms of REG_NREGS.
12352         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12353         SET_REGNO_RAW.
12354         * emit-rtl.c (set_mode_and_regno): Likewise.
12355         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12356         instead of SET_REGNO_RAW.
12358 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12360         * rtl.h (PUT_MODE_RAW): New macro.
12361         (PUT_REG_NOTE_KIND): Use it.
12362         (set_mode_and_regno): Declare.
12363         (gen_raw_REG): Change regno to "unsigned int".
12364         (gen_rtx_REG): Change "unsigned" to "unsigned int".
12365         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12366         use set_mode_and_regno to change the mode of registers.
12367         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12368         * emit-rtl.c (set_mode_and_regno): New function.
12369         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
12370         * caller-save.c (reg_save_code): Use set_mode_and_regno.
12371         * expr.c (init_expr_target): Likewise.
12372         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12373         * postreload.c (reload_cse_simplify_operands): Likewise.
12375 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12377         * caller-save.c (init_caller_save): Use word_mode and
12378         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12379         * expr.c (init_expr_target): Likewise.
12380         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12381         * postreload.c (reload_cse_regs_1): Likewise.
12383 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12385         * rtl.def (REG): Change format to "r".
12386         * rtl.h (rtunion): Remove rt_reg.
12387         (reg_info): New structure.
12388         (rtx_def): Add reg field to main union.
12389         (X0REGATTR): Delete.
12390         (REG_CHECK): New macro.
12391         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12392         * rtl.c (rtx_format): Document "r".
12393         (rtx_code_size): Handle REG specially.
12394         * gengenrtl.c (special_format): Return true for formats
12395         that include 'r'.
12396         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12397         Deal with REG_ATTRS after the field loop.
12398         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12399         * expmed.c (init_expmed): Call gen_raw_REG instead of
12400         gen_rtx_raw_REG.
12401         * expr.c (init_expr_target): Likewise.
12402         * regcprop.c (maybe_mode_change): Likewise.
12403         * varasm.c (make_decl_rtl): Likewise.
12404         * final.c (leaf_renumber_regs_insn): Return early after
12405         handling REGs.
12406         * genemit.c (gen_exp): Handle 'r' fields.
12407         * genpeep.c (match_rtx): Likewise.
12408         * gensupport.c (subst_pattern_match): Likewise.
12409         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12410         (alter_constraints, subst_dup): Likewise.
12411         * read-rtl.c (read_rtx_code): Likewise.
12412         * print-rtl.c (print_rtx): Likewise.
12413         * genrecog.c (find_operand, find_matching_operand): Likewise.
12414         (validate_pattern, match_pattern_2): Likewise.
12415         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12416         (rtx_test::regno_field): New function.
12417         (operator ==, safe_to_hoist_p, transition_parameter_type)
12418         (parameter_type_string, print_parameter_value)
12419         (print_nonbool_test, print_test): Handle new enum values.
12420         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12421         * lra-constraints.c (operands_match_p): Likewise.
12423 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12425         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12426         Change type of new_regno to unsigned int.
12427         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12428         new_regno to unsigned int.
12429         (df_ref_change_reg_with_loc): Remove old_regno parameter.
12430         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
12431         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12432         (SET_REGNO_RAW): Add space after ",".
12434 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12436         * rtl.h (REG_NREGS): New macro
12437         * alias.c (record_set): Use it.
12438         * cfgcleanup.c (mark_effect): Likewise.
12439         * combine.c (likely_spilled_retval_1): Likewise.
12440         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12441         (move_deaths, distribute_notes): Likewise.
12442         * cselib.c (cselib_record_set): Likewise.
12443         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12444         * df-scan.c (df_mark_reg): Likewise.
12445         * dse.c (look_for_hardregs): Likewise.
12446         * dwarf2out.c (reg_loc_descriptor): Likewise.
12447         (multiple_reg_loc_descriptor): Likewise.
12448         * expr.c (write_complex_part, read_complex_part): Likewise.
12449         (emit_move_complex): Likewise.
12450         * haifa-sched.c (setup_ref_regs): Likewise.
12451         * ira-lives.c (mark_hard_reg_live): Likewise.
12452         * lra.c (lra_set_insn_recog_data): Likewise.
12453         * mode-switching.c (create_pre_exit): Likewise.
12454         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
12455         (reload_combine_recognize_pattern): Likewise.
12456         (reload_combine_note_use, move2add_record_mode): Likewise.
12457         (reload_cse_move2add): Likewise.
12458         * reg-stack.c (subst_stack_regs_pat): Likewise.
12459         * regcprop.c (kill_value, copy_value): Likewise.
12460         (copyprop_hardreg_forward_1): Likewise.
12461         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
12462         (build_def_use): Likewise.
12463         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
12464         (deps_analyze_insn): Likewise.
12465         * sched-rgn.c (check_live_1, update_live_1): Likewise.
12466         * sel-sched.c (count_occurrences_equiv): Likewise.
12467         * valtrack.c (dead_debug_insert_temp): Likewise.
12469 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
12471         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
12472         * dse.c (note_add_store): Likewise.
12473         * ira-lives.c (mark_hard_reg_dead): Likewise.
12474         * loop-invariant.c (mark_reg_store): Likewise.
12475         (mark_reg_death): Likewise.
12476         * postreload.c (reload_combine): Likewise.
12477         (reload_combine_note_store): Likewise.
12478         (reload_combine_note_use): Likewise.
12479         * recog.c (peep2_reg_dead_p): Likewise.
12481 2015-05-19  Alan Modra  <amodra@gmail.com>
12483         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
12484         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
12485         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
12486         unused predicates.
12487         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
12488         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
12489         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
12490         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
12492 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
12494         * config/mips/mips.md (JOIN_MODE): New mode iterator.
12495         (join2_load_Store<JOIN_MODE:mode>): New pattern.
12496         (join2_loadhi): Likewise.
12497         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
12498         load-load and store-stores.
12499         * config/mips/mips.opt (mload-store-pairs): New option.
12500         (TARGET_LOAD_STORE_PAIRS): New macro.
12501         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
12502         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
12503         * config/mips/mips.c (mips_load_store_bonding_p): New function.
12505 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
12507         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
12508         explicit swaps.
12509         * dojump.c (do_compare_rtx_and_jump): Likewise.
12510         * expmed.c (emit_store_flag_1): Likewise.
12511         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
12512         * final.c (sprint_ul): Use std::reverse for reversing a string.
12513         * fold-const.c (extract_muldiv_1): Use std::swap.
12514         * genmodes.c (emit_mode_int_n): Likewise.
12515         * ifcvt.c (dead_or_predicable): Likewise.
12516         * ira-build.c (ira_merge_live_ranges): Likewise.
12517         (swap_allocno_copy_ends_if_necessary): Likewise.
12518         * ira.c (ira_setup_alts): Likewise.
12519         * loop-iv.c (iv_analyze_expr): Likewise.
12520         (implies_p): Likewise.
12521         (canon_condition): Likewise.
12522         * lra-constraints.c (swap_operands): Likewise.
12523         * lra-lives.c (lra_merge_live_ranges): Likewise.
12524         * omega.c (swap): Remove.
12525         (bswap): Remove.
12526         (omega_unprotect_1): Use std::swap.
12527         (omega_solve_geq): Likewise.
12528         * optabs.c (expand_binop_directly): Likewise.
12529         (expand_binop): Likewise.
12530         (emit_conditional_move): Likewise.
12531         (emit_conditional_add): Likewise.
12532         * postreload.c (reload_cse_simplify_operands): Likewise.
12533         * reg-stack.c (emit_swap_insn): Likewise.
12534         (swap_to_top): Likewise.
12535         (compare_for_stack_reg): Likewise.
12536         (subst_asm_stack_regs): Likewise.
12537         * reload.c (find_reloads): Likewise.
12538         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
12539         * sel-sched.c (invoke_reorder_hooks): Likewise.
12540         (create_block_for_bookkeeping): Likewise.
12541         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
12542         (lambda_matrix_right_hermite): Use std::swap.
12543         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
12544         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12545         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
12546         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
12547         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
12548         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
12549         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12550         * tree-vrp.c (compare_ranges): Likewise.
12551         * var-tracking.c (add_with_sets): Likewise.
12552         (vt_find_locations): Likewise.
12554 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
12556         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
12557         pie executables.
12558         (FBSD_ENDFILE_SPEC): Likewise.
12559         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
12560         config/freebsd-spec.h.
12561         (ENDFILE_SPEC): Likewise.
12563 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
12564             Richard Henderson  <rth@redhat.com>
12566         PR target/57032
12567         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
12568         Check for a memory location that is not a reference (using an AND)
12569         to an unaligned location here.
12570         * config/alpha/predicates.md (normal_memory_operand): Remove.
12572 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
12574         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
12575         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
12577 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
12579         * config/mips/mips.c (micromips_globals): New variable.
12580         (mips_set_compression_mode): Save and reinitialize target-dependent
12581         state for microMIPS.
12583 2015-05-18  Martin Liska  <mliska@suse.cz>
12585         * dbgcnt.def: Add new counter.
12586         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
12588 2015-05-18  Martin Liska  <mliska@suse.cz>
12590         * dbgcnt.def: Sort counters.
12591         * opts.c (common_handle_option): Do not compile if
12592         -fdbg-cnt-list is enabled.
12594 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12596         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
12597         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
12598         address operator to va_list operand.
12599         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
12600         unconditionally.
12601         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
12602         operand.
12603         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
12604         * config/s390/s390.c (s390_gimplify_va_arg): Same.
12605         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
12607 2015-05-18  Tom de Vries  <tom@codesourcery.com>
12609         * tree-ssa-tail-merge.c: Fix whitespace.
12611 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
12613         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
12614         cortex-a17, and cortex-a17.cortex-a7.
12616 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
12618         PR target/54236
12619         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
12621 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
12623         PR target/66174
12624         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
12625         QImode inner modes for TARGET_AVX512BW.  Force mask operand
12626         to a register for AVX512F modes.
12628 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12630         * toplev.c (emit_debug_global_declarations): Do not output debug info
12631         when doing slim LTO objects.
12633 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12635         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
12636         odr_types_equivalent_p): Declare.
12637         (odr_type_p): Use gcc_checking_assert.
12638         (type_in_anonymous_namespace_p) Declare.
12639         (type_with_linkage_p): Declare.
12640         * common.opt (Wlto-type-mismatch): New warning.
12641         * ipa-devirt.c (compound_type_base): New function.
12642         (odr_or_derived_type_p): New function.
12643         (odr_types_equivalent_p): New function.
12644         (add_type_duplicate): Simplify.
12645         (type_with_linkage_p): Add hack to prevent false positives on C types
12646         (type_in_anonymous_namespace_p): Likewise.
12647         * tree.c (need_assembler_name_p): Use type_with_linkage.
12648         * tree.h (type_in_anonymous_namespace_p): Remove.
12649         * doc/invoke.texi (-Wlto-type-mismatch): Document
12651 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
12653         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
12654         (verify_type): Verify STRING_FLAG.
12656 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12658         PR fortran/44054
12659         * tree-pretty-print.c (percent_K_format): Replace locus pointer
12660         with accessor function.
12661         * tree-diagnostic.c (diagnostic_report_current_function): Use
12662         diagnostic_location function.
12663         (maybe_unwind_expanded_macro_loc): Likewise.
12664         (virt_loc_aware_diagnostic_finalizer): Likewise.
12665         (default_tree_printer): Replace locus pointer with accessor function.
12666         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
12667         (diagnostic_set_info_translated): Initialize second location.
12668         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
12669         (diagnostic_show_locus): Handle two locations. Call
12670         diagnostic_print_caret_line.
12671         (diagnostic_print_caret_line): New.
12672         (default_diagnostic_starter): Use diagnostic_location function.
12673         (diagnostic_report_diagnostic): Use diagnostic_location function.
12674         (verbatim): Do not set text.locus.
12675         * diagnostic.h (struct diagnostic_info): Remove location field.
12676         (struct diagnostic_context): Make caret_chars an array of two.
12677         (diagnostic_location): New inline.
12678         (diagnostic_expand_location): Handle two locations.
12679         (diagnostic_same_line): New inline.
12680         (diagnostic_print_caret_line): Declare.
12681         (CARET_LINE_MARGIN): New constant.
12682         * pretty-print.c (pp_printf): Do not set text.locus.
12683         (pp_verbatim): Do not set text.locus.
12684         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
12685         (struct text_info): Replace locus pointer with locations
12686         array. Add accessor functions.
12688 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
12689             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12691         PR target/65768
12692         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
12693         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
12694          large constants in register instead of splitting them.
12696 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
12698         PR target/66140
12699         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
12700         replacements in memory addresses.
12701         (get_unaligned_address): Ditto.
12703 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
12705         * config/ft32/*: New files for FT32 port.
12706         * doc/install.texi: Add FT32 information.
12707         * doc/invoke.texi: Add FT32 information.
12708         * doc/md.texi: Add FT32 information.
12709         * doc/contrib.texi: Self added.
12711 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
12713         PR tree-optimization/64454
12714         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
12715         (-1 - A -> ~A): Remove unnecessary condition.
12717 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
12719         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
12720         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
12721         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
12723 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
12725         * ipa-chkp.h (chkp_wrap_function): New.
12726         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
12727         (chkp_wrap_function_name): New.
12728         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
12729         to get wrapper name.
12730         * lto-cgraph.c: Include ipa-chkp.h.
12731         (input_cgraph_1): Avoid alias chain for wrappers.
12733 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
12735         PR middle-end/66134
12736         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
12737         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
12739 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12741         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
12742         (AARCH64_FL_SLOWMUL): Delete.
12743         (AARCH64_FL_CRC): Redefine to 1<<3.
12744         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
12746 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12748         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
12749         casting.
12751 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
12753         * config/alpha/alpha.md (extendqidi2): Use general_operand
12754         instead of some_operand for operand[1] predicate.
12755         (extendhidi2): Ditto.
12756         (cbranchdi4): Use general_operand instead of some_operand
12757         for operand[1] and operands[2] predicates.
12758         (cstoredi4): Ditto.
12759         * config/alpha/predicates.md (some_operand): Remove unused predicate.
12760         (some_ni_operand): Ditto.
12762 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
12764         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
12765         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
12766         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
12767         low part of the constant using alpha_emit_set_const_1.
12768         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
12770 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
12772         * varasm.c (output_constant_pool_1): Pass down alignment from
12773         constant pool entry's descriptor to output_constant_pool_2.
12774         (output_object_block): Add comment prior to call to
12775         output_constant_pool_1.
12777 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
12779         PR rtl-optimization/65862
12780         * target.def (ira_change_pseudo_allocno_class): New hook.
12781         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
12782         value of the hook.
12783         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
12784         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
12785         hook.
12786         * ira-costs.c (find_costs_and_classes): Call the hook and change
12787         classes when it is necessary.
12788         * doc/tm.texi: Update.
12790 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
12792         * config/i386/i386.md (sibcall_memory): Check that register with
12793         callee address is not also used as one of the arguments, instead
12794         of checking that it is not live after the sibcall.
12795         (sibcall_pop_memory): Ditto.
12796         (sibcall_value_memory): Ditto.
12797         (sibcall_value_pop_memory): Ditto.
12799 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
12801         * generic-match-head.c (types_match): Handle non-types.
12802         * gimple-match-head.c (types_match): Likewise.
12803         * match.pd: Remove unnecessary TREE_TYPE for types_match.
12805 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
12807         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
12808         (csneg3<mode>_insn): Enable expansion of pattern.
12810 2015-05-14  Nick Clifton  <nickc@redhat.com>
12812         * config/rl78/rl78.c (rl78_select_section): Select the correct
12813         default section based upon the category of the decl.
12815 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12817         PR rtl-optimization/30967
12818         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
12819         destination mode for the cost of scc patterns.
12821 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
12823         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
12824         using SWIM248 mode iterator.
12825         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
12826         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
12827         for operand[2] constraint.
12828         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
12830 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
12832         PR middle-end/66133
12833         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
12834         make sure it is never noreturn, even when the task body does not
12835         return.
12836         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
12837         right before GIMPLE_OMP_RETURN.
12838         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
12839         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
12840         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
12842 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12844         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
12845         * tree-ssa-math-opts.c: Include params.h
12846         (pow_synth_sqrt_info): New struct.
12847         (representable_as_half_series_p): New function.
12848         (get_fn_chain): Likewise.
12849         (print_nested_fn): Likewise.
12850         (dump_fractional_sqrt_sequence): Likewise.
12851         (dump_integer_part): Likewise.
12852         (expand_pow_as_sqrts): Likewise.
12853         (gimple_expand_builtin_pow): Use above to attempt to expand
12854         pow as series of square roots.  Removed now unused variables.
12856 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
12858         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
12859         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
12860         Remove *p0 and *p1 arguments.  Rewrite function.
12861         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
12862         (alpha_split_const_mov): Update calls to alpha_extract_integer and
12863         alpha_emit_set_long_const.
12864         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
12865         (alpha_output_mi_thunk_osf): Ditto.
12866         * config/alpha/alpha.md (movti): Do not check operands[1]
12867         for CONST_DOUBLE.
12869 2015-05-13  Richard Biener  <rguenther@suse.de>
12871         PR tree-optimization/66129
12872         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
12873         commutative.
12874         (vect_schedule_slp_instance): Fix typo.
12876 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
12878         * common.opt (fdump-internal-locations): New option.
12879         * input.c: Include diagnostic-core.h.
12880         (get_end_location): New function.
12881         (write_digit): New function.
12882         (write_digit_row): New function.
12883         (dump_location_range): New function.
12884         (dump_labelled_location_range): New function.
12885         (dump_location_info): New function.
12886         * input.h (dump_location_info): New prototype.
12887         * toplev.c (compile_file): Handle flag_dump_locations.
12889 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
12891         * gimple-expr.h (is_gimple_constant): Reorder.
12892         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
12894 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
12896         * combine.c (simplify_set): When generating a CC set, if the
12897         source already is in the correct mode, do not wrap it in a
12898         compare.  Simplify the rest of that code.
12900 2015-05-13  Richard Biener  <rguenther@suse.de>
12902         PR tree-optimization/66123
12903         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
12904         a taken edge.
12906 2015-05-13  Richard Biener  <rguenther@suse.de>
12908         PR middle-end/66110
12909         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
12910         specially.
12911         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
12913 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
12915         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
12916         * aclocal.m4: Regenerated with automake-1.11.6.
12918 2015-05-13  Tom de Vries  <tom@codesourcery.com>
12920         PR tree-optimization/66010
12921         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
12922         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
12923         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
12924         and rval based on do_deref.
12926 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12928         PR target/65103
12929         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
12930         link time constants into adress expressions and therefore set
12931         their cost to 0.
12933 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
12935         PR target/66112
12936         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
12937         Use SWI248 iterator instead of SWI.
12938         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
12939         Use eq_attr "alternative" "0" instead of match_test in
12940         length_immediate attribute computation.
12941         (*mulvhi4, *mulvhi4_1): New define_insns.
12943         PR target/66112
12944         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
12945         SIGNED to get precision of non-negative value.
12947 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
12949         PR target/66048
12950         * function.c (diddle_return_value_1): Process bounds first.
12951         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
12952         register.
12954 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12956         PR rtl-optimization/64616
12957         * loop-invariant.c (can_move_invariant_reg): New.
12958         (move_invariant_reg): Call above new function to decide whether
12959         instruction can just be moved, skipping creation of temporary
12960         register.
12962 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12964         PR target/pr66047.c
12965         * i386.c (ix86_function_sseregparm): Only return -1 if local function
12966         with implied regparm is called from -mno-sse function.
12967         (init_cumulative_args): Output error if ix86_function_sseregparm
12968         return -1 and SSE register would be needed.
12969         (function_arg_advance_32): Likewise.
12970         (function_arg_32): Likewise.
12971         * i386.h (ix86_args): Add decl field.
12973 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
12975         PR ipa/65873
12976         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
12977         inlines across optimization boundary.
12979 2015-05-12  Jason Merrill  <jason@redhat.com>
12981         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
12982         string literal and macro name.
12984 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
12986         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
12987         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
12988         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
12990 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
12992         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
12993         (-Wmisleading-indentation): New option.
12994         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
12996 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
12998         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
12999         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13000         (alpha_extract_integer): Ditto.
13001         (alpha_legitimate_constant_p): Ditto.
13002         (alpha_split_tmode_pair): Ditto.
13003         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13004         (alpha_expand_mov): Ditto.
13005         (print_operand): Remove handling of 'H' modifier.
13006         <case 'm'>: Remove CONST_DOUBLE handling.
13007         (summarize_insn): Handle CONST_WIDE_INT.
13008         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13009         (anddi3): Ditto.
13010         (movti): Handle CONST_WIDE_INT.
13011         * config/alpha/constraints.md ('H'): Remove constraint definition.
13012         ('G'): Do not match MODE_FLOAT class.
13013         * config/alpha/predicates.md (const0_operand): Also match
13014         const_wide_int.
13015         (non_add_const_operand): Ditto.
13016         (non_zero_const_operand): Ditto.
13017         (some_operand): Ditto.
13018         (input_operand): Ditto.  Handle CONST_WIDE_INT.
13019         (and_operand): Do not match const_double.
13020         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13022 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
13024         PR target/65697
13025         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13026         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13027         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13028         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13029         is_mm_seq_cst, is_mm_sync): New accessor functions.
13030         * builtins.c (expand_builtin_sync_operation,
13031         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13032         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13033         (get_memmodel,  expand_builtin_atomic_compare_exchange,
13034         expand_builtin_atomic_load, expand_builtin_atomic_store,
13035         expand_builtin_atomic_clear): Use new accessor routines.
13036         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13037         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13038         (maybe_emit_sync_lock_test_and_set): Use new accessors and
13039         MEMMODEL_SYNC_ACQUIRE.
13040         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13041         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13042         expand_atomic_store): Use new accessors.
13043         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13044         * tsan.c (instrument_builtin_call): Update check for memory model beyond
13045         final enum to use MEMMODEL_LAST.
13046         * c-family/c-common.c: Use new accessor for memmodel_base.
13047         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13048         accessors.
13049         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13050         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13051         mem_thread_fence, *dmb): Likewise.
13052         * config/alpha/alpha.c (alpha_split_compare_and_swap,
13053         alpha_split_compare_and_swap_12): Likewise.
13054         * config/arm/arm.c (arm_expand_compare_and_swap,
13055         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13056         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13057         atomic_loaddi): Likewise.
13058         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13059         Likewise.
13060         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13061         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13062         use new accessors.
13063         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13064         atomic_store<mode>, atomic_compare_and_swap<mode>,
13065         atomic_exchange<mode>): Use new accessors.
13066         * config/mips/mips.c (mips_process_sync_loop): Likewise.
13067         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13068         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13069         rs6000_post_atomic_barrier): Add new cases.
13070         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13071         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13072         (atomic_load<mode>): Add new cases and use new accessors.
13073         (store_quadpti): Add new cases.
13074         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13075         accessors.
13076         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13077         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13078         model, not 8.
13080 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
13082         * ipa-devirt.c (type_with_linkage_p): New function.
13083         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13084         type has linkage.
13085         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13086         (can_be_name_hashed_p): Simplify.
13087         (hash_odr_name): Check that type has linkage before checking if it is
13088         anonymous.
13089         (types_same_for_odr): Likewise.
13090         (odr_name_hasher::equal): Likewise.
13091         (odr_subtypes_equivalent_p): Likewise.
13092         (warn_types_mismatch): Likewise.
13093         (get_odr_type): Likewise.
13094         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13095         * ipa-utils.h (odr_type_p): Move offline.
13096         * tree.c (need_assembler_name_p): Fix handling of types
13097         without linkages.
13098         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13100 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
13102         * timevar.c (timevar_enable): Delete in favor of...
13103         (g_timer): New global.
13104         (struct timevar_def): Move to timevar.h inside class timer.
13105         (struct timevar_stack_def): Likewise.
13106         (timevars): Delete global in favor of field "m_timevars" within
13107         class timer in timevar.h
13108         (stack): Likewise, in favor of field "m_stack".
13109         (unused_stack_instances): Likewise, in favor of field
13110         "m_unused_stack_instances".
13111         (start_time): Likewise, in favor of field "m_start_time".
13112         (get_time): Eliminate check for timevar_enable.
13113         (timer::timer): New function, built from part of timevar_init.
13114         (timevar_init): Rewrite idempotency test from using
13115         "timevar_enable" bool to using dynamic allocation of "g_timer".
13116         Move rest of implementation into timer's constructor.
13117         (timevar_push_1): Rename to...
13118         (timer::push): ...this, adding "m_" prefixes to variables that
13119         are now fields of timer.
13120         (timevar_pop_1): Likewise, rename to...
13121         (timer::pop): ...this, and add "m_" prefixes.
13122         (timevar_start): Replace test for "timevar_enable" with one for
13123         "g_timer", and move bulk of implementation to...
13124         (timer::start): ...here, adding "m_" prefixes.
13125         (timevar_stop): Likewise, from here...
13126         (timer::stop): ...to here.
13127         (timevar_cond_start): Likewise, from here...
13128         (timer::cond_start): ...to here.
13129         (timevar_cond_stop): Likewise, from here...
13130         (timer::cond_stop): ...to here.
13131         (validate_phases): Rename to...
13132         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
13133         locals "total" and "tv" const.
13134         (timevar_print): Rename to...
13135         (timer::print): ...this, and add "m_" prefixes.  Make locals
13136         "total" and "tv" const.  Eliminate test for timevar_enable.
13137         * timevar.h (timevar_enable): Eliminate.
13138         (g_timer): New declaration.
13139         (timevar_push_1): Eliminate.
13140         (timevar_pop_1): Eliminate.
13141         (timevar_print): Eliminate.
13142         (class timer): New class.
13143         (timevar_push): Rewrite to use g_timer.
13144         (timevar_pop): Likewise.
13145         * toplev.c (toplev::~toplev): Likewise.
13147 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
13149         * arm-protos.h (arm_sched_autopref): Delete.
13150         (tune_params): Re-organize, use enums for flag values.
13151         (FUSE_OPS): New macro.
13152         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13153         (ARM_PREFETCH_BENEFICIAL): Likewise.
13154         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13155         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13156         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13157         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13158         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13159         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
13160         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13161         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13162         format.
13163         (arm_option_override, thumb2_reorg, arm_print_tune_info)
13164         (aarch_macro_fusion_pair_p): Update uses of current_tune.
13165         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13167 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
13169         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13170         "break".
13172 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
13173             Sandra Loosemore <sandra@codesourcery.com>
13175         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13176         value.
13177         (REG_CLASS_NAMES): Add "IJMP_REGS".
13178         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13179         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13180         use new "c" register constraint.
13181         * config/nios2/constraint.md (c): New register constraint
13182         corresponding to IJMP_REGS.
13184 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13186         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13187         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13188         define_splits): Delete, revamp, transmogrify into ...
13189         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13190         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13191         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13192         New.
13194 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13196         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13197         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13199 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13201         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13202         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13203         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13204         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13205         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13206         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13207         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13208         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13209         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13210         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13211         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13212         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13213         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13214         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13215         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13216         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13217         and 30 corresponding splitters): Delete.
13219 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13221         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13222         zero_extract.
13224 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13226         * combine.c (recog_for_combine_1): New function, factored out
13227         from recog_for_combine.
13228         (change_zero_ext): New function.
13229         (recog_for_combine): If recog fails, try again with the pattern
13230         modified by change_zero_ext; if that still fails, restore the
13231         pattern.
13233 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
13235         * combine.c (get_undo_marker): New function.
13236         (undo_to_marker): New function, largely factored out from ...
13237         (undo_all): ... this.  Adjust.
13239 2015-05-12  Richard Biener  <rguenther@suse.de>
13241         PR tree-optimization/66101
13242         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13243         fixup if we turn a loop exit edge to a fallthru edge.
13245 2015-05-12  Richard Biener  <rguenther@suse.de>
13247         PR tree-optimization/37021
13248         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13249         (SLP_TREE_TWO_OPERATORS): New define.
13250         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13251         SLP_TREE_TWO_OPERATORS.
13252         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13253         SLP node.
13254         (vect_build_slp_tree): Adjust.
13255         (vect_analyze_slp_cost_1): Likewise.
13256         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13257         emitting two vector stmts and mixing the results.
13259 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13261         * call.c (print_z_candidates): Remove dead code.
13263 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13265         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13266         and zEC12_simple_fp.
13267         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13268         to 1.
13270 2015-05-12  Tom de Vries  <tom@codesourcery.com>
13272         PR tree-optimization/66010
13273         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13274         ifn_va_arg.
13275         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13276         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
13277         va_lists are passed, and remove corresponding handling.
13278         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
13279         do_deref argument to ifn_va_arg.
13280         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13281         ifn_va_arg.
13283 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13285         PR target/65955
13286         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13287         REG before taking its REGNO.
13289 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13291         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13292         rsp->sign_bit_copies and rsp->nonzero_bits into ...
13293         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
13294         present to get more accurate information about the number of sign bit
13295         copies and non zero bits.
13297 2015-05-12  Richard Biener  <rguenther@suse.de>
13299         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13300         do not allow unrolling.
13302 2015-05-11  Richard Henderson  <rth@redhat.com>
13304         * config/i386/i386-modes.def (CCP): New.
13305         * config/i386/i386.c (put_condition_code): Handle it.
13306         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13308 2015-05-11  Richard Henderson  <rth@redhat.com>
13310         * target.def (md_asm_clobbers): Replace with...
13311         (md_asm_adjust): this.
13312         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13313         (TARGET_MD_ASM_ADJUST): New.
13314         * tm.texi: Rebuild.
13315         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13316         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13317         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13319         * cfgexpand.c (check_operand_nalternatives): Accept vector of
13320         constraints instead of lists of outputs and inputs.
13321         (expand_asm_stmt): Save and restore input_location around the
13322         body of the function.  Move asm data into vectors instead of
13323         building tree lists.  Generate cleanup sequences as needed,
13324         rather than waiting til the end.  Use new md_asm_adjust hook.
13326         * config/vxworks.c: Include vec.h before target.h.
13327         * gimple.c: Likewise.
13328         * incpath.c: Likewise.
13329         * mode-switching.c: Likewise.
13331         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13332         (cris_md_asm_adjust): this.
13333         (TARGET_MD_ASM_CLOBBERS): Remove.
13334         (TARGET_MD_ASM_ADJUST): New.
13335         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13336         (ix86_md_asm_adjust): this.
13337         (TARGET_MD_ASM_CLOBBERS): Remove.
13338         (TARGET_MD_ASM_ADJUST): New.
13339         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13340         (mn10300_md_asm_adjust): this.
13341         (TARGET_MD_ASM_CLOBBERS): Remove.
13342         (TARGET_MD_ASM_ADJUST): New.
13343         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13344         (rs6000_md_asm_adjust): this.
13345         (TARGET_MD_ASM_CLOBBERS): Remove.
13346         (TARGET_MD_ASM_ADJUST): New.
13347         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13348         (visium_md_asm_adjust): this.
13349         (TARGET_MD_ASM_CLOBBERS): Remove.
13350         (TARGET_MD_ASM_ADJUST): New.
13352 2015-05-11  Richard Henderson  <rth@redhat.com>
13354         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13355         if noutputs is zero.
13356         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13358         * cfgexpand.c (expand_asm_operands): Merge into...
13359         (expand_asm_stmt): ... here.
13361         * cfgexpand.c (expand_asm_operands): Don't call
13362         resolve_asm_operand_names.
13363         * stmt.c (resolve_asm_operand_names): Clarify block comment.
13365 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
13367         * dwarf2out.c (gen_member_die): Sanity check that we access
13368         TYPE_MAIN_VARIANT for TYPE_METHODS.
13369         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13370         checking TYPE_METHODS.
13371         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13372         if non-null.
13373         (build_distinct_type_copy): Clear TYPE_METHODS.
13374         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13375         (verify_type): Allow TYPE_METHODS to be error_mark_node.
13376         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13378 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
13380         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13381         (emit_pattern_before_setloc): Likewise.
13383 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13385         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13386         for define_peephole2s.
13387         (get_peephole2_pattern): New function.
13388         (main): Use it.  Call validate_pattern.
13390 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13392         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13393         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13394         (Last callee saved reg is different for AVR_TINY architecture)
13396 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13398         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13399         when looking for memory references.
13401 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13403         PR target/65753
13404         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13405         via function pointers.
13407 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
13409         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13410         indirect call by forcing address into a pseudo with -fno-plt.
13411         * common.opt (flag_plt): New option.
13412         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13413         ([-fno-plt]): Document.
13415 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
13417         PR bootstrap/66105
13418         * config/rs6000/option-defaults.h: Add space between string literal
13419         and macro name.
13421 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
13423         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13424         accross ARM targets.
13426 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13428         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13429         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13431 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
13433         PR rtl-optimization/66076
13434         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13435         Don't grow the heap array if it is already big enough from a
13436         previous iteration.
13438 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13440         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13441         (is_called_in_ARM_mode): Remove.
13442         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13443         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13444         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13445          arm_declare_function_name.
13447 2015-05-11  Christian Bruel  <christian.bruel@st.com>
13449         * config/arm/arm.c (arm_option_override): Reoganized and split into :
13450         (arm_option_params_internal); New function.
13451         (arm_option_check_internal): New function.
13452         (arm_option_override_internal): New function.
13453         (thumb_code, thumb1_code): Remove.
13454         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
13455         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
13456         (thumb_code, thumb1_code): Remove.
13457         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
13459 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
13461         * config/alpha/alpha.c (alpha_emit_set_const_1)
13462         (alpha_emit_set_long_const, alpha_extract_integer)
13463         (alpha_legitimate_constant_p, alpha_split_const_mov)
13464         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
13465         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13466         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
13467         HOST_WIDE_INT_1U.
13468         * config/alpha/predicates.md (mode_mask_operand): Do not match
13469         const_double RTX.
13470         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13471         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
13472         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
13473         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13474         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
13476 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
13478         PR target/65780
13479         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
13480         default_binds_local_p_2.
13481         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
13482         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
13484 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13486         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
13488 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13490         Patch by Richard Biener
13491         * coverage.c (coverage_obj_init): Delay building of type variant
13492         until the type is finished.
13494 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13496         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
13497         mismatch between C and C++ type; compoare correctly ARG_TYPES
13498         for non-prototypes and output correctly parameter index for METHOD_TYPE.
13499         (odr_types_equivalent_p): Fix wording of warning about attributes;
13500         it is OK to match prototype and non-prototype.
13502 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13504         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
13505         TYPE_ARG_TYPES list.
13506         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
13507         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
13509 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
13511         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
13512         * tree.h (is_lang_specific): Constify.
13514 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
13516         PR tree-optimization/64454
13517         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
13518         Rewrite.
13520 2015-05-08  Jason Merrill  <jason@redhat.com>
13522         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
13523         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
13524         config/darwin.h, config/darwin9.h, config/elfos.h,
13525         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
13526         config/microblaze/microblaze.h, config/mips/mips.h,
13527         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
13528         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
13529         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13530         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
13531         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
13532         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
13533         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
13534         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
13535         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
13536         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
13537         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
13538         between string literal and macro name.
13540 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13542         * jump.c: Change argument types to rtx_insn *.
13543         * rtl.h: Adjust.
13545 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13547         * lra-constraints.c: Change argument type to rtx_insn *.
13549 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13551         * df-problems.c: Change argument type to rtx_insn *.
13553 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13555         * combine.c: Change argument type to rtx_insn *.
13557 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13559         * rtl.h: Adjust.
13560         * rtlanal.c: Change argument type to rtx_insn *.
13562 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13564         * sched-deps.c: Change argument types to rtx_insn *.
13565         * sched-int.h: Adjust.
13567 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13569         * dwarf2cfi.c: Change argument type to rtx_insn *.
13571 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13573         * ira.c (decrease_live_ranges_number): Changetype of local
13574         variable to rtx_insn *.
13575         * recog.c: Change argument types to rtx_insn *.
13576         * recog.h: Adjust.
13578 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13580         * reorg.c: Change argument types to rtx_insn *.
13582 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13584         * ira-color.c: Change argument types to rtx_insn *.
13585         * lra-eliminations.c: Likewise.
13586         * ira.h: Adjust.
13588 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13590         * gcse.c: Change argument types to rtx_insn *.
13592 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13594         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
13596 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13598         * emit-rtl.c (emit_debug_insn_before): Change argument type to
13599         rtx_insn *.
13600         * rtl.h: Adjust.
13602 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13604         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
13605         * rtl.h: Adjust.
13607 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13609         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
13610         * rtl.h: Adjust.
13612 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13614         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
13615         * rtl.h: Adjust.
13617 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13619         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
13620         * rtl.h: Adjust.
13622 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13624         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
13625         to rtx_insn *.
13626         * rtl.h: Adjust.
13628 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13630         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
13631         to rtx_insn *.
13632         * rtl.h: Likewise.
13634 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13636         * except.c (can_nonlocal_goto): Change type of argument to
13637         rtx_insn *.
13638         * rtl.h: Adjust.
13640 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13642         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
13643         * rtl.h: Adjust.
13645 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13647         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
13648         * cfgrtl.c (can_delete_label_p): Adjust.
13649         * rtl.h: likewise.
13651 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13653         * reorg.c (stop_search_p): Change argument to rtx_insn *.
13655 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13657         * except.c (make_reg_eh_region_note): Change argument to
13658         rtx_insn *.
13659         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
13660         * except.h: Adjust.
13662 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13664         * mode-switching.c (commit_mode_sets): Change type of local
13665         variable from rtx to rtx_insn *.
13667 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
13669         * doc/install.texi (--enable-languages): Add missing jit and lto info.
13670         Add ^ to grep command.
13671         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
13672         arg to last gimple_simplify declaration.  Add missing gimple_build
13673         declaration for built-in function case with four tree args.
13675 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
13676             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13678         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
13679         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
13680         (GNU_USER_DYNAMIC_LINKERN32): Update.
13682 2015-05-08  Richard Biener  <rguenther@suse.de>
13684         PR tree-optimization/66036
13685         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13686         Handle strided group loads.
13687         (vect_verify_datarefs_alignment): Likewise.
13688         (vect_enhance_data_refs_alignment): Likewise.
13689         (vect_analyze_group_access): Likewise.
13690         (vect_analyze_data_ref_access): Likewise.
13691         (vect_analyze_data_ref_accesses): Likewise.
13692         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
13693         (vectorizable_load): Likewise.
13695 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
13697         * config/rs6000/rs6000.md: Require operand inequality in one
13698         of the peepholes.
13700 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
13701             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13703         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
13704         from (set ...).
13705         * config/rx/rx.md (movdi, movdf): Likewise.
13706         Likewise for define_peephole2s.
13708 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13710         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
13711         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
13712         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
13713         vtst_u64): Rewrite using gcc vector extensions.
13715 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13717         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
13718         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
13720 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
13722         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
13724 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13726         * config/glibc-stdint.h (OPTION_MUSL): Define.
13727         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
13728         Change the definition based on OPTION_MUSL for 64 bit targets.
13729         * config/linux.h (OPTION_MUSL): Redefine.
13730         * config/alpha/linux.h (OPTION_MUSL): Redefine.
13731         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
13732         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
13734 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
13735             Szabolcs Nagy  <szabolcs.nagy@arm.com>
13737         * config.gcc (LIBC_MUSL): New tm_defines macro.
13738         * config/linux.h (OPTION_MUSL): Define.
13739         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
13740         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
13741         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13742         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13743         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13744         * config/linux.opt (mmusl): New option.
13745         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
13746         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13747         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13748         * configure: Regenerate.
13750 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13751             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13753         PR target/48904
13754         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
13755         * config/i386/knetbsd-gnu64.h: New file.
13757 2015-05-08  Marek Polacek  <polacek@redhat.com>
13759         PR c/64918
13760         * doc/invoke.texi: Document -Woverride-init-side-effects.
13762 2015-05-07  Marek Polacek  <polacek@redhat.com>
13764         PR c/65179
13765         * doc/invoke.texi: Document -Wshift-negative-value.
13767 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
13769         * gcov-tool.c (do_merge): Refactore to remove int ret.
13770         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
13771         !type == FUNC to type != FUNC.
13772         * reload.h (struct target_reload): Changee to type of
13773         x_spill_indirect_levels from bool to unsigned char.
13775 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
13777         * rtl.h (always_void_p): New function.
13778         * gengenrtl.c (always_void_p): Likewise.
13779         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
13780         with code foo are always VOIDmode.
13781         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
13782         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
13783         compare-elim.c, config/aarch64/aarch64.c,
13784         config/aarch64/aarch64.md, config/alpha/alpha.c,
13785         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
13786         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
13787         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
13788         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13789         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
13790         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
13791         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
13792         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
13793         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
13794         config/ia64/vect.md, config/iq2000/iq2000.c,
13795         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
13796         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
13797         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
13798         config/mep/mep.c, config/microblaze/microblaze.c,
13799         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
13800         config/mn10300/mn10300.c, config/msp430/msp430.c,
13801         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
13802         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
13803         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
13804         config/rs6000/altivec.md, config/rs6000/rs6000.c,
13805         config/rs6000/rs6000.md, config/rs6000/vector.md,
13806         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
13807         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
13808         config/sh/sh.md, config/sh/sh_treg_combine.cc,
13809         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
13810         config/spu/spu.md, config/stormy16/stormy16.c,
13811         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
13812         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
13813         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
13814         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
13815         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
13816         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
13817         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
13818         var-tracking.c: Update calls accordingly.
13820 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
13822         PR middle-end/192
13823         PR middle-end/54303
13824         * varasm.c (function_mergeable_rodata_prefix): New function.
13825         (mergeable_string_section): Use it.
13826         (mergeable_constant_section): Use it.
13828 2015-05-07  Jeff Law  <law@redhat.com>
13830         PR target/39726
13831         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13832         simplifier to narrow arithmetic.
13833         * generic-match-head.c: (types_match, single_use): New functions.
13834         * gimple-match-head.c: (types_match, single_use): New functions.
13836 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13838         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
13839         rtx type.
13841 2015-05-07  Richard Biener  <rguenther@suse.de>
13843         PR tree-optimization/66002
13844         * passes.def: Schedule another pass_merge_phi after ifcombine, right
13845         before phiopt.
13847 2015-05-07  Marek Polacek  <polacek@redhat.com>
13848             Martin Uecker  <uecker@eecs.berkeley.edu>
13850         * doc/invoke.texi: Document -fsanitize=bounds-strict.
13851         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
13852         into SANITIZE_NONDEFAULT.
13853         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
13855 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
13857         PR target/66015
13858         * config/alpha/alpha.c (alpha_override_options_after_change): New.
13859         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
13860         (alpha_override_options): Move align_loops, align_jumps and
13861         align_functions handling into alpha_override_options_after_change.
13863 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
13864             Chris Jones  <chrisj@nvidia.com>
13865             Joshua Conner  <jconner@nvidia.com>
13867         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
13868         linking of crtfastmath.o.
13869         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
13871 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
13873         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
13874         (cstore<mode>4_unsigned_imm): New expander.
13875         (cstore<mode>4): Remove empty constraint strings.  Use the new
13876         expanders.
13878 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
13880         PR target/64208
13881         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
13882         alternatives.
13884 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13886         * config/aarch64/geniterators.sh: Use standard BRE in sed.
13888 2015-05-06  Alan Modra  <amodra@gmail.com>
13890         PR target/66033
13891         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
13892         (UNSPEC_NOP): Define.
13893         (reload_vsx_from_gpr<mode>): Add missing DONE.
13894         (reload_gpr_from_vsx<mode>): Likewise.
13895         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
13896         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
13898 2015-05-06  Christian Bruel  <christian.bruel@st.com>
13900         PR target/66015
13901         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
13902         align_jumps, align_functions into aarch64_override_options_after_change.
13904 2015-05-06  Richard Biener  <rguenther@suse.de>
13906         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
13907         vect_transform_slp_perm_load to check if we support a permutation
13908         for basic-block vectorization.
13910 2015-05-06  Nick Clifton  <nickc@redhat.com>
13912         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
13913         used, even if it is not being used as a frame pointer.
13915 2015-05-05  Jason Merrill  <jason@redhat.com>
13917         * dwarf2out.c (gen_member_die): Don't emit anything for an
13918         anonymous class constructor.
13920 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
13922         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
13923         that it reflects the block structure.
13924         (afdo_propagate_edge): Likewise.
13925         (afdo_calculate_branch_prob): Likewise.
13926         (afdo_annotate_cfg): Likewise.
13927         * cfgcleanup.c (equal_different_set_p): Likewise.
13928         (try_crossjump_to_edge): Likewise.
13929         * cgraph.c (cgraph_node::verify_node): Likewise.
13930         * cgraphunit.c (expand_all_functions): Likewise.
13931         * config/i386/i386.c (ix86_expand_copysign): Likewise.
13932         (exact_dependency_1): Likewise.
13933         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
13934         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
13935         * gensupport.c (process_define_subst): Likewise.
13936         * lto-wrapper.c (merge_and_complain): Likewise.
13937         * tree-if-conv.c (if_convertible_bb_p): Likewise.
13938         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
13939         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
13940         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
13941         * tree-vect-loop.c (vectorizable_reduction): Likewise.
13942         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13943         * tree-vect-stmts.c (vectorizable_shift): Likewise.
13944         * tree-vrp.c (vrp_finalize): Likewise.
13945         * tree.c (variably_modified_type_p): Likewise.
13947 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
13949         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
13950         on darwin12 and later.
13951         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
13952         file to pass -rdynamic on darwin12 and later.
13953         * config/darwin.opt (rdynamic): Add.
13955 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13957         * doc/extend.texi (C Extensions): Update menu for moved Variable
13958         Attributes and Type Attributes sections.
13960 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
13962         PR target/65990
13963         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
13964         if rep_8byte stringop strategy was specified for 32-bit target.
13966 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
13968         PR target/65915
13969         * config/i386/i386.md (vector convert to float spltiter): Check for
13970         xmm16+, when splitting scalar float conversion.
13971         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
13973 2015-05-05  Nick Clifton  <nickc@redhat.com>
13975         * config/msp430/msp430-opts.h (enum msp430_regions): New.
13976         * config/msp430/msp430.c (msp430_override_options): Complain if
13977         -mcode-region or -mdata-region is used on a non MSP430X.
13978         (msp430_section_attr): New function.  Checks lower, upper and
13979         either attributes.
13980         (msp430_attribute_table): Add lower, upper and either.
13981         (gen_prefix): New function.  Generates a prefix for a section
13982         name.
13983         (msp430_select_section): New function - handles the choice of
13984         section for an object.  Takes into account memory region
13985         attributes and options.
13986         (msp430_function_section): Use gen_prefix.
13987         (TARGET_SECTION_TYPE_FLAGS): Define.
13988         (msp430_section_type_flags): New function.
13989         (TARGET_ASM_UNIQUE_SECTION): Define.
13990         (msp430_unique_section): New function.
13991         (msp430_output_aligned_decl_common): New function.
13992         (msp430_do_not_relax_short_jumps): New function.
13993         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
13994         Define.
13995         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13996         * config/msp430/msp430-protos.h
13997         (msp430_do_not_relax_short_jumps): New prototype.
13998         (msp430_output_aligned_decl_common): New prototype.
13999         * config/msp430/msp430.md (length): New attribute.
14000         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14001         then use a long code sequence for short jumps.
14002         * config/msp430/msp430.opt (mcode-region): New.
14003         (mdata-region): New.
14004         * doc/invoke.texi: Document new options.
14005         * doc/extend.texi: Document new attributes.
14007 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14009         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14010         (tune_params): Add field branch_costs.
14011         (aarch64_branch_cost): Declare.
14012         * gcc/config/aarch64.c (generic_branch_cost): New.
14013         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14014         (cortexa53_tunings): Likewise.
14015         (cortexa57_tunings): Likewise.
14016         (thunderx_tunings): Likewise.
14017         (xgene1_tunings): Likewise.
14018         (aarch64_branch_cost): Define.
14019         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14021 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14023         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14024         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14025         * config/i386/i386.md: Ditto.
14026         * config/i386/winnt.c: Ditto.
14028 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
14030         * doc/extend.texi (__atomic Builtins): Move implementation details
14031         to the end of the description, rewrite opening paragraphs, state
14032         difference with __sync builtins, state C11/C++11 assumptions,
14033         weaken itemized descriptions, add explanation of memory model
14034         behaviour, expand description of compare-exchange, simplify text.
14036 2015-05-05  Renlin Li  <renlin.li@arm.com>
14038         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14040 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
14042         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14043         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14044         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14045         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14046         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14047         * configure: Regenerate.
14048         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14049         * doc/install.texi (aarch64*-*-*): Document new
14050         --enable-fix-cortex-a53-843419 option.
14051         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14052         and -mno-fix-cortex-a53-843419 options.
14054 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
14056         PR target/65871
14057         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14059 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
14061         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14062         fix overactive TYPE_MIN_VALUE check and add FIXME for type
14063         compatibility problems.
14065 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14067         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14068         constraints.
14069         (cbranchsi4_reg): New.
14070         * config/microblaze/microblaze.c
14071         (microblaze_expand_conditional_branch_reg): New.
14072         * config/microblaze/microblaze-protos.h
14073         (microblaze_expand_conditional_branch_reg): New prototype.
14075 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
14077         * config/microblaze/microblaze.md (peephole2): New.
14079 2015-05-04  Jeff Law  <law@redhat.com>
14081         Revert:
14082         2015-05-04  Jeff Law  <law@redhat.com>
14084         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14085         simplifier to narrow arithmetic.
14086         * generic-match-head.c: (types_match, single_use): New functions.
14087         * gimple-match-head.c: (types_match, single_use): New functions.
14089 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14091         PR target/65987
14092         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14093         (split_branches): Likewise.
14095 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
14097         * common.opt (fdelete-null-pointer-checks): Init to -1.
14098         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14099         override flag_delete_null_pointer_checks default.
14100         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14101         behavior re address zero.  Better document target-specific behavior.
14102         (-fisolate-errneous-paths-dereference): Mention relationship to
14103         -fdelete-null-pointer-checks.
14105 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
14107         PR tree-optimization/65984
14108         * ubsan.c: Include tree-cfg.h.
14109         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14110         stmt_could_throw_p test, rename can_throw variable to ends_bb.
14112 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
14114         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14115         to CONST_DOUBLE_P predicate.
14116         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14117         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14118         allow only operands that satisfy standard_sse_constant_p predicate.
14119         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14120         to CONST_DOUBLE_P predicate.
14122 2015-05-04  Jeff Law  <law@redhat.com>
14124         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14125         simplifier to narrow arithmetic.
14126         * generic-match-head.c: (types_match, single_use): New functions.
14127         * gimple-match-head.c: (types_match, single_use): New functions.
14129 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
14131         * config/arm/arm.c: Restore bootstrap.
14133 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
14135         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14136         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14137         as CONST_WIDE_INT, not CONST_DOUBLE.
14138         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14139         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14140         (ix86_find_base_term): Do not check for CONST_DOUBLE.
14141         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14142         (ix86_build_signbit_mask): Rewrite using wide ints.
14143         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14144         (ix86_rtx_costs): Handle CONST_WIDE_INT.
14145         (find_constant): Ditto.
14146         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14147         using gen_int_mode.
14148         * config/i386/predicates.md (x86_64_immediate_operand)
14149         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14150         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14151         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14152         (const0_operand): Also match const_wide_int.
14153         (constm1_operand): Ditto.
14154         (const1_operand): Ditto.
14156 2015-05-04  Richard Biener  <rguenther@suse.de>
14158         PR tree-optimization/65965
14159         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14160         store groups at gaps.
14162 2015-05-04  Richard Biener  <rguenther@suse.de>
14164         PR tree-optimization/65935
14165         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14166         then make sure to apply that swapping to the IL.
14168 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
14170         * Makefile.in (PATCHLEVEL_c): New variable.
14171         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14172         expand the same way as if DEVPHASE_c was non-empty.
14174 2015-05-04  Kai Tietz  <ktietz@redhat.com>
14176         PR target/65559
14177         * lto-wrapper.c (run_gcc): Open filename
14178         in binary-mode.
14180 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
14182         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
14183         sections up in file, to immediately after the Function Attributes
14184         section.
14186 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
14188         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14190 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14192         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14193         (insert_partition_copy_on_edge): Adjust.
14194         (insert_rtx_to_part_on_edge): Likewise.
14195         (insert_part_to_rtx_on_edge): Likewise.
14197 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14199         * function.c (set_return_jump_label): Change type of argument to
14200         rtx_insn *.
14201         * function.h (set_return_jump_label): Adjust.
14203 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14205         * reload.h (struct reg_equivs_t): Change type of init to
14206         rtx_insn *.
14207         * ira.c (fix_reg_equiv_init): Adjust.
14208         * reload1.c (eliminate_regs_1): Likewise.
14209         (init_eliminable_invariants): Likewise.
14211 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14213         * cselib.c (fp_setter_insn): Take a rtx_insn *.
14214         * cselib.h (fp_setter_insn): Adjust.
14216 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14218         * recog.c (struct validate_replace_src_data): Change type of
14219         insn field to rtx_insn *.
14220         (validate_replace_src_group): Change type of argument to rtx_insn *.
14221         * recog.h (validate_replace_src_group): Adjust.
14223 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14225         * haifa-sched.c: Change the type of some variables to rtx_insn *.
14226         * sched-deps.c: Likewise.
14227         * sched-int.h: Likewise.
14228         * sched-rgn.c: Likewise.
14229         * sel-sched.c: Likewise.
14231 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14233         to rtx_insn *.
14234         * config/i386/i386.c: Change the type of some arguments to
14235         rtx_insn *.
14236         * config/arm/arm.c: Likewise.
14238 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14240         * lra-constraints.c: Change type of some arguments to rtx_insn *.
14242 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14244         * regcprop.c (kill_autoinc_value): Change type of argument to
14245         rtx_insn *.
14247 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14249         * genrecog.c (print_subroutine): Adjust.
14250         * recog.c (get_bool_attr_mask_uncached): Likewise.
14251         * recog.h (struct recog_data_d): Change the type of insn to
14252         rtx_insn *.
14254 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14256         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14258 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14260         * df-problems.c (df_set_note): Change type of argument to
14261         rtx_insn *.
14263 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14265         * builtins.c (expand_builtin_trap): Change type of local
14266         variable to rtx_insn *.
14267         (add_sched_insns_for_speculation): Likewise.
14268         (ix86_emit_save_regs): Likewise.
14269         (get_scratch_register_on_entry): Likewise.
14270         (ix86_emit_restore_reg_using_pop): Likewise.
14271         (ix86_emit_leave): Likewise.
14272         (ix86_emit_restore_regs_using_mov): Likewise.
14273         (ix86_expand_epilogue): Likewise.
14274         Likewise.
14275         (rl78_alloc_physical_registers_umul): Likewise.
14276         * cselib.c (discard_useless_locs): Likewise.
14277         (cselib_invalidate_regno): Likewise.
14278         (cselib_invalidate_mem): Likewise.
14279         * function.c (expand_function_start): Likewise.
14280         (emit_use_return_register_into_block): Likewise.
14281         * gcse.c: Likewise.
14282         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14283         * ifcvt.c (noce_get_alt_condition): Likewise.
14284         * loop-doloop.c (doloop_condition_get): Likewise.
14285         * lra-constraints.c (inherit_in_ebb): Likewise.
14286         * modulo-sched.c (sms_schedule_by_order): Likewise.
14287         * recog.c (next_insn_tests_no_inequality): Likewise.
14288         * reorg.c (emit_delay_sequence): Likewise.
14289         (update_reg_dead_notes): Likewise.
14290         (fix_reg_dead_note): Likewise.
14291         (fill_slots_from_thread): Likewise.
14292         (delete_computation): Likewise.
14294 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
14296         * doc/extend.texi (Variable Attributes): Add menu and proper
14297         @nodes to subsections.  Move Microsoft Windows attributes to
14298         their own subsection.
14299         (Type Attributes): Reorganize introduction to remove duplicate
14300         list of attributes.  Add menu and proper @nodes to subsections.
14301         Alphabetize the main table of common attributes.
14303 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
14305         * match.pd: New simplification patterns.
14306         (x + (x & 1))  -> ((x + 1) & ~1)
14307         (x & ~(x & y)) -> ((x & ~y))
14308         (x | ~(x | y)) -> ((x | ~y))
14310 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14312         * target.def (attribute_table): Mention that struct attribute_spec
14313         is defined in tree-core.h rather than tree.h
14314         * doc/tm.texi: Regenerate.
14316 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
14318         * genrecog.c (test): Rename to rtx_test.  Update rest of file
14319         accordingly.
14321 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14323         PR translation/65959
14324         * params.h (DEFPARAM): Rename msgid to nocmsgid.
14326 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14328         * gcc/config/aarch64/aarch64-protos.h (tune_params):
14329         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14330         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14331         Return value depending on target.
14332         (generic_tunings): Initialize new target settings.
14333         (cortexa53_tunings): Likewise.
14334         (cortexa57_tunings): Likewise.
14335         (thunderx_tunings): Likewise.
14336         (xgene1_tunings): Likewise.
14338 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14340         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14341         Make Cortex-A53 shift costs more accurate.
14343 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14345         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14346         UNSIGNED_FLOAT.
14348 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
14350         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14351         Calculate cost of op0 and op1 in PLUS and MINUS cases.
14353 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14355         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14356         Add cost of op0 in the compare-with-fpzero case.
14358 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
14360         * builtins.c (fold_builtin_1): Remove spurious second
14361         semicolon.
14362         * cgraph.h (symtab_node::get_availability): Likewise.
14363         * opts.c (common_handle_option): Remove spurious second semicolon.
14364         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14365         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14367 2015-04-30  Caroline Tice  <cmtice@google.com>
14369         PR gcov-profile/65929
14370         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14371         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14372         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14373         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14374         * doc/tm.texi: Regenerate.
14375         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
14376         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14377         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
14378         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14380 2015-04-30  Marek Polacek  <polacek@redhat.com>
14382         * varasm.c (handle_cache_entry): Fix logic.
14384 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14386         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14387         (*extrsi5_insn_uxtw_alt): Likewise.
14388         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14389         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14390         operations.
14392 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14394         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14395         fabd in ABS case.
14397 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14399         * config/aarch64/aarch64.md
14400         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14401         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14402         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14403         appropriately.  Handle alternative EON form.
14405 2015-04-30  Renlin Li  <renlin.li@arm.com>
14407         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14408         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14410 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14412         PR ipa/65873
14413         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14414         -fstrict-aliasing boundaries.
14416 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14418         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14419         and [SU]MNEGL patterns.
14421 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14423         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14424         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14425         combined arithmetic-shift ops.  Properly handle all shift and extend
14426         operations that can occur in combination with PLUS/MINUS.
14427         Rename maybe_fma to compound_p.
14428         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14429         arithmetic and shift operations.
14431 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14433         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14434         rather than arith_shift cost when costing ADD/MINUS of an
14435         extended value.
14437 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
14439         PR lto/65948
14440         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14441         to itself.
14443 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
14445         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14446         are for the same position.
14448 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
14450         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
14451         vectorize_loops.
14452         (vectorize_loops): Use it.
14454 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14456         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
14457         for aggregate types.
14458         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
14459         type to be non_ODR.
14460         * tree.c (need_assembler_name_p): Compute mangled name for
14461         non-fundamental types and integer types.
14463 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
14465         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
14466         manual swaps.
14467         * expr.c (expand_expr_real_2): Likewise.
14469 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14471         * tree.c (build_common_builtin_nodes): Do not build
14472         __builtin_alloca_with_align as equivalent of library alloca.
14474 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
14476         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
14477         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
14478         bugus variants.
14479         * tree.c: Include print-tree.h and ipa-utils.h
14480         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
14481         (free_lang_data_in_cgraph): Call verify_type.
14482         (verify_type_variant): New function.
14483         (verify_type): New function.
14484         * tree.h (verify_type): Declare.
14486 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
14488         * config/mips/mips-cpus.def: (mips4): Change default processor
14489         from PROCESSOR_R8000 to PROCESSOR_R10000.
14491 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
14493         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
14494         la/jalr instead of jal.
14496 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
14498         PR target/65871
14499         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
14500         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
14501         (setcc+movzbl peephole2): Check also clobbered reg.
14502         (setcc+andl peephole2): Ditto.
14504 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14506         PR libgomp/65099
14507         * config/nvptx/mkoffload.c (target_ilp32): New variable.
14508         (main): Set it depending on "-foffload-abi=[...]".
14509         (compile_native, main): Use it to pass "-m32" or "-m64" to the
14510         compiler.
14512 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14514         PR target/65770
14515         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
14516         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
14517         Flip lane index back at assembly time for bigendian.
14519 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
14521         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
14522         * gimplify.c (gimplify_omp_workshare): Use it.
14524 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14526         * Makefile.in (build/genrecog.o): Depend on inchash.h.
14527         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
14528         build/inchash.o
14529         * genrecog.c: Rewrite most of the code except for the third page.
14531 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14533         * inchash.h, inchash.c: Include bconfig.h for build objects.
14534         * Makefile.in (build/inchash.o): New rule.
14536 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
14538         PR target/65924
14539         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
14540         number in type attribute expression.
14542 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
14544         * loop-iv.c (canon_condition): Generalize to all types of integer
14545         constant.
14547 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
14549         * gimple-walk.c: Prune duplicate or unneeded includes.
14550         (walk_gimple_asm): Only call parse_input_constraint or
14551         parse_output_constraint if their findings are used.
14552         Honour parse_input_constraint and parse_output_constraint
14553         result.
14555 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
14557         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
14559 2015-04-29  Tom de Vries  <tom@codesourcery.com>
14561         PR tree-optimization/65893
14562         * passes.def (pass_all_optimizations): Move pass_stdarg to after
14563         pass_dce.
14565 2015-04-29  Richard Biener  <rguenther@suse.de>
14567         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14568         compute GROUP_SIZE for basic-block SLP.
14569         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
14570         take into account gaps.
14571         (vect_get_mask_element): Properly reject references to previous
14572         vectors.
14573         (vect_transform_slp_perm_load): Likewise.
14575 2015-04-29  Christian Bruel  <christian.bruel@st.com>
14577         PR target/64835
14578         * config/i386/i386.c (ix86_default_align): New function.
14579         (ix86_override_options_after_change): Call ix86_default_align.
14580         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
14581         (ix86_override_options_after_change): New function.
14583 2015-04-28  Jeff Law  <law@redhat.com>
14585         * tree-ssa-dom.c (record_equality); Fix comment typos.
14587 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14589         PR tree-optimization/65887
14590         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
14592 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
14594         * doc/extend.texi (Declaring Attributes of Functions): Split into
14595         subsections by target.  Alphabetize the table of common attributes.
14596         Rewrite some of the introductory text to reflect the new structure.
14597         Update some cross-references to point to the new subsections.
14598         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
14599         duplicate copies in the discussion of function, label, and type
14600         attributes.
14602 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
14604         PR bootstrap/65910
14605         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
14607 2015-04-28  Jason Merrill  <jason@redhat.com>
14609         PR c++/65734
14610         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
14611         (finalize_type_size): Respect TYPE_USER_ALIGN.
14612         (layout_type) [ARRAY_TYPE]: Likewise.
14614 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
14616         * config/arm/arm.md (*arm_movt): Fix type attribute.
14617         (*cmpsi_shiftsi): Likewise.
14618         (*cmpsi_shiftsi_swp): Likewise.
14619         (*movsicc_insn): Likewise.
14620         (*cond_move): Likewise.
14621         (*if_plus_move): Likewise.
14622         (*if_move_plus): Likewise.
14623         (*if_arith_move): Likewise.
14624         (*if_move_arith): Likewise.
14625         (*if_shift_move): Likewise.
14626         (*if_move_shift): Likewise.
14627         (*arm_movtas_ze): Likewise.
14628         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
14629         redundancy and type attribute.
14630         (*thumb2_movsi_insn): Fix type attribute.
14631         (*thumb2_addsi_short): Likewise.
14632         (thumb2_addsi3_compare0): Likewise.
14633         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
14634         attributes accordingly.
14636 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
14638         PR other/65911
14639         * function.c (pad_to_arg_alignment): Add parentheses.
14641 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
14643         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
14644         libgcc/config/frv/elf-lib.h.
14646 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14648         * tree-call-cdce.c: Fix example in header comment.
14650 2015-04-28  Richard Biener  <rguenther@suse.de>
14652         PR tree-optimization/62283
14653         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
14654         fails fatally and we are vectorizing a basic-block simply
14655         cause the child to be constructed piecewise.
14656         (vect_analyze_slp_cost_1): Adjust.
14657         (vect_detect_hybrid_slp_stmts): Likewise.
14658         (vect_bb_slp_scalar_cost): Likewise.
14659         (vect_get_constant_vectors): For piecewise constructed
14660         constants place them after the last def.
14661         (vect_get_slp_defs): Adjust.
14662         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
14663         externals for basic-block vectorization.
14665 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14667         PR target/63503
14668         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
14669         aarch64-*-*.
14670         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
14671         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
14672         (AARCH64_TUNE_FMA_STEERING): Likewise.
14673         * config/aarch64/aarch64-cores.def: Set
14674         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
14675         FMUL/FMADD instructions.
14676         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
14677         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
14678         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
14679         * config/aarch64/cortex-a57-fma-steering.h: New file.
14680         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14682 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
14684         * gensupport.c (std_preds): Add missing codes to address_operand entry.
14686 2015-04-28  Richard Biener  <rguenther@suse.de>
14688         PR tree-optimization/65851
14689         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
14690         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
14691         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
14692         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
14693         (ccp_visit_phi_node): Adjust.
14694         (evaluate_stmt): For simplifications to SSA names return its
14695         lattice value if that isn't VARYING.  Return immediately when
14696         simplified to a constant.
14697         (visit_assignment): Adjust.
14698         (ccp_visit_stmt): Likewise.
14700 2015-04-28  Tom de Vries  <tom@codesourcery.com>
14702         PR tree-optimization/65818
14703         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
14704         evaluated.
14706 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14708         * calls.c (save_fixed_argument_area): Don't check
14709         ARGS_GROW_DOWNWARD with the preprocessor.
14710         (restore_fixed_argument_area): Likewise.
14711         (mem_overlaps_already_clobbered_arg_p): Likewise.
14712         (check_sibcall_argument_overlap): Likewise.
14713         (expand_call): Likewise.
14714         (emit_library_call_value_1): Likewise.
14715         (store_one_arg): Likewise.
14716         * function.c (assign_parms): Likewise.
14717         (locate_and_pad_parm): Likewise.
14718         (pad_to_arg_alignment): Likewise.
14719         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14721 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14723         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
14724         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
14725         * calls.c (save_fixed_argument_area): Don't chekc if
14726         ARGS_GROW_DOWNWARD is defined.
14727         (restore_fixed_argument_area): Likewise.
14728         (mem_overlaps_already_clobbered_arg_p): Likewise.
14729         (check_sibcall_argument_overlap): Likewise.
14730         (expand_call): Likewise.
14731         (emit_library_call_value_1): Likewise.
14732         (store_one_arg): Likewise.
14733         * function.c (assign_parms): Likewise.
14734         (locate_and_pad_parm): Likewise.
14735         (pad_to_arg_alignment): Likewise.
14736         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14738 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14740         * defaults.h (gen_epilogue): New function.
14741         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
14742         defined.
14743         * cfgrtl.c (cfg_layout_finalize): Likewise.
14744         * df-scan.c: Likewise.
14745         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14746         (reposition_prologue_and_epilogue_notes): Likewise.
14747         * reorg.c (find_end_label): Likewise.
14748         * toplev.c: Likewise.
14750 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14752         * bb-reorder.c (HAVE_return): Don't check if its undefined.
14753         * defaults.h (gen_simple_return): New function.
14754         (gen_simple_return): Likewise.
14755         (HAVE_return): Add default definition to false.
14756         (HAVE_simple_return): Likewise.
14757         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
14758         HAVE_return and HAVE_simple_return are defined.
14759         * function.c (gen_return_pattern): Likewise.
14760         (convert_jumps_to_returns): Likewise.
14761         (thread_prologue_and_epilogue_insns): Likewise.
14762         * reorg.c (find_end_label): Likewise.
14763         (dbr_schedule): Likewise.
14764         * shrink-wrap.c: Likewise.
14765         * shrink-wrap.h: Likewise.
14767 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14769         * defaults.h (EPILOGUE_USES): Add default definition of false.
14770         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
14771         * resource.c (init_resource_info): Likewise.
14773 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14775         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
14776         to false.
14777         * dwarf2out.c (field_byte_offset): REmove check if
14778         PCC_BITFIELD_TYPE_MATTERS is defined.
14779         * stor-layout.c (layout_decl): Likewise.
14780         (update_alignment_for_field): Likewise.
14781         (place_field): Likewise.
14783 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14785         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
14786         true.
14787         * regrename.c (check_new_reg_p): Remove check if
14788         HARD_REGNO_RENAME_OK is defined.
14789         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
14791 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14793         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
14794         * cse.c (fold_rtx): Likewise.
14795         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
14796         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
14797         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
14798         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
14799         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
14800         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
14801         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
14802         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
14803         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
14804         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
14805         * Likewise.
14806         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
14807         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
14808         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
14809         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
14810         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
14811         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
14812         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
14813         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
14814         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
14815         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
14816         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
14817         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
14818         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
14819         * doc/tm.texi: Regenerate.
14820         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
14821         either true or false.
14823 2015-04-27  Jeff Law  <law@redhat.com>
14825         PR tree-optimization/65217
14826         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
14827         of them has a single use, make sure it is the LHS of the implied
14828         copy.
14830 2015-04-28  Alan Modra  <amodra@gmail.com>
14832         PR target/65810
14833         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
14834         (offsettable_ok_by_alignment): Use minimum of decl and toc
14835         pointer alignment.  Replace dead code with assertion.
14836         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
14837         case if size exceeds toc pointer alignment.
14838         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
14839         (rs6000_emit_move): Likewise.
14840         * configure.ac: Add linker toc pointer alignment check.
14841         * configure: Regenerate.
14842         * config.in: Regenerate.
14844 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
14846         * config.gcc: Add h8300-*-linux.
14847         * config/h8300/linux.h: New.
14848         * config/h8300/t-linux: New.
14849         * config/h8300/h8300.c (h8300_option_override): Normal mode
14850         is not supported for h8300-*-linux.
14851         (h8300_file_start): Target priority change.
14852         (get_shift_alg): Likewise.
14853         (h8300_shift_need_scratch_p): Likewise.
14854         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14855         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
14857 2015-04-27  Caroline Tice  <cmtice@google.com>
14859         * final.c (final_scan_insn):  Output cold_function_name as function
14860         type.
14861         * varasm.c (cold_function_name):  Make global.
14862         (assemble_start_function):  Re-set cold_function_name.
14863         (assemble_end_function): Output cold partition size.
14864         * varasm.h (cold_function_name):  Declare global.
14866 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
14868         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
14869         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
14870         constraint.
14871         (*movxi_internal_avx512f): Ditto.
14872         (define_split): Check for xmm16+, when splitting scalar float_extend.
14873         (*extendsfdf2_mixed): Use "v" constraint.
14874         (define_split): Check for xmm16+, when splitting scalar float_truncate.
14875         (*truncdfsf_fast_sse): Use "v" constraint.
14876         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
14877         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
14878         (define_peephole2): Check for xmm16+, when converting scalar
14879         float_truncate.
14880         (define_peephole2): Check for xmm16+, when converting scalar
14881         float_extend.
14882         (*fop_<mode>_comm_mixed): Use "v" constraint.
14883         (*fop_<mode>_comm_sse): Ditto.
14884         (*fop_<mode>_1_mixed): Ditto.
14885         (*sqrt<mode>2_sse): Ditto.
14886         (*ieee_s<ieee_maxmin><mode>3): Ditto.
14888 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14890         * combine.c (simplify_if_then_else): Use std::swap instead
14891         of manually swapping.
14892         (known_cond): Likewise.
14893         (simplify_comparison): Likewise.
14895 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
14897         PR target/64579
14898         * config/rs6000/htm.md: Remove all define_expands.
14899         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
14900         UNSPECV_HTM_TABORTWCI): Remove.
14901         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
14902         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
14903         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
14904         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
14905         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
14906         tabortwci_internal): Remove define_insns.
14907         (tabort<wd>c, tabort<wd>ci): New define_insns.
14908         (tabort): Use gpc_reg_operand.
14909         (tcheck): Remove operand.
14910         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
14911         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
14912         expected value.
14913         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
14914         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
14915         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
14916         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
14917         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
14918         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
14919         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
14920         (tcheck): Remove builtin argument.
14921         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
14922         not TARGET_64BIT.
14923         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
14924         tabortdc and tabortdci builtins when not in 64-bit mode.
14925         Modify code to handle the loss of the HTM define_expands.
14926         Emit code to copy the CR register to TARGET.
14927         (htm_init_builtins): Modify code to handle the loss of the HTM
14928         define_expands.
14929         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
14930         (RS6000_BTC_64BIT): Likewise.
14931         (RS6000_BTC_CR): New macro.
14932         * doc/extend.texi: Update documentation for htm builtins.
14934 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14936         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
14937         of manually swapping.
14938         (simplify_associative_operation): Likewise.
14939         (simplify_binary_operation): Likewise.
14940         (simplify_plus_minus): Likewise.
14941         (simplify_relational_operation): Likewise.
14942         (simplify_ternary_operation): Likewise.
14944 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
14946         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
14947         (xs_hi_nonmemory_operand): Remove error.
14948         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
14949         general_operand rather than xs_hi_general_operand.
14951 2015-04-27  Richard Biener  <rguenther@suse.de>
14953         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
14954         (record_equivalences_from_stmt): Valueize rhs.
14955         (record_equality): Canonicalize x and y order via
14956         tree_swap_operands_p.  Do not swap operands for same loop depth.
14958 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
14960         PR target/65296
14961         PR target/65895
14962         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
14963         Add hint how to use own spec file.
14965 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
14967         PR tree-optimization/65875
14968         * tree-vrp.c (update_value_range): If in is_new case setting
14969         old_vr to VR_VARYING, also set new_vr to it.  Remove
14970         old_vr->type == VR_VARYING test.
14971         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
14972         SSA_PROP_INTERESTING if update_value_range returned true,
14973         but new range is VR_VARYING.
14975 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14977         * combine.c (sign_extend_short_imm): New.
14978         (set_nonzero_bits_and_sign_copies): Use above new function for sign
14979         extension of src short immediate.
14980         (reg_nonzero_bits_for_combine): Likewise for tem.
14982 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14984         * stor-layout.c (self_referential_component_ref_p): New predicate.
14985         (copy_self_referential_tree_r): Use it.
14986         (self_referential_size): Punt for simple operations directly involving
14987         self-referential component references.
14988         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
14990 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
14992         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
14994 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
14996         * vec.h (vec): Make splice arguments const.  Update definitions
14997         accordingly.
14999 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
15001         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15002         alternatives.
15004 2015-04-26  Tom de Vries  <tom@codesourcery.com>
15006         PR tree-optimization/65826
15007         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15009 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
15011         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15012         (*madd3<mode>): Ditto.
15013         (*msub4<mode>): Ditto.
15014         (*msub3<mode>): Ditto.
15015         (*nmadd4<mode>): Ditto.
15016         (*nmadd3<mode>): Ditto.
15017         (*nmadd4<mode>_fastmath): Ditto.
15018         (*nmadd3<mode>_fastmath): Ditto.
15019         (*nmsub4<mode>): Ditto.
15020         (*nmsub3<mode>): Ditto.
15021         (*nmsub4<mode>_fastmath): Ditto.
15022         (*nmsub3<mode>_fastmath): Ditto.
15024 2015-04-24  Jason Merrill  <jason@redhat.com>
15026         PR c++/50800
15027         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15028         down when building TYPE_CANONICAL.
15029         (build_pointer_type_for_mode): Likewise.
15031 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
15033         * genrecog.c (validate_pattern): Check matching constraint refers
15034         to a lower numbered operand.
15036 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15038         PR target/65849
15039         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15040         save to independent variables use the Save attribute.  This will
15041         allow these options to be modified with the #pragma/attribute
15042         target support.
15043         (-mallow-movmisalign): Likewise.
15044         (-mallow-df-permute): Likewise.
15045         (-msched-groups): Likewise.
15046         (-malways-hint): Likewise.
15047         (-malign-branch-targets): Likewise.
15048         (-mvectorize-builtins): Likewise.
15049         (-msave-toc-indirect): Likewise.
15051         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15052         can be set via the #pragma/attribute target support.
15053         (rs6000_opt_vars): Likewise.
15054         (rs6000_inner_target_options): If VSX was set, also set
15055         -mno-avoid-indexed-addresses.
15057 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15059         * config/arm/iterators.md (shiftable_ops): Rename to...
15060         (SHIFTABLE_OPS): ... This.  Update use in comments.
15061         (ior_xor): Rename to...
15062         (IOR_XOR): ... This.
15063         (vqh_ops): Rename to...
15064         (VQH_OPS): ... This.
15065         (vqhs_ops): Rename to...
15066         (VQHS_OPS): ... This.
15067         (rshifts): Rename to...
15068         (RSHIFTS): ... This.
15069         (returns): Rename to...
15070         (RETURNS): ... This.
15071         * config/arm/arm.md: Update uses of the above.
15072         * config/arm/neon.md: Likewise.
15074 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15076         * config.host (case ${host}): Add aarch64*-*-linux case.
15077         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15078         fields to all the cores.
15079         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15080         Add MCPU_MTUNE_NATIVE_SPECS.
15081         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15082         field to all extensions.
15083         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15084         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15085         Adjust definition of AARCH64_OPT_EXTENSION.
15086         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15087         (MCPU_MTUNE_NATIVE_SPECS): Define.
15088         * config/aarch64/driver-aarch64.c: New file.
15089         * config/aarch64/x-arch64: New file.
15090         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15091         -mtune and -march.
15093 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15094             Wei Mi  <wmi@google.com>
15096         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15097         * config/i386/i386.c (extract_base_offset_in_addr): New function.
15098         (ix86_operands_ok_for_move_multiple): Ditto.
15099         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15100         (movlpd/movhpd to movupd peephole2): Ditto.
15102 2015-04-24  Marek Polacek  <polacek@redhat.com>
15104         PR c/61534
15105         * input.h (from_macro_expansion_at): Define.
15107         PR c/63357
15108         * doc/invoke.texi: Update description of -Wlogical-op.
15110 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15112         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15113         ternary operator in fprintf and harmonize spacing.
15115 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15117         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15118         Mark operand1 commutative.
15120 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
15122         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15123         input operands in memory.
15124         (*vec_concatv2si_sse4_1): Ditto.
15125         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15126         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15127         register_operand.
15128         (vec_extract_hi_v32hi): Ditto.
15129         (vec_extract_hi_v64hi): Ditto.
15130         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15132 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15133             Steven Bosscher <steven@gcc.gnu.org>
15135         PR rtl-optimization/34503
15136         * cprop.c (cprop_reg_p): New.
15137         (hash_scan_set): Use above function to check if register can be
15138         propagated.
15139         (find_avail_set): Return up to two sets, one whose source is a
15140         register and one whose source is a constant.  Sets are returned in an
15141         array passed as parameter rather than as a return value.
15142         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
15143         sets returned by find_avail_set, starting with the one whose source is
15144         a constant. Use cprop_reg_p to check if register can be propagated.
15145         (do_local_cprop): Use cprop_reg_p to check if register can be
15146         propagated.
15147         (implicit_set_cond_p): Likewise.
15149 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15151         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15152         (sem_function::equals): IGNORED_NODES parameter is now unused;
15153         update call of equals_private.
15154         (sem_function::equals_private): Do not call equals_wpa; skip
15155         gimple body matching if there is no body.
15156         (sem_function::init): Add logic to hash tthunk info.
15157         (sem_function::parse): Also parse thunks.
15158         * ipa-icf.h (equals_private): Update declaration.
15160 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15162         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15163         asterisk from name so this can be generated directly.
15164         (*altivec_stvx_<mode>_internal): Likewise.
15165         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15166         that this is never called during or after reload/lra.
15167         (rs6000_frame_related): Remove split_reg
15168         argument and logic that references it.
15169         (emit_frame_save): Remove last parameter from call to
15170         rs6000_frame_related.
15171         (rs6000_emit_prologue): Remove last parameter from eight calls to
15172         rs6000_frame_related.  Force generation of stvx instruction for
15173         Altivec register saves.  Remove split_reg handling, which is no
15174         longer needed.
15175         (rs6000_emit_epilogue):  Force generation of lvx instruction for
15176         Altivec register restores.
15178 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15180         * config/rs6000/rs6000.opt (mcrypto): Change option description to
15181         match category changes in ISA 2.07B.
15183 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15185         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15186         iterators.
15187         (cmp_op, cmp_type): New code attributes.
15188         (NEON_VCMP, NEON_VACMP): New int iterators.
15189         (cmp_op_unsp): New int attribute.
15190         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15191         (neon_vceq<mode>): Delete.
15192         (neon_vc<cmp_op><mode>_insn): New pattern.
15193         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15194         (neon_vcgeu<mode>): Delete.
15195         (neon_vcle<mode>): Likewise.
15196         (neon_vclt<mode>: Likewise.
15197         (neon_vcage<mode>): Likewise.
15198         (neon_vcagt<mode>): Likewise.
15199         (neon_vca<cmp_op><mode>): New define_expand.
15200         (neon_vca<cmp_op><mode>_insn): New pattern.
15201         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15203 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15205         * tree.h (attribute_value_equal): Declare.
15206         * tree.c (attribute_value_equal): Export.
15208 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15210         * ipa-icf.c (sem_item::compare_attributes): New function.
15211         (sem_item::compare_referenced_symbol_properties): Compare variable
15212         attributes.
15213         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15214         (sem_function::param_used_p): New function.
15215         (sem_function::equals_wpa): Fix attribute comparsion; match
15216         parameter type codes; do not compare paremter flags when
15217         they are not used; compare edge flags; compare indirect calls.
15218         (sem_item::update_hash_by_addr_refs): Hash reference type.
15219         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15220         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15221         reference use type.
15222         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15223         * ipa-icf.h (compare_attributes, param_used_p): Declare.
15225 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
15227         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15228         cleanup.
15229         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15230         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15231         (sem_item::compare_referenced_symbol_properties): New.
15232         (sem_item::hash_referenced_symbol_properties): New.
15233         (sem_item::compare_cgraph_references): Rename to ...
15234         (sem_item::compare_symbol_references): ... this one; use
15235         compare_referenced_symbol_properties.
15236         (sem_function::equals_wpa): Do not compare
15237         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15238         DECL_IS_OPERATOR_NEW; compare pointer sizes.
15239         (sem_item::update_hash_by_addr_refs): Call
15240         hash_referenced_symbol_properties.
15241         (sem_item::update_hash_by_local_refs): Cleanup.
15242         (sem_function::merge): Do not mix up symbol properties.
15243         (sem_variable::equals_wpa): Use compare_symbol_references.
15244         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15245         (sem_item::hash_referenced_symbol_properties): New.
15246         (sem_item::compare_symbol_references): New.
15247         (sem_item::compare_cgraph_references): Remove.
15249 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
15251         PR target/26702
15252         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15253         Emit size of local.
15255 2015-04-23  Nick Clifton  <nickc@redhat.com>
15257         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15258         ATTRIBUTE_UNUSED to x parameter.
15259         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15261 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15263         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15264         TARGET_CRYPTO to TARGET_P8_VECTOR>
15265         (crypto_vpermxor_<mode>): Likewise.
15266         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15267         (BU_CRYPTO_3A): Likewise.
15268         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15269         (BU_CRYPTO_OVERLOAD_3A): New #define.
15270         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15271         (VPMSUMH): Likewise.
15272         (VPMSUMW): Likewise.
15273         (VPMSUMD): Likewise.
15274         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15275         (VPERMXOR_V4SI): Likewise.
15276         (VPERMXOR_V8HI): Likewise.
15277         (VPERMXOR_V16QI): Likewise.
15278         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15279         BU_CRYPTO_OVERLOAD_2A.
15280         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15281         BU_CRYPTO_OVERLOAD_3A.
15282         * config/rs6000/rs6000.opt (mcrypto): Change description of
15283         option.
15285 2015-04-23  Richard Biener  <rguenther@suse.de>
15287         * passes.def: Remove copy propagation passes run directly after CCP.
15288         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15289         SSA names.
15290         (ccp_visit_phi_node): Rework to handle first executable edge
15291         specially.
15293 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
15295         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15296         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15297         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15298         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15299         (thumb_legimitimize_reload_address): Remove.
15300         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15301         Remove.
15302         (thumb_legimitimize_reload_address): Remove.
15304 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15306         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15308 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15310         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15311         MAX_LDM_STM_OPS.
15312         (store_multiple): Likewise.
15314 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15316         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15317         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15318         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15319         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15320         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15321         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15322         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15323         Specify issue_rate value.
15324         (arm_issue_rate): Look up issue rate from tuning structs. Remove
15325         large switch statement.
15326         (arm_marvell_pj4_tune): New struct.
15327         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15328         struct.
15330 2015-04-23  Richard Biener  <rguenther@suse.de>
15332         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15333         (vect_find_last_store_in_slp_instance): Rename to ...
15334         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15335         (vect_analyze_slp_cost_1): Use vector_load for constant defs
15336         and vec_construct for external defs when estimating prologue cost.
15337         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15338         Compute costs here only when vectorizing loops.
15339         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15340         have been determined.
15341         (vect_schedule_slp_instance): Simplify vectorized code placement
15342         and prepare for in-BB external defs.
15343         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15344         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15345         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15346         guard.
15347         (vect_model_load_cost): Likewise.
15348         (vectorizable_store): Instead add it here.
15349         (vectorizable_load): Likewise.
15350         (vect_is_simple_use): Dump def type textually.
15352 2015-04-23  Richard Biener  <rguenther@suse.de>
15354         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15355         * cfgloop.c (verify_loop_structure): Verify the root loop node.
15356         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15357         instead of get_eh_region_from_lp_number.
15358         * loop-init.c (fix_loop_structure): If we removed a loop, reset
15359         the SCEV cache.
15361 2015-04-23  Anton Blanchard  <anton@samba.org>
15363         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15364         need for -mprofile-kernel to save LR to stack.
15366 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15368         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15369         adjustments.
15370         (insn_is_swappable_p): Return 1 for a convert from double to
15371         single precision when all of its uses are splats of BE element
15372         zero.
15374 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
15376         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15378 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15380         PR target/65456
15381         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
15382         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15383         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15384         option.
15385         (rs6000_builtin_mask_for_load): Return 0 for targets with
15386         efficient unaligned VSX accesses so that the vectorizer will use
15387         direct unaligned loads.
15388         (rs6000_builtin_support_vector_misalignment): Always return true
15389         for targets with efficient unaligned VSX accesses.
15390         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15391         stores on targets with efficient unaligned VSX accesses is almost
15392         always the same as the cost of an aligned load or store, so model
15393         it that way.
15394         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15395         unaligned vectors if we have efficient unaligned VSX accesses.
15396         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15397         undocumented option.
15399 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15401         Revert:
15402         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15404         * config.gcc (LIBC_MUSL): New tm_defines macro.
15405         * config/linux.h (OPTION_MUSL): Define.
15406         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15407         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15408         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15410         * config/linux.opt (mmusl): New option.
15411         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15412         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15414         * configure: Regenerate.
15416 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
15418         * config.gcc (LIBC_MUSL): New tm_defines macro.
15419         * config/linux.h (OPTION_MUSL): Define.
15420         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15421         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15422         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15424         * config/linux.opt (mmusl): New option.
15425         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15426         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15428         * configure: Regenerate.
15430 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
15432         * doc/invoke.texi (-fsanitize-sections): Update description.
15433         * asan.c (set_sanitized_sections): Parse incoming arg.
15434         (section_sanitized_p): Support wildcards.
15436 2015-04-22  Tom de Vries  <tom@codesourcery.com>
15438         PR tree-optimization/65823
15439         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15440         equality between ap_copy and ap.
15442 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15444         PR target/47098
15445         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15447 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15449         PR target/47122
15450         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
15452 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15454         PR target/55144
15455         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
15456         remove already contained t-files.
15458 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15460         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
15461         Remove unneeded forward declarations.
15462         (suitable_for_tail_call_opt_p): Commentary typo fix.
15464 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15466         * varasm.c (emit_bss): Remove redundant guard.
15468 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15470         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
15472 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15474         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
15476 2015-04-22  Hale Wang  <hale.wang@arm.com>
15477             Terry Guo  <terry.guo@arm.com>
15479         PR rtl-optimization/64818
15480         * combine.c (can_combine_p): Don't combine user-specified
15481         register if it is in an asm input.
15483 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
15485         PR ipa/65076
15486         * passes.def (early_optimizations): Add pass_dse.
15488 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15490         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
15491         * reorg.c (redundant_insn): Remove ifdef
15492         INSN_REFERENCES_ARE_DELAYED.
15493         * resource.c (mark_referenced_resources): Likewise.
15495 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15497         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
15498         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
15499         * resource.c (mark_set_resources): Likewise.
15501 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15503         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
15504         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15505         (flow_find_head_matching_sequence): Likewise.
15506         (try_head_merge_bb): Likewise.
15507         * combine.c (can_combine_p): Likewise.
15508         (try_combine): Likewise.
15509         (distribute_notes): Likewise.
15510         * df-problems.c (can_move_insns_across): Likewise.
15511         * final.c (final): Likewise.
15512         * gcse.c (insert_insn_end_basic_block): Likewise.
15513         * ira.c (find_moveable_pseudos): Likewise.
15514         * reorg.c (try_merge_delay_insns): Likewise.
15515         (fill_simple_delay_slots): Likewise.
15516         (fill_slots_from_thread): Likewise.
15517         * sched-deps.c (sched_analyze_2): Likewise.
15519 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15521         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
15522         PIC_OFFSET_TABLE_REGNUM.
15524 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15526         * alias.c (init_alias_target): Remove ifdef
15527         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
15528         * df-scan.c (df_insn_refs_collect): Likewise.
15529         (df_get_regular_block_artificial_uses): Likewise.
15530         (df_get_eh_block_artificial_uses): Likewise.
15531         (df_get_entry_block_def_set): Likewise.
15532         (df_get_exit_block_use_set): Likewise.
15533         * emit-rtl.c (gen_rtx_REG): Likewise.
15534         * ira.c (ira_setup_eliminable_regset): Likewise.
15535         * reginfo.c (init_reg_sets_1): Likewise.
15536         * regrename.c (rename_chains): Likewise.
15537         * reload1.c (reload): Likewise.
15538         (eliminate_regs_in_insn): Likewise.
15539         * resource.c (mark_referenced_resources): Likewise.
15540         (init_resource_info): Likewise.
15542 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15544         * defaults.h (MASK_RETURN_ADDR): New definition.
15545         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15546         MASK_RETURN_ADDR.
15548 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15550         * defaults.h (RETURN_ADDR_OFFSET): New definition.
15551         * except.c (expand_builtin_extract_return_addr): Remove ifdef
15552         RETURN_ADDR_OFFSET.
15553         (expand_builtin_frob_return_addr): Likewise.
15555 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15557         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
15558         (try_redirect_by_replacing_jump): Likewise.
15559         (rtl_tidy_fallthru_edge): Likewise.
15560         * combine.c (insn_a_feeds_b): Likewise.
15561         (find_split_point): Likewise.
15562         (simplify_set): Likewise.
15563         * cprop.c (cprop_jump): Likewise.
15564         * cse.c (cse_extended_basic_block): Likewise.
15565         * df-problems.c (can_move_insns_across): Likewise.
15566         * function.c (emit_use_return_register_into_block): Likewise.
15567         * haifa-sched.c (sched_init): Likewise.
15568         * ira.c (find_moveable_pseudos): Likewise.
15569         * loop-invariant.c (find_invariant_insn): Likewise.
15570         * lra-constraints.c (curr_insn_transform): Likewise.
15571         * postreload.c (reload_combine_recognize_const_pattern):
15572         * Likewise.
15573         * reload.c (find_reloads): Likewise.
15574         * reorg.c (delete_scheduled_jump): Likewise.
15575         (steal_delay_list_from_target): Likewise.
15576         (steal_delay_list_from_fallthrough): Likewise.
15577         (redundant_insn): Likewise.
15578         (fill_simple_delay_slots): Likewise.
15579         (fill_slots_from_thread): Likewise.
15580         (delete_computation): Likewise.
15581         * sched-rgn.c (add_branch_dependences): Likewise.
15583 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15585         * genconfig.c (main): Always define HAVE_cc0.
15586         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
15587         HAVE_cc0.
15588         * cfgcleanup.c (flow_find_cross_jump): Likewise.
15589         (flow_find_head_matching_sequence): Likewise.
15590         (try_head_merge_bb): Likewise.
15591         * cfgrtl.c (rtl_merge_blocks): Likewise.
15592         (try_redirect_by_replacing_jump): Likewise.
15593         (rtl_tidy_fallthru_edge): Likewise.
15594         * combine.c (do_SUBST_MODE): Likewise.
15595         (insn_a_feeds_b): Likewise.
15596         (combine_instructions): Likewise.
15597         (can_combine_p): Likewise.
15598         (try_combine): Likewise.
15599         (find_split_point): Likewise.
15600         (subst): Likewise.
15601         (simplify_set): Likewise.
15602         (distribute_notes): Likewise.
15603         * cprop.c (cprop_jump): Likewise.
15604         * cse.c (cse_extended_basic_block): Likewise.
15605         * df-problems.c (can_move_insns_across): Likewise.
15606         * final.c (final): Likewise.
15607         (final_scan_insn): Likewise.
15608         * function.c (emit_use_return_register_into_block): Likewise.
15609         * gcse.c (insert_insn_end_basic_block): Likewise.
15610         * haifa-sched.c (sched_init): Likewise.
15611         * ira.c (find_moveable_pseudos): Likewise.
15612         * loop-invariant.c (find_invariant_insn): Likewise.
15613         * lra-constraints.c (curr_insn_transform): Likewise.
15614         * optabs.c (prepare_cmp_insn): Likewise.
15615         * postreload.c (reload_combine_recognize_const_pattern):
15616         * Likewise.
15617         * reload.c (find_reloads): Likewise.
15618         (find_reloads_address_1): Likewise.
15619         * reorg.c (delete_scheduled_jump): Likewise.
15620         (steal_delay_list_from_target): Likewise.
15621         (steal_delay_list_from_fallthrough): Likewise.
15622         (try_merge_delay_insns): Likewise.
15623         (redundant_insn): Likewise.
15624         (fill_simple_delay_slots): Likewise.
15625         (fill_slots_from_thread): Likewise.
15626         (delete_computation): Likewise.
15627         (relax_delay_slots): Likewise.
15628         * sched-deps.c (sched_analyze_2): Likewise.
15629         * sched-rgn.c (add_branch_dependences): Likewise.
15631 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15633         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
15634         that is trivially ded on non cc0 targets.
15635         (simplify_set): Likewise.
15636         (mark_used_regs_combine): Likewise.
15637         * cse.c (new_basic_block): Likewise.
15638         (fold_rtx): Likewise.
15639         (cse_insn): Likewise.
15640         (cse_extended_basic_block): Likewise.
15641         (set_live_p): Likewise.
15642         * rtlanal.c (canonicalize_condition): Likewise.
15643         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15645 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15647         * conditions.h: Define macros even if HAVE_cc0 is undefined.
15648         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
15649         * final.c: Likewise.
15650         * jump.c: Likewise.
15651         * recog.c: Likewise.
15652         * recog.h: Declare functions even when HAVE_cc0 is undefined.
15653         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
15655 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15657         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
15658         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
15659         * builtins.c (expand_builtin): Remove check if
15660         EH_RETURN_DATA_REGNO is defined.
15661         * df-scan.c (df_bb_refs_collect): Likewise.
15662         (df_get_exit_block_use_set): Likewise.
15663         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
15664         * ira-lives.c (process_bb_node_lives): Likewise.
15665         * lra-lives.c (process_bb_lives): Likewise.
15667 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
15669         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
15670         FIRST_PSEUDO_REG): New.
15671         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
15672         (ARG_POINTER_REGNUM): Define to ARGP_REG.
15673         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
15674         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
15675         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
15676         (FIRST_INT_REG): New.
15677         (LAST_INT_REG): New.
15678         (FIRST_*_REG): Define using *_REG.
15679         (LAST_*_REG): Ditto.
15680         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
15681         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
15682         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
15684 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15686         * expmed.c: (synth_mult): Only assume overlapping
15687         shift with previous steps in alg_sub_t_m2 case.
15689 2015-04-21  Richard Biener  <rguenther@suse.de>
15691         PR tree-optimization/65650
15692         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
15693         transitions involving copies.
15694         (set_lattice_value): Adjust for copy lattice state.
15695         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
15696         if that doesn't dominate the merge point.
15697         (bit_value_unop): Adjust what we treat as varying mask.
15698         (bit_value_binop): Likewise.
15699         (bit_value_assume_aligned): Likewise.
15700         (evaluate_stmt): When we simplified to a SSA name record a copy
15701         instead of dropping to varying.
15702         (visit_assignment): Simplify.
15704         * gimple-match.h (gimple_simplify): Add another callback.
15705         * gimple-fold.c (fold_stmt_1): Adjust caller.
15706         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
15707         for the 2nd callback.
15708         * gimple-match-head.c (gimple_simplify): Add a callback that is
15709         used to valueize the stmt operands and use it that way.
15711 2015-04-21  Richard Biener  <rguenther@suse.de>
15713         PR tree-optimization/65788
15714         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
15716 2015-04-21  Richard Biener  <rguenther@suse.de>
15718         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
15719         vec_construct cost by vec_stmt_cost.
15721 2015-04-21  Richard Biener  <rguenther@suse.de>
15723         * cfghooks.h (create_basic_block): Replace with two overloads
15724         for RTL and GIMPLE.
15725         (split_block): Likewise.
15726         * cfghooks.c (split_block): Rename to ...
15727         (split_block_1): ... this.
15728         (split_block): Add two type-safe overloads for RTL and GIMPLE.
15729         (split_block_after_labels): Call split_block_1.
15730         (create_basic_block): Rename to ...
15731         (create_basic_block_1): ... this.
15732         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
15733         (create_empty_bb): Call create_basic_block_1.
15734         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
15735         split_block_after_labels.
15736         * omp-low.c (expand_parallel_call): Likewise.
15737         (expand_omp_target): Likewise.
15738         (simd_clone_adjust): Likewise.
15739         * tree-chkp.c (chkp_get_entry_block): Likewise.
15740         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
15741         create_basic_block overload.
15742         (cgraph_node::expand_thunk): Likewise.
15743         * tree-cfg.c (make_blocks): Likewise.
15744         (handle_abnormal_edges): Likewise.
15745         * tree-inline.c (copy_bb): Likewise.
15747 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15749         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
15750         New pattern.
15751         (*xor_one_cmplsidi3_ze): Likewise.
15753 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15755         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
15756         use df_remove_problem rather than manually removing problems, leaving
15757         holes in df->problems_in_order[].
15759 2015-04-21  Tom de Vries  <tom@codesourcery.com>
15761         PR tree-optimization/65802
15762         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
15764 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15766         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
15767         Increase to 128.
15768         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
15769         at '.'.  Assert that there's enough space for everything.
15771 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
15773         PR tree-optimization/64950
15774         Revert:
15775         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
15777         PR target/41089
15778         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15779         as volatile.
15781 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
15783         PR rtl-optimization/64916
15784         * cfgcleanup.c (values_equal_p): New function.
15785         (can_replace_by): Use it.
15787 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
15789         PR c++/65801
15790         * doc/invoke.texi ([-Wnarrowing]): Update.
15792 2015-04-20  Jeff Law  <law@redhat.com>
15794         PR tree-optimization/65658
15795         * tree-ssa-threadupdate.c (redirection_block_p): Remove
15796         redundant test for GIMPLE_ASSIGN in last change.
15798 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
15800         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
15801         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
15802         (legitimize_tls_address): Ditto.
15803         (ix86_expand_move): Ditto.
15804         (ix86_expand_binary_operator): Remove reload_in_progress checks.
15805         (ix86_expand_unary_operator): Ditto.
15806         * config/i386/predicates.md (index_register_operand): Ditto.
15808 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
15810         * reorg.c (try_merge_delay_insns): Improve correctness checking
15811         for targets with multiple delay slots.
15813 2015-04-20  Jeff Law  <law@redhat.com>
15815         PR tree-optimization/65658
15816         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
15817         statements too.
15819 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
15821         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
15822         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
15823         Delete.
15825 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
15827         PR debug/65807
15828         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
15830 2015-04-20  Richard Biener  <rguenther@suse.de>
15832         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
15833         * gimple-fold.c (gimple_build_valueize): New function.
15834         (gimple_build): Always use gimple_build_valueize as valueize hook.
15836 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
15838         PR target/64134
15839         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
15840         and overwrite variable parts if <= 1/2 the elements are variable.
15842 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
15844         PR rtl-optimization/65805
15845         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
15846         Don't use difference of offset and previous offset if
15847         update_sp_offset is non-zero.
15848         (eliminate_regs_in_insn): Ditto.
15849         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
15850         lra_eliminate_regs_1 call.
15851         * lra-constraints.c (get_equiv_with_elimination): Ditto.
15853 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
15855         * hash-table.h: Remove version of hash_table that stored value_type *.
15856         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
15857         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
15858         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
15859         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
15860         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
15861         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
15862         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15863         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
15864         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
15865         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
15866         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
15867         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
15868         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
15869         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15870         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
15871         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
15873 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15874             Jakub Jelinek  <jakub@redhat.com>
15876         PR target/65787
15877         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
15878         subsequent SH_NONE operand does not overwrite an existing *special
15879         value.
15880         (adjust_extract): Handle case where a vec_extract operation is
15881         wrapped in a PARALLEL.
15883 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15885         PR target/65780
15886         * config/i386/i386.c (ix86_binds_local_p): Define only if
15887         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
15889 2015-04-17  Jeff Law  <law@redhat.com>
15891         PR tree-optimization/47679
15892         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
15893         * tree-ssa-scopedtables.c: New file.
15894         * tree-ssa-scopedtables.h: New file.
15895         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
15896         (const_and_copies): Change name/type.
15897         (record_const_or_copy): Move into tree-ssa-scopedtables.c
15898         (record_const_or_copy_1): Similarly.
15899         (restore_vars_to_original_value): Similarly.
15900         (pass_dominator::execute): Create and destroy const_and_copies table.
15901         (thread_across_edge): Update passing of const_and_copies.
15902         (record_temporary_equivalence): Use method calls rather than
15903         manipulating const_and_copies directly.
15904         (record_equality, cprop_into_successor_phis): Similarly.
15905         (dom_opt_dom_walker::before_dom_children): Similarly.
15906         (dom_opt_dom_walker::after_dom_children): Similarly.
15907         (eliminate_redundant_computations): Similarly.
15908         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
15909         (record_temporary_equivalence): Likewise.
15910         (invalidate_equivalences): Likewise.
15911         (record_temporary_equivalences_from_phis): Update due to type
15912         change of const_and_copies.  Use method calls rather than
15913         manipulating the stack directly.
15914         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
15915         (thread_through_normal_block, thread_across_edge): Likewise.
15916         (thread_across_edge): Likewise.
15917         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15918         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
15919         of equiv_stack.
15920         (identify_jump_threads): Update due to type change of equiv_stack.
15921         (finalize_jump_threads): Delete the equiv_stack when complete.
15923 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
15925         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15926         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
15927         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
15929 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
15931         PR target/65535
15932         * config.gcc: Exit with a comment when we do not have a major version
15933         number for the FreeBSD target.
15935 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15937         PR target/65689
15938         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
15939         maybe_allows_mem bitfields.
15940         (maybe_allows_none_start, maybe_allows_none_end,
15941         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
15942         maybe_allows_mem_end): New variables.
15943         (compute_maybe_allows): New function.
15944         (add_constraint): Use it to initialize maybe_allows_reg and
15945         maybe_allows_mem fields.
15946         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
15947         is_address constraints such that those that allow neither mem nor
15948         reg come first, then those that only allow reg but not mem, then
15949         those that only allow mem but not reg, then the rest.
15950         (write_allows_reg_mem_function): New function.
15951         (write_tm_preds_h): Call it.
15952         * stmt.c (parse_output_constraint, parse_input_constraint): Use
15953         the generated insn_extra_constraint_allows_reg_mem function
15954         instead of always setting *allows_reg = true; *allows_mem = true;
15955         for unknown extra constraints.
15957 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
15959         PR target/65780
15960         * output.h (default_binds_local_p_3): New.
15961         * varasm.c (default_binds_local_p_3): Make it public.  Take an
15962         argument to indicate if common symbol may be local.  If common
15963         symbol may be local, treat non-external variable as defined
15964         locally.
15965         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
15966         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
15967         * config/i386/i386.c (ix86_binds_local_p): New.
15968         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
15969         ix86_binds_local_p.
15971 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
15973         PR debug/65771
15974         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
15975         trying mem_loc_descriptor on XEXP (rtl, 0).
15977 2015-04-17  Martin Liska  <mliska@suse.cz>
15979         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15980         Release symbol_compare_collection.
15981         * ipa-reference.c: Add TODO that a vector should be released.
15983 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
15985         PR target/65296
15986         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
15987         to new AVR-LibC file layout (bug #44574).
15988         (*avrlibc_devicelib): Same.
15989         * config/avr/avr-mcus.def: Adjust comments.
15990         * config/avr/avr.opt (nodevicelib): Adjust help.
15992 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
15994         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
15996 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
15998         PR c++/64527
15999         * gimplify.c (gimplify_init_constructor): Always emit a
16000         side-effecting constructor.
16002 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16004         PR tree-optimization/64950
16005         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16006         in cfun->curr_properties.
16007         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16008         if we generate an IFN_VA_ARG.
16009         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16010         function if PROP_gimple_lva is not set in src function.
16012 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16013             Michael Matz  <matz@suse.de>
16015         PR tree-optimization/64950
16016         * gimple-iterator.c (update_modified_stmts): Remove static.
16017         * gimple-iterator.h (update_modified_stmts): Declare.
16018         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16019         (gimplify_va_arg_internal): New function.
16020         (gimplify_va_arg_expr): Use IFN_VA_ARG.
16021         * gimplify.h (gimplify_va_arg_internal): Declare.
16022         * internal-fn.c (expand_VA_ARG): New unreachable function.
16023         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16024         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16025         (expand_ifn_va_arg): New function.
16026         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16027         (pass_stdarg::execute): Call expand_ifn_va_arg.
16028         (pass_data_lower_vaarg): New pass_data.
16029         (pass_lower_vaarg): New gimple_opt_pass.
16030         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16031         (make_pass_lower_vaarg): New function.
16032         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16033         properties_required field.
16034         * passes.def (all_passes): Add pass_lower_vaarg.
16035         * tree-pass.h (PROP_gimple_lva): Add define.
16036         (make_pass_lower_vaarg): Declare.
16038 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16040         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16041         * calls.c (call_expr_flags): Same.
16043 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16045         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16046         (pass_stdarg::execute): ... here.
16048 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16049             Michael Matz  <matz@suse.de>
16051         * tree-cfg.c (make_blocks_1): Factor out of ...
16052         (make_blocks): ... here.
16053         (make_edges_bb): Factor out of ...
16054         (make_edges): ... here.
16055         (gimple_find_sub_bbs): New function.
16056         * tree-cfg.h (gimple_find_sub_bbs): Declare.
16058 2015-04-17  Tom de Vries  <tom@codesourcery.com>
16060         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16062 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
16064         * asan.c (set_sanitized_sections): New function.
16065         (section_sanitized_p): Ditto.
16066         (asan_protect_global): Optionally sanitize user-defined
16067         sections.
16068         * asan.h (set_sanitized_sections): Declare new function.
16069         * common.opt (fsanitize-sections): New option.
16070         * doc/invoke.texi (-fsanitize-sections): Document new option.
16071         * opts-global.c (handle_common_deferred_options): Handle new
16072         option.
16074 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
16076         PR debug/65771
16077         * dwarf2out.c (loc_list_from_tree): Return NULL
16078         for DEBUG_EXPR_DECL.
16080 2015-04-17  Christian Bruel  <christian.bruel@st.com>
16082         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16083         same attributes.
16085 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16087         * ira-color.c (setup_left_conflict_sizes_p): Do not process
16088         node itself when computing left conflict subnode size.
16090 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
16092         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16093         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16094         *fop_<mode>_1_sse using enabled attribute.  Use
16095         register_mixssei387nonimm_operand operand 1 predicate. Change
16096         alternative 3 constraints from "x" to "v".
16098 2015-04-16  Richard Biener  <rguenther@suse.de>
16100         PR tree-optimization/65774
16101         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16102         bit-value tracking on.
16104 2015-04-16  Richard Biener  <rguenther@suse.de>
16106         PR tree-optimization/64277
16107         * tree-vrp.c (check_array_ref): Fix anti-range handling,
16108         simplify upper bound handling.
16109         (search_for_addr_array): Simplify.
16110         (check_array_bounds): Handle ADDR_EXPRs here.
16111         (check_all_array_refs): Simplify.
16113 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
16115         * config/i386/i386.c (print_reg): Rewrite function.
16117 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16119         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16120         Invert the condition.
16122 2015-04-16  Renlin Li  <renlin.li@arm.com>
16124         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16125         simplifications for UNSIGNED_FLOAT.
16127 2015-04-16  Nick Clifton  <nickc@redhat.com>
16129         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16130         MUL_UNINIT.
16131         (enum rl78_cpu_type): New.
16132         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16133         (umulhi3_shift_virt): Remove m constraint from operand 1.
16134         (umulqihi3_virt): Likewise.
16135         * config/rl78/rl78.c (rl78_option_override): Add code to process
16136         -mcpu and -mmul options.
16137         (rl78_alloc_physical_registers): Add code to handle divhi and
16138         divsi valloc attributes.
16139         (set_origin): Likewise.
16140         * config/rl78/rl78.h (RL78_MUL_G14): Define.
16141         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16142         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16143         __RL78_Gxx__.
16144         (ASM_SPEC): Pass -mcpu on to assembler.
16145         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16146         (mulqi3_rl78): Likewise.
16147         (mulhi3_g13): Likewise.
16148         (mulhi3): Generate the G13 or G14 versions of the insn directly.
16149         (mulsi3): Likewise.
16150         (mulhi3_g14): Add clobbers of AX and BC.
16151         (mulsi3_g14): Likewise.
16152         (mulsi3_g13): Likewise.
16153         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16154         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16155         * config/rl78/rl78.opt (mmul): Initialise value to
16156         RL78_MUL_UNINIT.
16157         (mcpu): New option.
16158         (m13, m14, mrl78): New option aliases.
16159         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16160         (MULTILIB_DIRNAMES): Add g13 and g14.
16161         * doc/invoke.texi: Document -mcpu and -mmul options.
16163 2015-04-16  Richard Biener  <rguenther@suse.de>
16165         * tree-ssa-ccp.c (likely_value): See if we have operands that
16166         are marked as never simulate again and return CONSTANT in this
16167         case.
16168         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16169         not have any operands that will be simulated again as
16170         not being simulated again.
16172 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
16174         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16175         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16176         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16177         attribute.
16178         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16179         enabled attribute.
16180         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16181         *float<SWI48:mode><MODEF:mode>2_sse.
16182         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16183         enabled attribute.
16184         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16185         enabled attribute.
16187 2015-04-15  Tom de Vries  <tom@codesourcery.com>
16189         PR other/65487
16190         * function.c (push_dummy_function): New function.
16191         (init_dummy_function_start): Use push_dummy_function.
16192         (pop_dummy_function): New function.  Factored out of ...
16193         (expand_dummy_function_end): ... here.
16194         * function.h (push_dummy_function, pop_dummy_function): Declare.
16195         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16196         pop_dummy_function.
16197         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16199 2015-04-15  Jeff Law  <law@redhat.com>
16201         PR tree-optimization/47679
16202         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16203         need for forward declaration in upcoming changes.
16204         (record_conditions, record_edge_info): Likewise.
16206         PR rtl-optimization/42522
16207         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16208         SIGN_EXTRACT as a whole object rather than simplifying
16209         its operand.
16211 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
16213         PR ipa/65765
16214         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16215         and GIMPLE_PREDICT use break instead of return true. For
16216         GIMPLE_EH_DISPATCH, compare dispatch region.
16218 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
16220         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
16221         details about the implementation.  Make clear preference for
16222         __atomic builtins.  Reduce possibility of future change.
16224 2015-04-15  Nick Clifton  <nickc@redhat.com>
16226         * config/rx/rx.opt (mallow-string-insns): New option.
16227         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16228         builtin if string instructions are denied.
16229         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16230         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16231         appropriate.
16232         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16233         * config/rx/rx.md (movstr): Enable pattern only if string
16234         instructions are allowed.
16235         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16236         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16237         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16238         (MULTILIB_DIRNAMES): Add no-strings.
16239         * doc/invoke.texi: Document -mno-allow-string-insns.
16241 2015-04-15  Alan Modra  <amodra@gmail.com>
16243         PR target/65408
16244         PR target/58744
16245         PR middle-end/36043
16246         * calls.c (load_register_parameters): Don't load past end of
16247         mem unless suitably aligned.
16249 2015-04-15  Nick Clifton  <nickc@redhat.com>
16251         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16252         decrement instruction as being frame related.
16253         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16254         based addresses.
16255         If zero extending a function address enclose the operation in
16256         %code(...).
16257         (rl78_preferred_reload_class): New function.
16258         (TARGET_PREFERRED_RELOAD_CLASS): Define.
16259         * config/rl78/rl78.md: Remove useless constraints in expanders.
16260         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16261         (mulhi3_rl78): Likewise.
16262         (mulhi3_g13): Likewise.
16263         (mulsi3_rl78): Likewise.
16264         (es_addr): Move to before the multiply patterns.
16266 2015-04-15  Alan Modra  <amodra@gmail.com>
16268         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16269         and sequence_stack.  Add seq.
16270         (seq_stack): Delete.
16271         * function.c (prepare_function_start): Don't access x_last_insn.
16272         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16273         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16274         * emit_rtl.c (start_sequence, push_topmost_sequence,
16275         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16276         sequence accessors.
16277         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16278         remove_insn): Likewise.  Simplify.
16279         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16280         and pop_topmost_sequence.
16281         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
16282         debug insns.
16283         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16285 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
16287         PR target/65729
16288         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16289         the assertiion.
16291 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
16293         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16294         (LEGACY_INT_REGNO_P): Ditto.
16295         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16296         (ANY_MASK_REG_P): Remove.
16297         (BND_REG_P): Rename from ANY_BND_REG_P.
16298         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16299         legacy integer registers.  Do not handle MMX_REG_P in a special way.
16300         Merge 64byte and 32byte SSE handling.
16302 2015-04-14  Nick Clifton  <nickc@redhat.com>
16304         * expr.c (expand_assignment): Force an address offset computation
16305         into a register before changing its mode.
16306         (expand_expr_real_1): Likewise.
16308 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
16310         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16311         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16312         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16313         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16314         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16315         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16316         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16317         and __aarch64_vget_lane_any.
16319 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
16321         PR rtl-optimization/65761
16322         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16323         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16325 2015-04-14  Richard Biener  <rguenther@suse.de>
16327         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16328         (graphite_can_represent_scev): Use POINTER_TYPE_P.
16330 2015-04-14  Richard Biener  <rguenther@suse.de>
16332         PR tree-optimization/65758
16333         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16334         against -1.
16335         (ccp_lattice_meet): Likewise.
16336         (bit_value_unop): Likewise.
16337         (bit_value_binop): Likewise.
16338         (bit_value_assume_aligned): Likewise.
16340 2015-04-14  Christian Bruel  <christian.bruel@st.com>
16342         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16343         function.
16345 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
16347         PR tree-optimization/63387
16348         * match.pd ((x unord x) | (y unord y) -> (x unord y),
16349         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16351 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
16353         * config/i386/predicates.md (any_QIreg_operand): Rename from
16354         q_regs_operand.  Do not process subregs.
16355         (QIreg_operand): Use QI_REGNO_P predicate.
16356         (ext_QIreg_operand): Ditto.
16357         (ext_register_operand): Ditto.
16358         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16359         (AND splitters): Ditto.
16360         (AND with -65536 splitter): Add SWI48 mode for operand 0.
16361         (AND with -256 splitter): Use any_QIreg_operand predicate and
16362         SWI248 mode for operand 0.
16363         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16364         mode for operand 0.
16365         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16367 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
16369         * doc/plugins.texi: Rewrite first introductory paragraph.
16371 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16373         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16374         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16376 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16378         * ipa-profie.c (ipa_profile): Check number of parameters
16379         and possible polymorphic call targets before
16380         devirtualizing.
16382 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
16384         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16385         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16387 2015-04-13  Richard Biener  <rguenther@suse.de>
16389         PR tree-optimization/65204
16390         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16391         takens for bit-CCP.
16393 2015-04-13  Richard Biener  <rguenther@suse.de>
16395         PR target/65660
16396         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16397         and cond_not_taken_branch_cost to 4 and 2.
16398         (bdver2_cost): Likewise.
16399         (bdver3_cost): Likewise.
16400         (bdver4_cost): Likewise.
16402 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16404         * hash-table.h (hash_table constructor): Add mem stats.
16405         (alloc_entries): Likewise.
16407 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16409         * ipa-cp.c (ipcp_driver): Relase prev_edge.
16410         * passes.c (execute_one_pass): Only add transform if pass has one.
16412 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
16414         * config/i386/i386.c (ix86_option_override_internal): Don't set
16415         -fprefetch-loop-arrays if optimizing for size.
16417 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
16418             Gerald Pfeifer  <gerald@pfeifer.com>
16420         * doc/contrib.texi (Contributors): Add Martin Jambor and
16421         Michael Matz.
16423 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
16425         * BASE-VER: Set to 6.0.0.
16427         PR tree-optimization/65747
16428         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16429         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16431 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16433         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16434         sentence.  Improve grammar.
16436 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
16438         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16440 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16442         PR ipa/65743
16443         * ipa-inline-transform.c (speculation_removed): Remove static var.
16444         (check_speculations): New function.
16445         (clone_inlined_nodes): Do not check spculations.
16446         (inline_call): Call check_speculations.
16447         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16448         consider non-invariants.
16450 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
16451             Martin Liska  <mliska@suse.cz>
16453         PR ipa/65722
16454         * ipa-icf.c (sem_item::compare_cgraph_references): function and
16455         variable can not match.
16456         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
16457         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
16459 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
16461         PR tree-optimization/65735
16462         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
16463         Remove visited_phis argument, add visited_bbs, avoid recursing into the
16464         same bb rather than just into the same phi node.
16465         (thread_through_normal_block): Adjust caller.
16467 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16469         * doc/contrib.texi (Contributors): Add Ira Rosen.
16471 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
16473         * gcov.c (find_source): Fix miswording in error message.
16474         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
16475         (ix86_expand_sse_comi_round): Fix typo in error message.
16477 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
16479         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
16481 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
16483         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
16485 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16487         PR target/65710
16488         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
16489         Print bad_spills_num and insn_pseudos_num.
16491 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16493         PR target/65694
16494         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
16495         when creating +1 values for SImode.
16497 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
16499         PR target/65729
16500         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
16501         assert.
16503 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
16504             Iain Sandoe  <iain@codesourcery.com>
16506         PR target/65351
16507         * configure: Regenerate.
16509 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16511         PR target/65671
16512         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
16514 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
16516         * doc/contrib.texi (Contributors): Add John Marino.
16518 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16520         PR tree-optimization/65709
16521         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
16522         TREE_TYPE (TREE_TYPE (t)).
16524 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
16526         PR target/65710
16527         * lra-int.h (lra_bad_spill_regno_start): New.
16528         * lra.c (lra_bad_spill_regno_start): New.
16529         (lra): Set up lra_bad_spill_regno_start.  Set up
16530         lra_constraint_new_regno_start unconditionally.
16531         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
16532         spill preferences.
16534 2015-04-09  Marek Polacek  <polacek@redhat.com>
16535             Jakub Jelinek  <jakub@redhat.com>
16537         PR middle-end/65554
16538         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
16539         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
16540         of STRIP_NOPS.
16542 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
16544         PR rtl-optimization/65693
16545         * combine.c (is_parallel_of_n_reg_sets): Move outside of
16546         #ifndef HAVE_cc0.
16548 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
16550         PR target/65296
16551         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
16552         device specs file if "device-specs%s" didn't resolve to a path.
16554 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
16556         PR target/65676
16557         * config/i386/i386.c (fixup_modeless_constant): New.
16558         (ix86_expand_args_builtin): Fixup modeless constant operand.
16559         (ix86_expand_round_builtin): Ditto.
16560         (ix86_expand_special_args_builtin): Ditto.
16561         (ix86_expand_builtin): Ditto.
16563 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
16565         PR target/65693
16566         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
16567         any pow2 integer in between 2 and 0x80000000U inclusive.
16569 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
16571         PR rtl-optimization/65693
16572         * combine.c (is_parallel_of_n_reg_sets): Change first argument
16573         from an rtx_insn * to an rtx.
16574         (try_combine): Adjust both callers.  Use it once more.
16576 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16578         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
16579         (chkp_make_static_const_bounds): Search existing
16580         symbol by assembler name.  Use make_decl_one_only.
16581         (chkp_get_zero_bounds_var): Remove node search which
16582         is now performed in chkp_make_static_const_bounds.
16583         (chkp_get_none_bounds_var): Likewise.
16585 2015-04-08  Michael Witten  <mfwitten@gmail.com>
16587         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
16588         to an example.
16590 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16592         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
16594 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16596         * doc/extend.texi (__sync Builtins): Fix grammar.
16598 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16600         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
16602 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16604         * varasm.c (emit_local): Move definition of align.
16606 2015-04-08  Julian Brown  <julian@codesourcery.com>
16608         * config/nvptx/mkoffload.c (process): Support variable mapping.
16610 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
16612         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
16613         alpha_links **.
16614         (alpha_write_one_linkage): Correct typo.
16616 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16618         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
16620 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
16622         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
16624 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
16626         * tree-chkp.h (chkp_insert_retbnd_call): New.
16627         * tree-chkp.c (chkp_insert_retbnd_call): New.
16628         * ipa-split.c (insert_bndret_call_after): Remove.
16629         (split_function): Use chkp_insert_retbnd_call.
16630         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
16631         bounds for instrumented functions.
16633 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
16635         PR ipa/65540
16636         * calls.c (initialize_argument_information): When producing tail
16637         call also turn SSA_NAMES passed by references to original PARM_DECLs
16639 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
16641         PR target/65648
16642         * lra-remat.c (do_remat): Process input and non-input insn
16643         registers separately.
16645 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16647         PR debug/65678
16648         * valtrack.c (debug_lowpart_subreg): New function.
16649         (dead_debug_insert_temp): Use it.
16651         PR middle-end/65680
16652         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
16653         into signed HOST_WIDE_INT the same as negative bit_offset.
16655 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16657         * ipa-comdats.c (ipa_comdats): Visit all thunks
16658         to set proper comdat group.
16660 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16662         PR target/65489
16663         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
16664         on constants for NEON VSTRUCT modes.
16666 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
16667             Iain Sandoe  <iain@codesourcery.com>
16669         PR target/65351
16670         * configure: Regenerate.
16672 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
16674         PR target/65614
16675         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
16676         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
16677         that LFD is used to load double constants instead of LFS.  Add
16678         defaults for all costs structures.  Add comments for missing
16679         initialization fields.
16680         (size32_cost): Likewise.
16681         (size64_cost): Likewise.
16682         (rs64a_cost): Likewise.
16683         (mpccore_cost): Likewise.
16684         (ppc403_cost): Likewise.
16685         (ppc405_cost): Likewise.
16686         (ppc440_cost): Likewise.
16687         (ppc476_cost): Likewise.
16688         (ppc601_cost): Likewise.
16689         (ppc603_cost): Likewise.
16690         (ppc604_cost): Likewise.
16691         (ppc604e_cost): Likewise.
16692         (ppc620_cost): Likewise.
16693         (ppc630_cost): Likewise.
16694         (ppccell_cost): Likewise.
16695         (ppc750_cost): Likewise.
16696         (ppc7450_cost): Likewise.
16697         (ppc8540_cost): Likewise.
16698         (ppce300c2c3_cost): Likewise.
16699         (ppce500mc_cost): Likewise.
16700         (ppce500mc64_cost): Likewise.
16701         (ppce5500_cost): Likewise.
16702         (ppce6500_cost): Likewise.
16703         (titan_cost): Likewise.
16704         (power4_cost): Likewise.
16705         (power6_cost): Likewise.
16706         (power7_cost): Likewise.
16707         (power8_cost): Likewise.
16708         (ppca2_cost): Likewise.
16709         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
16711         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
16712         instead of XXLOR to copy SFmode to clear out dirty bits created
16713         when SFmode denormals are generated.
16714         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
16715         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
16717 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
16719         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
16720         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
16721         * config/aarch64/aarch64-tune.md: Regenerate.
16723 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
16725         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
16726         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
16727         * config/arm/arm-cores.def (exynos-m1): New core.
16728         * config/arm/arm-tune.md: Regenerate.
16729         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
16730         * config/arm/bpabi.h: Likewise.
16732 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
16734         * ipa-cp (set_single_call_flag): Remove too
16735         restrictive assert.
16737 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
16739         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
16740         GOMP_offload_unregister from the destructor.
16742 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
16744         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
16745         flags for instrumentation thunk.
16746         (chkp_produce_thunks): Likewise.
16748 2015-04-05  Martin Liska  <mliska@suse.cz>
16750         PR ipa/65665
16751         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
16752         has computed data structure.
16753         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16755 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
16757         * invoke.texi (inline-unit-growth): Increase growth to 20%
16758         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
16760 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
16762         PR target/65647
16763         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
16764         value checking.
16765         (lra_rematerialization_iter): New.
16766         * lra.c (lra): Initialize lra_rematerialization_iter.
16767         Stop updating lra_constraint_new_regno_start after switching of
16768         inheritance and rematerialization.
16769         * lra-remat.c (lra_rematerialization_iter): New.
16770         (lra_remat): Add printing pass iteration.  Do rematerialization
16771         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
16773 2015-04-04  Richard Biener  <rguenther@suse.de>
16775         PR tree-optimization/64909
16776         PR tree-optimization/65660
16777         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
16778         to take a cost vector for scalar iteration cost.
16779         (vect_get_single_scalar_iteration_cost): Likewise.
16780         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
16781         Compute the scalar iteration cost into a cost vector.
16782         (vect_get_known_peeling_cost): Use the scalar cost vector to
16783         account for the cost of the peeled iterations.
16784         (vect_estimate_min_profitable_iters): Likewise.
16785         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16786         Likewise.
16788 2015-04-04  Alan Modra  <amodra@gmail.com>
16790         PR target/65576
16791         PR target/65240
16792         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
16793         0.0 constant unless TARGET_VSX.
16794         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
16795         alternative.
16797 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16799         PR ipa/65654
16800         * ipa-inline-transform.c (inline_call): Skip sanity check to work
16801         around the ICE
16803 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16805         PR ipa/65655
16806         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
16807         speculative indirect edges to avoid ordering issue.
16809 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
16811         PR ipa/65076
16812         * ipa-inline.c (edge_badness): Add combined size to the denominator.
16814 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
16816         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
16817         TYPE_ARTIFICIAL on the .omp_data* types.
16819 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16821         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
16822         instrumentation thunks.
16824 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16826         * config/i386/i386.c (ix86_expand_call): Avoid nested
16827         PARALLEL in returned call value.
16829 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16831         * lto-cgraph.c (input_cgraph_1): Always link instrumented
16832         assembler name with original one.
16834 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16836         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
16838 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16840         Revert parts of r216820.
16841         * config/i386/i386.md (movqi_internal): Correct type calculation
16842         for alternatives 3 and 5.
16844 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
16846         PR preprocessor/61977
16847         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
16848         predefine __vector/__bool/__pixel macros nor context sensitive
16849         macros for CLK_ASM.
16850         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
16852 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
16854         * config/pa/pa.c (pa_output_move_double): Directly handle register
16855         indexed memory operand.  Simplify handling of scaled register indexed
16856         memory operands.
16858 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
16860         PR driver/65444
16861         * config/i386/linux-common.h (MPX_SPEC): New.
16862         (CHKP_SPEC): Add MPX_SPEC.
16863         * doc/invoke.texi (-fcheck-pointer-boudns): Document
16864         possible issues with '-z bndplt' support in linker.
16866 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
16868         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
16869         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
16870         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
16871         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
16872         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
16874 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
16876         * config/i386/sync.md (UNSPEC_MOVA): Remove.
16877         (atomic_load<mode>): Change operand 0 predicate to
16878         nonimmediate_operand and fix up the destination when needed.
16879         Use UNSPEC_LDA.
16880         (atomic_loaddi_fpu): Use UNSPEC_LDA.
16881         (atomic_store<mode>): Change operand 1 predicate to
16882         nonimmendate_operand and move the source to register when needed.
16883         Use UNSPEC_STA.
16884         (atomic_store<mode>_1): Use UNSPEC_STA.
16885         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
16886         Fix moves from memory operand.  Use UNSPEC_STA.
16888 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16890         * expmed.c (strict_volatile_bitfield_p): Check that the access will
16891         not cross a MODESIZE boundary.
16892         (store_bit_field, extract_bit_field): Added assertions in the
16893         strict volatile bitfields code path.
16895 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
16897         PR target/65624
16898         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
16899         Increase args array size by one to avoid buffer overflow.
16901 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
16903         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16904         split_part.
16905         * ipa-inline.c (edge_badness): Add wrapper penalty.
16906         (sum_callers): Move up.
16907         (inline_small_functions): Set single_caller.
16908         * ipa-inline.h (inline_summary): Add single_caller.
16909         * ipa-split.c (split_function): Set split_part.
16910         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
16911         * cgraph.h (cgraph_node): Add split_part.
16913 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
16915         PR target/58945
16916         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
16917         Do not split operands 0 and operands 2 to halfmode.
16918         (atomic_compare_and_swap<mode>): Update for
16919         atomic_compare_and_swap<dwi>_doubleword changes.
16921 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
16923         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
16924         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
16925         no caching is done.
16927 2015-03-31  Martin Liska  <mliska@suse.cz>
16929         PR ipa/65557
16930         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
16931         has already filled up function summary.
16932         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16934 2015-03-31  Richard Biener  <rguenther@suse.de>
16936         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
16937         of types.
16939 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16941         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
16942         nested functions.
16943         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
16944         (s390_asm_output_function_label): Adapt to new signature of
16945         s390_function_num_hotpatch_hw
16946         Optimise the code generating assembler output.
16947         Add comments to assembler file.
16949 2015-03-31  Richard Biener  <rguenther@suse.de>
16951         PR middle-end/65626
16952         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
16953         of the noreturn call so it is last and cleanup_control_flow_bb
16954         can do the CFG part.
16956 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
16958         PR target/65531
16959         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
16960         same_comdat_group for external symbols.
16961         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
16962         infinite same_comdat_group traversal loop.
16964 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
16966         PR plugins/61176
16967         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
16968         automatically to $headers.
16970 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
16972         PR ipa/65610
16973         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
16974         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
16975         function.
16976         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
16977         Use it.
16978         * ipa-prop.c (param_type_may_change_p): Likewise.
16979         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
16980         (remove_unused_scope_block_p): Add in_ctor_dtor_block
16981         argument.  Before inlining, preserve
16982         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
16983         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
16984         recursive calls.
16985         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
16987 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
16989         PR ipa/65076
16990         * ipa-inline.c (edge_badness): Base denominator on callee's
16991         grwoth squared.
16993 2015-03-27  Martin Jambor  <mjambor@suse.cz>
16995         PR ipa/65478
16996         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
16997         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
16998         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
16999         node_calling_single_call.
17000         * ipa-cp.c (count_callers): New function.
17001         (set_single_call_flag): Likewise.
17002         (initialize_node_lattices): Count callers and set single_flag_call if
17003         necessary.
17004         (incorporate_penalties): New function.
17005         (good_cloning_opportunity_p): Use it, dump new flags.
17006         (propagate_constants_topo): Set node_within_scc flag if appropriate.
17007         * doc/invoke.texi (ipa-cp-recursion-penalty,
17008         ipa-cp-single-call-pentalty): Document.
17010 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17012         PR ipa/65588
17013         * symtab.c (symtab_node::get_partitioning_class): Register vars
17014         are duplicated.
17015         * varpool.c (symbol_table::output_variables) Do not assemble unefined
17016         decls for non-symbols.
17018 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
17020         PR target/65248
17021         * output.h (default_binds_local_p_2): New.
17022         * varasm.c (default_binds_local_p_2): Renamed to ...
17023         (default_binds_local_p_3): This.  Don't return true on protected
17024         data symbol if protected data may be external.
17025         (default_binds_local_p): Use default_binds_local_p_3.
17026         (default_binds_local_p_1): Likewise.
17027         (default_binds_local_p_2): New.
17028         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17029         default_binds_local_p_2 if TARGET_MACHO is undefined.
17031 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
17033         PR target/65593
17034         * config/i386/i386.c (legitimize_pic_address): If base
17035         is SYMBOL_REF or LABEL_REF using %rip addressing, force
17036         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17038 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17040         PR target/65531
17041         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17042         comdat groups.
17044 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
17046         PR ipa/65600
17047         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17048         of optimized out indirect call.
17049         (redirect_to_unreachable): Always build symbol table node for
17050         BUILT_IN_UNREACHABLE
17052 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
17054         PR target/65407
17055         * ira-costs.c (record_reg_classes): Process all constraint string
17056         containing 0-9.
17058 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
17060         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17061         memory_operand.
17063         PR target/65052
17064         * config/c6x/constraints.md (S3): New constraint.
17065         * config/c6x/c6x.md (real_jump): Use it.
17067 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17069         PR middle-end/65595
17070         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17071         do redirection if the call is not optimized out.
17073 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
17075         PR target/65495
17076         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17077         (fchkp-check-incomplete-type): Add LTO.
17078         (fchkp-zero-input-bounds-for-main): Likewise.
17079         (fchkp-first-field-has-own-bounds): Likewise.
17080         (fchkp-narrow-bounds): Likewise.
17081         (fchkp-narrow-to-innermost-array): Likewise.
17082         (fchkp-use-static-bounds): Likewise.
17083         (fchkp-use-static-const-bounds): Likewise.
17084         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17086 2015-03-27  Marek Polacek  <polacek@redhat.com>
17088         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17090 2015-03-27  Marek Polacek  <polacek@redhat.com>
17092         PR sanitizer/65583
17093         * ubsan.c (ubsan_create_edge): New function.
17094         (instrument_bool_enum_load): Call it.
17095         (instrument_nonnull_arg): Likewise.
17096         (instrument_nonnull_return): Likewise.
17097         (instrument_object_size): Likewise.
17099 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17101         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17102         auto_vec.
17104 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17106         PR lto/65536
17107         * lto-streamer.h (class lto_location_cache): New.
17108         (struct data_in): Add location_cache.
17109         (lto_input_location): Update prototype.
17110         (stream_input_location_now): New.
17111         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17112         pointer to location.
17113         (stream_input_location): Update.
17114         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17115         (warn_odr): Apply location cache before warning.
17116         (lto_input_location): Update prototype.
17117         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17118         Use stream_input_location_now.
17119         * lto-streamer-in.c (lto_location_cache::current_cache): New static
17120         variable.
17121         (lto_location_cache::cmp_loc): New function.
17122         (lto_location_cache::apply_location_cache): New function.
17123         (lto_location_cache::accept_location_cache): New function.
17124         (lto_location_cache::revert_location_cache): New function.
17125         (lto_location_cache::input_location): New function.
17126         (lto_input_location): Do location caching.
17127         (stream_input_location_now): New function.
17128         (input_eh_region, input_struct_function_base): Use
17129         stream_input_location_now.
17130         (lto_data_in_create): use new.
17131         (lto_data_in_delete): Use delete.
17132         * tree-streamer-in.c (unpack_ts_block_value_fields,
17133         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17134         lto_input_ts_exp_tree_pointers): Update for cached location api.
17136 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17138         PR ipa/65076
17139         * passes.def: Add pass_nothrow.
17140         * ipa-pure-const.c: (pass_data_nothrow): New.
17141         (pass_nothrow): New.
17142         (pass_nothrow::execute): New.
17143         (make_pass_nothrow): New.
17144         * tree-pass.h (make_pass_nothrow): Declare.
17146 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17148         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17149         edge to change by speculation resolution or redirection.
17150         (edge_set_predicate): Likewise.
17151         (inline_summary_t::duplicate): Likewise.
17152         (remap_edge_summaries): Likewise.
17154 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17156         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17157         New macros.
17158         (can_inline_edge_p): Relax option matching for always inline functions.
17160 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
17162         PR target/65561
17163         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17164         Check operand 4 and operand 0 for equality.
17165         (avx512f_vextract<shuffletype>32x4_1_maskm):
17166         Check operand 6 and operand 0 for equality.
17167         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17168         for equality.
17169         (vec_extract_hi_<mode>_maskm): Ditto.
17171 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17173         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17174         dead calls back to live.
17175         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17176         cross check to ...
17177         (cgraph_node::verify_node): ... here; verify only callee edges,
17178         not caller.
17179         * cif-code.def (CILK_SPAWN): New code.
17181 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
17183         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17184         (edge_set_predicate): Use it to mark unreachable edges.
17185         (inline_summary_t::duplicate): Remove unnecesary code.
17186         (remap_edge_summaries): Likewise.
17187         (dump_inline_summary): Report contains_cilk_spawn.
17188         (compute_inline_parameters): Compute contains_cilk_spawn.
17189         (inline_read_section, inline_write_summary): Stream
17190         contains_cilk_spawn.
17191         * ipa-inline.c (can_inline_edge_p): Do not touch
17192         DECL_STRUCT_FUNCTION that may not be available;
17193         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17194         remove check for callee_fun->can_throw_non_call_exceptions and
17195         replace it by optimization attribute check; check for flag_exceptions.
17196         * ipa-inline-transform.c (inline_call): Maintain
17197         DECL_FUNCTION_PERSONALITY
17198         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17200 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
17202         PR tree-optimization/65551
17203         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17204         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17206 2015-03-26  Richard Biener  <rguenther@suse.de>
17208         PR middle-end/65555
17209         * tree-cfg.c (verify_gimple_call): Do not require a call to
17210         have no LHS if it wasn't recognized as control altering yet.
17212 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
17214         PR tree-optimization/64715
17215         * passes.def: Add another instance of pass_object_sizes before ccp1.
17216         * tree-object-size.c (pass_object_sizes::execute): In
17217         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17218         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17219         __bos result and the computed constant.  Remove redundant
17220         checks, obsoleted by gimple_call_builtin_p test.
17222         * var-tracking.c (variable_tracking_main_1): Don't track
17223         variables for targetm.no_register_allocation targets.
17225 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
17227         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17228         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17230 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
17232         PR target/65569
17233         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17234         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
17235         0.0 is correctly setup.
17236         (extenddftf2_internal): Likewise.
17238 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
17240         PR tree-optimization/65177
17241         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17242         (bb_in_bbs): New.
17243         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
17244         edges not adjacent on the path to the original code.
17246 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
17248         PR bootstrap/65537
17249         * doc/install.texi (Building a native compiler): Document new
17250         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
17251         configuration assumes that the host supports the linker plugin.
17253 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
17255         PR target/65508
17256         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17257         chain for generated call.
17259 2015-03-25  Richard Biener  <rguenther@suse.de>
17261         * passes.c (pass_manager::execute_early_local_passes): Guard
17262         execution of pass_chkp_instrumentation_passes with
17263         flag_check_pointer_bounds.
17264         (pass_chkp_instrumentation_passes::gate): Likewise.
17266 2015-03-25  Martin Liska  <mliska@suse.cz>
17268         PR tree-optimization/65538
17269         * symbol-summary.h (function_summary::~function_summary):
17270         Relese memory for allocated summaries.
17271         (function_summary::release): New function.
17273 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
17275         PR lto/65515
17276         * lto-streamer-out.c (DFS::worklist): New struct.
17277         (DFS::worklist_vec): New data member.
17278         (DFS::next_dfs_num): Remove.
17279         (DFS::DFS): Rewritten using worklist instead of recursion,
17280         using most of code from DFS::DFS_write_tree.
17281         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17282         pass it to DFS_write_tree calls.
17283         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17284         quick initial checks push it into worklist_vec and return.
17286 2015-03-25  Richard Biener  <rguenther@suse.de>
17288         PR middle-end/65519
17289         * genmatch.c (expr::gen_transform): Re-write to avoid
17290         using gimple_build.
17292 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
17294         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17296 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
17298         * config/arm/arm.opt (print_tune_info): New option.
17299         * config/arm/arm.c (arm_print_tune_info): New function.
17300         (arm_file_start): Call arm_print_tune_info.
17301         * config/arm/arm-protos.h (struct tune_params): Add comment.
17302         * doc/invoke.texi (@item -mprint-tune-info): New item.
17303         (-mtune): mention it in ARM Option Summary.
17305 2015-03-25  DJ Delorie  <dj@redhat.com>
17307         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17308         correct clause.
17310 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
17311             Martin Liska  <mliska@suse.cz>
17313         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17314         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17315         (sem_item::add_type): New function.
17316         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17317         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17318         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17319         (sem_function::equals_wpa): Fix typo.
17320         * ipa-icf.h (sem_item::add_type): New function.
17321         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17322         order.
17324 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
17326         PR tree-optimization/65533
17327         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17328         with swapped operands, call vect_free_slp_tree on
17329         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17330         vector.
17332 2015-03-24  Richard Biener  <rguenther@suse.de>
17334         PR middle-end/65517
17335         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17336         for fixup if necessary.
17338 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
17340         * doc/extend.texi (Function Attributes): Add @cindex entries
17341         for all attributes and regularize their format.  Delete text
17342         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
17343         information about "eightbit_data", "tiny_data", and "model"
17344         variable attributes to the Variable Attributes section.  Fix
17345         some obvious typos and copy-editing issues.
17346         (Variable Attributes, Type Attributes): Likewise add/fix
17347         @cindex entries for all attributes.
17349 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
17351         PR target/65523
17352         * tree-chkp.c (chkp_build_returned_bound): Ignore
17353         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17355 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
17357         PR target/65505
17358         * config/sh/predicates.md (simple_mem_operand,
17359         displacement_mem_operand): Add test for reg.
17360         (short_displacement_mem_operand): Test for displacement_mem_operand
17361         before invoking sh_disp_addr_displacement.
17362         * config/sh/constraints.md (Sdd, Sra): Simplify.
17363         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17364         Remove redundant displacement_mem_operand tests.
17366 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
17368         PR target/65296
17369         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17370         the same -mmcu=MCU more than once.
17372 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
17374         PR bootstrap/65522
17375         * ipa-devirt.c: Remove duplicate demangle.h include.
17377         PR target/65504
17378         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17379         on the pseudo.
17380         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17381         REG_POINTER on *destptr after adjusting it for prologue size.
17383         PR ipa/65521
17384         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17385         ultimate_alias_target ()->order ints instead of
17386         ultimate_alias_target () pointers.
17388 2015-03-23  Richard Biener  <rguenther@suse.de>
17390         PR tree-optimization/65518
17391         * tree-vect-stmts.c (vectorizable_load): Reject single-element
17392         interleaving cases we generate absymal code for.
17394 2015-03-23  Richard Biener  <rguenther@suse.de>
17396         PR tree-optimization/65494
17397         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17398         matches here.
17399         (vect_analyze_slp_instance): But do that here, always and once.
17401 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17403         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17404         adding T or multiplying by T+1 and subracting T.
17406 2015-03-22  Jeff Law  <law@redhat.com>
17408         PR rtl-optimization/64317
17409         * Makefile.in (OBJS): Add gcse-common.c
17410         * gcse.c: Include gcse-common.h
17411         (struct modify_pair_s): Move structure definition to gcse-common.h
17412         (compute_transp): Move function to gcse-common.c.
17413         (canon_list_insert): Similarly.
17414         (record_last_mem_set_info): Break out some code and put it into
17415         gcse-common.c.  Call into the new common code.
17416         (compute_local_properties): Pass additional arguments to compute_transp.
17417         * postreload-gcse.c: Include gcse-common.h and df.h
17418         (modify_mem_list_set, blocks_with_calls): New variables.
17419         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17420         (get_bb_avail_insn): Pass in the expression index too.
17421         (alloc_mem): Allocate memory for the new bitmaps and lists.
17422         (free_mem): Free memory for the new bitmaps and lists.
17423         (insert_expr_in_table): Record a bitmap index for each entry we
17424         add to the table.
17425         (record_last_mem_set_info): Call into common code in gcse-common.c.
17426         (get_bb_avail_insn): If no available insn was found in the requested
17427         BB.  If BB has a single predecessor, see if the expression is
17428         transparent in BB and available in that single predecessor.
17429         (compute_expr_transp): New wrapper for compute_transp.
17430         (eliminate_partially_redundant_load): Pass expression's bitmap_index
17431         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
17432         (gcse_after_reload_main): If there are elements in the hash table,
17433         then compute transparency for all the elements in the hash table.
17434         * gcse-common.h: New file.
17435         * gcse-common.c: New file.
17437 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
17439         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17440         as an adjective.
17441         (System Headers): Likewise.
17442         (Ifdef): Likewise.
17443         (Traditional macros): Likewise.
17444         (Invocation): Likewise.
17445         (Option Index): Likewise.
17446         * doc/cppopts.texi (-M): Likewise.
17447         (-finput-charset): Likewise.
17448         (--help): Likewise.
17449         * doc.invoke.texi (AVR Options): Likewise.
17450         (V850 Options): Likewise.
17452 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
17454         PR ipa/65475
17455         * ipa-devirt.c: Include demangle.h
17456         (odr_type_d): Add field rtti_broken.
17457         (odr_subtypes_equivalent_p): Do not require name to match.
17458         (compare_virtual_tables): Fix typo; if type already has ODR violation,
17459         bypass the tests; be ready for function referneces in vtables that are
17460         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
17461         (warn_odr): Give up for nameless types.
17462         (warn_types_mismatch): Report mismatch in mangled names;
17463         report mismatch in anonymous namespaces; look into component types to
17464         give useful error; report when mismatch is dragged in from other ODR
17465         type.
17466         (odr_types_equivalent_p): Match types for being polymorphic; avoid
17467         duplicated diagnostics.
17468         (add_type_duplicate): Reorder checks so more informative ones come
17469         first; fix typo; do not output "the extra base is defined here" when
17470         we did not warn.
17471         (BINFO_N_BASE_BINFOS): Relax sanity check.
17473 2015-03-22  Martin Liska  <mliska@suse.cz>
17474             Jakub Jelinek  <jakub@redhat.com>
17476         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
17477         masks that can potentially include a builtin.
17478         (ix86_add_new_builtins): Introduce fast filter for isa values
17479         that cannot trigger builtin inclusion.
17481 2015-03-22  Martin Liska  <mliska@suse.cz>
17483         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
17484         (sem_item::update_hash_by_local_refs): Likewise.
17485         (sem_variable::get_hash): Empty line is fixed.
17486         (sem_item_optimizer::execute): Include adding of hash references.
17487         (sem_item_optimizer::update_hash_by_addr_refs): New function.
17488         (sem_item_optimizer::build_hash_based_classes): Use local hash.
17489         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
17490         (sem_item::update_hash_by_local_refs): Likewise.
17492 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17494         PR ipa/65502
17495         * ipa-comdats.c (enqueue_references): Walk through thunks.
17496         (ipa_comdats): Likewise.
17497         (set_comdat_group_1): New function.
17499 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17501         PR ipa/65475
17502         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
17503         non-polymorphic
17505 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
17506             Gerald Pfeifer  <gerald@pfeifer.com>
17508         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
17510 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
17511             Sandra Loosemore  <sandra@codesourcery.com>
17513         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
17514         function parameter declaration.
17515         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
17516         Update arguments to nios2_adjust_call_address().
17517         (sibcall_internal): Rename from *sibcall.
17518         (sibcall_value_internal): Rename from *sibcall_value.
17519         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
17520         (nios2_large_got_address): Add target temp reg parameter.
17521         (nios2_got_address): Adjust call to nios2_large_got_address, add
17522         force_reg around it.
17523         (nios2_load_pic_address): Add target temp reg parameter, replace call
17524         to nios2_got_address with corresponding code.
17525         (nios2_legitimize_constant_address): Update call to
17526         nios2_load_pic_address.
17527         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
17528         to use temp reg for PIC loading purposes.
17529         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
17530         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17531         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
17533 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17535         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
17536         usage of "the @option{...}".
17537         (-Wopenmp-simd): Likewise.
17538         (-fsanitize-recover): Likewise.
17539         (-fsanitize-undefined-trap-on-error): Likewise.
17540         (-flto): Likewise.
17541         (tracer-dynamic-coverage-feedback): Likewise.
17542         (reorder-block-duplicate-feedback): Likewise.
17543         (loop-unroll-jam-size): Likewise.
17544         (-B): Likewise.
17545         (-I-): Likewise.
17546         (-mabs=legacy): Likewise.
17547         (-mupper-regs-df): Likewise.
17548         (-mupper-regs-sf): Likewise.
17549         (-mpointers-to-nested-functions): Likewise.
17551 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17553         * doc/extend.texi (Cilk Plus Builtins): Add markup.
17555 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
17557         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
17558         additional index entries and cross-references.
17559         (-fchkp-check-incomplete-type): Likewise.
17560         (-fchkp-first-field-has-own-bounds): Likewise.
17561         (-fchkp-narrow-to-innermost-array): Likewise.
17562         (-fchkp-use-fast-string-functions): Likewise.
17563         (-fchkp-use-nochk-string-functions): Likewise.
17564         (-fchkp-use-static-const-bounds): Likewise.
17565         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17566         (-fchkp-instrument-marked-only): Likewise.
17567         (-fchkp-use-wrappers): Likewise.
17568         (-static-libmpx): Likewise.
17569         (-static-libmpxwrappers): Likewise.
17570         * doc/extend.texi (bnd_legacy): Likewise.
17571         (bnd_instrument): Likewise.
17572         (bnd_variable_size): Likewise.
17573         (Pointer Bounds Checker builtins): Likewise.
17575 2015-03-21  Tom de Vries  <tom@codesourcery.com>
17577         PR tree-optimization/65458
17578         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
17579         * cgraph.h (cgraph_node): Add parallelized_function field.
17580         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
17581         (input_overwrite_node): Read parallelized_function field.
17582         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
17583         parallelized_function on cgraph_node for child_fn.
17584         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
17585         Remove include of gt-tree-parloops.h.
17586         (parallelized_functions): Remove static variable.
17587         (parallelized_function_p): Rewrite using parallelized_function field of
17588         cgraph_node.
17589         (create_loop_fn): Remove adding to parallelized_functions.
17590         * Makefile.in (GTFILES): Remove tree-parloops.c
17592 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
17594         PR rtl-optimization/64366
17595         * lra.c (lra_update_insn_regno_info): Consider regs in
17596         CALL_INSN_FUNCTION_USAGE memory.
17598 2015-03-20  Richard Biener  <rguenther@suse.de>
17600         PR middle-end/64715
17601         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
17602         for type comparison and gcc_checking_assert.
17603         (chrec_fold_plus_poly_poly): Likewise.
17604         (chrec_fold_multiply_poly_poly): Likewise.
17605         (chrec_convert_1): Likewise.
17606         * gimplify.c (gimplify_expr): Remove premature folding of
17607         &X + CST to &MEM[&X, CST].
17609 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
17611         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
17612         already is final.
17613         (ipa_inline): Recompute inline_failed codes.
17614         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
17615         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
17616         CIF_FINAL_ERROR.
17618 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
17620         PR rtl-optimization/60851
17621         * recog.c (constrain_operands): Accept a pseudo register before reload
17622         for LRA enabled targets.
17624 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
17626         PR target/65240
17627         * config/rs6000/predicates.md (easy_fp_constant): Remove special
17628         -ffast-math handling that kept non-0 constants live in the RTL
17629         until reload.  Remove logic testing the number of instructions it
17630         took to create a constant in a GPR that was never used, due to a
17631         test for soft-float earlier.
17632         (memory_fp_constant): Delete, no longer used.
17634         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
17635         alternatives for loading non-0 constants into GPRs for hard
17636         floating point that is no longer needed due to changes in
17637         easy_fp_constant.  Add support for loading 0.0 into GPRs.
17638         (mov<mode>_hardfloat32): Likewise.
17639         (mov<mode>_hardfloat64): Likewise.
17640         (mov<mode>_64bit_dm): Likewise.
17641         (movtd_64bit_nodm): Likewise.
17642         (pre-reload move FP constant define_split): Delete define_split,
17643         since it is no longer used.
17644         (extenddftf2_internal): Remove GHF constraints that are not valid
17645         for extenddftf2.
17647 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
17649         PR rtl-optimization/63491
17650         * lra-constraints.c (check_and_process_move): Use src instead of
17651         sreg.  Remove some dead code.
17653 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
17655         PR ipa/65380
17656         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
17657         (sem_variable::merge): Likewise.
17659 2015-03-19  Martin Liska  <mliska@suse.cz>
17661         PR ipa/65465
17662         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
17663         all fields of cgraph_thunk_info.
17665 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
17667         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
17668         clone instrumented thunks.
17670 2015-03-19  Richard Biener  <rguenther@suse.de>
17672         Revert
17673         2015-03-10  Richard Biener  <rguenther@suse.de>
17675         PR middle-end/63155
17676         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17677         * tree-ssa-coalesce.c: Include timevar.h.
17678         (attempt_coalesce): Handle graph being NULL.
17679         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17680         Split out abnormal coalescing to ...
17681         (perform_abnormal_coalescing): ... this function.
17682         (coalesce_ssa_name): Perform abnormal coalescing without computing
17683         live/conflict.
17684         (verify_ssa_coalescing_worker): New function.
17685         (verify_ssa_coalescing): Likewise.
17687 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17688             Jakub Jelinek  <jakub@redhat.com>
17690         PR sanitizer/65400
17691         * tsan.c (instrument_gimple): Clear tail call flag on
17692         calls.
17694 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
17696         PR sanitizer/65400
17697         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
17698         call in the return bb.
17699         (find_split_points): Add RETURN_BB argument, don't call
17700         find_return_bb.
17701         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
17702         if true append TSAN_FUNC_EXIT internal call after the call to
17703         the split off function.
17704         (execute_split_functions): Call find_return_bb here.
17705         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
17706         Adjust find_split_points and split_function calls.
17708 2015-03-18  DJ Delorie  <dj@redhat.com>
17710         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
17711         (iorqi3_virt): Likewise.
17713 2015-03-18  Tom de Vries  <tom@codesourcery.com>
17715         * tree-parloops.c (parallelize_loops): Make static.
17716         * tree-parloops.h (parallelize_loops): Remove extern declaration.
17718 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
17720         PR middle-end/64491
17721         Revert:
17722         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
17724         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
17725         condition would be removed due to undefined behaviour.
17727 2015-03-18  Martin Liska  <mliska@suse.cz>
17729         PR ipa/65432
17730         * cgraph.c (cgraph_node::get_create): Remove unnecessary
17731         xstrdup_for_dump wrapper.
17732         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
17733         sem_item::name.
17734         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
17735         with xstrdup_for_dump.
17736         (sem_variable::equals): Likewise.
17737         (sem_item_optimizer::read_section): Use symtab_node::name instead of
17738         sem_item::name.
17739         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
17740         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
17741         symtab_node::asm_name with xstrdup_for_dump.
17742         (congruence_class::dump): Use symtab_node::name instead of
17743         sem_item::name.
17744         * ipa-icf.h (symtab_node::name): Remove.
17745         (symtab_node::asm_name): Likewise.
17747 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
17749         PR tree-optimization/65450
17750         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
17751         function.
17752         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
17753         it instead of duplicate_ssa_name_ptr_info.
17755         PR target/65222
17756         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
17758 2015-03-18  Richard Biener  <rguenther@suse.de>
17760         * tree-data-ref.h (struct access_matrix): Remove.
17761         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17762         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17763         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
17764         (am_vector_index_for_loop): Likewise.
17765         (struct data_reference): Remove access_matrix member.
17766         (DR_ACCESS_MATRIX): Remove.
17767         (lambda_vector_new): Add comment.
17768         (lambda_matrix_new): Use XOBNEWVEC.
17770 2015-03-18  Richard Biener  <rguenther@suse.de>
17772         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
17773         (pass_ch::execute): Cleanup the CFG only if we did sth.
17774         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
17776 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17778         * expmed.c (synth_mult): Use std::swap instead of manually
17779         swapping algorithms.
17781 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
17783         PR target/65078
17784         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
17786 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
17788         PR target/65296
17789         * config/avr/avr.opt (-nodevicelib): New option.
17790         * doc/invoke.texi (AVR Options): Document it.
17791         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
17792         libgcc.a, libc.a, libm.a.
17793         * config/avr/specs.h: Same.
17794         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
17795         which don't (directly) depend on the device.  Print more help.
17796         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
17797         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
17798         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
17799         case of an error.
17800         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
17801         for specs file name.
17802         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
17803         * config/avr/avr-mcus.def: Adjust initializers and comments.
17805 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
17807         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
17808         DECL_ONE_ONLY to check if decl is one only.
17809         * ipa-split.c (consider_split): Limit splitt of one only functions.
17811 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
17813         PR tree-optimization/65427
17814         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
17815         functions.
17816         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
17818 2015-03-16  Marek Polacek  <polacek@redhat.com>
17820         * cgraph.h (add_new_static_var): Remove declaration.
17821         * varpool.c (add_new_static_var): Remove function.
17823 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
17825         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
17826         instead of vec<tree> * with vec_alloc and release for args.
17827         Adjust all users.
17829         PR middle-end/65431
17830         * omp-low.c (delete_omp_context): Only splay_tree_delete
17831         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
17832         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
17834 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
17836         PR sanitizer/64820
17837         * cfgexpand.c (align_base): New function.
17838         (alloc_stack_frame_space): Call it.
17839         (expand_stack_vars): Align prev_frame to be sure
17840         data->asan_vec elements aligned properly.
17842 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
17844         PR middle-end/65409
17845         * expr.c (store_field): Do not do a direct block copy if the source is
17846         a PARALLEL with BLKmode.
17848 2015-03-16  Tom de Vries  <tom@codesourcery.com>
17850         PR middle-end/65414
17851         Revert:
17852         2015-03-12  Tom de Vries  <tom@codesourcery.com>
17854         PR rtl-optimization/64895
17855         * lra-lives.c (check_pseudos_live_through_calls): Use
17856         actual_call_used_reg_set instead of call_used_reg_set, if available.
17858 2015-03-16  Alan Modra  <amodra@gmail.com>
17860         PR target/63150
17861         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
17862         Modify Z->r bswapdi splitter to use dest in place of scratch.
17863         In r->Z and Z->r bswapdi splitter rename word_high, word_low
17864         to word1, word2 and rearrange logic to suit.
17865         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
17866         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
17867         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
17868         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
17869         early clobber.
17871 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
17873         PR tree-optimization/65369
17874         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
17875         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
17876         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
17878         PR tree-optimization/65418
17879         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
17880         are casts in the first PLUS_EXPR operand, ensure tbias and
17881         *totallowp are in the inner type.
17883         PR rtl-optimization/65401
17884         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
17885         argument.  If true, adjust_address_nv of x with big-endian
17886         correction for the mode widening to GET_MODE (y).
17887         (make_field_assignment): Don't do MEM mode widening here.
17888         Use MEM_P instead of GET_CODE == MEM.
17890 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
17892         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
17893         the external decls.
17895 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17897         PR target/64600
17898         * config/arm/arm.c (arm_gen_constant, AND case): Use
17899         ARM_SIGN_EXTEND when constructing AND mask.
17901 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17903         * graph.c (print_graph_cfg): Make function names visible and append
17904         parenthesis to it.  Also make groups of basic blocks belonging to the
17905         same function visible.
17907 2015-03-12  Richard Biener  <rguenther@suse.de>
17909         PR middle-end/44563
17910         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
17911         to avoid quadratic behavior with inline expansion splitting blocks.
17912         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
17913         with the successor if the predecessor will be merged with it.
17914         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
17915         entry block with its successor.
17917 2015-03-13  Richard Biener  <rguenther@suse.de>
17919         PR middle-end/44563
17920         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
17921         (cleanup_tree_cfg_1): Do not call it.
17922         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
17923         (fixup_noreturn_call): Mark the stmt as control altering.
17924         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
17925         here.
17926         (pass_data_fixup_cfg): Produce a dump file.
17927         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
17928         (need_noreturn_fixup): New global.
17929         (pass_dominator::execute): Fixup queued noreturn calls.
17930         (optimize_stmt): Queue calls that became noreturn for fixup.
17931         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
17932         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
17933         (el_to_fixup): New global.
17934         (eliminate_dom_walker::before_dom_childre): Queue calls that
17935         became noreturn for fixup.
17936         (eliminate): Fixup queued noreturn calls.
17937         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
17938         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
17939         (substitute_and_fold_dom_walker::before_dom_children): Queue
17940         alls that became noreturn for fixup.
17941         (substitute_and_fold): Fixup queued noreturn calls.
17943 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
17945         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
17946         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
17947         are building; for methods check ODR type of class they belong to if
17948         they may lead to a polymorphic call.
17949         (sem_function::compare_polymorphic_p): Be bit smarter about testing
17950         when function may lead to a polymorphic call.
17951         (sem_function::compare_type_list): Remove.
17952         (sem_variable::equals): Update use of compatible_types_p.
17953         (sem_variable::parse_tree_refs): Remove.
17954         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
17955         cdtor.
17956         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
17957         matching here.
17958         (func_checker::compatible_polymorphic_types_p): Break out from ...
17959         (unc_checker::compatible_types_p): ... here.
17960         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
17961         Declare.
17962         (unc_checker::compatible_types_p): Update.
17963         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
17964         Remove.
17966 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17968         PR rtl-optimization/65235
17969         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
17970         When first element of vec_concat is const_int, calculate its size
17971         using second element.
17973 2015-03-12  Richard Biener  <rguenther@suse.de>
17975         PR middle-end/65270
17976         * fold-const.c (operand_equal_p): Fix ordering of resetting
17977         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
17979 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17981         * config/s390/s390.c (s390_reorg): Move code to output nops after label
17982         to s390_reorg ().
17983         (s390_asm_output_function_label): Likewise.
17984         * config/s390/s390.c (s390_asm_output_function_label):
17985         Fix function label alignment with -mhtopatch.
17986         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
17987         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
17988         ("nop_2_byte"): New define_insn.
17989         ("nop_4_byte"): Likewise.
17990         ("nop_6_byte"): Likewise.
17991         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
17992         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
17994 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
17996         PR target/65103
17997         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
17998         register.
18000 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
18002         PR target/65044
18003         * toplev.c (process_options): Restrict Pointer Bounds Checker
18004         usage with Address Sanitizer.
18006 2015-03-12  Richard Biener  <rguenther@suse.de>
18008         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18009         to split on.
18010         * omp-low.c (expand_omp_taskreg): Split block before removing
18011         the stmt.
18012         (expand_omp_target): Likewise.
18013         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18014         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18015         stmt to split_block.
18017 2015-03-12  Tom de Vries  <tom@codesourcery.com>
18019         PR rtl-optimization/64895
18020         * lra-lives.c (check_pseudos_live_through_calls): Use
18021         actual_call_used_reg_set instead of call_used_reg_set, if available.
18023 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18025         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18026         (cgraph_node::remove): Likewise.
18027         (cgraph_node::get_untransformed_body): Likewise.
18028         * varpool.c (varpool_node::remove): Likewise.
18029         (varpool_node::get_constructor): Add sanity check.
18031 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
18033         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18034         old GCC versions.
18035         (-fabi-compat-version): Likewise.
18036         (-ffriend-injection): Likewise.
18037         (-Wdeclaration-after-statement): Likewise.
18038         (-fomit-frame-pointer): Likewise.
18039         (-ftree-coalesce-inlined-vars): Likewise.
18040         (-fvisibility=): Likewise.
18041         * doc/extend.texi (Typeof): Likewise.
18042         (Zero Length): Likewise.
18043         (Escaped Newlines): Likewise.
18044         (Compound Literals): Likewise.
18045         (Function Attributes): Likewise.
18046         (Label Attributes): Likewise.
18047         (Type Attributes): Likewise.
18048         (Function Names): Likewise.
18049         (Other Builtins): Likewise.
18050         (Function Specific Option Pragmas): Likewise.
18051         (C++ Interface): Likewise.
18053 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
18055         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18057 2015-03-11  Marek Polacek  <polacek@redhat.com>
18059         PR tree-optimization/65388
18060         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18062 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
18064         PR target/65296
18065         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18066         * configure: Regenerate.
18067         * config.in: Regenerate.
18068         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18069         [-mn-flash]: Document it.
18070         [__AVR_ARCH__]: Document avrtiny.
18072         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18073         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18074         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18076 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18078         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18080 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18082         PR target/65242
18083         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18084         allow reloads of PLUS in floating point/VSX registers.
18086 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
18088         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18089         crypto_sha256_fast.
18090         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18092 2015-03-11  Richard Biener  <rguenther@suse.de>
18094         PR tree-optimization/65310
18095         * tree-sra.c (build_ref_for_offset): Also preserve larger
18096         alignment.
18098 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
18100         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18102 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18104         PR target/65368
18105         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18106         new define_expand.
18107         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18109 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18111         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18112         (sem_function::equals_wpa): ... here.
18114 2015-03-10  Marek Polacek  <polacek@redhat.com>
18115             Jakub Jelinek  <jakub@redhat.com>
18117         PR sanitizer/65367
18118         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18119         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
18120         separately.
18122 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18124         PR target/65286
18125         * config/rs6000/t-linux: For powerpc64* target set
18126         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18128 2015-03-10  Richard Biener  <rguenther@suse.de>
18130         PR middle-end/44563
18131         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18132         for redirect_all_calls.
18134 2015-03-10  Marek Polacek  <polacek@redhat.com>
18136         * gdbinit.in (pcfun): Define and document.
18138 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
18140         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18141         of libgomp-plugin.h.
18142         (find_target_compiler): Support a case when the path to gcc is
18143         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18144         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18145         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18146         libgomp-plugin.h.
18147         (main): Use GCC_INSTALL_NAME as target_driver_name.
18148         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18149         define.
18150         (mkoffload.o): Remove obsolete include path and defines.
18151         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18153 2015-03-10  Richard Biener  <rguenther@suse.de>
18155         PR middle-end/63155
18156         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18157         * tree-ssa-coalesce.c: Include timevar.h.
18158         (attempt_coalesce): Handle graph being NULL.
18159         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18160         Split out abnormal coalescing to ...
18161         (perform_abnormal_coalescing): ... this function.
18162         (coalesce_ssa_name): Perform abnormal coalescing without computing
18163         live/conflict.
18164         (verify_ssa_coalescing_worker): New function.
18165         (verify_ssa_coalescing): Likewise.
18167 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
18169         PR target/65296
18170         * config.gcc (extra_options) [avr]: Remove.
18171         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18172         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18173         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18175         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18176         (-mmcu=): Add Var and MissingArgError properties.
18177         (-march=): Remove.
18178         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18179         * config/avr/t-multilib: Regenerate.
18180         * config/avr/specs.h: New file.
18181         * config/avr/driver-avr.c: New file.
18182         * config/avr/genopt.sh: Remove file.
18183         * config/avr/avr-tables.opt: Remove file.
18184         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18185         * config/avr/avr-c.c: Same.
18186         * avr-arch.h: Same.
18187         (avr_current_device): Remove proto.
18188         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18189         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18190         (EXTRA_SPEC_FUNCTIONS): Define.
18191         (avr_devicespecs_file): New specs function proto.
18192         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18193         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18194         (avr_current_device): Remove definition and usage.
18195         (avr_set_core_architecture): New static function.
18196         (avr_option_override): Use it.
18197         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18198         (mcu_name): New static array.
18199         (comparator, avr_archs_str, avr_mcus_str): New static functions.
18200         (avr_inform_devices, avr_inform_core_architectures): New functions.
18201         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18202         (avrlibc.h) [WITH_AVRLIBC]: Include.
18203         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18204         (print_mcu): Rewrite from scratch.
18205         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18206         Forward to avr-specific specs defined in device-specs file.
18207         * config/avr/t-avr (driver-avr.o): New rule.
18208         (avr-devices.o): Depend on avr-arch.h.
18209         (avr-mcus): No more depend on avr-tables.opt.
18210         (avr-tables.opt): Remove rule.
18211         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18213 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18215         * c-family/c.opt (fchkp-use-wrappers): New.
18216         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18217         (chkp_wrap_function): New.
18218         (chkp_build_instrumented_fndecl): Support wrapped
18219         functions.
18220         * doc/invoke.texi (-fcheck-pointer-bounds): New.
18221         (-fchkp-check-incomplete-type): New.
18222         (-fchkp-first-field-has-own-bounds): New.
18223         (-fchkp-narrow-bounds): New.
18224         (-fchkp-narrow-to-innermost-array): New.
18225         (-fchkp-optimize): New.
18226         (-fchkp-use-fast-string-functions): New.
18227         (-fchkp-use-nochk-string-functions): New.
18228         (-fchkp-use-static-bounds): New.
18229         (-fchkp-use-static-const-bounds): New.
18230         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18231         (-fchkp-check-read): New.
18232         (-fchkp-check-write): New.
18233         (-fchkp-store-bounds): New.
18234         (-fchkp-instrument-calls): New.
18235         (-fchkp-instrument-marked-only): New.
18236         (-fchkp-use-wrappers): New.
18237         (-static-libmpx): New.
18238         (-static-libmpxwrappers): New.
18240 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18242         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18243         (CHKP_SPEC): Add wrappers library.
18244         * c-family/c.opt (static-libmpxwrappers): New.
18246 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
18248         * config/i386/linux-common.h (LIBMPX_LIBS): New.
18249         (LIBMPX_SPEC): New.
18250         (CHKP_SPEC): New.
18251         * gcc.c (CHKP_SPEC): New.
18252         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18253         * c-family/c.opt (static-libmpx): New.
18255 2015-03-10  Richard Biener  <rguenther@suse.de>
18257         PR middle-end/44563
18258         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18259         for compare_type.
18260         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18261         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18262         (cgraph_add_edge_to_call_site_hash): Likewise.
18263         (cgraph_node::get_edge): Likewise.
18264         (cgraph_edge::set_call_stmt): Likewise.
18265         (cgraph_edge::remove_caller): Likewise.
18267 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
18269         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18270         (callee_saved_gpr_regs_size): ... this.
18271         (callee_saved_regs_first_regno): Rename to ...
18272         (callee_saved_first_gpr_regno): ... this.
18273         (callee_saved_regs_last_regno) Rename to ...
18274         (callee_saved_last_gpr_regno): ... this.
18275         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18276         variables.
18277         (nds32_initial_elimination_offset): Likewise.
18278         (nds32_expand_prologue): Likewise.
18279         (nds32_expand_epilogue): Likewise.
18280         (nds32_expand_prologue_v3push): Likewise.
18281         (nds32_expand_epilogue_v3pop): Likewise.
18282         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18283         Adjust renamed variables.
18284         (nds32_output_stack_pop): Likewise.
18286 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18288         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18289         code in comment.
18291 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
18293         PR rtl-optimization/65321
18294         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18295         than shift mode.
18296         * var-tracking.c (use_narrower_mode): Likewise.
18298 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
18300         PR tree-optimization/65355
18301         * varasm.c (notice_global_symbol): Do not produce RTL.
18302         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18303         anchor.
18304         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18305         check for section anchors.
18307 2015-03-10  Alan Modra  <amodra@gmail.com>
18309         PR target/65286
18310         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18311         to be single-arch by default.  Set cpu_is_64bit for powerpc64
18312         given --with-cpu=native.
18313         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18314         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18315         and powerpc64le.
18316         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18317         rs6000_isa_flags rather than TARGET_64BIT.
18319 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
18320             Kaz Kojima  <kkojima@gcc.gnu.org>
18322         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18324 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
18326         PR lto/65361
18327         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18328         on a TREE_BINFO, instead use BINFO_TYPE.
18330 2015-03-09  Richard Biener  <rguenther@suse.de>
18332         PR middle-end/65270
18333         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18334         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18335         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
18336         of that.  When comparing dereferences compare alignment.
18337         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18339 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
18341         * ipa-inline-analysis.c (check_callers): Check
18342         node->can_remove_if_no_direct_calls_and_refs_p.
18343         (growth_likely_positive): Reorganize to call
18344         can_remove_if_no_direct_calls_p later.
18345         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18346         will_be_removed_from_program_if_no_direct_calls_p): Add
18347         will_inline parameter.
18348         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18349         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18350         Handle inliner case correctly.
18352 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18354         PR tree-optimization/63743
18355         * cfgexpand.c (reorder_operands): Also reorder if only second operand
18356         had its definition forwarded by TER.
18358 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
18360         PR lto/65316
18361         * ipa-utils.h (types_odr_comparable): Add strict argument.
18362         * ipa-devirt.c: Fix whitespace;
18363         (odr_hasher): Remove.
18364         (odr_name_hasher, odr_vtable_hasher): New hashers.
18365         (can_be_name_hashed_p): New predicate.
18366         (hash_type_name): remove.
18367         (hash_odr_name): New.
18368         (odr_name_hasher::hash): new.
18369         (can_be_vtable_hashed_p): New.
18370         (hash_odr_vtable): New.
18371         (odr_vtable_hasher::hash): New.
18372         (types_same_for_odr): Add strict parameter.
18373         (types_odr_comparable): Likewise.
18374         (odr_name_hasher::equal): New.
18375         (odr_vtable_hasher::equal): New.
18376         (odr_name_hasher::remove): New.
18377         (odr_hash_type): Change to hash_table<odr_name_hasher>.
18378         (odr_vtable_hash_type): New.
18379         (odr_vtable_hash): New.
18380         (odr_subtypes_equivalent_p): Do strict comparsion.
18381         (add_type_duplicate): Merge type names; cleanup; avoid type
18382         duplicates.
18383         (register_odr_type): Initialize vtable hash.
18384         (build_type_inheritance_graph): Likewise
18385         (get_odr_type): Reorg to use two hashes.
18386         (dump_possible_polymorphic_call_targets): Move sanity check after debug
18387         output.
18388         (ipa_devirt): Dump type_inheritance_graph.
18389         (types_same_for_odr): Add strict mode.
18391 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18393         PR ipa/65334
18394         * cgraph.h (symtab_node): Add definition_alignment,
18395         can_increase_alignment_p and increase_alignment.
18396         * symtab.c (symtab_node::can_increase_alignment_p,
18397         increase_alignment_1, symtab_node::increase_alignment,
18398         symtab_node::definition_alignment): New.
18399         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18400         can_increase_alignment_p.
18401         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18402         * tree-vect-stmts.c (ensure_base_align): Likewise.
18403         * varasm.c (function_section_1): Use definition_alignment.
18404         (assemble_start_function): Likewise.
18405         (emit_local): likewise.
18406         (build_constant_desc): Likewsie.
18407         (output_constant_def_contents): Likewise.
18408         (place_block_symbol): Likewise.
18409         (output_object_block): Likewise.
18411 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18413         PR ipa/65316
18414         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18415         when outputting debug.
18417 2015-03-07  Marek Polacek  <polacek@redhat.com>
18418             Martin Uecker  <uecker@eecs.berkeley.edu>
18420         PR sanitizer/65280
18421         * doc/invoke.texi: Update description of -fsanitize=bounds.
18423 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
18425         * tree-ssa-phiopt.c (neg_replacement): Remove.
18426         (tree_ssa_phiopt_worker): Remove negate optimization.
18428 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18430         PR ipa/65302
18431         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18433 2015-03-06  Richard Biener  <rguenther@suse.de>
18435         PR middle-end/64928
18436         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18437         and liveout_obstack members.
18438         (calculate_live_on_exit): Remove.
18439         (calculate_live_ranges): Change declaration.
18440         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18441         (new_tree_live_info): Adjust.
18442         (calculate_live_ranges): Delete livein when not wanted.
18443         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18444         Deal with partly deleted live info.
18445         (loe_visit_block): Remove temporary bitmap by using
18446         bitmap_ior_and_compl_into.
18447         (live_worklist): Adjust accordingly.
18448         (calculate_live_on_exit): Make static.
18449         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18450         we do not need livein.
18452 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
18454         * real.c (real_from_string): Fix typo in assertion.
18456 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
18458         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
18459         the patch.
18461 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
18463         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
18465 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
18467         PR target/64342
18468         * lra-assigns.c (find_hard_regno_for): Rename to
18469         find_hard_regno_for_1.  Add a new parameter.
18470         (find_hard_regno_for): New function using find_hard_regno_for_1.
18472 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18474         PR rtl-optimization/65067
18475         * expmed.c (store_bit_field, extract_bit_field): Reworked the
18476         strict volatile bitfield handling.
18478 2015-03-05  Martin Liska  <mliska@suse.cz>
18480         PR ipa/65318
18481         * ipa-icf.c (sem_variable::equals): Compare variables types.
18483 2015-03-05  Richard Henderson  <rth@redhat.com>
18485         PR target/65121
18486         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
18487         correctly check weak symbol binding.
18489 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
18491         PR middle-end/65315
18492         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
18493         needed alignment.
18495 2015-03-05  Martin Liska  <mliska@suse.cz>
18497         * ipa-inline.c (inline_small_functions): Set default value to
18498         prevent warning during bootstrap.
18499         * tree.h: Add pragma guard that ignores false positives during
18500         bootstrap.
18502 2015-03-05  Richard Biener  <rguenther@suse.de>
18504         PR tree-optimization/65310
18505         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18506         Properly preserve alignment of the base of the access.
18508 2015-03-05  Richard Biener  <rguenther@suse.de>
18510         PR ipa/65270
18511         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
18512         Compare dependence info.
18514 2015-03-05  Richard Biener  <rguenther@suse.de>
18516         PR middle-end/65233
18517         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
18518         tree-into-ssa.h.
18519         (walk_ssa_copies): Revert last chage.  Instead do not walk
18520         SSA names registered for SSA update.
18522 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18524         PR ipa/65270
18525         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
18526         vtable references for their containing type.
18527         (sem_function::equals_wpa): Compare TYPE_RESTRICT
18528         and type attributes.
18530 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
18532         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
18533         before negating it.
18534         * stor-layout.c (finalize_record_size): Revert latest change.
18536 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
18538         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
18540 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18542         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
18543         for correct comdat handling.
18544         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18545         Likewise.
18546         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
18547         (used_from_object_file_p_worker): Remove.
18548         (cgraph_node::only_called_directly_or_alised): Add
18549         used_from_object_file_p.
18550         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
18551         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
18552         can_remove_if_no_direct_calls_and_refs_p.
18554 2015-03-04  Nick Clifton  <nickc@redhat.com>
18556         * config/rl78/rl78.h (enum reg_class): Remove real registers from
18557         General register class.
18558         * config/rl78/rl78-real.md: Replace general register constraints
18559         with real+virtual register constraints.
18561 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18563         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
18564         from checking for -mhtm option.
18566 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
18568         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
18569         (struct ipa_sra_check_caller_data): Add has_thunk field.
18570         (ipa_sra_check_caller): Check for thunk.
18571         (ipa_sra_preliminary_function_checks): Give up on function with
18572         thunks.
18573         (ipa_early_sra): Use call_for_symbol_and_aliases.
18575 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
18577         PR target/65249
18578         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
18579         called for __stack_chk_guard symbol.
18581 2015-03-03  DJ Delorie  <dj@redhat.com>
18583         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
18584         inc/dec.
18585         (*addhi3_real): Likewise.
18586         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
18587         pattern to match incrementing memory.
18588         * config/rl78/predicates.md (rl78_1_2_operand): New.
18589         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
18590         it's the same and only mem.
18591         (rl78_alloc_physical_registers_op2): If there's effectively only
18592         one MEM, transcode it into HL.
18593         (rl78_far_p): Reject addresses that aren't legitimate.
18595 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18597         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
18598         negating it.
18600         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
18602 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
18604         Implement call0 ABI for xtensa
18605         * config/xtensa/constraints.md ("a" constraint): Include stack
18606         pointer in case of call0 ABI.
18607         ("q" constraint): Make empty in case of call0 ABI.
18608         ("D" constraint): Include stack pointer in case of call0 ABI.
18609         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
18610         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
18611         prototypes.
18612         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
18613         variable.
18614         (xtensa_regno_to_class): Make it a local variable in the
18615         function xtensa_regno_to_class.
18616         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
18617         macro, function prototype and implementation.
18618         (reg_nonleaf_alloc_order): Make it a local variable in the
18619         function order_regs_for_local_alloc.
18620         (xtensa_conditional_register_usage): New function.
18621         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
18622         (xtensa_valid_move): Allow direct moves to stack pointer
18623         register in call0 ABI.
18624         (xtensa_setup_frame_addresses): Only spill register windows in
18625         windowed ABI.
18626         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
18627         call0 ABI respectively.
18628         (xtensa_function_arg_1): Only mark a7 register for copying in
18629         windowed ABI.
18630         (xtensa_call_save_reg): New function.
18631         (compute_frame_size): Add space for callee saved register
18632         storage to the frame size in call0 ABI.
18633         (xtensa_expand_prologue): Generate code to set up stack frame
18634         and save callee-saved registers in call0 ABI.
18635         (xtensa_expand_epilogue): New function.
18636         (xtensa_set_return_address): New function.
18637         (xtensa_return_addr): Calculate return address in call0 ABI.
18638         (xtensa_builtin_saveregs): Only mark a7 register for copying and
18639         emit copying code in windowed ABI.
18640         (order_regs_for_local_alloc): Add preferred register allocation
18641         order for non-leaf function in call0 ABI.
18642         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
18643         (xtensa_asm_trampoline_template): Add trampoline generation for
18644         call0 ABI.
18645         (xtensa_trampoline_init): Add trampoline initialization for
18646         call0 ABI.
18647         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
18648         functions.
18649         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
18650         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
18651         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
18652         ABI call-used registers.
18653         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
18654         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
18655         call0 ABI.
18656         (REG_CLASS_CONTENTS): Include all registers into the preferred
18657         reload registers set, adjust the set in the
18658         xtensa_conditional_register_usage.
18659         (xtensa_regno_to_class): Drop variable declaration.
18660         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
18661         function.
18662         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
18663         respectively.
18664         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
18665         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
18666         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
18667         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
18668         location in call0 ABI.
18669         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
18670         stack adjustment size when handling exception.
18671         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
18672         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
18673         definitions.
18674         ("return" pattern): Generate ret.n/ret in call0 ABI.
18675         ("epilogue" pattern): Expand epilogue.
18676         ("nonlocal_goto" pattern): Use default in call0 ABI.
18677         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
18678         emit eh_set_a0_* depending on ABI.
18679         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
18680         ("eh_set_a0_call0", "blockage"): New patterns.
18682 2015-03-03  Martin Liska  <mliska@suse.cz>
18684         PR ipa/65287
18685         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
18687 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18689         PR 65138/target
18690         * config/rs6000/rs6000-tables.opt: Regenerate table.
18692 2015-03-03  Renlin Li  <renlin.li@arm.com>
18694         * doc/md.texi (@item ^): Change ? into ^.
18696 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
18698         * doc/tm.texi: Regenerated.
18700 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
18702         * builtins.c (expand_builtin_return_addr): Add
18703         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
18704         surrounding #ifdef.
18705         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
18706         definition to 1.
18707         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
18708         Likewise.
18709         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
18710         undefined.
18711         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
18712         paragraph.
18714 2015-03-03  Martin Jambor  <mjambor@suse.cz>
18715             Eric Botcazou  <ebotcazou@adacore.com>
18717         * tree-sra.c (ipa_sra_check_caller_data): New type.
18718         (has_caller_p): Removed.
18719         (ipa_sra_check_caller): New function.
18720         (ipa_sra_preliminary_function_checks): Use it.
18722 2015-03-03  Martin Liska  <mliska@suse.cz>
18724         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
18725         instead of if branch.
18727 2015-03-03  Martin Liska  <mliska@suse.cz>
18729         PR ipa/65282
18730         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
18732 2015-03-23  Jeff Law  <law@redhat.com>
18734         PR tree-optimization/65241
18735         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
18736         hash table if INSERT is true.
18738 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18740         PR target/65296
18741         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
18743 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18745         PR target/64331
18746         * config/avr/avr.c (context.h, tree-pass.h): Include them.
18747         (avr_pass_data_recompute_notes): New static variable.
18748         (avr_pass_recompute_notes): New class.
18749         (avr_register_passes): New static function.
18750         (avr_option_override): Call it.
18752 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
18754         Fix various problems with specs file generation.
18756         PR target/65296
18757         * config.gcc (extra_gcc_objs) [avr]: Remove.
18758         * config/avr/driver-avr.c: Remove file.
18759         * config/avr/t-avr (driver-avr.o): Remove rule.
18760         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
18761         INCLUDES to build.  Depend on TM_H.
18762         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
18763         build warnings.  Fix non-matching types and non-existing %-codes.
18764         (tm.h): Include.
18765         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
18766         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
18767         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
18768         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
18769         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
18770         (LIBGCC_SPEC): Remove definitions.
18772 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
18774         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
18775         to create a register in testing mode.
18777 2015-03-03  Martin Liska  <mliska@suse.cz>
18778             Jan Hubicka  <hubicka@ucw.cz>
18780         PR ipa/65263
18781         * cgraph.c (cgraph_node::has_thunk_p): New function.
18782         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
18783         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
18784         (sem_function::merge): Assert is changed.
18786 2015-03-03  Martin Liska  <mliska@suse.cz>
18787             Martin Jambor  <mjambor@suse.cz>
18789         PR ipa/65087
18790         * ipa-icf.c (sem_item_optimizer::execute): Change function
18791         return value to boolean.
18792         (sem_item_optimizer::merge_classes): Likewise.
18793         (ipa_icf_driver): Return TODO_remove_functions in case there's
18794         a merge operation processed.
18795         * ipa-icf.h: Change function return value to boolean.
18797 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
18799         PR 65138/target
18800         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
18801         processor type for 64-bit little endian PowerPC.
18803         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18804         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
18805         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
18806         printing built-in mask so it does not pass NULL pointers.
18808         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
18809         -mcpu=powerpc64le.
18811 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
18813         PR target/58158
18814         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
18815         !ISA_HAS_FP_CONDMOVE.
18817 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
18819         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
18820         reload_completed.
18822 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
18824         * doc/invoke.texi (Options for Code Generation Conventions):
18825         Fix URL of DSO paper.
18827 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18829         PR ipa/65130
18830         * ipa-inline.c (check_callers): Looks for recursion.
18831         (inline_to_all_callers): Give up on uninlinable or recursive edges.
18832         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
18833         summary of inline clones.
18834         (do_estimate_growth_1): Fix recursion check.
18836 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18838         PR ipa/64988
18839         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
18840         comdat groups.
18842 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
18843             Aldy Hernandez  <aldyh@redhat.com>
18845         PR lto/65276
18846         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
18847         when checking TYPE_BINFO.
18849 2015-03-02  Richard Biener  <rguenther@suse.de>
18851         PR ipa/65270
18852         * ipa-icf-gimple.c: Include builtins.h.
18853         (func_checker::compare_memory_operand): Compare base alignment.
18855 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
18857         PR target/65184
18858         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
18859         are never passed by reference.
18861 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
18863         PR target/65183
18864         * tree-chkp.c (chkp_check_lower): Don't check against
18865         zero bounds for already instrumented functions.
18866         (chkp_check_upper): Likewise.
18867         (chkp_fini): Clean pass local data to avoid wrong reusage.
18869 2015-02-28  Martin Liska  <mliska@suse.cz>
18870             Jan Hubicka  <hubicka@ucw.cz>
18872         * ipa-icf.c (sem_variable::equals): Improve debug output;
18873         get variable constructor.
18874         (sem_variable::parse): Do not filter out too early; give up on
18875         volatile and register vars.
18876         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
18877         variables.
18878         * ipa-icf.h (sem_variable::init): Do not set ctor.
18879         (sem_variable::ctor): Remove.
18881 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
18883         PR middle-end/65233
18884         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
18886 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18888         * ipa-icf.c: Include stor-layout.h
18889         (sem_function::compare_cgraph_references): Rename to ...
18890         (sem_item::compare_cgraph_references): ... this one.
18891         (sem_variable::equals_wpa): New function
18892         (sem_variable::equals): Do not check stuff already verified by
18893         equals_wpa.
18894         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
18895         * ipa-icf.h (sem_item): Add compare_cgraph_references.
18896         (sem_function): Remove compare_cgraph_references.
18897         (sem_variable): Turns equals_wpa into non-inline.
18899 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18901         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
18902         (sem_item::add_expr): New function.
18903         (sem_function::hash_stmt): Handle operands of most statements.
18904         (sem_variable::get_hash): Hash the actual constructor.
18905         * ipa-icf.h (sem_item): Add add_expr.
18906         (sem_function): Update prototype of hash_stmt
18908 2015-02-28  Martin Liska  <mliska@suse.cz>
18909             Jan Hubicka  <hubicka@ucw.cz>
18911         PR ipa/65245
18912         * ipa-icf-gimple.c (func_checker::compare_function_decl):
18913         Remove.
18914         (func_checker::compare_variable_decl): Skip symtab vars.
18915         (func_checker::compare_cst_or_decl): Update.
18916         * ipa-icf.c (sem_function::parse): Do not consider aliases.
18917         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
18918         use correct symtab predicates.
18919         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
18920         (sem_variable::parse):  Update comment.
18921         (sem_item_optimizer::build_graph): Consider ultimate aliases
18922         for references.
18924 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18926         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
18927         of OBJ_TYPE_REF.
18929 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18931         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
18932         (sem_variable::merge) Likewise.
18934 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18936         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
18937         target; also match flag_ipa_devirt.
18939 2015-03-01  Martin Liska  <mliska@suse.cz>
18940             Jan Hubicka  <hubicka@ucw.cz>
18942         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
18943         Validate variable alignment.
18944         * ipa-icf.c (sem_function::equals_private): Be more precise
18945         about non-common function attributes.
18946         (sem_variable::equals): Likewise.
18948 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18950         PR ipa/65237
18951         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
18952         across COMDAT group boundary.
18954 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18956         PR ipa/65232
18957         * ipa-icf.c (clear_decl_rtl): New function.
18958         (sem_function::merge): Clear RTL before forming alias.
18959         (sem_variable::merge): Clear RTL before forming alias.
18961 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
18963         PR ipa/65236
18964         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
18966 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
18968         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
18969         to neon_to_gp<q>.
18971 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
18973         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
18974         a typo in the description.
18976 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
18978         PR target/64317
18979         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18980         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18981         * lra-constraints.c: Include "params.h".
18982         (EBB_PROBABILITY_CUTOFF): Use
18983         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
18984         (lra_inheritance): Use '<' instead of '<=' for
18985         EBB_PROBABILITY_CUTOFF.
18986         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
18987         Document change.
18989 2015-02-27  Martin Liska  <mliska@suse.cz>
18991         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
18992         vector length condition.
18994 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
18996         * doc/extend.texi (x86 transactional memory intrinsics):
18997         Reorganize discussion of _xbegin.  Clarify that the return
18998         value is a bit mask.  Expand example and move to end of section.
19000 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19001             Aldy Hernandez  <aldyh@redhat.com>
19003         PR rtl-optimization/65220
19004         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19006 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
19008         PR target/65032
19009         * lra-remat.c (update_scratch_ops): New.
19010         (do_remat): Call it.
19011         * lra.c (lra_register_new_scratch_op): New. Take code from ...
19012         (remove_scratches): ... here.
19013         * lra-int.h (lra_register_new_scratch_op): New prototype.
19015 2015-02-27  Marek Polacek  <polacek@redhat.com>
19017         PR c/65040
19018         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19019         -Wformat-signedness anymore.
19021 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19023         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19024         function.
19025         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19027 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19029         * config/s390/s390.c (enum s390_builtin):
19030         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19031         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19032         (s390_init_builtins): Generate new builtin functions.
19033         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19034         (s390_sfpc, s390_efpc): New pattern definitions.
19036 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19038         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19039         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19040         (s390_builtin_decls): New array.
19041         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19042         (s390_builtin_decl): New function.
19043         (TARGET_BUILTIN_DECL): Define macro.
19045 2015-02-27  Richard Biener  <rguenther@suse.de>
19047         PR middle-end/63175
19048         * builtins.c (get_object_alignment_2): Make sure to re-apply
19049         the ANDed mask after recursing to its operand gets us a new
19050         misalignment bit position.
19052 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
19053             Martin Liska  <mliska@suse.cz>
19055         PR bootstrap/65150
19056         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19057         Use address_matters_p.
19058         (redirect_all_callers, set_addressable): New functions.
19059         (sem_function::merge): Reorganize and fix merging issues.
19060         (sem_variable::merge): Likewise.
19061         (sem_variable::compare_sections): Remove.
19062         * common.opt (fmerge-all-constants, fmerge-constants): Remove
19063         Optimization flag.
19064         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19065         redirect them.
19066         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19067         decl is used.
19068         (address_matters_1): New function.
19069         (symtab_node::address_matters_p): New function.
19070         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19071         check for merged flag.
19072         * cgraph.h (address_matters_p): Declare.
19073         (symtab_node::address_taken_from_non_vtable_p): Remove.
19074         (symtab_node::address_can_be_compared_p): New method.
19075         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19076         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19077         Remove.
19078         (comdat_can_be_unshared_p_1) Use address_matters_p.
19079         (update_vtable_references): Fix formating.
19080         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19081         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19082         * cgraphclones.c: Preserve merged and icf_merged flags.
19084 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
19086         * doc/extend.texi (Function Attributes): Fix spelling and typos.
19087         (Label Attributes): Likewise.
19088         (Cilk Plus Builtins): Likewise.
19089         (ARC SIMD Built-in Functions): Likewise.
19090         (ARM C Language Extensions (ACLE)): Likewise.
19091         (PowerPC Built-in Functions): Likewise.
19092         (PowerPC Hardware Transactional Memory Built-in Functions):
19093         Likewise.
19095 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19097         PR tree-optimization/65216
19098         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19099         new stmt and new SSA_NAME for lhs whenever the arguments have
19100         changed and weren't just swapped.  Fix comment typo.
19102         PR tree-optimization/65215
19103         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19104         for PDP endian targets.
19105         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19106         Fix up formatting issues.
19107         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
19108         size is smaller than the original, adjust MEM_REF offset by the
19109         difference of sizes.  Use is_gimple_mem_ref_addr instead of
19110         is_gimple_min_invariant test to avoid adding address temporaries.
19112 2015-02-26  Martin Liska  <mliska@suse.cz>
19113             Jan Hubicka  <hubicka@ucw.cz>
19115         PR ipa/64693
19116         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19117         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19118         (sem_item_optimizer::process_cong_reduction): Include division by
19119         sensitive references.
19120         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19121         * ipa-ref.c (ipa_ref::address_matters_p): New function.
19122         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19124 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
19126         PR target/65192
19127         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19128         Remove.
19129         * config/avr/avr.c: Same.
19130         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19131         Refuse any constant address not in 0..0xbf.
19132         * config/avr/avr.md (*mov<mode>, *movsf): Remove
19133         tiny_valid_direct_memory_access_range from insn conditions.
19134         (mov<mode>): Don't special-case expansion of avrtiny addresses.
19136 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
19138         PR target/61142
19139         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19140         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19141         * config/sh/predicates.md (const_logical_operand): New predicate.
19142         * config/sh/sh.md: Add new peephole2 patterns.
19144 2015-02-26  Marek Polacek  <polacek@redhat.com>
19146         PR ipa/65008
19147         * ipa-inline.c (early_inliner): Recompute inline parameters.
19149 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19151         PR target/65171
19152         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19153         instructions with TImode operands are included in the analysis.
19155 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
19157         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19158         of an EDGE_FSM_THREAD.
19160 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19162         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19164 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
19166         PR debug/46102
19167         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19169 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
19171         PR tree-optimization/65048
19172         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19173         (thread_through_all_blocks): Call valid_jump_thread_path.
19174         Remove invalid FSM jump-thread paths.
19176 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
19178         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19179         (ipa_write_optimization_summaries): Likewise.
19180         * tree-streamer.h: Include data-streamer.h.
19181         (streamer_mode_table): Declare extern variable.
19182         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19183         * lto-streamer-out.c (lto_output_init_mode_table,
19184         lto_write_mode_table): New functions.
19185         (produce_asm_for_decls): Call lto_write_mode_table when streaming
19186         offloading LTO.
19187         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19188         (lto_create_simple_input_block): Add mode_table argument to the
19189         lto_input_block constructors.
19190         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19191         Likewise.
19192         * data-streamer-in.c (string_for_index): Likewise.
19193         * ipa-inline-analysis.c (inline_read_section): Likewise.
19194         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19195         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19196         * lto-streamer-in.c (lto_read_body_or_constructor,
19197         lto_input_toplevel_asms): Likewise.
19198         (lto_input_mode_table): New function.
19199         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19200         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19201         Use bp_pack_machine_mode.
19202         * real.h (struct real_format): Add name field.
19203         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19204         (class lto_input_block): Add mode_table member.
19205         (lto_input_block::lto_input_block): Add mode_table_ argument,
19206         initialize mode_table.
19207         (struct lto_file_decl_data): Add mode_table field.
19208         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19209         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19210         unpack_ts_decl_common_value_fields,
19211         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19212         * tree-streamer.c (streamer_mode_table): New variable.
19213         * real.c (ieee_single_format, mips_single_format,
19214         motorola_single_format, spu_single_format, ieee_double_format,
19215         mips_double_format, motorola_double_format,
19216         ieee_extended_motorola_format, ieee_extended_intel_96_format,
19217         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19218         ibm_extended_format, mips_extended_format, ieee_quad_format,
19219         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19220         decimal_single_format, decimal_double_format, decimal_quad_format,
19221         ieee_half_format, arm_half_format, real_internal_format): Add name
19222         field.
19223         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19225 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
19227         PR target/65161
19228         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19229         reordering for selective scheduling.
19231 2015-02-26  Terry Guo  <terry.guo@arm.com>
19233         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19234         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19235         (arm_arch_no_volatile_ce): Declare new global variable.
19236         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19237         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19238         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19239         (TARGET_NO_VOLATILE_CE): New macro.
19240         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19241         volatile memory access in IT block
19243 2015-02-25  Kai Tietz  <ktietz@redhat.com>
19245         PR tree-optimization/61917
19246         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19247         that reduc_def_stmt is null.
19249 2015-02-25  Martin Liska  <mliska@suse.cz>
19251         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19252         hard register variables.
19254 2015-02-25  Kai Tietz  <ktietz@redhat.com>
19256         PR target/64212
19257         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19258         (symtab::noninterposable_alias): Likewise.
19260 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
19262         PR target/65167
19263         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19264         bounds registers.
19265         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19267 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
19269         PR target/64997
19270         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19271         as split condition; force split via '#' in output pattern.
19273 2015-02-25  Richard Biener  <rguenther@suse.de>
19274             Kai Tietz  <ktietz@redhat.com>
19276         PR tree-optimization/61917
19277         * tree-vect-loop.c (vectorizable_reduction): Allow
19278         vect_internal_def without reduction to exit graceful.
19280 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
19282         PR target/65196
19283         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19284         only with NONDEBUG_INSN_P.
19286 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
19288         Use variadic macros with avr-log.c.
19290         * config/avr/avr-protos.h (avr_vdump): New prototype.
19291         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19292         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19293         * config/avr/avr-log.c: Adjust comments.
19294         (avr_vdump): New function.
19295         (avr_vadump): Pass caller as 2nd argument instead of format string.
19296         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19297         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19299 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
19301         PR lto/64374
19302         * target.def (target_option_stream_in): New target hook.
19303         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19304         targetm.target_option.post_stream_in if non-NULL.
19305         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19306         * doc/tm.texi: Updated.
19307         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19308         function.
19309         (TARGET_OPTION_POST_STREAM_IN): Redefine.
19311 2015-02-24  Jeff Law  <law@redhat.com>
19313         PR target/65117
19314         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19315         of operand 0 and operand 2.
19316         (zero_cost_loop_end, loop_end): Similarly.
19318 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
19320         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19321         CXX_MEM_STAT_INFO.
19323 2015-02-24  DJ Delorie  <dj@redhat.com>
19325         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19326         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19327         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19328         instead of hardcoding SImode.
19330 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
19332         * omp-low.c (create_omp_child_function): Tag entrypoint
19333         functions with a special attribute.
19335 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19337         PR target/65058
19338         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19340 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
19342         PR rtl-optimization/65123
19343         * lra-remat.c (operand_to_remat): Check hard regs in insn
19344         definition too.
19346 2015-02-24  Nick Clifton  <nickc@redhat.com>
19348         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19349         to the assembler.
19351 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
19353         PR libgomp/64625
19354         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19355         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19356         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19357         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19358         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19359         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19360         (BUILT_IN_GOACC_PARALLEL): Specify as
19361         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19362         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19363         * builtin-types.def
19364         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19365         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19366         Remove function types.
19367         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19368         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19369         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19370         New function types.
19372 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
19374         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19376 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
19378         PR tree-optimization/65170
19379         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19380         if val[1] < 0, clear also val[2] and return 3.
19382 2015-02-24  Alan Modra  <amodra@gmail.com>
19384         PR target/65172
19385         * config/rs6000/rs6000.c (get_memref_parts): Only return true
19386         when *base is a reg.  Handle nested plus addresses.  Simplify
19387         pre_modify test.
19389 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
19391         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19392         use natural alignment when optimizing for size.
19394 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
19396         PR target/65153
19397         * config/sh/sh.md (movsicc_true+3): Remove peephole.
19398         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19399         * config/sh/sh.c (replace_n_hard_rtx): Remove.
19401 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
19403         PR fortran/63427
19404         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19405         too big for a wide_int.  Implement missing wrapping operation.
19407 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
19409         PR target/65163
19410         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19411         instead of const_int 4294901760.
19413 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
19415         * config/avr/t-avr: Fix typo in comment.
19417 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
19419         * doc/rtl.texi (fma): Clarify documentation.
19421 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
19423         PR debug/58123
19424         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19425         over input_location.
19427 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19429         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19430         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19431         restrict alignments to absolute_biggest_alignment.
19432         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19433         Define.
19434         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19435         * doc/tm.texi: Regenerate.
19436         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19438 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
19440         PR target/64172
19441         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19443 2015-02-20  Richard Biener  <rguenther@suse.de>
19445         PR tree-optimization/65136
19446         * tree-ssa-propagate.c: Include cfgloop.h.
19447         (replace_phi_args_in): Avoid replacing loop latch edge PHI
19448         arguments with constants.
19450 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
19451             Martin Liska  <mliska@suse.cz>
19453         PR target/63892
19454         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
19455         don't try to create_thunk if stdarg_p.  If
19456         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
19457         redirect_callers if possible.
19458         (sem_item_optimizer::execute): Call unregister_hooks here...
19459         (ipa_icf_driver): ... instead of here.
19461 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19463         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
19464         Mark operand 0 as earlyclobber in 2nd alternative.
19465         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
19466         Write negated shift amount into QI lowpart operand 0 and use it
19467         in the shift step.
19468         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19470 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19472         * cgraph.h (clone_function_name_1): Declare.
19473         * cgraphclones.c (clone_function_name_1): New function.
19474         (clone_function_name): Use it.
19475         * lto-partition.c: Include "stringpool.h".
19476         (must_not_rename, maybe_rewrite_identifier)
19477         (validize_symbol_for_target): New static functions.
19478         (privatize_symbol_name): Use must_not_rename.
19479         (promote_symbol): Call validize_symbol_for_target.
19480         (lto_promote_cross_file_statics): Likewise.
19481         (lto_promote_statics_nonwpa): Likewise.
19483 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
19485         PR target/64452
19486         * config/avr/avr.md (pushhi_insn): New insn.
19487         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
19489 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
19490             Jakub Jelinek  <jakub@redhat.com>
19492         * tree-streamer.c (preload_common_nodes): Don't preload
19493         TI_VA_LIST* for offloading.
19494         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
19495         in_lto_p.
19497 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
19499         * config/pa/pa.c (pa_emit_move_sequence): Always force
19500         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
19501         note on insn.
19503         * config/pa/pa.c (pa_reloc_rw_mask): New function.
19504         (TARGET_ASM_RELOC_RW_MASK): Define.
19505         (pa_cannot_force_const_mem): Revert previous change.
19507 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
19508             Jan Hubicka  <hubicka@ucw.cz>
19510         PR ipa/65028
19511         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
19512         across jump functions.
19514 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
19516         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
19518 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
19520         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
19522 2015-02-19  Richard Henderson  <rth@redhat.com>
19524         PR middle-end/65074
19525         * varasm.c (default_binds_local_p_2): Don't test node->definition;
19526         test DECL_EXTERNAL independent of symtab_node.
19528 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
19530         PR lto/65012
19531         * varpool.c (varpool_node::get_constructor): Return early
19532         if this->lto_file_data is NULL.
19534 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19536         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
19537         (rank_for_schedule_debug): Update.
19538         (ready_sort): Make static.  Move sorting logic to ...
19539         (ready_sort_debug, ready_sort_real): New static functions.
19540         (schedule_block): Sort both debug insns and real insns in preparation
19541         for ready list trimming.  Improve debug output.
19542         * sched-int.h (ready_sort): Remove global declaration.
19544 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
19546         * ipa-icf.c (sem_function::equals_private): Adjust.
19547         (sem_function::bb_dict_test): Take a vec<int> * instead of
19548         auto_vec<int>.
19549         * ipa-icf.h (bb_dict_test): Likewise.
19551 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19553         PR gcov-profile/64634
19554         * tree-eh.c (frob_into_branch_around): Fix up typos
19555         in function comment.
19556         (lower_catch): Put eh_seq resulting from EH lowering of
19557         the cleanup sequence after the cleanup rather than before it.
19559 2015-02-18  Tom de Vries  <tom@codesourcery.com>
19561         * common.opt (fstdarg-opt): New option.
19562         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
19563         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
19564         (@item -fstdarg-opt): New item.
19566 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
19568         PR target/65064
19569         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
19570         for common symbols.
19572 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19574         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
19575         insn-modes.h.
19576         (ALL_HOST_OBJS): Add mkoffload.o.
19577         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
19579 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
19581         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
19582         (compare_virtual_tables): Be smarter about skipping typeinfos;
19583         do sane output on virtual table table mismatch.
19584         (warn_odr): Be ready for forward declarations of enums;
19585         output sane info on base mismatch and virtual table mismatch.
19586         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
19587         when only one type is polymorphic.
19588         (get_odr_type): Fix hashtable corruption.
19589         (dump_odr_type): Dump mangled names.
19591 2015-02-18  Richard Biener  <rguenther@suse.de>
19593         PR tree-optimization/65063
19594         * tree-predcom.c (determine_unroll_factor): Return 1 if we
19595         have replaced looparound PHIs.
19597 2015-02-18  Martin Liska  <mliska@suse.cz>
19599         * lto-streamer.c (lto_streamer_init): Encapsulate
19600         streamer_check_handled_ts_structures with checking macro.
19602 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
19604         PR ipa/65087
19605         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
19606         section if !implicit_section.
19607         (cgraph_node::create_version_clone_with_body): Likewise.
19608         * trans-mem.c (ipa_tm_create_version): Likewise.
19610 2015-02-18  Richard Biener  <rguenther@suse.de>
19612         PR tree-optimization/62217
19613         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
19614         into BIVs.
19616 2015-02-18  Marek Polacek  <polacek@redhat.com>
19618         PR sanitizer/65081
19619         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
19620         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
19621         is in range [-16K, -1].  Don't issue run-time error if
19622         (ptr > ptr + offset).
19624 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
19626         * doc/install.texi (nvptx-*-none): New section.
19627         * doc/invoke.texi (Nvidia PTX Options): Likewise.
19628         * config/nvptx/nvptx.opt: Update.
19630         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
19631         (access_check): New functions, copied from
19632         config/i386/intelmic-mkoffload.c.
19633         (main): For non-installed testing, look in all COMPILER_PATHs for
19634         GCC_INSTALL_NAME.
19636         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
19638 2015-02-18  Andrew Pinski  <apinski@cavium.com>
19639             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
19641         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
19642         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
19644 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
19646         * ipa-visibility.c (function_and_variable_visibility): Only
19647         check locality if node is not already local.
19648         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19649         call_for_symbol_and_aliases instead of
19650         call_for_symbol_thunks_and_aliases.
19651         (ipa_inline): Likewise.
19652         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19653         first walk aliases.
19654         * ipa.c (symbol_table::remove_unreachable_nodes): Use
19655         call_for_symbol_and_aliases.
19656         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19657         (ipa_propagate_frequency_1): Use it; use opt_for_fn
19658         (ipa_propagate_frequency): Update.
19659         (ipa_profile): Add opt_for_fn gueards.
19661 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19663         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
19664         * doc/invoke.texi (SH options): Document it.
19665         * config/sh/sh.c (sh_insn_length_adjustment): Check
19666         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
19668 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
19670         * common.opt (fipa-cp-alignment): New.
19671         * ipa-cp.c (ipcp_store_alignment_results): Check
19672         flag_ipa_cp_alignment.
19673         * opts.c (default_options_table): Enable -fipa-cp-alignment for
19674         -O2.
19675         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
19676         * doc/invoke.texi: Document -fipa-cp-alignment.
19678 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
19680         PR target/64793
19681         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
19682         to nil.  Adjust comments.
19684 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
19686         * ipa-visibility.c (function_and_variable_visibility): Only
19687         check locality if node is not already local.
19688         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19689         call_for_symbol_and_aliases instead of
19690         call_for_symbol_thunks_and_aliases.
19691         (ipa_inline): Likewise.
19692         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19693         first walk aliases.
19694         * ipa.c (symbol_table::remove_unreachable_nodes): Use
19695         call_for_symbol_and_aliases.
19696         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19697         (ipa_propagate_frequency_1): Use it; use opt_for_fn
19698         (ipa_propagate_frequency): Update.
19699         (ipa_profile): Add opt_for_fn guards.
19701 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
19703         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
19704         skipping of "strange" tokens.
19706 2015-02-17  Jeff Law  <law@redhat.com>
19708         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
19709         obsolete comment.
19711 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
19713         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
19714         as forcing a HARD_DEP between instructions, thereby
19715         disallowing rewriting to break dependencies.
19717 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
19719         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
19720         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
19721         variables in boundary that have no inlitalizer encoded and are
19722         not aliases.
19723         * varasm.c (default_binds_local_p_2): External definitions do not
19724         count as definitions here.
19726 2015-02-16  Jeff Law  <law@redhat.com>
19728         PR tree-optimization/64823
19729         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
19730         statements.
19731         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19732         threading through blocks with PHIs, but no statements.
19733         (thread_through_normal_block): Distinguish between blocks where
19734         we did not process all the statements and blocks with no statements.
19736 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
19737             James Greenhalgh  <james.greenhalgh@arm.com>
19739         PR ipa/64963
19740         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
19741         section if not linkonce.  Fix up formatting.
19742         (cgraph_node::create_version_clone_with_body): Copy section.
19743         * trans-mem.c (ipa_tm_create_version): Likewise.
19745 2015-02-16  Richard Biener  <rguenther@suse.de>
19747         PR tree-optimization/65077
19748         * tree-ssa-structalias.c (get_constraint_for_1): Handle
19749         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
19750         (find_func_aliases): Allow float values to carry pointers again.
19752 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
19754         * doc/install.texi (Specific): Reorder targets list to put
19755         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
19756         from the top menu.
19758 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
19759             David Edelsohn  <dje.gcc@gmail.com>
19761         PR target/65058
19762         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
19763         mapping class to external variable or function reference.
19764         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
19765         mapping class.
19767 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
19769         PR target/53348
19770         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
19771         ASM_WEAKEN_DECL if defined.
19773 2015-02-16  Richard Biener  <rguenther@suse.de>
19775         PR lto/65015
19776         * varasm.c (default_file_start): For LTO produced units
19777         emit <artificial> as file directive.
19779 2015-02-16  Richard Biener  <rguenther@suse.de>
19781         PR tree-optimization/63593
19782         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
19783         stmts and releasing SSA names until...
19784         (execute_pred_commoning): ... after processing all chains.
19786 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
19788         PR ipa/65059
19789         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
19790         external functions.
19792 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
19794         * doc/bugreport.texi: Adjust section titles throughout the file
19795         to use "Title Case".
19796         * doc/extend.texi: Likewise.
19797         * doc/gcov.texi: Likewise.
19798         * doc/implement-c.texi: Likewise.
19799         * doc/implement-cxx.texi: Likewise.
19800         * doc/invoke.texi: Likewise.
19801         * doc/objc.texi: Likewise.
19802         * doc/standards.texi: Likewise.
19803         * doc/trouble.texi: Likewise.
19805 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
19807         * cgraph.h (symtab_node::has_aliases_p): Simplify.
19808         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
19809         * tree.c (lookup_binfo_at_offset): Make static.
19810         (get_binfo_at_offset): Do not shadow offset; add explanatory
19811         comment.
19813 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
19815         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
19816         for all floading point loads and stores except those using a register
19817         index address.
19818         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
19819         to a register.
19821 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
19823         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
19824         (do_estimate_growth_1): Record if any uninlinable edge was seen.
19825         (estimate_growth): Handle uninlinable edges correctly.
19826         (check_callers): New.
19827         (growth_likely_positive): Handle aliases correctly.
19829 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
19831         * ipa-chkp.c: Use iterate_direct_aliases.
19832         * symtab.c (resolution_used_from_other_file_p): Move inline.
19833         (symtab_node::create_reference): Fix formating.
19834         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19835         (symtab_node::iterate_reference): Move inline.
19836         (symtab_node::iterate_referring): Move inline.
19837         (symtab_node::iterate_direct_aliases): Move inline.
19838         (symtab_node::used_from_object_file_p_worker): Inline into ...
19839         (symtab_node::used_from_object_file_p): ... this one; move inline.
19840         (symtab_node::call_for_symbol_and_aliases): Move inline;
19841         use iterate_direct_aliases.
19842         (symtab_node::call_for_symbol_and_aliases_1): New method.
19843         (cgraph_node::call_for_symbol_and_aliases): Move inline;
19844         use iterate_direct_aliases.
19845         (cgraph_node::call_for_symbol_and_aliases_1): New method.
19846         (varpool_node::call_for_node_and_aliases): Rename to ...
19847         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
19848         use iterate_direct_aliases.
19849         (varpool_node::call_for_symbol_and_aliases_1): New method.
19850         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
19851         (ipa_discover_readonly_nonaddressable_var): Update.
19852         * ipa-devirt.c: Fix formating.
19853         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
19854         Move inline.
19855         (cgraph_node::call_for_symbol_and_aliases): Move inline.
19856         (cgraph_node::call_for_symbol_and_aliases_1): New function..
19857         * cgraph.h (used_from_object_file_p_worker): Remove.
19858         (resolution_used_from_other_file_p): Move inline.
19859         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19860         (symtab_node::iterate_reference): Move inline.
19861         (symtab_node::iterate_referring): Move inline.
19862         (symtab_node::iterate_direct_aliases): Move inline.
19863         (symtab_node::used_from_object_file_p_worker): Inline into ...
19864         (symtab_node::used_from_object_file_p): Move inline.
19865         * tree-emutls.c (ipa_lower_emutls): Update.
19866         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
19867         (varpool_node::call_for_node_and_aliases): Remove.
19869 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
19871         PR tree-optimization/62209
19872         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
19873         op == range->exp, insert seq and gimplified code after labels
19874         instead of after the phi.
19876 2015-02-13  Jeff Law  <law@redhat.com>
19878         PR bootstrap/65060
19879         Revert my change for tree-optimization/64823.
19881 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
19883         PR tree-optimization/65053
19884         * tree-ssa-phiopt.c (value_replacement): When moving assign before
19885         cond, either reset VR on lhs or set it to phi result VR.
19887 2015-02-13  Jeff Law  <law@redhat.com>
19889         PR tree-optimization/64823
19890         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
19891         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19892         threading through blocks with PHIs, but no statements.
19893         (thread_through_normal_block): Distinguish between blocks where
19894         we did not process all the statements and blocks with no statements.
19896         PR rtl-optimization/47477
19897         * match.pd (convert (plus/minus (convert @0) (convert @1): New
19898         simplifier to narrow arithmetic.
19900 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
19902         PR ipa/65028
19903         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
19904         polymorphic call info when type is not known to be preserved.
19906 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
19908         PR ipa/65028
19909         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
19910         (inline_call): Use it.
19912 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
19914         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
19915         GOMP_DEVICE_NVIDIA_PTX.
19917 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
19919         PR ipa/65034
19920         * stmt.c (emit_case_nodes): Use void_type_node instead of
19921         NULL_TREE as LABEL_DECL type.
19923 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
19925         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
19926         constraints.
19927         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
19928         symbolic references to data to be forced to constant memory on the
19929         SOM target.
19931 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19933         PR tree-optimization/65002
19934         * tree-cfg.c (pass_data_fixup_cfg): Don't update
19935         SSA on start.
19936         * tree-sra.c (some_callers_have_no_vuse_p): New.
19937         (ipa_early_sra): Reject functions whose callers
19938         assume function is read only.
19940 2015-02-13  Richard Biener  <rguenther@suse.de>
19942         PR lto/65015
19943         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
19944         for LTO produced CUs.
19946 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
19948         PR tree-optimization/64705
19949         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
19950         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
19951         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
19952         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
19953         expand_simple_operations.
19955 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
19956             Richard Henderson  <rth@redhat.com>
19958         PR rtl/32219
19959         * cgraphunit.c (cgraph_node::finalize_function): Set definition
19960         before notice_global_symbol.
19961         (varpool_node::finalize_decl): Likewise.
19962         * varasm.c (default_binds_local_p_2): Rename from
19963         default_binds_local_p_1, add weak_dominate argument.  Use direct
19964         returns instead of assigning to local variable.  Unify varpool and
19965         cgraph paths via symtab_node.  Reject undef weak variables before
19966         testing visibility.  Reorder tests for simplicity.
19967         (default_binds_local_p): Use default_binds_local_p_2.
19968         (default_binds_local_p_1): Likewise.
19969         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
19970         via symtab_node.
19971         (default_elf_asm_output_external): Emit visibility when specified.
19973 2015-02-13  Alan Modra  <amodra@gmail.com>
19975         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
19976         code setting up r11 for out-of-line fp restore.
19978 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
19980         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
19981         (muser-mode): Likewise.
19983 2015-02-13  Alan Modra  <amodra@gmail.com>
19985         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
19986         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
19988 2015-02-12  David Howells  <dhowells@redhat.com>
19990         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
19991         warning.
19992         * tree-ssa-uninit.c (dump_predicates): Likewise.
19993         * opts.c (print_filtered_help): Likewise.
19995 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
19997         * dwarf2out.c (output_die): Use "%s", name instead of name to
19998         avoid -Wformat-security warning.
20000         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20001         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20002         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20003         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20005 2015-02-12  Jason Merrill  <jason@redhat.com>
20007         * common.opt (-flifetime-dse): New.
20009 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
20011         PR sanitizer/65019
20012         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20014         PR tree-optimization/65014
20015         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20016         use original second operand of arg0 or arg1 instead of
20017         that adjusted by STRIP_NOPS.
20019 2015-02-11  Jeff Law  <law@redhat.com>
20021         PR target/63347
20022         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20023         that needs to be queued, just queue it for a single cycle.
20025 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
20027         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20028         bodies of thunks; comment on why.
20029         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20030         symbols are extern.
20032 2015-02-11  Richard Henderson  <rth@redhat.com>
20034         PR sanitize/65000
20035         * tree-eh.c (mark_reachable_handlers): Mark source and destination
20036         regions of __builtin_eh_copy_values.
20038 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20040         PR middle-end/65003
20041         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20042         ultimate alias is MEM with SYMBOL_REF satisfying
20043         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
20044         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20046 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
20048         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20049         "diagnostic-core.h".
20050         (main): Initialize progname, and call diagnostic_initialize.
20052         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20053         instead of __OPENMP_TARGET__.
20055         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20056         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20057         hard-coding PTX_ID.
20059 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
20061         * doc/sourcebuild.texi (pie_enabled): Document.
20063 2015-02-11  Martin Liska  <mliska@suse.cz>
20065         PR ipa/64813
20066         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20067         a return value for call to a function that is noreturn.
20069 2015-02-11  Richard Biener  <rguenther@suse.de>
20071         PR lto/65015
20072         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20073         and -fresolution.
20075 2015-02-11  Andrew Pinski  <apinski@cavium.com>
20077         PR target/64893
20078         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20079         Change the first argument type to size_type_node and add another
20080         size_type_node.
20081         (aarch64_simd_expand_builtin): Handle the new argument to
20082         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20083         print an out when the first two arguments are not
20084         nonzero integer constants.
20085         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20086         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20088 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
20090         PR target/61925
20091         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20092         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20093         (ix86_set_current_function): Rewritten.
20094         (ix86_add_new_builtins): Temporarily clear current_target_pragma
20095         when creating builtin fndecls.
20097 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20099         PR ipa/65005
20100         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20101         function.
20102         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20103         have no comdat group.
20104         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20105         (lto_output_varpool_node): Always output alias info.
20106         (output_refs): Output refs of boundary aliases, too.
20107         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20108         (output_symtab): Output call eges in thunks in boundary.
20109         (get_alias_symbol): Remove.
20110         (input_node, input_varpool_node): Do not special case weakrefs.
20111         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20112         alias and thunks targets in the boundary; do not take removed symbols
20113         from their comdat groups.
20114         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20115         (cgraph_node::global_info): Remove.
20116         (cgraph_node::rtl_info): Look through aliases and thunks.
20117         * cgrpah.h (global_info): Remove.
20118         (non_local_p): Remove.
20120 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20121             Sandra Loosemore  <sandra@codesourcery.com>
20123         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20124         to inline asm.  List dialects in proper order.
20126 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20127             Sandra Loosemore  <sandra@codesourcery.com>
20129         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20131 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
20133         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20134         modified) reference to Solaris.
20136 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
20138         * doc/extend.texi (Extended Asm): Fix typos.
20140 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
20142         PR sanitizer/65004
20143         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20145 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
20147         PR target/64661
20148         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20149         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20150         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20151         * config/sh/constraints.md (Ara, Add): New constraints.
20152         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20153         predicates.
20154         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20155         atomic_mem_operand_0.  Don't use force_reg on the memory address.
20156         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20157         Sra constraint.  Convert to insn_and_split.  Add workaround for
20158         PR 64974.
20159         (atomic_compare_and_swap<mode>_hard): Copy to
20160         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
20161         Use atomic_mem_operand_0 predicate.
20162         (atomic_compare_and_swap<mode>_soft_gusa,
20163         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20164         AraAdd constraints.
20165         (atomic_compare_and_swap<mode>_soft_tcb,
20166         atomic_compare_and_swap<mode>_soft_imask,
20167         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20168         atomic_mem_operand_0 predicate and SraSdd constraints.
20169         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20170         constraint.
20171         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20172         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
20173         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20174         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
20175         force_reg on the memory address.
20176         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20177         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20178         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20179         atomic_mem_operand_1 predicate and Sra constraint.
20180         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20181         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
20182         Use atomic_mem_operand_1 predicate.
20183         (atomic_<fetchop_name><mode>_hard): Copy to
20184         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
20185         Use atomic_mem_operand_1 predicate.
20186         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20187         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
20188         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
20189         insn_and_split.  Use atomic_mem_operand_1 predicate.
20190         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20191         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
20192         Use atomic_mem_operand_1 predicate.
20193         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20194         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
20195         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20196         in generated insn with original mem operand before emitting the insn.
20197         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20198         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20199         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20200         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20201         Use atomic_mem_operand_1 predicate and AraAdd constraints.
20202         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20203         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20204         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20205         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20206         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20207         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20208         atomic_not_fetch<mode>_soft_tcb,
20209         atomic_<fetchop_name>_fetch<mode>_soft_imask,
20210         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20211         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20212         Use atomic_mem_operand_1 predicate and SraSdd constraints.
20214 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
20216         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20217         and 3 earlyclobber operands.
20219 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20221         * common.opt (fstack-reuse): Mark as optimization.
20223 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
20225         PR ipa/64982
20226         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20228 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
20230         PR tree-optimization/64326
20231         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20233 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
20235         PR gcov-profile/61889
20236         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20238 2015-02-10  Richard Biener  <rguenther@suse.de>
20240         PR tree-optimization/64995
20241         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20242         value we use is final.
20243         (visit_reference_op_store): Always valueize op.
20244         (visit_use): Properly valueize vuses.
20246 2015-02-10  Richard Biener  <rguenther@suse.de>
20248         PR tree-optimization/64909
20249         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20250         pass a scalar-stmt count estimate to the cost model.
20251         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20253 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
20255         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20256         enabled by default together with var-tracking.
20258 2015-02-10  Nick Clifton  <nickc@redhat.com>
20260         * config/rl78/rl78.c: Remove DIV attribute code accidentally
20261         included in previous rl78 commit.
20263 2015-02-10  Richard Biener  <rguenther@suse.de>
20265         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20266         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20267         return the bitpack.
20269 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
20271         PR gcov-profile/61889
20272         * config.in: regenerate.
20273         * configure.in: Likewise.
20274         * configure.ac: Check for ftw.h.
20275         * gcov-tool.c: Check for ftw.h before using nftw.
20277 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
20279         PR lto/64076
20280         * ipa-visibility.c (update_visibility_by_resolution_info): Only
20281         assert when not in lto mode.
20283 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
20285         * ira-color.c (setup_left_conflict_sizes_p): Simplify
20286         initialization/assignment of conflict_size.
20288 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
20290         PR ipa/64978
20291         * ipa-cp.c (gather_caller_stats): Skip thunks.
20292         (propagate_constants_topo): Skip aliases.
20294 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
20296         PR target/64761
20297         * config/sh/sh.c (sh_option_override): Don't change
20298         -freorder-blocks-and-partition to -freorder-blocks even when
20299         unwinding is enabled.
20300         (sh_can_follow_jump): Return false if the followee jump is
20301         a crossing jump when -freorder-blocks-and-partition is specified.
20302         * config/sh/sh.md (*jump_compact_crossing): New insn.
20304 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20305             Kaz Kojima  <kkojima@gcc.gnu.org>
20307         PR target/64761
20308         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20309         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20310         (sh_can_redirect_branch): Rename to ...
20311         (sh_can_follow_jump): ... this.  Constify argument types.
20312         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20313         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20314         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20315         * doc/tm.texi: Regenerate.
20317 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
20319         PR sanitizer/64981
20320         * builtins.c (expand_builtin): Call targetm.expand_builtin
20321         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20323 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20325         PR ipa/61548
20326         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20328 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20330         PR ipa/63566
20331         * ipa-icf.c (set_local): New function.
20332         (sem_function::merge): Use it.
20334 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20336         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20337         (add_type_duplicate): Fix comparison of BINFOs.
20339 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20341         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20342         on getting VOID pointer.
20344 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
20346         PR target/64979
20347         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20348         va_list escapes.
20350 2015-02-09  Richard Biener  <rguenther@suse.de>
20352         * genmatch.c (replace_id): Copy expr_type.
20354 2015-02-09  Richard Biener  <rguenther@suse.de>
20356         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20357         (streamer_write_tree_bitfields): Declare.
20358         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20359         properly unpack padding.
20360         (unpack_value_fields): Inline ...
20361         (streamer_read_tree_bitfields): ... here.
20362         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20363         and properly add padding bits.
20364         (streamer_pack_tree_bitfields): Fold into ...
20365         (streamer_write_tree_bitfields): ... this new function,
20366         exposing the bitpack object.
20367         * lto-streamer-out.c (lto_write_tree_1): Call
20368         streamer_write_tree_bitfields.
20370 2015-02-09  Richard Biener  <rguenther@suse.de>
20372         PR tree-optimization/54000
20373         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20374         (struct ivopts_data): Add loop_loc member.
20375         (tree_ssa_iv_optimize_loop): Dump loop location.
20376         (create_new_ivs): Likewise, also dump number of IVs generated.
20378 2015-02-09  Martin Liska  <mliska@suse.cz>
20380         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20381         just if not yet registered.
20382         (ipa_icf_generate_summary): Register callgraph hooks.
20384 2015-02-08  Andrew Pinski  <apinski@cavium.com>
20386         * config/aarch64/aarch64.c (gty_dummy): Delete.
20388 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20390         PR ipa/63566
20391         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20392         (cgraph_node::local_p): Remove thunk related FIXME.
20394 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20396         PR ipa/63566
20397         * i386.c (ix86_function_regparm): Look through aliases to see if callee
20398         is local and optimized.
20399         (ix86_function_sseregparm): Likewise; also use target's SSE math
20400         settings; error out instead of silently generating wrong code
20401         on mismatches.
20402         (init_cumulative_args): Look through aliases.
20404 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20406         PR ipa/63566
20407         * ipa-split.c (execute_split_functions): Split if function has aliases.
20409 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
20411         PR ipa/63566
20412         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20413         aliases before trying to expand it.
20414         (cgraph_node::expand_thunk): Fix formating.
20416 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
20418         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20419         (Using Assembly Language with C): Expand introduction.
20420         (Basic Asm): Copy-edit.  Add more information about uses of
20421         basic asm.
20422         (Extended Asm): Copy-edit.  Document new escape syntax and
20423         %l[label] syntax.
20424         (Global Reg Vars): Copy-edit.
20425         (Local Reg Vars): Likewise.
20427 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
20429         PR debug/2714
20430         PR bootstrap/64256
20431         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20432         (DBX_CONTIN_CHAR): Define.
20434 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
20435             Brian Rzycki  <b.rzycki@samsung.com>
20437         PR tree-optimization/64878
20438         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20439         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20440         Stop recursion at loop phi nodes after having visited a loop phi node.
20442 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20444         * toplev.c (process_options): Change flag_ipa_ra before creating
20445         optimization_{default,current}_node.
20447         PR ipa/64896
20448         * cgraphunit.c (cgraph_node::expand_thunk): If
20449         restype is not is_gimple_reg_type nor the thunk_fndecl
20450         returns aggregate_value_p, set restmp to a temporary variable
20451         instead of resdecl.
20453 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
20455         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
20457 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20459         PR target/64205
20460         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
20461         add a general secondary reload handler for SDmode, unless we have
20462         both read/write support for SDmode.
20464 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20466         PR middle-end/64937
20467         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
20468         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
20469         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
20470         1 before, push it to abstract_vec.
20471         (dwarf2out_abstract_function): Adjust caller.  Don't call
20472         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
20473         DECL_ABSTRACT_P flags for all abstract_vec elts.
20475 2015-02-06  Renlin Li  <renlin.li@arm.com>
20477         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
20478         complex gimple.
20479         * tree-ssa.c (execute_update_addresses_taken): Likewise.
20481 2015-02-06  Jeff Law  <law@redhat.com>
20483         PR target/64889
20484         * config/h8300/h8300.c (push): New argument "in_prologue".
20485         Pass "in_prologue" along to "F".
20486         (h8300_push_pop): Corresponding changes.
20487         (h8300_expand_prologue): Likewise.
20488         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
20490 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
20492         PR rtl-optimization/64957
20493         PR debug/64817
20494         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
20495         IOR rather than for AND.
20497 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
20499         PR target/62631
20500         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
20501         of shift-add and (add + shift) operations.  Rename local variable.
20503 2015-02-05  Jeff Law  <law@redhat.com>
20505         PR target/17306
20506         * config/h8300/constraints.md (U): Correctly dectect
20507         "eightbit_data" memory addresses.
20508         * config/h8300/h8300.c (eightbit_constant_address_p): Also
20509         handle (const (plus (symbol_ref (x)))) where x is declared
20510         as an 8-bit data memory address.
20511         * config/h8300/h8300.md (call, call_value): Correctly detect
20512         "funcvec" functions.
20514         PR target/43264
20515         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
20516         24 to 28 bits for the H8/300.
20518 2015-02-06  Alan Modra  <amodra@gmail.com>
20520         PR target/64876
20521         * config/rs6000/rs6000.c (chain_already_loaded): New function.
20522         (rs6000_call_aix): Use it.
20524 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
20526         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
20527         check.
20529 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20531         * config/h8300/constraints.md ("U" constraint): Use strict
20532         variant of REG_OK_FOR_BASE_P after reload has started.
20534 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
20536         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
20537         define to zero if !TARGET_NEON.
20538         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
20540 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20541             Trevor Saunders  <tsaunders@mozilla.com>
20543         PR ipa/61548
20544         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
20546 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20548         PR ipa/61548
20549         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
20550         when removing varpool nodes.
20552 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20554         PR ipa/61548
20555         * varpool.c (varpool_node::remove): Fix order of variables.
20557 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20559         PR ipa/64686
20560         * ipa-inline.c (inline_small_functions): Fix ordering issue between
20561         speculation resolution and key updates.
20563 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20565         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
20566         about not letting any speculative edges unupdated.
20568 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20570         PR gcov/64123
20571         * gcov-io.c (gcov_var): Export.
20573 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20575         PR middle-end/64922
20576         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
20577         edges that become speculative.
20579 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20581         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
20582         or DW_LANG_Fortran08.
20583         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
20584         DW_LANG_Fortran08.
20585         (gen_compile_unit_die): Handle "GNU Fortran2003" and
20586         "GNU Fortran2008" language strings.
20587         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
20588         * langhooks.h (lang_GNU_Fortran): New prototype.
20589         * langhooks.c (lang_GNU_Fortran): New function.
20590         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
20591         lang_GNU_Fortran.
20593 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20595         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
20596         (RTX_OK_FOR_OLO10_P): Likewise.
20598 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
20600         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
20602 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
20604         PR middle-end/64922
20605         * gimple.c: Include gimple-ssa.h.
20606         (maybe_remove_unused_call_args): New function.
20607         * gimple.h (maybe_remove_unused_call_args): Declare.
20608         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
20609         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20610         * gimple-fold.c (gimple_fold_call): Likewise.
20612 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
20614         PR rtl-optimization/64905
20615         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
20616         pointer alignment if it isn't needed.
20618 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
20620         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
20621         cortex-a72.cortex-a53.
20622         * config/aarch64/aarch64-tune.md: Regenerate.
20623         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
20625 2015-02-04  Nick Clifton  <nickc@redhat.com>
20627         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
20628         inside a MEM.
20630 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
20632         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
20633         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
20634         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
20635         of DEF_BUILTIN.
20636         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
20637         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
20638         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
20639         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
20640         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
20641         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
20642         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
20643         * tree-core.h (enum built_in_function): In between
20644         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
20645         for builtins that use DEF_BUILTIN_CHKP macro.
20647 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
20649         PR debug/64817
20650         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
20651         operands for tcc_comparison exprs.  Fix typos.
20653         PR debug/64817
20654         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
20655         of two XORs that have an intervening AND or IOR.
20657         PR debug/64817
20658         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
20659         simplification of XOR of AND to not allocate new rtx before
20660         committing to a simplification.
20662 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20664         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
20665         manual swaps in all peepholes.
20667 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20669         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
20670         of manual swapping implementation.
20671         (aarch64_expand_vec_perm_const_1): Likewise.
20673 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
20675         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
20676         (generic_addrcost_table): Remove NAMED_PARAM.
20677         (cortexa57_addrcost_table): Likewise.
20678         (xgene1_addrcost_table): Likewise.
20679         (generic_regmove_table): Likewise.
20680         (cortexa53_regmove_table): Likewise.
20681         (xgene1_regmove_table): Likewise.
20682         (generic_vector_table): Likewise.
20683         (cortexa57_vector_table): Likewise.
20684         (xgene1_vector_table): Likewise.
20685         (generic_tunings): Likewise.
20686         (cortexa53_tunings): Likewise.
20687         (cortexa57_tunings): Likewise.
20688         (xgene1_tunings): Likewise.
20690 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
20692         * config/arm/arm-cores.def: Add cortex-a72 and
20693         cortex-a72.cortex-a53.
20694         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
20695         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
20696         * config/arm/arm-tune.md: Regenerate.
20697         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
20698         "cortex-a72.cortex-a53".
20699         * doc/invoke.texi (ARM Options/-mtune): Likewise.
20701 2015-02-04  Nick Clifton  <nickc@redhat.com>
20703         PR target/64408
20704         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
20705         of accepted codes.
20706         (nonimmediate_di_operand): Likewise.
20708         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
20709         prefixes of known F5 using MSP430 MCUs.
20711 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20713         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
20714         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
20715         instead of __builtin_sqrt.
20717 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
20719         * varasm.c (do_assemble_alias): Follow transparent alias
20720         chain for target.
20721         (default_assemble_visibility): Follow transparent alias
20722         chain for decl name.
20724 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20726         PR middle-end/62103
20727         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
20728         to compute size of referenced value in the constant case.
20730 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
20732         PR rtl-optimization/64756
20733         * cse.c (invalidate_dest): New function.
20734         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
20735         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
20736         invalidate and do not record it.
20738 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
20740         PR target/64660
20741         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
20742         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
20743         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
20744         atomic_nand<mode>_soft_tcb): New insns.
20745         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
20746         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
20747         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
20748         Split into atomic_not_fetchsi_hard if operands[0] is unused.
20749         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
20750         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20751         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
20752         atomic_not<mode>_hard if operands[0] is unused.
20753         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
20754         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
20755         if operands[0] is unused.
20756         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
20757         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
20758         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
20759         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20760         unused.
20761         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
20762         into atomic_not<mode>_soft_tcb if operands[0] is unused.
20763         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
20764         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
20765         if operands[0] is unused.
20766         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
20767         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
20768         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
20769         atomic_nand_fetchsi_hard if operands[0] is unused.
20770         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
20771         atomic_nand<mode>_hard if operands[0] is unused.
20772         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
20773         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
20774         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
20775         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20776         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
20777         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
20778         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
20779         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20780         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
20781         atomic_not<mode>_hard if operands[0] is unused.
20782         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
20783         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20784         unused.
20785         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
20786         into atomic_not<mode>_soft_tcb if operands[0] is unused.
20787         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
20788         atomic_nand<mode>_hard if operands[0] is unused.
20789         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
20790         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20792 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
20794         PR jit/64810
20795         * Makefile.in (GCC_OBJS): Add gcc-main.o.
20796         * gcc-main.c: New file, containing "main" taken from gcc.c.
20797         * gcc.c (do_self_spec): Free decoded_options.
20798         (class driver): Move declaration to gcc.h.
20799         (main): Move declaration and implementation to new file
20800         gcc-main.c.
20801         (driver_get_configure_time_options): New function.
20802         * gcc.h (class driver): Move this declaration here, from
20803         gcc.c.
20804         (driver_get_configure_time_options): New declaration.
20806 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
20808         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
20809         cross-module inlining.
20810         * cgraph.h (cgraph_node): Add flag merged.
20811         * ipa-icf.c (sem_function::merge): Maintain it.
20813 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
20815         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
20816         instead of OBJECT_P.
20818 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
20820         PR target/62631
20821         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
20822         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
20823         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
20824         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
20826 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
20828         PR other/63504
20829         * combine.c (reg_n_sets_max): New variable.
20830         (can_change_dest_mode, reg_nonzero_bits_for_combine,
20831         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
20832         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
20833         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
20834         (rest_of_handle_combine): Initialize reg_n_sets_max.
20836 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
20838         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
20839         if some always_inline was inlined, apply changes before inlining
20840         heuristically.
20842 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
20844         PR jit/64810
20845         * config/arm/arm.c (arm_option_override): Set
20846         arm_selected_arch/cpu/tune to NULL on entry.
20848 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
20849             Andrew Pinski  <pinskia@gcc.gnu.org>
20850             Jakub Jelinek  <jakub@gcc.gnu.org>
20852         PR target/64231
20853         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
20854         integer typing for small model. Use IN_RANGE.
20856 2015-02-02  Richard Biener  <rguenther@suse.de>
20858         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
20859         * tree-vrp.c (vrp_valueize_1): Likewise.
20861 2015-02-02  Alan Modra  <amodra@gmail.com>
20863         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
20864         than mem for toc_restore.
20865         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
20866         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
20867         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
20869 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
20871         PR target/64047
20872         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
20873         explicit default options.
20875 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
20877         PR ipa/64872
20878         * ipa-utils.c (ipa_merge_profiles): Add release argument.
20879         * ipa-icf.c (sem_function::merge): Do not release body when merging.
20880         * ipa-utils.h (ipa_merge_profiles): Update prototype.
20882 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
20884         PR debug/64817
20885         * cfgexpand.c (deep_ter_debug_map): New variable.
20886         (avoid_deep_ter_for_debug): New function.
20887         (expand_debug_expr): If TERed SSA_NAME is in
20888         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
20889         instead of trying to expand SSA_NAME's def stmt.
20890         (expand_debug_locations): When expanding debug bind
20891         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
20892         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
20893         value.
20894         (pass_expand::execute): Call avoid_deep_ter_for_debug on
20895         all debug bind stmts.  Delete deep_ter_debug_map after
20896         expand_debug_location if non-NULL and clear it.
20898 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
20900         PR target/64851
20901         * config/sh/sync.md (atomic_fetch_notsi_hard,
20902         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
20903         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
20904         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
20905         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
20906         atomic_not_fetch<mode>_soft_imask): New insns.
20908 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
20910         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
20911         (rank_for_schedule_debug): Split from ...
20912         (rank_for_schedule): ... this.
20913         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
20914         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
20916 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
20918         * doc/md.texi (Machine Constraints): Alphabetize table by target.
20919         * doc/extend.texi (x86 Variable Attributes): Move section to
20920         correct alphabetization after renaming.
20921         (x86 Type Attributes): Likewise.
20922         (Target Builtins): Re-alphabetize menu.
20923         (x86 Built-in Functions): Move section to correct alphabetization
20924         after renaming.
20925         (x86 transactional memory intrinsics): Likewise.
20926         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
20927         and x86 Windows Options in table and menu.
20928         (x86 Options): Move section to correct alphabetization after
20929         renaming.
20930         (x86 Windows Options): Likewise.
20932 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
20934         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
20935         preferred names of the architecture and its 32- and 64-bit
20936         variants.
20937         * doc/invoke.texi: Likewise.
20938         * doc/md.texi: Likewise.
20940 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
20942         PR target/64882
20943         * config/i386/predicates.md (address_no_seg_operand): Reject
20944         non-CONST_INT_P operands in invalid mode.
20946 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
20948         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
20949         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
20950         * config/i386/predicates.md (address_no_seg_operand): Call
20951         address_operand with VOIDmode.
20952         (vsib_address_operand): Ditto.
20953         (address_mpx_no_base_operand): Ditto.
20954         (address_mpx_no_index_operand): Ditto.
20956 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
20958         PR target/64688
20959         * lra-constraints.c (original_subreg_reg_mode): New.
20960         (simplify_operand_subreg): Try to simplify subreg of const.  Use
20961         original_subreg_reg_mode for it.
20962         (swap_operands): Update original_subreg_reg_mode.
20963         (curr_insn_transform): Set up original_subreg_reg_mode.
20965 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
20967         PR target/64617
20968         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
20969         function.
20970         (process_alt_operands): Use it.
20971         (curr_insn_transform): Check the optional reload pseudo class is
20972         ok for the mode.
20974 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
20976         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
20977         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
20978         prototype.
20979         * toplev.h (init_asm_output): Update comment on use of
20980         UNKNOWN_LOCATION with fatal_error.
20981         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
20982         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
20983         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
20984         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
20985         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
20986         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
20987         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
20988         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
20989         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
20990         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
20991         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
20992         fatal_error changed to pass input_location as first argument.
20994 2015-01-30  Martin Liska  <mliska@suse.cz>
20996         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
20997         in #pragma GCC diagnostic guards.
20999 2015-01-30  Richard Biener  <rguenther@suse.de>
21001         PR tree-optimization/64829
21002         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21003         not add a widening conversion pattern but hand off extra
21004         widenings to callers.
21005         (vect_recog_widen_mult_pattern): Handle extra widening produced
21006         by vect_handle_widen_op_by_const.
21007         (vect_recog_widen_shift_pattern): Likewise.
21008         (vect_pattern_recog_1): Remove excess vertical space in dumping.
21009         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21010         (vect_init_vector_1): Likewise.
21011         (vect_get_vec_def_for_operand): Likewise.
21012         (vect_finish_stmt_generation): Likewise.
21013         (vectorizable_load): Likewise.
21014         (vect_analyze_stmt): Likewise.
21015         (vect_is_simple_use): Likewise.
21017 2015-01-29  Jeff Law  <law@redhat.com>
21019         * combine.c (try_combine): Fix typo in comment.
21021 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
21023         PR target/64580
21024         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21025         (rs6000_stack_info): Add assert.
21026         (rs6000_output_savres_externs): New function, split off from...
21027         (rs6000_output_function_prologue): ... here.  Do not call it for
21028         thunks.
21030 2015-01-29  Jeff Law  <law@redhat.com>
21032         PR target/15184
21033         * combine.c (try_combine): If I0 is a memory load and I3 a store
21034         to a related address, increase the "goodness" of doing a 4-insn
21035         combination with I0-I3.
21036         (make_field_assignment): Handle SUBREGs in the ior+and case.
21038 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
21040         PR tree-optimization/64746
21041         * tree-if-conv.c (mask_exists): New function.
21042         (predicate_mem_writes): Save created mask with given size for further
21043         use.
21044         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21045         (ifcvt_repair_bool_pattern): Collect all statements that are root
21046         of bool pattern and use iterative algorithm to remove multiple uses
21047         of predicates, display number of required iterations.
21049 2015-01-29  Richard Biener  <rguenther@suse.de>
21051         PR tree-optimization/64853
21052         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21053         stmt will get simulated again.
21054         * tree-ssa-ccp.c (valueize_op_1): Likewise.
21056 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21058         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21059         return_in_pc.  Remove redundant assignments.
21060         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21061         (arm_expand_epilogue): Don't compare boolean with true in if condition.
21063 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
21065         * config/i386/i386.c (ix86_mode_after): Make static.
21067 2015-01-29  Richard Biener  <rguenther@suse.de>
21069         PR tree-optimization/64844
21070         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21071         dump cost model analysis.
21072         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21073         Do not register adjusted load/store costs here.
21075 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21076             Uros Bizjak  <ubizjak@gmail.com>
21078         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21079         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21080         using x86_use_pseudo_pic_reg.
21081         * config/i386/i386.c (ix86_conditional_register_usage): Remove
21082         support for fixed PIC register.
21083         (ix86_use_pseudo_pic_reg): Not static any more.
21085 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
21087         PR middle-end/64805
21088         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21089         to avoid error in cgraph node verification.
21091 2015-01-29  Marek Polacek  <polacek@redhat.com>
21093         * doc/standards.texi: Reflect that the default for C is gnu11.
21095 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21097         PR target/64761
21098         * reorg.c (switch_text_sections_between_p): New function.
21099         (relax_delay_slots): Call it when testing if the jump insn
21100         is removable.  Use targetm.can_follow_jump when testing if
21101         the conditional branch can follow an unconditional jump.
21103 2015-01-27  Caroline Tice  <cmtice@google.com>
21105         Committing VTV Cywin/Ming patch for Patrick Wollgast
21106         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21107         if -fvtable-verify=preinit/std is used.
21108         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21109         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21110         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21111         if -fvtable-verify=preinit/std is used.
21112         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21113         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21114         if -fvtable-verify=preinit/std is used.
21115         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21116         * config/i386/mingw32.h (LIB_SPEC): Likewise.
21117         * varasm.c (assemble_variable): Add code to properly set the comdat
21118         section and name for the .vtable_map_vars section in case the
21119         target is PE or COFF.
21121 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
21123         PR ipa/64801
21124         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21125         make sane BB profile.
21126         (cgraph_node::expand_thunk): Make sane BB profile.
21127         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21128         * cgraph.h (init_lowered_empty_function): Update prototype.
21129         * config/i386/i386.c (make_resolver_func): Update call.
21130         * predict.c (gate): Disable branch prediction pass if
21131         profile is already there.
21133 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
21135         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21136         * opth-gen.awk: Likewise.
21137         * common.opt: Mark flag_fp_contract_mode as Optimization.
21139 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21141         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21142         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21144 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
21146         PR target/64659
21147         * config/sh/predicates.md (atomic_arith_operand,
21148         atomic_logical_operand): Remove.
21149         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21150         (atomic_arith_operand_0): New predicate.
21151         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21152         Use atomic_arith_operand_0 for input values.
21153         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21154         atomic_compare_and_swap<mode>_soft_gusa,
21155         atomic_compare_and_swap<mode>_soft_tcb,
21156         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21157         arith_reg_operand instead of register_operand.
21158         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
21159         atomic_arith_operand_0 for newval input.
21160         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21161         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21162         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21163         arith_reg_operand instead of register_operand.
21164         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21165         fetchop_predicate_1, fetchop_constraint_1_llcs,
21166         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21167         fetchop_constraint_1_imask): New code iterator attributes.
21168         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21169         register_operand.  Use fetchop_predicate_1.
21170         (atomic_fetch_<fetchop_name>si_hard,
21171         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21172         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21173         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21174         and arith_reg_operand instead of register_operand.  Use
21175         fetchop_predicate_1, fetchop_constraint_1_gusa.
21176         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21177         and arith_reg_operand instead of register_operand.  Use
21178         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
21179         to allow R0 usage.
21180         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21181         and arith_reg_operand instead of register_operand.  Use
21182         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
21183         to allow R0 usage.
21184         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21185         register_operand.  Use atomic_logical_operand_1.
21186         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21187         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21188         arith_reg_operand instead of register_operand.
21189         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21190         Use arith_reg_dest and arith_reg_operand instead of register_operand.
21191         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
21192         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21193         register_operand.  Use fetchop_predicate_1.
21194         (atomic_<fetchop_name>_fetchsi_hard,
21195         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21196         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21197         fetchop_constraint_1_llcs.
21198         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21199         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21200         fetchop_constraint_1_gusa.
21201         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21202         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21203         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
21204         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21205         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
21206         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
21207         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21208         register_operand.  Use atomic_logical_operand_1.
21209         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21210         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21211         arith_reg_operand instead of register_operand.
21212         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21213         arith_reg_operand instead of register_operand.  Use logical_operand
21214         and K08.  Adjust asm sequence to allow R0 usage.
21215         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21216         arith_reg_operand instead of register_operand.  Use logical_operand
21217         and K08.
21219 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
21221         PR other/63504
21222         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21223         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21224         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21225         only get_full_len HOST_WIDE_INTs from get_val () array rather than
21226         all bits in *val_wide.
21228 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
21230         * varpool.c (tls_model_names): Fix names.
21231         (varpool_node::dump): Dump tls- prefix for tls models.
21233 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
21234             Bernd Schmidt  <bernds@codesourcery.com>
21235             Nathan Sidwell  <nathan@codesourcery.com>
21237         * config/nvptx/mkoffload.c: New file.
21238         * config/nvptx/t-nvptx: Add build rules for it.
21239         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21240         (extra_programs): Add mkoffload.
21241         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21242         function.
21243         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21245 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
21247         PR middle-end/64809
21248         * cfgexpand.c (reorder_operands): Skip debug gimples.
21250 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
21252         PR tree-optimization/64277
21253         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21254         range info when possible to refine estimation.
21256 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21258         PR tree-optimization/64718
21259         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21260         be a 16bit unsigned integer when n->range is 16.
21261         (bswap_replace): Convert src to that type if necessary for all bswap
21262         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
21263         set in pass_optimize_bswap::execute ().
21265 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
21267         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21268         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21269         integer and floating point variants.
21270         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21272 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
21274         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21275         for all vector modes.
21277 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
21279         PR bootstrap/64612
21280         * doc/sourcebuild.texi (comdat_group): Document.
21282 2015-01-28  Terry Guo  <terry.guo@arm.com>
21284         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21286 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
21288         * toplev.c (print_version): Add param "show_global_state", and
21289         only print GGC and plugin information if it is true.
21290         (init_asm_output): Pass in "true" for the new param when calling
21291         print_version.
21292         (process_options): Likewise.
21293         (toplev::main): Likewise.
21294         * toplev.h (print_version): Add new param to decl.
21296 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
21298         PR ipa/60871
21299         PR ipa/64139
21300         * tree.c (lookup_binfo_at_offset): New function.
21301         (get_binfo_at_offset): Use it.
21303 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
21305         PR ipa/64282
21306         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21307         on vtable being vtable.
21309 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21311         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21312         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21313         -mhotpatch= option.
21314         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21315         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
21316         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21317         Renamed.
21318         (s390_hotpatch_trampoline_halfwords_max): Renamed.
21319         (s390_hotpatch_hw_max): New name.
21320         (s390_hotpatch_trampoline_halfwords): Renamed.
21321         (s390_hotpatch_hw_before_label): New name.
21322         (get_hotpatch_attribute): Removed.
21323         (s390_hotpatch_hw_after_label): New name.
21324         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21325         attribute.
21326         (s390_attribute_table): Ditto.
21327         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21328         (s390_function_num_hotpatch_hw): New name.
21329         Remove special handling of inline functions and hotpatching.
21330         Return number of nops before and after the function label.
21331         (s390_can_inline_p): Removed.
21332         (s390_asm_output_function_label): Emit a configurable number of nops
21333         after the function label.
21334         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21335         (TARGET_CAN_INLINE_P) Removed.
21336         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21338 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21339             Jiong Wang  <jiong.wang@arm.com>
21341         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21342         of scratch reg.
21343         (cb<optab><mode>1): Likewise.
21344         * config/aarch64/iterators.md (bcond): New define_code_attr.
21346 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21348         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21349         memory accesses.
21351 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21353         * config/s390/s390.c (s390_register_move_cost): Increase costs for
21354         FPR->GPR moves.
21356 2015-01-27  Richard Biener  <rguenther@suse.de>
21358         * tree-vrp.c (update_value_range): Intersect the range with
21359         old recorded SSA name range information.
21361 2015-01-27  Nick Clifton  <nickc@redhat.com>
21363         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21364         BC, DE and HL registers directly, not via AX.
21365         When decrementing the stack pointer by a large amount, transfer SP
21366         into AX and perform the subtraction there.
21367         (rl78_expand_epilogue): Perform the inverse of the above
21368         enhancements.
21370 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21372         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21374 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21375             Yury Gribov  <y.gribov@samsung.com>
21377         PR ubsan/64741
21378         * ubsan.c (ubsan_source_location): Refactor code.
21379         (ubsan_type_descriptor): Update type size. Refactor code.
21381 2015-01-27  Richard Biener  <rguenther@suse.de>
21383         PR tree-optimization/56273
21384         PR tree-optimization/59124
21385         PR tree-optimization/64277
21386         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21387         from the first VRP pass.
21389 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21391         PR ipa/64776
21392         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21393         handle the first argument in the same loop as all the other arguments.
21395         PR rtl-optimization/61058
21396         * jump.c (cleanup_barriers): Update basic block boundaries
21397         if BLOCK_FOR_INSN is non-NULL on PREV.
21399 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
21401         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21402         bounds narrowing, already instrumented calls and calls to
21403         not instrumentable functions.
21405 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
21407         PR tree-optimization/64807
21408         * wide-int.cc (wi::divmod_internal): Clear
21409         b_dividend[dividend_blocks_needed].
21411 2015-01-26  DJ Delorie  <dj@redhat.com>
21413         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21414         volatile memory references.
21416 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
21418         PR target/49263
21419         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21420         remove_insn.
21421         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21422         shifts if it already fits into K08.
21424 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21426         PR ipa/64730
21427         * ipa-inline.c (inline_small_functions): Print "unknown" even
21428         if edge->call_stmt is non-NULL, but has builtins or unknown
21429         location.
21431         PR middle-end/64421
21432         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21433         with asterisk, skip the first character.
21435 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21437         PR target/64806
21438         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21439         order change.
21441 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
21443         PR target/64795
21444         * config/i386/i386.md (*movdi_internal): Also check operand 0
21445         to determine TYPE_LEA operand.
21446         (*movsi_internal): Ditto.
21448 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
21450         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21451         OPTION_MASK_QUAD_MEMORY_ATOMIC.
21453 2015-01-26  Renlin Li  <renlin.li@arm.com>
21455         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
21456         the comment.
21457         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
21458         for higher part.
21460 2015-01-26  Richard Biener  <rguenther@suse.de>
21462         PR middle-end/64764
21463         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
21464         combining two BIT_AND_EXPR predicates.
21466 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
21468         PR bootstrap/64754
21469         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
21471 2015-01-26  Terry Guo  <terry.guo@arm.com>
21473         * config/arm/arm.c (arm_file_start): Update the assignment of
21474         Tag_ABI_HardFP_use.
21476 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
21478         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
21479         pipeline model.
21480         config/arm/arm.md: Include the new Cortex-A57 model.
21481         (generic_sched): Don't use generic_sched when tuning for
21482         Cortex-A57.
21484 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
21485             Uros Bizjak  <ubizjak@gmail.com>
21487         * config/i386/i386.c (get_builtin_code_for_version): Add
21488         support for BMI and BMI2 multiversion functions.
21490 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21492         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
21493         (extract_bit_field): Likewise.
21494         (extract_low_bits): Likewise.
21495         (expand_mult): Likewise.
21496         (expand_mult_highpart_adjust): Likewise.
21498 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
21500         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
21501         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
21502         * config/i386/i386.c (processor_model): Add
21503         M_INTEL_COREI7_BROADWELL.
21504         (arch_names_table): Add "broadwell".
21506 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
21508         PR target/49263
21509         PR target/53987
21510         PR target/64345
21511         PR target/59533
21512         PR target/52933
21513         PR target/54236
21514         PR target/51244
21515         * config/sh/sh-protos.h
21516         (sh_extending_set_of_reg::can_use_as_unextended_reg,
21517         sh_extending_set_of_reg::use_as_unextended_reg,
21518         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
21519         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
21520         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
21521         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
21522         (sh_treg_insns): New class.
21523         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
21524         (scope_counter): New class.
21525         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
21526         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
21527         sh_extending_set_of_reg::can_use_as_unextended_reg,
21528         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
21529         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
21530         sh_split_treg_set_expr): New functions.
21531         (addsubcosts): Handle treg_set_expr.
21532         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
21533         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
21534         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
21535         (sh_insn_operands_modified_between_p): Make non-static.
21536         * config/sh/predicates.md (zero_extend_movu_operand): Allow
21537         simple_mem_operand in addition to displacement_mem_operand.
21538         (zero_extend_operand): Don't allow zero_extend_movu_operand.
21539         (treg_set_expr, treg_set_expr_not_const01,
21540         arith_reg_or_treg_set_expr): New predicates.
21541         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
21542         arith_or_int_operand instead of logical_operand.  Convert to
21543         insn_and_split.  Try to optimize constant operand in splitter.
21544         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
21545         (*tstqi_t_zero): Delete.
21546         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
21547         (tstsi_t_and_not): Delete.
21548         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
21549         Convert to insn_and_split.
21550         (unnamed split, tstsi_t_zero_extract_xor,
21551         tstsi_t_zero_extract_subreg_xor_little,
21552         tstsi_t_zero_extract_subreg_xor_big): Delete.
21553         (*tstsi_t_shift_mask): New insn_and_split.
21554         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
21555         to recombine with surrounding insns when splitting.
21556         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
21557         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
21558         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
21559         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
21560         (*cbranch_div0s: Delete.
21561         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21562         Try to recombine with surrounding insns when splitting.  Add operand
21563         order variants.
21564         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
21565         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
21566         *addc_r_r_msb, *addc_2r_msb): Delete.
21567         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
21568         order variant.
21569         (*addc_negreg_t): New insn_and_split.
21570         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
21571         Try to recombine with surrounding insns when splitting.
21572         Add operand order variants.
21573         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
21574         insn_and_split patterns.
21575         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
21576         surrounding insns when splitting.
21577         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
21578         (*rotcl): Likewise.  Add zero_extract variant.
21579         (*ashrsi2_31): New insn_and_split.
21580         (*negc): Convert to insn_and_split.  Use treg_set_expr.
21581         (*zero_extend<mode>si2_disp_mem): Update comment.
21582         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
21583         condition.
21584         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
21585         with surrounding insns when splitting.
21586         (any_treg_expr_to_reg): New insn_and_split.
21587         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
21588         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
21589         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
21590         *zero_extract_2): New single bit zero extract patterns.
21591         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
21592         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
21593         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
21594         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
21595         set destination.
21596         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
21597         register_operand for set source.
21599 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
21601         * i386.opt (prefetch_sse): New targetsave.
21602         * i386.c (ix86_function_specific_save): Save prefetch_sse.
21603         (ix86_function_specific_restore): Restore prefetch_sse and initialize
21604         ix86_cost/ix86_tune_cost.
21606 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21608         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
21609         Support the JIT by using 0 as the language type.
21611 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
21613         PR target/64317
21614         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
21615         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
21616         (mark_regno_live, process_bb_lives): Pass new parameter value to
21617         make_hard_regno_born.
21619 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21621         PR rtl-optimization/63637
21622         PR rtl-optimization/60663
21623         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
21624         if elt->cost is MAX_COST for ASM_OPERANDS.
21625         (find_sets_in_insn): Fix up comment typo.
21626         (cse_insn): Don't set src_volatile for all non-volatile
21627         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
21628         or with "memory" clobber.  Set elt->cost to MAX_COST
21629         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
21630         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
21632 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21634         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
21635         alternative 1.
21637 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
21639         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
21640         libgcc/config/i386/elf-lib.h.
21642 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21644         PR driver/64737
21645         * gcc.c (print_configuration): Don't print a blank line at the end
21646         here...
21647         (run_attempt): ... but here unstead.
21649         PR middle-end/64734
21650         * omp-low.c (scan_sharing_clauses): Don't ignore
21651         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
21652         on target data/update constructs.
21654 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21656         PR target/50928
21657         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
21658         (DEBUG_RELOAD): Removed define.
21659         (m32c_limit_reload_class): Enable traces with if DEBUG0.
21660         (m32c_function_arg): Added a type cast.
21661         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
21662         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
21663         * config/m32c/bitops.md (andqi3_16): Likewise.
21664         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
21665         (push_a01_l): Likewise.
21667 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21669         PR jit/64721
21670         * main.c (main): Construct toplev instances with init_signals=true.
21671         * toplev.c (general_init): Add param "init_signals", and use it to
21672         conditionalize the calls to signal and host_hooks.extra_signals.
21673         (toplev::toplev): Add param "init_signals".
21674         (toplev::main): When invoking general_init, pass m_init_signals
21675         to control whether signal-handlers are installed.
21676         * toplev.h (toplev::toplev): Add param "init_signals".
21677         (toplev::m_init_signals): New field.
21679 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
21681         PR jit/64722
21682         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
21683         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
21684         latter may be affected by the former (e.g. on i686).
21686 2015-01-23  Martin Liska  <mliska@suse.cz>
21688         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
21689         false positive during profiledbootstrap.
21691 2015-01-23  Tom de Vries  <tom@codesourcery.com>
21693         PR libgomp/64672
21694         * lto-opts.c (lto_write_options): Output non-explicit conservative
21695         -fno-openacc.
21696         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
21697         (append_compiler_options): Pass -fopenacc through.
21699 2015-01-23  Tom de Vries  <tom@codesourcery.com>
21701         PR libgomp/64707
21702         * lto-opts.c (lto_write_options): Output non-explicit conservative
21703         -fno-openmp.
21704         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
21705         (append_compiler_options): Pass -fopenmp through.
21707 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
21709         PR debug/64511
21710         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
21711         GTY markup.
21713         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
21714         * diagnostic.def (DK_ICE_NOBT): New kind.
21715         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
21716         like DK_ICE, but never print backtrace.
21717         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
21718         (internal_error_no_backtrace): New function.
21719         * gcc.c (execute): Use internal_error_no_backtrace instead of
21720         internal_error.
21722 2015-01-22  Jeff Law  <law@redhat.com>
21724         PR target/52076
21725         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
21726         improve code density for small immediate to memory case.
21727         (insv): Better handle bitfield assignments when the field is
21728         being set to all ones.
21729         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
21730         operand predicate.
21732 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21733             Jakub Jelinek  <jakub@redhat.com>
21735         PR middle-end/64729
21736         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
21737         for !TARGET_LIBC_PROVIDES_SSP version and
21738         -fstack-protector-{all,strong,explicit} otherwise.
21739         * config/freebsd.h (LINK_SSP_SPEC): Handle
21740         -fstack-protector-{strong,explicit}.
21742 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
21743             H.J. Lu  <hongjiu.lu@intel.com>
21745         PR ipa/64694
21746         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
21747         heap.
21749 2015-01-22  Wei Mi  <wmi@google.com>
21751         PR rtl-optimization/64557
21752         * dse.c (record_store): Call get_addr for mem_addr.
21753         (check_mem_read_rtx): Likewise.
21755 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
21757         * fold-const.c (const_binop): Add early return for non-tcc_binary.
21759 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
21761         * toplev.c (init_local_tick): Process the failure when read
21762         fails for random_seed.
21764         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
21765         'pretty_name' to avoid memory overflow.
21767 2015-01-22  Richard Biener  <rguenther@suse.de>
21769         PR middle-end/64728
21770         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
21771         abnormal coalescing on undefined SSA names.
21773 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
21775         PR target/64688
21776         PR target/64477
21777         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
21778         for alternative 3.
21779         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
21781 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
21783         PR middle-end/63325
21784         * fold-const.c (fold_checksum_tree): Don't include value of
21785         expr->decl_with_vis.symtab_node in the checksum.
21787 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21789         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
21791 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21793         PR driver/64690
21794         * gcc.c (insert_comments): New function.
21795         (try_generate_repro): Call it.
21796         (append_text): Removed.
21798 2015-01-22  Richard Biener  <rguenther@suse.de>
21800         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
21801         with IL incompatible options.  Properly honor user optimize
21802         attributes.
21804 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
21806         PR rtl-optimization/64682
21807         * combine.c (distribute_notes): When moving a death note for
21808         a register that is set in the new I2, make sure to put it
21809         before that new I2.
21811 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
21813         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
21814         not TARGET_DEFAULT.
21816 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
21818         PR debug/64511
21819         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
21820         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
21821         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
21823         PR sanitizer/64706
21824         * doc/invoke.texi (-fsanitize=vptr): Document.
21826         PR rtl-optimization/62078
21827         * dse.c: Include cfgcleanup.h.
21828         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
21829         anything call purge_all_dead_edges and cleanup_cfg at the end
21830         of the pass.
21832 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
21834         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
21835         edges.
21837 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21839         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
21840         decl attribute.
21842 2015-01-21  David Sherwood  <david.sherwood@arm.com>
21843             Tejas Belagod <Tejas.Belagod@arm.com>
21845         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
21846         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
21847         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
21848         Removed.
21850 2015-01-21  David Sherwood  <david.sherwood@arm.com>
21851             Tejas Belagod <Tejas.Belagod@arm.com>
21853         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
21854         (aarch64_reverse_mask): New decls.
21855         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
21856         (insn_count): New mode_attr.
21857         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
21858         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
21859         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
21860         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
21861         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
21862         (aarch64_simd_st4): New patterns.
21863         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
21864         (aarch64_reverse_mask): New functions.
21866 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
21868         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
21869         Declare.
21870         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
21871         addressing modes for BE.
21872         (aarch64_print_operand): Add 'R' specifier.
21873         (aarch64_simd_disambiguate_copy): Delete.
21874         (aarch64_simd_emit_reg_reg_move): New function.
21875         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
21876         in define_splits for structural moves.
21877         (mov<mode>): Use less restrictive predicates.
21878         (*aarch64_mov<mode>): Simplify and only allow for LE.
21879         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
21881 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
21883         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
21885 2015-01-21  Richard Henderson  <rth@redhat.com>
21887         PR target/64669
21888         * ccmp.c (used_in_cond_stmt_p): Remove.
21889         (expand_ccmp_expr): Don't use it.
21891 2015-01-21  Nick Clifton  <nickc@redhat.com>
21893         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
21894         PARALLELs.
21896 2015-01-21  Richard Biener  <rguenther@suse.de>
21898         PR middle-end/64313
21899         * tree-core.h (builtin_info, builtin_info_type): Turn from
21900         an object with two arrays into an array of an object with
21901         decl and two flags, implicit_p and declared_p.
21902         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
21903         set_builtin_decl, set_builtin_decl_implicit_p,
21904         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
21905         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
21906         * builtins.c (builtin_info): Adjust.
21907         * gimplify.c (gimplify_addr_expr): References to builtins
21908         that have been declared by the user makes them eligible for
21909         use by the compiler.  Call set_builtin_decl_implicit_p on them.
21911 2015-01-20  Jeff Law  <law@redhat.com>
21913         PR target/59946
21914         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
21915         allow pc-relative addresses in operand predicates or constraints.
21917 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
21919         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
21920         neon on aarch32 processors for stringops.
21922 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21924         PR ipa/63576
21925         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
21927 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
21929         PR lto/45375
21930         * ipa-inline.c: Include lto-streamer.h
21931         (report_inline_failed_reason): Output source file differences and
21932         flags on optimization/target node mismatch.
21933         (can_inline_edge_p): Consider caller to be the outer inline function;
21934         be less restrictive about matching opimize and optimize_size attributes.
21935         (inline_account_function_p): Break out from ...
21936         (inline_small_functions): ... here.
21937         * ipa-inline-transform.c (clone_inlined_nodes): Use
21938         inline_account_function_p.
21939         (inline_call): Use optimize attribution; use inline_account_function_p.
21940         (inline_transform): Use opt_for_fn.
21941         * ipa-inline.h (inline_account_function_p): Declare.
21943 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
21945         PR debug/64663
21946         * dwarf2out.c (decl_piece_node): Don't put bitsize into
21947         mode if bitsize <= 0.
21948         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
21949         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
21950         sizes and positions.
21952 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
21954         * config/nios2/nios2.c (nios2_asm_file_end): Implement
21955         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
21956         needed.
21957         (TARGET_ASM_FILE_END): Define.
21959 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
21961         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
21962         (struct tune_params): Use the enum.
21963         * arm.c (arm_*_tune): Update.
21964         (arm_option_override): Update.
21966 2015-01-20  Richard Biener  <rguenther@suse.de>
21968         PR ipa/64684
21969         * ipa-reference.c (add_static_var): Inline ...
21970         (analyze_function): ... here after splitting out from ...
21971         (is_proper_for_analysis): ... this.
21973 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
21975         PR target/64149
21976         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
21977         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
21978         replace the conditional with it's true branch.
21979         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
21980         (arm_lra_p): Remove.
21982 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
21984         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
21986 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
21988         * config/tilegx/mul-tables.c: Move symtab.h include after
21989         coretypes.h include.
21990         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
21991         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
21992         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
21993         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
21994         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21996 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
21998         PR bootstrap/64676
21999         Revert:
22000         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
22002         PR rtl-optimization/64081
22003         * loop-iv.c (def_pred_latch_p): New function.
22004         (latch_dominating_def): Allow specific cases with non-single
22005         definitions.
22006         (iv_get_reaching_def): Likewise.
22007         (check_complex_exit_p): New function.
22008         (check_simple_exit): Use check_complex_exit_p to allow certain cases
22009         with exits not executing on any iteration.
22011 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22013         PR lto/45375
22014         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22015         to set branch cost.
22017 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22019         PR lto/45375
22020         * i386.c (gate): Check flag_expensive_optimizations and
22021         optimize_size.
22022         (ix86_option_override_internal): Drop optimize_size condition
22023         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22024         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22025         MASK_PREFER_AVX128.
22026         (ix86_avx256_split_vector_move_misalign,
22027         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22028         * sse.md (all uses of TARGET_PREFER_AVX128): Add
22029         optimize_insn_for_speed_p check.
22031 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
22033         * config/mips/mips.h (FP_ASM_SPEC): New define.
22034         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22035         instead.
22037 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
22039         PR target/53988
22040         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22041         nullptr for insn when reaching the first insn.
22042         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22043         (sh_insn_operands_modified_between_p): Add nullptr check.
22044         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
22045         sign extending mem load if the insn contains any UNSPEC or
22046         UNSPEC_VOLATILE.
22048 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22050         * params.def (inline-unit-growth): Drop to 15%.
22051         * invoke.texi (inline-unit-growth): Document change.
22053 2015-01-19  Martin Liska  <mliska@suse.cz>
22055         PR ipa/64668
22056         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22057         function for second argument of OBJ_TYPE_REF.
22059 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22061         PR ipa/64218
22062         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22063         whether function is an alias.
22065 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
22067         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22068         cases.
22070 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
22072         PR rtl-optimization/64671
22073         * lra-remat.c (operand_to_remat): Don't consider jump and call
22074         insns.
22076 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
22078         PR target/59828
22079         * config/rs6000/default64.h: Include rs6000-cpus.def.
22080         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22081         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22082         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22083         and POWER8.
22084         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22085         POWER8.
22086         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22087         pseudo-op to specify assembler dialect.
22089 2015-01-19  Martin Liska  <mliska@suse.cz>
22091         PR ipa/64664
22092         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22093         Handle safe potentially removed nodes during filtering.
22095 2015-01-19  Martin Liska  <mliska@suse.cz>
22097         * doc/extend.texi (no_icf): Add new attribute description.
22098         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22099         where the pass attempts to merge a function with no_icf attribute.
22101 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22103         PR target/64532
22104         * doc/md.texi (ARM Options): Document register constraints.
22106 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
22107             Andrew Pinski  <apinski@cavium.com>
22109         PR target/64304
22110         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22111         (ashl<mode>3): Don't expand if operands[2] is not constant.
22113 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22115         PR target/64448
22116         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22117         Match xor-and-xor RTL pattern.
22119 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
22121         PR rtl-optimization/64081
22122         * loop-iv.c (def_pred_latch_p): New function.
22123         (latch_dominating_def): Allow specific cases with non-single
22124         definitions.
22125         (iv_get_reaching_def): Likewise.
22126         (check_complex_exit_p): New function.
22127         (check_simple_exit): Use check_complex_exit_p to allow certain cases
22128         with exits not executing on any iteration.
22130 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
22132         * common.opt (fgraphite): Fix a typo.
22134 2015-01-19  Felix Yang  <felix.yang@huawei.com>
22136         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22137         pattern.
22138         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22139         uminp, smax_nanp, smin_nanp): New builtins.
22140         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22141         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22142         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22143         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22144         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22145         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22146         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22147         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22148         vpminnms_f32): Rewrite using builtin functions.
22150 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
22152         PR libgomp/64625
22153         * omp-low.c (offload_symbol_decl): Remove variable.
22154         (get_offload_symbol_decl): Remove function.
22155         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22156         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22157         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22158         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22159         BUILT_IN_GOACC_UPDATE don't pass it at all.
22161 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
22163         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22164         callers.
22166 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
22168         * ipa-chkp.c (chkp_produce_thunks): Add early param
22169         to split thunks production into two passes.  Keep
22170         'always_inline' function bodies after the first pass.
22171         (pass_data_ipa_chkp_early_produce_thunks): New.
22172         (pass_ipa_chkp_early_produce_thunks): New.
22173         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22174         chkp_produce_thunks signature.
22175         (make_pass_ipa_chkp_early_produce_thunks): New.
22176         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22177         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22178         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22180 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22182         * cgraph.c (cgraph_node::dump): Dump profile flags.
22184 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
22186         PR target/64652
22187         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22188         reg appear first in the parallel.
22190 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22192         * ipa-reference.c (set_reference_optimization_summary,
22193         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22194         disabled.
22195         (ignore_module_statics): New static var.
22196         (propagate_bits): If ipa-reference is disabled, do not look into local
22197         properties.
22198         (analyze_function): Disable analysis when ipa_reference is disabled.
22199         (generate_summary): Do not dump when reference is disabled;
22200         collect vars accessed from functions with ipa-reference disabled.
22201         (get_read_write_all_from_node): When ipa-reference is disabled, use the
22202         node flags.
22203         (gate): Enable for LTO.
22204         (ignore_edge_p): New function.
22205         (propagate): Skip functions w/o ipa-reference analysis.
22206         * optc-save-gen.awk: Handle optimize_debug correctly.
22207         * opth-gen.awk: Likewise.
22208         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22209         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22210         fira-share-save-slots, fira-share-spill-slots,
22211         fmodulo-sched-allow-regmoves, fpartial-inlining,
22212         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22213         ftracer, ftree-parallelize-loops, fassociative-math,
22214         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22215         Optimization
22216         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22217         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22218         Optimization.
22219         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22220         Fix for IPA.
22222 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
22224         PR ipa/64378
22225         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22226         flag correctly.
22227         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22229 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
22231         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22232         Remove duplicate option listings.
22234 2015-01-18  Felix Yang  <felix.yang@huawei.com>
22236         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22237         (autofdo_source_profile::get_callsite_total_count,
22238         function_instance::get_function_instance_by_decl,
22239         string_table::get_index, string_table::get_index_by_decl,
22240         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22241         Fix comment typos. Reformatting and minor code rearrangement.
22243 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22245         * config/rs6000/rs6000.md (probe_stack): Delete.
22246         (probe_stack_address): New.
22248 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22250         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22251         to test for 32-bit ABIs, not !TARGET_POWERPC64.
22253 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
22255         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22256         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
22257         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
22258         snafu.
22259         (rs6000_libcall_value): Use the new function.
22261 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
22263         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22265 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22267         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22268         implement a more precise life analysis for it during backward scan.
22270 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
22272         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22274 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
22276         PR rtl-optimization/52773
22277         * calls.c (emit_library_call_value): When pushing arguments use
22278         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22279         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
22280         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22282 2015-01-17  Jeff Law  <law@redhat.com>
22284         PR rtl-optimization/32790
22285         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22286         not ZERO_EXTEND in SET_DESTs.
22288 2015-01-17  Alan Modra  <amodra@gmail.com>
22290         * cprop.c (do_local_cprop): Revert last change.
22292 2015-01-16  DJ Delorie  <dj@redhat.com>
22293             Nick Clifton  <nickc@redhat.com>
22295         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22296         (addhi3_real): Likewise.  Fix [HL+0] syntax.
22297         (subqi3_real): Likewise.
22298         (subhi3_real): Likewise.
22299         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
22300         (cbranchhi4_real): Likewise.
22301         (cbranchhi4_real_inverted): Likewise.
22302         (cbranchsi4_real_lt): Likewise.
22303         (cbranchsi4_real_ge): Likewise.
22304         (cbranchsi4_real_ge): Likewise.
22305         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22306         (sub<mode>3_virt): Likewise.
22307         (cbranchqi4_virt): Likewise.
22308         (cbranchhi4_virt): Likewise.
22309         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22310         always use '[reg+imm]' even when imm is zero.
22311         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22312         (rl78_general_operand): New.
22313         (rl78_nonimmediate_operand): New.
22314         (rl78_nonfar_operand): Use them.
22315         (rl78_nonfar_nonimm_operand): Likewise.
22316         (rl78_stack_based_mem): Fix.
22317         * config/rl78/constraints.md (Ibqi): New.
22318         (IBqi): New.
22319         (Wsa): New.
22320         (Wsf): New.
22321         (Cs1): Fix.
22322         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22323         (iorqi3): Likewise.
22324         (xorqi3): Likewise.
22325         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22327         * config/rl78/constrains (Qs8): New constraint.
22328         * config/rl78/rl78.c (rl78_flags_already_set): New function.
22329         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22330         * config/rl78/rl78-real.md (update_Z): New attribute.
22331         Update patterns to set it.
22332         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22333         shorter compare and branch sequence can be used.
22334         (cbranchhi4_real): Likewise.
22335         (cbranchhi4_real_inverted): Likewise.
22337         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22338         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22339         address space.
22340         * config/rl78/rl78.c (rl78_get_name_encoding): New.
22341         (rl78_option_override): Allow -mes0 only if C.
22342         (characterize_address): Support subregs of symbol_refs.
22343         (rl78_addr_space_address_mode): Move.  Add __near.
22344         (rl78_far_p): Likewise.
22345         (rl78_addr_space_pointer_mode): Likewise.
22346         (rl78_as_legitimate_address): Likewise.
22347         (rl78_addr_space_subset_p): Likewise.
22348         (rl78_addr_space_convert): Likewise.
22349         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22350         symbols with -mes0.
22351         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
22352         addressing.
22353         (rl78_alloc_physical_registers_op1): Change logic to prefer
22354         symbol[BC] addressing.
22355         (frodata_section): New.
22356         (rl78_asm_init_sections): Initialize it.
22357         (rl78_select_section): Put __far readonly symbols in .frodata.
22358         (rl78_make_type_far): New.
22359         (rl78_insert_attributes): Force all readonly symbols to be
22360         __far when -mes0.
22361         (rl78_asm_out_integer): New.
22362         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22363         * config/rl78/rl78.opt (-mes0): New.
22365         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22366         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22367         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22368         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22369         (rl78_saddr_p): New.
22370         (rl78_output_aligned_common): New.
22371         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22372         (rl78_handle_saddr_attribute): New.
22373         (rl78_handle_naked_attribute): New.
22374         (rl78_attribute_table): Add saddr.
22375         (rl78_print_operand_1): Don't print '!' on saddr operands.
22376         (rl78_print_operand_1): Strip encodings.
22377         (rl78_sfr_p): New.
22378         (rl78_strip_name_encoding): New.
22379         (rl78_attrlist_to_encoding): New.
22380         (rl78_encode_section_info): New.
22381         (rl78_asm_init_sections): New.
22382         (rl78_select_section): New.
22383         (rl78_output_labelref): New.
22384         (rl78_output_aligned_common): New.
22385         (rl78_asm_out_integer): New.
22386         (rl78_asm_ctor_dtor): New.
22387         (rl78_asm_constructor): New.
22388         (rl78_asm_destructor): New.
22390         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22391         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22392         (transcode_memory_rtx): Update.
22393         (rl78_expand_epilogue): Use A_REG instead of 0.
22395 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22397         * config/arm/arm-protos.h (struct tune_params): New field
22398         sched_autopref_queue_depth.
22399         * config/arm/arm.c (sched-int.h): Include header.
22400         (arm_first_cycle_multipass_dfa_lookahead_guard,)
22401         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22402         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22403         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22404         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22405         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22406         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22407         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22408         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
22409         * config/arm/t-arm (arm.o): Update.
22410         * haifa-sched.c (update_insn_after_change): Update.
22411         (rank_for_schedule): Use auto-prefetcher model, if requested.
22412         (autopref_multipass_init): New static function.
22413         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22414         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22415         variable for debug dumps.
22416         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22417         (autopref_multipass_dfa_lookahead_guard): New global function that
22418         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22419         (init_h_i_d): Update.
22420         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22421         * sched-int.h (enum autopref_multipass_data_status): New const enum.
22422         (autopref_multipass_data_): Structure for auto-prefetcher data.
22423         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22424         (struct _haifa_insn_data:autopref_multipass_data): New field.
22425         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22426         (autopref_multipass_dfa_lookahead_guard): Declare.
22428 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22430         * rtlanal.c (get_base_term): Handle SCRATCH.
22432 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22434         * config/aarch64/aarch64.c
22435         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22436         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22437         * config/arm/arm.c
22438         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22439         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22441 2015-01-17  Alan Modra  <amodra@gmail.com>
22443         * cprop.c (do_local_cprop): Disallow replacement of fixed
22444         hard registers.
22446 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22448         PR target/62066
22449         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
22450         early return 0.
22452 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22454         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
22455         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
22457 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22459         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
22460         * config/arm/thumb1.md: ... Here.
22462 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22464         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
22465         TImode for TARGET_32BIT.
22467 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22469         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
22470         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
22471         as ...
22472         (rs6000_abi_word_mode): New function.
22474 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22476         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
22477         instead of UNITS_PER_WORD to describe the size of stack slots.
22479 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22481         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
22482         as rs6000_promote_function_mode.  Move comment to there.
22483         (rs6000_promote_function_mode): New function.
22485 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
22487         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
22488         -mpowerpc64 is active.
22490 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22492         PR middle-end/64353
22493         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
22494         virtuals on start.
22496 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22498         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
22499         introduced in revision 219724.
22501 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22502             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22504         PR target/64263
22505         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
22506         destination is not a GP reg.
22507         (*movdi_aarch64): Likewise.
22509 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
22511         PR target/64623
22512         * config/rs6000/default64.h: Revert ISA change.
22514 2015-01-16  Richard Biener  <rguenther@suse.de>
22516         PR middle-end/64614
22517         * tree-ssa-uninit.c: Include tree-cfg.h.
22518         (MAX_SWITCH_CASES): New define.
22519         (convert_control_dep_chain_into_preds): Handle switch statements.
22520         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
22521         (normalize_one_pred_1): Do not split bit-manipulations.
22522         Record (x & CST).
22524 2015-01-16  Richard Biener  <rguenther@suse.de>
22526         PR tree-optimization/64568
22527         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
22528         complex load rewriting for TARGET_MEM_REFs.
22530 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
22532         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
22534 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
22536         PR target/64149
22537         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
22538         variable.
22539         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
22540         (aarch64_lra_p): Remove.
22542 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
22544         PR target/64363
22545         * ipa-chkp.h (chkp_instrumentable_p): New.
22546         * ipa-chkp.c: Include tree-inline.h.
22547         (chkp_instrumentable_p): New.
22548         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
22549         Fix processing of not instrumentable functions.
22550         (chkp_versioning): Use chkp_instrumentable_p. Warn about
22551         not instrumentable functions.
22552         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
22553         chkp_instrumentable_p.
22554         * tree-inline.h (copy_forbidden): New.
22555         * tree-inline.c (copy_forbidden): Not static anymore.
22557 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22559         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
22560         ptr1, ptr2 unused.
22562 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22564         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
22565         type OP_OUT to OP_INOUT.
22567 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
22569         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
22570         (high x) y) to y if x and y have the same base.
22572 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
22574         * config/arm/cortex-a57.md: New.
22575         * config/aarch64/aarch64.md: Include it.
22576         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
22577         * config/aarch64/aarch64-tune.md: Regenerate.
22579 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
22581         PR target/64015
22582         * ccmp.c (expand_ccmp_next): New function.
22583         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
22584         and compare insn sequence.
22585         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
22586         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
22587         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
22588         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
22589         (*ccmp_ior): Changed to ccmp_ior<mode>.
22590         (cmp<mode>): New pattern.
22591         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
22592         parameters.
22593         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
22595 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
22597         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
22598         _mm256_bsrli_epi128): New.
22599         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
22601 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22603         * expmed.c (store_bit_field_using_insv): Improve warning message.
22604         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
22606 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
22608         PR rtl-optimization/64011
22609         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
22610         there is partial overflow.
22612 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22614         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
22615         prototype.
22616         (nds32_expand_epilogue_v3pop): Likewise.
22617         * config/nds32/nds32.md (sibcall): Define this for sibling call
22618         optimization.
22619         (sibcall_register): Likewise.
22620         (sibcall_immediate): Likewise.
22621         (sibcall_value): Likewise.
22622         (sibcall_value_register): Likewise.
22623         (sibcall_value_immediate): Likewise.
22624         (sibcall_epilogue): Likewise.
22625         (epilogue): Pass false to indicate this is not a sibcall epilogue.
22626         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
22627         (nds32_expand_epilogue_v3pop): Likewise.
22629 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22631         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
22632         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
22633         (return_internal): New.
22634         (return): Define this named pattern.
22635         (simple_return): Define this named pattern.
22636         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
22637         pattern instead of unspec_volatile_func_return.
22638         (nds32_expand_epilogue_v3pop): Likewise.
22639         (nds32_can_use_return_insn): New function.
22641 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22643         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
22644         * config/nds32/nds32.md (pop25return): New.
22645         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
22646         pop25return pattern.
22648 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22650         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
22651         -mforbid-fp-as-gp, and -mex9 options.
22653 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
22655         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
22656         remove -mgp-direct option.
22658 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22660         * doc/invoke.texi (--param early-inlining-insns): Update default value.
22661         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
22663 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22665         * ipa-inline.c (inline_small_functions): Work around hints
22666         cache issue.
22668 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
22670         PR target/59710
22671         * doc/invoke.texi (Option Summary): Document new Nios II
22672         -mgpopt= syntax.
22673         (Nios II Options): Likewise.
22674         * config/nios2/nios2.opt: Add -mgpopt= option support.
22675         Modify existing -mgpopt and -mno-gpopt options to be aliases.
22676         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
22677         * config/nios2/nios2.c (nios2_option_override): Adjust
22678         -mgpopt defaulting.
22679         (nios2_in_small_data_p): Return true for explicit small data
22680         sections even with -G0.
22681         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
22682         option choices.
22684 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22686         PR ipa/64612
22687         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
22688         of comdat locals.
22689         (inline_call): Fix removal of aliases.
22691 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
22693         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
22694         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
22695         * opts.c (common_handle_option): Add -fsanitize=vptr.
22696         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
22697         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
22698         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
22699         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
22700         (ubsan_expand_vptr_ifn): New prototype.
22701         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
22702         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
22703         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
22704         expand_LOOP_VECTORIZED): Make argument nameless, remove
22705         ATTRIBUTE_UNUSED.
22706         (expand_UBSAN_VPTR): New function.
22707         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
22708         in fn spec.
22709         (UBSAN_VPTR): New internal function.
22710         * sanopt.c (tree_map_traits): Renamed to ...
22711         (sanopt_tree_map_traits): ... this.
22712         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
22713         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
22714         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
22715         (maybe_optimize_ubsan_vptr_ifn): New function.
22716         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
22717         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
22718         -fsanitize=vptr.
22719         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
22720         internal calls like pure functions for aliasing, even when they
22721         have other side-effects that prevent making them ECF_PURE.
22722         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
22723         (ubsan_expand_vptr_ifn): New function.
22725 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
22727         PR rtl-optimization/64110
22728         * stmt.c (parse_output_constraint): Process '^' and '$'.
22729         (parse_input_constraint): Ditto.
22730         * lra-constraints.c (process_alt_operands): Process the new
22731         constraints.
22732         * ira-costs.c (record_reg_classes): Process the new constraint
22733         '^'.
22734         * genoutput.c (indep_constraints): Add '^' and '$'.
22735         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
22736         * doc/md.texi: Add description of the new constraints.
22738 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
22739             Bernd Schmidt  <bernds@codesourcery.com>
22740             Cesar Philippidis  <cesar@codesourcery.com>
22741             James Norris  <jnorris@codesourcery.com>
22742             Tom de Vries  <tom@codesourcery.com>
22743             Ilmir Usmanov  <i.usmanov@samsung.com>
22744             Dmitry Bocharnikov  <dmitry.b@samsung.com>
22745             Evgeny Gavrin  <e.gavrin@samsung.com>
22746             Jakub Jelinek  <jakub@redhat.com>
22748         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
22749         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22750         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22751         New function types.
22752         * builtins.c: Include "gomp-constants.h".
22753         (expand_builtin_acc_on_device): New function.
22754         (expand_builtin, is_inexpensive_builtin): Handle
22755         BUILT_IN_ACC_ON_DEVICE.
22756         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
22757         New macros.
22758         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
22759         flag_openmp.
22760         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
22761         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
22762         i386/intelmic-offload.h.
22763         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
22764         to libgomp and its dependencies.
22765         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
22766         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
22767         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
22768         * config/ia64/hpux.h (LIB_SPEC): Likewise.
22769         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22770         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
22771         * doc/generic.texi: Update for OpenACC changes.
22772         * doc/gimple.texi: Likewise.
22773         * doc/invoke.texi: Likewise.
22774         * doc/sourcebuild.texi: Likewise.
22775         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
22776         GF_OMP_FOR_KIND_OACC_LOOP.
22777         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
22778         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
22779         GF_OMP_TARGET_KIND_OACC_UPDATE,
22780         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22781         Dump more data.
22782         * gimple.c: Update comments for OpenACC changes.
22783         * gimple.def: Likewise.
22784         * gimple.h: Likewise.
22785         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
22786         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22787         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
22788         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22789         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
22790         appropriate place.
22791         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
22792         * gimplify.c: Include "gomp-constants.h".
22793         Update comments for OpenACC changes.
22794         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
22795         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
22796         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22797         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
22798         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22799         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22800         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
22801         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22802         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
22803         OMP_CLAUSE_SEQ.
22804         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
22805         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
22806         OMP_CLAUSE_SET_MAP_KIND.
22807         (gimplify_oacc_cache): New function.
22808         (gimplify_omp_for): Handle OACC_LOOP.
22809         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
22810         OACC_DATA.
22811         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
22812         OACC_EXIT_DATA, OACC_UPDATE.
22813         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
22814         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
22815         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
22816         (gimplify_body): Consider flag_openacc next to flag_openmp.
22817         * lto-streamer-out.c: Include "gomp-constants.h".
22818         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
22819         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
22820         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
22821         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
22822         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
22823         (BUILT_IN_ACC_ON_DEVICE): New builtins.
22824         * omp-low.c: Include "gomp-constants.h".
22825         Update comments for OpenACC changes.
22826         (struct omp_context): Add reduction_map, gwv_below, gwv_this
22827         members.
22828         (extract_omp_for_data, use_pointer_for_field, install_var_field)
22829         (new_omp_context, delete_omp_context, scan_sharing_clauses)
22830         (create_omp_child_function, scan_omp_for, scan_omp_target)
22831         (check_omp_nesting_restrictions, lower_reduction_clauses)
22832         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
22833         Update for OpenACC changes.
22834         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
22835         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
22836         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
22837         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22838         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
22839         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
22840         OMP_CLAUSE_MAP_*.
22841         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
22842         Handle GF_OMP_FOR_KIND_OACC_LOOP.
22843         (expand_omp_target, lower_omp_target): Handle
22844         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22845         GF_OMP_TARGET_KIND_OACC_UPDATE,
22846         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
22847         GF_OMP_TARGET_KIND_OACC_DATA.
22848         (pass_expand_omp::execute, execute_lower_omp)
22849         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
22850         flag_openmp.
22851         (offload_symbol_decl): New variable.
22852         (oacc_get_reduction_array_id, oacc_max_threads)
22853         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
22854         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
22855         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
22856         (oacc_gimple_assign, oacc_initialize_reduction_data)
22857         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
22858         functions.
22859         (is_targetreg_ctx): Remove function.
22860         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
22861         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
22862         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22863         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
22864         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
22865         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
22866         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
22867         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
22868         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
22869         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
22870         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
22871         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
22872         * tree-core.h: Update comments for OpenACC changes.
22873         (enum omp_clause_map_kind): Remove.
22874         (struct tree_omp_clause): Change type of map_kind member from enum
22875         omp_clause_map_kind to unsigned char.
22876         * tree-inline.c: Update comments for OpenACC changes.
22877         * tree-nested.c: Likewise.  Include "gomp-constants.h".
22878         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
22879         (convert_tramp_reference_stmt, convert_gimple_call): Update for
22880         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
22881         OMP_CLAUSE_SET_MAP_KIND.
22882         * tree-pretty-print.c: Include "gomp-constants.h".
22883         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
22884         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
22885         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
22886         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
22887         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22888         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
22889         instead of OMP_CLAUSE_MAP_*.
22890         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
22891         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
22892         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22893         * tree-streamer-in.c: Include "gomp-constants.h".
22894         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
22895         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
22896         * tree-streamer-out.c: Include "gomp-constants.h".
22897         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
22898         OMP_CLAUSE_MAP_*.
22899         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
22900         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
22901         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
22902         * tree.c (omp_clause_num_ops): Update accordingly.
22903         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
22904         Likewise.
22905         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
22906         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
22907         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
22908         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
22909         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
22910         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
22911         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
22912         (OMP_CLAUSE_SET_MAP_KIND): New macro.
22913         * varpool.c (varpool_node::get_create): Consider flag_openacc next
22914         to flag_openmp.
22915         * config/i386/intelmic-offload.h: New file.
22916         * config/nvptx/offload.h: Likewise.
22918 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22920         * explow.h: Remove duplicate contents.
22921         * dojump.h: Likewise.
22923 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
22925         * arm.c (arm_xgene_tune): Add default initializer for instruction
22926         fusion.
22928 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
22930         PR ipa/64068
22931         PR ipa/64559
22932         * ipa.c (symbol_table::remove_unreachable_nodes):
22933         Do not put abstract origins into boundary.
22935 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
22937         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
22938         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
22940 2015-01-15  Steve Ellcey  <sellcey@mips.com>
22942         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
22943         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
22944         builtins.def, and chkp-builtins.def.
22946 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
22948         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
22949         ISA 2.7 (POWER8).
22951 2015-01-15  Richard Biener  <rguenther@suse.de>
22953         PR tree-optimization/61743
22954         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
22955         information on PHIs for some simple cases.
22957 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22959         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
22960         Include xgene1.md.
22961         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
22962         * config/arm/arm-cores.def (xgene1): New entry.
22963         * config/arm/arm-tables.opt: Regenerate.
22964         * config/arm/arm-tune.md: Regenerate.
22965         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
22967 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
22969         * tree-if-conv.c: Include hash-map.h.
22970         (aggressive_if_conv): New variable.
22971         (fold_build_cond_expr): Add simplification of non-zero condition.
22972         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
22973         destination block is not always executed.
22974         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
22975         than two predecessors if AGGRESSIVE_IF_CONV is true.
22976         (if_convertible_stmt_p): Fix commentary.
22977         (all_preds_critical_p): New function.
22978         (has_pred_critical_p): New function.
22979         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
22980         BB can have more than two predecessors and all incoming edges can be
22981         critical.
22982         (predicate_bbs): Skip predication for loop exit block, use build2_loc
22983         to compute predicate for true edge.
22984         (find_phi_replacement_condition): Delete this function.
22985         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
22986         Allow interchange PHI arguments if EXTENDED is false.
22987         Change check that block containing reduction statement candidate
22988         is predecessor of phi-block since phi may have more than two arguments.
22989         (phi_args_hash_traits): New helper structure.
22990         (struct phi_args_hash_traits): New type.
22991         (phi_args_hash_traits::hash): New function.
22992         (phi_args_hash_traits::equal_keys): New function.
22993         (gen_phi_arg_condition): New function.
22994         (predicate_scalar_phi): Add handling of phi nodes with more than two
22995         arguments, delete COND and TRUE_BB arguments, insert body of
22996         find_phi_replacement_condition to predicate ordinary phi nodes.
22997         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
22998         delete call of find_phi_replacement_condition and invoke
22999         predicate_scalar_phi with two arguments.
23000         (insert_gimplified_predicates): Add assert that non-predicated block
23001         don't have statements to insert.
23002         (ifcvt_split_critical_edges): New function.
23003         (ifcvt_split_def_stmt): Likewise.
23004         (ifcvt_walk_pattern_tree): Likewise.
23005         (stmt_is_root_of_bool_pattern): Likewise.
23006         (ifcvt_repair_bool_pattern): Likewise.
23007         (ifcvt_local_dce): Likewise.
23008         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23009         is copy of inner or outer loop force_vectorize field, invoke
23010         ifcvt_split_critical_edges, ifcvt_local_dce and
23011         ifcvt_repair_bool_pattern for aggressive if-conversion.
23013 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
23015         * config/aarch64/aarch64.md: Include xgene1.md.
23016         * config/aarch64/xgene1.md: New file.
23018 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
23020         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23021         xgene1 (APM XGene-1) core definition.
23022         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23023         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23024         * doc/invoke.texi: Document -mcpu=xgene1.
23026 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23028         * dojump.h: New header file.
23029         * explow.h: Likewise.
23030         * expr.h: Remove includes.
23031         Move expmed.c prototypes to expmed.h.
23032         Move dojump.c prototypes to dojump.h.
23033         Move alias.c prototypes to alias.h.
23034         Move explow.c prototypes to explow.h.
23035         Move calls.c prototypes to calls.h.
23036         Move emit-rtl.c prototypes to emit-rtl.h.
23037         Move varasm.c prototypes to varasm.h.
23038         Move stmt.c prototypes to stmt.h.
23039         (saved_pending_stack_adjust): Move to dojump.h.
23040         (adjust_address): Move to explow.h.
23041         (adjust_address_nv): Move to emit-rtl.h.
23042         (adjust_bitfield_address): Likewise.
23043         (adjust_bitfield_address_size): Likewise.
23044         (adjust_bitfield_address_nv): Likewise.
23045         (adjust_automodify_address_nv): Likewise.
23046         * explow.c (expr_size): Move to expr.c.
23047         (int_expr_size): Likewise.
23048         (tree_expr_size): Likewise.
23049         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23050         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23051         * genemit.c (main): Generate includes statistics.h, real.h,
23052         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23053         stmt.h.
23054         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23055         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23056         explow.h, emit-rtl.h, stmt.h.
23057         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23058         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23059         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23060         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23061         emit-rtl.h, varasm.h, stmt.h.
23062         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23063         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23064         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23065         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23066         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23067         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23068         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23069         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23070         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23071         tm.h tree.h varasm.h vec.h wide-int.h.
23072         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23073         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23074         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23075         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23076         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23077         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23078         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23079         * loop-iv.c: Likewise.
23080         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23081         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23082         statistics.h stmt.h tree.h varasm.h wide-int.h.
23083         * lra-constraints.c: Likewise.
23084         * lra-eliminations.c: Likewise.
23085         * lra-lives.c: Likewise.
23086         * lra-remat.c: Likewise.
23087         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23088         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23089         statistics.h stmt.h tree.h varasm.h wide-int.h.
23090         * hw-doloop.c: Likewise.
23091         * ira-color.c: Likewise.
23092         * ira-emit.c: Likewise.
23093         * loop-doloop.c: Likewise.
23094         * loop-invariant.c: Likewise.
23095         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23096         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23097         statistics.h stmt.h tree.h varasm.h wide-int.h.
23098         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23099         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23100         statistics.h stmt.h tree.h varasm.h wide-int.h.
23101         * combine-stack-adj.c: Likewise.
23102         * cse.c: Likewise.
23103         * ddg.c: Likewise.
23104         * ifcvt.c: Likewise.
23105         * ira-costs.c: Likewise.
23106         * jump.c: Likewise.
23107         * lra-coalesce.c: Likewise.
23108         * lra-spills.c: Likewise.
23109         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23110         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23111         stmt.h varasm.h wide-int.h.
23112         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23113         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23114         varasm.h.
23115         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23116         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23117         statistics.h stmt.h varasm.h wide-int.h.
23118         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23119         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23120         varasm.h wide-int.h.
23121         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23122         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23123         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23124         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23125         statistics.h stmt.h.
23126         * config/tilepro/tilepro.c: Likewise.
23127         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23128         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23129         * config/pdp11/pdp11.c: Likewise.
23130         * config/xtensa/xtensa.c: Likewise.
23131         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23132         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23133         varasm.h.
23134         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23135         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23136         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23137         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23138         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23139         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23140         * rtl-chkp.c: Likewise.
23141         * tree-chkp-opt.c: Likewise.
23142         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23143         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23144         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23145         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23146         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23147         statistics.h stmt.h.
23148         * tree-vect-data-refs.c: Likewise.
23149         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23150         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23151         rtl.h statistics.h stmt.h varasm.h.
23152         * internal-fn.c: Likewise.
23153         * ipa-icf-gimple.c: Likewise.
23154         * lto-section-out.c: Likewise.
23155         * tree-data-ref.c: Likewise.
23156         * tree-nested.c: Likewise.
23157         * tree-outof-ssa.c: Likewise.
23158         * tree-predcom.c: Likewise.
23159         * tree-pretty-print.c: Likewise.
23160         * tree-scalar-evolution.c: Likewise.
23161         * tree-ssa-strlen.c: Likewise.
23162         * tree-vect-loop.c: Likewise.
23163         * tree-vect-patterns.c: Likewise.
23164         * tree-vect-slp.c: Likewise.
23165         * tree-vect-stmts.c: Likewise.
23166         * tsan.c: Likewise.
23167         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23168         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23169         stmt.h.
23170         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23171         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23172         statistics.h stmt.h varasm.h.
23173         * loop-unroll.c: Likewise.
23174         * ubsan.c: Likewise.
23175         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23176         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23177         stmt.h varasm.h.
23178         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23179         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23180         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23181         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23182         statistics.h stmt.h.
23183         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23184         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23185         statistics.h stmt.h varasm.h.
23186         * gimple-match-head.c: Likewise.
23187         * lto-cgraph.c: Likewise.
23188         * lto-section-in.c: Likewise.
23189         * lto-streamer-in.c: Likewise.
23190         * lto-streamer-out.c: Likewise.
23191         * tree-affine.c: Likewise.
23192         * tree-cfg.c: Likewise.
23193         * tree-cfgcleanup.c: Likewise.
23194         * tree-if-conv.c: Likewise.
23195         * tree-into-ssa.c: Likewise.
23196         * tree-ssa-alias.c: Likewise.
23197         * tree-ssa-copyrename.c: Likewise.
23198         * tree-ssa-dse.c: Likewise.
23199         * tree-ssa-forwprop.c: Likewise.
23200         * tree-ssa-live.c: Likewise.
23201         * tree-ssa-math-opts.c: Likewise.
23202         * tree-ssa-pre.c: Likewise.
23203         * tree-ssa-sccvn.c: Likewise.
23204         * tree-tailcall.c: Likewise.
23205         * tree-vect-generic.c: Likewise.
23206         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23207         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23208         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23209         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23210         * varasm.c: Likewise.
23211         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23212         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23213         varasm.h.
23214         * init-regs.c: Likewise.
23215         * ira.c: Likewise.
23216         * omp-low.c: Likewise.
23217         * stack-ptr-mod.c: Likewise.
23218         * tree-ssa-reassoc.c: Likewise.
23219         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23220         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23221         varasm.h.
23222         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23223         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23224         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23225         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23226         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23227         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23228         * tree-ssa-phiopt.c: Likewise.
23229         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23230         fixed-value.h hashtab.h real.h statistics.h stmt.h.
23231         * config/fr30/fr30.c: Likewise.
23232         * config/frv/frv.c: Likewise.
23233         * expr.c: Likewise.
23234         * final.c: Likewise.
23235         * optabs.c: Likewise.
23236         * passes.c: Likewise.
23237         * simplify-rtx.c: Likewise.
23238         * stmt.c: Likewise.
23239         * toplev.c: Likewise.
23240         * var-tracking.c: Likewise.
23241         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23242         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23243         * lower-subreg.c: Likewise.
23244         * postreload-gcse.c: Likewise.
23245         * ree.c: Likewise.
23246         * reginfo.c: Likewise.
23247         * store-motion.c: Likewise.
23248         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23249         fixed-value.h hashtab.h real.h stmt.h varasm.h.
23250         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23251         fixed-value.h hashtab.h statistics.h stmt.h.
23252         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23253         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23254         * except.c: Likewise.
23255         * explow.c: Likewise.
23256         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23257         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23258         varasm.h.
23259         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23260         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23261         * tree-ssa-structalias.c: Likewise.
23262         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23263         fixed-value.h insn-config.h real.h statistics.h.
23264         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23265         fixed-value.h insn-config.h real.h statistics.h stmt.h.
23266         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23267         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23268         * cfgbuild.c: Likewise.
23269         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23270         fixed-value.h real.h rtl.h statistics.h stmt.h.
23271         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23272         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23273         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23274         fixed-value.h real.h statistics.h stmt.h.
23275         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23276         fixed-value.h real.h statistics.h stmt.h varasm.h.
23277         * cprop.c: Likewise.
23278         * modulo-sched.c: Likewise.
23279         * postreload.c: Likewise.
23280         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23281         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23282         statistics.h stmt.h varasm.h.
23283         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23284         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23285         rtl.h statistics.h stmt.h varasm.h.
23286         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23287         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23288         varasm.h.
23289         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23290         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23291         varasm.h.
23292         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23293         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23294         varasm.h.
23295         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23296         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23297         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23298         function.h real.h statistics.h stmt.h varasm.h.
23299         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23300         insn-config.h real.h statistics.h stmt.h.
23301         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23302         statistics.h stmt.h.
23303         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23304         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23305         statistics.h stmt.h varasm.h.
23306         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23307         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23308         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23309         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23310         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23311         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23312         statistics.h stmt.h varasm.h.
23313         * ipa-polymorphic-call.c: Likewise.
23314         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23315         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23316         statistics.h stmt.h.
23317         * config/c6x/c6x.c: Likewise.
23318         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23319         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23320         statistics.h stmt.h varasm.h.
23321         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23322         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23323         stmt.h varasm.h.
23324         * ipa-split.c: Likewise.
23325         * tree-eh.c: Likewise.
23326         * tree-ssa-dce.c: Likewise.
23327         * tree-ssa-loop-niter.c: Likewise.
23328         * tree-vrp.c: Likewise.
23329         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23330         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23331         stmt.h.
23332         * config/nds32/nds32-fp-as-gp.c: Likewise.
23333         * config/nds32/nds32-intrinsic.c: Likewise.
23334         * config/nds32/nds32-isr.c: Likewise.
23335         * config/nds32/nds32-md-auxiliary.c: Likewise.
23336         * config/nds32/nds32-memory-manipulation.c: Likewise.
23337         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23338         * config/nds32/nds32-predicates.c: Likewise.
23339         * config/nds32/nds32.c: Likewise.
23340         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23341         fixed-value.h hashtab.h real.h statistics.h.
23342         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23343         fixed-value.h hashtab.h real.h statistics.h stmt.h.
23344         * config/arm/arm.c: Likewise.
23345         * config/avr/avr.c: Likewise.
23346         * config/bfin/bfin.c: Likewise.
23347         * config/h8300/h8300.c: Likewise.
23348         * config/i386/i386.c: Likewise.
23349         * config/ia64/ia64.c: Likewise.
23350         * config/iq2000/iq2000.c: Likewise.
23351         * config/m32c/m32c.c: Likewise.
23352         * config/m32r/m32r.c: Likewise.
23353         * config/m68k/m68k.c: Likewise.
23354         * config/mcore/mcore.c: Likewise.
23355         * config/mep/mep.c: Likewise.
23356         * config/mips/mips.c: Likewise.
23357         * config/mn10300/mn10300.c: Likewise.
23358         * config/moxie/moxie.c: Likewise.
23359         * config/pa/pa.c: Likewise.
23360         * config/rl78/rl78.c: Likewise.
23361         * config/rx/rx.c: Likewise.
23362         * config/s390/s390.c: Likewise.
23363         * config/sh/sh.c: Likewise.
23364         * config/sparc/sparc.c: Likewise.
23365         * config/spu/spu.c: Likewise.
23366         * config/stormy16/stormy16.c: Likewise.
23367         * config/v850/v850.c: Likewise.
23368         * config/vax/vax.c: Likewise.
23369         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23370         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23371         * config/msp430/msp430.c: Likewise.
23372         * predict.c: Likewise.
23373         * value-prof.c: Likewise.
23374         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23375         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23376         * config/microblaze/microblaze.c: Likewise.
23377         * config/nios2/nios2.c: Likewise.
23378         * config/rs6000/rs6000.c: Likewise.
23379         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23380         insn-config.h real.h rtl.h statistics.h stmt.h.
23381         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23382         insn-config.h real.h statistics.h stmt.h.
23383         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23384         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23385         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23386         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23387         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23388         fixed-value.h real.h statistics.h stmt.h.
23389         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23390         fixed-value.h statistics.h stmt.h.
23391         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23392         stmt.h.
23394 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
23396         * gengtype.c (create_user_defined_type): Workaround
23397         -Wmaybe-uninitialized false positives.
23398         * cse.c (fold_rtx): Likewise.
23399         * loop-invariant.c (gain_for_invariant): Likewise.
23401 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
23403         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23404         set the memory attributes in all cases but clear MEM_EXPR if need be.
23406 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
23408         PR tree-optimization/64434
23409         * cfgexpand.c (reorder_operands): New function.
23410         (expand_gimple_basic_block): Insert call of reorder_operands if
23411         optimized is true.
23413 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
23415         * config/mips/micromips.md (*swp): Remove explicit parallel.
23416         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23417         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23418         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23419         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23420         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23421         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23422         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23423         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23424         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23425         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23426         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23427         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23428         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23429         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23430         (mips_wrdsp): Likewise.
23431         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23432         parallel.
23433         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23434         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23435         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23436         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23437         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23438         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23439         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23440         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23441         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23443 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23445         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23446         (mips_print_operand): Support 'y' to print exact log2 in decimal
23447         of a const_int.
23448         * config/mips/mips.h (ISA_HAS_LSA): New define.
23449         (ISA_HAS_DLSA): Likewise.
23450         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23451         * config/mips/predicates.md (const_immlsa_operand): New predicate.
23453 2015-01-15  Martin Liska  <mliska@suse.cz>
23455         PR target/64377
23456         * optc-save-gen.awk: Add support for array types.
23458 2015-01-15  Richard Biener  <rguenther@suse.de>
23460         PR middle-end/64365
23461         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
23462         for MEM_REF access functions with the same base can never partially
23463         overlap.
23465 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
23467         * common.opt: New option -fstack-protector-explicit.
23468         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
23469         (stack_protect_decl_phase): Handle stack_protect attribute for
23470         explicit stack protection requests.
23471         (expand_used_vars): Similarly.
23472         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
23473         * doc/extend.texi: Add documentation for "stack_protect" attribute.
23474         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
23476 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
23478         PR target/53988
23479         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
23480         reg-reg copies.
23481         (sh_extending_set_of_reg): New struct.
23482         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
23483         sh_remove_reg_dead_or_unused_notes): New Declarations.
23484         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
23485         sh_find_extending_set_of_reg, sh_split_tst_subregs,
23486         sh_extending_set_of_reg::use_as_extended_reg): New functions.
23487         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
23488         convert to insn_and_split and use new function sh_split_tst_subregs.
23490 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
23492         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
23493         option.
23494         (Optimization Options): Move -fuse-ld documentation to...
23495         (Link Options): ...here.
23497 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23499         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
23500         offsets.
23501         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
23502         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
23503         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
23504         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
23505         instead of ZR for the memory operand of LL/SC.
23506         (compare_and_swap_12, sync_add<mode>): Likewise.
23507         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
23508         (sync_new_<optab>_12, sync_nand_12): Likewise.
23509         (sync_old_nand_12, sync_new_nand_12): Likewise.
23510         (sync_sub<mode>, sync_old_add<mode>): Likewise.
23511         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
23512         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
23513         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
23514         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
23515         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
23516         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
23517         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
23518         * doc/md.texi (ZC): Update description.
23520 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23522         * builtins.c (expand_builtin_atomic_exchange): Remove error when
23523         memory model is CONSUME.
23524         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
23525         expand_builtin_atomic_store): Change invalid memory model errors to
23526         warnings.
23527         (expand_builtin_atomic_clear): Change invalid model errors to warnings
23528         and issue warning for CONSUME.
23530 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
23532         * lto-cgraph: Update function comments for
23533         lto_symtab_encoder_encode_*.
23535 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23537         * Makefile.in (site.exp): Do not set ENABLE_LTO.
23539 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
23541         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
23542         * lto-cgraph.c (select_what_to_stream): Remove argument, use
23543         lto_stream_offload_p instead.
23544         * lto-streamer.h (select_what_to_stream): Remove argument.
23545         * passes.c (ipa_write_summaries): Likewise.
23546         * tree-pass.h (ipa_write_summaries): Likewise.
23548 2015-01-14  Richard Biener  <rguenther@suse.de>
23550         PR tree-optimization/59354
23551         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
23552         groups larger than the slp group size as having gaps.
23554 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
23556         PR middle-end/59448
23557         * builtins.c (get_memmodel): Promote consume to acquire always.
23559 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23561         PR target/64386
23562         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
23563         V32HImode.
23565 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23567         PR target/64393
23568         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
23569         Enable AVX512BW.
23570         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
23571         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
23572         AVX512VBMI, as it implies AVX512BW.
23574 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
23576         PR target/64387
23577         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
23578         (vec_unpacks_hi_v16sf): Ditto.
23580 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23582         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
23583         is not available.
23585 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23587         * doc/invoke.texi (mapcs): Mention deprecation.
23588         (mapcs-frame): Likewise.
23590 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23592         PR target/64453
23593         * config/arm/arm.c (callee_saved_reg_p): Define.
23594         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
23595         register is callee saved instead of !call_used_regs[reg].
23596         (thumb1_compute_save_reg_mask): Likewise.
23598 2015-01-14  Hale Wang  <hale.wang@arm.com>
23600         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
23601         Cortex-M7.
23603 2015-01-14  Richard Biener  <rguenther@suse.de>
23605         PR lto/64415
23606         * tree-inline.c (insert_debug_decl_map): Check destination
23607         function MAY_HAVE_DEBUG_STMTS.
23608         (insert_init_debug_bind): Likewise.
23609         (insert_init_stmt): Remove redundant check.
23610         (remap_gimple_stmt): Drop debug stmts if the destination
23611         function has var-tracking assignments disabled.
23613 2015-01-14  Martin Liska  <mliska@suse.cz>
23615         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
23616         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
23618 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23620         PR target/64460
23621         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
23622         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
23624 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
23626         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
23627         level from an ARCH; do not inject the default.
23628         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
23629         MIPS_ISA_LEVEL_SPEC.
23630         (MIPS_ISA_NAN2008_SPEC): Update comment.
23631         (BASE_DRIVER_SELF_SPECS): Likewise.
23632         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
23633         MIPS_DEFAULT_ISA_LEVEL_SPEC.
23634         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
23635         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
23636         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
23638 2015-01-14  Richard Biener  <rguenther@suse.de>
23640         PR tree-optimization/64493
23641         PR tree-optimization/64495
23642         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
23643         assign the proper vectorized PHI to the inner loop exit PHIs.
23645 2015-01-14  Joey Ye  <joey.ye@arm.com>
23647         * config/arm/arm.c (arm_compute_save_reg_mask):
23648         Do not save lr in case of tail call.
23649         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
23651 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
23653         * tree-vrp.c (check_array_ref): Emit more warnings
23654         for warn_array_bounds >= 2.
23655         * common.opt: New option -Warray-bounds=.
23656         * doc/invoke.texi: Document -Warray-bounds=.
23658 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
23660         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
23661         (mforbid-fp-as-gp): Remove.
23662         (mex9): Remove.
23663         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
23664         (nds32_symbol_load_store_p): Remove.
23665         (nds32_fp_as_gp_check_available): Clean up implementation.
23666         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
23667         cases.
23668         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
23669         fp-as-gp and ex9 cases.
23671 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23673         * tree-profile.c (init_ic_make_global_vars): Drop workaround
23674         for bintuils bug 14342.
23675         (init_ic_make_global_vars): Likewise.
23676         (gimple_init_edge_profiler): Likewise.
23677         (gimple_gen_ic_func_profiler): Likewise.
23679 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23681         * ipa-inline.c (inline_small_functions): Swap the operands in
23682         enum.
23684 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23686         PR ipa/64481
23687         * ipa-inline-analysis.c (node_growth_cache): Remove.
23688         (initialize_growth_caches): Do not initialize it.
23689         (free_growth_caches): Do not free it.
23690         (do_estimate_growth): Rename to ...
23691         (estimate_growth): ... this one; drop growth cache code.
23692         (growth_likely_positive): Always go the heuristics way.
23693         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
23694         (reset_edge_caches): Do not reset node growth.
23695         (heap_edge_removal_hook): Do not maintain cache.
23696         (inline_small_functions): Likewise; strenghten sanity check.
23697         (ipa_inline): Do not maintain caches.
23698         * ipa-inline.h (node_growth_cache): Remove.
23699         (do_estimate_growth): Remove to ...
23700         (estimate_growth): this one; remove inline version.
23701         (reset_node_growth_cache): Remove.
23703 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
23705         PR ipa/64565
23706         * ipa-inline.c (inline_small_functions): Update callee keys after
23707         resolving speculation
23708         (inline_small_functions): Always check monotonicity of the queue.
23710 2015-01-13  Marek Polacek  <polacek@redhat.com>
23712         PR middle-end/64391
23713         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
23715 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
23717         PR rtl-optimization/64286
23718         * ree.c (combine_reaching_defs): Move part of comment earlier,
23719         remove !SCALAR_INT_MODE_P check.
23720         (add_removable_extension): Don't add vector mode
23721         extensions if all uses of the source register aren't the same
23722         vector extensions.
23724 2015-01-13  Renlin Li  <renlin.li@arm.com>
23726         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
23727         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
23729 2015-01-13  Martin Liska  <mliska@suse.cz>
23731         * ipa-icf.c (sem_function::equals_private): Call new functions
23732         cl_target_option_print_diff and cl_optimization_print_diff.
23733         * optc-save-gen.awk (cl_target_option_print_diff): New function.
23734         (cl_optimization_print_diff): Likewise.
23735         * opth-gen.awk: Likewise.
23737 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
23739         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
23740         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
23741         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
23742         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
23743         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
23744         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
23746 2015-01-13  Andrew Pinski  <apinski@cavium.com>
23748         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
23749         instead of src mode.
23751 2015-01-13  Richard Biener  <rguenther@suse.de>
23753         PR lto/64373
23754         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
23755         DECL_CONTEXT.
23757 2015-01-13  Andrew Pinski  <apinski@cavium.com>
23759         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
23760         volatile mems.
23761         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
23763 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
23765         PR middle-end/63974
23766         * cfgexpand.c (expand_computed_goto): Don't call
23767         convert_memory_address here.
23769 2015-01-13  Richard Biener  <rguenther@suse.de>
23771         PR tree-optimization/64406
23772         * tree-loop-distibution.c (pass_loop_distribution::execute):
23773         Reset the SCEV hashtable if we distributed anything.
23775 2015-01-13  Richard Biener  <rguenther@suse.de>
23777         PR tree-optimization/64404
23778         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
23779         SLP types for CSEd loads.
23781 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23783         PR tree-optimization/64436
23784         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
23785         merge of two symbolic numbers for a bitwise OR to ...
23786         (perform_symbolic_merge): This. Also fix computation of the range and
23787         end of the symbolic number corresponding to the result of a bitwise OR.
23789 2015-01-13  Richard Biener  <rguenther@suse.de>
23791         PR tree-optimization/64568
23792         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
23793         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
23795 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23797         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
23798         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
23800 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23802         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
23803         target-specific symbol_ref flag.
23804         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
23805         resides in rodata section.
23806         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
23807         (nds32_encode_section_info): New function.
23809 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23811         * config/nds32/nds32.md (call): Use pseudo instruction bal which
23812         clobbers TA_REGNUM if large code model is specified.
23813         (call_register): Likewise.
23814         (call_immediate): Likewise.
23815         (call_value): Likewise.
23816         (call_value_register): Likewise.
23817         (call_value_immediate): Likewise.
23819 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23821         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
23822         (TARGET_CMODEL_MEDIUM): New macro.
23823         (TARGET_CMODEL_LARGE): New macro.
23824         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
23825         code model setting in assembly code.
23827 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23829         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23830         Remove MASK_GP_DIRECT flag.
23831         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
23832         one of the multilib default options.
23833         * config/nds32/nds32.opt (mgp-direct): Remove.
23834         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
23835         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
23837 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
23839         * config/nds32/nds32.opt (mcmodel): Add new option.
23840         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
23841         to describe code model.
23843 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
23845         PR target/64479
23846         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
23848 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
23850         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
23851         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23852         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
23853         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
23854         __builtin_sh_set_fpscr.
23856 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23858         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
23859         after a funtion name just to indicate it is a function.
23860         ([-fsanitize-undefined-trap-on-error]): Likewise.
23861         ([-fdbg-cnt=]): Likewise.
23862         ([-mmemcpy]): Likewise.
23863         ([-mflush-func]): Likewise.
23864         ([-msynci]): Likewise.
23866 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
23868         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
23869         example.
23871 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
23873         PR tree-optimization/64563
23874         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
23875         instead of != VR_VARYING.
23877         PR target/64513
23878         * config/i386/i386.c (ix86_expand_prologue): Add
23879         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
23881         PR tree-optimization/64454
23882         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
23883         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
23884         for signed or [0, op1 - 1] for unsigned modulo.
23885         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
23886         even if op1 does not satisfy integer_pow2p.
23888         PR other/64370
23889         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
23891 2015-01-12  Jeff Law  <law@redhat.com>
23893         PR target/64461
23894         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
23895         (trunchiqi2, truncsihi2): Similarly.
23897         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
23898         rather than calling F.
23900 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23902         * tsan.c (instrument_expr): Use force_gimple_operand.
23903         Use may_be_nonaddressable_p instead of is_gimple_addressable.
23905 2015-01-12  Richard Biener  <rguenther@suse.de>
23907         PR tree-optimization/64530
23908         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
23909         back dr1.
23911 2015-01-12  Richard Biener  <rguenther@suse.de>
23913         PR middle-end/64357
23914         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
23915         latches properly.
23917 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23919         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
23920         Cortex-A17 tuning parameters.
23921         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
23923 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23925         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
23926         * config/arm/arm.c (arm_macro_fusion_p): New function.
23927         (arm_macro_fusion_pair_p): Likewise.
23928         (TARGET_SCHED_MACRO_FUSION_P): Define.
23929         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
23930         (ARM_FUSE_NOTHING): Likewise.
23931         (ARM_FUSE_MOVW_MOVT): Likewise.
23932         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
23933         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
23934         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
23935         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
23936         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
23937         arm_cortex_a5_tune): Specify fuseable_ops value.
23939 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
23941         PR bootstrap/64561
23942         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
23943         test for PIE with copy reloc.
23944         * configure: Regenerated.
23946 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23948         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
23949         in gen_rtx_REG.
23950         (arm_tls_descseq_addr): Likewise.
23951         (arm_gen_movmemqi): Likewise.
23952         (arm_expand_epilogue_apcs_frame): Likewise.
23953         (arm_expand_epilogue): Likewise.
23954         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
23955         in gen_rtx_REG.
23957 2015-01-12  Martin Liska  <mliska@suse.cz>
23959         PR ipa/64550
23960         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
23961         volatility for correct operands.
23963 2015-01-12  Martin Liska  <mliska@suse.cz>
23965         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
23966         indication that a function is not leaf.
23967         (sem_function::compare_polymorphic_p): Likewise.
23969 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23971         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
23972         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
23973         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
23974         fold-const.h, tree-check.h.
23976 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
23978         PR ipa/63967
23979         PR ipa/64425
23980         * ipa-inline.c (compute_uninlined_call_time,
23981         compute_inlined_call_time): Use counts for extra precision when
23982         needed possible.
23983         (big_speedup_p): Fix formating.
23984         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
23985         (relative_time_benefit): Remove.
23986         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
23987         merge guessed and read profile paths.
23988         (inline_small_functions): Count only !optimize_size functions into
23989         initial size; be more lax about sanity check when profile is used;
23990         be sure to update inlined function profile when profile is read.
23992 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
23994         PR ipa/63470
23995         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
23996         cost when edge becomes direct.
23997         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
23998         is resolved or when introducing new speculation.
24000 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
24002         PR ipa/64551
24003         PR ipa/64552
24004         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24005         '||' to fix typo issue.
24007         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24008         accept and return NULL.
24010 2015-01-12  Martin Liska  <mliska@suse.cz>
24012         * cgraph.c (cgraph_edge::remove_callee): Move function to header
24013         file for being inlined.
24014         (cgraph_set_edge_callee): Delete.
24015         (cgraph_edge::redirect_callee): Move function to header file
24016         for being inlined.
24017         (cgraph_edge::make_direct): Use new function.
24018         (cgraph_edge::dump_edge_flags): New function created from
24019         static dump_edge_flags function.
24020         (cgraph_node::dump): Use new function.
24021         (cgraph_edge::verify_count_and_frequency): New function created
24022         from verify_edge_count_and_frequency.
24023         (cgraph_edge::verify_corresponds_to_fndecl): New function created
24024         from verify_edge_corresponds_to_fndecl.
24025         (verify_edge_corresponds_to_fndecl): Delete.
24026         (cgraph_node::verify_node): Use new function.
24027         * cgraph.h (cgraph_edge::set_callee): New function.
24028         (cgraph_edge::dump_edge_flags): Likewise.
24029         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24031 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
24033         * ipa-utils.c (estimate_function_body_sizes): Do not
24034         free node params when called late with early=true.
24036 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
24038         * doc/md.texi (Instruction Patterns): Rewrite text for
24039         clarity.
24040         (Example): Likewise.
24042 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
24044         * doc/invoke.texi (Option Summary): Break long lines.
24045         [(-fdiagnostics-color)]: Put long literal in @smallexample
24046         instead of inline.
24047         [(-fsanitize-recover)]: Likewise.
24048         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24049         [(-ffast-math)]: Likewise.
24050         [(--param max-inline-insns-recursive)]: Likewise.
24051         [(--param max-inline-recursive-depth)]: Likewise.
24052         [(-mno-text-section-literals)]: Likewise.
24054 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
24056         * doc/install.texi: Update for libgomp being renamed from "GNU
24057         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24058         Runtime Library".
24059         * doc/sourcebuild.texi: Likewise.
24061 2015-01-10  Anthony Green  <green@moxielogic.com>
24063         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24064         mul.x availability for moxiebox configuration.
24066 2015-01-09  Anthony Green  <green@moxielogic.com>
24068         * config/moxie/moxie.md: Tabify assembly output.
24070 2015-01-09  Anthony Green  <green@moxielogic.com>
24072         * config/moxie/moxie.md (CC_REG): Correct register definition.
24074 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24076         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24077         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
24078         of log files.
24080 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24082         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24084 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
24085             Jakub Jelinek  <jakub@redhat.com>
24087         PR middle-end/64412
24088         * lto-streamer.h (lto_stream_offload_p): New declaration.
24089         * lto-streamer.c (lto_stream_offload_p): New variable.
24090         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24091         at the same time as section_name_prefix.
24092         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24093         if lto_stream_offload_p.
24094         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24095         stream TREE_TARGET_OPTION if lto_stream_offload_p.
24096         (write_ts_function_decl_tree_pointers): Don't
24097         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24098         * tree-streamer-in.c (unpack_value_fields): Don't stream
24099         TREE_TARGET_OPTION in if ACCEL_COMPILER.
24100         (lto_input_ts_function_decl_tree_pointers): Don't stream
24101         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24102         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24103         instead of section_name_prefix string comparisons.
24105 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
24107         PR rtl-optimization/64536
24108         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24109         tablejumps.
24111 2015-01-09  Michael Collison  <michael.collison@linaro.org>
24113         PR tree-optimization/64322
24114         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24115         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24117 2015-01-09  Tom de Vries  <tom@codesourcery.com>
24119         PR rtl-optimization/64539
24120         * regcprop.c (kill_clobbered_values): Factor out of ...
24121         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
24122         instead of note_stores with kill_clobbered_value.
24124 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24126          * ginclude/unwind-arm-common.h: Revert previous commit.
24128 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
24130         * config.gcc (arm*-*-freebsd*): New configuration.
24131         * config/arm/freebsd.h: New file.
24132         * config.host: Add extra components for arm*-*-freebsd*.
24133         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24134         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24136 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24138         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24139         for -mcpu=e6500.
24140         * config/rs6000/t-rtems: Add e6500 multilibs.
24142 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24144         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24145         MPC8540.
24147 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24149         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24150         MULTILIB_EXCEPTIONS.
24152 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24154         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24155         MULTILIB_EXCEPTIONS.
24157 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24159         * config/arm/t-rtems-eabi: Rename to...
24160         * config/arm/t-rtems: ...this.
24161         * config/arm/rtems-eabi.h: Rename to...
24162         * config/arm/rtems.h: ...this.
24163         * config.gcc (arm*-*-rtems*): Reflect changes above.
24165 2015-01-09  Richard Biener  <rguenther@suse.de>
24167         PR tree-optimization/64410
24168         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24169         on the LHS.
24170         (execute_update_addresses_taken): Deal with that.
24171         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24172         loads/stores for complex variables.
24174 2015-01-09  Martin Liska  <mliska@suse.cz>
24176         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24177         name comparison.
24178         (func_checker::compare_memory_operand): New function.
24179         (func_checker::compare_operand): Split case to newly
24180         added functions.
24181         (func_checker::compare_cst_or_decl): New function.
24182         (func_checker::compare_gimple_call): Identify
24183         memory operands.
24184         (func_checker::compare_gimple_assign): Likewise.
24185         * ipa-icf-gimple.h: New function.
24187 2015-01-09  Martin Liska  <mliska@suse.cz>
24189         PR ipa/64503
24190         * sreal.c (sreal::dump): Change unsigned format to signed for
24191         m_exp value.
24192         (sreal::to_double): Replace exp2 with scalbln.
24194 2015-01-09  Martin Liska  <mliska@suse.cz>
24196         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24197         * ipa-icf.c (sem_function::equals_private): Add support for target and
24198         (sem_item_optimizer::merge_classes): Remove redundant function
24199         optimization flags comparison.
24200         * tree.h (target_opts_for_fn): New function.
24202 2015-01-09  Tom de Vries  <tom@codesourcery.com>
24204         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24206 2015-01-09  Kito Cheng  <kito@0xlab.org>
24208         PR rtl-optimization/64348
24209         * lra-constraints.c (split_reg): Fix caller-save store/restore
24210         instruction generation.
24212 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
24214         PR gcov-profile/61790
24215         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24216         long long.  Fallback to int64_t if host doesn't have long long and
24217         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
24219 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24221         PR tree-optimization/63989
24222         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24223         from 1000 to 10000.
24224         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24225         (get_stridx): If we don't have a record for certain SSA_NAME,
24226         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24227         constant offset, call get_stridx_plus_constant.
24228         (get_stridx_plus_constant): New function.
24229         (zero_length_string): Don't use get_stridx here.
24231         PR target/55023
24232         PR middle-end/64388
24233         * dse.c (struct insn_info): Mention frame_read set also
24234         before reload for tail calls on some targets.
24235         (scan_insn): Revert 2014-12-22 change.  Set frame_read
24236         also before reload for tail calls if
24237         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
24238         instead of add_non_frame_wild_read for non-const/memset
24239         tail calls after reload.
24241 2015-01-08  Jason Merrill  <jason@redhat.com>
24243         * ubsan.c (do_ubsan_in_current_function): New.
24244         (pass_ubsan::gate): Use it.
24245         * ubsan.h: Declare it.
24246         * convert.c (convert_to_integer): Use it.
24248 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24250         PR target/64338
24251         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24252         compare_code when it is unconditionally overwritten afterwards.
24253         Use ix86_reverse_condition instead of reverse_condition.  Don't
24254         change code if *reverse_condition* returned UNKNOWN and don't
24255         swap ct/cf and negate diff in that case.
24257 2015-01-08  Mike Stump  <mikestump@comcast.net>
24259         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24260         (pass_tsan_O0::gate): Likewise.
24261         * extend.texi (Function Attributes): Add no_sanitize_thread
24262         documentation.
24264 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
24266         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24267         for registering builtins.
24268         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24269         add -fopenmp to the argv_obstack used when invoking
24270         compile_for_target.
24272         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24273         add "-m32" or "-m64" to argv_obstack.
24274         (generate_host_descr_file): Likewise, when invoking host_compiler.
24275         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24276         ld.
24278 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
24280         * config/sh/sh-mem.cc: Use constant as second operand when emitting
24281         tstsi_t insns.
24283 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
24285         PR target/55212
24286         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24287         constant load if constant operand fits into I08.
24289 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
24291         PR sanitizer/64336
24292         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24293         and TREE_THIS_VOLATILE for MEM_REFs.
24294         (build5_stat): Fix up initialization of TREE_READONLY and
24295         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24297 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
24299         PR target/64533
24300         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24301         of r for the second alternative of the destination operand.
24303 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
24305         PR target/36557
24306         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24308 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24310         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24311         keywords.
24312         ([-fivar-visibility], [-fvisibility]): Likewise.
24314 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
24316         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24317         the file where @code, @command, etc is more appropriate.
24319 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
24321         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24322         of -mrecip= documentation.
24324 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24326         PR target/64505
24327         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24328         correct reload handler if -m32 -mpowerpc64 is used.
24330 2015-01-06  Tom de Vries  <tom@codesourcery.com>
24332         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24334 2015-01-08  Christian Bruel  <christian.bruel@st.com>
24336         PR target/64507
24337         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24339 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24341         PR tree-optimization/63259
24342         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24343         if optab exists for 16bit byteswap.
24345 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
24347         * opts.c (common_handle_option): Add support for
24348         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24349         * doc/invoke.texi: Document -fno-sanitize=all,
24350         -f{,no-}sanitize-recover=all.  Document that
24351         -fsanitize=float-cast-overflow is not enabled
24352         by -fsanitize=undefined.  Fix up documentation
24353         of -f{,no-}sanitize-recover.
24355 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
24357         * config.gcc: Add Visium support.
24358         * configure.ac: Likewise.
24359         * configure: Regenerate.
24360         * doc/extend.texi (interrupt attribute): Add Visium.
24361         * doc/invoke.texi: Document Visium options.
24362         * doc/install.texi: Document Visium target.
24363         * doc/md.texi: Document Visium constraints.
24364         * common/config/visium: New directory.
24365         * config/visium: Likewise.
24367 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
24369         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24370         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24372 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
24374         * combine.c (combine_validate_cost): Do not count the cost of a
24375         split I2 twice.  Do not display it twice in the dump, either.
24377 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24379         Revert parts of r219199.
24380         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24381         <inttypes.h>.
24382         ([-Wtraditional]): Restore markup on <limits.h>.
24384 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
24386         PR c++/31397
24387         * doc/invoke.texi: Document -Wsuggest-override.
24389 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
24391         PR rtl-optimization/64287
24392         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24393         (process_options): Disable flag_ipa_ra if profiling.
24395 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24397         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24399 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
24401         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24402         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24403         put under #if TARGET_LOOPS guard.
24405 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
24407         * config/i386/i386.c (output_387_binary_op): Use std::swap.
24409 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
24411         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24412         * rtl.h (refers_to_regno_p): Add overload.
24413         * cse.c: Use it.
24414         * bt-load.c: Likewise.
24415         * combine.c: Likewise.
24416         * df-scan.c: Likewise.
24417         * sched-deps.c: Likewise.
24418         * config/s390/s390.c: Likewise.
24419         * config/m32r/m32r.c: Likewise.
24420         * config/rs6000/spe.md: Likewise.
24421         * config/rs6000/rs6000.c: Likewise.
24422         * config/pa/pa.c: Likewise.
24423         * config/stormy16/stormy16.c: Likewise.
24424         * config/cris/cris.c: Likewise.
24425         * config/arc/arc.md: Likewise.
24426         * config/arc/arc.c: Likewise.
24427         * config/sh/sh.md: Likewise.
24428         * config/sh/sh.c: Likewise.
24429         * config/frv/frv.c: Likewise.
24431 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24433         PR sanitizer/64265
24434         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24435         call as cleanup of the whole body.
24436         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24437         * tsan.c (replace_func_exit): New function.
24438         (instrument_func_exit): Moved earlier.
24439         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24440         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24441         been found.
24442         (tsan_pass): Don't call instrument_func_exit.
24443         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24444         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24445         inlining.
24447         PR sanitizer/64344
24448         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24449         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24450         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
24451         if the result is integer_zerop, return NULL_TREE.
24452         * convert.c (convert_to_integer): Pass expr as ARG.
24454         PR tree-optimization/64465
24455         * tree-inline.c (redirect_all_calls): During inlining
24456         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
24457         changed the stmt to a non-throwing call.
24459 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
24461         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
24462         etc markup throughout the file.
24464 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24466         Enable experimental TSAN support for Ada.
24467         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
24469 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24471         PR tree-optimization/64494
24472         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
24473         clear SSA_NAME_ANTI_RANGE_P flag.
24475 2015-01-05  Marek Polacek  <polacek@redhat.com>
24477         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
24479 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
24481         Update copyright years.
24483         * gcc.c (process_command): Update copyright notice dates.
24484         * gcov-dump.c: Ditto.
24485         * gcov.c: Ditto.
24486         * doc/cpp.texi: Bump @copying's copyright year.
24487         * doc/cppinternals.texi: Ditto.
24488         * doc/gcc.texi: Ditto.
24489         * doc/gccint.texi: Ditto.
24490         * doc/gcov.texi: Ditto.
24491         * doc/install.texi: Ditto.
24492         * doc/invoke.texi: Ditto.
24494         * auto-profile.c, auto-profile.h: Fix up Copyright line.
24496 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
24498         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
24499         verb tense, etc.
24500         ([-fvtable-verify], [-fvtv-debug]): Likewise.
24501         ([-Wabi]): Likewise.
24502         ([-fmessage-length]): Likewise.
24503         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
24504         ([-Wno-discarded-qualifiers]): Likewise.
24505         ([-Wnodiscarded-array-qualifiers]): Likewise.
24506         ([-Wno-virtual-move-assign]): Likewise.
24507         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
24508         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
24509         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
24510         ([-fsanitize-undefined-trap-on-error]): Likewise.
24511         ([-floop-interchange]): Likewise.
24512         ([-ftree-coalesce-inlined-vars]): Likewise.
24513         ([-fvect-cost-model]): Likewise.
24514         ([-flto]): Likewise.
24515         ([--param]): Likewise.
24516         (Spec Files): Likewise.
24517         ([-mstrict-align]): Likewise.
24518         ([-mfix-cortex-a53-835769]): Likewise.
24519         ([-march], [-mtune]): Likewise.
24520         ([-mpic-register]): Likewise.
24521         ([-munaligned-access]): Likewise.
24522         ([-msp8]): Likewise.
24523         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
24524         (AVR Built-in Macros): Likewise.
24525         ([-mpreferred-stack-boundary]): Likewise.
24526         ([-mtune-crtl]): Likewise.
24527         ([-mashf]): Likewise.
24528         ([-mmcu=]): Likewise.
24529         ([-minrt]): Likewise.
24530         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
24531         ([-mupper-regs]): Likewise.
24532         ([-matomic-model]): Likewise.
24533         ([-mdiv]): Likewise.
24534         ([-mzdcbranch]): Likewise.
24535         ([-mdisable-callt]): Likewise.
24536         ([-msoft-float]): Likewise.
24537         ([-m8byte-align]): Likewise.
24538         ([-fstack-reuse]): Likewise.
24540 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24542         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
24543         Fix markup, light copy-editing.
24544         ([-fauto-profile]): Rewrite to fix formatting and content
24545         problems.
24547 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24549         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
24550         Copy-edit description.
24551         ([-fisolate-erroneous-paths-attribute]): Likewise.
24552         * common.opt (fisolate-erroneous-paths-dereference):
24553         Copy-edit description.
24554         (fisolate-erroneous-paths-attribute): Likewise.
24556 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24558         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
24559         tidy grammar.
24561 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
24563         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
24564         ([-fvtv-debug]): Likewise.
24565         ([-Wc++-compat]): Likewise.
24566         ([-Wc++11-compat]): Likewise.
24567         ([-Wc++14-compat]): Likewise.
24568         ([-Wno-sized-deallocation]): Likewise.
24569         ([-femit-class-debug-always]): Likewise.
24570         ([-femit-struct-debug-detailed]): Likewise.
24571         ([-fno-keep-inline-dllexport]): Likewise.
24572         ([-fira-algorithm]): Likewise.
24573         ([-fira-region]): Likewise.
24574         ([-flra-remat]): Likewise.
24575         ([-fipa-ra]): Likewise.
24576         ([-fhoist-adjacent-loads]): Likewise.
24577         ([-fisolate-erroneous-paths-dereference]): Likewise.
24578         ([-fisolate-erroneous-paths-attribute]): Likewise.
24579         ([-ftree-switch-conversion]): Likewise.
24580         ([-ftree-tail-merge]): Likewise.
24581         ([-ftree-loop-if-convert]): Likewise.
24582         ([-ftree-loop-if-convert-stores]): Likewise.
24583         ([-ftree-loop-distribution]): Likewise.
24584         ([-ftree-loop-distribute-patterns]): Likewise.
24585         ([-flto-compression-level]): Likewise.
24586         ([-flto-report]): Likewise.
24587         ([-flto-report-wpa]): Likewise.
24588         ([-fuse-linker-plugin]): Likewise.
24589         ([-mfix-cortex-a53-835769]): Likewise.
24590         ([-mno-fix-cortex-a53-835769]): Likewise.
24591         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
24592         explicit listing; add a note to the discussion indicating they
24593         exist.  Reorder table to group similar options.  Add missing
24594         @opindex entries.  Add @need commands throughout the table to
24595         allow it to be split across multiple pages.
24596         ([-m8bit-idiv]): Fix @opindex.
24597         ([-mavx256-split-unaligned-load]): Likewise.
24598         ([-mavx256-split-unaligned-store]): Likewise.
24599         ([-mstack-protector-guard]): Likewise.
24600         ([-mcpu=]): Likewise.
24601         ([-mcpu]): Likewise.
24602         ([-mpointer-size=]): Likewise.
24604 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
24606         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
24607         instead of `m' constraint.  Likewise for unnamed movb comparison
24608         patterns using reg_before_reload_operand predicate.
24609         * config/pa/predicates.md (reg_before_reload_operand): Tighten
24610         predicate to reject register index and LO_SUM DLT memory forms
24611         after reload.
24613 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24615         * doc/invoke.texi (Option Summary): Fix spelling of
24616         -fdevirtualize-at-ltrans.
24617         ([-fdevirtualize]): Fix markup.
24618         ([-fdevirtualize-speculatively]): Fix typo.
24619         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
24620         implementor-speaky.
24621         * common.opt (fdevirtualize-at-ltrans): Likewise.
24622         * ipa-devirt.c: Fix typos in comments throughout the file.
24623         (ipa_devirt): Fix typos in format strings for dump output.
24625 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
24627         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
24628         discussion of defaults, light copy-editing.
24630 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24632         * tsan.c (instrument_expr): corrected previous checkin.
24634 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24636         Instrument bit field and unaligned accesses for TSAN.
24637         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
24638         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
24639         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
24640         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
24641         unaligned memory regions.
24643 2015-01-01  Anthony Green  <green@moxielogic.com>
24645         * config/moxie/predicates.md (moxie_general_movsrc_operand):
24646         Restrict move source register offsets to 16 bits.
24648 Copyright (C) 2015 Free Software Foundation, Inc.
24650 Copying and distribution of this file, with or without modification,
24651 are permitted in any medium without royalty provided the copyright
24652 notice and this notice are preserved.