PR sanitizer/65280
[official-gcc.git] / gcc / ChangeLog
blobf71958d88664cc945d61971b9ed482f73aa42da8
1 2015-03-07  Marek Polacek  <polacek@redhat.com>
2             Martin Uecker  <uecker@eecs.berkeley.edu>
4         PR sanitizer/65280
5         * doc/invoke.texi: Update description of -fsanitize=bounds.
7 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
9         * tree-ssa-phiopt.c (neg_replacement): Remove.
10         (tree_ssa_phiopt_worker): Remove negate optimization.
12 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
14         PR ipa/65302
15         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
17 2015-03-06  Richard Biener  <rguenther@suse.de>
19         PR middle-end/64928
20         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21         and liveout_obstack members.
22         (calculate_live_on_exit): Remove.
23         (calculate_live_ranges): Change declaration.
24         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
25         (new_tree_live_info): Adjust.
26         (calculate_live_ranges): Delete livein when not wanted.
27         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
28         Deal with partly deleted live info.
29         (loe_visit_block): Remove temporary bitmap by using
30         bitmap_ior_and_compl_into.
31         (live_worklist): Adjust accordingly.
32         (calculate_live_on_exit): Make static.
33         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
34         we do not need livein.
36 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
38         * real.c (real_from_string): Fix typo in assertion.
40 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
42         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
43         the patch.
45 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
47         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
49 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
51         PR target/64342
52         * lra-assigns.c (find_hard_regno_for): Rename to
53         find_hard_regno_for_1.  Add a new parameter.
54         (find_hard_regno_for): New function using find_hard_regno_for_1.
56 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
58         PR rtl-optimization/65067
59         * expmed.c (store_bit_field, extract_bit_field): Reworked the
60         strict volatile bitfield handling.
62 2015-03-05  Martin Liska  <mliska@suse.cz>
64         PR ipa/65318
65         * ipa-icf.c (sem_variable::equals): Compare variables types.
67 2015-03-05  Richard Henderson  <rth@redhat.com>
69         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
70         correctly check weak symbol binding.
72 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
74         PR middle-end/65315
75         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
76         needed alignment.
78 2015-03-05  Martin Liska  <mliska@suse.cz>
80         * ipa-inline.c (inline_small_functions): Set default value to
81         prevent warning during bootstrap.
82         * tree.h: Add pragma guard that ignores false positives during
83         bootstrap.
85 2015-03-05  Richard Biener  <rguenther@suse.de>
87         PR tree-optimization/65310
88         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
89         Properly preserve alignment of the base of the access.
91 2015-03-05  Richard Biener  <rguenther@suse.de>
93         PR ipa/65270
94         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
95         Compare dependence info.
97 2015-03-05  Richard Biener  <rguenther@suse.de>
99         PR middle-end/65233
100         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
101         tree-into-ssa.h.
102         (walk_ssa_copies): Revert last chage.  Instead do not walk
103         SSA names registered for SSA update.
105 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
107         PR ipa/65270
108         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
109         vtable references for their containing type.
110         (sem_function::equals_wpa): Compare TYPE_RESTRICT
111         and type attributes.
113 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
115         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
116         before negating it.
117         * stor-layout.c (finalize_record_size): Revert latest change.
119 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
121         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
123 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
125         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
126         for correct comdat handling.
127         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
128         Likewise.
129         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
130         (used_from_object_file_p_worker): Remove.
131         (cgraph_node::only_called_directly_or_alised): Add
132         used_from_object_file_p.
133         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
134         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
135         can_remove_if_no_direct_calls_and_refs_p.
137 2015-03-04  Nick Clifton  <nickc@redhat.com>
139         * config/rl78/rl78.h (enum reg_class): Remove real registers from
140         General register class.
141         * config/rl78/rl78-real.md: Replace general register constraints
142         with real+virtual register constraints.
144 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
146         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
147         from checking for -mhtm option.
149 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
151         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
152         (struct ipa_sra_check_caller_data): Add has_thunk field.
153         (ipa_sra_check_caller): Check for thunk.
154         (ipa_sra_preliminary_function_checks): Give up on function with
155         thunks.
156         (ipa_early_sra): Use call_for_symbol_and_aliases.
158 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
160         PR target/65249
161         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
162         called for __stack_chk_guard symbol.
164 2015-03-03  DJ Delorie  <dj@redhat.com>
166         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
167         inc/dec.
168         (*addhi3_real): Likewise.
169         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
170         pattern to match incrementing memory.
171         * config/rl78/predicates.md (rl78_1_2_operand): New.
172         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
173         it's the same and only mem.
174         (rl78_alloc_physical_registers_op2): If there's effectively only
175         one MEM, transcode it into HL.
176         (rl78_far_p): Reject addresses that aren't legitimate.
178 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
180         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
181         negating it.
183         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
185 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
187         Implement call0 ABI for xtensa
188         * config/xtensa/constraints.md ("a" constraint): Include stack
189         pointer in case of call0 ABI.
190         ("q" constraint): Make empty in case of call0 ABI.
191         ("D" constraint): Include stack pointer in case of call0 ABI.
192         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
193         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
194         prototypes.
195         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
196         variable.
197         (xtensa_regno_to_class): Make it a local variable in the
198         function xtensa_regno_to_class.
199         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
200         macro, function prototype and implementation.
201         (reg_nonleaf_alloc_order): Make it a local variable in the
202         function order_regs_for_local_alloc.
203         (xtensa_conditional_register_usage): New function.
204         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
205         (xtensa_valid_move): Allow direct moves to stack pointer
206         register in call0 ABI.
207         (xtensa_setup_frame_addresses): Only spill register windows in
208         windowed ABI.
209         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
210         call0 ABI respectively.
211         (xtensa_function_arg_1): Only mark a7 register for copying in
212         windowed ABI.
213         (xtensa_call_save_reg): New function.
214         (compute_frame_size): Add space for callee saved register
215         storage to the frame size in call0 ABI.
216         (xtensa_expand_prologue): Generate code to set up stack frame
217         and save callee-saved registers in call0 ABI.
218         (xtensa_expand_epilogue): New function.
219         (xtensa_set_return_address): New function.
220         (xtensa_return_addr): Calculate return address in call0 ABI.
221         (xtensa_builtin_saveregs): Only mark a7 register for copying and
222         emit copying code in windowed ABI.
223         (order_regs_for_local_alloc): Add preferred register allocation
224         order for non-leaf function in call0 ABI.
225         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
226         (xtensa_asm_trampoline_template): Add trampoline generation for
227         call0 ABI.
228         (xtensa_trampoline_init): Add trampoline initialization for
229         call0 ABI.
230         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
231         functions.
232         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
233         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
234         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
235         ABI call-used registers.
236         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
237         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
238         call0 ABI.
239         (REG_CLASS_CONTENTS): Include all registers into the preferred
240         reload registers set, adjust the set in the
241         xtensa_conditional_register_usage.
242         (xtensa_regno_to_class): Drop variable declaration.
243         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
244         function.
245         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
246         respectively.
247         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
248         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
249         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
250         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
251         location in call0 ABI.
252         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
253         stack adjustment size when handling exception.
254         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
255         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
256         definitions.
257         ("return" pattern): Generate ret.n/ret in call0 ABI.
258         ("epilogue" pattern): Expand epilogue.
259         ("nonlocal_goto" pattern): Use default in call0 ABI.
260         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
261         emit eh_set_a0_* depending on ABI.
262         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
263         ("eh_set_a0_call0", "blockage"): New patterns.
265 2015-03-03  Martin Liska  <mliska@suse.cz>
267         PR ipa/65287
268         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
270 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
272         PR 65138/target
273         * config/rs6000/rs6000-tables.opt: Regenerate table.
275 2015-03-03  Renlin Li  <renlin.li@arm.com>
277         * doc/md.texi (@item ^): Change ? into ^.
279 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
281         * doc/tm.texi: Regenerated.
283 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
285         * builtins.c (expand_builtin_return_addr): Add
286         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
287         surrounding #ifdef.
288         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
289         definition to 1.
290         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
291         Likewise.
292         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
293         undefined.
294         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
295         paragraph.
297 2015-03-03  Martin Jambor  <mjambor@suse.cz>
298             Eric Botcazou  <ebotcazou@adacore.com>
300         * tree-sra.c (ipa_sra_check_caller_data): New type.
301         (has_caller_p): Removed.
302         (ipa_sra_check_caller): New function.
303         (ipa_sra_preliminary_function_checks): Use it.
305 2015-03-03  Martin Liska  <mliska@suse.cz>
307         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
308         instead of if branch.
310 2015-03-03  Martin Liska  <mliska@suse.cz>
312         PR ipa/65282
313         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
315 2015-03-23  Jeff Law  <law@redhat.com>
317         PR tree-optimization/65241
318         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
319         hash table if INSERT is true.
321 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
323         PR target/65296
324         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
326 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
328         PR target/64331
329         * config/avr/avr.c (context.h, tree-pass.h): Include them.
330         (avr_pass_data_recompute_notes): New static variable.
331         (avr_pass_recompute_notes): New class.
332         (avr_register_passes): New static function.
333         (avr_option_override): Call it.
335 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
337         Fix various problems with specs file generation.
339         PR target/65296
340         * config.gcc (extra_gcc_objs) [avr]: Remove.
341         * config/avr/driver-avr.c: Remove file.
342         * config/avr/t-avr (driver-avr.o): Remove rule.
343         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
344         INCLUDES to build.  Depend on TM_H.
345         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
346         build warnings.  Fix non-matching types and non-existing %-codes.
347         (tm.h): Include.
348         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
349         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
350         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
351         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
352         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
353         (LIBGCC_SPEC): Remove definitions.
355 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
357         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
358         to create a register in testing mode.
360 2015-03-03  Martin Liska  <mliska@suse.cz>
361             Jan Hubicka   <hubicka@ucw.cz>
363         PR ipa/65263
364         * cgraph.c (cgraph_node::has_thunk_p): New function.
365         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
366         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
367         (sem_function::merge): Assert is changed.
369 2015-03-03  Martin Liska  <mliska@suse.cz>
370             Martin Jambor  <mjambor@suse.cz>
372         PR ipa/65087
373         * ipa-icf.c (sem_item_optimizer::execute): Change function
374         return value to boolean.
375         (sem_item_optimizer::merge_classes): Likewise.
376         (ipa_icf_driver): Return TODO_remove_functions in case there's
377         a merge operation processed.
378         * ipa-icf.h: Change function return value to boolean.
380 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
382         PR 65138/target
383         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
384         processor type for 64-bit little endian PowerPC.
386         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
387         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
388         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
389         printing built-in mask so it does not pass NULL pointers.
391         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
392         -mcpu=powerpc64le.
394 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
396         PR target/58158
397         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
398         !ISA_HAS_FP_CONDMOVE.
400 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
402         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
403         reload_completed.
405 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
407         * doc/invoke.texi (Options for Code Generation Conventions):
408         Fix URL of DSO paper.
410 2015-03-02  Jan Hubicka   <hubicka@ucw.cz>
412         PR ipa/65130
413         * ipa-inline.c (check_callers): Looks for recursion.
414         (inline_to_all_callers): Give up on uninlinable or recursive edges.
415         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
416         summary of inline clones.
417         (do_estimate_growth_1): Fix recursion check.
419 2015-03-02  Jan Hubicka   <hubicka@ucw.cz>
421         PR ipa/64988
422         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
423         comdat groups.
425 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
426             Aldy Hernandez  <aldyh@redhat.com>
428         PR lto/65276
429         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
430         when checking TYPE_BINFO.
432 2015-03-02  Richard Biener  <rguenther@suse.de>
434         PR ipa/65270
435         * ipa-icf-gimple.c: Include builtins.h.
436         (func_checker::compare_memory_operand): Compare base alignment.
438 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
440         PR target/65184
441         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
442         are never passed by reference.
444 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
446         PR target/65183
447         * tree-chkp.c (chkp_check_lower): Don't check against
448         zero bounds for already instrumented functions.
449         (chkp_check_upper): Likewise.
450         (chkp_fini): Clean pass local data to avoid wrong reusage.
452 2015-02-28  Martin Liska  <mliska@suse.cz>
453             Jan Hubicka   <hubicka@ucw.cz>
455         * ipa-icf.c (sem_variable::equals): Improve debug output;
456         get variable constructor.
457         (sem_variable::parse): Do not filter out too early; give up on
458         volatile and register vars.
459         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
460         variables.
461         * ipa-icf.h (sem_variable::init): Do not set ctor.
462         (sem_variable::ctor): Remove.
464 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
466         PR middle-end/65233
467         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
469 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
471         * ipa-icf.c: Include stor-layout.h
472         (sem_function::compare_cgraph_references): Rename to ...
473         (sem_item::compare_cgraph_references): ... this one.
474         (sem_variable::equals_wpa): New function
475         (sem_variable::equals): Do not check stuff already verified by
476         equals_wpa.
477         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
478         * ipa-icf.h (sem_item): Add compare_cgraph_references.
479         (sem_function): Remove compare_cgraph_references.
480         (sem_variable): Turns equals_wpa into non-inline.
482 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
484         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
485         (sem_item::add_expr): New function.
486         (sem_function::hash_stmt): Handle operands of most statements.
487         (sem_variable::get_hash): Hash the actual constructor.
488         * ipa-icf.h (sem_item): Add add_expr.
489         (sem_function): Update prototype of hash_stmt
491 2015-02-28  Martin Liska  <mliska@suse.cz>
492             Jan Hubicka   <hubicka@ucw.cz>
494         PR ipa/65245
495         * ipa-icf-gimple.c (func_checker::compare_function_decl):
496         Remove.
497         (func_checker::compare_variable_decl): Skip symtab vars.
498         (func_checker::compare_cst_or_decl): Update.
499         * ipa-icf.c (sem_function::parse): Do not consider aliases.
500         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
501         use correct symtab predicates.
502         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
503         (sem_variable::parse):  Update comment.
504         (sem_item_optimizer::build_graph): Consider ultimate aliases
505         for references.
507 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
509         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
510         of OBJ_TYPE_REF.
512 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
514         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
515         (sem_variable::merge) Likewise.
517 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
519         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
520         target; also match flag_ipa_devirt.
522 2015-03-01  Martin Liska  <mliska@suse.cz>
523             Jan Hubicka   <hubicka@ucw.cz>
525         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
526         Validate variable alignment.
527         * ipa-icf.c (sem_function::equals_private): Be more precise
528         about non-common function attributes.
529         (sem_variable::equals): Likewise.
531 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
533         PR ipa/65237
534         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
535         across COMDAT group boundary.
537 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
539         PR ipa/65232
540         * ipa-icf.c (clear_decl_rtl): New function.
541         (sem_function::merge): Clear RTL before forming alias.
542         (sem_variable::merge): Clear RTL before forming alias.
544 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
546         PR ipa/65236
547         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot
548         opt.
550 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
552         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
553         to neon_to_gp<q>.
555 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
557         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
558         a typo in the description.
560 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
562         PR target/64317
563         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
564         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
565         * lra-constraints.c: Include "params.h".
566         (EBB_PROBABILITY_CUTOFF): Use
567         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
568         (lra_inheritance): Use '<' instead of '<=' for
569         EBB_PROBABILITY_CUTOFF.
570         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
571         Document change.
573 2015-02-27  Martin Liska  <mliska@suse.cz>
575         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
576         vector length condition.
578 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
580         * doc/extend.texi (x86 transactional memory intrinsics):
581         Reorganize discussion of _xbegin.  Clarify that the return
582         value is a bit mask.  Expand example and move to end of section.
584 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
585             Aldy Hernandez  <aldyh@redhat.com>
587         PR rtl-optimization/65220
588         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
590 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
592         PR target/65032
593         * lra-remat.c (update_scratch_ops): New.
594         (do_remat): Call it.
595         * lra.c (lra_register_new_scratch_op): New. Take code from ...
596         (remove_scratches): ... here.
597         * lra-int.h (lra_register_new_scratch_op): New prototype.
599 2015-02-27  Marek Polacek  <polacek@redhat.com>
601         PR c/65040
602         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
603         -Wformat-signedness anymore.
605 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
607         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
608         function.
609         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
611 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
613         * config/s390/s390.c (enum s390_builtin):
614         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
615         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
616         (s390_init_builtins): Generate new builtin functions.
617         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
618         (s390_sfpc, s390_efpc): New pattern definitions.
620 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
622         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
623         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
624         (s390_builtin_decls): New array.
625         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
626         (s390_builtin_decl): New function.
627         (TARGET_BUILTIN_DECL): Define macro.
629 2015-02-27  Richard Biener  <rguenther@suse.de>
631         PR middle-end/63175
632         * builtins.c (get_object_alignment_2): Make sure to re-apply
633         the ANDed mask after recursing to its operand gets us a new
634         misalignment bit position.
636 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
637             Martin Liska  <mliska@suse.cz>
639         PR bootstrap/65150
640         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
641         Use address_matters_p.
642         (redirect_all_callers, set_addressable): New functions.
643         (sem_function::merge): Reorganize and fix merging issues.
644         (sem_variable::merge): Likewise.
645         (sem_variable::compare_sections): Remove.
646         * common.opt (fmerge-all-constants, fmerge-constants): Remove
647         Optimization flag.
648         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
649         redirect them.
650         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
651         decl is used.
652         (address_matters_1): New function.
653         (symtab_node::address_matters_p): New function.
654         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
655         check for merged flag.
656         * cgraph.h (address_matters_p): Declare.
657         (symtab_node::address_taken_from_non_vtable_p): Remove.
658         (symtab_node::address_can_be_compared_p): New method.
659         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
660         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
661         Remove.
662         (comdat_can_be_unshared_p_1) Use address_matters_p.
663         (update_vtable_references): Fix formating.
664         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
665         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
666         * cgraphclones.c: Preserve merged and icf_merged flags.
668 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
670         * doc/extend.texi (Function Attributes): Fix spelling and typos.
671         (Label Attributes): Likewise.
672         (Cilk Plus Builtins): Likewise.
673         (ARC SIMD Built-in Functions): Likewise.
674         (ARM C Language Extensions (ACLE)): Likewise.
675         (PowerPC Built-in Functions): Likewise.
676         (PowerPC Hardware Transactional Memory Built-in Functions):
677         Likewise.
679 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
681         PR tree-optimization/65216
682         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
683         new stmt and new SSA_NAME for lhs whenever the arguments have
684         changed and weren't just swapped.  Fix comment typo.
686         PR tree-optimization/65215
687         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
688         for PDP endian targets.
689         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
690         Fix up formatting issues.
691         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
692         size is smaller than the original, adjust MEM_REF offset by the
693         difference of sizes.  Use is_gimple_mem_ref_addr instead of
694         is_gimple_min_invariant test to avoid adding address temporaries.
696 2015-02-26  Martin Liska  <mliska@suse.cz>
697             Jan Hubicka  <hubicka@ucw.cz>
699         PR ipa/64693
700         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
701         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
702         (sem_item_optimizer::process_cong_reduction): Include division by
703         sensitive references.
704         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
705         * ipa-ref.c (ipa_ref::address_matters_p): New function.
706         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
708 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
710         PR target/65192
711         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
712         Remove.
713         * config/avr/avr.c: Same.
714         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
715         Refuse any constant address not in 0..0xbf.
716         * config/avr/avr.md (*mov<mode>, *movsf): Remove
717         tiny_valid_direct_memory_access_range from insn conditions.
718         (mov<mode>): Don't special-case expansion of avrtiny addresses.
720 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
722         PR target/61142
723         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
724         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
725         * config/sh/predicates.md (const_logical_operand): New predicate.
726         * config/sh/sh.md: Add new peephole2 patterns.
728 2015-02-26  Marek Polacek  <polacek@redhat.com>
730         PR ipa/65008
731         * ipa-inline.c (early_inliner): Recompute inline parameters.
733 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
735         PR target/65171
736         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
737         instructions with TImode operands are included in the analysis.
739 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
741         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
742         of an EDGE_FSM_THREAD.
744 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
746         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
748 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
750         PR debug/46102
751         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
753 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
755         PR tree-optimization/65048
756         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
757         (thread_through_all_blocks): Call valid_jump_thread_path.
758         Remove invalid FSM jump-thread paths.
760 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
762         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
763         (ipa_write_optimization_summaries): Likewise.
764         * tree-streamer.h: Include data-streamer.h.
765         (streamer_mode_table): Declare extern variable.
766         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
767         * lto-streamer-out.c (lto_output_init_mode_table,
768         lto_write_mode_table): New functions.
769         (produce_asm_for_decls): Call lto_write_mode_table when streaming
770         offloading LTO.
771         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
772         (lto_create_simple_input_block): Add mode_table argument to the
773         lto_input_block constructors.
774         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
775         Likewise.
776         * data-streamer-in.c (string_for_index): Likewise.
777         * ipa-inline-analysis.c (inline_read_section): Likewise.
778         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
779         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
780         * lto-streamer-in.c (lto_read_body_or_constructor,
781         lto_input_toplevel_asms): Likewise.
782         (lto_input_mode_table): New function.
783         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
784         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
785         Use bp_pack_machine_mode.
786         * real.h (struct real_format): Add name field.
787         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
788         (class lto_input_block): Add mode_table member.
789         (lto_input_block::lto_input_block): Add mode_table_ argument,
790         initialize mode_table.
791         (struct lto_file_decl_data): Add mode_table field.
792         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
793         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
794         unpack_ts_decl_common_value_fields,
795         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
796         * tree-streamer.c (streamer_mode_table): New variable.
797         * real.c (ieee_single_format, mips_single_format,
798         motorola_single_format, spu_single_format, ieee_double_format,
799         mips_double_format, motorola_double_format,
800         ieee_extended_motorola_format, ieee_extended_intel_96_format,
801         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
802         ibm_extended_format, mips_extended_format, ieee_quad_format,
803         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
804         decimal_single_format, decimal_double_format, decimal_quad_format,
805         ieee_half_format, arm_half_format, real_internal_format): Add name
806         field.
807         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
809 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
811         PR target/65161
812         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
813         reordering for selective scheduling.
815 2015-02-26  Terry Guo  <terry.guo@arm.com>
817         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
818         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
819         (arm_arch_no_volatile_ce): Declare new global variable.
820         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
821         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
822         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
823         (TARGET_NO_VOLATILE_CE): New macro.
824         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
825         volatile memory access in IT block
827 2015-02-25  Uros Bizjak  <ubizjak@gmail.com>
829         PR target/47230
830         * doc/install.texi (Specific, alpha*-*-*): Document that binutils 2.25
831         or newer are required.
833 2015-02-25  Kai Tietz  <ktietz@redhat.com>
835         PR tree-optimization/61917
836         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
837         that reduc_def_stmt is null.
839 2015-02-25  Martin Liska  <mliska@suse.cz>
841         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
842         hard register variables.
844 2015-02-25  Kai Tietz  <ktietz@redhat.com>
846         PR target/64212
847         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
848         (symtab::noninterposable_alias): Likewise.
850 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
852         PR target/65167
853         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
854         bounds registers.
855         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
857 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
859         PR target/64997
860         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
861         as split condition; force split via '#' in output pattern.
863 2015-02-25  Richard Biener  <rguenther@suse.de>
864         Kai Tietz  <ktietz@redhat.com>
866         PR tree-optimization/61917
867         * tree-vect-loop.c (vectorizable_reduction): Allow
868         vect_internal_def without reduction to exit graceful.
870 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
872         PR target/65196
873         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
874         only with NONDEBUG_INSN_P.
876 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
878         Use variadic macros with avr-log.c.
880         * config/avr/avr-protos.h (avr_vdump): New prototype.
881         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
882         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
883         * config/avr/avr-log.c: Adjust comments.
884         (avr_vdump): New function.
885         (avr_vadump): Pass caller as 2nd argument instead of format string.
886         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
887         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
889 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
891         PR lto/64374
892         * target.def (target_option_stream_in): New target hook.
893         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
894         targetm.target_option.post_stream_in if non-NULL.
895         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
896         * doc/tm.texi: Updated.
897         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
898         function.
899         (TARGET_OPTION_POST_STREAM_IN): Redefine.
901 2015-02-24  Jeff Law  <law@redhat.com>
903         PR target/65117
904         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
905         of operand 0 and operand 2.
906         (zero_cost_loop_end, loop_end): Similarly.
908 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
910         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
911         CXX_MEM_STAT_INFO.
913 2015-02-24  DJ Delorie  <dj@redhat.com>
915         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as
916         well.
917         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
918         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
919         instead of hardcoding SImode.
921 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
923         * omp-low.c (create_omp_child_function): Tag entrypoint
924         functions with a special attribute.
926 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
928         PR target/65058
929         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
931 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
933         PR rtl-optimization/65123
934         * lra-remat.c (operand_to_remat): Check hard regs in insn
935         definition too.
937 2015-02-24  Nick Clifton  <nickc@redhat.com>
939         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
940         to the assembler.
942 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
944         PR libgomp/64625
945         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
946         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
947         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
948         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
949         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
950         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
951         (BUILT_IN_GOACC_PARALLEL): Specify as
952         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
953         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
954         * builtin-types.def
955         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
956         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
957         Remove function types.
958         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
959         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
960         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
961         New function types.
963 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
965         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
967 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
969         PR tree-optimization/65170
970         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
971         if val[1] < 0, clear also val[2] and return 3.
973 2015-02-24  Alan Modra  <amodra@gmail.com>
975         PR target/65172
976         * config/rs6000/rs6000.c (get_memref_parts): Only return true
977         when *base is a reg.  Handle nested plus addresses.  Simplify
978         pre_modify test.
980 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
982         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
983         use natural alignment when optimizing for size.
985 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
987         PR target/65153
988         * config/sh/sh.md (movsicc_true+3): Remove peephole.
989         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
990         * config/sh/sh.c (replace_n_hard_rtx): Remove.
992 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
994         PR fortran/63427
995         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
996         too big for a wide_int.  Implement missing wrapping operation.
998 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
1000         PR target/65163
1001         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
1002         instead of const_int 4294901760.
1004 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
1006         * config/avr/t-avr: Fix typo in comment.
1008 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
1010         * doc/rtl.texi (fma): Clarify documentation.
1012 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
1014         PR debug/58123
1015         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
1016         over input_location.
1018 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1020         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
1021         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
1022         restrict alignments to absolute_biggest_alignment.
1023         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
1024         Define.
1025         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
1026         * doc/tm.texi: Regenerate.
1027         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
1029 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
1031         PR target/64172
1032         * ira-color.c (color_pass): Prevent splitting multi-register
1033         pseudos.
1035 2015-02-20  Richard Biener  <rguenther@suse.de>
1037         PR tree-optimization/65136
1038         * tree-ssa-propagate.c: Include cfgloop.h.
1039         (replace_phi_args_in): Avoid replacing loop latch edge PHI
1040         arguments with constants.
1042 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
1043             Martin Liska  <mliska@suse.cz>
1045         PR target/63892
1046         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
1047         don't try to create_thunk if stdarg_p.  If
1048         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
1049         redirect_callers if possible.
1050         (sem_item_optimizer::execute): Call unregister_hooks here...
1051         (ipa_icf_driver): ... instead of here.
1053 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1055         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
1056         Mark operand 0 as earlyclobber in 2nd alternative.
1057         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
1058         Write negated shift amount into QI lowpart operand 0 and use it
1059         in the shift step.
1060         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
1062 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1064         * cgraph.h (clone_function_name_1): Declare.
1065         * cgraphclones.c (clone_function_name_1): New function.
1066         (clone_function_name): Use it.
1067         * lto-partition.c: Include "stringpool.h".
1068         (must_not_rename, maybe_rewrite_identifier,
1069         validize_symbol_for_target): New static functions.
1070         (privatize_symbol_name): Use must_not_rename.
1071         (promote_symbol): Call validize_symbol_for_target.
1072         (lto_promote_cross_file_statics): Likewise.
1073         (lto_promote_statics_nonwpa): Likewise.
1075 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
1077         PR target/64452
1078         * config/avr/avr.md (pushhi_insn): New insn.
1079         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
1081 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
1082             Jakub Jelinek  <jakub@redhat.com>
1084         * tree-streamer.c (preload_common_nodes): Don't preload
1085         TI_VA_LIST* for offloading.
1086         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
1087         in_lto_p.
1089 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
1091         * config/pa/pa.c (pa_emit_move_sequence): Always force
1092         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
1093         note on insn.
1095         * config/pa/pa.c (pa_reloc_rw_mask): New function.
1096         (TARGET_ASM_RELOC_RW_MASK): Define.
1097         (pa_cannot_force_const_mem): Revert previous change.
1099 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
1100             Jan Hubicka  <hubicka@ucw.cz>
1102         PR ipa/65028
1103         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
1104         across jump functions.
1106 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
1108         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
1110 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
1112         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
1114 2015-02-19  Richard Henderson  <rth@redhat.com>
1116         PR middle-end/65074
1117         * varasm.c (default_binds_local_p_2): Don't test node->definition;
1118         test DECL_EXTERNAL independent of symtab_node.
1120 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
1122         PR lto/65012
1123         * varpool.c (varpool_node::get_constructor): Return early
1124         if this->lto_file_data is NULL.
1126 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
1128         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
1129         (rank_for_schedule_debug): Update.
1130         (ready_sort): Make static.  Move sorting logic to ...
1131         (ready_sort_debug, ready_sort_real): New static functions.
1132         (schedule_block): Sort both debug insns and real insns in preparation
1133         for ready list trimming.  Improve debug output.
1134         * sched-int.h (ready_sort): Remove global declaration.
1136 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
1138         * ipa-icf.c (sem_function::equals_private): Adjust.
1139         (sem_function::bb_dict_test): Take a vec<int> * instead of
1140         auto_vec<int>.
1141         * ipa-icf.h (bb_dict_test): Likewise.
1143 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1145         PR gcov-profile/64634
1146         * tree-eh.c (frob_into_branch_around): Fix up typos
1147         in function comment.
1148         (lower_catch): Put eh_seq resulting from EH lowering of
1149         the cleanup sequence after the cleanup rather than before it.
1151 2015-02-18  Tom de Vries  <tom@codesourcery.com>
1153         * common.opt (fstdarg-opt): New option.
1154         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
1155         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
1156         (@item -fstdarg-opt): New item.
1158 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
1160         PR target/65064
1161         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
1162         for common symbols.
1164 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1166         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
1167         insn-modes.h.
1168         (ALL_HOST_OBJS): Add mkoffload.o.
1169         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
1171 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
1173         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
1174         (compare_virtual_tables): Be smarter about skipping typeinfos;
1175         do sane output on virtual table table mismatch.
1176         (warn_odr): Be ready for forward declarations of enums;
1177         output sane info on base mismatch and virtual table mismatch.
1178         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
1179         when only one type is polymorphic.
1180         (get_odr_type): Fix hashtable corruption.
1181         (dump_odr_type): Dump mangled names.
1183 2015-02-18  Richard Biener  <rguenther@suse.de>
1185         PR tree-optimization/65063
1186         * tree-predcom.c (determine_unroll_factor): Return 1 if we
1187         have replaced looparound PHIs.
1189 2015-02-18  Martin Liska  <mliska@suse.cz>
1191         * lto-streamer.c (lto_streamer_init): Encapsulate
1192         streamer_check_handled_ts_structures with checking macro.
1194 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
1196         PR ipa/65087
1197         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
1198         section if !implicit_section.
1199         (cgraph_node::create_version_clone_with_body): Likewise.
1200         * trans-mem.c (ipa_tm_create_version): Likewise.
1202 2015-02-18  Richard Biener  <rguenther@suse.de>
1204         PR tree-optimization/62217
1205         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
1206         into BIVs.
1208 2015-02-18  Marek Polacek  <polacek@redhat.com>
1210         PR sanitizer/65081
1211         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
1212         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
1213         is in range [-16K, -1].  Don't issue run-time error if
1214         (ptr > ptr + offset).
1216 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
1218         * doc/install.texi (nvptx-*-none): New section.
1219         * doc/invoke.texi (Nvidia PTX Options): Likewise.
1220         * config/nvptx/nvptx.opt: Update.
1222         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
1223         (access_check): New functions, copied from
1224         config/i386/intelmic-mkoffload.c.
1225         (main): For non-installed testing, look in all COMPILER_PATHs for
1226         GCC_INSTALL_NAME.
1228         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
1230 2015-02-18  Andrew Pinski  <apinski@cavium.com>
1231             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1233         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
1234         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
1236 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
1238         * ipa-visibility.c (function_and_variable_visibility): Only
1239         check locality if node is not already local.
1240         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1241         call_for_symbol_and_aliases instead of
1242         call_for_symbol_thunks_and_aliases.
1243         (ipa_inline): Likewise.
1244         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1245         first walk aliases.
1246         * ipa.c (symbol_table::remove_unreachable_nodes): Use
1247         call_for_symbol_and_aliases.
1248         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1249         (ipa_propagate_frequency_1): Use it; use opt_for_fn
1250         (ipa_propagate_frequency): Update.
1251         (ipa_profile): Add opt_for_fn gueards.
1253 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
1255         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
1256         * doc/invoke.texi (SH options): Document it.
1257         * config/sh/sh.c (sh_insn_length_adjustment): Check
1258         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
1260 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
1262         * common.opt (fipa-cp-alignment): New.
1263         * ipa-cp.c (ipcp_store_alignment_results): Check
1264         flag_ipa_cp_alignment.
1265         * opts.c (default_options_table): Enable -fipa-cp-alignment for
1266         -O2.
1267         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
1268         * doc/invoke.texi: Document -fipa-cp-alignment.
1270 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
1272         PR target/64793
1273         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
1274         to nil.  Adjust comments.
1276 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
1278         * ipa-visibility.c (function_and_variable_visibility): Only
1279         check locality if node is not already local.
1280         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
1281         call_for_symbol_and_aliases instead of
1282         call_for_symbol_thunks_and_aliases.
1283         (ipa_inline): Likewise.
1284         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
1285         first walk aliases.
1286         * ipa.c (symbol_table::remove_unreachable_nodes): Use
1287         call_for_symbol_and_aliases.
1288         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
1289         (ipa_propagate_frequency_1): Use it; use opt_for_fn
1290         (ipa_propagate_frequency): Update.
1291         (ipa_profile): Add opt_for_fn guards.
1293 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
1295         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
1296         skipping of "strange" tokens.
1298 2015-02-17  Jeff Law  <law@redhat.com>
1300         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
1301         obsolete comment.
1303 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
1305         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
1306         as forcing a HARD_DEP between instructions, thereby
1307         disallowing rewriting to break dependencies.
1309 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
1311         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
1312         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
1313         variables in boundary that have no inlitalizer encoded and are
1314         not aliases.
1315         * varasm.c (default_binds_local_p_2): External definitions do not
1316         count as definitions here.
1318 2015-02-16  Jeff Law  <law@redhat.com>
1320         PR tree-optimization/64823
1321         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
1322         statements.
1323         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1324         threading through blocks with PHIs, but no statements.
1325         (thread_through_normal_block): Distinguish between blocks where
1326         we did not process all the statements and blocks with no statements.
1328 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
1329             James Greenhalgh  <james.greenhalgh@arm.com>
1331         PR ipa/64963
1332         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
1333         section if not linkonce.  Fix up formatting.
1334         (cgraph_node::create_version_clone_with_body): Copy section.
1335         * trans-mem.c (ipa_tm_create_version): Likewise.
1337 2015-02-16  Richard Biener  <rguenther@suse.de>
1339         PR tree-optimization/65077
1340         * tree-ssa-structalias.c (get_constraint_for_1): Handle
1341         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
1342         (find_func_aliases): Allow float values to carry pointers again.
1344 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
1346         * doc/install.texi (Specific): Reorder targets list to put
1347         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
1348         from the top menu.
1350 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
1351             David Edelsohn  <dje.gcc@gmail.com>
1353         PR target/65058
1354         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
1355         mapping class to external variable or function reference.
1356         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
1357         mapping class.
1359 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
1361         PR target/53348
1362         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
1363         ASM_WEAKEN_DECL if defined.
1365 2015-02-16  Richard Biener  <rguenther@suse.de>
1367         PR lto/65015
1368         * varasm.c (default_file_start): For LTO produced units
1369         emit <artificial> as file directive.
1371 2015-02-16  Richard Biener  <rguenther@suse.de>
1373         PR tree-optimization/63593
1374         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
1375         stmts and releasing SSA names until...
1376         (execute_pred_commoning): ... after processing all chains.
1378 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
1380         PR ipa/65059
1381         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
1382         external functions.
1384 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
1386         * doc/bugreport.texi: Adjust section titles throughout the file
1387         to use "Title Case".
1388         * doc/extend.texi: Likewise.
1389         * doc/gcov.texi: Likewise.
1390         * doc/implement-c.texi: Likewise.
1391         * doc/implement-cxx.texi: Likewise.
1392         * doc/invoke.texi: Likewise.
1393         * doc/objc.texi: Likewise.
1394         * doc/standards.texi: Likewise.
1395         * doc/trouble.texi: Likewise.
1397 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
1399         * cgraph.h (symtab_node::has_aliases_p): Simplify.
1400         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
1401         * tree.c (lookup_binfo_at_offset): Make static.
1402         (get_binfo_at_offset): Do not shadow offset; add explanatory
1403         comment.
1405 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
1407         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
1408         for all floading point loads and stores except those using a register
1409         index address.
1410         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
1411         to a register.
1413 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
1415         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
1416         (do_estimate_growth_1): Record if any uninlinable edge was seen.
1417         (estimate_growth): Handle uninlinable edges correctly.
1418         (check_callers): New.
1419         (growth_likely_positive): Handle aliases correctly.
1421 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
1423         * ipa-chkp.c: Use iterate_direct_aliases.
1424         * symtab.c (resolution_used_from_other_file_p): Move inline.
1425         (symtab_node::create_reference): Fix formating.
1426         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1427         (symtab_node::iterate_reference): Move inline.
1428         (symtab_node::iterate_referring): Move inline.
1429         (symtab_node::iterate_direct_aliases): Move inline.
1430         (symtab_node::used_from_object_file_p_worker): Inline into ...
1431         (symtab_node::used_from_object_file_p): ... this one; move inline.
1432         (symtab_node::call_for_symbol_and_aliases): Move inline;
1433         use iterate_direct_aliases.
1434         (symtab_node::call_for_symbol_and_aliases_1): New method.
1435         (cgraph_node::call_for_symbol_and_aliases): Move inline;
1436         use iterate_direct_aliases.
1437         (cgraph_node::call_for_symbol_and_aliases_1): New method.
1438         (varpool_node::call_for_node_and_aliases): Rename to ...
1439         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
1440         use iterate_direct_aliases.
1441         (varpool_node::call_for_symbol_and_aliases_1): New method.
1442         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
1443         (ipa_discover_readonly_nonaddressable_var): Update.
1444         * ipa-devirt.c: Fix formating.
1445         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
1446         Move inline.
1447         (cgraph_node::call_for_symbol_and_aliases): Move inline.
1448         (cgraph_node::call_for_symbol_and_aliases_1): New function..
1449         * cgraph.h (used_from_object_file_p_worker): Remove.
1450         (resolution_used_from_other_file_p): Move inline.
1451         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
1452         (symtab_node::iterate_reference): Move inline.
1453         (symtab_node::iterate_referring): Move inline.
1454         (symtab_node::iterate_direct_aliases): Move inline.
1455         (symtab_node::used_from_object_file_p_worker): Inline into ...
1456         (symtab_node::used_from_object_file_p): Move inline.
1457         * tree-emutls.c (ipa_lower_emutls): Update.
1458         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
1459         (varpool_node::call_for_node_and_aliases): Remove.
1461 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
1463         PR tree-optimization/62209
1464         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
1465         op == range->exp, insert seq and gimplified code after labels
1466         instead of after the phi.
1468 2015-02-13  Jeff Law  <law@redhat.com>
1470         PR bootstrap/65060
1471         Revert my change for tree-optimization/64823.
1473 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
1475         PR tree-optimization/65053
1476         * tree-ssa-phiopt.c (value_replacement): When moving assign before
1477         cond, either reset VR on lhs or set it to phi result VR.
1479 2015-02-13  Jeff Law  <law@redhat.com>
1481         PR tree-optimization/64823
1482         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
1483         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
1484         threading through blocks with PHIs, but no statements.
1485         (thread_through_normal_block): Distinguish between blocks where
1486         we did not process all the statements and blocks with no statements.
1488         PR rtl-optimization/47477
1489         * match.pd (convert (plus/minus (convert @0) (convert @1): New
1490         simplifier to narrow arithmetic.
1492 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
1494         PR ipa/65028
1495         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
1496         polymorphic call info when type is not known to be preserved.
1498 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
1500         PR ipa/65028
1501         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
1502         (inline_call): Use it.
1504 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
1506         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
1507         GOMP_DEVICE_NVIDIA_PTX.
1509 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
1511         PR ipa/65034
1512         * stmt.c (emit_case_nodes): Use void_type_node instead of
1513         NULL_TREE as LABEL_DECL type.
1515 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
1517         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
1518         constraints.
1519         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
1520         symbolic references to data to be forced to constant memory on the
1521         SOM target.
1523 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1525         PR tree-optimization/65002
1526         * tree-cfg.c (pass_data_fixup_cfg): Don't update
1527         SSA on start.
1528         * tree-sra.c (some_callers_have_no_vuse_p): New.
1529         (ipa_early_sra): Reject functions whose callers
1530         assume function is read only.
1532 2015-02-13  Richard Biener  <rguenther@suse.de>
1534         PR lto/65015
1535         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
1536         for LTO produced CUs.
1538 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
1540         PR tree-optimization/64705
1541         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
1542         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
1543         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
1544         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
1545         expand_simple_operations.
1547 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
1548             Richard Henderson  <rth@redhat.com>
1550         PR rtl/32219
1551         * cgraphunit.c (cgraph_node::finalize_function): Set definition
1552         before notice_global_symbol.
1553         (varpool_node::finalize_decl): Likewise.
1554         * varasm.c (default_binds_local_p_2): Rename from
1555         default_binds_local_p_1, add weak_dominate argument.  Use direct
1556         returns instead of assigning to local variable.  Unify varpool and
1557         cgraph paths via symtab_node.  Reject undef weak variables before
1558         testing visibility.  Reorder tests for simplicity.
1559         (default_binds_local_p): Use default_binds_local_p_2.
1560         (default_binds_local_p_1): Likewise.
1561         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
1562         via symtab_node.
1563         (default_elf_asm_output_external): Emit visibility when specified.
1565 2015-02-13  Alan Modra  <amodra@gmail.com>
1567         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
1568         code setting up r11 for out-of-line fp restore.
1570 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
1572         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
1573         (muser-mode): Likewise.
1575 2015-02-13  Alan Modra  <amodra@gmail.com>
1577         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
1578         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
1580 2015-02-12  David Howells  <dhowells@redhat.com>
1582         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
1583         warning.
1584         * tree-ssa-uninit.c (dump_predicates): Likewise.
1585         * opts.c (print_filtered_help): Likewise.
1587 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
1589         * dwarf2out.c (output_die): Use "%s", name instead of name to
1590         avoid -Wformat-security warning.
1592         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
1593         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1594         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
1595         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
1597 2015-02-12  Jason Merrill  <jason@redhat.com>
1599         * common.opt (-flifetime-dse): New.
1601 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
1603         PR sanitizer/65019
1604         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
1606         PR tree-optimization/65014
1607         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
1608         use original second operand of arg0 or arg1 instead of
1609         that adjusted by STRIP_NOPS.
1611 2015-02-11  Jeff Law  <law@redhat.com>
1613         PR target/63347
1614         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
1615         that needs to be queued, just queue it for a single cycle.
1617 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
1619         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
1620         bodies of thunks; comment on why.
1621         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
1622         symbols are extern.
1624 2015-02-11  Richard Henderson  <rth@redhat.com>
1626         PR sanitize/65000
1627         * tree-eh.c (mark_reachable_handlers): Mark source and destination
1628         regions of __builtin_eh_copy_values.
1630 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
1632         PR middle-end/65003
1633         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
1634         ultimate alias is MEM with SYMBOL_REF satisfying
1635         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
1636         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
1638 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
1640         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
1641         "diagnostic-core.h".
1642         (main): Initialize progname, and call diagnostic_initialize.
1644         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
1645         instead of __OPENMP_TARGET__.
1647         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
1648         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
1649         hard-coding PTX_ID.
1651 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
1653         * doc/sourcebuild.texi (pie_enabled): Document.
1655 2015-02-11  Martin Liska  <mliska@suse.cz>
1657         PR ipa/64813
1658         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
1659         a return value for call to a function that is noreturn.
1661 2015-02-11  Richard Biener  <rguenther@suse.de>
1663         PR lto/65015
1664         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
1665         and -fresolution.
1667 2015-02-11  Andrew Pinski  <apinski@cavium.com>
1669         PR target/64893
1670         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
1671         Change the first argument type to size_type_node and add another
1672         size_type_node.
1673         (aarch64_simd_expand_builtin): Handle the new argument to
1674         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
1675         print an out when the first two arguments are not
1676         nonzero integer constants.
1677         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
1678         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
1680 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
1682         PR target/61925
1683         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
1684         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
1685         (ix86_set_current_function): Rewritten.
1686         (ix86_add_new_builtins): Temporarily clear current_target_pragma
1687         when creating builtin fndecls.
1689 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
1691         PR ipa/65005
1692         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
1693         function.
1694         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
1695         have no comdat group.
1696         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
1697         (lto_output_varpool_node): Always output alias info.
1698         (output_refs): Output refs of boundary aliases, too.
1699         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
1700         (output_symtab): Output call eges in thunks in boundary.
1701         (get_alias_symbol): Remove.
1702         (input_node, input_varpool_node): Do not special case weakrefs.
1703         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
1704         alias and thunks targets in the boundary; do not take removed symbols
1705         from their comdat groups.
1706         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
1707         (cgraph_node::global_info): Remove.
1708         (cgraph_node::rtl_info): Look through aliases and thunks.
1709         * cgrpah.h (global_info): Remove.
1710         (non_local_p): Remove.
1712 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
1713             Sandra Loosemore  <sandra@codesourcery.com>
1715         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
1716         to inline asm.  List dialects in proper order.
1718 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
1719             Sandra Loosemore  <sandra@codesourcery.com>
1721         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
1723 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
1725         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
1726         modified) reference to Solaris.
1728 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
1730         * doc/extend.texi (Extended Asm): Fix typos.
1732 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
1734         PR sanitizer/65004
1735         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
1737 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
1739         PR target/64661
1740         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
1741         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
1742         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
1743         * config/sh/constraints.md (Ara, Add): New constraints.
1744         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
1745         predicates.
1746         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
1747         atomic_mem_operand_0.  Don't use force_reg on the memory address.
1748         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
1749         Sra constraint.  Convert to insn_and_split.  Add workaround for
1750         PR 64974.
1751         (atomic_compare_and_swap<mode>_hard): Copy to
1752         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
1753         Use atomic_mem_operand_0 predicate.
1754         (atomic_compare_and_swap<mode>_soft_gusa,
1755         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
1756         AraAdd constraints.
1757         (atomic_compare_and_swap<mode>_soft_tcb,
1758         atomic_compare_and_swap<mode>_soft_imask,
1759         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
1760         atomic_mem_operand_0 predicate and SraSdd constraints.
1761         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
1762         constraint.
1763         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
1764         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
1765         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
1766         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
1767         force_reg on the memory address.
1768         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
1769         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
1770         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
1771         atomic_mem_operand_1 predicate and Sra constraint.
1772         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
1773         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
1774         Use atomic_mem_operand_1 predicate.
1775         (atomic_<fetchop_name><mode>_hard): Copy to
1776         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
1777         Use atomic_mem_operand_1 predicate.
1778         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
1779         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
1780         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
1781         insn_and_split.  Use atomic_mem_operand_1 predicate.
1782         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
1783         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
1784         Use atomic_mem_operand_1 predicate.
1785         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
1786         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
1787         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
1788         in generated insn with original mem operand before emitting the insn.
1789         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
1790         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
1791         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
1792         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
1793         Use atomic_mem_operand_1 predicate and AraAdd constraints.
1794         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
1795         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
1796         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
1797         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
1798         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
1799         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
1800         atomic_not_fetch<mode>_soft_tcb,
1801         atomic_<fetchop_name>_fetch<mode>_soft_imask,
1802         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
1803         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
1804         Use atomic_mem_operand_1 predicate and SraSdd constraints.
1806 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
1808         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
1809         and 3 earlyclobber operands.
1811 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
1813         * common.opt (fstack-reuse): Mark as optimization.
1815 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
1817         PR ipa/64982
1818         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
1820 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
1822         PR tree-optimization/64326
1823         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
1825 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
1827         PR gcov-profile/61889
1828         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
1830 2015-02-10  Richard Biener  <rguenther@suse.de>
1832         PR tree-optimization/64995
1833         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
1834         value we use is final.
1835         (visit_reference_op_store): Always valueize op.
1836         (visit_use): Properly valueize vuses.
1838 2015-02-10  Richard Biener  <rguenther@suse.de>
1840         PR tree-optimization/64909
1841         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
1842         pass a scalar-stmt count estimate to the cost model.
1843         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
1845 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
1847         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
1848         enabled by default together with var-tracking.
1850 2015-02-10  Nick Clifton  <nickc@redhat.com>
1852         * config/rl78/rl78.c: Remove DIV attribute code accidentally
1853         included in previous rl78 commit.
1855 2015-02-10  Richard Biener  <rguenther@suse.de>
1857         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
1858         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
1859         return the bitpack.
1861 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
1863         PR gcov-profile/61889
1864         * config.in: regenerate.
1865         * configure.in: Likewise.
1866         * configure.ac: Check for ftw.h.
1867         * gcov-tool.c: Check for ftw.h before using nftw.
1869 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
1871         PR lto/64076
1872         * ipa-visibility.c (update_visibility_by_resolution_info): Only
1873         assert when not in lto mode.
1875 2015-02-09  Zhouyi Zhou   <yizhouzhou@ict.ac.cn>
1877         * ira-color.c (setup_left_conflict_sizes_p): Simplify
1878         initialization/assignment of conflict_size.
1880 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
1882         PR ipa/64978
1883         * ipa-cp.c (gather_caller_stats): Skip thunks.
1884         (propagate_constants_topo): Skip aliases.
1886 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1888         PR target/64761
1889         * config/sh/sh.c (sh_option_override): Don't change
1890         -freorder-blocks-and-partition to -freorder-blocks even when
1891         unwinding is enabled.
1892         (sh_can_follow_jump): Return false if the followee jump is
1893         a crossing jump when -freorder-blocks-and-partition is specified.
1894         * config/sh/sh.md (*jump_compact_crossing): New insn.
1896 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1897             Kaz Kojima  <kkojima@gcc.gnu.org>
1899         PR target/64761
1900         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
1901         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
1902         (sh_can_redirect_branch): Rename to ...
1903         (sh_can_follow_jump): ... this.  Constify argument types.
1904         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
1905         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
1906         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
1907         * doc/tm.texi: Regenerate.
1909 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
1911         PR sanitizer/64981
1912         * builtins.c (expand_builtin): Call targetm.expand_builtin
1913         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
1915 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1917         PR ipa/61548
1918         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
1920 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1922         PR ipa/63566
1923         * ipa-icf.c (set_local): New function.
1924         (sem_function::merge): Use it.
1926 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1928         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
1929         (add_type_duplicate): Fix comparison of BINFOs.
1931 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1933         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
1934         on getting VOID pointer.
1936 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
1938         PR target/64979
1939         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
1940         va_list escapes.
1942 2015-02-09  Richard Biener  <rguenther@suse.de>
1944         * genmatch.c (replace_id): Copy expr_type.
1946 2015-02-09  Richard Biener  <rguenther@suse.de>
1948         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
1949         (streamer_write_tree_bitfields): Declare.
1950         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
1951         properly unpack padding.
1952         (unpack_value_fields): Inline ...
1953         (streamer_read_tree_bitfields): ... here.
1954         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
1955         and properly add padding bits.
1956         (streamer_pack_tree_bitfields): Fold into ...
1957         (streamer_write_tree_bitfields): ... this new function,
1958         exposing the bitpack object.
1959         * lto-streamer-out.c (lto_write_tree_1): Call
1960         streamer_write_tree_bitfields.
1962 2015-02-09  Richard Biener  <rguenther@suse.de>
1964         PR tree-optimization/54000
1965         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
1966         (struct ivopts_data): Add loop_loc member.
1967         (tree_ssa_iv_optimize_loop): Dump loop location.
1968         (create_new_ivs): Likewise, also dump number of IVs generated.
1970 2015-02-09  Martin Liska  <mliska@suse.cz>
1972         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
1973         just if not yet registered.
1974         (ipa_icf_generate_summary): Register callgraph hooks.
1976 2015-02-08  Andrew Pinski  <apinski@cavium.com>
1978         * config/aarch64/aarch64.c (gty_dummy): Delete.
1980 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1982         PR ipa/63566
1983         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
1984         (cgraph_node::local_p): Remove thunk related FIXME.
1986 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1988         PR ipa/63566
1989         * i386.c (ix86_function_regparm): Look through aliases to see if callee
1990         is local and optimized.
1991         (ix86_function_sseregparm): Likewise; also use target's SSE math
1992         settings; error out instead of silently generating wrong code
1993         on mismatches.
1994         (init_cumulative_args): Look through aliases.
1996 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
1998         PR ipa/63566
1999         * ipa-split.c (execute_split_functions): Split if function has aliases.
2001 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
2003         PR ipa/63566
2004         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
2005         aliases before trying to expand it.
2006         (cgraph_node::expand_thunk): Fix formating.
2008 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
2010         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
2011         (Using Assembly Language with C): Expand introduction.
2012         (Basic Asm): Copy-edit.  Add more information about uses of
2013         basic asm.
2014         (Extended Asm): Copy-edit.  Document new escape syntax and
2015         %l[label] syntax.
2016         (Global Reg Vars): Copy-edit.
2017         (Local Reg Vars): Likewise.
2019 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
2021         PR debug/2714
2022         PR bootstrap/64256
2023         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
2024         (DBX_CONTIN_CHAR): Define.
2026 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
2027             Brian Rzycki  <b.rzycki@samsung.com>
2029         PR tree-optimization/64878
2030         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
2031         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
2032         Stop recursion at loop phi nodes after having visited a loop phi node.
2034 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2036         * toplev.c (process_options): Change flag_ipa_ra before creating
2037         optimization_{default,current}_node.
2039         PR ipa/64896
2040         * cgraphunit.c (cgraph_node::expand_thunk): If
2041         restype is not is_gimple_reg_type nor the thunk_fndecl
2042         returns aggregate_value_p, set restmp to a temporary variable
2043         instead of resdecl.
2045 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
2047         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
2049 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
2051         PR target/64205
2052         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2053         add a general secondary reload handler for SDmode, unless we have
2054         both read/write support for SDmode.
2056 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2058         PR middle-end/64937
2059         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
2060         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
2061         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
2062         1 before, push it to abstract_vec.
2063         (dwarf2out_abstract_function): Adjust caller.  Don't call
2064         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
2065         DECL_ABSTRACT_P flags for all abstract_vec elts.
2067 2015-02-06  Renlin Li  <renlin.li@arm.com>
2069         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
2070         complex gimple.
2071         * tree-ssa.c (execute_update_addresses_taken): Likewise.
2073 2015-02-06  Jeff Law  <law@redhat.com>
2075         PR target/64889
2076         * config/h8300/h8300.c (push): New argument "in_prologue".
2077         Pass "in_prologue" along to "F".
2078         (h8300_push_pop): Corresponding changes.
2079         (h8300_expand_prologue): Likewise.
2080         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
2082 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
2084         PR rtl-optimization/64957
2085         PR debug/64817
2086         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
2087         IOR rather than for AND.
2089 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
2091         PR target/62631
2092         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
2093         of shift-add and (add + shift) operations.  Rename local variable.
2095 2015-02-05  Jeff Law  <law@redhat.com>
2097         PR target/17306
2098         * config/h8300/constraints.md (U): Correctly dectect
2099         "eightbit_data" memory addresses.
2100         * config/h8300/h8300.c (eightbit_constant_address_p): Also
2101         handle (const (plus (symbol_ref (x)))) where x is declared
2102         as an 8-bit data memory address.
2103         * config/h8300/h8300.md (call, call_value): Correctly detect
2104         "funcvec" functions.
2106         PR target/43264
2107         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
2108         24 to 28 bits for the H8/300.
2110 2015-02-06  Alan Modra  <amodra@gmail.com>
2112         PR target/64876
2113         * config/rs6000/rs6000.c (chain_already_loaded): New function.
2114         (rs6000_call_aix): Use it.
2116 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
2118         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
2119         check.
2121 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
2123         * config/h8300/constraints.md ("U" constraint): Use strict
2124         variant of REG_OK_FOR_BASE_P after reload has started.
2126 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
2128         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
2129         define to zero if !TARGET_NEON.
2130         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
2132 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2133             Trevor Saunders  <tsaunders@mozilla.com>
2135         PR ipa/61548
2136         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
2138 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2140         PR ipa/61548
2141         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
2142         when removing varpool nodes.
2144 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2146         PR ipa/61548
2147         * varpool.c (varpool_node::remove): Fix order of variables.
2149 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2151         PR ipa/64686
2152         * ipa-inline.c (inline_small_functions): Fix ordering issue between
2153         speculation resolution and key updates.
2155 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2157         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
2158         about not letting any speculative edges unupdated.
2160 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2162         PR gcov/64123
2163         * gcov-io.c (gcov_var): Export.
2165 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2167         PR middle-end/64922
2168         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
2169         edges that become speculative.
2171 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2173         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
2174         or DW_LANG_Fortran08.
2175         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
2176         DW_LANG_Fortran08.
2177         (gen_compile_unit_die): Handle "GNU Fortran2003" and
2178         "GNU Fortran2008" language strings.
2179         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
2180         * langhooks.h (lang_GNU_Fortran): New prototype.
2181         * langhooks.c (lang_GNU_Fortran): New function.
2182         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
2183         lang_GNU_Fortran.
2185 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2187         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
2188         (RTX_OK_FOR_OLO10_P): Likewise.
2190 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2192         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
2194 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
2196         PR middle-end/64922
2197         * gimple.c: Include gimple-ssa.h.
2198         (maybe_remove_unused_call_args): New function.
2199         * gimple.h (maybe_remove_unused_call_args): Declare.
2200         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
2201         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
2202         * gimple-fold.c (gimple_fold_call): Likewise.
2204 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
2206         PR rtl-optimization/64905
2207         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
2208         pointer alignment if it isn't needed.
2210 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
2212         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
2213         cortex-a72.cortex-a53.
2214         * config/aarch64/aarch64-tune.md: Regenerate.
2215         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
2217 2015-02-04  Nick Clifton  <nickc@redhat.com>
2219         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
2220         inside a MEM.
2222 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
2224         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
2225         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
2226         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
2227         of DEF_BUILTIN.
2228         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
2229         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
2230         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
2231         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
2232         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
2233         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
2234         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
2235         * tree-core.h (enum built_in_function): In between
2236         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
2237         for builtins that use DEF_BUILTIN_CHKP macro.
2239 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
2241         PR debug/64817
2242         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
2243         operands for tcc_comparison exprs.  Fix typos.
2245         PR debug/64817
2246         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
2247         of two XORs that have an intervening AND or IOR.
2249         PR debug/64817
2250         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
2251         simplification of XOR of AND to not allocate new rtx before
2252         committing to a simplification.
2254 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2256         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
2257         manual swaps in all peepholes.
2259 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2261         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
2262         of manual swapping implementation.
2263         (aarch64_expand_vec_perm_const_1): Likewise.
2265 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
2267         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
2268         (generic_addrcost_table): Remove NAMED_PARAM.
2269         (cortexa57_addrcost_table): Likewise.
2270         (xgene1_addrcost_table): Likewise.
2271         (generic_regmove_table): Likewise.
2272         (cortexa53_regmove_table): Likewise.
2273         (xgene1_regmove_table): Likewise.
2274         (generic_vector_table): Likewise.
2275         (cortexa57_vector_table): Likewise.
2276         (xgene1_vector_table): Likewise.
2277         (generic_tunings): Likewise.
2278         (cortexa53_tunings): Likewise.
2279         (cortexa57_tunings): Likewise.
2280         (xgene1_tunings): Likewise.
2282 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
2284         * config/arm/arm-cores.def: Add cortex-a72 and
2285         cortex-a72.cortex-a53.
2286         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
2287         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
2288         * config/arm/arm-tune.md: Regenerate.
2289         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
2290         "cortex-a72.cortex-a53".
2291         * doc/invoke.texi (ARM Options/-mtune): Likewise.
2293 2015-02-04  Nick Clifton  <nickc@redhat.com>
2295         PR target/64408
2296         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
2297         of accepted codes.
2298         (nonimmediate_di_operand): Likewise.
2300         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
2301         prefixes of known F5 using MSP430 MCUs.
2303 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2305         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
2306         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
2307         instead of __builtin_sqrt.
2309 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
2311         * varasm.c (do_assemble_alias): Follow transparent alias
2312         chain for target.
2313         (default_assemble_visibility): Follow transparent alias
2314         chain for decl name.
2316 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2318         PR middle-end/62103
2319         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
2320         to compute size of referenced value in the constant case.
2322 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
2324         PR rtl-optimization/64756
2325         * cse.c (invalidate_dest): New function.
2326         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
2327         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
2328         invalidate and do not record it.
2330 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
2332         PR target/64660
2333         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
2334         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
2335         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
2336         atomic_nand<mode>_soft_tcb): New insns.
2337         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
2338         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
2339         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
2340         Split into atomic_not_fetchsi_hard if operands[0] is unused.
2341         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
2342         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2343         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
2344         atomic_not<mode>_hard if operands[0] is unused.
2345         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
2346         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
2347         if operands[0] is unused.
2348         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
2349         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
2350         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
2351         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2352         unused.
2353         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
2354         into atomic_not<mode>_soft_tcb if operands[0] is unused.
2355         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
2356         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
2357         if operands[0] is unused.
2358         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
2359         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
2360         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
2361         atomic_nand_fetchsi_hard if operands[0] is unused.
2362         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
2363         atomic_nand<mode>_hard if operands[0] is unused.
2364         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
2365         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
2366         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
2367         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2368         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
2369         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
2370         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
2371         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
2372         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
2373         atomic_not<mode>_hard if operands[0] is unused.
2374         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
2375         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
2376         unused.
2377         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
2378         into atomic_not<mode>_soft_tcb if operands[0] is unused.
2379         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
2380         atomic_nand<mode>_hard if operands[0] is unused.
2381         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
2382         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
2384 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
2386         PR jit/64810
2387         * Makefile.in (GCC_OBJS): Add gcc-main.o.
2388         * gcc-main.c: New file, containing "main" taken from gcc.c.
2389         * gcc.c (do_self_spec): Free decoded_options.
2390         (class driver): Move declaration to gcc.h.
2391         (main): Move declaration and implementation to new file
2392         gcc-main.c.
2393         (driver_get_configure_time_options): New function.
2394         * gcc.h (class driver): Move this declaration here, from
2395         gcc.c.
2396         (driver_get_configure_time_options): New declaration.
2398 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
2400         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
2401         cross-module inlining.
2402         * cgraph.h (cgraph_node): Add flag merged.
2403         * ipa-icf.c (sem_function::merge): Maintain it.
2405 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
2407         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
2408         instead of OBJECT_P.
2410 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
2412         PR target/62631
2413         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
2414         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
2415         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
2416         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
2418 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
2420         PR other/63504
2421         * combine.c (reg_n_sets_max): New variable.
2422         (can_change_dest_mode, reg_nonzero_bits_for_combine,
2423         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
2424         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
2425         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
2426         (rest_of_handle_combine): Initialize reg_n_sets_max.
2428 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
2430         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
2431         if some always_inline was inlined, apply changes before inlining
2432         heuristically.
2434 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
2436         PR jit/64810
2437         * config/arm/arm.c (arm_option_override): Set
2438         arm_selected_arch/cpu/tune to NULL on entry.
2440 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
2441             Andrew Pinski  <pinskia@gcc.gnu.org>
2442             Jakub Jelinek  <jakub@gcc.gnu.org>
2444         PR target/64231
2445         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
2446         integer typing for small model. Use IN_RANGE.
2448 2015-02-02  Richard Biener  <rguenther@suse.de>
2450         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
2451         * tree-vrp.c (vrp_valueize_1): Likewise.
2453 2015-02-02  Alan Modra  <amodra@gmail.com>
2455         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
2456         than mem for toc_restore.
2457         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
2458         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
2459         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
2461 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
2463         PR target/64047
2464         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
2465         explicit default options.
2467 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
2469         PR ipa/64872
2470         * ipa-utils.c (ipa_merge_profiles): Add release argument.
2471         * ipa-icf.c (sem_function::merge): Do not release body when merging.
2472         * ipa-utils.h (ipa_merge_profiles): Update prototype.
2474 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
2476         PR debug/64817
2477         * cfgexpand.c (deep_ter_debug_map): New variable.
2478         (avoid_deep_ter_for_debug): New function.
2479         (expand_debug_expr): If TERed SSA_NAME is in
2480         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
2481         instead of trying to expand SSA_NAME's def stmt.
2482         (expand_debug_locations): When expanding debug bind
2483         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
2484         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
2485         value.
2486         (pass_expand::execute): Call avoid_deep_ter_for_debug on
2487         all debug bind stmts.  Delete deep_ter_debug_map after
2488         expand_debug_location if non-NULL and clear it.
2490 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
2492         PR target/64851
2493         * config/sh/sync.md (atomic_fetch_notsi_hard,
2494         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
2495         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
2496         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
2497         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
2498         atomic_not_fetch<mode>_soft_imask): New insns.
2500 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
2502         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
2503         (rank_for_schedule_debug): Split from ...
2504         (rank_for_schedule): ... this.
2505         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
2506         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
2508 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
2510         * doc/md.texi (Machine Constraints): Alphabetize table by target.
2511         * doc/extend.texi (x86 Variable Attributes): Move section to
2512         correct alphabetization after renaming.
2513         (x86 Type Attributes): Likewise.
2514         (Target Builtins): Re-alphabetize menu.
2515         (x86 Built-in Functions): Move section to correct alphabetization
2516         after renaming.
2517         (x86 transactional memory intrinsics): Likewise.
2518         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
2519         and x86 Windows Options in table and menu.
2520         (x86 Options): Move section to correct alphabetization after
2521         renaming.
2522         (x86 Windows Options): Likewise.
2524 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
2526         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
2527         preferred names of the architecture and its 32- and 64-bit
2528         variants.
2529         * doc/invoke.texi: Likewise.
2530         * doc/md.texi: Likewise.
2532 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
2534         PR target/64882
2535         * config/i386/predicates.md (address_no_seg_operand): Reject
2536         non-CONST_INT_P operands in invalid mode.
2538 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
2540         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
2541         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
2542         * config/i386/predicates.md (address_no_seg_operand): Call
2543         address_operand with VOIDmode.
2544         (vsib_address_operand): Ditto.
2545         (address_mpx_no_base_operand): Ditto.
2546         (address_mpx_no_index_operand): Ditto.
2548 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
2550         PR target/64688
2551         * lra-constraints.c (original_subreg_reg_mode): New.
2552         (simplify_operand_subreg): Try to simplify subreg of const.  Use
2553         original_subreg_reg_mode for it.
2554         (swap_operands): Update original_subreg_reg_mode.
2555         (curr_insn_transform): Set up original_subreg_reg_mode.
2557 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
2559         PR target/64617
2560         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
2561         function.
2562         (process_alt_operands): Use it.
2563         (curr_insn_transform): Check the optional reload pseudo class is
2564         ok for the mode.
2566 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
2568         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
2569         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
2570         prototype.
2571         * toplev.h (init_asm_output): Update comment on use of
2572         UNKNOWN_LOCATION with fatal_error.
2573         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
2574         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
2575         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
2576         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
2577         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
2578         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
2579         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
2580         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
2581         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
2582         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
2583         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
2584         fatal_error changed to pass input_location as first argument.
2586 2015-01-30  Martin Liska  <mliska@suse.cz>
2588         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
2589         in #pragma GCC diagnostic guards.
2591 2015-01-30  Richard Biener  <rguenther@suse.de>
2593         PR tree-optimization/64829
2594         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
2595         not add a widening conversion pattern but hand off extra
2596         widenings to callers.
2597         (vect_recog_widen_mult_pattern): Handle extra widening produced
2598         by vect_handle_widen_op_by_const.
2599         (vect_recog_widen_shift_pattern): Likewise.
2600         (vect_pattern_recog_1): Remove excess vertical space in dumping.
2601         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
2602         (vect_init_vector_1): Likewise.
2603         (vect_get_vec_def_for_operand): Likewise.
2604         (vect_finish_stmt_generation): Likewise.
2605         (vectorizable_load): Likewise.
2606         (vect_analyze_stmt): Likewise.
2607         (vect_is_simple_use): Likewise.
2609 2015-01-29  Jeff Law  <law@redhat.com>
2611         * combine.c (try_combine): Fix typo in comment.
2613 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
2615         PR target/64580
2616         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
2617         (rs6000_stack_info): Add assert.
2618         (rs6000_output_savres_externs): New function, split off from...
2619         (rs6000_output_function_prologue): ... here.  Do not call it for
2620         thunks.
2622 2015-01-29  Jeff Law  <law@redhat.com>
2624         PR target/15184
2625         * combine.c (try_combine): If I0 is a memory load and I3 a store
2626         to a related address, increase the "goodness" of doing a 4-insn
2627         combination with I0-I3.
2628         (make_field_assignment): Handle SUBREGs in the ior+and case.
2630 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
2632         PR tree-optimization/64746
2633         * tree-if-conv.c (mask_exists): New function.
2634         (predicate_mem_writes): Save created mask with given size for further
2635         use.
2636         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
2637         (ifcvt_repair_bool_pattern): Collect all statements that are root
2638         of bool pattern and use iterative algorithm to remove multiple uses
2639         of predicates, display number of required iterations.
2641 2015-01-29  Richard Biener  <rguenther@suse.de>
2643         PR tree-optimization/64853
2644         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
2645         stmt will get simulated again.
2646         * tree-ssa-ccp.c (valueize_op_1): Likewise.
2648 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2650         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
2651         return_in_pc.  Remove redundant assignments.
2652         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
2653         (arm_expand_epilogue): Don't compare boolean with true in if condition.
2655 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
2657         * config/i386/i386.c (ix86_mode_after): Make static.
2659 2015-01-29  Richard Biener  <rguenther@suse.de>
2661         PR tree-optimization/64844
2662         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
2663         dump cost model analysis.
2664         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2665         Do not register adjusted load/store costs here.
2667 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2668             Uros Bizjak  <ubizjak@gmail.com>
2670         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
2671         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
2672         using x86_use_pseudo_pic_reg.
2673         * config/i386/i386.c (ix86_conditional_register_usage): Remove
2674         support for fixed PIC register.
2675         (ix86_use_pseudo_pic_reg): Not static any more.
2677 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
2679         PR middle-end/64805
2680         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
2681         to avoid error in cgraph node verification.
2683 2015-01-29  Marek Polacek  <polacek@redhat.com>
2685         * doc/standards.texi: Reflect that the default for C is gnu11.
2687 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2689         PR target/64761
2690         * reorg.c (switch_text_sections_between_p): New function.
2691         (relax_delay_slots): Call it when testing if the jump insn
2692         is removable.  Use targetm.can_follow_jump when testing if
2693         the conditional branch can follow an unconditional jump.
2695 2015-01-27  Caroline Tice  <cmtice@google.com>
2697         Committing VTV Cywin/Ming patch for Patrick Wollgast
2698         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
2699         if -fvtable-verify=preinit/std is used.
2700         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
2701         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
2702         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
2703         if -fvtable-verify=preinit/std is used.
2704         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
2705         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
2706         if -fvtable-verify=preinit/std is used.
2707         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
2708         * config/i386/mingw32.h (LIB_SPEC): Likewise.
2709         * varasm.c (assemble_variable): Add code to properly set the comdat
2710         section and name for the .vtable_map_vars section in case the
2711         target is PE or COFF.
2713 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
2715         PR ipa/64801
2716         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
2717         make sane BB profile.
2718         (cgraph_node::expand_thunk): Make sane BB profile.
2719         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
2720         * cgraph.h (init_lowered_empty_function): Update prototype.
2721         * config/i386/i386.c (make_resolver_func): Update call.
2722         * predict.c (gate): Disable branch prediction pass if
2723         profile is already there.
2725 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
2727         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
2728         * opth-gen.awk: Likewise.
2729         * common.opt: Mark flag_fp_contract_mode as Optimization.
2731 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2733         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
2734         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
2736 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
2738         PR target/64659
2739         * config/sh/predicates.md (atomic_arith_operand,
2740         atomic_logical_operand): Remove.
2741         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
2742         (atomic_arith_operand_0): New predicate.
2743         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
2744         Use atomic_arith_operand_0 for input values.
2745         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
2746         atomic_compare_and_swap<mode>_soft_gusa,
2747         atomic_compare_and_swap<mode>_soft_tcb,
2748         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
2749         arith_reg_operand instead of register_operand.
2750         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
2751         atomic_arith_operand_0 for newval input.
2752         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2753         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
2754         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
2755         arith_reg_operand instead of register_operand.
2756         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
2757         fetchop_predicate_1, fetchop_constraint_1_llcs,
2758         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
2759         fetchop_constraint_1_imask): New code iterator attributes.
2760         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
2761         register_operand.  Use fetchop_predicate_1.
2762         (atomic_fetch_<fetchop_name>si_hard,
2763         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
2764         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
2765         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
2766         and arith_reg_operand instead of register_operand.  Use
2767         fetchop_predicate_1, fetchop_constraint_1_gusa.
2768         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
2769         and arith_reg_operand instead of register_operand.  Use
2770         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
2771         to allow R0 usage.
2772         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
2773         and arith_reg_operand instead of register_operand.  Use
2774         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
2775         to allow R0 usage.
2776         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
2777         register_operand.  Use atomic_logical_operand_1.
2778         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
2779         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
2780         arith_reg_operand instead of register_operand.
2781         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
2782         Use arith_reg_dest and arith_reg_operand instead of register_operand.
2783         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
2784         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
2785         register_operand.  Use fetchop_predicate_1.
2786         (atomic_<fetchop_name>_fetchsi_hard,
2787         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
2788         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2789         fetchop_constraint_1_llcs.
2790         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
2791         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2792         fetchop_constraint_1_gusa.
2793         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
2794         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2795         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
2796         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
2797         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
2798         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
2799         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
2800         register_operand.  Use atomic_logical_operand_1.
2801         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
2802         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
2803         arith_reg_operand instead of register_operand.
2804         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
2805         arith_reg_operand instead of register_operand.  Use logical_operand
2806         and K08.  Adjust asm sequence to allow R0 usage.
2807         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
2808         arith_reg_operand instead of register_operand.  Use logical_operand
2809         and K08.
2811 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
2813         PR other/63504
2814         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
2815         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
2816         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
2817         only get_full_len HOST_WIDE_INTs from get_val () array rather than
2818         all bits in *val_wide.
2820 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
2822         * varpool.c (tls_model_names): Fix names.
2823         (varpool_node::dump): Dump tls- prefix for tls models.
2825 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
2826             Bernd Schmidt  <bernds@codesourcery.com>
2827             Nathan Sidwell  <nathan@codesourcery.com>
2829         * config/nvptx/mkoffload.c: New file.
2830         * config/nvptx/t-nvptx: Add build rules for it.
2831         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
2832         (extra_programs): Add mkoffload.
2833         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
2834         function.
2835         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
2837 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
2839         PR middle-end/64809
2840         * cfgexpand.c (reorder_operands): Skip debug gimples.
2842 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
2844         PR tree-optimization/64277
2845         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
2846         range info when possible to refine estimation.
2848 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
2850         PR tree-optimization/64718
2851         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
2852         be a 16bit unsigned integer when n->range is 16.
2853         (bswap_replace): Convert src to that type if necessary for all bswap
2854         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
2855         set in pass_optimize_bswap::execute ().
2857 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
2859         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
2860         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
2861         integer and floating point variants.
2862         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
2864 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
2866         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
2867         for all vector modes.
2869 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
2871         PR bootstrap/64612
2872         * doc/sourcebuild.texi (comdat_group): Document.
2874 2015-01-28  Terry Guo  <terry.guo@arm.com>
2876         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
2878 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
2880         * toplev.c (print_version): Add param "show_global_state", and
2881         only print GGC and plugin information if it is true.
2882         (init_asm_output): Pass in "true" for the new param when calling
2883         print_version.
2884         (process_options): Likewise.
2885         (toplev::main): Likewise.
2886         * toplev.h (print_version): Add new param to decl.
2888 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
2890         PR ipa/60871
2891         PR ipa/64139
2892         * tree.c (lookup_binfo_at_offset): New function.
2893         (get_binfo_at_offset): Use it.
2895 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
2897         PR ipa/64282
2898         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
2899         on vtable being vtable.
2901 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2903         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
2904         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
2905         -mhotpatch= option.
2906         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
2907         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
2908         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
2909         Renamed.
2910         (s390_hotpatch_trampoline_halfwords_max): Renamed.
2911         (s390_hotpatch_hw_max): New name.
2912         (s390_hotpatch_trampoline_halfwords): Renamed.
2913         (s390_hotpatch_hw_before_label): New name.
2914         (get_hotpatch_attribute): Removed.
2915         (s390_hotpatch_hw_after_label): New name.
2916         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
2917         attribute.
2918         (s390_attribute_table): Ditto.
2919         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
2920         (s390_function_num_hotpatch_hw): New name.
2921         Remove special handling of inline functions and hotpatching.
2922         Return number of nops before and after the function label.
2923         (s390_can_inline_p): Removed.
2924         (s390_asm_output_function_label): Emit a configurable number of nops
2925         after the function label.
2926         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
2927         (TARGET_CAN_INLINE_P) Removed.
2928         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
2930 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2931             Jiong Wang  <jiong.wang@arm.com>
2933         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
2934         of scratch reg.
2935         (cb<optab><mode>1): Likewise.
2936         * config/aarch64/iterators.md (bcond): New define_code_attr.
2938 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2940         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
2941         memory accesses.
2943 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2945         * config/s390/s390.c (s390_register_move_cost): Increase costs for
2946         FPR->GPR moves.
2948 2015-01-27  Richard Biener  <rguenther@suse.de>
2950         * tree-vrp.c (update_value_range): Intersect the range with
2951         old recorded SSA name range information.
2953 2015-01-27  Nick Clifton  <nickc@redhat.com>
2955         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
2956         BC, DE and HL registers directly, not via AX.
2957         When decrementing the stack pointer by a large amount, transfer SP
2958         into AX and perform the subtraction there.
2959         (rl78_expand_epilogue): Perform the inverse of the above
2960         enhancements.
2962 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2964         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
2966 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2967             Yury Gribov  <y.gribov@samsung.com>
2969         PR ubsan/64741
2970         * ubsan.c (ubsan_source_location): Refactor code.
2971         (ubsan_type_descriptor): Update type size. Refactor code.
2973 2015-01-27  Richard Biener  <rguenther@suse.de>
2975         PR tree-optimization/56273
2976         PR tree-optimization/59124
2977         PR tree-optimization/64277
2978         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
2979         from the first VRP pass.
2981 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2983         PR ipa/64776
2984         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
2985         handle the first argument in the same loop as all the other arguments.
2987         PR rtl-optimization/61058
2988         * jump.c (cleanup_barriers): Update basic block boundaries
2989         if BLOCK_FOR_INSN is non-NULL on PREV.
2991 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
2993         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
2994         bounds narrowing, already instrumented calls and calls to
2995         not instrumentable functions.
2997 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
2999         PR tree-optimization/64807
3000         * wide-int.cc (wi::divmod_internal): Clear
3001         b_dividend[dividend_blocks_needed].
3003 2015-01-26  DJ Delorie  <dj@redhat.com>
3005         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
3006         volatile memory references.
3008 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
3010         PR target/49263
3011         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
3012         remove_insn.
3013         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
3014         shifts if it already fits into K08.
3016 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
3018         PR ipa/64730
3019         * ipa-inline.c (inline_small_functions): Print "unknown" even
3020         if edge->call_stmt is non-NULL, but has builtins or unknown
3021         location.
3023         PR middle-end/64421
3024         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
3025         with asterisk, skip the first character.
3027 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3029         PR target/64806
3030         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
3031         order change.
3033 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
3035         PR target/64795
3036         * config/i386/i386.md (*movdi_internal): Also check operand 0
3037         to determine TYPE_LEA operand.
3038         (*movsi_internal): Ditto.
3040 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
3042         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
3043         OPTION_MASK_QUAD_MEMORY_ATOMIC.
3045 2015-01-26  Renlin Li  <renlin.li@arm.com>
3047         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
3048         the comment.
3049         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
3050         for higher part.
3052 2015-01-26  Richard Biener  <rguenther@suse.de>
3054         PR middle-end/64764
3055         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
3056         combining two BIT_AND_EXPR predicates.
3058 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
3060         PR bootstrap/64754
3061         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
3063 2015-01-26  Terry Guo  <terry.guo@arm.com>
3065         * config/arm/arm.c (arm_file_start): Update the assignment of
3066         Tag_ABI_HardFP_use.
3068 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
3070         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
3071         pipeline model.
3072         config/arm/arm.md: Include the new Cortex-A57 model.
3073         (generic_sched): Don't use generic_sched when tuning for
3074         Cortex-A57.
3076 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
3077             Uros Bizjak  <ubizjak@gmail.com>
3079         * config/i386/i386.c (get_builtin_code_for_version): Add
3080         support for BMI and BMI2 multiversion functions.
3082 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3084         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
3085         (extract_bit_field): Likewise.
3086         (extract_low_bits): Likewise.
3087         (expand_mult): Likewise.
3088         (expand_mult_highpart_adjust): Likewise.
3090 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
3092         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
3093         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
3094         * config/i386/i386.c (processor_model): Add
3095         M_INTEL_COREI7_BROADWELL.
3096         (arch_names_table): Add "broadwell".
3098 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
3100         PR target/49263
3101         PR target/53987
3102         PR target/64345
3103         PR target/59533
3104         PR target/52933
3105         PR target/54236
3106         PR target/51244
3107         * config/sh/sh-protos.h
3108         (sh_extending_set_of_reg::can_use_as_unextended_reg,
3109         sh_extending_set_of_reg::use_as_unextended_reg,
3110         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
3111         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
3112         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
3113         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
3114         (sh_treg_insns): New class.
3115         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
3116         (scope_counter): New class.
3117         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
3118         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
3119         sh_extending_set_of_reg::can_use_as_unextended_reg,
3120         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
3121         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
3122         sh_split_treg_set_expr): New functions.
3123         (addsubcosts): Handle treg_set_expr.
3124         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
3125         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
3126         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
3127         (sh_insn_operands_modified_between_p): Make non-static.
3128         * config/sh/predicates.md (zero_extend_movu_operand): Allow
3129         simple_mem_operand in addition to displacement_mem_operand.
3130         (zero_extend_operand): Don't allow zero_extend_movu_operand.
3131         (treg_set_expr, treg_set_expr_not_const01,
3132         arith_reg_or_treg_set_expr): New predicates.
3133         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
3134         arith_or_int_operand instead of logical_operand.  Convert to
3135         insn_and_split.  Try to optimize constant operand in splitter.
3136         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
3137         (*tstqi_t_zero): Delete.
3138         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
3139         (tstsi_t_and_not): Delete.
3140         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
3141         Convert to insn_and_split.
3142         (unnamed split, tstsi_t_zero_extract_xor,
3143         tstsi_t_zero_extract_subreg_xor_little,
3144         tstsi_t_zero_extract_subreg_xor_big): Delete.
3145         (*tstsi_t_shift_mask): New insn_and_split.
3146         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
3147         to recombine with surrounding insns when splitting.
3148         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
3149         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
3150         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
3151         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
3152         (*cbranch_div0s: Delete.
3153         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
3154         Try to recombine with surrounding insns when splitting.  Add operand
3155         order variants.
3156         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
3157         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
3158         *addc_r_r_msb, *addc_2r_msb): Delete.
3159         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
3160         order variant.
3161         (*addc_negreg_t): New insn_and_split.
3162         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
3163         Try to recombine with surrounding insns when splitting.
3164         Add operand order variants.
3165         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
3166         insn_and_split patterns.
3167         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
3168         surrounding insns when splitting.
3169         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
3170         (*rotcl): Likewise.  Add zero_extract variant.
3171         (*ashrsi2_31): New insn_and_split.
3172         (*negc): Convert to insn_and_split.  Use treg_set_expr.
3173         (*zero_extend<mode>si2_disp_mem): Update comment.
3174         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
3175         condition.
3176         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
3177         with surrounding insns when splitting.
3178         (any_treg_expr_to_reg): New insn_and_split.
3179         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
3180         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
3181         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
3182         *zero_extract_2): New single bit zero extract patterns.
3183         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
3184         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
3185         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
3186         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
3187         set destination.
3188         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
3189         register_operand for set source.
3191 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
3193         * i386.opt (prefetch_sse): New targetsave.
3194         * i386.c (ix86_function_specific_save): Save prefetch_sse.
3195         (ix86_function_specific_restore): Restore prefetch_sse and initialize
3196         ix86_cost/ix86_tune_cost.
3198 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3200         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
3201         Support the JIT by using 0 as the language type.
3203 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
3205         PR target/64317
3206         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
3207         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
3208         (mark_regno_live, process_bb_lives): Pass new parameter value to
3209         make_hard_regno_born.
3211 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3213         PR rtl-optimization/63637
3214         PR rtl-optimization/60663
3215         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
3216         if elt->cost is MAX_COST for ASM_OPERANDS.
3217         (find_sets_in_insn): Fix up comment typo.
3218         (cse_insn): Don't set src_volatile for all non-volatile
3219         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
3220         or with "memory" clobber.  Set elt->cost to MAX_COST
3221         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
3222         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
3224 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
3226         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
3227         alternative 1.
3229 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
3231         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
3232         libgcc/config/i386/elf-lib.h.
3234 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3236         PR driver/64737
3237         * gcc.c (print_configuration): Don't print a blank line at the end
3238         here...
3239         (run_attempt): ... but here unstead.
3241         PR middle-end/64734
3242         * omp-low.c (scan_sharing_clauses): Don't ignore
3243         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
3244         on target data/update constructs.
3246 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3248         PR target/50928
3249         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
3250         (DEBUG_RELOAD): Removed define.
3251         (m32c_limit_reload_class): Enable traces with if DEBUG0.
3252         (m32c_function_arg): Added a type cast.
3253         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
3254         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
3255         * config/m32c/bitops.md (andqi3_16): Likewise.
3256         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
3257         (push_a01_l): Likewise.
3259 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3261         PR jit/64721
3262         * main.c (main): Construct toplev instances with init_signals=true.
3263         * toplev.c (general_init): Add param "init_signals", and use it to
3264         conditionalize the calls to signal and host_hooks.extra_signals.
3265         (toplev::toplev): Add param "init_signals".
3266         (toplev::main): When invoking general_init, pass m_init_signals
3267         to control whether signal-handlers are installed.
3268         * toplev.h (toplev::toplev): Add param "init_signals".
3269         (toplev::m_init_signals): New field.
3271 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
3273         PR jit/64722
3274         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
3275         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
3276         latter may be affected by the former (e.g. on i686).
3278 2015-01-23  Martin Liska  <mliska@suse.cz>
3280         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
3281         false positive during profiledbootstrap.
3283 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3285         PR libgomp/64672
3286         * lto-opts.c (lto_write_options): Output non-explicit conservative
3287         -fno-openacc.
3288         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
3289         (append_compiler_options): Pass -fopenacc through.
3291 2015-01-23  Tom de Vries  <tom@codesourcery.com>
3293         PR libgomp/64707
3294         * lto-opts.c (lto_write_options): Output non-explicit conservative
3295         -fno-openmp.
3296         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
3297         (append_compiler_options): Pass -fopenmp through.
3299 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
3301         PR debug/64511
3302         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
3303         GTY markup.
3305         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
3306         * diagnostic.def (DK_ICE_NOBT): New kind.
3307         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
3308         like DK_ICE, but never print backtrace.
3309         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
3310         (internal_error_no_backtrace): New function.
3311         * gcc.c (execute): Use internal_error_no_backtrace instead of
3312         internal_error.
3314 2015-01-22  Jeff Law  <law@redhat.com>
3316         PR target/52076
3317         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
3318         improve code density for small immediate to memory case.
3319         (insv): Better handle bitfield assignments when the field is
3320         being set to all ones.
3321         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
3322         operand predicate.
3324 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3325             Jakub Jelinek  <jakub@redhat.com>
3327         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
3328         for !TARGET_LIBC_PROVIDES_SSP version and
3329         -fstack-protector-{all,strong,explicit} otherwise.
3330         * config/freebsd.h (LINK_SSP_SPEC): Handle
3331         -fstack-protector-{strong,explicit}.
3333 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
3334             H.J. Lu  <hongjiu.lu@intel.com>
3336         PR ipa/64694
3337         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
3338         heap.
3340 2015-01-22  Wei Mi  <wmi@google.com>
3342         PR rtl-optimization/64557
3343         * dse.c (record_store): Call get_addr for mem_addr.
3344         (check_mem_read_rtx): Likewise.
3346 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3348         * fold-const.c (const_binop): Add early return for non-tcc_binary.
3350 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
3352         * toplev.c (init_local_tick): Process the failure when read
3353         fails for random_seed.
3355         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
3356         'pretty_name' to avoid memory overflow.
3358 2015-01-22  Richard Biener  <rguenther@suse.de>
3360         PR middle-end/64728
3361         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
3362         abnormal coalescing on undefined SSA names.
3364 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
3366         PR target/64688
3367         PR target/64477
3368         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
3369         for alternative 3.
3370         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
3372 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
3374         PR middle-end/63325
3375         * fold-const.c (fold_checksum_tree): Don't include value of
3376         expr->decl_with_vis.symtab_node in the checksum.
3378 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3380         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
3382 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
3384         PR driver/64690
3385         * gcc.c (insert_comments): New function.
3386         (try_generate_repro): Call it.
3387         (append_text): Removed.
3389 2015-01-22  Richard Biener  <rguenther@suse.de>
3391         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
3392         with IL incompatible options.  Properly honor user optimize
3393         attributes.
3395 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
3397         PR rtl-optimization/64682
3398         * combine.c (distribute_notes): When moving a death note for
3399         a register that is set in the new I2, make sure to put it
3400         before that new I2.
3402 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
3404         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
3405         not TARGET_DEFAULT.
3407 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
3409         PR debug/64511
3410         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
3411         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
3412         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
3414         PR sanitizer/64706
3415         * doc/invoke.texi (-fsanitize=vptr): Document.
3417         PR rtl-optimization/62078
3418         * dse.c: Include cfgcleanup.h.
3419         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
3420         anything call purge_all_dead_edges and cleanup_cfg at the end
3421         of the pass.
3423 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
3425         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
3426         edges.
3428 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3430         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
3431         decl attribute.
3433 2015-01-21  David Sherwood  <david.sherwood@arm.com>
3434             Tejas Belagod <Tejas.Belagod@arm.com>
3436         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
3437         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
3438         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
3439         Removed.
3441 2015-01-21  David Sherwood  <david.sherwood@arm.com>
3442             Tejas Belagod <Tejas.Belagod@arm.com>
3444         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
3445         (aarch64_reverse_mask): New decls.
3446         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
3447         (insn_count): New mode_attr.
3448         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
3449         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
3450         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
3451         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
3452         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
3453         (aarch64_simd_st4): New patterns.
3454         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
3455         (aarch64_reverse_mask): New functions.
3457 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
3459         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
3460         Declare.
3461         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
3462         addressing modes for BE.
3463         (aarch64_print_operand): Add 'R' specifier.
3464         (aarch64_simd_disambiguate_copy): Delete.
3465         (aarch64_simd_emit_reg_reg_move): New function.
3466         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
3467         in define_splits for structural moves.
3468         (mov<mode>): Use less restrictive predicates.
3469         (*aarch64_mov<mode>): Simplify and only allow for LE.
3470         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
3472 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
3474         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
3476 2015-01-21  Richard Henderson  <rth@redhat.com>
3478         PR target/64669
3479         * ccmp.c (used_in_cond_stmt_p): Remove.
3480         (expand_ccmp_expr): Don't use it.
3482 2015-01-21  Nick Clifton  <nickc@redhat.com>
3484         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
3485         PARALLELs.
3487 2015-01-21  Richard Biener  <rguenther@suse.de>
3489         PR middle-end/64313
3490         * tree-core.h (builtin_info, builtin_info_type): Turn from
3491         an object with two arrays into an array of an object with
3492         decl and two flags, implicit_p and declared_p.
3493         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
3494         set_builtin_decl, set_builtin_decl_implicit_p,
3495         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
3496         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
3497         * builtins.c (builtin_info): Adjust.
3498         * gimplify.c (gimplify_addr_expr): References to builtins
3499         that have been declared by the user makes them eligible for
3500         use by the compiler.  Call set_builtin_decl_implicit_p on them.
3502 2015-01-20  Jeff Law  <law@redhat.com>
3504         PR target/59946
3505         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
3506         allow pc-relative addresses in operand predicates or constraints.
3508 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
3510         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
3511         neon on aarch32 processors for stringops.
3513 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3515         PR ipa/63576
3516         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
3518 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3520         PR lto/45375
3521         * ipa-inline.c: Include lto-streamer.h
3522         (report_inline_failed_reason): Output source file differences and
3523         flags on optimization/target node mismatch.
3524         (can_inline_edge_p): Consider caller to be the outer inline function;
3525         be less restrictive about matching opimize and optimize_size attributes.
3526         (inline_account_function_p): Break out from ...
3527         (inline_small_functions): ... here.
3528         * ipa-inline-transform.c (clone_inlined_nodes): Use
3529         inline_account_function_p.
3530         (inline_call): Use optimize attribution; use inline_account_function_p.
3531         (inline_transform): Use opt_for_fn.
3532         * ipa-inline.h (inline_account_function_p): Declare.
3534 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
3536         PR debug/64663
3537         * dwarf2out.c (decl_piece_node): Don't put bitsize into
3538         mode if bitsize <= 0.
3539         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
3540         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
3541         sizes and positions.
3543 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
3545         * config/nios2/nios2.c (nios2_asm_file_end): Implement
3546         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
3547         needed.
3548         (TARGET_ASM_FILE_END): Define.
3550 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3552         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
3553         (struct tune_params): Use the enum.
3554         * arm.c (arm_*_tune): Update.
3555         (arm_option_override): Update.
3557 2015-01-20  Richard Biener  <rguenther@suse.de>
3559         PR ipa/64684
3560         * ipa-reference.c (add_static_var): Inline ...
3561         (analyze_function): ... here after splitting out from ...
3562         (is_proper_for_analysis): ... this.
3564 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
3566         PR target/64149
3567         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
3568         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
3569         replace the conditional with it's true branch.
3570         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
3571         (arm_lra_p): Remove.
3573 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
3575         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
3577 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3579         * config/tilegx/mul-tables.c: Move symtab.h include after
3580         coretypes.h include.
3581         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
3582         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
3583         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
3584         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
3585         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
3587 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
3589         PR bootstrap/64676
3590         Revert:
3591         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
3593         PR rtl-optimization/64081
3594         * loop-iv.c (def_pred_latch_p): New function.
3595         (latch_dominating_def): Allow specific cases with non-single
3596         definitions.
3597         (iv_get_reaching_def): Likewise.
3598         (check_complex_exit_p): New function.
3599         (check_simple_exit): Use check_complex_exit_p to allow certain cases
3600         with exits not executing on any iteration.
3602 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3604         PR lto/45375
3605         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
3606         to set branch cost.
3608 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3610         PR lto/45375
3611         * i386.c (gate): Check flag_expensive_optimizations and
3612         optimize_size.
3613         (ix86_option_override_internal): Drop optimize_size condition
3614         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
3615         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
3616         MASK_PREFER_AVX128.
3617         (ix86_avx256_split_vector_move_misalign,
3618         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
3619         * sse.md (all uses of TARGET_PREFER_AVX128): Add
3620         optimize_insn_for_speed_p check.
3622 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
3624         * config/mips/mips.h (FP_ASM_SPEC): New define.
3625         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
3626         instead.
3628 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
3630         PR target/53988
3631         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
3632         nullptr for insn when reaching the first insn.
3633         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
3634         (sh_insn_operands_modified_between_p): Add nullptr check.
3635         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
3636         sign extending mem load if the insn contains any UNSPEC or
3637         UNSPEC_VOLATILE.
3639 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3641         * params.def (inline-unit-growth): Drop to 15%.
3642         * invoke.texi (inline-unit-growth): Document change.
3644 2015-01-19  Martin Liska  <mliska@suse.cz>
3646         PR ipa/64668
3647         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
3648         function for second argument of OBJ_TYPE_REF.
3650 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3652         PR ipa/64218
3653         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
3654         whether function is an alias.
3656 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
3658         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
3659         cases.
3661 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
3663         PR rtl-optimization/64671
3664         * lra-remat.c (operand_to_remat): Don't consider jump and call
3665         insns.
3667 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
3669         * config/rs6000/default64.h: Include rs6000-cpus.def.
3670         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
3671         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
3672         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
3673         and POWER8.
3674         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
3675         POWER8.
3676         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
3677         pseudo-op to specify assembler dialect.
3679 2015-01-19  Martin Liska  <mliska@suse.cz>
3681         PR ipa/64664
3682         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
3683         Handle safe potentially removed nodes during filtering.
3685 2015-01-19  Martin Liska  <mliska@suse.cz>
3687         * doc/extend.texi (no_icf): Add new attribute description.
3688         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
3689         where the pass attempts to merge a function with no_icf attribute.
3691 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3693         PR target/64532
3694         * doc/md.texi (ARM Options): Document register constraints.
3696 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
3697             Andrew Pinski  <apinski@cavium.com>
3699         PR target/64304
3700         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
3701         (ashl<mode>3): Don't expand if operands[2] is not constant.
3703 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3705         PR target/64448
3706         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
3707         Match xor-and-xor RTL pattern.
3709 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
3711         PR rtl-optimization/64081
3712         * loop-iv.c (def_pred_latch_p): New function.
3713         (latch_dominating_def): Allow specific cases with non-single
3714         definitions.
3715         (iv_get_reaching_def): Likewise.
3716         (check_complex_exit_p): New function.
3717         (check_simple_exit): Use check_complex_exit_p to allow certain cases
3718         with exits not executing on any iteration.
3720 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
3722         * common.opt (fgraphite): Fix a typo.
3724 2015-01-19  Felix Yang  <felix.yang@huawei.com>
3726         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
3727         pattern.
3728         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
3729         uminp, smax_nanp, smin_nanp): New builtins.
3730         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
3731         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
3732         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
3733         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
3734         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
3735         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
3736         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
3737         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
3738         vpminnms_f32): Rewrite using builtin functions.
3740 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
3742         PR libgomp/64625
3743         * omp-low.c (offload_symbol_decl): Remove variable.
3744         (get_offload_symbol_decl): Remove function.
3745         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
3746         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
3747         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
3748         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
3749         BUILT_IN_GOACC_UPDATE don't pass it at all.
3751 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3753         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
3754         callers.
3756 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
3758         * ipa-chkp.c (chkp_produce_thunks): Add early param
3759         to split thunks production into two passes.  Keep
3760         'always_inline' function bodies after the first pass.
3761         (pass_data_ipa_chkp_early_produce_thunks): New.
3762         (pass_ipa_chkp_early_produce_thunks): New.
3763         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
3764         chkp_produce_thunks signature.
3765         (make_pass_ipa_chkp_early_produce_thunks): New.
3766         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
3767         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
3768         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
3770 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3772         * cgraph.c (cgraph_node::dump): Dump profile flags.
3774 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
3776         PR target/64652
3777         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
3778         reg appear first in the parallel.
3780 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3782         * ipa-reference.c (set_reference_optimization_summary,
3783         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
3784         disabled.
3785         (ignore_module_statics): New static var.
3786         (propagate_bits): If ipa-reference is disabled, do not look into local
3787         properties.
3788         (analyze_function): Disable analysis when ipa_reference is disabled.
3789         (generate_summary): Do not dump when reference is disabled;
3790         collect vars accessed from functions with ipa-reference disabled.
3791         (get_read_write_all_from_node): When ipa-reference is disabled, use the
3792         node flags.
3793         (gate): Enable for LTO.
3794         (ignore_edge_p): New function.
3795         (propagate): Skip functions w/o ipa-reference analysis.
3796         * optc-save-gen.awk: Handle optimize_debug correctly.
3797         * opth-gen.awk: Likewise.
3798         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
3799         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
3800         fira-share-save-slots, fira-share-spill-slots,
3801         fmodulo-sched-allow-regmoves, fpartial-inlining,
3802         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
3803         ftracer, ftree-parallelize-loops, fassociative-math,
3804         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
3805         Optimization
3806         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
3807         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
3808         Optimization.
3809         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
3810         Fix for IPA.
3812 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
3814         PR ipa/64378
3815         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
3816         flag correctly.
3817         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
3819 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
3821         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
3822         Remove duplicate option listings.
3824 2015-01-18  Felix Yang  <felix.yang@huawei.com>
3826         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
3827         (autofdo_source_profile::get_callsite_total_count,
3828         function_instance::get_function_instance_by_decl,
3829         string_table::get_index, string_table::get_index_by_decl,
3830         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
3831         Fix comment typos. Reformatting and minor code rearrangement.
3833 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3835         * config/rs6000/rs6000.md (probe_stack): Delete.
3836         (probe_stack_address): New.
3838 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3840         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
3841         to test for 32-bit ABIs, not !TARGET_POWERPC64.
3843 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
3845         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
3846         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
3847         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
3848         snafu.
3849         (rs6000_libcall_value): Use the new function.
3851 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
3853         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
3855 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3857         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
3858         implement a more precise life analysis for it during backward scan.
3860 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3862         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
3864 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
3866         PR rtl-optimization/52773
3867         * calls.c (emit_library_call_value): When pushing arguments use
3868         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
3869         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
3870         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
3872 2015-01-17  Jeff Law  <law@redhat.com>
3874         PR rtl-optimization/32790
3875         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
3876         not ZERO_EXTEND in SET_DESTs.
3878 2015-01-17  Alan Modra  <amodra@gmail.com>
3880         * cprop.c (do_local_cprop): Revert last change.
3882 2015-01-16  DJ Delorie  <dj@redhat.com>
3883             Nick Clifton  <nickc@redhat.com>
3885         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
3886         (addhi3_real): Likewise.  Fix [HL+0] syntax.
3887         (subqi3_real): Likewise.
3888         (subhi3_real): Likewise.
3889         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
3890         (cbranchhi4_real): Likewise.
3891         (cbranchhi4_real_inverted): Likewise.
3892         (cbranchsi4_real_lt): Likewise.
3893         (cbranchsi4_real_ge): Likewise.
3894         (cbranchsi4_real_ge): Likewise.
3895         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
3896         (sub<mode>3_virt): Likewise.
3897         (cbranchqi4_virt): Likewise.
3898         (cbranchhi4_virt): Likewise.
3899         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
3900         always use '[reg+imm]' even when imm is zero.
3901         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
3902         (rl78_general_operand): New.
3903         (rl78_nonimmediate_operand): New.
3904         (rl78_nonfar_operand): Use them.
3905         (rl78_nonfar_nonimm_operand): Likewise.
3906         (rl78_stack_based_mem): Fix.
3907         * config/rl78/constraints.md (Ibqi): New.
3908         (IBqi): New.
3909         (Wsa): New.
3910         (Wsf): New.
3911         (Cs1): Fix.
3912         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
3913         (iorqi3): Likewise.
3914         (xorqi3): Likewise.
3915         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
3917         * config/rl78/constrains (Qs8): New constraint.
3918         * config/rl78/rl78.c (rl78_flags_already_set): New function.
3919         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
3920         * config/rl78/rl78-real.md (update_Z): New attribute.
3921         Update patterns to set it.
3922         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
3923         shorter compare and branch sequence can be used.
3924         (cbranchhi4_real): Likewise.
3925         (cbranchhi4_real_inverted): Likewise.
3927         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
3928         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
3929         address space.
3930         * config/rl78/rl78.c (rl78_get_name_encoding): New.
3931         (rl78_option_override): Allow -mes0 only if C.
3932         (characterize_address): Support subregs of symbol_refs.
3933         (rl78_addr_space_address_mode): Move.  Add __near.
3934         (rl78_far_p): Likewise.
3935         (rl78_addr_space_pointer_mode): Likewise.
3936         (rl78_as_legitimate_address): Likewise.
3937         (rl78_addr_space_subset_p): Likewise.
3938         (rl78_addr_space_convert): Likewise.
3939         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
3940         symbols with -mes0.
3941         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
3942         addressing.
3943         (rl78_alloc_physical_registers_op1): Change logic to prefer
3944         symbol[BC] addressing.
3945         (frodata_section): New.
3946         (rl78_asm_init_sections): Initialize it.
3947         (rl78_select_section): Put __far readonly symbols in .frodata.
3948         (rl78_make_type_far): New.
3949         (rl78_insert_attributes): Force all readonly symbols to be
3950         __far when -mes0.
3951         (rl78_asm_out_integer): New.
3952         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
3953         * config/rl78/rl78.opt (-mes0): New.
3955         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
3956         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3957         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3958         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
3959         (rl78_saddr_p): New.
3960         (rl78_output_aligned_common): New.
3961         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
3962         (rl78_handle_saddr_attribute): New.
3963         (rl78_handle_naked_attribute): New.
3964         (rl78_attribute_table): Add saddr.
3965         (rl78_print_operand_1): Don't print '!' on saddr operands.
3966         (rl78_print_operand_1): Strip encodings.
3967         (rl78_sfr_p): New.
3968         (rl78_strip_name_encoding): New.
3969         (rl78_attrlist_to_encoding): New.
3970         (rl78_encode_section_info): New.
3971         (rl78_asm_init_sections): New.
3972         (rl78_select_section): New.
3973         (rl78_output_labelref): New.
3974         (rl78_output_aligned_common): New.
3975         (rl78_asm_out_integer): New.
3976         (rl78_asm_ctor_dtor): New.
3977         (rl78_asm_constructor): New.
3978         (rl78_asm_destructor): New.
3980         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
3981         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
3982         (transcode_memory_rtx): Update.
3983         (rl78_expand_epilogue): Use A_REG instead of 0.
3985 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
3987         * config/arm/arm-protos.h (struct tune_params): New field
3988         sched_autopref_queue_depth.
3989         * config/arm/arm.c (sched-int.h): Include header.
3990         (arm_first_cycle_multipass_dfa_lookahead_guard,)
3991         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
3992         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
3993         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
3994         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
3995         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
3996         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
3997         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
3998         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
3999         * config/arm/t-arm (arm.o): Update.
4000         * haifa-sched.c (update_insn_after_change): Update.
4001         (rank_for_schedule): Use auto-prefetcher model, if requested.
4002         (autopref_multipass_init): New static function.
4003         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
4004         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
4005         variable for debug dumps.
4006         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
4007         (autopref_multipass_dfa_lookahead_guard): New global function that
4008         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
4009         (init_h_i_d): Update.
4010         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
4011         * sched-int.h (enum autopref_multipass_data_status): New const enum.
4012         (autopref_multipass_data_): Structure for auto-prefetcher data.
4013         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
4014         (struct _haifa_insn_data:autopref_multipass_data): New field.
4015         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
4016         (autopref_multipass_dfa_lookahead_guard): Declare.
4018 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4020         * rtlanal.c (get_base_term): Handle SCRATCH.
4022 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
4024         * config/aarch64/aarch64.c
4025         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
4026         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4027         * config/arm/arm.c
4028         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
4029         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
4031 2015-01-17  Alan Modra  <amodra@gmail.com>
4033         * cprop.c (do_local_cprop): Disallow replacement of fixed
4034         hard registers.
4036 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4038         PR target/62066
4039         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
4040         early return 0.
4042 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4044         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
4045         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
4047 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4049         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
4050         * config/arm/thumb1.md: ... Here.
4052 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4054         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
4055         TImode for TARGET_32BIT.
4057 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4059         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
4060         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
4061         as ...
4062         (rs6000_abi_word_mode): New function.
4064 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4066         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
4067         instead of UNITS_PER_WORD to describe the size of stack slots.
4069 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4071         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
4072         as rs6000_promote_function_mode.  Move comment to there.
4073         (rs6000_promote_function_mode): New function.
4075 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
4077         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
4078         -mpowerpc64 is active.
4080 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
4082         PR middle-end/64353
4083         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
4084         virtuals on start.
4086 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
4088         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
4089         introduced in revision 219724.
4091 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4092             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4094         PR target/64263
4095         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
4096         destination is not a GP reg.
4097         (*movdi_aarch64): Likewise.
4099 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
4101         PR target/64623
4102         * config/rs6000/default64.h: Revert ISA change.
4104 2015-01-16  Richard Biener  <rguenther@suse.de>
4106         PR middle-end/64614
4107         * tree-ssa-uninit.c: Include tree-cfg.h.
4108         (MAX_SWITCH_CASES): New define.
4109         (convert_control_dep_chain_into_preds): Handle switch statements.
4110         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
4111         (normalize_one_pred_1): Do not split bit-manipulations.
4112         Record (x & CST).
4114 2015-01-16  Richard Biener  <rguenther@suse.de>
4116         PR tree-optimization/64568
4117         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
4118         complex load rewriting for TARGET_MEM_REFs.
4120 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
4122         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
4124 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
4126         PR target/64149
4127         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
4128         variable.
4129         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
4130         (aarch64_lra_p): Remove.
4132 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
4134         PR target/64363
4135         * ipa-chkp.h (chkp_instrumentable_p): New.
4136         * ipa-chkp.c: Include tree-inline.h.
4137         (chkp_instrumentable_p): New.
4138         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
4139         Fix processing of not instrumentable functions.
4140         (chkp_versioning): Use chkp_instrumentable_p. Warn about
4141         not instrumentable functions.
4142         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
4143         chkp_instrumentable_p.
4144         * tree-inline.h (copy_forbidden): New.
4145         * tree-inline.c (copy_forbidden): Not static anymore.
4147 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4149         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
4150         ptr1, ptr2 unused.
4152 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4154         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
4155         type OP_OUT to OP_INOUT.
4157 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
4159         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
4160         (high x) y) to y if x and y have the same base.
4162 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
4164         * config/arm/cortex-a57.md: New.
4165         * config/aarch64/aarch64.md: Include it.
4166         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
4167         * config/aarch64/aarch64-tune.md: Regenerate.
4169 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4171         PR target/64015
4172         * ccmp.c (expand_ccmp_next): New function.
4173         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
4174         and compare insn sequence.
4175         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
4176         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
4177         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
4178         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
4179         (*ccmp_ior): Changed to ccmp_ior<mode>.
4180         (cmp<mode>): New pattern.
4181         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
4182         parameters.
4183         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
4185 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
4187         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
4188         _mm256_bsrli_epi128): New.
4189         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
4191 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
4193         * expmed.c (store_bit_field_using_insv): Improve warning message.
4194         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
4196 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
4198         PR rtl-optimization/64011
4199         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
4200         there is partial overflow.
4202 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4204         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
4205         prototype.
4206         (nds32_expand_epilogue_v3pop): Likewise.
4207         * config/nds32/nds32.md (sibcall): Define this for sibling call
4208         optimization.
4209         (sibcall_register): Likewise.
4210         (sibcall_immediate): Likewise.
4211         (sibcall_value): Likewise.
4212         (sibcall_value_register): Likewise.
4213         (sibcall_value_immediate): Likewise.
4214         (sibcall_epilogue): Likewise.
4215         (epilogue): Pass false to indicate this is not a sibcall epilogue.
4216         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
4217         (nds32_expand_epilogue_v3pop): Likewise.
4219 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4221         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
4222         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
4223         (return_internal): New.
4224         (return): Define this named pattern.
4225         (simple_return): Define this named pattern.
4226         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
4227         pattern instead of unspec_volatile_func_return.
4228         (nds32_expand_epilogue_v3pop): Likewise.
4229         (nds32_can_use_return_insn): New function.
4231 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4233         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
4234         * config/nds32/nds32.md (pop25return): New.
4235         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
4236         pop25return pattern.
4238 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4240         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
4241         -mforbid-fp-as-gp, and -mex9 options.
4243 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
4245         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
4246         remove -mgp-direct option.
4248 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4250         * doc/invoke.texi (--param early-inlining-insns): Update default value.
4251         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
4253 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4255         * ipa-inline.c (inline_small_functions): Work around hints
4256         cache issue.
4258 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
4260         PR target/59710
4261         * doc/invoke.texi (Option Summary): Document new Nios II
4262         -mgpopt= syntax.
4263         (Nios II Options): Likewise.
4264         * config/nios2/nios2.opt: Add -mgpopt= option support.
4265         Modify existing -mgpopt and -mno-gpopt options to be aliases.
4266         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
4267         * config/nios2/nios2.c (nios2_option_override): Adjust
4268         -mgpopt defaulting.
4269         (nios2_in_small_data_p): Return true for explicit small data
4270         sections even with -G0.
4271         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
4272         option choices.
4274 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4276         PR ipa/64612
4277         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
4278         of comdat locals.
4279         (inline_call): Fix removal of aliases.
4281 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
4283         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
4284         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
4285         * opts.c (common_handle_option): Add -fsanitize=vptr.
4286         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
4287         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
4288         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
4289         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
4290         (ubsan_expand_vptr_ifn): New prototype.
4291         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
4292         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
4293         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
4294         expand_LOOP_VECTORIZED): Make argument nameless, remove
4295         ATTRIBUTE_UNUSED.
4296         (expand_UBSAN_VPTR): New function.
4297         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
4298         in fn spec.
4299         (UBSAN_VPTR): New internal function.
4300         * sanopt.c (tree_map_traits): Renamed to ...
4301         (sanopt_tree_map_traits): ... this.
4302         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
4303         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
4304         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
4305         (maybe_optimize_ubsan_vptr_ifn): New function.
4306         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
4307         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
4308         -fsanitize=vptr.
4309         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
4310         internal calls like pure functions for aliasing, even when they
4311         have other side-effects that prevent making them ECF_PURE.
4312         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
4313         (ubsan_expand_vptr_ifn): New function.
4315 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4317         PR rtl-optimization/64110
4318         * stmt.c (parse_output_constraint): Process '^' and '$'.
4319         (parse_input_constraint): Ditto.
4320         * lra-constraints.c (process_alt_operands): Process the new
4321         constraints.
4322         * ira-costs.c (record_reg_classes): Process the new constraint
4323         '^'.
4324         * genoutput.c (indep_constraints): Add '^' and '$'.
4325         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
4326         * doc/md.texi: Add description of the new constraints.
4328 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
4329             Bernd Schmidt  <bernds@codesourcery.com>
4330             Cesar Philippidis  <cesar@codesourcery.com>
4331             James Norris  <jnorris@codesourcery.com>
4332             Tom de Vries  <tom@codesourcery.com>
4333             Ilmir Usmanov  <i.usmanov@samsung.com>
4334             Dmitry Bocharnikov  <dmitry.b@samsung.com>
4335             Evgeny Gavrin  <e.gavrin@samsung.com>
4336             Jakub Jelinek  <jakub@redhat.com>
4338         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
4339         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
4340         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
4341         New function types.
4342         * builtins.c: Include "gomp-constants.h".
4343         (expand_builtin_acc_on_device): New function.
4344         (expand_builtin, is_inexpensive_builtin): Handle
4345         BUILT_IN_ACC_ON_DEVICE.
4346         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
4347         New macros.
4348         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
4349         flag_openmp.
4350         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
4351         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
4352         i386/intelmic-offload.h.
4353         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
4354         to libgomp and its dependencies.
4355         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
4356         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
4357         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
4358         * config/ia64/hpux.h (LIB_SPEC): Likewise.
4359         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
4360         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
4361         * doc/generic.texi: Update for OpenACC changes.
4362         * doc/gimple.texi: Likewise.
4363         * doc/invoke.texi: Likewise.
4364         * doc/sourcebuild.texi: Likewise.
4365         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
4366         GF_OMP_FOR_KIND_OACC_LOOP.
4367         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
4368         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
4369         GF_OMP_TARGET_KIND_OACC_UPDATE,
4370         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4371         Dump more data.
4372         * gimple.c: Update comments for OpenACC changes.
4373         * gimple.def: Likewise.
4374         * gimple.h: Likewise.
4375         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
4376         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4377         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
4378         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
4379         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
4380         appropriate place.
4381         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
4382         * gimplify.c: Include "gomp-constants.h".
4383         Update comments for OpenACC changes.
4384         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
4385         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
4386         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4387         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4388         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4389         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4390         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
4391         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4392         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
4393         OMP_CLAUSE_SEQ.
4394         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
4395         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
4396         OMP_CLAUSE_SET_MAP_KIND.
4397         (gimplify_oacc_cache): New function.
4398         (gimplify_omp_for): Handle OACC_LOOP.
4399         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
4400         OACC_DATA.
4401         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
4402         OACC_EXIT_DATA, OACC_UPDATE.
4403         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
4404         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
4405         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
4406         (gimplify_body): Consider flag_openacc next to flag_openmp.
4407         * lto-streamer-out.c: Include "gomp-constants.h".
4408         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
4409         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
4410         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
4411         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
4412         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
4413         (BUILT_IN_ACC_ON_DEVICE): New builtins.
4414         * omp-low.c: Include "gomp-constants.h".
4415         Update comments for OpenACC changes.
4416         (struct omp_context): Add reduction_map, gwv_below, gwv_this
4417         members.
4418         (extract_omp_for_data, use_pointer_for_field, install_var_field)
4419         (new_omp_context, delete_omp_context, scan_sharing_clauses)
4420         (create_omp_child_function, scan_omp_for, scan_omp_target)
4421         (check_omp_nesting_restrictions, lower_reduction_clauses)
4422         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
4423         Update for OpenACC changes.
4424         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
4425         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
4426         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
4427         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
4428         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
4429         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
4430         OMP_CLAUSE_MAP_*.
4431         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4432         Handle GF_OMP_FOR_KIND_OACC_LOOP.
4433         (expand_omp_target, lower_omp_target): Handle
4434         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
4435         GF_OMP_TARGET_KIND_OACC_UPDATE,
4436         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
4437         GF_OMP_TARGET_KIND_OACC_DATA.
4438         (pass_expand_omp::execute, execute_lower_omp)
4439         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
4440         flag_openmp.
4441         (offload_symbol_decl): New variable.
4442         (oacc_get_reduction_array_id, oacc_max_threads)
4443         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
4444         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
4445         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
4446         (oacc_gimple_assign, oacc_initialize_reduction_data)
4447         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
4448         functions.
4449         (is_targetreg_ctx): Remove function.
4450         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
4451         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
4452         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
4453         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
4454         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
4455         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
4456         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
4457         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
4458         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
4459         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
4460         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
4461         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
4462         * tree-core.h: Update comments for OpenACC changes.
4463         (enum omp_clause_map_kind): Remove.
4464         (struct tree_omp_clause): Change type of map_kind member from enum
4465         omp_clause_map_kind to unsigned char.
4466         * tree-inline.c: Update comments for OpenACC changes.
4467         * tree-nested.c: Likewise.  Include "gomp-constants.h".
4468         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
4469         (convert_tramp_reference_stmt, convert_gimple_call): Update for
4470         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
4471         OMP_CLAUSE_SET_MAP_KIND.
4472         * tree-pretty-print.c: Include "gomp-constants.h".
4473         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
4474         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
4475         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
4476         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
4477         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
4478         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
4479         instead of OMP_CLAUSE_MAP_*.
4480         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
4481         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
4482         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
4483         * tree-streamer-in.c: Include "gomp-constants.h".
4484         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
4485         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
4486         * tree-streamer-out.c: Include "gomp-constants.h".
4487         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
4488         OMP_CLAUSE_MAP_*.
4489         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
4490         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
4491         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
4492         * tree.c (omp_clause_num_ops): Update accordingly.
4493         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
4494         Likewise.
4495         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
4496         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
4497         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
4498         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
4499         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
4500         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
4501         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
4502         (OMP_CLAUSE_SET_MAP_KIND): New macro.
4503         * varpool.c (varpool_node::get_create): Consider flag_openacc next
4504         to flag_openmp.
4505         * config/i386/intelmic-offload.h: New file.
4506         * config/nvptx/offload.h: Likewise.
4508 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4510         * explow.h: Remove duplicate contents.
4511         * dojump.h: Likewise.
4513 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
4515         * arm.c (arm_xgene_tune): Add default initializer for instruction
4516         fusion.
4518 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
4520         PR ipa/64068
4521         PR ipa/64559
4522         * ipa.c (symbol_table::remove_unreachable_nodes):
4523         Do not put abstract origins into boundary.
4525 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
4527         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
4528         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
4530 2015-01-15  Steve Ellcey  <sellcey@mips.com>
4532         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
4533         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
4534         builtins.def, and chkp-builtins.def.
4536 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
4538         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
4539         ISA 2.7 (POWER8).
4541 2015-01-15  Richard Biener  <rguenther@suse.de>
4543         PR tree-optimization/61743
4544         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
4545         information on PHIs for some simple cases.
4547 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4549         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
4550         Include xgene1.md.
4551         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
4552         * config/arm/arm-cores.def (xgene1): New entry.
4553         * config/arm/arm-tables.opt: Regenerate.
4554         * config/arm/arm-tune.md: Regenerate.
4555         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
4557 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
4559         * tree-if-conv.c: Include hash-map.h.
4560         (aggressive_if_conv): New variable.
4561         (fold_build_cond_expr): Add simplification of non-zero condition.
4562         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
4563         destination block is not always executed.
4564         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
4565         than two predecessors if AGGRESSIVE_IF_CONV is true.
4566         (if_convertible_stmt_p): Fix commentary.
4567         (all_preds_critical_p): New function.
4568         (has_pred_critical_p): New function.
4569         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
4570         BB can have more than two predecessors and all incoming edges can be
4571         critical.
4572         (predicate_bbs): Skip predication for loop exit block, use build2_loc
4573         to compute predicate for true edge.
4574         (find_phi_replacement_condition): Delete this function.
4575         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
4576         Allow interchange PHI arguments if EXTENDED is false.
4577         Change check that block containing reduction statement candidate
4578         is predecessor of phi-block since phi may have more than two arguments.
4579         (phi_args_hash_traits): New helper structure.
4580         (struct phi_args_hash_traits): New type.
4581         (phi_args_hash_traits::hash): New function.
4582         (phi_args_hash_traits::equal_keys): New function.
4583         (gen_phi_arg_condition): New function.
4584         (predicate_scalar_phi): Add handling of phi nodes with more than two
4585         arguments, delete COND and TRUE_BB arguments, insert body of
4586         find_phi_replacement_condition to predicate ordinary phi nodes.
4587         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
4588         delete call of find_phi_replacement_condition and invoke
4589         predicate_scalar_phi with two arguments.
4590         (insert_gimplified_predicates): Add assert that non-predicated block
4591         don't have statements to insert.
4592         (ifcvt_split_critical_edges): New function.
4593         (ifcvt_split_def_stmt): Likewise.
4594         (ifcvt_walk_pattern_tree): Likewise.
4595         (stmt_is_root_of_bool_pattern): Likewise.
4596         (ifcvt_repair_bool_pattern): Likewise.
4597         (ifcvt_local_dce): Likewise.
4598         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
4599         is copy of inner or outer loop force_vectorize field, invoke
4600         ifcvt_split_critical_edges, ifcvt_local_dce and
4601         ifcvt_repair_bool_pattern for aggressive if-conversion.
4603 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
4605         * config/aarch64/aarch64.md: Include xgene1.md.
4606         * config/aarch64/xgene1.md: New file.
4608 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
4610         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
4611         xgene1 (APM XGene-1) core definition.
4612         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
4613         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
4614         * doc/invoke.texi: Document -mcpu=xgene1.
4616 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4618         * dojump.h: New header file.
4619         * explow.h: Likewise.
4620         * expr.h: Remove includes.
4621         Move expmed.c prototypes to expmed.h.
4622         Move dojump.c prototypes to dojump.h.
4623         Move alias.c prototypes to alias.h.
4624         Move explow.c prototypes to explow.h.
4625         Move calls.c prototypes to calls.h.
4626         Move emit-rtl.c prototypes to emit-rtl.h.
4627         Move varasm.c prototypes to varasm.h.
4628         Move stmt.c prototypes to stmt.h.
4629         (saved_pending_stack_adjust): Move to dojump.h.
4630         (adjust_address): Move to explow.h.
4631         (adjust_address_nv): Move to emit-rtl.h.
4632         (adjust_bitfield_address): Likewise.
4633         (adjust_bitfield_address_size): Likewise.
4634         (adjust_bitfield_address_nv): Likewise.
4635         (adjust_automodify_address_nv): Likewise.
4636         * explow.c (expr_size): Move to expr.c.
4637         (int_expr_size): Likewise.
4638         (tree_expr_size): Likewise.
4639         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4640         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4641         * genemit.c (main): Generate includes statistics.h, real.h,
4642         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
4643         stmt.h.
4644         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
4645         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
4646         explow.h, emit-rtl.h, stmt.h.
4647         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
4648         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
4649         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
4650         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
4651         emit-rtl.h, varasm.h, stmt.h.
4652         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
4653         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
4654         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
4655         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
4656         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
4657         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
4658         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
4659         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
4660         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
4661         tm.h tree.h varasm.h vec.h wide-int.h.
4662         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4663         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4664         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
4665         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
4666         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
4667         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
4668         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
4669         * loop-iv.c: Likewise.
4670         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
4671         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
4672         statistics.h stmt.h tree.h varasm.h wide-int.h.
4673         * lra-constraints.c: Likewise.
4674         * lra-eliminations.c: Likewise.
4675         * lra-lives.c: Likewise.
4676         * lra-remat.c: Likewise.
4677         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4678         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
4679         statistics.h stmt.h tree.h varasm.h wide-int.h.
4680         * hw-doloop.c: Likewise.
4681         * ira-color.c: Likewise.
4682         * ira-emit.c: Likewise.
4683         * loop-doloop.c: Likewise.
4684         * loop-invariant.c: Likewise.
4685         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4686         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
4687         statistics.h stmt.h tree.h varasm.h wide-int.h.
4688         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
4689         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
4690         statistics.h stmt.h tree.h varasm.h wide-int.h.
4691         * combine-stack-adj.c: Likewise.
4692         * cse.c: Likewise.
4693         * ddg.c: Likewise.
4694         * ifcvt.c: Likewise.
4695         * ira-costs.c: Likewise.
4696         * jump.c: Likewise.
4697         * lra-coalesce.c: Likewise.
4698         * lra-spills.c: Likewise.
4699         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4700         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
4701         stmt.h varasm.h wide-int.h.
4702         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
4703         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4704         varasm.h.
4705         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
4706         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
4707         statistics.h stmt.h varasm.h wide-int.h.
4708         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
4709         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
4710         varasm.h wide-int.h.
4711         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
4712         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4713         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
4714         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
4715         statistics.h stmt.h.
4716         * config/tilepro/tilepro.c: Likewise.
4717         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
4718         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
4719         * config/pdp11/pdp11.c: Likewise.
4720         * config/xtensa/xtensa.c: Likewise.
4721         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
4722         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
4723         varasm.h.
4724         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4725         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4726         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
4727         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4728         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
4729         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
4730         * rtl-chkp.c: Likewise.
4731         * tree-chkp-opt.c: Likewise.
4732         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
4733         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
4734         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
4735         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4736         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4737         statistics.h stmt.h.
4738         * tree-vect-data-refs.c: Likewise.
4739         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
4740         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4741         rtl.h statistics.h stmt.h varasm.h.
4742         * internal-fn.c: Likewise.
4743         * ipa-icf-gimple.c: Likewise.
4744         * lto-section-out.c: Likewise.
4745         * tree-data-ref.c: Likewise.
4746         * tree-nested.c: Likewise.
4747         * tree-outof-ssa.c: Likewise.
4748         * tree-predcom.c: Likewise.
4749         * tree-pretty-print.c: Likewise.
4750         * tree-scalar-evolution.c: Likewise.
4751         * tree-ssa-strlen.c: Likewise.
4752         * tree-vect-loop.c: Likewise.
4753         * tree-vect-patterns.c: Likewise.
4754         * tree-vect-slp.c: Likewise.
4755         * tree-vect-stmts.c: Likewise.
4756         * tsan.c: Likewise.
4757         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4758         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
4759         stmt.h.
4760         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
4761         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4762         statistics.h stmt.h varasm.h.
4763         * loop-unroll.c: Likewise.
4764         * ubsan.c: Likewise.
4765         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
4766         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
4767         stmt.h varasm.h.
4768         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4769         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
4770         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
4771         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4772         statistics.h stmt.h.
4773         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
4774         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
4775         statistics.h stmt.h varasm.h.
4776         * gimple-match-head.c: Likewise.
4777         * lto-cgraph.c: Likewise.
4778         * lto-section-in.c: Likewise.
4779         * lto-streamer-in.c: Likewise.
4780         * lto-streamer-out.c: Likewise.
4781         * tree-affine.c: Likewise.
4782         * tree-cfg.c: Likewise.
4783         * tree-cfgcleanup.c: Likewise.
4784         * tree-if-conv.c: Likewise.
4785         * tree-into-ssa.c: Likewise.
4786         * tree-ssa-alias.c: Likewise.
4787         * tree-ssa-copyrename.c: Likewise.
4788         * tree-ssa-dse.c: Likewise.
4789         * tree-ssa-forwprop.c: Likewise.
4790         * tree-ssa-live.c: Likewise.
4791         * tree-ssa-math-opts.c: Likewise.
4792         * tree-ssa-pre.c: Likewise.
4793         * tree-ssa-sccvn.c: Likewise.
4794         * tree-tailcall.c: Likewise.
4795         * tree-vect-generic.c: Likewise.
4796         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4797         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
4798         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4799         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
4800         * varasm.c: Likewise.
4801         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4802         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
4803         varasm.h.
4804         * init-regs.c: Likewise.
4805         * ira.c: Likewise.
4806         * omp-low.c: Likewise.
4807         * stack-ptr-mod.c: Likewise.
4808         * tree-ssa-reassoc.c: Likewise.
4809         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4810         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
4811         varasm.h.
4812         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4813         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
4814         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4815         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
4816         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4817         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
4818         * tree-ssa-phiopt.c: Likewise.
4819         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4820         fixed-value.h hashtab.h real.h statistics.h stmt.h.
4821         * config/fr30/fr30.c: Likewise.
4822         * config/frv/frv.c: Likewise.
4823         * expr.c: Likewise.
4824         * final.c: Likewise.
4825         * optabs.c: Likewise.
4826         * passes.c: Likewise.
4827         * simplify-rtx.c: Likewise.
4828         * stmt.c: Likewise.
4829         * toplev.c: Likewise.
4830         * var-tracking.c: Likewise.
4831         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4832         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4833         * lower-subreg.c: Likewise.
4834         * postreload-gcse.c: Likewise.
4835         * ree.c: Likewise.
4836         * reginfo.c: Likewise.
4837         * store-motion.c: Likewise.
4838         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4839         fixed-value.h hashtab.h real.h stmt.h varasm.h.
4840         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4841         fixed-value.h hashtab.h statistics.h stmt.h.
4842         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4843         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
4844         * except.c: Likewise.
4845         * explow.c: Likewise.
4846         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4847         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
4848         varasm.h.
4849         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4850         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
4851         * tree-ssa-structalias.c: Likewise.
4852         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4853         fixed-value.h insn-config.h real.h statistics.h.
4854         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4855         fixed-value.h insn-config.h real.h statistics.h stmt.h.
4856         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4857         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4858         * cfgbuild.c: Likewise.
4859         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4860         fixed-value.h real.h rtl.h statistics.h stmt.h.
4861         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4862         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4863         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4864         fixed-value.h real.h statistics.h stmt.h.
4865         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
4866         fixed-value.h real.h statistics.h stmt.h varasm.h.
4867         * cprop.c: Likewise.
4868         * modulo-sched.c: Likewise.
4869         * postreload.c: Likewise.
4870         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4871         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
4872         statistics.h stmt.h varasm.h.
4873         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
4874         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4875         rtl.h statistics.h stmt.h varasm.h.
4876         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
4877         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
4878         varasm.h.
4879         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
4880         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
4881         varasm.h.
4882         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
4883         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
4884         varasm.h.
4885         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
4886         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4887         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4888         function.h real.h statistics.h stmt.h varasm.h.
4889         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4890         insn-config.h real.h statistics.h stmt.h.
4891         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
4892         statistics.h stmt.h.
4893         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
4894         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
4895         statistics.h stmt.h varasm.h.
4896         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
4897         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
4898         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4899         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
4900         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
4901         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
4902         statistics.h stmt.h varasm.h.
4903         * ipa-polymorphic-call.c: Likewise.
4904         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
4905         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4906         statistics.h stmt.h.
4907         * config/c6x/c6x.c: Likewise.
4908         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
4909         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
4910         statistics.h stmt.h varasm.h.
4911         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
4912         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
4913         stmt.h varasm.h.
4914         * ipa-split.c: Likewise.
4915         * tree-eh.c: Likewise.
4916         * tree-ssa-dce.c: Likewise.
4917         * tree-ssa-loop-niter.c: Likewise.
4918         * tree-vrp.c: Likewise.
4919         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
4920         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
4921         stmt.h.
4922         * config/nds32/nds32-fp-as-gp.c: Likewise.
4923         * config/nds32/nds32-intrinsic.c: Likewise.
4924         * config/nds32/nds32-isr.c: Likewise.
4925         * config/nds32/nds32-md-auxiliary.c: Likewise.
4926         * config/nds32/nds32-memory-manipulation.c: Likewise.
4927         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4928         * config/nds32/nds32-predicates.c: Likewise.
4929         * config/nds32/nds32.c: Likewise.
4930         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
4931         fixed-value.h hashtab.h real.h statistics.h.
4932         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
4933         fixed-value.h hashtab.h real.h statistics.h stmt.h.
4934         * config/arm/arm.c: Likewise.
4935         * config/avr/avr.c: Likewise.
4936         * config/bfin/bfin.c: Likewise.
4937         * config/h8300/h8300.c: Likewise.
4938         * config/i386/i386.c: Likewise.
4939         * config/ia64/ia64.c: Likewise.
4940         * config/iq2000/iq2000.c: Likewise.
4941         * config/m32c/m32c.c: Likewise.
4942         * config/m32r/m32r.c: Likewise.
4943         * config/m68k/m68k.c: Likewise.
4944         * config/mcore/mcore.c: Likewise.
4945         * config/mep/mep.c: Likewise.
4946         * config/mips/mips.c: Likewise.
4947         * config/mn10300/mn10300.c: Likewise.
4948         * config/moxie/moxie.c: Likewise.
4949         * config/pa/pa.c: Likewise.
4950         * config/rl78/rl78.c: Likewise.
4951         * config/rx/rx.c: Likewise.
4952         * config/s390/s390.c: Likewise.
4953         * config/sh/sh.c: Likewise.
4954         * config/sparc/sparc.c: Likewise.
4955         * config/spu/spu.c: Likewise.
4956         * config/stormy16/stormy16.c: Likewise.
4957         * config/v850/v850.c: Likewise.
4958         * config/vax/vax.c: Likewise.
4959         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
4960         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
4961         * config/msp430/msp430.c: Likewise.
4962         * predict.c: Likewise.
4963         * value-prof.c: Likewise.
4964         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
4965         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
4966         * config/microblaze/microblaze.c: Likewise.
4967         * config/nios2/nios2.c: Likewise.
4968         * config/rs6000/rs6000.c: Likewise.
4969         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4970         insn-config.h real.h rtl.h statistics.h stmt.h.
4971         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
4972         insn-config.h real.h statistics.h stmt.h.
4973         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
4974         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
4975         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
4976         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
4977         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
4978         fixed-value.h real.h statistics.h stmt.h.
4979         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
4980         fixed-value.h statistics.h stmt.h.
4981         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
4982         stmt.h.
4984 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
4986         * gengtype.c (create_user_defined_type): Workaround
4987         -Wmaybe-uninitialized false positives.
4988         * cse.c (fold_rtx): Likewise.
4989         * loop-invariant.c (gain_for_invariant): Likewise.
4991 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
4993         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
4994         set the memory attributes in all cases but clear MEM_EXPR if need be.
4996 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
4998         PR tree-optimization/64434
4999         * cfgexpand.c (reorder_operands): New function.
5000         (expand_gimple_basic_block): Insert call of reorder_operands if
5001         optimized is true.
5003 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
5005         * config/mips/micromips.md (*swp): Remove explicit parallel.
5006         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
5007         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
5008         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
5009         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
5010         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
5011         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
5012         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
5013         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
5014         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
5015         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
5016         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
5017         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
5018         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
5019         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
5020         (mips_wrdsp): Likewise.
5021         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
5022         parallel.
5023         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
5024         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
5025         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
5026         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
5027         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
5028         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
5029         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
5030         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
5031         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
5033 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5035         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
5036         (mips_print_operand): Support 'y' to print exact log2 in decimal
5037         of a const_int.
5038         * config/mips/mips.h (ISA_HAS_LSA): New define.
5039         (ISA_HAS_DLSA): Likewise.
5040         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
5041         * config/mips/predicates.md (const_immlsa_operand): New predicate.
5043 2015-01-15  Martin Liska  <mliska@suse.cz>
5045         PR target/64377
5046         * optc-save-gen.awk: Add support for array types.
5048 2015-01-15  Richard Biener  <rguenther@suse.de>
5050         PR middle-end/64365
5051         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
5052         for MEM_REF access functions with the same base can never partially
5053         overlap.
5055 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
5057         * common.opt: New option -fstack-protector-explicit.
5058         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
5059         (stack_protect_decl_phase): Handle stack_protect attribute for
5060         explicit stack protection requests.
5061         (expand_used_vars): Similarly.
5062         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
5063         * doc/extend.texi: Add documentation for "stack_protect" attribute.
5064         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
5066 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
5068         PR target/53988
5069         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
5070         reg-reg copies.
5071         (sh_extending_set_of_reg): New struct.
5072         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
5073         sh_remove_reg_dead_or_unused_notes): New Declarations.
5074         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
5075         sh_find_extending_set_of_reg, sh_split_tst_subregs,
5076         sh_extending_set_of_reg::use_as_extended_reg): New functions.
5077         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
5078         convert to insn_and_split and use new function sh_split_tst_subregs.
5080 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
5082         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
5083         option.
5084         (Optimization Options): Move -fuse-ld documentation to...
5085         (Link Options): ...here.
5087 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5089         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
5090         offsets.
5091         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
5092         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
5093         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
5094         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
5095         instead of ZR for the memory operand of LL/SC.
5096         (compare_and_swap_12, sync_add<mode>): Likewise.
5097         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
5098         (sync_new_<optab>_12, sync_nand_12): Likewise.
5099         (sync_old_nand_12, sync_new_nand_12): Likewise.
5100         (sync_sub<mode>, sync_old_add<mode>): Likewise.
5101         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
5102         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
5103         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
5104         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
5105         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
5106         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
5107         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
5108         * doc/md.texi (ZC): Update description.
5110 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
5112         * builtins.c (expand_builtin_atomic_exchange): Remove error when
5113         memory model is CONSUME.
5114         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
5115         expand_builtin_atomic_store): Change invalid memory model errors to
5116         warnings.
5117         (expand_builtin_atomic_clear): Change invalid model errors to warnings
5118         and issue warning for CONSUME.
5120 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
5122         * lto-cgraph: Update function comments for
5123         lto_symtab_encoder_encode_*.
5125 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
5127         * Makefile.in (site.exp): Do not set ENABLE_LTO.
5129 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
5131         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
5132         * lto-cgraph.c (select_what_to_stream): Remove argument, use
5133         lto_stream_offload_p instead.
5134         * lto-streamer.h (select_what_to_stream): Remove argument.
5135         * passes.c (ipa_write_summaries): Likewise.
5136         * tree-pass.h (ipa_write_summaries): Likewise.
5138 2015-01-14  Richard Biener  <rguenther@suse.de>
5140         PR tree-optimization/59354
5141         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
5142         groups larger than the slp group size as having gaps.
5144 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
5146         PR middle-end/59448
5147         * builtins.c (get_memmodel): Promote consume to acquire always.
5149 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5151         PR target/64386
5152         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
5153         V32HImode.
5155 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5157         PR target/64393
5158         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
5159         Enable AVX512BW.
5160         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
5161         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
5162         AVX512VBMI, as it implies AVX512BW.
5164 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
5166         PR target/64387
5167         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
5168         (vec_unpacks_hi_v16sf): Ditto.
5170 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5172         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
5173         is not available.
5175 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5177         * doc/invoke.texi (mapcs): Mention deprecation.
5178         (mapcs-frame): Likewise.
5180 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5182         PR target/64453
5183         * config/arm/arm.c (callee_saved_reg_p): Define.
5184         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
5185         register is callee saved instead of !call_used_regs[reg].
5186         (thumb1_compute_save_reg_mask): Likewise.
5188 2015-01-14  Hale Wang  <hale.wang@arm.com>
5190         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
5191         Cortex-M7.
5193 2015-01-14  Richard Biener  <rguenther@suse.de>
5195         PR lto/64415
5196         * tree-inline.c (insert_debug_decl_map): Check destination
5197         function MAY_HAVE_DEBUG_STMTS.
5198         (insert_init_debug_bind): Likewise.
5199         (insert_init_stmt): Remove redundant check.
5200         (remap_gimple_stmt): Drop debug stmts if the destination
5201         function has var-tracking assignments disabled.
5203 2015-01-14  Martin Liska  <mliska@suse.cz>
5205         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
5206         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
5208 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5210         PR target/64460
5211         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
5212         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
5214 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
5216         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
5217         level from an ARCH; do not inject the default.
5218         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
5219         MIPS_ISA_LEVEL_SPEC.
5220         (MIPS_ISA_NAN2008_SPEC): Update comment.
5221         (BASE_DRIVER_SELF_SPECS): Likewise.
5222         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
5223         MIPS_DEFAULT_ISA_LEVEL_SPEC.
5224         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
5225         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
5226         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
5228 2015-01-14  Richard Biener  <rguenther@suse.de>
5230         PR tree-optimization/64493
5231         PR tree-optimization/64495
5232         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
5233         assign the proper vectorized PHI to the inner loop exit PHIs.
5235 2015-01-14  Joey Ye  <joey.ye@arm.com>
5237         * config/arm/arm.c (arm_compute_save_reg_mask):
5238         Do not save lr in case of tail call.
5239         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
5241 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
5243         * tree-vrp.c (check_array_ref): Emit more warnings
5244         for warn_array_bounds >= 2.
5245         * common.opt: New option -Warray-bounds=.
5246         * doc/invoke.texi: Document -Warray-bounds=.
5248 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
5250         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
5251         (mforbid-fp-as-gp): Remove.
5252         (mex9): Remove.
5253         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
5254         (nds32_symbol_load_store_p): Remove.
5255         (nds32_fp_as_gp_check_available): Clean up implementation.
5256         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
5257         cases.
5258         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
5259         fp-as-gp and ex9 cases.
5261 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5263         * tree-profile.c (init_ic_make_global_vars): Drop workaround
5264         for bintuils bug 14342.
5265         (init_ic_make_global_vars): Likewise.
5266         (gimple_init_edge_profiler): Likewise.
5267         (gimple_gen_ic_func_profiler): Likewise.
5269 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5271         * ipa-inline.c (inline_small_functions): Swap the operands in
5272         enum.
5274 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5276         PR ipa/64481
5277         * ipa-inline-analysis.c (node_growth_cache): Remove.
5278         (initialize_growth_caches): Do not initialize it.
5279         (free_growth_caches): Do not free it.
5280         (do_estimate_growth): Rename to ...
5281         (estimate_growth): ... this one; drop growth cache code.
5282         (growth_likely_positive): Always go the heuristics way.
5283         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
5284         (reset_edge_caches): Do not reset node growth.
5285         (heap_edge_removal_hook): Do not maintain cache.
5286         (inline_small_functions): Likewise; strenghten sanity check.
5287         (ipa_inline): Do not maintain caches.
5288         * ipa-inline.h (node_growth_cache): Remove.
5289         (do_estimate_growth): Remove to ...
5290         (estimate_growth): this one; remove inline version.
5291         (reset_node_growth_cache): Remove.
5293 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
5295         PR ipa/64565
5296         * ipa-inline.c (inline_small_functions): Update callee keys after
5297         resolving speculation
5298         (inline_small_functions): Always check monotonicity of the queue.
5300 2015-01-13  Marek Polacek  <polacek@redhat.com>
5302         PR middle-end/64391
5303         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
5305 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
5307         PR rtl-optimization/64286
5308         * ree.c (combine_reaching_defs): Move part of comment earlier,
5309         remove !SCALAR_INT_MODE_P check.
5310         (add_removable_extension): Don't add vector mode
5311         extensions if all uses of the source register aren't the same
5312         vector extensions.
5314 2015-01-13  Renlin Li  <renlin.li@arm.com>
5316         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
5317         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
5319 2015-01-13  Martin Liska  <mliska@suse.cz>
5321         * ipa-icf.c (sem_function::equals_private): Call new functions
5322         cl_target_option_print_diff and cl_optimization_print_diff.
5323         * optc-save-gen.awk (cl_target_option_print_diff): New function.
5324         (cl_optimization_print_diff): Likewise.
5325         * opth-gen.awk: Likewise.
5327 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
5329         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
5330         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
5331         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
5332         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
5333         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
5334         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
5336 2015-01-13  Andrew Pinski   <apinski@cavium.com>
5338         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
5339         instead of src mode.
5341 2015-01-13  Richard Biener  <rguenther@suse.de>
5343         PR lto/64373
5344         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
5345         DECL_CONTEXT.
5347 2015-01-13  Andrew Pinski   <apinski@cavium.com>
5349         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
5350         volatile mems.
5351         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
5353 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
5355         PR middle-end/63974
5356         * cfgexpand.c (expand_computed_goto): Don't call
5357         convert_memory_address here.
5359 2015-01-13  Richard Biener  <rguenther@suse.de>
5361         PR tree-optimization/64406
5362         * tree-loop-distibution.c (pass_loop_distribution::execute):
5363         Reset the SCEV hashtable if we distributed anything.
5365 2015-01-13  Richard Biener  <rguenther@suse.de>
5367         PR tree-optimization/64404
5368         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
5369         SLP types for CSEd loads.
5371 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5373         PR tree-optimization/64436
5374         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
5375         merge of two symbolic numbers for a bitwise OR to ...
5376         (perform_symbolic_merge): This. Also fix computation of the range and
5377         end of the symbolic number corresponding to the result of a bitwise OR.
5379 2015-01-13  Richard Biener  <rguenther@suse.de>
5381         PR tree-optimization/64568
5382         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
5383         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
5385 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5387         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
5388         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
5390 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5392         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
5393         target-specific symbol_ref flag.
5394         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
5395         resides in rodata section.
5396         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
5397         (nds32_encode_section_info): New function.
5399 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5401         * config/nds32/nds32.md (call): Use pseudo instruction bal which
5402         clobbers TA_REGNUM if large code model is specified.
5403         (call_register): Likewise.
5404         (call_immediate): Likewise.
5405         (call_value): Likewise.
5406         (call_value_register): Likewise.
5407         (call_value_immediate): Likewise.
5409 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5411         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
5412         (TARGET_CMODEL_MEDIUM): New macro.
5413         (TARGET_CMODEL_LARGE): New macro.
5414         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
5415         code model setting in assembly code.
5417 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5419         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
5420         Remove MASK_GP_DIRECT flag.
5421         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
5422         one of the multilib default options.
5423         * config/nds32/nds32.opt (mgp-direct): Remove.
5424         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
5425         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
5427 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
5429         * config/nds32/nds32.opt (mcmodel): Add new option.
5430         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
5431         to describe code model.
5433 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
5435         PR target/64479
5436         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
5438 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5440         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
5441         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
5442         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
5443         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
5444         __builtin_sh_set_fpscr.
5446 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5448         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
5449         after a funtion name just to indicate it is a function.
5450         ([-fsanitize-undefined-trap-on-error]): Likewise.
5451         ([-fdbg-cnt=]): Likewise.
5452         ([-mmemcpy]): Likewise.
5453         ([-mflush-func]): Likewise.
5454         ([-msynci]): Likewise.
5456 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
5458         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
5459         example.
5461 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
5463         PR tree-optimization/64563
5464         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
5465         instead of != VR_VARYING.
5467         PR target/64513
5468         * config/i386/i386.c (ix86_expand_prologue): Add
5469         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
5471         PR tree-optimization/64454
5472         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
5473         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
5474         for signed or [0, op1 - 1] for unsigned modulo.
5475         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
5476         even if op1 does not satisfy integer_pow2p.
5478         PR other/64370
5479         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
5481 2015-01-12  Jeff Law  <law@redhat.com>
5483         PR target/64461
5484         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
5485         (trunchiqi2, truncsihi2): Similarly.
5487         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
5488         rather than calling F.
5490 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5492         * tsan.c (instrument_expr): Use force_gimple_operand.
5493         Use may_be_nonaddressable_p instead of is_gimple_addressable.
5495 2015-01-12  Richard Biener  <rguenther@suse.de>
5497         PR tree-optimization/64530
5498         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
5499         back dr1.
5501 2015-01-12  Richard Biener  <rguenther@suse.de>
5503         PR middle-end/64357
5504         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
5505         latches properly.
5507 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5509         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
5510         Cortex-A17 tuning parameters.
5511         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
5513 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5515         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
5516         * config/arm/arm.c (arm_macro_fusion_p): New function.
5517         (arm_macro_fusion_pair_p): Likewise.
5518         (TARGET_SCHED_MACRO_FUSION_P): Define.
5519         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
5520         (ARM_FUSE_NOTHING): Likewise.
5521         (ARM_FUSE_MOVW_MOVT): Likewise.
5522         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
5523         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
5524         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
5525         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
5526         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
5527         arm_cortex_a5_tune): Specify fuseable_ops value.
5529 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
5531         PR bootstrap/64561
5532         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
5533         test for PIE with copy reloc.
5534         * configure: Regenerated.
5536 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5538         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
5539         in gen_rtx_REG.
5540         (arm_tls_descseq_addr): Likewise.
5541         (arm_gen_movmemqi): Likewise.
5542         (arm_expand_epilogue_apcs_frame): Likewise.
5543         (arm_expand_epilogue): Likewise.
5544         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
5545         in gen_rtx_REG.
5547 2015-01-12  Martin Liska  <mliska@suse.cz>
5549         PR ipa/64550
5550         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
5551         volatility for correct operands.
5553 2015-01-12  Martin Liska  <mliska@suse.cz>
5555         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5556         that a function is not leaf.
5557         (sem_function::compare_polymorphic_p): Likewise.
5559 2015-01-12  Martin Liska  <mliska@suse.cz>
5561         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
5562         that a function is not leaf.
5563         (sem_function::compare_polymorphic_p): Likewise.
5565 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5567         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
5568         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
5569         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
5570         fold-const.h, tree-check.h.
5572 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
5574         PR ipa/63967
5575         PR ipa/64425
5576         * ipa-inline.c (compute_uninlined_call_time,
5577         compute_inlined_call_time): Use counts for extra precision when
5578         needed possible.
5579         (big_speedup_p): Fix formating.
5580         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
5581         (relative_time_benefit): Remove.
5582         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
5583         merge guessed and read profile paths.
5584         (inline_small_functions): Count only !optimize_size functions into
5585         initial size; be more lax about sanity check when profile is used;
5586         be sure to update inlined function profile when profile is read.
5588 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
5590         PR ipa/63470
5591         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
5592         cost when edge becomes direct.
5593         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
5594         is resolved or when introducing new speculation.
5596 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
5598         PR ipa/64551
5599         PR ipa/64552
5600         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
5601         '||' to fix typo issue.
5603         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
5604         accept and return NULL.
5606 2015-01-12  Martin Liska  <mliska@suse.cz>
5608         * cgraph.c (cgraph_edge::remove_callee): Move function to header
5609         file for being inlined.
5610         (cgraph_set_edge_callee): Delete.
5611         (cgraph_edge::redirect_callee): Move function to header file
5612         for being inlined.
5613         (cgraph_edge::make_direct): Use new function.
5614         (cgraph_edge::dump_edge_flags): New function created from
5615         static dump_edge_flags function.
5616         (cgraph_node::dump): Use new function.
5617         (cgraph_edge::verify_count_and_frequency): New function created
5618         from verify_edge_count_and_frequency.
5619         (cgraph_edge::verify_corresponds_to_fndecl): New function created
5620         from verify_edge_corresponds_to_fndecl.
5621         (verify_edge_corresponds_to_fndecl): Delete.
5622         (cgraph_node::verify_node): Use new function.
5623         * cgraph.h (cgraph_edge::set_callee): New function.
5624         (cgraph_edge::dump_edge_flags): Likewise.
5625         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
5627 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
5629         * ipa-utils.c (estimate_function_body_sizes): Do not
5630         free node params when called late with early=true.
5632 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
5634         * doc/md.texi (Instruction Patterns): Rewrite text for
5635         clarity.
5636         (Example): Likewise.
5638 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
5640         * doc/invoke.texi (Option Summary): Break long lines.
5641         [(-fdiagnostics-color)]: Put long literal in @smallexample
5642         instead of inline.
5643         [(-fsanitize-recover)]: Likewise.
5644         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
5645         [(-ffast-math)]: Likewise.
5646         [(--param max-inline-insns-recursive)]: Likewise.
5647         [(--param max-inline-recursive-depth)]: Likewise.
5648         [(-mno-text-section-literals)]: Likewise.
5650 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
5652         * doc/install.texi: Update for libgomp being renamed from "GNU
5653         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
5654         Runtime Library".
5655         * doc/sourcebuild.texi: Likewise.
5657 2015-01-10  Anthony Green  <green@moxielogic.com>
5659         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
5660         mul.x availability for moxiebox configuration.
5662 2015-01-09  Anthony Green  <green@moxielogic.com>
5664         * config/moxie/moxie.md: Tabify assembly output.
5666 2015-01-09  Anthony Green  <green@moxielogic.com>
5668         * config/moxie/moxie.md (CC_REG): Correct register definition.
5670 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
5672         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
5673         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
5674         of log files.
5676 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
5678         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
5680 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
5681             Jakub Jelinek  <jakub@redhat.com>
5683         PR middle-end/64412
5684         * lto-streamer.h (lto_stream_offload_p): New declaration.
5685         * lto-streamer.c (lto_stream_offload_p): New variable.
5686         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
5687         at the same time as section_name_prefix.
5688         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
5689         if lto_stream_offload_p.
5690         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
5691         stream TREE_TARGET_OPTION if lto_stream_offload_p.
5692         (write_ts_function_decl_tree_pointers): Don't
5693         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
5694         * tree-streamer-in.c (unpack_value_fields): Don't stream
5695         TREE_TARGET_OPTION in if ACCEL_COMPILER.
5696         (lto_input_ts_function_decl_tree_pointers): Don't stream
5697         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
5698         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
5699         instead of section_name_prefix string comparisons.
5701 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
5703         PR rtl-optimization/64536
5704         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
5705         tablejumps.
5707 2015-01-09  Michael Collison  <michael.collison@linaro.org>
5709         PR tree-optimization/64322
5710         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
5711         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
5713 2015-01-09  Tom de Vries  <tom@codesourcery.com>
5715         PR rtl-optimization/64539
5716         * regcprop.c (kill_clobbered_values): Factor out of ...
5717         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
5718         instead of note_stores with kill_clobbered_value.
5720 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
5722          * ginclude/unwind-arm-common.h: Revert previous commit.
5724 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
5726         * config.gcc (arm*-*-freebsd*): New configuration.
5727         * config/arm/freebsd.h: New file.
5728         * config.host: Add extra components for arm*-*-freebsd*.
5729         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
5730         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
5732 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5734         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
5735         for -mcpu=e6500.
5736         * config/rs6000/t-rtems: Add e6500 multilibs.
5738 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5740         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
5741         MPC8540.
5743 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5745         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
5746         MULTILIB_EXCEPTIONS.
5748 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5750         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
5751         MULTILIB_EXCEPTIONS.
5753 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5755         * config/arm/t-rtems-eabi: Rename to...
5756         * config/arm/t-rtems: ...this.
5757         * config/arm/rtems-eabi.h: Rename to...
5758         * config/arm/rtems.h: ...this.
5759         * config.gcc (arm*-*-rtems*): Reflect changes above.
5761 2015-01-09  Richard Biener  <rguenther@suse.de>
5763         PR tree-optimization/64410
5764         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
5765         on the LHS.
5766         (execute_update_addresses_taken): Deal with that.
5767         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
5768         loads/stores for complex variables.
5770 2015-01-09  Martin Liska  <mliska@suse.cz>
5772         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
5773         name comparison.
5774         (func_checker::compare_memory_operand): New function.
5775         (func_checker::compare_operand): Split case to newly
5776         added functions.
5777         (func_checker::compare_cst_or_decl): New function.
5778         (func_checker::compare_gimple_call): Identify
5779         memory operands.
5780         (func_checker::compare_gimple_assign): Likewise.
5781         * ipa-icf-gimple.h: New function.
5783 2015-01-09  Martin Liska  <mliska@suse.cz>
5785         PR ipa/64503
5786         * sreal.c (sreal::dump): Change unsigned format to signed for
5787         m_exp value.
5788         (sreal::to_double): Replace exp2 with scalbln.
5790 2015-01-09  Martin Liska  <mliska@suse.cz>
5792         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
5793         * ipa-icf.c (sem_function::equals_private): Add support for target and
5794         (sem_item_optimizer::merge_classes): Remove redundant function
5795         optimization flags comparison.
5796         * tree.h (target_opts_for_fn): New function.
5798 2015-01-09  Tom de Vries  <tom@codesourcery.com>
5800         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
5802 2015-01-09  Kito Cheng  <kito@0xlab.org>
5804         PR rtl-optimization/64348
5805         * lra-constraints.c (split_reg): Fix caller-save store/restore
5806         instruction generation.
5808 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
5810         PR gcov-profile/61790
5811         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
5812         long long.  Fallback to int64_t if host doesn't have long long and
5813         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
5815 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5817         PR tree-optimization/63989
5818         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
5819         from 1000 to 10000.
5820         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
5821         (get_stridx): If we don't have a record for certain SSA_NAME,
5822         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
5823         constant offset, call get_stridx_plus_constant.
5824         (get_stridx_plus_constant): New function.
5825         (zero_length_string): Don't use get_stridx here.
5827         PR target/55023
5828         PR middle-end/64388
5829         * dse.c (struct insn_info): Mention frame_read set also
5830         before reload for tail calls on some targets.
5831         (scan_insn): Revert 2014-12-22 change.  Set frame_read
5832         also before reload for tail calls if
5833         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
5834         instead of add_non_frame_wild_read for non-const/memset
5835         tail calls after reload.
5837 2015-01-08  Jason Merrill  <jason@redhat.com>
5839         * ubsan.c (do_ubsan_in_current_function): New.
5840         (pass_ubsan::gate): Use it.
5841         * ubsan.h: Declare it.
5842         * convert.c (convert_to_integer): Use it.
5844 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5846         PR target/64338
5847         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
5848         compare_code when it is unconditionally overwritten afterwards.
5849         Use ix86_reverse_condition instead of reverse_condition.  Don't
5850         change code if *reverse_condition* returned UNKNOWN and don't
5851         swap ct/cf and negate diff in that case.
5853 2015-01-08  Mike Stump  <mikestump@comcast.net>
5855         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
5856         (pass_tsan_O0::gate): Likewise.
5857         * extend.texi (Function Attributes): Add no_sanitize_thread
5858         documentation.
5860 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
5862         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
5863         for registering builtins.
5864         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
5865         add -fopenmp to the argv_obstack used when invoking
5866         compile_for_target.
5868         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
5869         add "-m32" or "-m64" to argv_obstack.
5870         (generate_host_descr_file): Likewise, when invoking host_compiler.
5871         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
5872         ld.
5874 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
5876         * config/sh/sh-mem.cc: Use constant as second operand when emitting
5877         tstsi_t insns.
5879 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
5881         PR target/55212
5882         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
5883         constant load if constant operand fits into I08.
5885 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
5887         PR sanitizer/64336
5888         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
5889         and TREE_THIS_VOLATILE for MEM_REFs.
5890         (build5_stat): Fix up initialization of TREE_READONLY and
5891         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
5893 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5895         PR target/64533
5896         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
5897         of r for the second alternative of the destination operand.
5899 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
5901         PR target/36557
5902         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
5904 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5906         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
5907         keywords.
5908         ([-fivar-visibility], [-fvisibility]): Likewise.
5910 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
5912         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
5913         the file where @code, @command, etc is more appropriate.
5915 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
5917         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
5918         of -mrecip= documentation.
5920 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
5922         PR target/64505
5923         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
5924         correct reload handler if -m32 -mpowerpc64 is used.
5926 2015-01-06  Tom de Vries  <tom@codesourcery.com>
5928         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
5930 2015-01-08  Christian Bruel  <christian.bruel@st.com>
5932         PR target/64507
5933         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
5935 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5937         PR tree-optimization/63259
5938         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
5939         if optab exists for 16bit byteswap.
5941 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
5943         * opts.c (common_handle_option): Add support for
5944         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
5945         * doc/invoke.texi: Document -fno-sanitize=all,
5946         -f{,no-}sanitize-recover=all.  Document that
5947         -fsanitize=float-cast-overflow is not enabled
5948         by -fsanitize=undefined.  Fix up documentation
5949         of -f{,no-}sanitize-recover.
5951 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
5953         * config.gcc: Add Visium support.
5954         * configure.ac: Likewise.
5955         * configure: Regenerate.
5956         * doc/extend.texi (interrupt attribute): Add Visium.
5957         * doc/invoke.texi: Document Visium options.
5958         * doc/install.texi: Document Visium target.
5959         * doc/md.texi: Document Visium constraints.
5960         * common/config/visium: New directory.
5961         * config/visium: Likewise.
5963 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
5965         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
5966         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
5968 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
5970         * combine.c (combine_validate_cost): Do not count the cost of a
5971         split I2 twice.  Do not display it twice in the dump, either.
5973 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
5975         Revert parts of r219199.
5976         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
5977         <inttypes.h>.
5978         ([-Wtraditional]): Restore markup on <limits.h>.
5980 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
5982         PR c++/31397
5983         * doc/invoke.texi: Document -Wsuggest-override.
5985 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
5987         PR rtl-optimization/64287
5988         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
5989         (process_options): Disable flag_ipa_ra if profiling.
5991 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
5993         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
5995 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
5997         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
5998         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
5999         put under #if TARGET_LOOPS guard.
6001 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
6003         * config/i386/i386.c (output_387_binary_op): Use std::swap.
6005 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
6007         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
6008         * rtl.h (refers_to_regno_p): Add overload.
6009         * cse.c: Use it.
6010         * bt-load.c: Likewise.
6011         * combine.c: Likewise.
6012         * df-scan.c: Likewise.
6013         * sched-deps.c: Likewise.
6014         * config/s390/s390.c: Likewise.
6015         * config/m32r/m32r.c: Likewise.
6016         * config/rs6000/spe.md: Likewise.
6017         * config/rs6000/rs6000.c: Likewise.
6018         * config/pa/pa.c: Likewise.
6019         * config/stormy16/stormy16.c: Likewise.
6020         * config/cris/cris.c: Likewise.
6021         * config/arc/arc.md: Likewise.
6022         * config/arc/arc.c: Likewise.
6023         * config/sh/sh.md: Likewise.
6024         * config/sh/sh.c: Likewise.
6025         * config/frv/frv.c: Likewise.
6027 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6029         PR sanitizer/64265
6030         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
6031         call as cleanup of the whole body.
6032         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
6033         * tsan.c (replace_func_exit): New function.
6034         (instrument_func_exit): Moved earlier.
6035         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
6036         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
6037         been found.
6038         (tsan_pass): Don't call instrument_func_exit.
6039         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
6040         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
6041         inlining.
6043         PR sanitizer/64344
6044         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
6045         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
6046         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
6047         if the result is integer_zerop, return NULL_TREE.
6048         * convert.c (convert_to_integer): Pass expr as ARG.
6050         PR tree-optimization/64465
6051         * tree-inline.c (redirect_all_calls): During inlining
6052         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
6053         changed the stmt to a non-throwing call.
6055 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
6057         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
6058         etc markup throughout the file.
6060 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6062         Enable experimental TSAN support for Ada.
6063         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
6065 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6067         PR tree-optimization/64494
6068         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
6069         clear SSA_NAME_ANTI_RANGE_P flag.
6071 2015-01-05  Marek Polacek  <polacek@redhat.com>
6073         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
6075 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6077         Update copyright years.
6079         * gcc.c (process_command): Update copyright notice dates.
6080         * gcov-dump.c: Ditto.
6081         * gcov.c: Ditto.
6082         * doc/cpp.texi: Bump @copying's copyright year.
6083         * doc/cppinternals.texi: Ditto.
6084         * doc/gcc.texi: Ditto.
6085         * doc/gccint.texi: Ditto.
6086         * doc/gcov.texi: Ditto.
6087         * doc/install.texi: Ditto.
6088         * doc/invoke.texi: Ditto.
6090         * auto-profile.c, auto-profile.h: Fix up Copyright line.
6092 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
6094         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
6095         verb tense, etc.
6096         ([-fvtable-verify], [-fvtv-debug]): Likewise.
6097         ([-Wabi]): Likewise.
6098         ([-fmessage-length]): Likewise.
6099         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
6100         ([-Wno-discarded-qualifiers]): Likewise.
6101         ([-Wnodiscarded-array-qualifiers]): Likewise.
6102         ([-Wno-virtual-move-assign]): Likewise.
6103         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
6104         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
6105         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
6106         ([-fsanitize-undefined-trap-on-error]): Likewise.
6107         ([-floop-interchange]): Likewise.
6108         ([-ftree-coalesce-inlined-vars]): Likewise.
6109         ([-fvect-cost-model]): Likewise.
6110         ([-flto]): Likewise.
6111         ([--param]): Likewise.
6112         (Spec Files): Likewise.
6113         ([-mstrict-align]): Likewise.
6114         ([-mfix-cortex-a53-835769]): Likewise.
6115         ([-march], [-mtune]): Likewise.
6116         ([-mpic-register]): Likewise.
6117         ([-munaligned-access]): Likewise.
6118         ([-msp8]): Likewise.
6119         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
6120         (AVR Built-in Macros): Likewise.
6121         ([-mpreferred-stack-boundary]): Likewise.
6122         ([-mtune-crtl]): Likewise.
6123         ([-mashf]): Likewise.
6124         ([-mmcu=]): Likewise.
6125         ([-minrt]): Likewise.
6126         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
6127         ([-mupper-regs]): Likewise.
6128         ([-matomic-model]): Likewise.
6129         ([-mdiv]): Likewise.
6130         ([-mzdcbranch]): Likewise.
6131         ([-mdisable-callt]): Likewise.
6132         ([-msoft-float]): Likewise.
6133         ([-m8byte-align]): Likewise.
6134         ([-fstack-reuse]): Likewise.
6136 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6138         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
6139         Fix markup, light copy-editing.
6140         ([-fauto-profile]): Rewrite to fix formatting and content
6141         problems.
6143 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6145         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
6146         Copy-edit description.
6147         ([-fisolate-erroneous-paths-attribute]): Likewise.
6148         * common.opt (fisolate-erroneous-paths-dereference):
6149         Copy-edit description.
6150         (fisolate-erroneous-paths-attribute): Likewise.
6152 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6154         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
6155         tidy grammar.
6157 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
6159         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
6160         ([-fvtv-debug]): Likewise.
6161         ([-Wc++-compat]): Likewise.
6162         ([-Wc++11-compat]): Likewise.
6163         ([-Wc++14-compat]): Likewise.
6164         ([-Wno-sized-deallocation]): Likewise.
6165         ([-femit-class-debug-always]): Likewise.
6166         ([-femit-struct-debug-detailed]): Likewise.
6167         ([-fno-keep-inline-dllexport]): Likewise.
6168         ([-fira-algorithm]): Likewise.
6169         ([-fira-region]): Likewise.
6170         ([-flra-remat]): Likewise.
6171         ([-fipa-ra]): Likewise.
6172         ([-fhoist-adjacent-loads]): Likewise.
6173         ([-fisolate-erroneous-paths-dereference]): Likewise.
6174         ([-fisolate-erroneous-paths-attribute]): Likewise.
6175         ([-ftree-switch-conversion]): Likewise.
6176         ([-ftree-tail-merge]): Likewise.
6177         ([-ftree-loop-if-convert]): Likewise.
6178         ([-ftree-loop-if-convert-stores]): Likewise.
6179         ([-ftree-loop-distribution]): Likewise.
6180         ([-ftree-loop-distribute-patterns]): Likewise.
6181         ([-flto-compression-level]): Likewise.
6182         ([-flto-report]): Likewise.
6183         ([-flto-report-wpa]): Likewise.
6184         ([-fuse-linker-plugin]): Likewise.
6185         ([-mfix-cortex-a53-835769]): Likewise.
6186         ([-mno-fix-cortex-a53-835769]): Likewise.
6187         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
6188         explicit listing; add a note to the discussion indicating they
6189         exist.  Reorder table to group similar options.  Add missing
6190         @opindex entries.  Add @need commands throughout the table to
6191         allow it to be split across multiple pages.
6192         ([-m8bit-idiv]): Fix @opindex.
6193         ([-mavx256-split-unaligned-load]): Likewise.
6194         ([-mavx256-split-unaligned-store]): Likewise.
6195         ([-mstack-protector-guard]): Likewise.
6196         ([-mcpu=]): Likewise.
6197         ([-mcpu]): Likewise.
6198         ([-mpointer-size=]): Likewise.
6200 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
6202         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
6203         instead of `m' constraint.  Likewise for unnamed movb comparison
6204         patterns using reg_before_reload_operand predicate.
6205         * config/pa/predicates.md (reg_before_reload_operand): Tighten
6206         predicate to reject register index and LO_SUM DLT memory forms
6207         after reload.
6209 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
6211         * doc/invoke.texi (Option Summary): Fix spelling of
6212         -fdevirtualize-at-ltrans.
6213         ([-fdevirtualize]): Fix markup.
6214         ([-fdevirtualize-speculatively]): Fix typo.
6215         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
6216         implementor-speaky.
6217         * common.opt (fdevirtualize-at-ltrans): Likewise.
6218         * ipa-devirt.c: Fix typos in comments throughout the file.
6219         (ipa_devirt): Fix typos in format strings for dump output.
6221 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
6223         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
6224         discussion of defaults, light copy-editing.
6226 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6228         * tsan.c (instrument_expr): corrected previous checkin.
6230 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6232         Instrument bit field and unaligned accesses for TSAN.
6233         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
6234         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
6235         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
6236         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
6237         unaligned memory regions.
6239 2015-01-01  Anthony Green  <green@moxielogic.com>
6241         * config/moxie/predicates.md (moxie_general_movsrc_operand):
6242         Restrict move source register offsets to 16 bits.
6244 Copyright (C) 2015 Free Software Foundation, Inc.
6246 Copying and distribution of this file, with or without modification,
6247 are permitted in any medium without royalty provided the copyright
6248 notice and this notice are preserved.