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