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