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