]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
New memory allocation statistics infrastructure.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-05-27 Martin Liska <mliska@suse.cz>
2
3 * Makefile.in: Add additional dependencies related to memory report
4 enhancement.
5 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
6 * bitmap.c (struct bitmap_descriptor_d): Remove.
7 (struct loc): Likewise.
8 (struct bitmap_desc_hasher): Likewise.
9 (bitmap_desc_hasher::hash): Likewise.
10 (bitmap_desc_hasher::equal): Likewise.
11 (get_bitmap_descriptor): Likewise.
12 (bitmap_register): User new memory descriptor API.
13 (register_overhead): Likewise.
14 (bitmap_find_bit): Register nsearches and search_iter statistics.
15 (struct bitmap_output_info): Remove.
16 (print_statistics): Likewise.
17 (dump_bitmap_statistics): Use new memory descriptor.
18 * bitmap.h (struct bitmap_usage): New class.
19 * genmatch.c: Extend header file inclusion.
20 * genpreds.c: Likewise.
21 * ggc-common.c (struct ggc_usage): New class.
22 (struct ggc_loc_desc_hasher): Remove.
23 (ggc_loc_desc_hasher::hash): Likewise.
24 (ggc_loc_desc_hasher::equal): Likewise.
25 (struct ggc_ptr_hash_entry): Likewise.
26 (struct ptr_hash_hasher): Likewise.
27 (ptr_hash_hasher::hash): Likewise.
28 (ptr_hash_hasher::equal): Likewise.
29 (make_loc_descriptor): Likewise.
30 (ggc_prune_ptr): Likewise.
31 (dump_ggc_loc_statistics): Use new memory descriptor.
32 (ggc_record_overhead): Likewise.
33 (ggc_free_overhead): Likewise.
34 (final_cmp_statistic): Remove.
35 (cmp_statistic): Likewise.
36 (ggc_add_statistics): Liekwise.
37 (ggc_prune_overhead_list): Likewise.
38 * hash-map-traits.h: New file.
39 * hash-map.h (struct default_hashmap_traits): Move the traits to a
40 separate header file.
41 * hash-set.h: Pass memory statistics info to ctor.
42 * hash-table.c (void dump_hash_table_loc_statistics): New function.
43 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
44 (hash_table::~hash_table): Register memory release operation.
45 (hash_table::alloc_entries): Handle memory allocation operation.
46 (hash_table::expand): Likewise.
47 * inchash.c (iterative_hash_hashval_t): Move implementation to header
48 file.
49 (iterative_hash_host_wide_int): Likewise.
50 * inchash.h (class hash): Likewise.
51 * mem-stats-traits.h: New file.
52 * mem-stats.h: New file.
53 (mem_location): Add new class.
54 (mem_usage): Likewise.
55 (mem_alloc_description): Likewise.
56 * sese.c: Add new header file inclusision.
57 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
58 and hash_set.
59 * tree-sra.c: Add new header file inclusision.
60 * vec.c (struct vec_descriptor): Remove.
61 (hash_descriptor): Likewise.
62 (struct vec_usage): Likewise.
63 (struct ptr_hash_entry): Likewise.
64 (hash_ptr): Likewise.
65 (eq_ptr): Likewise.
66 (vec_prefix::register_overhead): Use new memory descriptor API.
67 (vec_prefix::release_overhead): Likewise.
68 (add_statistics): Remove.
69 (dump_vec_loc_statistics): Use new memory descriptor API.
70 * vec.h (struct vec_prefix): Likewise.
71 (va_heap::reserve): Likewise.
72 (va_heap::release): Likewise.
73 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
74
75 2015-05-27 Richard Biener <rguenther@suse.de>
76
77 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
78 earlier and remove ??? comment.
79 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
80 and got called from loop analysis bail out. Always pass the SLP
81 node to the vectorizable_* functions.
82 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
83 the premature SLP check here.
84 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
85 detected SLP stmts.
86 (vect_detect_hybrid_slp_1): Likewise.
87
88 2015-05-26 Jeff Law <law@redhat.com>
89
90 * combine.c (find_split_point): Verify that the shift count is a
91 constant when choosing (plus (ashift ...)) as a split point.
92
93 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
94 No functional changes.
95
96 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
97
98 * ipa-polymorphic-call.c
99 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
100 case when call target is already known.
101
102 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
103
104 PR target/65979
105 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
106 take into account the case that operands[1] and operands[2]
107 are the same register.
108
109 2015-05-26 Michael Matz <matz@suse.de>
110
111 PR middle-end/66251
112
113 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
114 stores.
115 (vect_create_vectorized_demotion_stmts): Always set
116 STMT_VINFO_VEC_STMT, also with SLP.
117 (vectorizable_store): Handle strided group stores.
118
119 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
120
121 PR target/66049
122 * config/aarch64/aarch64.md
123 (*adds_shift_imm_<mode>): New pattern.
124 (*subs_shift_imm_<mode>): Likewise.
125 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
126 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
127 (*add_uxt<mode>_shift2): Likewise.
128 (*add_uxtsi_shift2_uxtw): Likewise.
129 (*sub_uxt<mode>_shift2): Likewise.
130 (*sub_uxtsi_shift2_uxtw): Likewise.
131
132 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
133
134 * config/rs6000/constraints.md (Y, U): Use match_test.
135
136 2015-05-26 Christian Bruel <christian.bruel@st.com>
137
138 PR target/52144
139 * config/arm/arm.c (arm_option_check_internal)
140 (arm_option_params_internal): Check opts->target_flags to set macros.
141 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
142 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
143 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
144 (builtin_define): Replaced with def_or_undef_macro.
145 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
146 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
147 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
148 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
149 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
150 (TARGET_ARM_FEATURE_LDREX_P)
151 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
152 * config/arm/arm-c.c (def_or_undef_macro): New function.
153 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
154
155 2015-05-26 Christian Bruel <christian.bruel@st.com>
156
157 * c-common.h (builtin_define_with_int_value)
158 (builtin_define_type_sizeof): Declare.
159 * c-cppbuiltin.c (builtin_define_with_int_value)
160 (builtin_define_type_sizeof): Externalize.
161 (builtin_define_std): Cleanup declaration.
162 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
163 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
164 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
165 (builtin_define, builtin_assert): New macros.
166
167 2015-05-26 Richard Biener <rguenther@suse.de>
168
169 PR tree-optimization/66142
170 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
171 MEM_REFs for the same base address.
172
173 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
174
175 PR ipa/66181
176 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
177
178 2015-05-26 Jason Merrill <jason@redhat.com>
179
180 * configure.ac: Set CXXFLAGS for ISL test.
181 * configure: Regenerate.
182
183 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
184 strstr and basename.
185 * configure: Regenerate.
186
187 2015-05-26 Richard Biener <rguenther@suse.de>
188
189 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
190 X % C -> X & (C - 1) for C being a power-of two to ...
191 * match.pd: ... patterns.
192
193 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
194
195 * match.pd (swapped_tcc_comparison): New operator list.
196 (-A CMP -B): New simplification.
197 * fold-const.c (fold_comparison): Remove corresponding code.
198
199 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
200
201 * caller-save.c (init_caller_save): Base temporary register numbers
202 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
203 * cfgloopanal.c (init_set_costs): Likewise.
204 * dojump.c (prefer_and_bit_test): Likewise.
205 * expr.c (init_expr_target): Likewise.
206 * ira.c (setup_prohibited_mode_move_regs): Likewise.
207 * lower-subreg.c (init_lower_subreg): Likewise.
208 * postreload.c (reload_cse_regs_1): Likewise.
209
210 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
211
212 * gensupport.h (compute_test_codes): Declare.
213 * gensupport.c (compute_predicate_codes): Rename to...
214 (compute_test_codes): ...this. Generalize error message.
215 (process_define_predicate): Update accordingly.
216 * genpreds.c (compute_maybe_allows): Delete.
217 (add_constraint): Use compute_test_codes to determine whether
218 something can accept a SUBREG, REG or MEM.
219
220 2015-05-26 Torvald Riegel <triegel@redhat.com>
221
222 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
223 'memory model' to align with C++11; fix description of memory orders;
224 fix a few typos.
225
226 2015-05-26 Richard Biener <rguenther@suse.de>
227
228 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
229 (vect_analyze_loop_operations): ... here. Remove slp parameter,
230 detect whether we apply SLP. Remove call to
231 vect_update_slp_costs_according_to_vf.
232 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
233 vect_update_slp_costs_according_to_vf from here. Dispatch
234 to vect_slp_analyze_operations to analyze SLP stmts.
235 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
236 unused bb_vec_info parameter, adjust assert.
237 (vect_slp_analyze_operations): Pass in the slp instance tree
238 instead of bb_vec_info.
239 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
240 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
241
242 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
243
244 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
245 Q_REGS. Expand comment.
246 (REG_CLASS_NAMES): Ditto.
247 (REG_CLASS_CONTENTS): Ditto.
248
249 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
250
251 PR target/66274
252 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
253 when LEGACY_INT_REGNO_P is processed.
254
255 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
256
257 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
258
259 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
260
261 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
262 register if not marked dead/unused, before return.
263
264 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
265
266 PR lto/66180
267 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
268 is set; check for assembler name at LTO time.
269 (type_in_anonymous_namespace): Remove hacks, check that all
270 anonymous types are called "<anon>"
271 (odr_type_p): Simplify; add check for "<anon>"
272 (odr_subtypes_equivalent): Add odr_type_p check.
273 * tree.c (need_assembler_name_p): Even anonymous namespace needs
274 assembler name.
275
276 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
277
278 * ipa-utils.h (method_class_type): Remove.
279 * cgraphunit.c (walk_polymorphic_call_targets): Use
280 TYPE_METHOD_BASETYPE.
281 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
282 on main variants only.
283 (method_class_type): Remove.
284 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
285 (build_type_inheritance_graph): Likewise.
286 * ipa-icf.c (sem_function::equals_wpa): Likewise.
287 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
288 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
289
290 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
291
292 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
293 is_typedef_decl, typedef_variant_p): Constify.
294 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
295 is_typedef_decl, typedef_variant_p): Constify.
296
297 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
298
299 * defaults.h (gen_tablejump): New function.
300 (HAVE_tablejump): Add default value.
301 * expr.c: Adjust.
302 * stmt.c: Likewise.
303
304 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
305
306 * defaults.h (gen_store_multiple): New function.
307 (HAVE_store_multiple): Add default value.
308 * expr.c (move_block_from_reg): Adjust.
309
310 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
311
312 * defaults.h (gen_load_multiple): New function.
313 (HAVE_load_multiple): Add default value.
314 * expr.c (move_block_to_reg): Adjust.
315
316 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
317
318 * defaults.h (gen_mem_signal_fence): New function.
319 (HAVE_mem_signal_fence): Add default value.
320 * optabs.c: Adjust.
321
322 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
323
324 * defaults.h (gen_memory_barrier): New function.
325 (HAVE_memory_barrier): Add default value.
326 * optabs.c: Adjust.
327
328 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
329
330 * defaults.h (gen_mem_thread_fence): New function.
331 (HAVE_mem_thread_fence): Add default definition.
332 * optabs.c: Adjust.
333
334 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
335
336 * combine.c (find_split_point): Check the value of HAVE_lo_sum
337 instead of if it is defined.
338 (combine_simplify_rtx): Likewise.
339 * lra-constraints.c (process_address_1): Likewise.
340 * config/darwin.c: Adjust.
341 * genconfig.c (main): Always define HAVE_lo_sum.
342
343 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
344
345 * genmatch.c (parser::parse_operation): Reject expanding
346 operator-list inside 'for'.
347
348 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
349
350 * genmatch.c (parser::parse_for): Reject iterator if used as
351 operator-list.
352
353 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
354
355 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
356 after end of id-list.
357
358 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
359
360 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
361 we do not try to compute canonical type for type that does not need
362 alias set.
363 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
364 FUNCITON_TYPE.
365 * tree.h (type_with_alias_set_p): New.
366
367 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
368
369 * tree.c (gimple_canonical_types_compatible_p): Do not compare
370 function attributes.
371 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
372
373 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
374
375 * Makefile.in (check_gcc_parallelize): Delete.
376 (lang_checks_parallelized): Update comment.
377
378 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
379
380 PR rtl-optimization/66237
381 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
382 location of an "as_a" cast.
383
384 2015-05-22 Jeff Law <law@redhat.com>
385
386 * config/pa/pa.md (non-canonical shift-add insns): Remove.
387 (peepholes with non-canonical RTL sources): Remove.
388 (peepholes for indexed stores of FP regs in integer modes): Match and
389 generate canonical RTL.
390
391 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
392
393 PR tree-optimization/63387
394 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
395 ((x ord x) & (y ord y) -> (x ord y),
396 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
397 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
398 vectors like scalars.
399
400 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
401
402 * convert.c (convert_to_integer, convert_to_vector): Include the
403 types in the error message.
404
405 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
406
407 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
408 simplifications.
409
410 2015-05-22 Jeff Law <law@redhat.com>
411
412 * config/pa/pa.md (integer_indexed_store splitters): Use
413 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
414 insns -- adjusting the constant 2nd operand accordingly.
415
416 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
417 (plus (ashift X log2) Y) if it is a split point.
418
419 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
420 out of hppa_legitimize_address to handle both forms of a multiply
421 by 2, 4 or 8.
422 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
423 Always generate the ASHIFT variant as the result is not directly
424 used in a MEM. Update comments and refactor slightly to improve
425 readability.
426
427 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
428
429 PR target/65491
430 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
431 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
432 (aarch64_composite_type_p): Return false if given type and mode are
433 for a short vector.
434
435 2015-05-22 Richard Biener <rguenther@suse.de>
436
437 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
438 member.
439 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
440 patterns when determining whether SLP is pure.
441 (vect_is_slp_reduction): Remove check for pattern stmts.
442 (vect_is_simple_reduction_1): Remove dead code.
443 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
444 (vect_get_and_check_slp_defs): Pass in the stmt number.
445 Allow the first def in a reduction to be not a pattern stmt when
446 the rest of the stmts def are patterns.
447 (vect_build_slp_tree_1): Allow tcc_expression codes like
448 SAD_EXPR and DOT_PROD_EXPR.
449 (vect_build_slp_tree): Adjust.
450 (vect_analyze_slp): Refactor and move BB vect error message ...
451 (vect_slp_analyze_bb_1): ... here.
452
453 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
454
455 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
456 for CSWTCH temporary.
457
458 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
459
460 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
461 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
462 unknown unspecs.
463
464 2015-05-22 Richard Biener <rguenther@suse.de>
465
466 PR tree-optimization/66251
467 * tree-vect-stmts.c (vectorizable_conversion): Properly
468 set STMT_VINFO_VEC_STMT even for the SLP case.
469
470 2015-05-22 Marek Polacek <polacek@redhat.com>
471
472 * doc/extend.texi: Use @pxref instead of @xref.
473
474 2015-05-22 hiraditya <hiraditya@msn.com>
475
476 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
477 redundant if.
478
479 2015-05-22 Richard Biener <rguenther@suse.de>
480
481 PR tree-optimization/65701
482 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
483 Move peeling cost models into one place. Peel for alignment
484 for single loads only if an aligned load is cheaper than
485 an unaligned load.
486
487 2015-05-22 Marek Polacek <polacek@redhat.com>
488
489 PR c/47043
490 * doc/extend.texi (Enumerator Attributes): New section.
491 Document syntax of enumerator attributes.
492
493 2015-05-22 Richard Biener <rguenther@suse.de>
494
495 * tree-vect-loop.c (get_reduction_op): New function.
496 (vect_model_reduction_cost): Use it, add reduc_index parameter.
497 Make ready for BB reductions.
498 (vect_create_epilog_for_reduction): Use get_reduction_op.
499 (vectorizable_reduction): Init reduc_index to a valid value.
500 Adjust vect_model_reduction_cost call.
501 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
502 operand for reduction defaults. Add SAD_EXPR support.
503 Assert we have a neutral op for SLP reductions.
504 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
505 walking pattern stmt ops only recurse to SSA names.
506
507 2015-05-22 Richard Biener <rguenther@suse.de>
508
509 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
510 assert with guard, remove check on detected reduction.
511 (vect_recog_sad_pattern): Likewise.
512 (vect_recog_widen_sum_pattern): Likewise.
513
514 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
515
516 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
517 __always_inline__ attribute.
518 (vaesdq_u8): Likewise.
519 (vaesmcq_u8): Likewise.
520 (vaesimcq_u8): Likewise.
521 (vsha1cq_u32): Likewise.
522 (vsha1mq_u32): Likewise.
523 (vsha1pq_u32): Likewise.
524 (vsha1h_u32): Likewise.
525 (vsha1su0q_u32): Likewise.
526 (vsha1su1q_u32): Likewise.
527 (vsha256hq_u32): Likewise.
528 (vsha256h2q_u32): Likewise.
529 (vsha256su0q_u32): Likewise.
530 (vsha256su1q_u32): Likewise.
531 (vmull_p64): Likewise.
532 (vmull_high_p64): Likewise.
533
534 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
535
536 * final.c (final_scan_insn): Don't check HAVE_peephole with the
537 preprocessor.
538 * output.h: Likewise.
539 * genconfig.c (main): Alwways define HAVE_peephole.
540 * genpeep.c: Don't emit checks of HAVE_peephole.
541
542 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
543
544 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
545 check HAVE_conditional_move with the preprocessor.
546
547 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
548
549 * genconfig.c (main): Always define HAVE_conditional_move.
550 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
551 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
552 is defined.
553
554 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
555
556 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
557 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
558 and FRAME_POINTER_REGNUM with the preprocessor.
559
560 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
561
562 * defaults.h: Add default for STACK_PUSH_CODE.
563 * expr.c: Don't redefine STACK_PUSH_CODE.
564 * recog.c: Likewise.
565
566 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
567
568 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
569 sched-deps.c: Use if instead of preprocessor checks with
570 STACK_GROWS_DOWNWARD.
571
572 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
573
574 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
575 is defined.
576 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
577 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
578 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
579 * doc/tm.texi: Regenerate.
580
581 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
582
583 PR target/66232
584 * config/i386/constraints.md (Bg): New constraint for GOT memory
585 operand.
586 * config/i386/i386.md (*call_got_x32): New pattern.
587 (*call_value_got_x32): Likewise.
588 * config/i386/predicates.md (GOT_memory_operand): New predicate.
589
590 2015-05-21 Jakub Jelinek <jakub@redhat.com>
591
592 PR tree-optimization/66233
593 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
594 Simplify.
595
596 2015-05-21 Jeff Law <law@redhat.com>
597
598 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
599 than MULT for shadd sequences.
600
601 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
602
603 * alias.c (alias_stats): New static var.
604 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
605 (dump_alias_stats_in_alias_c): New function.
606 * alias.h (dump_alias_stats_in_alias_c): Declare.
607 * tree-ssa-alias.c (dump_alias_stats): Call it.
608
609 2015-05-08 Michael Matz <matz@suse.de>
610
611 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
612 to strided_p.
613 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
614 (STMT_VINFO_STRIDED_P): ... this.
615 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
616 (vect_verify_datarefs_alignment): Likewise.
617 (vect_enhance_data_refs_alignment): Likewise.
618 (vect_analyze_data_ref_access): Likewise.
619 (vect_analyze_data_refs): Accept strided stores.
620 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
621 (vect_model_load_cost): Adjust for macro rename.
622 (vectorizable_mask_load_store): Likewise.
623 (vectorizable_load): Likewise.
624 (vectorizable_store): Open code strided stores.
625
626 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
627
628 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
629 Document sqrt_insn.
630
631 2015-05-21 Richard Biener <rguenther@suse.de>
632
633 PR c++/66211
634 * match.pd: Guard pattern optimzing (int)(float)int
635 conversions to apply only on GIMPLE.
636
637 2015-05-21 Jeff Law <law@redhat.com>
638
639 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
640 multiply-accumulate/shift-add insn generation.
641
642 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
643
644 PR target/54236
645 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
646 operands[1] are the same.
647
648 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
649
650 PR middle-end/66221
651 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
652 build_distinct_type_copy to copy bounds.
653
654 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
655
656 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
657 Change to unsigned int.
658
659 2015-05-20 Jeff Law <law@redhat.com>
660
661 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
662 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
663 (pa_shadd_constant_p): Allow constants for shadd insns rather
664 than valid scaling constants for memory addresses.
665 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
666 * config/pa/predicates.md (mem_shadd_operand): New predicate.
667 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
668 (shift-add insns using ASHIFT): New patterns.
669
670 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
671
672 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
673 feasible.
674 (fix_up_fall_thru_edges): Likewise.
675 (fix_crossing_conditional_branches): Likewise. Promote jump targets
676 from to rtx_insn to rtx_code_label where feasible.
677 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
678 gen_move_insn (returned type changed to rtx_insn).
679 * builtins.c (expand_errno_check): Fix arguments of
680 do_compare_rtx_and_jump (now expects rtx_code_label).
681 (expand_builtin_acc_on_device): Likewise.
682 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
683 invert_jump (now exprects rtx_jump_insn).
684 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
685 (construct_init_block): Use rtx_code_label.
686 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
687 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
688 calling redirect_jump.
689 (patch_jump_insn): Likewise.
690 (redirect_branch_edge): Likewise.
691 (force_nonfallthru_and_redirect): Likewise.
692 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
693 when suitable.
694 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
695 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
696 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
697 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
698 to store the value retured by gen_label_rtx.
699 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
700 rtx_jump_insn.
701 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
702 (split_branches): Fix calls of redirect_jump.
703 * dojump.c (jumpifnot): Promote argument type from rtx to
704 rtx_code_label.
705 (jumpifnot_1): Likewise.
706 (jumpif): Likewise.
707 (jumpif_1): Likewise.
708 (do_jump_1): Likewise.
709 (do_jump): Likewise. Use rtx_code_label when feasible.
710 (do_jump_by_parts_greater_rtx): Likewise.
711 (do_jump_by_parts_zero_rtx): Likewise.
712 (do_jump_by_parts_equality_rtx): Likewise.
713 (do_compare_rtx_and_jump): Likewise.
714 * dojump.h: Update function prototypes.
715 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
716 returns rtx_insn).
717 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
718 rtx_jump_insn.
719 (emit_label_before): Likewise.
720 (emit_jump_insn_after_noloc): Likewise.
721 (emit_jump_insn_after_setloc): Likewise.
722 (emit_jump_insn_after): Likewise
723 (emit_jump_insn_before_setloc): Likewise.
724 (emit_jump_insn_before): Likewise.
725 (emit_label_before): Promote return type to rtx_code_label.
726 (emit_label): Likewise.
727 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
728 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
729 gen_move_insn.
730 (emit_stack_restore): Likewise.
731 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
732 (do_cmp_and_jump): Likewise.
733 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
734 from rtx to rtx_code_label.
735 (gen_move_insn_uncast): New function.
736 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
737 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
738 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
739 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
740 invert_jump_1 and redirect_jump_1.
741 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
742 do_compare_rtx_and_jump.
743 (expand_addsub_overflow): Likewise.
744 (expand_neg_overflow): Likewise.
745 (expand_mul_overflow): Likewise.
746 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
747 return value of gen_move_insn.
748 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
749 * loop-doloop.c (add_test): Use rtx_code_label.
750 (doloop_modify): Likewise.
751 (doloop_optimize): Likewise.
752 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
753 * lra-constraints.c (emit_spill_move): Remove cast of value returned
754 by gen_move_insn.
755 (inherit_reload_reg): Add cast when calling dump_insn_slim.
756 (split_reg): Likewise.
757 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
758 gen_move_insn.
759 * optabs.c (expand_binop_directly): Remove casts of values returned by
760 maybe_gen_insn.
761 (expand_unop_direct): Likewise.
762 (expand_abs): Likewise.
763 (maybe_emit_unop_insn): Likewise.
764 (maybe_gen_insn): Promote return type to rtx_insn.
765 * optabs.h: Update prototype of maybe_gen_insn.
766 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
767 redundant cast.
768 * recog.c (struct peep2_insn_data): Promote type of insn field to
769 rtx_insn.
770 (peep2_reinit_state): Use NULL instead of NULL_RTX.
771 (peep2_attempt): Remove casts of insn in peep2_insn_data.
772 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
773 * recog.h (struct insn_gen_fn): Promote return types of function
774 pointers and operator ().from rtx to rtx_insn.
775 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
776 (fill_eager_delay_slots): Likewise.
777 (relax_delay_slots): Likewise.
778 (make_return_insns): Likewise.
779 (dbr_schedule): Likewise.
780 (optimize_skips): Likewise.
781 (reorg_redirect_jump): Likewise.
782 (fill_slots_from_thread): Likewise.
783 * reorg.h: Update prototypes.
784 * resource.c (find_dead_or_set_registers): Use dyn_cast to
785 rtx_jump_insn instead of check. Use it's jump_target method.
786 * rtl.h (rtx_jump_insn::jump_label): Define new method.
787 (rtx_jump_insn::jump_target): Define new method.
788 (rtx_jump_insn::set_jump_target): Define new method.
789 * rtlanal.c (tablejump_p): Promote type of one local variable.
790 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
791 (sched_analyze_insn): Likewise.
792 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
793 (print_insn): Likewise.
794 * stmt.c (label_rtx): Promote return type to rtx_insn.
795 (force_label_rtx): Likewise.
796 (jump_target_rtx): Define new function.
797 (expand_label): Use it, get rid of one cast.
798 (expand_naked_return): Promote rtx to rtx_code_label.
799 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
800 (expand_case): Use rtx_code_label instread of rtx where feasible.
801 (expand_sjlj_dispatch_table): Likewise.
802 (emit_case_nodes): Likewise.
803 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
804 * store-motion.c (insert_store): Make use of new return type of
805 gen_move_insn and remove a cast.
806 (replace_store_insn): Likewise.
807
808 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
809
810 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
811 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
812
813 2015-05-20 Jeff Law <law@redhat.com>
814
815 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
816 dispose of the jump thread path when the jump threading
817 opportunity is cancelled.
818
819 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
820
821 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
822 when printing the caret character.
823
824 2015-05-20 Marek Polacek <polacek@redhat.com>
825
826 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
827
828 2015-05-20 Marek Polacek <polacek@redhat.com>
829
830 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
831 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
832 * gimple-fold.c (canonicalize_bool): Likewise.
833 (same_bool_result_p): Likewise.
834 * tree-if-conv.c (parse_predicate): Likewise.
835
836 2015-05-20 Marek Polacek <polacek@redhat.com>
837
838 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
839 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
840
841 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
842
843 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
844 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
845 values.
846
847 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
848
849 * config/mips/mips.h (micromips_globals): Declare.
850
851 2015-05-20 David Malcolm <dmalcolm@redhat.com>
852
853 * timevar.def (TV_INITIALIZE_RTL): New.
854 * toplev.c (initialize_rtl): Use an auto_timevar to account this
855 function's time to TV_INITIALIZE_RTL.
856
857 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
858
859 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
860 gimple_build_nop calls.
861 (chkp_find_bounds_for_elem): Likewise.
862 (chkp_get_zero_bounds): Likewise.
863 (chkp_get_none_bounds): Likewise.
864 (chkp_get_bounds_by_definition): Likewise.
865 (chkp_generate_extern_var_bounds): Likewise.
866 (chkp_get_bounds_for_decl_addr): Likewise.
867 (chkp_get_bounds_for_string_cst): Likewise.
868
869 2015-05-20 Bin Cheng <bin.cheng@arm.com>
870
871 PR tree-optimization/65447
872 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
873 (dump_use, dump_uses): Support to dump sub use.
874 (record_use): New parameters to support sub use. Remove call to
875 dump_use.
876 (record_sub_use, record_group_use): New functions.
877 (compute_max_addr_offset, split_all_small_groups): New functions.
878 (group_address_uses, rewrite_use_address): New functions.
879 (strip_offset): New declaration.
880 (find_interesting_uses_address): Call record_group_use.
881 (add_candidate): New assertion.
882 (infinite_cost_p): Move definition forward.
883 (add_costs): Check INFTY cost and return immediately.
884 (get_computation_cost_at): Clear setup cost and dependent bitmap
885 for sub uses.
886 (determine_use_iv_cost_address): Compute cost for sub uses.
887 (rewrite_use_address_1): Rename from old rewrite_use_address.
888 (free_loop_data): Free sub uses.
889 (tree_ssa_iv_optimize_loop): Call group_address_uses.
890
891 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
892 Jim Wilson <jim.wilson@linaro.org>
893
894 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
895 new fields loadv and storev.
896 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
897 Initialize loadv and storev.
898 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
899 (cortexa53_extra_costs): Likewise.
900 (cortexa57_extra_costs): Likewise.
901 (xgene1_extra_costs): Likewise.
902 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
903 rtx_costs.
904
905 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
906
907 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
908 storev.
909 (cortexa8_extra_costs): Likewise.
910 (cortexa5_extra_costs): Likewise.
911 (cortexa7_extra_costs): Likewise.
912 (cortexa12_extra_costs): Likewise.
913 (cortexa15_extra_costs): Likewise.
914 (v7m_extra_costs): Likewise.
915
916 2015-05-20 Jeff Law <law@redhat.com>
917
918 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
919 instead of open-coded version. Also delete the jump thread created
920 within this function.
921
922 2015-05-20 Alan Modra <amodra@gmail.com>
923
924 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
925 stack adjusting insn. Formatting.
926 (rs6000_emit_prologue): Track stack adjusting insn, and use of
927 r12. If possible, emit first -fsplit-stack arg pointer insn
928 before stack adjust. Don't use r12 to save cr if split-stack.
929
930 2015-05-20 Alan Modra <amodra@gmail.com>
931
932 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
933 Define.
934 (rs6000_supports_split_stack): New function.
935 * gcc/config/rs6000/rs6000.c (machine_function): Add
936 split_stack_arg_pointer.
937 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
938 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
939 rather than virtual_incoming_args_rtx.
940 (rs6000_va_start): Likewise.
941 (split_stack_arg_pointer_used_p): New function.
942 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
943 (morestack_ref): New var.
944 (gen_add3_const, rs6000_expand_split_stack_prologue,
945 rs6000_internal_arg_pointer, rs6000_live_on_entry,
946 rs6000_split_stack_space_check): New functions.
947 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
948 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
949 (UNSPECV_SPLIT_STACK_RETURN): Define.
950 (split_stack_prologue, load_split_stack_limit,
951 load_split_stack_limit_di, load_split_stack_limit_si,
952 split_stack_return, split_stack_space_check): New expands and insns.
953 * gcc/config/rs6000/rs6000-protos.h
954 (rs6000_expand_split_stack_prologue): Declare.
955 (rs6000_split_stack_space_check): Declare.
956
957 2015-05-20 Alan Modra <amodra@gmail.com>
958
959 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
960 (rs6000_stack_info): Don't zero offsets when not saving registers.
961 (debug_stack_info): Adjust to omit printing unused offsets,
962 as before.
963 (direct_return): Test vrsave_size rather than vrsave_mask.
964 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
965 (rs6000_emit_epilogue): Likewise.
966
967 2015-05-20 Alan Modra <amodra@gmail.com>
968
969 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
970 when not saving registers.
971 (debug_stack_info): Adjust to omit printing unused offsets,
972 as before.
973 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
974 expression.
975
976 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
977
978 PR c++/65835
979 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
980 value_type to const char *.
981
982 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
983
984 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
985 to build a biarch toolchain again.
986
987 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
988
989 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
990 or implicit declarations.
991 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
992 into it.
993 (get_odr_type): Check type has linkage before adding bases.
994 (register_odr_type): Check that type has linkage before adding it.
995 (type_known_to_have_no_deriavations_p): Rename to ..
996 (type_known_to_have_no_derivations_p): This one.
997 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
998 (type_known_to_have_no_derivations_p): This one.
999 * ipa-polymorphic-call.c
1000 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
1001 type has linkage.
1002
1003 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
1004
1005 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
1006 (layout_type): Use RECORD_OR_UNION_TYPE_P.
1007
1008 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1009
1010 * config/s390/s390.c (s390_vector_bool_type_p): New function.
1011 (s390_invalid_binary_op): New function.
1012 (TARGET_INVALID_BINARY_OP): Define macro.
1013
1014 2015-05-19 David Sherwood <david.sherwood@arm.com>
1015
1016 * loop-invariant.c (create_new_invariant): Don't calculate address cost
1017 if mode is not a scalar integer.
1018 (get_inv_cost): Increase computational cost for unused invariants.
1019
1020 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1021
1022 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
1023 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
1024 * config/s390/s390-builtin-types.def: New file.
1025 * config/s390/s390-builtins.def: New file.
1026 * config/s390/s390-builtins.h: New file.
1027 * config/s390/s390-c.c: New file.
1028 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
1029 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
1030 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
1031 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
1032 prototypes.
1033 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
1034 Include.
1035 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
1036 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
1037 variable definitions.
1038 (s390_const_operand_ok): New function.
1039 (s390_expand_builtin): Rewrite.
1040 (s390_init_builtins): New function.
1041 (s390_handle_vectorbool_attribute): New function.
1042 (s390_attribute_table): Add s390_vector_bool attribute.
1043 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
1044 (s390_branch_condition_mask): Generate masks for new modes.
1045 (s390_expand_vec_compare_cc): New function.
1046 (s390_mangle_type): Add mangling for vector bool types.
1047 (enum s390_builtin): Remove.
1048 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
1049 efpc builtins.
1050 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
1051 s390_cpu_cpp_builtins.
1052 (REGISTER_TARGET_PRAGMAS): New macro.
1053 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
1054 (insn_cmp mode attribute): Add new CC modes.
1055 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
1056 (lcbb): New pattern definition.
1057 * config/s390/s390intrin.h: Include vecintrin.h.
1058 * config/s390/t-s390: New file.
1059 * config/s390/vecintrin.h: New file.
1060 * config/s390/vector.md: Include vx-builtins.md.
1061 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
1062 support.
1063
1064 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1065
1066 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
1067 CCVFHE.
1068 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
1069 (s390_select_ccmode): Likewise.
1070 (s390_canonicalize_comparison): Swap operands if necessary.
1071 (s390_expand_vec_compare_scalar): Expand DFmode compare using
1072 single element vector instructions.
1073 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
1074 (s390_branch_condition_mask): Generate CC masks for the new modes.
1075 * config/s390/s390.md (v0, vf, vd): New mode attributes.
1076 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
1077 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
1078 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
1079 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
1080 (*extend<DSF:mode><BFP:mode>2): New insn definition.
1081 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
1082 (extend<DSF:mode><BFP:mode>2): Turn into expander.
1083 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
1084 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
1085 (sqrt<mode>2): Add vector instruction.
1086
1087 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1088
1089 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
1090 constraints.
1091 * config/s390/predicates.md (const0_operand, constm1_operand)
1092 (constable_operand): Accept vector operands.
1093 * config/s390/s390-modes.def: Add supported vector modes.
1094 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
1095 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
1096 (s390_bytemask_vector_p, s390_expand_vec_strlen)
1097 (s390_expand_vec_compare, s390_expand_vcond)
1098 (s390_expand_vec_init): Add prototypes.
1099 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
1100 (s390_vector_mode_supported_p): New function.
1101 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
1102 (s390_contiguous_bitmask_vector_p): New function.
1103 (s390_bytemask_vector_p): New function.
1104 (s390_split_ok_p): Vector regs don't work either.
1105 (regclass_map): Add VEC_REGS.
1106 (s390_legitimate_constant_p): Handle vector constants.
1107 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
1108 (legitimate_reload_vector_constant_p): New function.
1109 (s390_preferred_reload_class): Handle CONST_VECTOR.
1110 (s390_reload_symref_address): Likewise.
1111 (s390_secondary_reload): Vector memory instructions only support
1112 short displacements. Rename reload*_nonoffmem* to reload*_la*.
1113 (s390_emit_ccraw_jump): New function.
1114 (s390_expand_vec_strlen): New function.
1115 (s390_expand_vec_compare): New function.
1116 (s390_expand_vcond): New function.
1117 (s390_expand_vec_init): New function.
1118 (s390_dwarf_frame_reg_mode): New function.
1119 (print_operand): Handle addresses with 'O' and 'R' constraints.
1120 (NR_C_MODES, constant_modes): Add vector modes.
1121 (s390_output_pool_entry): Handle vector constants.
1122 (s390_hard_regno_mode_ok): Handle vector registers.
1123 (s390_class_max_nregs): Likewise.
1124 (s390_cannot_change_mode_class): New function.
1125 (s390_invalid_arg_for_unprototyped_fn): New function.
1126 (s390_function_arg_vector): New function.
1127 (s390_function_arg_float): Remove size variable.
1128 (s390_pass_by_reference): Handle vector arguments.
1129 (s390_function_arg_advance): Likewise.
1130 (s390_function_arg): Likewise.
1131 (s390_return_in_memory): Vector values are returned in a VR if
1132 possible.
1133 (s390_function_and_libcall_value): Handle vector arguments.
1134 (s390_gimplify_va_arg): Likewise.
1135 (s390_call_saved_register_used): Consider the arguments named.
1136 (s390_conditional_register_usage): Disable v16-v31 for non-vec
1137 targets.
1138 (s390_preferred_simd_mode): New function.
1139 (s390_support_vector_misalignment): New function.
1140 (s390_vector_alignment): New function.
1141 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
1142 (TARGET_VECTOR_MODE_SUPPORTED_P)
1143 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
1144 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1145 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
1146 (TARGET_VECTOR_ALIGNMENT): Define target macro.
1147 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
1148 (FIRST_PSEUDO_REGISTER): Increase value.
1149 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
1150 (VECTOR_REG_P): Define macros.
1151 (FIXED_REGISTERS, CALL_USED_REGISTERS)
1152 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
1153 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
1154 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
1155 Add vector registers.
1156 (CANNOT_CHANGE_MODE_CLASS): Call C function.
1157 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
1158 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
1159 memory.
1160 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
1161 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
1162 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
1163 (VR*_REGNUM): New constants.
1164 (ALL): New mode iterator.
1165 (INTALL): Remove mode iterator.
1166 Include vector.md.
1167 (movti): Implement TImode moves for VRs.
1168 Disable TImode splitter for VR targets.
1169 Implement splitting TImode GPR<->VR moves.
1170 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
1171 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
1172 reload<mode>_la_in, reload<mode>_la_out.
1173 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
1174 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
1175 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
1176 (mov<mode> SF SD): Prefer lder, lde for loading.
1177 Add lrl and strl instructions.
1178 Add vector instructions.
1179 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
1180 Call s390_expand_vec_strlen on z13.
1181 (*cc_to_int): Change predicate to nonimmediate_operand.
1182 (addti3): Rename to *addti3. New expander.
1183 (subti3): Rename to *subti3. New expander.
1184 * config/s390/vector.md: New file.
1185
1186 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1187
1188 * common/config/s390/s390-common.c (processor_flags_table): Add
1189 z13.
1190 * config.gcc: Add z13.
1191 * config/s390/s390-opts.h (enum processor_type): Add
1192 PROCESSOR_2964_Z13.
1193 * config/s390/s390.c (s390_adjust_priority): Check for
1194 PROCESSOR_2964_Z13.
1195 (s390_reorg): Likewise.
1196 (s390_sched_reorder): Likewise.
1197 (s390_sched_variable_issue): Likewise.
1198 (s390_loop_unroll_adjust): Likewise.
1199 (s390_option_override): Likewise. Default to -mvx when available.
1200 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
1201 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
1202 (TARGET_VX_ABI): Define macros.
1203 macros.
1204 (TARGET_DEFAULT): Add MASK_OPT_VX.
1205 * config/s390/s390.md ("cpu" attribute): Add z13.
1206 ("cpu_facility" attribute): Add vec.
1207 * config/s390/s390.opt (processor_type): Add z13.
1208 (mvx): New options.
1209 * doc/invoke.texi: Add z13 option for -march.
1210
1211 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1212
1213 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
1214 mode check to make sure that only scalar integer values are
1215 accepted.
1216
1217 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
1218
1219 * tree.c (verify_type_variant): Fix #undef.
1220 (gimple_canonical_types_compatible_p): Move here from lto.c
1221 (verify_type): Verify TYPE_CANONICAL compatibility.
1222 * tree.h (gimple_canonical_types_compatible_p): Declare.
1223
1224 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1225
1226 PR middle-end/66199
1227 * tree.h (OMP_TEAMS_COMBINED): Define.
1228 * gimplify.c (enum gimplify_omp_var_data): Add
1229 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
1230 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
1231 (omp_notice_variable): Accept both ORT_TEAMS
1232 and ORT_COMBINED_TEAMS. Don't recurse if
1233 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
1234 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
1235 GOVD_FIRSTPRIVATE.
1236 (omp_no_lastprivate): New function.
1237 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
1238 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
1239 notice_outer and set appropriate bits, otherwise make
1240 sure default(none) combined constructs won't complain.
1241 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
1242 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
1243 omp_no_lastprivate either remove the clause or turn it
1244 into OMP_CLAUSE_PRIVATE.
1245 (gimplify_omp_for): Fix up handling of implicit
1246 lastprivate or linear iterators.
1247 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
1248 ORT_COMBINED_TEAMS.
1249 * omp-low.c (lower_omp_for_lastprivate): For combined
1250 for simd use fd.loop.n2 from the for rather than simd.
1251
1252 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1253
1254 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
1255 instead of gen_rtx_raw_REG.
1256 (cris_expand_epilogue): Likewise.
1257 * config/microblaze/microblaze.c (microblaze_classify_address):
1258 Likewise.
1259 * config/sparc/sparc.md: Likewise.
1260
1261 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
1262
1263 * config/alpha/alpha.c (alpha_legitimize_reload_address)
1264 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
1265 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
1266 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
1267 Use CASE_CONST_SCALAR_INT.
1268 (print_operand) <case 'M'>: Use mode_width_operand to check the
1269 value of the constant.
1270 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
1271 * config/alpha/predicates.md (input_operand): Use general_operand
1272 instead of match_code as operand check.
1273 (symbolic_operand): Use match_code with subexpression digits.
1274 * config/alpha/constraints.md (Q): Ditto.
1275
1276 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1277
1278 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
1279
1280 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1281
1282 * config/s390/s390.c (s390_secondary_reload): Fix check for
1283 load/store relative.
1284
1285 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1286
1287 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
1288 alternative_mask to uint64_t.
1289
1290 2015-05-19 Jakub Jelinek <jakub@redhat.com>
1291
1292 PR tree-optimization/66187
1293 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
1294 Pass TYPE_SIGN to tree_int_cst_min_precision. If
1295 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
1296
1297 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1298
1299 * diagnostic.c (diagnostic_report_current_module): Strengthen
1300 local "new_map" from const line_map * to
1301 const line_map_ordinary *.
1302 * genmatch.c (error_cb): Likewise for local "map".
1303 (output_line_directive): Likewise for local "map".
1304 * input.c (expand_location_1): Likewise for local "map".
1305 Pass NULL rather than &map to
1306 linemap_unwind_to_first_non_reserved_loc, since the value is never
1307 read from there, and the value written back not read from here.
1308 (is_location_from_builtin_token): Strengthen local "map" from
1309 const line_map * to const line_map_ordinary *.
1310 (dump_location_info): Strengthen locals "map" from
1311 line_map *, one to const line_map_ordinary *, the other
1312 to const line_map_macro *.
1313 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
1314 const line_map * to const line_map_macro *.
1315 (maybe_unwind_expanded_macro_loc): Add a call to
1316 linemap_check_macro when writing to the "map" field of the
1317 loc_map_pair.
1318 Introduce local const line_map_ordinary * "ord_map", using it in
1319 place of "map" in the part of the function where we know we have
1320 an ordinary map. Strengthen local "m" from const line_map * to
1321 const line_map_ordinary *.
1322
1323 2015-05-19 Nick Clifton <nickc@redhat.com>
1324
1325 PR target/66156
1326 * config/msp430/msp430.md (zero_extendhisi2): Add support for
1327 separate source and destination registers.
1328
1329 2015-05-19 Richard Biener <rguenther@suse.de>
1330
1331 PR tree-optimization/66165
1332 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
1333 for no load permutation.
1334
1335 PR tree-optimization/66185
1336 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
1337 when building the SLP node from scalars.
1338
1339 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
1340 Tristan Gingold <gingold@adacore.com>
1341
1342 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
1343 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
1344 (expand_stack_restore): Call record_new_stack_level.
1345 (expand_stack_save): Do not call do_pending_stack_adjust.
1346 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
1347 * calls.c (expand_call): Call record_new_stack_level for alloca.
1348 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
1349 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
1350 (update_sjlj_context): New global function.
1351 * except.h (update_sjlj_context): Declare.
1352 * explow.c (record_new_stack_level): New global function.
1353 (allocate_dynamic_stack_space): Call record_new_stack_level.
1354 * explow.h (record_new_stack_level): Declare.
1355 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
1356 * cfgrtl.c (duplicate_insn_chain): Likewise.
1357
1358 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1359
1360 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
1361 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
1362 STACK_GROWS_DOWNWARD as normal if.
1363 (expand_call): Likewise.
1364
1365 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
1366
1367 PR target/54236
1368 * config/sh/sh.md (*round_int_even): New insn_and_split and
1369 accompanying new unnamed split.
1370
1371 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1372
1373 * bitmap.c (bitmap_set_range): Handle count==1 specially.
1374 (bitmap_clear_range): Likewise.
1375 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
1376 bitmap_set_range unconditionally.
1377 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1378 * df-scan.c (df_mark_reg): Likewise.
1379 * haifa-sched.c (setup_ref_regs): Likewise.
1380 * sched-rgn.c (update_live_1): Likewise.
1381
1382 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1383
1384 * regs.h (END_HARD_REGNO): Delete.
1385 (END_REGNO): Move to...
1386 * rtl.h: ...here.
1387 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
1388 * caller-save.c (mark_set_regs): Likewise.
1389 * combine.c (move_deaths, distribute_notes): Likewise.
1390 * cse.c (invalidate, invalidate_for_call): Likewise.
1391 * df-scan.c (df_ref_record): Likewise.
1392 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
1393 (record_last_reg_set_info): Likewise.
1394 * reg-stack.c (convert_regs_exit): Likewise.
1395 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
1396 * resource.c (update_live_status): Likewise.
1397 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
1398
1399 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1400
1401 * rtl.h (reg_info): Add an nregs field.
1402 (REG_NREGS): Use it.
1403 (SET_REGNO_RAW): Delete.
1404 (set_regno_raw): New function.
1405 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
1406 (END_REGNO): Redefine in terms of REG_NREGS.
1407 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
1408 SET_REGNO_RAW.
1409 * emit-rtl.c (set_mode_and_regno): Likewise.
1410 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
1411 instead of SET_REGNO_RAW.
1412
1413 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1414
1415 * rtl.h (PUT_MODE_RAW): New macro.
1416 (PUT_REG_NOTE_KIND): Use it.
1417 (set_mode_and_regno): Declare.
1418 (gen_raw_REG): Change regno to "unsigned int".
1419 (gen_rtx_REG): Change "unsigned" to "unsigned int".
1420 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
1421 use set_mode_and_regno to change the mode of registers.
1422 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
1423 * emit-rtl.c (set_mode_and_regno): New function.
1424 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
1425 * caller-save.c (reg_save_code): Use set_mode_and_regno.
1426 * expr.c (init_expr_target): Likewise.
1427 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1428 * postreload.c (reload_cse_simplify_operands): Likewise.
1429
1430 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1431
1432 * caller-save.c (init_caller_save): Use word_mode and
1433 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
1434 * expr.c (init_expr_target): Likewise.
1435 * ira.c (setup_prohibited_mode_move_regs): Likewise.
1436 * postreload.c (reload_cse_regs_1): Likewise.
1437
1438 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1439
1440 * rtl.def (REG): Change format to "r".
1441 * rtl.h (rtunion): Remove rt_reg.
1442 (reg_info): New structure.
1443 (rtx_def): Add reg field to main union.
1444 (X0REGATTR): Delete.
1445 (REG_CHECK): New macro.
1446 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
1447 * rtl.c (rtx_format): Document "r".
1448 (rtx_code_size): Handle REG specially.
1449 * gengenrtl.c (special_format): Return true for formats
1450 that include 'r'.
1451 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
1452 Deal with REG_ATTRS after the field loop.
1453 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
1454 * expmed.c (init_expmed): Call gen_raw_REG instead of
1455 gen_rtx_raw_REG.
1456 * expr.c (init_expr_target): Likewise.
1457 * regcprop.c (maybe_mode_change): Likewise.
1458 * varasm.c (make_decl_rtl): Likewise.
1459 * final.c (leaf_renumber_regs_insn): Return early after
1460 handling REGs.
1461 * genemit.c (gen_exp): Handle 'r' fields.
1462 * genpeep.c (match_rtx): Likewise.
1463 * gensupport.c (subst_pattern_match): Likewise.
1464 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
1465 (alter_constraints, subst_dup): Likewise.
1466 * read-rtl.c (read_rtx_code): Likewise.
1467 * print-rtl.c (print_rtx): Likewise.
1468 * genrecog.c (find_operand, find_matching_operand): Likewise.
1469 (validate_pattern, match_pattern_2): Likewise.
1470 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
1471 (rtx_test::regno_field): New function.
1472 (operator ==, safe_to_hoist_p, transition_parameter_type)
1473 (parameter_type_string, print_parameter_value)
1474 (print_nonbool_test, print_test): Handle new enum values.
1475 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
1476 * lra-constraints.c (operands_match_p): Likewise.
1477
1478 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1479
1480 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
1481 Change type of new_regno to unsigned int.
1482 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
1483 new_regno to unsigned int.
1484 (df_ref_change_reg_with_loc): Remove old_regno parameter.
1485 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
1486 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
1487 (SET_REGNO_RAW): Add space after ",".
1488
1489 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * rtl.h (REG_NREGS): New macro
1492 * alias.c (record_set): Use it.
1493 * cfgcleanup.c (mark_effect): Likewise.
1494 * combine.c (likely_spilled_retval_1): Likewise.
1495 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
1496 (move_deaths, distribute_notes): Likewise.
1497 * cselib.c (cselib_record_set): Likewise.
1498 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
1499 * df-scan.c (df_mark_reg): Likewise.
1500 * dse.c (look_for_hardregs): Likewise.
1501 * dwarf2out.c (reg_loc_descriptor): Likewise.
1502 (multiple_reg_loc_descriptor): Likewise.
1503 * expr.c (write_complex_part, read_complex_part): Likewise.
1504 (emit_move_complex): Likewise.
1505 * haifa-sched.c (setup_ref_regs): Likewise.
1506 * ira-lives.c (mark_hard_reg_live): Likewise.
1507 * lra.c (lra_set_insn_recog_data): Likewise.
1508 * mode-switching.c (create_pre_exit): Likewise.
1509 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
1510 (reload_combine_recognize_pattern): Likewise.
1511 (reload_combine_note_use, move2add_record_mode): Likewise.
1512 (reload_cse_move2add): Likewise.
1513 * reg-stack.c (subst_stack_regs_pat): Likewise.
1514 * regcprop.c (kill_value, copy_value): Likewise.
1515 (copyprop_hardreg_forward_1): Likewise.
1516 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
1517 (build_def_use): Likewise.
1518 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
1519 (deps_analyze_insn): Likewise.
1520 * sched-rgn.c (check_live_1, update_live_1): Likewise.
1521 * sel-sched.c (count_occurrences_equiv): Likewise.
1522 * valtrack.c (dead_debug_insert_temp): Likewise.
1523
1524 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
1525
1526 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
1527 * dse.c (note_add_store): Likewise.
1528 * ira-lives.c (mark_hard_reg_dead): Likewise.
1529 * loop-invariant.c (mark_reg_store): Likewise.
1530 (mark_reg_death): Likewise.
1531 * postreload.c (reload_combine): Likewise.
1532 (reload_combine_note_store): Likewise.
1533 (reload_combine_note_use): Likewise.
1534 * recog.c (peep2_reg_dead_p): Likewise.
1535
1536 2015-05-19 Alan Modra <amodra@gmail.com>
1537
1538 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
1539 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
1540 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
1541 unused predicates.
1542 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
1543 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
1544 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
1545 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
1546
1547 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
1548
1549 * config/mips/mips.md (JOIN_MODE): New mode iterator.
1550 (join2_load_Store<JOIN_MODE:mode>): New pattern.
1551 (join2_loadhi): Likewise.
1552 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
1553 load-load and store-stores.
1554 * config/mips/mips.opt (mload-store-pairs): New option.
1555 (TARGET_LOAD_STORE_PAIRS): New macro.
1556 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
1557 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
1558 * config/mips/mips.c (mips_load_store_bonding_p): New function.
1559
1560 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1561
1562 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
1563 explicit swaps.
1564 * dojump.c (do_compare_rtx_and_jump): Likewise.
1565 * expmed.c (emit_store_flag_1): Likewise.
1566 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
1567 * final.c (sprint_ul): Use std::reverse for reversing a string.
1568 * fold-const.c (extract_muldiv_1): Use std::swap.
1569 * genmodes.c (emit_mode_int_n): Likewise.
1570 * ifcvt.c (dead_or_predicable): Likewise.
1571 * ira-build.c (ira_merge_live_ranges): Likewise.
1572 (swap_allocno_copy_ends_if_necessary): Likewise.
1573 * ira.c (ira_setup_alts): Likewise.
1574 * loop-iv.c (iv_analyze_expr): Likewise.
1575 (implies_p): Likewise.
1576 (canon_condition): Likewise.
1577 * lra-constraints.c (swap_operands): Likewise.
1578 * lra-lives.c (lra_merge_live_ranges): Likewise.
1579 * omega.c (swap): Remove.
1580 (bswap): Remove.
1581 (omega_unprotect_1): Use std::swap.
1582 (omega_solve_geq): Likewise.
1583 * optabs.c (expand_binop_directly): Likewise.
1584 (expand_binop): Likewise.
1585 (emit_conditional_move): Likewise.
1586 (emit_conditional_add): Likewise.
1587 * postreload.c (reload_cse_simplify_operands): Likewise.
1588 * reg-stack.c (emit_swap_insn): Likewise.
1589 (swap_to_top): Likewise.
1590 (compare_for_stack_reg): Likewise.
1591 (subst_asm_stack_regs): Likewise.
1592 * reload.c (find_reloads): Likewise.
1593 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
1594 * sel-sched.c (invoke_reorder_hooks): Likewise.
1595 (create_block_for_bookkeeping): Likewise.
1596 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
1597 (lambda_matrix_right_hermite): Use std::swap.
1598 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
1599 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1600 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
1601 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
1602 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1603 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
1604 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1605 * tree-vrp.c (compare_ranges): Likewise.
1606 * var-tracking.c (add_with_sets): Likewise.
1607 (vt_find_locations): Likewise.
1608
1609 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
1610
1611 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
1612 pie executables.
1613 (FBSD_ENDFILE_SPEC): Likewise.
1614 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
1615 config/freebsd-spec.h.
1616 (ENDFILE_SPEC): Likewise.
1617
1618 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
1619 Richard Henderson <rth@redhat.com>
1620
1621 PR target/57032
1622 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
1623 Check for a memory location that is not a reference (using an AND)
1624 to an unaligned location here.
1625 * config/alpha/predicates.md (normal_memory_operand): Remove.
1626
1627 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
1628
1629 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
1630 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
1631
1632 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
1633
1634 * config/mips/mips.c (micromips_globals): New variable.
1635 (mips_set_compression_mode): Save and reinitialize target-dependent
1636 state for microMIPS.
1637
1638 2015-05-18 Martin Liska <mliska@suse.cz>
1639
1640 * dbgcnt.def: Add new counter.
1641 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
1642
1643 2015-05-18 Martin Liska <mliska@suse.cz>
1644
1645 * dbgcnt.def: Sort counters.
1646 * opts.c (common_handle_option): Do not compile if
1647 -fdbg-cnt-list is enabled.
1648
1649 2015-05-18 Tom de Vries <tom@codesourcery.com>
1650
1651 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
1652 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
1653 address operator to va_list operand.
1654 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
1655 unconditionally.
1656 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
1657 operand.
1658 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
1659 * config/s390/s390.c (s390_gimplify_va_arg): Same.
1660 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
1661
1662 2015-05-18 Tom de Vries <tom@codesourcery.com>
1663
1664 * tree-ssa-tail-merge.c: Fix whitespace.
1665
1666 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
1667
1668 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
1669 cortex-a17, and cortex-a17.cortex-a7.
1670
1671 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
1672
1673 PR target/54236
1674 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
1675
1676 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
1677
1678 PR target/66174
1679 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
1680 QImode inner modes for TARGET_AVX512BW. Force mask operand
1681 to a register for AVX512F modes.
1682
1683 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1684
1685 * toplev.c (emit_debug_global_declarations): Do not output debug info
1686 when doing slim LTO objects.
1687
1688 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1689
1690 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
1691 odr_types_equivalent_p): Declare.
1692 (odr_type_p): Use gcc_checking_assert.
1693 (type_in_anonymous_namespace_p) Declare.
1694 (type_with_linkage_p): Declare.
1695 * common.opt (Wlto-type-mismatch): New warning.
1696 * ipa-devirt.c (compound_type_base): New function.
1697 (odr_or_derived_type_p): New function.
1698 (odr_types_equivalent_p): New function.
1699 (add_type_duplicate): Simplify.
1700 (type_with_linkage_p): Add hack to prevent false positives on C types
1701 (type_in_anonymous_namespace_p): Likewise.
1702 * tree.c (need_assembler_name_p): Use type_with_linkage.
1703 * tree.h (type_in_anonymous_namespace_p): Remove.
1704 * doc/invoke.texi (-Wlto-type-mismatch): Document
1705
1706 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
1707
1708 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
1709 (verify_type): Verify STRING_FLAG.
1710
1711 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1712
1713 PR fortran/44054
1714 * tree-pretty-print.c (percent_K_format): Replace locus pointer
1715 with accessor function.
1716 * tree-diagnostic.c (diagnostic_report_current_function): Use
1717 diagnostic_location function.
1718 (maybe_unwind_expanded_macro_loc): Likewise.
1719 (virt_loc_aware_diagnostic_finalizer): Likewise.
1720 (default_tree_printer): Replace locus pointer with accessor function.
1721 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
1722 (diagnostic_set_info_translated): Initialize second location.
1723 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
1724 (diagnostic_show_locus): Handle two locations. Call
1725 diagnostic_print_caret_line.
1726 (diagnostic_print_caret_line): New.
1727 (default_diagnostic_starter): Use diagnostic_location function.
1728 (diagnostic_report_diagnostic): Use diagnostic_location function.
1729 (verbatim): Do not set text.locus.
1730 * diagnostic.h (struct diagnostic_info): Remove location field.
1731 (struct diagnostic_context): Make caret_chars an array of two.
1732 (diagnostic_location): New inline.
1733 (diagnostic_expand_location): Handle two locations.
1734 (diagnostic_same_line): New inline.
1735 (diagnostic_print_caret_line): Declare.
1736 (CARET_LINE_MARGIN): New constant.
1737 * pretty-print.c (pp_printf): Do not set text.locus.
1738 (pp_verbatim): Do not set text.locus.
1739 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
1740 (struct text_info): Replace locus pointer with locations
1741 array. Add accessor functions.
1742
1743 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
1744 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1745
1746 PR target/65768
1747 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
1748 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
1749 large constants in register instead of splitting them.
1750
1751 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
1752
1753 PR target/66140
1754 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
1755 replacements in memory addresses.
1756 (get_unaligned_address): Ditto.
1757
1758 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
1759
1760 PR tree-optimization/64454
1761 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
1762 (-1 - A -> ~A): Remove unnecessary condition.
1763
1764 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1765
1766 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
1767 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
1768 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
1769
1770 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
1771
1772 * ipa-chkp.h (chkp_wrap_function): New.
1773 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
1774 (chkp_wrap_function_name): New.
1775 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
1776 to get wrapper name.
1777 * lto-cgraph.c: Include ipa-chkp.h.
1778 (input_cgraph_1): Avoid alias chain for wrappers.
1779
1780 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
1781
1782 PR middle-end/66134
1783 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
1784 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
1785
1786 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1787
1788 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
1789 (AARCH64_FL_SLOWMUL): Delete.
1790 (AARCH64_FL_CRC): Redefine to 1<<3.
1791 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
1792
1793 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1794
1795 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
1796 casting.
1797
1798 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
1799
1800 * config/alpha/alpha.md (extendqidi2): Use general_operand
1801 instead of some_operand for operand[1] predicate.
1802 (extendhidi2): Ditto.
1803 (cbranchdi4): Use general_operand instead of some_operand
1804 for operand[1] and operands[2] predicates.
1805 (cstoredi4): Ditto.
1806 * config/alpha/predicates.md (some_operand): Remove unused predicate.
1807 (some_ni_operand): Ditto.
1808
1809 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
1810
1811 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
1812 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
1813 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
1814 low part of the constant using alpha_emit_set_const_1.
1815 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
1816
1817 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
1818
1819 * varasm.c (output_constant_pool_1): Pass down alignment from
1820 constant pool entry's descriptor to output_constant_pool_2.
1821 (output_object_block): Add comment prior to call to
1822 output_constant_pool_1.
1823
1824 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
1825
1826 PR rtl-optimization/65862
1827 * target.def (ira_change_pseudo_allocno_class): New hook.
1828 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
1829 value of the hook.
1830 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
1831 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
1832 hook.
1833 * ira-costs.c (find_costs_and_classes): Call the hook and change
1834 classes when it is necessary.
1835 * doc/tm.texi: Update.
1836
1837 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
1838
1839 * config/i386/i386.md (sibcall_memory): Check that register with
1840 callee address is not also used as one of the arguments, instead
1841 of checking that it is not live after the sibcall.
1842 (sibcall_pop_memory): Ditto.
1843 (sibcall_value_memory): Ditto.
1844 (sibcall_value_pop_memory): Ditto.
1845
1846 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
1847
1848 * generic-match-head.c (types_match): Handle non-types.
1849 * gimple-match-head.c (types_match): Likewise.
1850 * match.pd: Remove unnecessary TREE_TYPE for types_match.
1851
1852 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
1853
1854 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
1855 (csneg3<mode>_insn): Enable expansion of pattern.
1856
1857 2015-05-14 Nick Clifton <nickc@redhat.com>
1858
1859 * config/rl78/rl78.c (rl78_select_section): Select the correct
1860 default section based upon the category of the decl.
1861
1862 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1863
1864 PR rtl-optimization/30967
1865 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
1866 destination mode for the cost of scc patterns.
1867
1868 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1869
1870 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
1871 using SWIM248 mode iterator.
1872 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
1873 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
1874 for operand[2] constraint.
1875 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
1876
1877 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1878
1879 PR middle-end/66133
1880 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
1881 make sure it is never noreturn, even when the task body does not
1882 return.
1883 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
1884 right before GIMPLE_OMP_RETURN.
1885 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
1886 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
1887 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
1888
1889 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1890
1891 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
1892 * tree-ssa-math-opts.c: Include params.h
1893 (pow_synth_sqrt_info): New struct.
1894 (representable_as_half_series_p): New function.
1895 (get_fn_chain): Likewise.
1896 (print_nested_fn): Likewise.
1897 (dump_fractional_sqrt_sequence): Likewise.
1898 (dump_integer_part): Likewise.
1899 (expand_pow_as_sqrts): Likewise.
1900 (gimple_expand_builtin_pow): Use above to attempt to expand
1901 pow as series of square roots. Removed now unused variables.
1902
1903 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
1904
1905 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
1906 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
1907 Remove *p0 and *p1 arguments. Rewrite function.
1908 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
1909 (alpha_split_const_mov): Update calls to alpha_extract_integer and
1910 alpha_emit_set_long_const.
1911 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
1912 (alpha_output_mi_thunk_osf): Ditto.
1913 * config/alpha/alpha.md (movti): Do not check operands[1]
1914 for CONST_DOUBLE.
1915
1916 2015-05-13 Richard Biener <rguenther@suse.de>
1917
1918 PR tree-optimization/66129
1919 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
1920 commutative.
1921 (vect_schedule_slp_instance): Fix typo.
1922
1923 2015-05-13 David Malcolm <dmalcolm@redhat.com>
1924
1925 * common.opt (fdump-internal-locations): New option.
1926 * input.c: Include diagnostic-core.h.
1927 (get_end_location): New function.
1928 (write_digit): New function.
1929 (write_digit_row): New function.
1930 (dump_location_range): New function.
1931 (dump_labelled_location_range): New function.
1932 (dump_location_info): New function.
1933 * input.h (dump_location_info): New prototype.
1934 * toplev.c (compile_file): Handle flag_dump_locations.
1935
1936 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
1937
1938 * gimple-expr.h (is_gimple_constant): Reorder.
1939 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
1940
1941 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
1942
1943 * combine.c (simplify_set): When generating a CC set, if the
1944 source already is in the correct mode, do not wrap it in a
1945 compare. Simplify the rest of that code.
1946
1947 2015-05-13 Richard Biener <rguenther@suse.de>
1948
1949 PR tree-optimization/66123
1950 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
1951 a taken edge.
1952
1953 2015-05-13 Richard Biener <rguenther@suse.de>
1954
1955 PR middle-end/66110
1956 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
1957 specially.
1958 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
1959
1960 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
1961
1962 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
1963 * aclocal.m4: Regenerated with automake-1.11.6.
1964
1965 2015-05-13 Tom de Vries <tom@codesourcery.com>
1966
1967 PR tree-optimization/66010
1968 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
1969 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
1970 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
1971 and rval based on do_deref.
1972
1973 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1974
1975 PR target/65103
1976 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
1977 link time constants into adress expressions and therefore set
1978 their cost to 0.
1979
1980 2015-05-13 Jakub Jelinek <jakub@redhat.com>
1981
1982 PR target/66112
1983 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
1984 Use SWI248 iterator instead of SWI.
1985 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
1986 Use eq_attr "alternative" "0" instead of match_test in
1987 length_immediate attribute computation.
1988 (*mulvhi4, *mulvhi4_1): New define_insns.
1989
1990 PR target/66112
1991 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
1992 SIGNED to get precision of non-negative value.
1993
1994 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
1995
1996 PR target/66048
1997 * function.c (diddle_return_value_1): Process bounds first.
1998 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
1999 register.
2000
2001 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2002
2003 PR rtl-optimization/64616
2004 * loop-invariant.c (can_move_invariant_reg): New.
2005 (move_invariant_reg): Call above new function to decide whether
2006 instruction can just be moved, skipping creation of temporary
2007 register.
2008
2009 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2010
2011 PR target/pr66047.c
2012 * i386.c (ix86_function_sseregparm): Only return -1 if local function
2013 with implied regparm is called from -mno-sse function.
2014 (init_cumulative_args): Output error if ix86_function_sseregparm
2015 return -1 and SSE register would be needed.
2016 (function_arg_advance_32): Likewise.
2017 (function_arg_32): Likewise.
2018 * i386.h (ix86_args): Add decl field.
2019
2020 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2021
2022 PR ipa/65873
2023 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
2024 inlines across optimization boundary.
2025
2026 2015-05-12 Jason Merrill <jason@redhat.com>
2027
2028 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
2029 string literal and macro name.
2030
2031 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
2032
2033 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
2034 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
2035 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
2036
2037 2015-05-12 David Malcolm <dmalcolm@redhat.com>
2038
2039 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
2040 (-Wmisleading-indentation): New option.
2041 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
2042
2043 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
2044
2045 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
2046 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
2047 (alpha_extract_integer): Ditto.
2048 (alpha_legitimate_constant_p): Ditto.
2049 (alpha_split_tmode_pair): Ditto.
2050 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
2051 (alpha_expand_mov): Ditto.
2052 (print_operand): Remove handling of 'H' modifier.
2053 <case 'm'>: Remove CONST_DOUBLE handling.
2054 (summarize_insn): Handle CONST_WIDE_INT.
2055 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
2056 (anddi3): Ditto.
2057 (movti): Handle CONST_WIDE_INT.
2058 * config/alpha/constraints.md ('H'): Remove constraint definition.
2059 ('G'): Do not match MODE_FLOAT class.
2060 * config/alpha/predicates.md (const0_operand): Also match
2061 const_wide_int.
2062 (non_add_const_operand): Ditto.
2063 (non_zero_const_operand): Ditto.
2064 (some_operand): Ditto.
2065 (input_operand): Ditto. Handle CONST_WIDE_INT.
2066 (and_operand): Do not match const_double.
2067 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
2068
2069 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
2070
2071 PR target/65697
2072 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
2073 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
2074 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
2075 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
2076 is_mm_seq_cst, is_mm_sync): New accessor functions.
2077 * builtins.c (expand_builtin_sync_operation,
2078 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
2079 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
2080 (get_memmodel, expand_builtin_atomic_compare_exchange,
2081 expand_builtin_atomic_load, expand_builtin_atomic_store,
2082 expand_builtin_atomic_clear): Use new accessor routines.
2083 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
2084 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
2085 (maybe_emit_sync_lock_test_and_set): Use new accessors and
2086 MEMMODEL_SYNC_ACQUIRE.
2087 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
2088 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
2089 expand_atomic_store): Use new accessors.
2090 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
2091 * tsan.c (instrument_builtin_call): Update check for memory model beyond
2092 final enum to use MEMMODEL_LAST.
2093 * c-family/c-common.c: Use new accessor for memmodel_base.
2094 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
2095 accessors.
2096 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
2097 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
2098 mem_thread_fence, *dmb): Likewise.
2099 * config/alpha/alpha.c (alpha_split_compare_and_swap,
2100 alpha_split_compare_and_swap_12): Likewise.
2101 * config/arm/arm.c (arm_expand_compare_and_swap,
2102 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
2103 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
2104 atomic_loaddi): Likewise.
2105 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
2106 Likewise.
2107 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
2108 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
2109 use new accessors.
2110 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
2111 atomic_store<mode>, atomic_compare_and_swap<mode>,
2112 atomic_exchange<mode>): Use new accessors.
2113 * config/mips/mips.c (mips_process_sync_loop): Likewise.
2114 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
2115 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
2116 rs6000_post_atomic_barrier): Add new cases.
2117 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
2118 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
2119 (atomic_load<mode>): Add new cases and use new accessors.
2120 (store_quadpti): Add new cases.
2121 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
2122 accessors.
2123 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
2124 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
2125 model, not 8.
2126
2127 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
2128
2129 * ipa-devirt.c (type_with_linkage_p): New function.
2130 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
2131 type has linkage.
2132 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
2133 (can_be_name_hashed_p): Simplify.
2134 (hash_odr_name): Check that type has linkage before checking if it is
2135 anonymous.
2136 (types_same_for_odr): Likewise.
2137 (odr_name_hasher::equal): Likewise.
2138 (odr_subtypes_equivalent_p): Likewise.
2139 (warn_types_mismatch): Likewise.
2140 (get_odr_type): Likewise.
2141 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
2142 * ipa-utils.h (odr_type_p): Move offline.
2143 * tree.c (need_assembler_name_p): Fix handling of types
2144 without linkages.
2145 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
2146
2147 2015-05-12 David Malcolm <dmalcolm@redhat.com>
2148
2149 * timevar.c (timevar_enable): Delete in favor of...
2150 (g_timer): New global.
2151 (struct timevar_def): Move to timevar.h inside class timer.
2152 (struct timevar_stack_def): Likewise.
2153 (timevars): Delete global in favor of field "m_timevars" within
2154 class timer in timevar.h
2155 (stack): Likewise, in favor of field "m_stack".
2156 (unused_stack_instances): Likewise, in favor of field
2157 "m_unused_stack_instances".
2158 (start_time): Likewise, in favor of field "m_start_time".
2159 (get_time): Eliminate check for timevar_enable.
2160 (timer::timer): New function, built from part of timevar_init.
2161 (timevar_init): Rewrite idempotency test from using
2162 "timevar_enable" bool to using dynamic allocation of "g_timer".
2163 Move rest of implementation into timer's constructor.
2164 (timevar_push_1): Rename to...
2165 (timer::push): ...this, adding "m_" prefixes to variables that
2166 are now fields of timer.
2167 (timevar_pop_1): Likewise, rename to...
2168 (timer::pop): ...this, and add "m_" prefixes.
2169 (timevar_start): Replace test for "timevar_enable" with one for
2170 "g_timer", and move bulk of implementation to...
2171 (timer::start): ...here, adding "m_" prefixes.
2172 (timevar_stop): Likewise, from here...
2173 (timer::stop): ...to here.
2174 (timevar_cond_start): Likewise, from here...
2175 (timer::cond_start): ...to here.
2176 (timevar_cond_stop): Likewise, from here...
2177 (timer::cond_stop): ...to here.
2178 (validate_phases): Rename to...
2179 (timer::validate_phases): ...this, and add "m_" prefixes. Make
2180 locals "total" and "tv" const.
2181 (timevar_print): Rename to...
2182 (timer::print): ...this, and add "m_" prefixes. Make locals
2183 "total" and "tv" const. Eliminate test for timevar_enable.
2184 * timevar.h (timevar_enable): Eliminate.
2185 (g_timer): New declaration.
2186 (timevar_push_1): Eliminate.
2187 (timevar_pop_1): Eliminate.
2188 (timevar_print): Eliminate.
2189 (class timer): New class.
2190 (timevar_push): Rewrite to use g_timer.
2191 (timevar_pop): Likewise.
2192 * toplev.c (toplev::~toplev): Likewise.
2193
2194 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
2195
2196 * arm-protos.h (arm_sched_autopref): Delete.
2197 (tune_params): Re-organize, use enums for flag values.
2198 (FUSE_OPS): New macro.
2199 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
2200 (ARM_PREFETCH_BENEFICIAL): Likewise.
2201 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
2202 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
2203 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
2204 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
2205 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
2206 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
2207 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
2208 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
2209 format.
2210 (arm_option_override, thumb2_reorg, arm_print_tune_info)
2211 (aarch_macro_fusion_pair_p): Update uses of current_tune.
2212 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
2213
2214 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
2215
2216 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
2217 "break".
2218
2219 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
2220 Sandra Loosemore <sandra@codesourcery.com>
2221
2222 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
2223 value.
2224 (REG_CLASS_NAMES): Add "IJMP_REGS".
2225 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
2226 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
2227 use new "c" register constraint.
2228 * config/nios2/constraint.md (c): New register constraint
2229 corresponding to IJMP_REGS.
2230
2231 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2232
2233 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
2234 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
2235 define_splits): Delete, revamp, transmogrify into ...
2236 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2237 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2238 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2239 New.
2240
2241 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2242
2243 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
2244 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
2245
2246 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2247
2248 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
2249 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
2250 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
2251 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
2252 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
2253 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
2254 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
2255 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
2256 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
2257 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
2258 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
2259 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
2260 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
2261 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
2262 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
2263 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
2264 and 30 corresponding splitters): Delete.
2265
2266 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2267
2268 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
2269 zero_extract.
2270
2271 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2272
2273 * combine.c (recog_for_combine_1): New function, factored out
2274 from recog_for_combine.
2275 (change_zero_ext): New function.
2276 (recog_for_combine): If recog fails, try again with the pattern
2277 modified by change_zero_ext; if that still fails, restore the
2278 pattern.
2279
2280 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
2281
2282 * combine.c (get_undo_marker): New function.
2283 (undo_to_marker): New function, largely factored out from ...
2284 (undo_all): ... this. Adjust.
2285
2286 2015-05-12 Richard Biener <rguenther@suse.de>
2287
2288 PR tree-optimization/66101
2289 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
2290 fixup if we turn a loop exit edge to a fallthru edge.
2291
2292 2015-05-12 Richard Biener <rguenther@suse.de>
2293
2294 PR tree-optimization/37021
2295 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
2296 (SLP_TREE_TWO_OPERATORS): New define.
2297 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
2298 SLP_TREE_TWO_OPERATORS.
2299 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
2300 SLP node.
2301 (vect_build_slp_tree): Adjust.
2302 (vect_analyze_slp_cost_1): Likewise.
2303 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
2304 emitting two vector stmts and mixing the results.
2305
2306 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
2307
2308 * call.c (print_z_candidates): Remove dead code.
2309
2310 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2311
2312 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
2313 and zEC12_simple_fp.
2314 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
2315 to 1.
2316
2317 2015-05-12 Tom de Vries <tom@codesourcery.com>
2318
2319 PR tree-optimization/66010
2320 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
2321 ifn_va_arg.
2322 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
2323 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
2324 va_lists are passed, and remove corresponding handling.
2325 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
2326 do_deref argument to ifn_va_arg.
2327 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
2328 ifn_va_arg.
2329
2330 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2331
2332 PR target/65955
2333 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
2334 REG before taking its REGNO.
2335
2336 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
2337
2338 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
2339 rsp->sign_bit_copies and rsp->nonzero_bits into ...
2340 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
2341 present to get more accurate information about the number of sign bit
2342 copies and non zero bits.
2343
2344 2015-05-12 Richard Biener <rguenther@suse.de>
2345
2346 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
2347 do not allow unrolling.
2348
2349 2015-05-11 Richard Henderson <rth@redhat.com>
2350
2351 * config/i386/i386-modes.def (CCP): New.
2352 * config/i386/i386.c (put_condition_code): Handle it.
2353 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
2354
2355 2015-05-11 Richard Henderson <rth@redhat.com>
2356
2357 * target.def (md_asm_clobbers): Replace with...
2358 (md_asm_adjust): this.
2359 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
2360 (TARGET_MD_ASM_ADJUST): New.
2361 * tm.texi: Rebuild.
2362 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
2363 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
2364 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
2365
2366 * cfgexpand.c (check_operand_nalternatives): Accept vector of
2367 constraints instead of lists of outputs and inputs.
2368 (expand_asm_stmt): Save and restore input_location around the
2369 body of the function. Move asm data into vectors instead of
2370 building tree lists. Generate cleanup sequences as needed,
2371 rather than waiting til the end. Use new md_asm_adjust hook.
2372
2373 * config/vxworks.c: Include vec.h before target.h.
2374 * gimple.c: Likewise.
2375 * incpath.c: Likewise.
2376 * mode-switching.c: Likewise.
2377
2378 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
2379 (cris_md_asm_adjust): this.
2380 (TARGET_MD_ASM_CLOBBERS): Remove.
2381 (TARGET_MD_ASM_ADJUST): New.
2382 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
2383 (ix86_md_asm_adjust): this.
2384 (TARGET_MD_ASM_CLOBBERS): Remove.
2385 (TARGET_MD_ASM_ADJUST): New.
2386 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
2387 (mn10300_md_asm_adjust): this.
2388 (TARGET_MD_ASM_CLOBBERS): Remove.
2389 (TARGET_MD_ASM_ADJUST): New.
2390 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
2391 (rs6000_md_asm_adjust): this.
2392 (TARGET_MD_ASM_CLOBBERS): Remove.
2393 (TARGET_MD_ASM_ADJUST): New.
2394 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
2395 (visium_md_asm_adjust): this.
2396 (TARGET_MD_ASM_CLOBBERS): Remove.
2397 (TARGET_MD_ASM_ADJUST): New.
2398
2399 2015-05-11 Richard Henderson <rth@redhat.com>
2400
2401 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
2402 if noutputs is zero.
2403 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
2404
2405 * cfgexpand.c (expand_asm_operands): Merge into...
2406 (expand_asm_stmt): ... here.
2407
2408 * cfgexpand.c (expand_asm_operands): Don't call
2409 resolve_asm_operand_names.
2410 * stmt.c (resolve_asm_operand_names): Clarify block comment.
2411
2412 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
2413
2414 * dwarf2out.c (gen_member_die): Sanity check that we access
2415 TYPE_MAIN_VARIANT for TYPE_METHODS.
2416 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
2417 checking TYPE_METHODS.
2418 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
2419 if non-null.
2420 (build_distinct_type_copy): Clear TYPE_METHODS.
2421 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
2422 (verify_type): Allow TYPE_METHODS to be error_mark_node.
2423 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
2424
2425 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
2426
2427 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
2428 (emit_pattern_before_setloc): Likewise.
2429
2430 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
2431
2432 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
2433 for define_peephole2s.
2434 (get_peephole2_pattern): New function.
2435 (main): Use it. Call validate_pattern.
2436
2437 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2438
2439 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
2440 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
2441 (Last callee saved reg is different for AVR_TINY architecture)
2442
2443 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2444
2445 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
2446 when looking for memory references.
2447
2448 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2449
2450 PR target/65753
2451 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
2452 via function pointers.
2453
2454 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
2455
2456 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
2457 indirect call by forcing address into a pseudo with -fno-plt.
2458 * common.opt (flag_plt): New option.
2459 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
2460 ([-fno-plt]): Document.
2461
2462 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
2463
2464 PR bootstrap/66105
2465 * config/rs6000/option-defaults.h: Add space between string literal
2466 and macro name.
2467
2468 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
2469
2470 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
2471 accross ARM targets.
2472
2473 2015-05-11 Christian Bruel <christian.bruel@st.com>
2474
2475 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
2476 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
2477
2478 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
2479
2480 PR rtl-optimization/66076
2481 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
2482 Don't grow the heap array if it is already big enough from a
2483 previous iteration.
2484
2485 2015-05-11 Christian Bruel <christian.bruel@st.com>
2486
2487 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
2488 (is_called_in_ARM_mode): Remove.
2489 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
2490 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
2491 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
2492 arm_declare_function_name.
2493
2494 2015-05-11 Christian Bruel <christian.bruel@st.com>
2495
2496 * config/arm/arm.c (arm_option_override): Reoganized and split into :
2497 (arm_option_params_internal); New function.
2498 (arm_option_check_internal): New function.
2499 (arm_option_override_internal): New function.
2500 (thumb_code, thumb1_code): Remove.
2501 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
2502 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
2503 (thumb_code, thumb1_code): Remove.
2504 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
2505
2506 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
2507
2508 * config/alpha/alpha.c (alpha_emit_set_const_1)
2509 (alpha_emit_set_long_const, alpha_extract_integer)
2510 (alpha_legitimate_constant_p, alpha_split_const_mov)
2511 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
2512 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2513 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
2514 HOST_WIDE_INT_1U.
2515 * config/alpha/predicates.md (mode_mask_operand): Do not match
2516 const_double RTX.
2517 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2518 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
2519 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
2520 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
2521 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
2522
2523 2015-05-11 Jakub Jelinek <jakub@redhat.com>
2524
2525 PR target/65780
2526 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
2527 default_binds_local_p_2.
2528 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
2529 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
2530
2531 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2532
2533 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
2534
2535 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2536
2537 Patch by Richard Biener
2538 * coverage.c (coverage_obj_init): Delay building of type variant
2539 until the type is finished.
2540
2541 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2542
2543 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
2544 mismatch between C and C++ type; compoare correctly ARG_TYPES
2545 for non-prototypes and output correctly parameter index for METHOD_TYPE.
2546 (odr_types_equivalent_p): Fix wording of warning about attributes;
2547 it is OK to match prototype and non-prototype.
2548
2549 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2550
2551 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
2552 TYPE_ARG_TYPES list.
2553 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
2554 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
2555
2556 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
2557
2558 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
2559 * tree.h (is_lang_specific): Constify.
2560
2561 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
2562
2563 PR tree-optimization/64454
2564 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
2565 Rewrite.
2566
2567 2015-05-08 Jason Merrill <jason@redhat.com>
2568
2569 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
2570 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
2571 config/darwin.h, config/darwin9.h, config/elfos.h,
2572 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
2573 config/microblaze/microblaze.h, config/mips/mips.h,
2574 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
2575 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
2576 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2577 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
2578 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
2579 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
2580 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
2581 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
2582 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
2583 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
2584 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
2585 between string literal and macro name.
2586
2587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2588
2589 * jump.c: Change argument types to rtx_insn *.
2590 * rtl.h: Adjust.
2591
2592 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2593
2594 * lra-constraints.c: Change argument type to rtx_insn *.
2595
2596 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2597
2598 * df-problems.c: Change argument type to rtx_insn *.
2599
2600 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2601
2602 * combine.c: Change argument type to rtx_insn *.
2603
2604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2605
2606 * rtl.h: Adjust.
2607 * rtlanal.c: Change argument type to rtx_insn *.
2608
2609 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2610
2611 * sched-deps.c: Change argument types to rtx_insn *.
2612 * sched-int.h: Adjust.
2613
2614 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2615
2616 * dwarf2cfi.c: Change argument type to rtx_insn *.
2617
2618 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2619
2620 * ira.c (decrease_live_ranges_number): Changetype of local
2621 variable to rtx_insn *.
2622 * recog.c: Change argument types to rtx_insn *.
2623 * recog.h: Adjust.
2624
2625 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2626
2627 * reorg.c: Change argument types to rtx_insn *.
2628
2629 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2630
2631 * ira-color.c: Change argument types to rtx_insn *.
2632 * lra-eliminations.c: Likewise.
2633 * ira.h: Adjust.
2634
2635 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2636
2637 * gcse.c: Change argument types to rtx_insn *.
2638
2639 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2640
2641 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
2642
2643 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2644
2645 * emit-rtl.c (emit_debug_insn_before): Change argument type to
2646 rtx_insn *.
2647 * rtl.h: Adjust.
2648
2649 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2650
2651 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
2652 * rtl.h: Adjust.
2653
2654 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2655
2656 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
2657 * rtl.h: Adjust.
2658
2659 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2660
2661 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
2662 * rtl.h: Adjust.
2663
2664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2665
2666 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
2667 * rtl.h: Adjust.
2668
2669 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2670
2671 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
2672 to rtx_insn *.
2673 * rtl.h: Adjust.
2674
2675 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2676
2677 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
2678 to rtx_insn *.
2679 * rtl.h: Likewise.
2680
2681 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2682
2683 * except.c (can_nonlocal_goto): Change type of argument to
2684 rtx_insn *.
2685 * rtl.h: Adjust.
2686
2687 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2688
2689 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
2690 * rtl.h: Adjust.
2691
2692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2693
2694 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
2695 * cfgrtl.c (can_delete_label_p): Adjust.
2696 * rtl.h: likewise.
2697
2698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2699
2700 * reorg.c (stop_search_p): Change argument to rtx_insn *.
2701
2702 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2703
2704 * except.c (make_reg_eh_region_note): Change argument to
2705 rtx_insn *.
2706 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
2707 * except.h: Adjust.
2708
2709 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2710
2711 * mode-switching.c (commit_mode_sets): Change type of local
2712 variable from rtx to rtx_insn *.
2713
2714 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
2715
2716 * doc/install.texi (--enable-languages): Add missing jit and lto info.
2717 Add ^ to grep command.
2718 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
2719 arg to last gimple_simplify declaration. Add missing gimple_build
2720 declaration for built-in function case with four tree args.
2721
2722 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
2723 Szabolcs Nagy <szabolcs.nagy@arm.com>
2724
2725 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2726 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
2727 (GNU_USER_DYNAMIC_LINKERN32): Update.
2728
2729 2015-05-08 Richard Biener <rguenther@suse.de>
2730
2731 PR tree-optimization/66036
2732 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2733 Handle strided group loads.
2734 (vect_verify_datarefs_alignment): Likewise.
2735 (vect_enhance_data_refs_alignment): Likewise.
2736 (vect_analyze_group_access): Likewise.
2737 (vect_analyze_data_ref_access): Likewise.
2738 (vect_analyze_data_ref_accesses): Likewise.
2739 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
2740 (vectorizable_load): Likewise.
2741
2742 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
2743
2744 * config/rs6000/rs6000.md: Require operand inequality in one
2745 of the peepholes.
2746
2747 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
2748 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2749
2750 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
2751 from (set ...).
2752 * config/rx/rx.md (movdi, movdf): Likewise.
2753 Likewise for define_peephole2s.
2754
2755 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2756
2757 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
2758 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
2759 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
2760 vtst_u64): Rewrite using gcc vector extensions.
2761
2762 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2763
2764 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
2765 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
2766
2767 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
2768
2769 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
2770
2771 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
2772
2773 * config/glibc-stdint.h (OPTION_MUSL): Define.
2774 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
2775 Change the definition based on OPTION_MUSL for 64 bit targets.
2776 * config/linux.h (OPTION_MUSL): Redefine.
2777 * config/alpha/linux.h (OPTION_MUSL): Redefine.
2778 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
2779 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
2780
2781 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
2782 Szabolcs Nagy <szabolcs.nagy@arm.com>
2783
2784 * config.gcc (LIBC_MUSL): New tm_defines macro.
2785 * config/linux.h (OPTION_MUSL): Define.
2786 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
2787 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
2788 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
2789 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
2790 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
2791 * config/linux.opt (mmusl): New option.
2792 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
2793 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
2794 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
2795 * configure: Regenerate.
2796
2797 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
2798 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2799
2800 PR target/48904
2801 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
2802 * config/i386/knetbsd-gnu64.h: New file.
2803
2804 2015-05-08 Marek Polacek <polacek@redhat.com>
2805
2806 PR c/64918
2807 * doc/invoke.texi: Document -Woverride-init-side-effects.
2808
2809 2015-05-07 Marek Polacek <polacek@redhat.com>
2810
2811 PR c/65179
2812 * doc/invoke.texi: Document -Wshift-negative-value.
2813
2814 2015-05-06 Aditya Kumar <hiraditya@msn.com>
2815
2816 * gcov-tool.c (do_merge): Refactore to remove int ret.
2817 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
2818 !type == FUNC to type != FUNC.
2819 * reload.h (struct target_reload): Changee to type of
2820 x_spill_indirect_levels from bool to unsigned char.
2821
2822 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
2823
2824 * rtl.h (always_void_p): New function.
2825 * gengenrtl.c (always_void_p): Likewise.
2826 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
2827 with code foo are always VOIDmode.
2828 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
2829 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
2830 compare-elim.c, config/aarch64/aarch64.c,
2831 config/aarch64/aarch64.md, config/alpha/alpha.c,
2832 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
2833 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
2834 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
2835 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
2836 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
2837 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
2838 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
2839 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
2840 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
2841 config/ia64/vect.md, config/iq2000/iq2000.c,
2842 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
2843 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
2844 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
2845 config/mep/mep.c, config/microblaze/microblaze.c,
2846 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
2847 config/mn10300/mn10300.c, config/msp430/msp430.c,
2848 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
2849 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
2850 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
2851 config/rs6000/altivec.md, config/rs6000/rs6000.c,
2852 config/rs6000/rs6000.md, config/rs6000/vector.md,
2853 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
2854 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
2855 config/sh/sh.md, config/sh/sh_treg_combine.cc,
2856 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
2857 config/spu/spu.md, config/stormy16/stormy16.c,
2858 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
2859 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
2860 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
2861 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
2862 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
2863 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
2864 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
2865 var-tracking.c: Update calls accordingly.
2866
2867 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2868
2869 PR middle-end/192
2870 PR middle-end/54303
2871 * varasm.c (function_mergeable_rodata_prefix): New function.
2872 (mergeable_string_section): Use it.
2873 (mergeable_constant_section): Use it.
2874
2875 2015-05-07 Jeff Law <law@redhat.com>
2876
2877 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
2878 simplifier to narrow arithmetic.
2879 * generic-match-head.c: (types_match, single_use): New functions.
2880 * gimple-match-head.c: (types_match, single_use): New functions.
2881
2882 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2883
2884 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
2885 rtx type.
2886
2887 2015-05-07 Richard Biener <rguenther@suse.de>
2888
2889 PR tree-optimization/66002
2890 * passes.def: Schedule another pass_merge_phi after ifcombine, right
2891 before phiopt.
2892
2893 2015-05-07 Marek Polacek <polacek@redhat.com>
2894 Martin Uecker <uecker@eecs.berkeley.edu>
2895
2896 * doc/invoke.texi: Document -fsanitize=bounds-strict.
2897 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
2898 into SANITIZE_NONDEFAULT.
2899 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
2900
2901 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
2902
2903 PR target/66015
2904 * config/alpha/alpha.c (alpha_override_options_after_change): New.
2905 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
2906 (alpha_override_options): Move align_loops, align_jumps and
2907 align_functions handling into alpha_override_options_after_change.
2908
2909 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
2910 Chris Jones <chrisj@nvidia.com>
2911 Joshua Conner <jconner@nvidia.com>
2912
2913 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
2914 linking of crtfastmath.o.
2915 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
2916
2917 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2918
2919 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
2920 (cstore<mode>4_unsigned_imm): New expander.
2921 (cstore<mode>4): Remove empty constraint strings. Use the new
2922 expanders.
2923
2924 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
2925
2926 PR target/64208
2927 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
2928 alternatives.
2929
2930 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
2931
2932 * config/aarch64/geniterators.sh: Use standard BRE in sed.
2933
2934 2015-05-06 Alan Modra <amodra@gmail.com>
2935
2936 PR target/66033
2937 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
2938 (UNSPEC_NOP): Define.
2939 (reload_vsx_from_gpr<mode>): Add missing DONE.
2940 (reload_gpr_from_vsx<mode>): Likewise.
2941 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
2942 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
2943
2944 2015-05-06 Christian Bruel <christian.bruel@st.com>
2945
2946 PR target/66015
2947 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
2948 align_jumps, align_functions into aarch64_override_options_after_change.
2949
2950 2015-05-06 Richard Biener <rguenther@suse.de>
2951
2952 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
2953 vect_transform_slp_perm_load to check if we support a permutation
2954 for basic-block vectorization.
2955
2956 2015-05-06 Nick Clifton <nickc@redhat.com>
2957
2958 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
2959 used, even if it is not being used as a frame pointer.
2960
2961 2015-05-05 Jason Merrill <jason@redhat.com>
2962
2963 * dwarf2out.c (gen_member_die): Don't emit anything for an
2964 anonymous class constructor.
2965
2966 2015-05-05 David Malcolm <dmalcolm@redhat.com>
2967
2968 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
2969 that it reflects the block structure.
2970 (afdo_propagate_edge): Likewise.
2971 (afdo_calculate_branch_prob): Likewise.
2972 (afdo_annotate_cfg): Likewise.
2973 * cfgcleanup.c (equal_different_set_p): Likewise.
2974 (try_crossjump_to_edge): Likewise.
2975 * cgraph.c (cgraph_node::verify_node): Likewise.
2976 * cgraphunit.c (expand_all_functions): Likewise.
2977 * config/i386/i386.c (ix86_expand_copysign): Likewise.
2978 (exact_dependency_1): Likewise.
2979 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
2980 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
2981 * gensupport.c (process_define_subst): Likewise.
2982 * lto-wrapper.c (merge_and_complain): Likewise.
2983 * tree-if-conv.c (if_convertible_bb_p): Likewise.
2984 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
2985 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
2986 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
2987 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2988 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
2989 * tree-vect-stmts.c (vectorizable_shift): Likewise.
2990 * tree-vrp.c (vrp_finalize): Likewise.
2991 * tree.c (variably_modified_type_p): Likewise.
2992
2993 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
2994
2995 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
2996 on darwin12 and later.
2997 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
2998 file to pass -rdynamic on darwin12 and later.
2999 * config/darwin.opt (rdynamic): Add.
3000
3001 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3002
3003 * doc/extend.texi (C Extensions): Update menu for moved Variable
3004 Attributes and Type Attributes sections.
3005
3006 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3007
3008 PR target/65990
3009 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
3010 if rep_8byte stringop strategy was specified for 32-bit target.
3011
3012 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
3013
3014 PR target/65915
3015 * config/i386/i386.md (vector convert to float spltiter): Check for
3016 xmm16+, when splitting scalar float conversion.
3017 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
3018
3019 2015-05-05 Nick Clifton <nickc@redhat.com>
3020
3021 * config/msp430/msp430-opts.h (enum msp430_regions): New.
3022 * config/msp430/msp430.c (msp430_override_options): Complain if
3023 -mcode-region or -mdata-region is used on a non MSP430X.
3024 (msp430_section_attr): New function. Checks lower, upper and
3025 either attributes.
3026 (msp430_attribute_table): Add lower, upper and either.
3027 (gen_prefix): New function. Generates a prefix for a section
3028 name.
3029 (msp430_select_section): New function - handles the choice of
3030 section for an object. Takes into account memory region
3031 attributes and options.
3032 (msp430_function_section): Use gen_prefix.
3033 (TARGET_SECTION_TYPE_FLAGS): Define.
3034 (msp430_section_type_flags): New function.
3035 (TARGET_ASM_UNIQUE_SECTION): Define.
3036 (msp430_unique_section): New function.
3037 (msp430_output_aligned_decl_common): New function.
3038 (msp430_do_not_relax_short_jumps): New function.
3039 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
3040 Define.
3041 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3042 * config/msp430/msp430-protos.h
3043 (msp430_do_not_relax_short_jumps): New prototype.
3044 (msp430_output_aligned_decl_common): New prototype.
3045 * config/msp430/msp430.md (length): New attribute.
3046 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
3047 then use a long code sequence for short jumps.
3048 * config/msp430/msp430.opt (mcode-region): New.
3049 (mdata-region): New.
3050 * doc/invoke.texi: Document new options.
3051 * doc/extend.texi: Document new attributes.
3052
3053 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
3054
3055 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
3056 (tune_params): Add field branch_costs.
3057 (aarch64_branch_cost): Declare.
3058 * gcc/config/aarch64.c (generic_branch_cost): New.
3059 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
3060 (cortexa53_tunings): Likewise.
3061 (cortexa57_tunings): Likewise.
3062 (thunderx_tunings): Likewise.
3063 (xgene1_tunings): Likewise.
3064 (aarch64_branch_cost): Define.
3065 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
3066
3067 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3068
3069 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
3070 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
3071 * config/i386/i386.md: Ditto.
3072 * config/i386/winnt.c: Ditto.
3073
3074 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
3075
3076 * doc/extend.texi (__atomic Builtins): Move implementation details
3077 to the end of the description, rewrite opening paragraphs, state
3078 difference with __sync builtins, state C11/C++11 assumptions,
3079 weaken itemized descriptions, add explanation of memory model
3080 behaviour, expand description of compare-exchange, simplify text.
3081
3082 2015-05-05 Renlin Li <renlin.li@arm.com>
3083
3084 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
3085
3086 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
3087
3088 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
3089 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3090 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
3091 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
3092 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
3093 * configure: Regenerate.
3094 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
3095 * doc/install.texi (aarch64*-*-*): Document new
3096 --enable-fix-cortex-a53-843419 option.
3097 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
3098 and -mno-fix-cortex-a53-843419 options.
3099
3100 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
3101
3102 PR target/65871
3103 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
3104
3105 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
3106
3107 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
3108 fix overactive TYPE_MIN_VALUE check and add FIXME for type
3109 compatibility problems.
3110
3111 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
3112
3113 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
3114 constraints.
3115 (cbranchsi4_reg): New.
3116 * config/microblaze/microblaze.c
3117 (microblaze_expand_conditional_branch_reg): New.
3118 * config/microblaze/microblaze-protos.h
3119 (microblaze_expand_conditional_branch_reg): New prototype.
3120
3121 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
3122
3123 * config/microblaze/microblaze.md (peephole2): New.
3124
3125 2015-05-04 Jeff Law <law@redhat.com>
3126
3127 Revert:
3128 2015-05-04 Jeff Law <law@redhat.com>
3129
3130 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3131 simplifier to narrow arithmetic.
3132 * generic-match-head.c: (types_match, single_use): New functions.
3133 * gimple-match-head.c: (types_match, single_use): New functions.
3134
3135 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
3136
3137 PR target/65987
3138 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
3139 (split_branches): Likewise.
3140
3141 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
3142
3143 * common.opt (fdelete-null-pointer-checks): Init to -1.
3144 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
3145 override flag_delete_null_pointer_checks default.
3146 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
3147 behavior re address zero. Better document target-specific behavior.
3148 (-fisolate-errneous-paths-dereference): Mention relationship to
3149 -fdelete-null-pointer-checks.
3150
3151 2015-05-04 Jakub Jelinek <jakub@redhat.com>
3152
3153 PR tree-optimization/65984
3154 * ubsan.c: Include tree-cfg.h.
3155 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
3156 stmt_could_throw_p test, rename can_throw variable to ends_bb.
3157
3158 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
3159
3160 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
3161 to CONST_DOUBLE_P predicate.
3162 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
3163 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
3164 allow only operands that satisfy standard_sse_constant_p predicate.
3165 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
3166 to CONST_DOUBLE_P predicate.
3167
3168 2015-05-04 Jeff Law <law@redhat.com>
3169
3170 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
3171 simplifier to narrow arithmetic.
3172 * generic-match-head.c: (types_match, single_use): New functions.
3173 * gimple-match-head.c: (types_match, single_use): New functions.
3174
3175 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
3176
3177 * config/arm/arm.c: Restore bootstrap.
3178
3179 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
3180
3181 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
3182 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
3183 as CONST_WIDE_INT, not CONST_DOUBLE.
3184 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
3185 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
3186 (ix86_find_base_term): Do not check for CONST_DOUBLE.
3187 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
3188 (ix86_build_signbit_mask): Rewrite using wide ints.
3189 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
3190 (ix86_rtx_costs): Handle CONST_WIDE_INT.
3191 (find_constant): Ditto.
3192 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
3193 using gen_int_mode.
3194 * config/i386/predicates.md (x86_64_immediate_operand)
3195 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3196 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
3197 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
3198 (const0_operand): Also match const_wide_int.
3199 (constm1_operand): Ditto.
3200 (const1_operand): Ditto.
3201
3202 2015-05-04 Richard Biener <rguenther@suse.de>
3203
3204 PR tree-optimization/65965
3205 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3206 store groups at gaps.
3207
3208 2015-05-04 Richard Biener <rguenther@suse.de>
3209
3210 PR tree-optimization/65935
3211 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
3212 then make sure to apply that swapping to the IL.
3213
3214 2015-05-04 Jakub Jelinek <jakub@redhat.com>
3215
3216 * Makefile.in (PATCHLEVEL_c): New variable.
3217 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
3218 expand the same way as if DEVPHASE_c was non-empty.
3219
3220 2015-05-04 Kai Tietz <ktietz@redhat.com>
3221
3222 PR target/65559
3223 * lto-wrapper.c (run_gcc): Open filename
3224 in binary-mode.
3225
3226 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
3227
3228 * doc/extend.texi (Variable Attributes, Type Attributes): Move
3229 sections up in file, to immediately after the Function Attributes
3230 section.
3231
3232 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
3233
3234 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
3235
3236 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3237
3238 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
3239 (insert_partition_copy_on_edge): Adjust.
3240 (insert_rtx_to_part_on_edge): Likewise.
3241 (insert_part_to_rtx_on_edge): Likewise.
3242
3243 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3244
3245 * function.c (set_return_jump_label): Change type of argument to
3246 rtx_insn *.
3247 * function.h (set_return_jump_label): Adjust.
3248
3249 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3250
3251 * reload.h (struct reg_equivs_t): Change type of init to
3252 rtx_insn *.
3253 * ira.c (fix_reg_equiv_init): Adjust.
3254 * reload1.c (eliminate_regs_1): Likewise.
3255 (init_eliminable_invariants): Likewise.
3256
3257 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3258
3259 * cselib.c (fp_setter_insn): Take a rtx_insn *.
3260 * cselib.h (fp_setter_insn): Adjust.
3261
3262 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3263
3264 * recog.c (struct validate_replace_src_data): Change type of
3265 insn field to rtx_insn *.
3266 (validate_replace_src_group): Change type of argument to rtx_insn *.
3267 * recog.h (validate_replace_src_group): Adjust.
3268
3269 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3270
3271 * haifa-sched.c: Change the type of some variables to rtx_insn *.
3272 * sched-deps.c: Likewise.
3273 * sched-int.h: Likewise.
3274 * sched-rgn.c: Likewise.
3275 * sel-sched.c: Likewise.
3276
3277 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3278
3279 to rtx_insn *.
3280 * config/i386/i386.c: Change the type of some arguments to
3281 rtx_insn *.
3282 * config/arm/arm.c: Likewise.
3283
3284 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3285
3286 * lra-constraints.c: Change type of some arguments to rtx_insn *.
3287
3288 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3289
3290 * regcprop.c (kill_autoinc_value): Change type of argument to
3291 rtx_insn *.
3292
3293 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3294
3295 * genrecog.c (print_subroutine): Adjust.
3296 * recog.c (get_bool_attr_mask_uncached): Likewise.
3297 * recog.h (struct recog_data_d): Change the type of insn to
3298 rtx_insn *.
3299
3300 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3301
3302 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
3303
3304 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3305
3306 * df-problems.c (df_set_note): Change type of argument to
3307 rtx_insn *.
3308
3309 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3310
3311 * builtins.c (expand_builtin_trap): Change type of local
3312 variable to rtx_insn *.
3313 (add_sched_insns_for_speculation): Likewise.
3314 (ix86_emit_save_regs): Likewise.
3315 (get_scratch_register_on_entry): Likewise.
3316 (ix86_emit_restore_reg_using_pop): Likewise.
3317 (ix86_emit_leave): Likewise.
3318 (ix86_emit_restore_regs_using_mov): Likewise.
3319 (ix86_expand_epilogue): Likewise.
3320 Likewise.
3321 (rl78_alloc_physical_registers_umul): Likewise.
3322 * cselib.c (discard_useless_locs): Likewise.
3323 (cselib_invalidate_regno): Likewise.
3324 (cselib_invalidate_mem): Likewise.
3325 * function.c (expand_function_start): Likewise.
3326 (emit_use_return_register_into_block): Likewise.
3327 * gcse.c: Likewise.
3328 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
3329 * ifcvt.c (noce_get_alt_condition): Likewise.
3330 * loop-doloop.c (doloop_condition_get): Likewise.
3331 * lra-constraints.c (inherit_in_ebb): Likewise.
3332 * modulo-sched.c (sms_schedule_by_order): Likewise.
3333 * recog.c (next_insn_tests_no_inequality): Likewise.
3334 * reorg.c (emit_delay_sequence): Likewise.
3335 (update_reg_dead_notes): Likewise.
3336 (fix_reg_dead_note): Likewise.
3337 (fill_slots_from_thread): Likewise.
3338 (delete_computation): Likewise.
3339
3340 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
3341
3342 * doc/extend.texi (Variable Attributes): Add menu and proper
3343 @nodes to subsections. Move Microsoft Windows attributes to
3344 their own subsection.
3345 (Type Attributes): Reorganize introduction to remove duplicate
3346 list of attributes. Add menu and proper @nodes to subsections.
3347 Alphabetize the main table of common attributes.
3348
3349 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
3350
3351 * match.pd: New simplification patterns.
3352 (x + (x & 1)) -> ((x + 1) & ~1)
3353 (x & ~(x & y)) -> ((x & ~y))
3354 (x | ~(x | y)) -> ((x | ~y))
3355
3356 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3357
3358 * target.def (attribute_table): Mention that struct attribute_spec
3359 is defined in tree-core.h rather than tree.h
3360 * doc/tm.texi: Regenerate.
3361
3362 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
3363
3364 * genrecog.c (test): Rename to rtx_test. Update rest of file
3365 accordingly.
3366
3367 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
3368
3369 PR translation/65959
3370 * params.h (DEFPARAM): Rename msgid to nocmsgid.
3371
3372 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3373
3374 * gcc/config/aarch64/aarch64-protos.h (tune_params):
3375 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
3376 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
3377 Return value depending on target.
3378 (generic_tunings): Initialize new target settings.
3379 (cortexa53_tunings): Likewise.
3380 (cortexa57_tunings): Likewise.
3381 (thunderx_tunings): Likewise.
3382 (xgene1_tunings): Likewise.
3383
3384 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3385
3386 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
3387 Make Cortex-A53 shift costs more accurate.
3388
3389 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3390
3391 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
3392 UNSIGNED_FLOAT.
3393
3394 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
3395
3396 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
3397 Calculate cost of op0 and op1 in PLUS and MINUS cases.
3398
3399 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3400
3401 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
3402 Add cost of op0 in the compare-with-fpzero case.
3403
3404 2015-04-30 David Malcolm <dmalcolm@redhat.com>
3405
3406 * builtins.c (fold_builtin_1): Remove spurious second
3407 semicolon.
3408 * cgraph.h (symtab_node::get_availability): Likewise.
3409 * opts.c (common_handle_option): Remove spurious second semicolon.
3410 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
3411 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
3412
3413 2015-04-30 Caroline Tice <cmtice@google.com>
3414
3415 PR gcov-profile/65929
3416 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
3417 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
3418 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
3419 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
3420 * doc/tm.texi: Regenerate.
3421 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
3422 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
3423 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
3424 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
3425
3426 2015-04-30 Marek Polacek <polacek@redhat.com>
3427
3428 * varasm.c (handle_cache_entry): Fix logic.
3429
3430 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3431
3432 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
3433 (*extrsi5_insn_uxtw_alt): Likewise.
3434 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
3435 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
3436 operations.
3437
3438 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3439
3440 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
3441 fabd in ABS case.
3442
3443 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3444
3445 * config/aarch64/aarch64.md
3446 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
3447 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
3448 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
3449 appropriately. Handle alternative EON form.
3450
3451 2015-04-30 Renlin Li <renlin.li@arm.com>
3452
3453 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
3454 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
3455
3456 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
3457
3458 PR ipa/65873
3459 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
3460 -fstrict-aliasing boundaries.
3461
3462 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3463
3464 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
3465 and [SU]MNEGL patterns.
3466
3467 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3468
3469 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
3470 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
3471 combined arithmetic-shift ops. Properly handle all shift and extend
3472 operations that can occur in combination with PLUS/MINUS.
3473 Rename maybe_fma to compound_p.
3474 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
3475 arithmetic and shift operations.
3476
3477 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3478
3479 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
3480 rather than arith_shift cost when costing ADD/MINUS of an
3481 extended value.
3482
3483 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
3484
3485 PR lto/65948
3486 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
3487 to itself.
3488
3489 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
3490
3491 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
3492 are for the same position.
3493
3494 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
3495
3496 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
3497 vectorize_loops.
3498 (vectorize_loops): Use it.
3499
3500 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3501
3502 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
3503 for aggregate types.
3504 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
3505 type to be non_ODR.
3506 * tree.c (need_assembler_name_p): Compute mangled name for
3507 non-fundamental types and integer types.
3508
3509 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
3510
3511 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
3512 manual swaps.
3513 * expr.c (expand_expr_real_2): Likewise.
3514
3515 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3516
3517 * tree.c (build_common_builtin_nodes): Do not build
3518 __builtin_alloca_with_align as equivalent of library alloca.
3519
3520 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
3521
3522 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
3523 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
3524 bugus variants.
3525 * tree.c: Include print-tree.h and ipa-utils.h
3526 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
3527 (free_lang_data_in_cgraph): Call verify_type.
3528 (verify_type_variant): New function.
3529 (verify_type): New function.
3530 * tree.h (verify_type): Declare.
3531
3532 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
3533
3534 * config/mips/mips-cpus.def: (mips4): Change default processor
3535 from PROCESSOR_R8000 to PROCESSOR_R10000.
3536
3537 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
3538
3539 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
3540 la/jalr instead of jal.
3541
3542 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
3543
3544 PR target/65871
3545 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
3546 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
3547 (setcc+movzbl peephole2): Check also clobbered reg.
3548 (setcc+andl peephole2): Ditto.
3549
3550 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
3551
3552 PR libgomp/65099
3553 * config/nvptx/mkoffload.c (target_ilp32): New variable.
3554 (main): Set it depending on "-foffload-abi=[...]".
3555 (compile_native, main): Use it to pass "-m32" or "-m64" to the
3556 compiler.
3557
3558 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
3559
3560 PR target/65770
3561 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
3562 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
3563 Flip lane index back at assembly time for bigendian.
3564
3565 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
3566
3567 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
3568 * gimplify.c (gimplify_omp_workshare): Use it.
3569
3570 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3571
3572 * Makefile.in (build/genrecog.o): Depend on inchash.h.
3573 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
3574 build/inchash.o
3575 * genrecog.c: Rewrite most of the code except for the third page.
3576
3577 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3578
3579 * inchash.h, inchash.c: Include bconfig.h for build objects.
3580 * Makefile.in (build/inchash.o): New rule.
3581
3582 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
3583
3584 PR target/65924
3585 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
3586 number in type attribute expression.
3587
3588 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
3589
3590 * loop-iv.c (canon_condition): Generalize to all types of integer
3591 constant.
3592
3593 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
3594
3595 * gimple-walk.c: Prune duplicate or unneeded includes.
3596 (walk_gimple_asm): Only call parse_input_constraint or
3597 parse_output_constraint if their findings are used.
3598 Honour parse_input_constraint and parse_output_constraint
3599 result.
3600
3601 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
3602
3603 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
3604
3605 2015-04-29 Tom de Vries <tom@codesourcery.com>
3606
3607 PR tree-optimization/65893
3608 * passes.def (pass_all_optimizations): Move pass_stdarg to after
3609 pass_dce.
3610
3611 2015-04-29 Richard Biener <rguenther@suse.de>
3612
3613 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
3614 compute GROUP_SIZE for basic-block SLP.
3615 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
3616 take into account gaps.
3617 (vect_get_mask_element): Properly reject references to previous
3618 vectors.
3619 (vect_transform_slp_perm_load): Likewise.
3620
3621 2015-04-29 Christian Bruel <christian.bruel@st.com>
3622
3623 PR target/64835
3624 * config/i386/i386.c (ix86_default_align): New function.
3625 (ix86_override_options_after_change): Call ix86_default_align.
3626 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
3627 (ix86_override_options_after_change): New function.
3628
3629 2015-04-28 Jeff Law <law@redhat.com>
3630
3631 * tree-ssa-dom.c (record_equality); Fix comment typos.
3632
3633 2015-04-28 Tom de Vries <tom@codesourcery.com>
3634
3635 PR tree-optimization/65887
3636 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
3637
3638 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
3639
3640 * doc/extend.texi (Declaring Attributes of Functions): Split into
3641 subsections by target. Alphabetize the table of common attributes.
3642 Rewrite some of the introductory text to reflect the new structure.
3643 Update some cross-references to point to the new subsections.
3644 (Attribute Syntax): Put paragraph about "__" naming here. Remove
3645 duplicate copies in the discussion of function, label, and type
3646 attributes.
3647
3648 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
3649
3650 PR bootstrap/65910
3651 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
3652
3653 2015-04-28 Jason Merrill <jason@redhat.com>
3654
3655 PR c++/65734
3656 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
3657 (finalize_type_size): Respect TYPE_USER_ALIGN.
3658 (layout_type) [ARRAY_TYPE]: Likewise.
3659
3660 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
3661
3662 * config/arm/arm.md (*arm_movt): Fix type attribute.
3663 (*cmpsi_shiftsi): Likewise.
3664 (*cmpsi_shiftsi_swp): Likewise.
3665 (*movsicc_insn): Likewise.
3666 (*cond_move): Likewise.
3667 (*if_plus_move): Likewise.
3668 (*if_move_plus): Likewise.
3669 (*if_arith_move): Likewise.
3670 (*if_move_arith): Likewise.
3671 (*if_shift_move): Likewise.
3672 (*if_move_shift): Likewise.
3673 (*arm_movtas_ze): Likewise.
3674 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
3675 redundancy and type attribute.
3676 (*thumb2_movsi_insn): Fix type attribute.
3677 (*thumb2_addsi_short): Likewise.
3678 (thumb2_addsi3_compare0): Likewise.
3679 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
3680 attributes accordingly.
3681
3682 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
3683
3684 PR other/65911
3685 * function.c (pad_to_arg_alignment): Add parentheses.
3686
3687 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
3688
3689 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
3690 libgcc/config/frv/elf-lib.h.
3691
3692 2015-04-28 Tom de Vries <tom@codesourcery.com>
3693
3694 * tree-call-cdce.c: Fix example in header comment.
3695
3696 2015-04-28 Richard Biener <rguenther@suse.de>
3697
3698 PR tree-optimization/62283
3699 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
3700 fails fatally and we are vectorizing a basic-block simply
3701 cause the child to be constructed piecewise.
3702 (vect_analyze_slp_cost_1): Adjust.
3703 (vect_detect_hybrid_slp_stmts): Likewise.
3704 (vect_bb_slp_scalar_cost): Likewise.
3705 (vect_get_constant_vectors): For piecewise constructed
3706 constants place them after the last def.
3707 (vect_get_slp_defs): Adjust.
3708 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
3709 externals for basic-block vectorization.
3710
3711 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3712
3713 PR target/63503
3714 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
3715 aarch64-*-*.
3716 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
3717 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
3718 (AARCH64_TUNE_FMA_STEERING): Likewise.
3719 * config/aarch64/aarch64-cores.def: Set
3720 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
3721 FMUL/FMADD instructions.
3722 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
3723 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
3724 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
3725 * config/aarch64/cortex-a57-fma-steering.h: New file.
3726 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3727
3728 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
3729
3730 * gensupport.c (std_preds): Add missing codes to address_operand entry.
3731
3732 2015-04-28 Richard Biener <rguenther@suse.de>
3733
3734 PR tree-optimization/65851
3735 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
3736 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
3737 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
3738 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
3739 (ccp_visit_phi_node): Adjust.
3740 (evaluate_stmt): For simplifications to SSA names return its
3741 lattice value if that isn't VARYING. Return immediately when
3742 simplified to a constant.
3743 (visit_assignment): Adjust.
3744 (ccp_visit_stmt): Likewise.
3745
3746 2015-04-28 Tom de Vries <tom@codesourcery.com>
3747
3748 PR tree-optimization/65818
3749 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
3750 evaluated.
3751
3752 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3753
3754 * calls.c (save_fixed_argument_area): Don't check
3755 ARGS_GROW_DOWNWARD with the preprocessor.
3756 (restore_fixed_argument_area): Likewise.
3757 (mem_overlaps_already_clobbered_arg_p): Likewise.
3758 (check_sibcall_argument_overlap): Likewise.
3759 (expand_call): Likewise.
3760 (emit_library_call_value_1): Likewise.
3761 (store_one_arg): Likewise.
3762 * function.c (assign_parms): Likewise.
3763 (locate_and_pad_parm): Likewise.
3764 (pad_to_arg_alignment): Likewise.
3765 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3766
3767 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3768
3769 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
3770 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
3771 * calls.c (save_fixed_argument_area): Don't chekc if
3772 ARGS_GROW_DOWNWARD is defined.
3773 (restore_fixed_argument_area): Likewise.
3774 (mem_overlaps_already_clobbered_arg_p): Likewise.
3775 (check_sibcall_argument_overlap): Likewise.
3776 (expand_call): Likewise.
3777 (emit_library_call_value_1): Likewise.
3778 (store_one_arg): Likewise.
3779 * function.c (assign_parms): Likewise.
3780 (locate_and_pad_parm): Likewise.
3781 (pad_to_arg_alignment): Likewise.
3782 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
3783
3784 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3785
3786 * defaults.h (gen_epilogue): New function.
3787 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
3788 defined.
3789 * cfgrtl.c (cfg_layout_finalize): Likewise.
3790 * df-scan.c: Likewise.
3791 * function.c (thread_prologue_and_epilogue_insns): Likewise.
3792 (reposition_prologue_and_epilogue_notes): Likewise.
3793 * reorg.c (find_end_label): Likewise.
3794 * toplev.c: Likewise.
3795
3796 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3797
3798 * bb-reorder.c (HAVE_return): Don't check if its undefined.
3799 * defaults.h (gen_simple_return): New function.
3800 (gen_simple_return): Likewise.
3801 (HAVE_return): Add default definition to false.
3802 (HAVE_simple_return): Likewise.
3803 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
3804 HAVE_return and HAVE_simple_return are defined.
3805 * function.c (gen_return_pattern): Likewise.
3806 (convert_jumps_to_returns): Likewise.
3807 (thread_prologue_and_epilogue_insns): Likewise.
3808 * reorg.c (find_end_label): Likewise.
3809 (dbr_schedule): Likewise.
3810 * shrink-wrap.c: Likewise.
3811 * shrink-wrap.h: Likewise.
3812
3813 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3814
3815 * defaults.h (EPILOGUE_USES): Add default definition of false.
3816 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
3817 * resource.c (init_resource_info): Likewise.
3818
3819 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3820
3821 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
3822 to false.
3823 * dwarf2out.c (field_byte_offset): REmove check if
3824 PCC_BITFIELD_TYPE_MATTERS is defined.
3825 * stor-layout.c (layout_decl): Likewise.
3826 (update_alignment_for_field): Likewise.
3827 (place_field): Likewise.
3828
3829 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3830
3831 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
3832 true.
3833 * regrename.c (check_new_reg_p): Remove check if
3834 HARD_REGNO_RENAME_OK is defined.
3835 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
3836
3837 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3838
3839 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
3840 * cse.c (fold_rtx): Likewise.
3841 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
3842 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
3843 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
3844 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
3845 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
3846 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
3847 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
3848 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
3849 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
3850 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
3851 * Likewise.
3852 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
3853 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
3854 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
3855 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
3856 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
3857 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
3858 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
3859 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
3860 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
3861 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
3862 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
3863 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
3864 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
3865 * doc/tm.texi: Regenerate.
3866 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
3867 either true or false.
3868
3869 2015-04-27 Jeff Law <law@redhat.com>
3870
3871 PR tree-optimization/65217
3872 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
3873 of them has a single use, make sure it is the LHS of the implied
3874 copy.
3875
3876 2015-04-28 Alan Modra <amodra@gmail.com>
3877
3878 PR target/65810
3879 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
3880 (offsettable_ok_by_alignment): Use minimum of decl and toc
3881 pointer alignment. Replace dead code with assertion.
3882 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
3883 case if size exceeds toc pointer alignment.
3884 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
3885 (rs6000_emit_move): Likewise.
3886 * configure.ac: Add linker toc pointer alignment check.
3887 * configure: Regenerate.
3888 * config.in: Regenerate.
3889
3890 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
3891
3892 * config.gcc: Add h8300-*-linux.
3893 * config/h8300/linux.h: New.
3894 * config/h8300/t-linux: New.
3895 * config/h8300/h8300.c (h8300_option_override): Normal mode
3896 is not supported for h8300-*-linux.
3897 (h8300_file_start): Target priority change.
3898 (get_shift_alg): Likewise.
3899 (h8300_shift_need_scratch_p): Likewise.
3900 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3901 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
3902
3903 2015-04-27 Caroline Tice <cmtice@google.com>
3904
3905 * final.c (final_scan_insn): Output cold_function_name as function
3906 type.
3907 * varasm.c (cold_function_name): Make global.
3908 (assemble_start_function): Re-set cold_function_name.
3909 (assemble_end_function): Output cold partition size.
3910 * varasm.h (cold_function_name): Declare global.
3911
3912 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
3913
3914 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
3915 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
3916 constraint.
3917 (*movxi_internal_avx512f): Ditto.
3918 (define_split): Check for xmm16+, when splitting scalar float_extend.
3919 (*extendsfdf2_mixed): Use "v" constraint.
3920 (define_split): Check for xmm16+, when splitting scalar float_truncate.
3921 (*truncdfsf_fast_sse): Use "v" constraint.
3922 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
3923 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
3924 (define_peephole2): Check for xmm16+, when converting scalar
3925 float_truncate.
3926 (define_peephole2): Check for xmm16+, when converting scalar
3927 float_extend.
3928 (*fop_<mode>_comm_mixed): Use "v" constraint.
3929 (*fop_<mode>_comm_sse): Ditto.
3930 (*fop_<mode>_1_mixed): Ditto.
3931 (*sqrt<mode>2_sse): Ditto.
3932 (*ieee_s<ieee_maxmin><mode>3): Ditto.
3933
3934 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3935
3936 * combine.c (simplify_if_then_else): Use std::swap instead
3937 of manually swapping.
3938 (known_cond): Likewise.
3939 (simplify_comparison): Likewise.
3940
3941 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
3942
3943 PR target/64579
3944 * config/rs6000/htm.md: Remove all define_expands.
3945 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
3946 UNSPECV_HTM_TABORTWCI): Remove.
3947 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
3948 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
3949 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
3950 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
3951 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
3952 tabortwci_internal): Remove define_insns.
3953 (tabort<wd>c, tabort<wd>ci): New define_insns.
3954 (tabort): Use gpc_reg_operand.
3955 (tcheck): Remove operand.
3956 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
3957 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
3958 expected value.
3959 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
3960 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
3961 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
3962 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
3963 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
3964 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
3965 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
3966 (tcheck): Remove builtin argument.
3967 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
3968 not TARGET_64BIT.
3969 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
3970 tabortdc and tabortdci builtins when not in 64-bit mode.
3971 Modify code to handle the loss of the HTM define_expands.
3972 Emit code to copy the CR register to TARGET.
3973 (htm_init_builtins): Modify code to handle the loss of the HTM
3974 define_expands.
3975 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
3976 (RS6000_BTC_64BIT): Likewise.
3977 (RS6000_BTC_CR): New macro.
3978 * doc/extend.texi: Update documentation for htm builtins.
3979
3980 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3981
3982 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
3983 of manually swapping.
3984 (simplify_associative_operation): Likewise.
3985 (simplify_binary_operation): Likewise.
3986 (simplify_plus_minus): Likewise.
3987 (simplify_relational_operation): Likewise.
3988 (simplify_ternary_operation): Likewise.
3989
3990 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
3991
3992 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
3993 (xs_hi_nonmemory_operand): Remove error.
3994 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
3995 general_operand rather than xs_hi_general_operand.
3996
3997 2015-04-27 Richard Biener <rguenther@suse.de>
3998
3999 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
4000 (record_equivalences_from_stmt): Valueize rhs.
4001 (record_equality): Canonicalize x and y order via
4002 tree_swap_operands_p. Do not swap operands for same loop depth.
4003
4004 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
4005
4006 PR target/65296
4007 PR target/65895
4008 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
4009 Add hint how to use own spec file.
4010
4011 2015-04-27 Jakub Jelinek <jakub@redhat.com>
4012
4013 PR tree-optimization/65875
4014 * tree-vrp.c (update_value_range): If in is_new case setting
4015 old_vr to VR_VARYING, also set new_vr to it. Remove
4016 old_vr->type == VR_VARYING test.
4017 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
4018 SSA_PROP_INTERESTING if update_value_range returned true,
4019 but new range is VR_VARYING.
4020
4021 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
4022
4023 * combine.c (sign_extend_short_imm): New.
4024 (set_nonzero_bits_and_sign_copies): Use above new function for sign
4025 extension of src short immediate.
4026 (reg_nonzero_bits_for_combine): Likewise for tem.
4027
4028 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
4029
4030 * stor-layout.c (self_referential_component_ref_p): New predicate.
4031 (copy_self_referential_tree_r): Use it.
4032 (self_referential_size): Punt for simple operations directly involving
4033 self-referential component references.
4034 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
4035
4036 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
4037
4038 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
4039
4040 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
4041
4042 * vec.h (vec): Make splice arguments const. Update definitions
4043 accordingly.
4044
4045 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
4046
4047 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
4048 alternatives.
4049
4050 2015-04-26 Tom de Vries <tom@codesourcery.com>
4051
4052 PR tree-optimization/65826
4053 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
4054
4055 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
4056
4057 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
4058 (*madd3<mode>): Ditto.
4059 (*msub4<mode>): Ditto.
4060 (*msub3<mode>): Ditto.
4061 (*nmadd4<mode>): Ditto.
4062 (*nmadd3<mode>): Ditto.
4063 (*nmadd4<mode>_fastmath): Ditto.
4064 (*nmadd3<mode>_fastmath): Ditto.
4065 (*nmsub4<mode>): Ditto.
4066 (*nmsub3<mode>): Ditto.
4067 (*nmsub4<mode>_fastmath): Ditto.
4068 (*nmsub3<mode>_fastmath): Ditto.
4069
4070 2015-04-24 Jason Merrill <jason@redhat.com>
4071
4072 PR c++/50800
4073 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
4074 down when building TYPE_CANONICAL.
4075 (build_pointer_type_for_mode): Likewise.
4076
4077 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
4078
4079 * genrecog.c (validate_pattern): Check matching constraint refers
4080 to a lower numbered operand.
4081
4082 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4083
4084 PR target/65849
4085 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
4086 save to independent variables use the Save attribute. This will
4087 allow these options to be modified with the #pragma/attribute
4088 target support.
4089 (-mallow-movmisalign): Likewise.
4090 (-mallow-df-permute): Likewise.
4091 (-msched-groups): Likewise.
4092 (-malways-hint): Likewise.
4093 (-malign-branch-targets): Likewise.
4094 (-mvectorize-builtins): Likewise.
4095 (-msave-toc-indirect): Likewise.
4096
4097 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
4098 can be set via the #pragma/attribute target support.
4099 (rs6000_opt_vars): Likewise.
4100 (rs6000_inner_target_options): If VSX was set, also set
4101 -mno-avoid-indexed-addresses.
4102
4103 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4104
4105 * config/arm/iterators.md (shiftable_ops): Rename to...
4106 (SHIFTABLE_OPS): ... This. Update use in comments.
4107 (ior_xor): Rename to...
4108 (IOR_XOR): ... This.
4109 (vqh_ops): Rename to...
4110 (VQH_OPS): ... This.
4111 (vqhs_ops): Rename to...
4112 (VQHS_OPS): ... This.
4113 (rshifts): Rename to...
4114 (RSHIFTS): ... This.
4115 (returns): Rename to...
4116 (RETURNS): ... This.
4117 * config/arm/arm.md: Update uses of the above.
4118 * config/arm/neon.md: Likewise.
4119
4120 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4121
4122 * config.host (case ${host}): Add aarch64*-*-linux case.
4123 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
4124 fields to all the cores.
4125 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
4126 Add MCPU_MTUNE_NATIVE_SPECS.
4127 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
4128 field to all extensions.
4129 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
4130 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
4131 Adjust definition of AARCH64_OPT_EXTENSION.
4132 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
4133 (MCPU_MTUNE_NATIVE_SPECS): Define.
4134 * config/aarch64/driver-aarch64.c: New file.
4135 * config/aarch64/x-arch64: New file.
4136 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
4137 -mtune and -march.
4138
4139 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4140 Wei Mi <wmi@google.com>
4141
4142 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
4143 * config/i386/i386.c (extract_base_offset_in_addr): New function.
4144 (ix86_operands_ok_for_move_multiple): Ditto.
4145 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
4146 (movlpd/movhpd to movupd peephole2): Ditto.
4147
4148 2015-04-24 Marek Polacek <polacek@redhat.com>
4149
4150 PR c/61534
4151 * input.h (from_macro_expansion_at): Define.
4152
4153 PR c/63357
4154 * doc/invoke.texi: Update description of -Wlogical-op.
4155
4156 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4157
4158 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
4159 ternary operator in fprintf and harmonize spacing.
4160
4161 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4162
4163 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
4164 Mark operand1 commutative.
4165
4166 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
4167
4168 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
4169 input operands in memory.
4170 (*vec_concatv2si_sse4_1): Ditto.
4171 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
4172 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
4173 register_operand.
4174 (vec_extract_hi_v32hi): Ditto.
4175 (vec_extract_hi_v64hi): Ditto.
4176 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
4177
4178 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4179 Steven Bosscher <steven@gcc.gnu.org>
4180
4181 PR rtl-optimization/34503
4182 * cprop.c (cprop_reg_p): New.
4183 (hash_scan_set): Use above function to check if register can be
4184 propagated.
4185 (find_avail_set): Return up to two sets, one whose source is a
4186 register and one whose source is a constant. Sets are returned in an
4187 array passed as parameter rather than as a return value.
4188 (cprop_insn): Use a do while loop rather than a goto. Try each of the
4189 sets returned by find_avail_set, starting with the one whose source is
4190 a constant. Use cprop_reg_p to check if register can be propagated.
4191 (do_local_cprop): Use cprop_reg_p to check if register can be
4192 propagated.
4193 (implicit_set_cond_p): Likewise.
4194
4195 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4196
4197 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
4198 (sem_function::equals): IGNORED_NODES parameter is now unused;
4199 update call of equals_private.
4200 (sem_function::equals_private): Do not call equals_wpa; skip
4201 gimple body matching if there is no body.
4202 (sem_function::init): Add logic to hash tthunk info.
4203 (sem_function::parse): Also parse thunks.
4204 * ipa-icf.h (equals_private): Update declaration.
4205
4206 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4207
4208 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
4209 asterisk from name so this can be generated directly.
4210 (*altivec_stvx_<mode>_internal): Likewise.
4211 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
4212 that this is never called during or after reload/lra.
4213 (rs6000_frame_related): Remove split_reg
4214 argument and logic that references it.
4215 (emit_frame_save): Remove last parameter from call to
4216 rs6000_frame_related.
4217 (rs6000_emit_prologue): Remove last parameter from eight calls to
4218 rs6000_frame_related. Force generation of stvx instruction for
4219 Altivec register saves. Remove split_reg handling, which is no
4220 longer needed.
4221 (rs6000_emit_epilogue): Force generation of lvx instruction for
4222 Altivec register restores.
4223
4224 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4225
4226 * config/rs6000/rs6000.opt (mcrypto): Change option description to
4227 match category changes in ISA 2.07B.
4228
4229 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4230
4231 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
4232 iterators.
4233 (cmp_op, cmp_type): New code attributes.
4234 (NEON_VCMP, NEON_VACMP): New int iterators.
4235 (cmp_op_unsp): New int attribute.
4236 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
4237 (neon_vceq<mode>): Delete.
4238 (neon_vc<cmp_op><mode>_insn): New pattern.
4239 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
4240 (neon_vcgeu<mode>): Delete.
4241 (neon_vcle<mode>): Likewise.
4242 (neon_vclt<mode>: Likewise.
4243 (neon_vcage<mode>): Likewise.
4244 (neon_vcagt<mode>): Likewise.
4245 (neon_vca<cmp_op><mode>): New define_expand.
4246 (neon_vca<cmp_op><mode>_insn): New pattern.
4247 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
4248
4249 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4250
4251 * tree.h (attribute_value_equal): Declare.
4252 * tree.c (attribute_value_equal): Export.
4253
4254 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4255
4256 * ipa-icf.c (sem_item::compare_attributes): New function.
4257 (sem_item::compare_referenced_symbol_properties): Compare variable
4258 attributes.
4259 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
4260 (sem_function::param_used_p): New function.
4261 (sem_function::equals_wpa): Fix attribute comparsion; match
4262 parameter type codes; do not compare paremter flags when
4263 they are not used; compare edge flags; compare indirect calls.
4264 (sem_item::update_hash_by_addr_refs): Hash reference type.
4265 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
4266 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
4267 reference use type.
4268 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
4269 * ipa-icf.h (compare_attributes, param_used_p): Declare.
4270
4271 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
4272
4273 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
4274 cleanup.
4275 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
4276 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
4277 (sem_item::compare_referenced_symbol_properties): New.
4278 (sem_item::hash_referenced_symbol_properties): New.
4279 (sem_item::compare_cgraph_references): Rename to ...
4280 (sem_item::compare_symbol_references): ... this one; use
4281 compare_referenced_symbol_properties.
4282 (sem_function::equals_wpa): Do not compare
4283 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
4284 DECL_IS_OPERATOR_NEW; compare pointer sizes.
4285 (sem_item::update_hash_by_addr_refs): Call
4286 hash_referenced_symbol_properties.
4287 (sem_item::update_hash_by_local_refs): Cleanup.
4288 (sem_function::merge): Do not mix up symbol properties.
4289 (sem_variable::equals_wpa): Use compare_symbol_references.
4290 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
4291 (sem_item::hash_referenced_symbol_properties): New.
4292 (sem_item::compare_symbol_references): New.
4293 (sem_item::compare_cgraph_references): Remove.
4294
4295 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
4296
4297 PR target/26702
4298 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4299 Emit size of local.
4300
4301 2015-04-23 Nick Clifton <nickc@redhat.com>
4302
4303 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
4304 ATTRIBUTE_UNUSED to x parameter.
4305 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
4306
4307 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4308
4309 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
4310 TARGET_CRYPTO to TARGET_P8_VECTOR>
4311 (crypto_vpermxor_<mode>): Likewise.
4312 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
4313 (BU_CRYPTO_3A): Likewise.
4314 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
4315 (BU_CRYPTO_OVERLOAD_3A): New #define.
4316 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
4317 (VPMSUMH): Likewise.
4318 (VPMSUMW): Likewise.
4319 (VPMSUMD): Likewise.
4320 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
4321 (VPERMXOR_V4SI): Likewise.
4322 (VPERMXOR_V8HI): Likewise.
4323 (VPERMXOR_V16QI): Likewise.
4324 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
4325 BU_CRYPTO_OVERLOAD_2A.
4326 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
4327 BU_CRYPTO_OVERLOAD_3A.
4328 * config/rs6000/rs6000.opt (mcrypto): Change description of
4329 option.
4330
4331 2015-04-23 Richard Biener <rguenther@suse.de>
4332
4333 * passes.def: Remove copy propagation passes run directly after CCP.
4334 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
4335 SSA names.
4336 (ccp_visit_phi_node): Rework to handle first executable edge
4337 specially.
4338
4339 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
4340
4341 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4342 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4343 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
4344 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
4345 (thumb_legimitimize_reload_address): Remove.
4346 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
4347 Remove.
4348 (thumb_legimitimize_reload_address): Remove.
4349
4350 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4351
4352 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
4353
4354 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4355
4356 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
4357 MAX_LDM_STM_OPS.
4358 (store_multiple): Likewise.
4359
4360 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4361
4362 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
4363 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
4364 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
4365 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
4366 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
4367 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
4368 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
4369 Specify issue_rate value.
4370 (arm_issue_rate): Look up issue rate from tuning structs. Remove
4371 large switch statement.
4372 (arm_marvell_pj4_tune): New struct.
4373 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
4374 struct.
4375
4376 2015-04-23 Richard Biener <rguenther@suse.de>
4377
4378 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
4379 (vect_find_last_store_in_slp_instance): Rename to ...
4380 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
4381 (vect_analyze_slp_cost_1): Use vector_load for constant defs
4382 and vec_construct for external defs when estimating prologue cost.
4383 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
4384 Compute costs here only when vectorizing loops.
4385 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
4386 have been determined.
4387 (vect_schedule_slp_instance): Simplify vectorized code placement
4388 and prepare for in-BB external defs.
4389 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
4390 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
4391 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
4392 guard.
4393 (vect_model_load_cost): Likewise.
4394 (vectorizable_store): Instead add it here.
4395 (vectorizable_load): Likewise.
4396 (vect_is_simple_use): Dump def type textually.
4397
4398 2015-04-23 Richard Biener <rguenther@suse.de>
4399
4400 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
4401 * cfgloop.c (verify_loop_structure): Verify the root loop node.
4402 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
4403 instead of get_eh_region_from_lp_number.
4404 * loop-init.c (fix_loop_structure): If we removed a loop, reset
4405 the SCEV cache.
4406
4407 2015-04-23 Anton Blanchard <anton@samba.org>
4408
4409 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
4410 need for -mprofile-kernel to save LR to stack.
4411
4412 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4413
4414 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
4415 adjustments.
4416 (insn_is_swappable_p): Return 1 for a convert from double to
4417 single precision when all of its uses are splats of BE element
4418 zero.
4419
4420 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4421
4422 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
4423
4424 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4425
4426 PR target/65456
4427 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
4428 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
4429 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
4430 option.
4431 (rs6000_builtin_mask_for_load): Return 0 for targets with
4432 efficient unaligned VSX accesses so that the vectorizer will use
4433 direct unaligned loads.
4434 (rs6000_builtin_support_vector_misalignment): Always return true
4435 for targets with efficient unaligned VSX accesses.
4436 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
4437 stores on targets with efficient unaligned VSX accesses is almost
4438 always the same as the cost of an aligned load or store, so model
4439 it that way.
4440 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
4441 unaligned vectors if we have efficient unaligned VSX accesses.
4442 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
4443 undocumented option.
4444
4445 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4446
4447 Revert:
4448 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
4449
4450 * config.gcc (LIBC_MUSL): New tm_defines macro.
4451 * config/linux.h (OPTION_MUSL): Define.
4452 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4453 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4454 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4455
4456 * config/linux.opt (mmusl): New option.
4457 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4458 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4459
4460 * configure: Regenerate.
4461
4462 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
4463
4464 * config.gcc (LIBC_MUSL): New tm_defines macro.
4465 * config/linux.h (OPTION_MUSL): Define.
4466 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
4467 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
4468 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
4469
4470 * config/linux.opt (mmusl): New option.
4471 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
4472 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
4473
4474 * configure: Regenerate.
4475
4476 2015-04-22 Yury Gribov <y.gribov@samsung.com>
4477
4478 * doc/invoke.texi (-fsanitize-sections): Update description.
4479 * asan.c (set_sanitized_sections): Parse incoming arg.
4480 (section_sanitized_p): Support wildcards.
4481
4482 2015-04-22 Tom de Vries <tom@codesourcery.com>
4483
4484 PR tree-optimization/65823
4485 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
4486 equality between ap_copy and ap.
4487
4488 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4489
4490 PR target/47098
4491 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
4492
4493 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4494
4495 PR target/47122
4496 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
4497
4498 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4499
4500 PR target/55144
4501 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
4502 remove already contained t-files.
4503
4504 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4505
4506 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
4507 Remove unneeded forward declarations.
4508 (suitable_for_tail_call_opt_p): Commentary typo fix.
4509
4510 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4511
4512 * varasm.c (emit_bss): Remove redundant guard.
4513
4514 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4515
4516 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
4517
4518 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4519
4520 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
4521
4522 2015-04-22 Hale Wang <hale.wang@arm.com>
4523 Terry Guo <terry.guo@arm.com>
4524
4525 PR rtl-optimization/64818
4526 * combine.c (can_combine_p): Don't combine user-specified
4527 register if it is in an asm input.
4528
4529 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
4530
4531 PR ipa/65076
4532 * passes.def (early_optimizations): Add pass_dse.
4533
4534 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4535
4536 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
4537 * reorg.c (redundant_insn): Remove ifdef
4538 INSN_REFERENCES_ARE_DELAYED.
4539 * resource.c (mark_referenced_resources): Likewise.
4540
4541 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4542
4543 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
4544 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
4545 * resource.c (mark_set_resources): Likewise.
4546
4547 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4548
4549 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
4550 * cfgcleanup.c (flow_find_cross_jump): Likewise.
4551 (flow_find_head_matching_sequence): Likewise.
4552 (try_head_merge_bb): Likewise.
4553 * combine.c (can_combine_p): Likewise.
4554 (try_combine): Likewise.
4555 (distribute_notes): Likewise.
4556 * df-problems.c (can_move_insns_across): Likewise.
4557 * final.c (final): Likewise.
4558 * gcse.c (insert_insn_end_basic_block): Likewise.
4559 * ira.c (find_moveable_pseudos): Likewise.
4560 * reorg.c (try_merge_delay_insns): Likewise.
4561 (fill_simple_delay_slots): Likewise.
4562 (fill_slots_from_thread): Likewise.
4563 * sched-deps.c (sched_analyze_2): Likewise.
4564
4565 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4566
4567 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
4568 PIC_OFFSET_TABLE_REGNUM.
4569
4570 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4571
4572 * alias.c (init_alias_target): Remove ifdef
4573 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
4574 * df-scan.c (df_insn_refs_collect): Likewise.
4575 (df_get_regular_block_artificial_uses): Likewise.
4576 (df_get_eh_block_artificial_uses): Likewise.
4577 (df_get_entry_block_def_set): Likewise.
4578 (df_get_exit_block_use_set): Likewise.
4579 * emit-rtl.c (gen_rtx_REG): Likewise.
4580 * ira.c (ira_setup_eliminable_regset): Likewise.
4581 * reginfo.c (init_reg_sets_1): Likewise.
4582 * regrename.c (rename_chains): Likewise.
4583 * reload1.c (reload): Likewise.
4584 (eliminate_regs_in_insn): Likewise.
4585 * resource.c (mark_referenced_resources): Likewise.
4586 (init_resource_info): Likewise.
4587
4588 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4589
4590 * defaults.h (MASK_RETURN_ADDR): New definition.
4591 * except.c (expand_builtin_extract_return_addr): Remove ifdef
4592 MASK_RETURN_ADDR.
4593
4594 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4595
4596 * defaults.h (RETURN_ADDR_OFFSET): New definition.
4597 * except.c (expand_builtin_extract_return_addr): Remove ifdef
4598 RETURN_ADDR_OFFSET.
4599 (expand_builtin_frob_return_addr): Likewise.
4600
4601 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4602
4603 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
4604 (try_redirect_by_replacing_jump): Likewise.
4605 (rtl_tidy_fallthru_edge): Likewise.
4606 * combine.c (insn_a_feeds_b): Likewise.
4607 (find_split_point): Likewise.
4608 (simplify_set): Likewise.
4609 * cprop.c (cprop_jump): Likewise.
4610 * cse.c (cse_extended_basic_block): Likewise.
4611 * df-problems.c (can_move_insns_across): Likewise.
4612 * function.c (emit_use_return_register_into_block): Likewise.
4613 * haifa-sched.c (sched_init): Likewise.
4614 * ira.c (find_moveable_pseudos): Likewise.
4615 * loop-invariant.c (find_invariant_insn): Likewise.
4616 * lra-constraints.c (curr_insn_transform): Likewise.
4617 * postreload.c (reload_combine_recognize_const_pattern):
4618 * Likewise.
4619 * reload.c (find_reloads): Likewise.
4620 * reorg.c (delete_scheduled_jump): Likewise.
4621 (steal_delay_list_from_target): Likewise.
4622 (steal_delay_list_from_fallthrough): Likewise.
4623 (redundant_insn): Likewise.
4624 (fill_simple_delay_slots): Likewise.
4625 (fill_slots_from_thread): Likewise.
4626 (delete_computation): Likewise.
4627 * sched-rgn.c (add_branch_dependences): Likewise.
4628
4629 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4630
4631 * genconfig.c (main): Always define HAVE_cc0.
4632 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
4633 HAVE_cc0.
4634 * cfgcleanup.c (flow_find_cross_jump): Likewise.
4635 (flow_find_head_matching_sequence): Likewise.
4636 (try_head_merge_bb): Likewise.
4637 * cfgrtl.c (rtl_merge_blocks): Likewise.
4638 (try_redirect_by_replacing_jump): Likewise.
4639 (rtl_tidy_fallthru_edge): Likewise.
4640 * combine.c (do_SUBST_MODE): Likewise.
4641 (insn_a_feeds_b): Likewise.
4642 (combine_instructions): Likewise.
4643 (can_combine_p): Likewise.
4644 (try_combine): Likewise.
4645 (find_split_point): Likewise.
4646 (subst): Likewise.
4647 (simplify_set): Likewise.
4648 (distribute_notes): Likewise.
4649 * cprop.c (cprop_jump): Likewise.
4650 * cse.c (cse_extended_basic_block): Likewise.
4651 * df-problems.c (can_move_insns_across): Likewise.
4652 * final.c (final): Likewise.
4653 (final_scan_insn): Likewise.
4654 * function.c (emit_use_return_register_into_block): Likewise.
4655 * gcse.c (insert_insn_end_basic_block): Likewise.
4656 * haifa-sched.c (sched_init): Likewise.
4657 * ira.c (find_moveable_pseudos): Likewise.
4658 * loop-invariant.c (find_invariant_insn): Likewise.
4659 * lra-constraints.c (curr_insn_transform): Likewise.
4660 * optabs.c (prepare_cmp_insn): Likewise.
4661 * postreload.c (reload_combine_recognize_const_pattern):
4662 * Likewise.
4663 * reload.c (find_reloads): Likewise.
4664 (find_reloads_address_1): Likewise.
4665 * reorg.c (delete_scheduled_jump): Likewise.
4666 (steal_delay_list_from_target): Likewise.
4667 (steal_delay_list_from_fallthrough): Likewise.
4668 (try_merge_delay_insns): Likewise.
4669 (redundant_insn): Likewise.
4670 (fill_simple_delay_slots): Likewise.
4671 (fill_slots_from_thread): Likewise.
4672 (delete_computation): Likewise.
4673 (relax_delay_slots): Likewise.
4674 * sched-deps.c (sched_analyze_2): Likewise.
4675 * sched-rgn.c (add_branch_dependences): Likewise.
4676
4677 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4678
4679 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
4680 that is trivially ded on non cc0 targets.
4681 (simplify_set): Likewise.
4682 (mark_used_regs_combine): Likewise.
4683 * cse.c (new_basic_block): Likewise.
4684 (fold_rtx): Likewise.
4685 (cse_insn): Likewise.
4686 (cse_extended_basic_block): Likewise.
4687 (set_live_p): Likewise.
4688 * rtlanal.c (canonicalize_condition): Likewise.
4689 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4690
4691 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4692
4693 * conditions.h: Define macros even if HAVE_cc0 is undefined.
4694 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
4695 * final.c: Likewise.
4696 * jump.c: Likewise.
4697 * recog.c: Likewise.
4698 * recog.h: Declare functions even when HAVE_cc0 is undefined.
4699 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
4700
4701 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4702
4703 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
4704 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
4705 * builtins.c (expand_builtin): Remove check if
4706 EH_RETURN_DATA_REGNO is defined.
4707 * df-scan.c (df_bb_refs_collect): Likewise.
4708 (df_get_exit_block_use_set): Likewise.
4709 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
4710 * ira-lives.c (process_bb_node_lives): Likewise.
4711 * lra-lives.c (process_bb_lives): Likewise.
4712
4713 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
4714
4715 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
4716 FIRST_PSEUDO_REG): New.
4717 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
4718 (ARG_POINTER_REGNUM): Define to ARGP_REG.
4719 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
4720 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
4721 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
4722 (FIRST_INT_REG): New.
4723 (LAST_INT_REG): New.
4724 (FIRST_*_REG): Define using *_REG.
4725 (LAST_*_REG): Ditto.
4726 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
4727 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
4728 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
4729
4730 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4731
4732 * expmed.c: (synth_mult): Only assume overlapping
4733 shift with previous steps in alg_sub_t_m2 case.
4734
4735 2015-04-21 Richard Biener <rguenther@suse.de>
4736
4737 PR tree-optimization/65650
4738 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
4739 transitions involving copies.
4740 (set_lattice_value): Adjust for copy lattice state.
4741 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
4742 if that doesn't dominate the merge point.
4743 (bit_value_unop): Adjust what we treat as varying mask.
4744 (bit_value_binop): Likewise.
4745 (bit_value_assume_aligned): Likewise.
4746 (evaluate_stmt): When we simplified to a SSA name record a copy
4747 instead of dropping to varying.
4748 (visit_assignment): Simplify.
4749
4750 * gimple-match.h (gimple_simplify): Add another callback.
4751 * gimple-fold.c (fold_stmt_1): Adjust caller.
4752 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
4753 for the 2nd callback.
4754 * gimple-match-head.c (gimple_simplify): Add a callback that is
4755 used to valueize the stmt operands and use it that way.
4756
4757 2015-04-21 Richard Biener <rguenther@suse.de>
4758
4759 PR tree-optimization/65788
4760 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
4761
4762 2015-04-21 Richard Biener <rguenther@suse.de>
4763
4764 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
4765 vec_construct cost by vec_stmt_cost.
4766
4767 2015-04-21 Richard Biener <rguenther@suse.de>
4768
4769 * cfghooks.h (create_basic_block): Replace with two overloads
4770 for RTL and GIMPLE.
4771 (split_block): Likewise.
4772 * cfghooks.c (split_block): Rename to ...
4773 (split_block_1): ... this.
4774 (split_block): Add two type-safe overloads for RTL and GIMPLE.
4775 (split_block_after_labels): Call split_block_1.
4776 (create_basic_block): Rename to ...
4777 (create_basic_block_1): ... this.
4778 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
4779 (create_empty_bb): Call create_basic_block_1.
4780 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
4781 split_block_after_labels.
4782 * omp-low.c (expand_parallel_call): Likewise.
4783 (expand_omp_target): Likewise.
4784 (simd_clone_adjust): Likewise.
4785 * tree-chkp.c (chkp_get_entry_block): Likewise.
4786 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
4787 create_basic_block overload.
4788 (cgraph_node::expand_thunk): Likewise.
4789 * tree-cfg.c (make_blocks): Likewise.
4790 (handle_abnormal_edges): Likewise.
4791 * tree-inline.c (copy_bb): Likewise.
4792
4793 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4794
4795 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
4796 New pattern.
4797 (*xor_one_cmplsidi3_ze): Likewise.
4798
4799 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
4800
4801 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
4802 use df_remove_problem rather than manually removing problems, leaving
4803 holes in df->problems_in_order[].
4804
4805 2015-04-21 Tom de Vries <tom@codesourcery.com>
4806
4807 PR tree-optimization/65802
4808 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
4809
4810 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4811
4812 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
4813 Increase to 128.
4814 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
4815 at '.'. Assert that there's enough space for everything.
4816
4817 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
4818
4819 PR tree-optimization/64950
4820 Revert:
4821 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
4822
4823 PR target/41089
4824 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4825 as volatile.
4826
4827 2015-04-20 Shiva Chen <shiva0217@gmail.com>
4828
4829 PR rtl-optimization/64916
4830 * cfgcleanup.c (values_equal_p): New function.
4831 (can_replace_by): Use it.
4832
4833 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
4834
4835 PR c++/65801
4836 * doc/invoke.texi ([-Wnarrowing]): Update.
4837
4838 2015-04-20 Jeff Law <law@redhat.com>
4839
4840 PR tree-optimization/65658
4841 * tree-ssa-threadupdate.c (redirection_block_p): Remove
4842 redundant test for GIMPLE_ASSIGN in last change.
4843
4844 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
4845
4846 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
4847 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
4848 (legitimize_tls_address): Ditto.
4849 (ix86_expand_move): Ditto.
4850 (ix86_expand_binary_operator): Remove reload_in_progress checks.
4851 (ix86_expand_unary_operator): Ditto.
4852 * config/i386/predicates.md (index_register_operand): Ditto.
4853
4854 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
4855
4856 * reorg.c (try_merge_delay_insns): Improve correctness checking
4857 for targets with multiple delay slots.
4858
4859 2015-04-20 Jeff Law <law@redhat.com>
4860
4861 PR tree-optimization/65658
4862 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
4863 statements too.
4864
4865 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4866
4867 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
4868 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
4869 Delete.
4870
4871 2015-04-20 Jakub Jelinek <jakub@redhat.com>
4872
4873 PR debug/65807
4874 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
4875
4876 2015-04-20 Richard Biener <rguenther@suse.de>
4877
4878 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
4879 * gimple-fold.c (gimple_build_valueize): New function.
4880 (gimple_build): Always use gimple_build_valueize as valueize hook.
4881
4882 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
4883
4884 PR target/64134
4885 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
4886 and overwrite variable parts if <= 1/2 the elements are variable.
4887
4888 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
4889
4890 PR rtl-optimization/65805
4891 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
4892 Don't use difference of offset and previous offset if
4893 update_sp_offset is non-zero.
4894 (eliminate_regs_in_insn): Ditto.
4895 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
4896 lra_eliminate_regs_1 call.
4897 * lra-constraints.c (get_equiv_with_elimination): Ditto.
4898
4899 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
4900
4901 * hash-table.h: Remove version of hash_table that stored value_type *.
4902 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
4903 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
4904 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
4905 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
4906 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
4907 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
4908 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
4909 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
4910 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
4911 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
4912 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
4913 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
4914 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
4915 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
4916 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
4917 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
4918
4919 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4920 Jakub Jelinek <jakub@redhat.com>
4921
4922 PR target/65787
4923 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
4924 subsequent SH_NONE operand does not overwrite an existing *special
4925 value.
4926 (adjust_extract): Handle case where a vec_extract operation is
4927 wrapped in a PARALLEL.
4928
4929 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
4930
4931 PR target/65780
4932 * config/i386/i386.c (ix86_binds_local_p): Define only if
4933 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
4934
4935 2015-04-17 Jeff Law <law@redhat.com>
4936
4937 PR tree-optimization/47679
4938 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
4939 * tree-ssa-scopedtables.c: New file.
4940 * tree-ssa-scopedtables.h: New file.
4941 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
4942 (const_and_copies): Change name/type.
4943 (record_const_or_copy): Move into tree-ssa-scopedtables.c
4944 (record_const_or_copy_1): Similarly.
4945 (restore_vars_to_original_value): Similarly.
4946 (pass_dominator::execute): Create and destroy const_and_copies table.
4947 (thread_across_edge): Update passing of const_and_copies.
4948 (record_temporary_equivalence): Use method calls rather than
4949 manipulating const_and_copies directly.
4950 (record_equality, cprop_into_successor_phis): Similarly.
4951 (dom_opt_dom_walker::before_dom_children): Similarly.
4952 (dom_opt_dom_walker::after_dom_children): Similarly.
4953 (eliminate_redundant_computations): Similarly.
4954 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
4955 (record_temporary_equivalence): Likewise.
4956 (invalidate_equivalences): Likewise.
4957 (record_temporary_equivalences_from_phis): Update due to type
4958 change of const_and_copies. Use method calls rather than
4959 manipulating the stack directly.
4960 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4961 (thread_through_normal_block, thread_across_edge): Likewise.
4962 (thread_across_edge): Likewise.
4963 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
4964 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
4965 of equiv_stack.
4966 (identify_jump_threads): Update due to type change of equiv_stack.
4967 (finalize_jump_threads): Delete the equiv_stack when complete.
4968
4969 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
4970
4971 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
4972 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
4973 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
4974
4975 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
4976
4977 PR target/65535
4978 * config.gcc: Exit with a comment when we do not have a major version
4979 number for the FreeBSD target.
4980
4981 2015-04-17 Jakub Jelinek <jakub@redhat.com>
4982
4983 PR target/65689
4984 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
4985 maybe_allows_mem bitfields.
4986 (maybe_allows_none_start, maybe_allows_none_end,
4987 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
4988 maybe_allows_mem_end): New variables.
4989 (compute_maybe_allows): New function.
4990 (add_constraint): Use it to initialize maybe_allows_reg and
4991 maybe_allows_mem fields.
4992 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
4993 is_address constraints such that those that allow neither mem nor
4994 reg come first, then those that only allow reg but not mem, then
4995 those that only allow mem but not reg, then the rest.
4996 (write_allows_reg_mem_function): New function.
4997 (write_tm_preds_h): Call it.
4998 * stmt.c (parse_output_constraint, parse_input_constraint): Use
4999 the generated insn_extra_constraint_allows_reg_mem function
5000 instead of always setting *allows_reg = true; *allows_mem = true;
5001 for unknown extra constraints.
5002
5003 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 PR target/65780
5006 * output.h (default_binds_local_p_3): New.
5007 * varasm.c (default_binds_local_p_3): Make it public. Take an
5008 argument to indicate if common symbol may be local. If common
5009 symbol may be local, treat non-external variable as defined
5010 locally.
5011 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
5012 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
5013 * config/i386/i386.c (ix86_binds_local_p): New.
5014 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
5015 ix86_binds_local_p.
5016
5017 2015-04-17 Jakub Jelinek <jakub@redhat.com>
5018
5019 PR debug/65771
5020 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
5021 trying mem_loc_descriptor on XEXP (rtl, 0).
5022
5023 2015-04-17 Martin Liska <mliska@suse.cz>
5024
5025 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
5026 Release symbol_compare_collection.
5027 * ipa-reference.c: Add TODO that a vector should be released.
5028
5029 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
5030
5031 PR target/65296
5032 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
5033 to new AVR-LibC file layout (bug #44574).
5034 (*avrlibc_devicelib): Same.
5035 * config/avr/avr-mcus.def: Adjust comments.
5036 * config/avr/avr.opt (nodevicelib): Adjust help.
5037
5038 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
5039
5040 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
5041
5042 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
5043
5044 PR c++/64527
5045 * gimplify.c (gimplify_init_constructor): Always emit a
5046 side-effecting constructor.
5047
5048 2015-04-17 Tom de Vries <tom@codesourcery.com>
5049
5050 PR tree-optimization/64950
5051 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
5052 in cfun->curr_properties.
5053 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
5054 if we generate an IFN_VA_ARG.
5055 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
5056 function if PROP_gimple_lva is not set in src function.
5057
5058 2015-04-17 Tom de Vries <tom@codesourcery.com>
5059 Michael Matz <matz@suse.de>
5060
5061 PR tree-optimization/64950
5062 * gimple-iterator.c (update_modified_stmts): Remove static.
5063 * gimple-iterator.h (update_modified_stmts): Declare.
5064 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
5065 (gimplify_va_arg_internal): New function.
5066 (gimplify_va_arg_expr): Use IFN_VA_ARG.
5067 * gimplify.h (gimplify_va_arg_internal): Declare.
5068 * internal-fn.c (expand_VA_ARG): New unreachable function.
5069 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
5070 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
5071 (expand_ifn_va_arg): New function.
5072 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
5073 (pass_stdarg::execute): Call expand_ifn_va_arg.
5074 (pass_data_lower_vaarg): New pass_data.
5075 (pass_lower_vaarg): New gimple_opt_pass.
5076 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
5077 (make_pass_lower_vaarg): New function.
5078 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
5079 properties_required field.
5080 * passes.def (all_passes): Add pass_lower_vaarg.
5081 * tree-pass.h (PROP_gimple_lva): Add define.
5082 (make_pass_lower_vaarg): Declare.
5083
5084 2015-04-17 Tom de Vries <tom@codesourcery.com>
5085
5086 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
5087 * calls.c (call_expr_flags): Same.
5088
5089 2015-04-17 Tom de Vries <tom@codesourcery.com>
5090
5091 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
5092 (pass_stdarg::execute): ... here.
5093
5094 2015-04-17 Tom de Vries <tom@codesourcery.com>
5095 Michael Matz <matz@suse.de>
5096
5097 * tree-cfg.c (make_blocks_1): Factor out of ...
5098 (make_blocks): ... here.
5099 (make_edges_bb): Factor out of ...
5100 (make_edges): ... here.
5101 (gimple_find_sub_bbs): New function.
5102 * tree-cfg.h (gimple_find_sub_bbs): Declare.
5103
5104 2015-04-17 Tom de Vries <tom@codesourcery.com>
5105
5106 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
5107
5108 2015-04-17 Yury Gribov <y.gribov@samsung.com>
5109
5110 * asan.c (set_sanitized_sections): New function.
5111 (section_sanitized_p): Ditto.
5112 (asan_protect_global): Optionally sanitize user-defined
5113 sections.
5114 * asan.h (set_sanitized_sections): Declare new function.
5115 * common.opt (fsanitize-sections): New option.
5116 * doc/invoke.texi (-fsanitize-sections): Document new option.
5117 * opts-global.c (handle_common_deferred_options): Handle new
5118 option.
5119
5120 2015-04-17 Jakub Jelinek <jakub@redhat.com>
5121
5122 PR debug/65771
5123 * dwarf2out.c (loc_list_from_tree): Return NULL
5124 for DEBUG_EXPR_DECL.
5125
5126 2015-04-17 Christian Bruel <christian.bruel@st.com>
5127
5128 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
5129 same attributes.
5130
5131 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5132
5133 * ira-color.c (setup_left_conflict_sizes_p): Do not process
5134 node itself when computing left conflict subnode size.
5135
5136 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
5137
5138 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
5139 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
5140 *fop_<mode>_1_sse using enabled attribute. Use
5141 register_mixssei387nonimm_operand operand 1 predicate. Change
5142 alternative 3 constraints from "x" to "v".
5143
5144 2015-04-16 Richard Biener <rguenther@suse.de>
5145
5146 PR tree-optimization/65774
5147 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
5148 bit-value tracking on.
5149
5150 2015-04-16 Richard Biener <rguenther@suse.de>
5151
5152 PR tree-optimization/64277
5153 * tree-vrp.c (check_array_ref): Fix anti-range handling,
5154 simplify upper bound handling.
5155 (search_for_addr_array): Simplify.
5156 (check_array_bounds): Handle ADDR_EXPRs here.
5157 (check_all_array_refs): Simplify.
5158
5159 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
5160
5161 * config/i386/i386.c (print_reg): Rewrite function.
5162
5163 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5164
5165 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
5166 Invert the condition.
5167
5168 2015-04-16 Renlin Li <renlin.li@arm.com>
5169
5170 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
5171 simplifications for UNSIGNED_FLOAT.
5172
5173 2015-04-16 Nick Clifton <nickc@redhat.com>
5174
5175 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
5176 MUL_UNINIT.
5177 (enum rl78_cpu_type): New.
5178 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
5179 (umulhi3_shift_virt): Remove m constraint from operand 1.
5180 (umulqihi3_virt): Likewise.
5181 * config/rl78/rl78.c (rl78_option_override): Add code to process
5182 -mcpu and -mmul options.
5183 (rl78_alloc_physical_registers): Add code to handle divhi and
5184 divsi valloc attributes.
5185 (set_origin): Likewise.
5186 * config/rl78/rl78.h (RL78_MUL_G14): Define.
5187 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
5188 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
5189 __RL78_Gxx__.
5190 (ASM_SPEC): Pass -mcpu on to assembler.
5191 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
5192 (mulqi3_rl78): Likewise.
5193 (mulhi3_g13): Likewise.
5194 (mulhi3): Generate the G13 or G14 versions of the insn directly.
5195 (mulsi3): Likewise.
5196 (mulhi3_g14): Add clobbers of AX and BC.
5197 (mulsi3_g14): Likewise.
5198 (mulsi3_g13): Likewise.
5199 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
5200 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
5201 * config/rl78/rl78.opt (mmul): Initialise value to
5202 RL78_MUL_UNINIT.
5203 (mcpu): New option.
5204 (m13, m14, mrl78): New option aliases.
5205 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
5206 (MULTILIB_DIRNAMES): Add g13 and g14.
5207 * doc/invoke.texi: Document -mcpu and -mmul options.
5208
5209 2015-04-16 Richard Biener <rguenther@suse.de>
5210
5211 * tree-ssa-ccp.c (likely_value): See if we have operands that
5212 are marked as never simulate again and return CONSTANT in this
5213 case.
5214 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
5215 not have any operands that will be simulated again as
5216 not being simulated again.
5217
5218 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
5219
5220 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
5221 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
5222 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
5223 attribute.
5224 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
5225 enabled attribute.
5226 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
5227 *float<SWI48:mode><MODEF:mode>2_sse.
5228 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
5229 enabled attribute.
5230 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
5231 enabled attribute.
5232
5233 2015-04-15 Tom de Vries <tom@codesourcery.com>
5234
5235 PR other/65487
5236 * function.c (push_dummy_function): New function.
5237 (init_dummy_function_start): Use push_dummy_function.
5238 (pop_dummy_function): New function. Factored out of ...
5239 (expand_dummy_function_end): ... here.
5240 * function.h (push_dummy_function, pop_dummy_function): Declare.
5241 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
5242 pop_dummy_function.
5243 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
5244
5245 2015-04-15 Jeff Law <law@redhat.com>
5246
5247 PR tree-optimization/47679
5248 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
5249 need for forward declaration in upcoming changes.
5250 (record_conditions, record_edge_info): Likewise.
5251
5252 PR rtl-optimization/42522
5253 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
5254 SIGN_EXTRACT as a whole object rather than simplifying
5255 its operand.
5256
5257 2015-04-15 Jakub Jelinek <jakub@redhat.com>
5258
5259 PR ipa/65765
5260 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
5261 and GIMPLE_PREDICT use break instead of return true. For
5262 GIMPLE_EH_DISPATCH, compare dispatch region.
5263
5264 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
5265
5266 * doc/extend.texi (__sync Builtins): Simplify some text. Update
5267 details about the implementation. Make clear preference for
5268 __atomic builtins. Reduce possibility of future change.
5269
5270 2015-04-15 Nick Clifton <nickc@redhat.com>
5271
5272 * config/rx/rx.opt (mallow-string-insns): New option.
5273 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
5274 builtin if string instructions are denied.
5275 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
5276 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
5277 appropriate.
5278 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
5279 * config/rx/rx.md (movstr): Enable pattern only if string
5280 instructions are allowed.
5281 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
5282 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
5283 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
5284 (MULTILIB_DIRNAMES): Add no-strings.
5285 * doc/invoke.texi: Document -mno-allow-string-insns.
5286
5287 2015-04-15 Alan Modra <amodra@gmail.com>
5288
5289 PR target/65408
5290 PR target/58744
5291 PR middle-end/36043
5292 * calls.c (load_register_parameters): Don't load past end of
5293 mem unless suitably aligned.
5294
5295 2015-04-15 Nick Clifton <nickc@redhat.com>
5296
5297 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
5298 decrement instruction as being frame related.
5299 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
5300 based addresses.
5301 If zero extending a function address enclose the operation in
5302 %code(...).
5303 (rl78_preferred_reload_class): New function.
5304 (TARGET_PREFERRED_RELOAD_CLASS): Define.
5305 * config/rl78/rl78.md: Remove useless constraints in expanders.
5306 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
5307 (mulhi3_rl78): Likewise.
5308 (mulhi3_g13): Likewise.
5309 (mulsi3_rl78): Likewise.
5310 (es_addr): Move to before the multiply patterns.
5311
5312 2015-04-15 Alan Modra <amodra@gmail.com>
5313
5314 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
5315 and sequence_stack. Add seq.
5316 (seq_stack): Delete.
5317 * function.c (prepare_function_start): Don't access x_last_insn.
5318 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
5319 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
5320 * emit_rtl.c (start_sequence, push_topmost_sequence,
5321 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
5322 sequence accessors.
5323 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
5324 remove_insn): Likewise. Simplify.
5325 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
5326 and pop_topmost_sequence.
5327 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
5328 debug insns.
5329 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
5330
5331 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
5332
5333 PR target/65729
5334 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
5335 the assertiion.
5336
5337 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
5338
5339 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
5340 (LEGACY_INT_REGNO_P): Ditto.
5341 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
5342 (ANY_MASK_REG_P): Remove.
5343 (BND_REG_P): Rename from ANY_BND_REG_P.
5344 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
5345 legacy integer registers. Do not handle MMX_REG_P in a special way.
5346 Merge 64byte and 32byte SSE handling.
5347
5348 2015-04-14 Nick Clifton <nickc@redhat.com>
5349
5350 * expr.c (expand_assignment): Force an address offset computation
5351 into a register before changing its mode.
5352 (expand_expr_real_1): Likewise.
5353
5354 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
5355
5356 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
5357 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
5358 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
5359 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
5360 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
5361 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
5362 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
5363 and __aarch64_vget_lane_any.
5364
5365 2015-04-14 Jakub Jelinek <jakub@redhat.com>
5366
5367 PR rtl-optimization/65761
5368 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
5369 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
5370
5371 2015-04-14 Richard Biener <rguenther@suse.de>
5372
5373 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
5374 (graphite_can_represent_scev): Use POINTER_TYPE_P.
5375
5376 2015-04-14 Richard Biener <rguenther@suse.de>
5377
5378 PR tree-optimization/65758
5379 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
5380 against -1.
5381 (ccp_lattice_meet): Likewise.
5382 (bit_value_unop): Likewise.
5383 (bit_value_binop): Likewise.
5384 (bit_value_assume_aligned): Likewise.
5385
5386 2015-04-14 Christian Bruel <christian.bruel@st.com>
5387
5388 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
5389 function.
5390
5391 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
5392
5393 PR tree-optimization/63387
5394 * match.pd ((x unord x) | (y unord y) -> (x unord y),
5395 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
5396
5397 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
5398
5399 * config/i386/predicates.md (any_QIreg_operand): Rename from
5400 q_regs_operand. Do not process subregs.
5401 (QIreg_operand): Use QI_REGNO_P predicate.
5402 (ext_QIreg_operand): Ditto.
5403 (ext_register_operand): Ditto.
5404 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
5405 (AND splitters): Ditto.
5406 (AND with -65536 splitter): Add SWI48 mode for operand 0.
5407 (AND with -256 splitter): Use any_QIreg_operand predicate and
5408 SWI248 mode for operand 0.
5409 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
5410 mode for operand 0.
5411 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
5412
5413 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
5414
5415 * doc/plugins.texi: Rewrite first introductory paragraph.
5416
5417 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5418
5419 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
5420 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
5421
5422 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5423
5424 * ipa-profie.c (ipa_profile): Check number of parameters
5425 and possible polymorphic call targets before
5426 devirtualizing.
5427
5428 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
5429
5430 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
5431 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
5432
5433 2015-04-13 Richard Biener <rguenther@suse.de>
5434
5435 PR tree-optimization/65204
5436 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
5437 takens for bit-CCP.
5438
5439 2015-04-13 Richard Biener <rguenther@suse.de>
5440
5441 PR target/65660
5442 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
5443 and cond_not_taken_branch_cost to 4 and 2.
5444 (bdver2_cost): Likewise.
5445 (bdver3_cost): Likewise.
5446 (bdver4_cost): Likewise.
5447
5448 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5449
5450 * hash-table.h (hash_table constructor): Add mem stats.
5451 (alloc_entries): Likewise.
5452
5453 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5454
5455 * ipa-cp.c (ipcp_driver): Relase prev_edge.
5456 * passes.c (execute_one_pass): Only add transform if pass has one.
5457
5458 2015-04-12 Joseph Myers <joseph@codesourcery.com>
5459
5460 * config/i386/i386.c (ix86_option_override_internal): Don't set
5461 -fprefetch-loop-arrays if optimizing for size.
5462
5463 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
5464 Gerald Pfeifer <gerald@pfeifer.com>
5465
5466 * doc/contrib.texi (Contributors): Add Martin Jambor and
5467 Michael Matz.
5468
5469 2015-04-12 Jakub Jelinek <jakub@redhat.com>
5470
5471 * BASE-VER: Set to 6.0.0.
5472
5473 PR tree-optimization/65747
5474 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
5475 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
5476
5477 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
5478
5479 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
5480 sentence. Improve grammar.
5481
5482 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
5483
5484 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
5485
5486 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
5487
5488 PR ipa/65743
5489 * ipa-inline-transform.c (speculation_removed): Remove static var.
5490 (check_speculations): New function.
5491 (clone_inlined_nodes): Do not check spculations.
5492 (inline_call): Call check_speculations.
5493 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
5494 consider non-invariants.
5495
5496 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
5497 Martin Liska <mliska@suse.cz>
5498
5499 PR ipa/65722
5500 * ipa-icf.c (sem_item::compare_cgraph_references): function and
5501 variable can not match.
5502 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
5503 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
5504
5505 2015-04-11 Jakub Jelinek <jakub@redhat.com>
5506
5507 PR tree-optimization/65735
5508 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
5509 Remove visited_phis argument, add visited_bbs, avoid recursing into the
5510 same bb rather than just into the same phi node.
5511 (thread_through_normal_block): Adjust caller.
5512
5513 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
5514
5515 * doc/contrib.texi (Contributors): Add Ira Rosen.
5516
5517 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
5518
5519 * gcov.c (find_source): Fix miswording in error message.
5520 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
5521 (ix86_expand_sse_comi_round): Fix typo in error message.
5522
5523 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
5524
5525 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
5526
5527 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
5528
5529 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
5530
5531 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
5532
5533 PR target/65710
5534 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
5535 Print bad_spills_num and insn_pseudos_num.
5536
5537 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5538
5539 PR target/65694
5540 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
5541 when creating +1 values for SImode.
5542
5543 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
5544
5545 PR target/65729
5546 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
5547 assert.
5548
5549 2015-04-10 Jakub Jelinek <jakub@redhat.com>
5550 Iain Sandoe <iain@codesourcery.com>
5551
5552 PR target/65351
5553 * configure: Regenerate.
5554
5555 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
5556
5557 PR target/65671
5558 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
5559
5560 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
5561
5562 * doc/contrib.texi (Contributors): Add John Marino.
5563
5564 2015-04-09 Jakub Jelinek <jakub@redhat.com>
5565
5566 PR tree-optimization/65709
5567 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
5568 TREE_TYPE (TREE_TYPE (t)).
5569
5570 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
5571
5572 PR target/65710
5573 * lra-int.h (lra_bad_spill_regno_start): New.
5574 * lra.c (lra_bad_spill_regno_start): New.
5575 (lra): Set up lra_bad_spill_regno_start. Set up
5576 lra_constraint_new_regno_start unconditionally.
5577 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
5578 spill preferences.
5579
5580 2015-04-09 Marek Polacek <polacek@redhat.com>
5581 Jakub Jelinek <jakub@redhat.com>
5582
5583 PR middle-end/65554
5584 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
5585 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
5586 of STRIP_NOPS.
5587
5588 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
5589
5590 PR rtl-optimization/65693
5591 * combine.c (is_parallel_of_n_reg_sets): Move outside of
5592 #ifndef HAVE_cc0.
5593
5594 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
5595
5596 PR target/65296
5597 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
5598 device specs file if "device-specs%s" didn't resolve to a path.
5599
5600 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
5601
5602 PR target/65676
5603 * config/i386/i386.c (fixup_modeless_constant): New.
5604 (ix86_expand_args_builtin): Fixup modeless constant operand.
5605 (ix86_expand_round_builtin): Ditto.
5606 (ix86_expand_special_args_builtin): Ditto.
5607 (ix86_expand_builtin): Ditto.
5608
5609 2015-04-09 Jakub Jelinek <jakub@redhat.com>
5610
5611 PR target/65693
5612 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
5613 any pow2 integer in between 2 and 0x80000000U inclusive.
5614
5615 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
5616
5617 PR rtl-optimization/65693
5618 * combine.c (is_parallel_of_n_reg_sets): Change first argument
5619 from an rtx_insn * to an rtx.
5620 (try_combine): Adjust both callers. Use it once more.
5621
5622 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5623
5624 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
5625 (chkp_make_static_const_bounds): Search existing
5626 symbol by assembler name. Use make_decl_one_only.
5627 (chkp_get_zero_bounds_var): Remove node search which
5628 is now performed in chkp_make_static_const_bounds.
5629 (chkp_get_none_bounds_var): Likewise.
5630
5631 2015-04-08 Michael Witten <mfwitten@gmail.com>
5632
5633 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
5634 to an example.
5635
5636 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5637
5638 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
5639
5640 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
5641
5642 * doc/extend.texi (__sync Builtins): Fix grammar.
5643
5644 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5645
5646 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
5647
5648 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5649
5650 * varasm.c (emit_local): Move definition of align.
5651
5652 2015-04-08 Julian Brown <julian@codesourcery.com>
5653
5654 * config/nvptx/mkoffload.c (process): Support variable mapping.
5655
5656 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
5657
5658 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
5659 alpha_links **.
5660 (alpha_write_one_linkage): Correct typo.
5661
5662 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5663
5664 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
5665
5666 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
5667
5668 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
5669
5670 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
5671
5672 * tree-chkp.h (chkp_insert_retbnd_call): New.
5673 * tree-chkp.c (chkp_insert_retbnd_call): New.
5674 * ipa-split.c (insert_bndret_call_after): Remove.
5675 (split_function): Use chkp_insert_retbnd_call.
5676 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
5677 bounds for instrumented functions.
5678
5679 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
5680
5681 PR ipa/65540
5682 * calls.c (initialize_argument_information): When producing tail
5683 call also turn SSA_NAMES passed by references to original PARM_DECLs
5684
5685 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
5686
5687 PR target/65648
5688 * lra-remat.c (do_remat): Process input and non-input insn
5689 registers separately.
5690
5691 2015-04-07 Jakub Jelinek <jakub@redhat.com>
5692
5693 PR debug/65678
5694 * valtrack.c (debug_lowpart_subreg): New function.
5695 (dead_debug_insert_temp): Use it.
5696
5697 PR middle-end/65680
5698 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
5699 into signed HOST_WIDE_INT the same as negative bit_offset.
5700
5701 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
5702
5703 * ipa-comdats.c (ipa_comdats): Visit all thunks
5704 to set proper comdat group.
5705
5706 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5707
5708 PR target/65489
5709 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
5710 on constants for NEON VSTRUCT modes.
5711
5712 2015-04-07 Jakub Jelinek <jakub@redhat.com>
5713 Iain Sandoe <iain@codesourcery.com>
5714
5715 PR target/65351
5716 * configure: Regenerate.
5717
5718 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5719
5720 PR target/65614
5721 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
5722 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
5723 that LFD is used to load double constants instead of LFS. Add
5724 defaults for all costs structures. Add comments for missing
5725 initialization fields.
5726 (size32_cost): Likewise.
5727 (size64_cost): Likewise.
5728 (rs64a_cost): Likewise.
5729 (mpccore_cost): Likewise.
5730 (ppc403_cost): Likewise.
5731 (ppc405_cost): Likewise.
5732 (ppc440_cost): Likewise.
5733 (ppc476_cost): Likewise.
5734 (ppc601_cost): Likewise.
5735 (ppc603_cost): Likewise.
5736 (ppc604_cost): Likewise.
5737 (ppc604e_cost): Likewise.
5738 (ppc620_cost): Likewise.
5739 (ppc630_cost): Likewise.
5740 (ppccell_cost): Likewise.
5741 (ppc750_cost): Likewise.
5742 (ppc7450_cost): Likewise.
5743 (ppc8540_cost): Likewise.
5744 (ppce300c2c3_cost): Likewise.
5745 (ppce500mc_cost): Likewise.
5746 (ppce500mc64_cost): Likewise.
5747 (ppce5500_cost): Likewise.
5748 (ppce6500_cost): Likewise.
5749 (titan_cost): Likewise.
5750 (power4_cost): Likewise.
5751 (power6_cost): Likewise.
5752 (power7_cost): Likewise.
5753 (power8_cost): Likewise.
5754 (ppca2_cost): Likewise.
5755 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
5756
5757 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
5758 instead of XXLOR to copy SFmode to clear out dirty bits created
5759 when SFmode denormals are generated.
5760 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
5761 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
5762
5763 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
5764
5765 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
5766 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
5767 * config/aarch64/aarch64-tune.md: Regenerate.
5768
5769 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
5770
5771 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
5772 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
5773 * config/arm/arm-cores.def (exynos-m1): New core.
5774 * config/arm/arm-tune.md: Regenerate.
5775 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
5776 * config/arm/bpabi.h: Likewise.
5777
5778 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
5779
5780 * ipa-cp (set_single_call_flag): Remove too
5781 restrictive assert.
5782
5783 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
5784
5785 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
5786 GOMP_offload_unregister from the destructor.
5787
5788 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
5789
5790 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
5791 flags for instrumentation thunk.
5792 (chkp_produce_thunks): Likewise.
5793
5794 2015-04-05 Martin Liska <mliska@suse.cz>
5795
5796 PR ipa/65665
5797 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
5798 has computed data structure.
5799 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5800
5801 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
5802
5803 * invoke.texi (inline-unit-growth): Increase growth to 20%
5804 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
5805
5806 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
5807
5808 PR target/65647
5809 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
5810 value checking.
5811 (lra_rematerialization_iter): New.
5812 * lra.c (lra): Initialize lra_rematerialization_iter.
5813 Stop updating lra_constraint_new_regno_start after switching of
5814 inheritance and rematerialization.
5815 * lra-remat.c (lra_rematerialization_iter): New.
5816 (lra_remat): Add printing pass iteration. Do rematerialization
5817 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
5818
5819 2015-04-04 Richard Biener <rguenther@suse.de>
5820
5821 PR tree-optimization/64909
5822 PR tree-optimization/65660
5823 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
5824 to take a cost vector for scalar iteration cost.
5825 (vect_get_single_scalar_iteration_cost): Likewise.
5826 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
5827 Compute the scalar iteration cost into a cost vector.
5828 (vect_get_known_peeling_cost): Use the scalar cost vector to
5829 account for the cost of the peeled iterations.
5830 (vect_estimate_min_profitable_iters): Likewise.
5831 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
5832 Likewise.
5833
5834 2015-04-04 Alan Modra <amodra@gmail.com>
5835
5836 PR target/65576
5837 PR target/65240
5838 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
5839 0.0 constant unless TARGET_VSX.
5840 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
5841 alternative.
5842
5843 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5844
5845 PR ipa/65654
5846 * ipa-inline-transform.c (inline_call): Skip sanity check to work
5847 around the ICE
5848
5849 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5850
5851 PR ipa/65655
5852 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
5853 speculative indirect edges to avoid ordering issue.
5854
5855 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
5856
5857 PR ipa/65076
5858 * ipa-inline.c (edge_badness): Add combined size to the denominator.
5859
5860 2015-04-03 Jakub Jelinek <jakub@redhat.com>
5861
5862 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
5863 TYPE_ARTIFICIAL on the .omp_data* types.
5864
5865 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5866
5867 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
5868 instrumentation thunks.
5869
5870 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5871
5872 * config/i386/i386.c (ix86_expand_call): Avoid nested
5873 PARALLEL in returned call value.
5874
5875 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5876
5877 * lto-cgraph.c (input_cgraph_1): Always link instrumented
5878 assembler name with original one.
5879
5880 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5881
5882 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
5883
5884 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5885
5886 Revert parts of r216820.
5887 * config/i386/i386.md (movqi_internal): Correct type calculation
5888 for alternatives 3 and 5.
5889
5890 2015-04-02 Jakub Jelinek <jakub@redhat.com>
5891
5892 PR preprocessor/61977
5893 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
5894 predefine __vector/__bool/__pixel macros nor context sensitive
5895 macros for CLK_ASM.
5896 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
5897
5898 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
5899
5900 * config/pa/pa.c (pa_output_move_double): Directly handle register
5901 indexed memory operand. Simplify handling of scaled register indexed
5902 memory operands.
5903
5904 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
5905
5906 PR driver/65444
5907 * config/i386/linux-common.h (MPX_SPEC): New.
5908 (CHKP_SPEC): Add MPX_SPEC.
5909 * doc/invoke.texi (-fcheck-pointer-boudns): Document
5910 possible issues with '-z bndplt' support in linker.
5911
5912 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
5913
5914 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
5915 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
5916 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
5917 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
5918 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
5919
5920 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
5921
5922 * config/i386/sync.md (UNSPEC_MOVA): Remove.
5923 (atomic_load<mode>): Change operand 0 predicate to
5924 nonimmediate_operand and fix up the destination when needed.
5925 Use UNSPEC_LDA.
5926 (atomic_loaddi_fpu): Use UNSPEC_LDA.
5927 (atomic_store<mode>): Change operand 1 predicate to
5928 nonimmendate_operand and move the source to register when needed.
5929 Use UNSPEC_STA.
5930 (atomic_store<mode>_1): Use UNSPEC_STA.
5931 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
5932 Fix moves from memory operand. Use UNSPEC_STA.
5933
5934 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5935
5936 * expmed.c (strict_volatile_bitfield_p): Check that the access will
5937 not cross a MODESIZE boundary.
5938 (store_bit_field, extract_bit_field): Added assertions in the
5939 strict volatile bitfields code path.
5940
5941 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
5942
5943 PR target/65624
5944 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
5945 Increase args array size by one to avoid buffer overflow.
5946
5947 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5948
5949 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
5950 split_part.
5951 * ipa-inline.c (edge_badness): Add wrapper penalty.
5952 (sum_callers): Move up.
5953 (inline_small_functions): Set single_caller.
5954 * ipa-inline.h (inline_summary): Add single_caller.
5955 * ipa-split.c (split_function): Set split_part.
5956 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
5957 * cgraph.h (cgraph_node): Add split_part.
5958
5959 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
5960
5961 PR target/58945
5962 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
5963 Do not split operands 0 and operands 2 to halfmode.
5964 (atomic_compare_and_swap<mode>): Update for
5965 atomic_compare_and_swap<dwi>_doubleword changes.
5966
5967 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
5968
5969 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
5970 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
5971 no caching is done.
5972
5973 2015-03-31 Martin Liska <mliska@suse.cz>
5974
5975 PR ipa/65557
5976 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
5977 has already filled up function summary.
5978 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
5979
5980 2015-03-31 Richard Biener <rguenther@suse.de>
5981
5982 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
5983 of types.
5984
5985 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
5986
5987 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
5988 nested functions.
5989 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
5990 (s390_asm_output_function_label): Adapt to new signature of
5991 s390_function_num_hotpatch_hw
5992 Optimise the code generating assembler output.
5993 Add comments to assembler file.
5994
5995 2015-03-31 Richard Biener <rguenther@suse.de>
5996
5997 PR middle-end/65626
5998 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
5999 of the noreturn call so it is last and cleanup_control_flow_bb
6000 can do the CFG part.
6001
6002 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
6003
6004 PR target/65531
6005 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
6006 same_comdat_group for external symbols.
6007 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
6008 infinite same_comdat_group traversal loop.
6009
6010 2015-03-31 Jakub Jelinek <jakub@redhat.com>
6011
6012 PR plugins/61176
6013 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
6014 automatically to $headers.
6015
6016 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6017
6018 PR ipa/65610
6019 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
6020 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
6021 function.
6022 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
6023 Use it.
6024 * ipa-prop.c (param_type_may_change_p): Likewise.
6025 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
6026 (remove_unused_scope_block_p): Add in_ctor_dtor_block
6027 argument. Before inlining, preserve
6028 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
6029 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
6030 recursive calls.
6031 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
6032
6033 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6034
6035 PR ipa/65076
6036 * ipa-inline.c (edge_badness): Base denominator on callee's
6037 grwoth squared.
6038
6039 2015-03-27 Martin Jambor <mjambor@suse.cz>
6040
6041 PR ipa/65478
6042 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
6043 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
6044 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
6045 node_calling_single_call.
6046 * ipa-cp.c (count_callers): New function.
6047 (set_single_call_flag): Likewise.
6048 (initialize_node_lattices): Count callers and set single_flag_call if
6049 necessary.
6050 (incorporate_penalties): New function.
6051 (good_cloning_opportunity_p): Use it, dump new flags.
6052 (propagate_constants_topo): Set node_within_scc flag if appropriate.
6053 * doc/invoke.texi (ipa-cp-recursion-penalty,
6054 ipa-cp-single-call-pentalty): Document.
6055
6056 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6057
6058 PR ipa/65588
6059 * symtab.c (symtab_node::get_partitioning_class): Register vars
6060 are duplicated.
6061 * varpool.c (symbol_table::output_variables) Do not assemble unefined
6062 decls for non-symbols.
6063
6064 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
6065
6066 PR target/65248
6067 * output.h (default_binds_local_p_2): New.
6068 * varasm.c (default_binds_local_p_2): Renamed to ...
6069 (default_binds_local_p_3): This. Don't return true on protected
6070 data symbol if protected data may be external.
6071 (default_binds_local_p): Use default_binds_local_p_3.
6072 (default_binds_local_p_1): Likewise.
6073 (default_binds_local_p_2): New.
6074 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
6075 default_binds_local_p_2 if TARGET_MACHO is undefined.
6076
6077 2015-03-27 Jakub Jelinek <jakub@redhat.com>
6078
6079 PR target/65593
6080 * config/i386/i386.c (legitimize_pic_address): If base
6081 is SYMBOL_REF or LABEL_REF using %rip addressing, force
6082 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
6083
6084 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6085
6086 PR target/65531
6087 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
6088 comdat groups.
6089
6090 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
6091
6092 PR ipa/65600
6093 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
6094 of optimized out indirect call.
6095 (redirect_to_unreachable): Always build symbol table node for
6096 BUILT_IN_UNREACHABLE
6097
6098 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
6099
6100 PR target/65407
6101 * ira-costs.c (record_reg_classes): Process all constraint string
6102 containing 0-9.
6103
6104 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
6105
6106 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
6107 memory_operand.
6108
6109 PR target/65052
6110 * config/c6x/constraints.md (S3): New constraint.
6111 * config/c6x/c6x.md (real_jump): Use it.
6112
6113 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6114
6115 PR middle-end/65595
6116 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
6117 do redirection if the call is not optimized out.
6118
6119 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
6120
6121 PR target/65495
6122 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
6123 (fchkp-check-incomplete-type): Add LTO.
6124 (fchkp-zero-input-bounds-for-main): Likewise.
6125 (fchkp-first-field-has-own-bounds): Likewise.
6126 (fchkp-narrow-bounds): Likewise.
6127 (fchkp-narrow-to-innermost-array): Likewise.
6128 (fchkp-use-static-bounds): Likewise.
6129 (fchkp-use-static-const-bounds): Likewise.
6130 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6131
6132 2015-03-27 Marek Polacek <polacek@redhat.com>
6133
6134 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
6135
6136 2015-03-27 Marek Polacek <polacek@redhat.com>
6137
6138 PR sanitizer/65583
6139 * ubsan.c (ubsan_create_edge): New function.
6140 (instrument_bool_enum_load): Call it.
6141 (instrument_nonnull_arg): Likewise.
6142 (instrument_nonnull_return): Likewise.
6143 (instrument_object_size): Likewise.
6144
6145 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6146
6147 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
6148 auto_vec.
6149
6150 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6151
6152 PR lto/65536
6153 * lto-streamer.h (class lto_location_cache): New.
6154 (struct data_in): Add location_cache.
6155 (lto_input_location): Update prototype.
6156 (stream_input_location_now): New.
6157 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
6158 pointer to location.
6159 (stream_input_location): Update.
6160 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
6161 (warn_odr): Apply location cache before warning.
6162 (lto_input_location): Update prototype.
6163 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
6164 Use stream_input_location_now.
6165 * lto-streamer-in.c (lto_location_cache::current_cache): New static
6166 variable.
6167 (lto_location_cache::cmp_loc): New function.
6168 (lto_location_cache::apply_location_cache): New function.
6169 (lto_location_cache::accept_location_cache): New function.
6170 (lto_location_cache::revert_location_cache): New function.
6171 (lto_location_cache::input_location): New function.
6172 (lto_input_location): Do location caching.
6173 (stream_input_location_now): New function.
6174 (input_eh_region, input_struct_function_base): Use
6175 stream_input_location_now.
6176 (lto_data_in_create): use new.
6177 (lto_data_in_delete): Use delete.
6178 * tree-streamer-in.c (unpack_ts_block_value_fields,
6179 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
6180 lto_input_ts_exp_tree_pointers): Update for cached location api.
6181
6182 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6183
6184 PR ipa/65076
6185 * passes.def: Add pass_nothrow.
6186 * ipa-pure-const.c: (pass_data_nothrow): New.
6187 (pass_nothrow): New.
6188 (pass_nothrow::execute): New.
6189 (make_pass_nothrow): New.
6190 * tree-pass.h (make_pass_nothrow): Declare.
6191
6192 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6193
6194 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
6195 edge to change by speculation resolution or redirection.
6196 (edge_set_predicate): Likewise.
6197 (inline_summary_t::duplicate): Likewise.
6198 (remap_edge_summaries): Likewise.
6199
6200 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6201
6202 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
6203 New macros.
6204 (can_inline_edge_p): Relax option matching for always inline functions.
6205
6206 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
6207
6208 PR target/65561
6209 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
6210 Check operand 4 and operand 0 for equality.
6211 (avx512f_vextract<shuffletype>32x4_1_maskm):
6212 Check operand 6 and operand 0 for equality.
6213 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
6214 for equality.
6215 (vec_extract_hi_<mode>_maskm): Ditto.
6216
6217 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6218
6219 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
6220 dead calls back to live.
6221 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
6222 cross check to ...
6223 (cgraph_node::verify_node): ... here; verify only callee edges,
6224 not caller.
6225 * cif-code.def (CILK_SPAWN): New code.
6226
6227 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
6228
6229 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
6230 (edge_set_predicate): Use it to mark unreachable edges.
6231 (inline_summary_t::duplicate): Remove unnecesary code.
6232 (remap_edge_summaries): Likewise.
6233 (dump_inline_summary): Report contains_cilk_spawn.
6234 (compute_inline_parameters): Compute contains_cilk_spawn.
6235 (inline_read_section, inline_write_summary): Stream
6236 contains_cilk_spawn.
6237 * ipa-inline.c (can_inline_edge_p): Do not touch
6238 DECL_STRUCT_FUNCTION that may not be available;
6239 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
6240 remove check for callee_fun->can_throw_non_call_exceptions and
6241 replace it by optimization attribute check; check for flag_exceptions.
6242 * ipa-inline-transform.c (inline_call): Maintain
6243 DECL_FUNCTION_PERSONALITY
6244 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
6245
6246 2015-03-26 Jakub Jelinek <jakub@redhat.com>
6247
6248 PR tree-optimization/65551
6249 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
6250 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
6251
6252 2015-03-26 Richard Biener <rguenther@suse.de>
6253
6254 PR middle-end/65555
6255 * tree-cfg.c (verify_gimple_call): Do not require a call to
6256 have no LHS if it wasn't recognized as control altering yet.
6257
6258 2015-03-26 Jakub Jelinek <jakub@redhat.com>
6259
6260 PR tree-optimization/64715
6261 * passes.def: Add another instance of pass_object_sizes before ccp1.
6262 * tree-object-size.c (pass_object_sizes::execute): In
6263 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
6264 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
6265 __bos result and the computed constant. Remove redundant
6266 checks, obsoleted by gimple_call_builtin_p test.
6267
6268 * var-tracking.c (variable_tracking_main_1): Don't track
6269 variables for targetm.no_register_allocation targets.
6270
6271 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
6272
6273 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
6274 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
6275
6276 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
6277
6278 PR target/65569
6279 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
6280 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
6281 0.0 is correctly setup.
6282 (extenddftf2_internal): Likewise.
6283
6284 2015-03-25 Sebastian Pop <s.pop@samsung.com>
6285
6286 PR tree-optimization/65177
6287 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
6288 (bb_in_bbs): New.
6289 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
6290 edges not adjacent on the path to the original code.
6291
6292 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
6293
6294 PR bootstrap/65537
6295 * doc/install.texi (Building a native compiler): Document new
6296 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
6297 configuration assumes that the host supports the linker plugin.
6298
6299 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
6300
6301 PR target/65508
6302 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
6303 chain for generated call.
6304
6305 2015-03-25 Richard Biener <rguenther@suse.de>
6306
6307 * passes.c (pass_manager::execute_early_local_passes): Guard
6308 execution of pass_chkp_instrumentation_passes with
6309 flag_check_pointer_bounds.
6310 (pass_chkp_instrumentation_passes::gate): Likewise.
6311
6312 2015-03-25 Martin Liska <mliska@suse.cz>
6313
6314 PR tree-optimization/65538
6315 * symbol-summary.h (function_summary::~function_summary):
6316 Relese memory for allocated summaries.
6317 (function_summary::release): New function.
6318
6319 2015-03-25 Jakub Jelinek <jakub@redhat.com>
6320
6321 PR lto/65515
6322 * lto-streamer-out.c (DFS::worklist): New struct.
6323 (DFS::worklist_vec): New data member.
6324 (DFS::next_dfs_num): Remove.
6325 (DFS::DFS): Rewritten using worklist instead of recursion,
6326 using most of code from DFS::DFS_write_tree.
6327 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
6328 pass it to DFS_write_tree calls.
6329 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
6330 quick initial checks push it into worklist_vec and return.
6331
6332 2015-03-25 Richard Biener <rguenther@suse.de>
6333
6334 PR middle-end/65519
6335 * genmatch.c (expr::gen_transform): Re-write to avoid
6336 using gimple_build.
6337
6338 2015-03-25 Bin Cheng <bin.cheng@arm.com>
6339
6340 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
6341
6342 2015-03-25 Bin Cheng <bin.cheng@arm.com>
6343
6344 * config/arm/arm.opt (print_tune_info): New option.
6345 * config/arm/arm.c (arm_print_tune_info): New function.
6346 (arm_file_start): Call arm_print_tune_info.
6347 * config/arm/arm-protos.h (struct tune_params): Add comment.
6348 * doc/invoke.texi (@item -mprint-tune-info): New item.
6349 (-mtune): mention it in ARM Option Summary.
6350
6351 2015-03-25 DJ Delorie <dj@redhat.com>
6352
6353 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
6354 correct clause.
6355
6356 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
6357 Martin Liska <mliska@suse.cz>
6358
6359 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
6360 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
6361 (sem_item::add_type): New function.
6362 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
6363 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
6364 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
6365 (sem_function::equals_wpa): Fix typo.
6366 * ipa-icf.h (sem_item::add_type): New function.
6367 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
6368 order.
6369
6370 2015-03-24 Jakub Jelinek <jakub@redhat.com>
6371
6372 PR tree-optimization/65533
6373 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
6374 with swapped operands, call vect_free_slp_tree on
6375 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
6376 vector.
6377
6378 2015-03-24 Richard Biener <rguenther@suse.de>
6379
6380 PR middle-end/65517
6381 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
6382 for fixup if necessary.
6383
6384 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
6385
6386 * doc/extend.texi (Function Attributes): Add @cindex entries
6387 for all attributes and regularize their format. Delete text
6388 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
6389 information about "eightbit_data", "tiny_data", and "model"
6390 variable attributes to the Variable Attributes section. Fix
6391 some obvious typos and copy-editing issues.
6392 (Variable Attributes, Type Attributes): Likewise add/fix
6393 @cindex entries for all attributes.
6394
6395 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6396
6397 PR target/65523
6398 * tree-chkp.c (chkp_build_returned_bound): Ignore
6399 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
6400
6401 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
6402
6403 PR target/65505
6404 * config/sh/predicates.md (simple_mem_operand,
6405 displacement_mem_operand): Add test for reg.
6406 (short_displacement_mem_operand): Test for displacement_mem_operand
6407 before invoking sh_disp_addr_displacement.
6408 * config/sh/constraints.md (Sdd, Sra): Simplify.
6409 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
6410 Remove redundant displacement_mem_operand tests.
6411
6412 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
6413
6414 PR target/65296
6415 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
6416 the same -mmcu=MCU more than once.
6417
6418 2015-03-23 Jakub Jelinek <jakub@redhat.com>
6419
6420 PR bootstrap/65522
6421 * ipa-devirt.c: Remove duplicate demangle.h include.
6422
6423 PR target/65504
6424 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
6425 on the pseudo.
6426 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
6427 REG_POINTER on *destptr after adjusting it for prologue size.
6428
6429 PR ipa/65521
6430 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
6431 ultimate_alias_target ()->order ints instead of
6432 ultimate_alias_target () pointers.
6433
6434 2015-03-23 Richard Biener <rguenther@suse.de>
6435
6436 PR tree-optimization/65518
6437 * tree-vect-stmts.c (vectorizable_load): Reject single-element
6438 interleaving cases we generate absymal code for.
6439
6440 2015-03-23 Richard Biener <rguenther@suse.de>
6441
6442 PR tree-optimization/65494
6443 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
6444 matches here.
6445 (vect_analyze_slp_instance): But do that here, always and once.
6446
6447 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6448
6449 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
6450 adding T or multiplying by T+1 and subracting T.
6451
6452 2015-03-22 Jeff Law <law@redhat.com>
6453
6454 PR rtl-optimization/64317
6455 * Makefile.in (OBJS): Add gcse-common.c
6456 * gcse.c: Include gcse-common.h
6457 (struct modify_pair_s): Move structure definition to gcse-common.h
6458 (compute_transp): Move function to gcse-common.c.
6459 (canon_list_insert): Similarly.
6460 (record_last_mem_set_info): Break out some code and put it into
6461 gcse-common.c. Call into the new common code.
6462 (compute_local_properties): Pass additional arguments to compute_transp.
6463 * postreload-gcse.c: Include gcse-common.h and df.h
6464 (modify_mem_list_set, blocks_with_calls): New variables.
6465 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
6466 (get_bb_avail_insn): Pass in the expression index too.
6467 (alloc_mem): Allocate memory for the new bitmaps and lists.
6468 (free_mem): Free memory for the new bitmaps and lists.
6469 (insert_expr_in_table): Record a bitmap index for each entry we
6470 add to the table.
6471 (record_last_mem_set_info): Call into common code in gcse-common.c.
6472 (get_bb_avail_insn): If no available insn was found in the requested
6473 BB. If BB has a single predecessor, see if the expression is
6474 transparent in BB and available in that single predecessor.
6475 (compute_expr_transp): New wrapper for compute_transp.
6476 (eliminate_partially_redundant_load): Pass expression's bitmap_index
6477 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
6478 (gcse_after_reload_main): If there are elements in the hash table,
6479 then compute transparency for all the elements in the hash table.
6480 * gcse-common.h: New file.
6481 * gcse-common.c: New file.
6482
6483 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
6484
6485 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
6486 as an adjective.
6487 (System Headers): Likewise.
6488 (Ifdef): Likewise.
6489 (Traditional macros): Likewise.
6490 (Invocation): Likewise.
6491 (Option Index): Likewise.
6492 * doc/cppopts.texi (-M): Likewise.
6493 (-finput-charset): Likewise.
6494 (--help): Likewise.
6495 * doc.invoke.texi (AVR Options): Likewise.
6496 (V850 Options): Likewise.
6497
6498 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
6499
6500 PR ipa/65475
6501 * ipa-devirt.c: Include demangle.h
6502 (odr_type_d): Add field rtti_broken.
6503 (odr_subtypes_equivalent_p): Do not require name to match.
6504 (compare_virtual_tables): Fix typo; if type already has ODR violation,
6505 bypass the tests; be ready for function referneces in vtables that are
6506 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
6507 (warn_odr): Give up for nameless types.
6508 (warn_types_mismatch): Report mismatch in mangled names;
6509 report mismatch in anonymous namespaces; look into component types to
6510 give useful error; report when mismatch is dragged in from other ODR
6511 type.
6512 (odr_types_equivalent_p): Match types for being polymorphic; avoid
6513 duplicated diagnostics.
6514 (add_type_duplicate): Reorder checks so more informative ones come
6515 first; fix typo; do not output "the extra base is defined here" when
6516 we did not warn.
6517 (BINFO_N_BASE_BINFOS): Relax sanity check.
6518
6519 2015-03-22 Martin Liska <mliska@suse.cz>
6520 Jakub Jelinek <jakub@redhat.com>
6521
6522 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
6523 masks that can potentially include a builtin.
6524 (ix86_add_new_builtins): Introduce fast filter for isa values
6525 that cannot trigger builtin inclusion.
6526
6527 2015-03-22 Martin Liska <mliska@suse.cz>
6528
6529 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
6530 (sem_item::update_hash_by_local_refs): Likewise.
6531 (sem_variable::get_hash): Empty line is fixed.
6532 (sem_item_optimizer::execute): Include adding of hash references.
6533 (sem_item_optimizer::update_hash_by_addr_refs): New function.
6534 (sem_item_optimizer::build_hash_based_classes): Use local hash.
6535 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
6536 (sem_item::update_hash_by_local_refs): Likewise.
6537
6538 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6539
6540 PR ipa/65502
6541 * ipa-comdats.c (enqueue_references): Walk through thunks.
6542 (ipa_comdats): Likewise.
6543 (set_comdat_group_1): New function.
6544
6545 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6546
6547 PR ipa/65475
6548 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
6549 non-polymorphic
6550
6551 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
6552 Gerald Pfeifer <gerald@pfeifer.com>
6553
6554 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
6555
6556 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
6557 Sandra Loosemore <sandra@codesourcery.com>
6558
6559 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
6560 function parameter declaration.
6561 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
6562 Update arguments to nios2_adjust_call_address().
6563 (sibcall_internal): Rename from *sibcall.
6564 (sibcall_value_internal): Rename from *sibcall_value.
6565 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
6566 (nios2_large_got_address): Add target temp reg parameter.
6567 (nios2_got_address): Adjust call to nios2_large_got_address, add
6568 force_reg around it.
6569 (nios2_load_pic_address): Add target temp reg parameter, replace call
6570 to nios2_got_address with corresponding code.
6571 (nios2_legitimize_constant_address): Update call to
6572 nios2_load_pic_address.
6573 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
6574 to use temp reg for PIC loading purposes.
6575 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
6576 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6577 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
6578
6579 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6580
6581 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
6582 usage of "the @option{...}".
6583 (-Wopenmp-simd): Likewise.
6584 (-fsanitize-recover): Likewise.
6585 (-fsanitize-undefined-trap-on-error): Likewise.
6586 (-flto): Likewise.
6587 (tracer-dynamic-coverage-feedback): Likewise.
6588 (reorder-block-duplicate-feedback): Likewise.
6589 (loop-unroll-jam-size): Likewise.
6590 (-B): Likewise.
6591 (-I-): Likewise.
6592 (-mabs=legacy): Likewise.
6593 (-mupper-regs-df): Likewise.
6594 (-mupper-regs-sf): Likewise.
6595 (-mpointers-to-nested-functions): Likewise.
6596
6597 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6598
6599 * doc/extend.texi (Cilk Plus Builtins): Add markup.
6600
6601 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
6602
6603 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
6604 additional index entries and cross-references.
6605 (-fchkp-check-incomplete-type): Likewise.
6606 (-fchkp-first-field-has-own-bounds): Likewise.
6607 (-fchkp-narrow-to-innermost-array): Likewise.
6608 (-fchkp-use-fast-string-functions): Likewise.
6609 (-fchkp-use-nochk-string-functions): Likewise.
6610 (-fchkp-use-static-const-bounds): Likewise.
6611 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
6612 (-fchkp-instrument-marked-only): Likewise.
6613 (-fchkp-use-wrappers): Likewise.
6614 (-static-libmpx): Likewise.
6615 (-static-libmpxwrappers): Likewise.
6616 * doc/extend.texi (bnd_legacy): Likewise.
6617 (bnd_instrument): Likewise.
6618 (bnd_variable_size): Likewise.
6619 (Pointer Bounds Checker builtins): Likewise.
6620
6621 2015-03-21 Tom de Vries <tom@codesourcery.com>
6622
6623 PR tree-optimization/65458
6624 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
6625 * cgraph.h (cgraph_node): Add parallelized_function field.
6626 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
6627 (input_overwrite_node): Read parallelized_function field.
6628 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
6629 parallelized_function on cgraph_node for child_fn.
6630 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
6631 Remove include of gt-tree-parloops.h.
6632 (parallelized_functions): Remove static variable.
6633 (parallelized_function_p): Rewrite using parallelized_function field of
6634 cgraph_node.
6635 (create_loop_fn): Remove adding to parallelized_functions.
6636 * Makefile.in (GTFILES): Remove tree-parloops.c
6637
6638 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
6639
6640 PR rtl-optimization/64366
6641 * lra.c (lra_update_insn_regno_info): Consider regs in
6642 CALL_INSN_FUNCTION_USAGE memory.
6643
6644 2015-03-20 Richard Biener <rguenther@suse.de>
6645
6646 PR middle-end/64715
6647 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
6648 for type comparison and gcc_checking_assert.
6649 (chrec_fold_plus_poly_poly): Likewise.
6650 (chrec_fold_multiply_poly_poly): Likewise.
6651 (chrec_convert_1): Likewise.
6652 * gimplify.c (gimplify_expr): Remove premature folding of
6653 &X + CST to &MEM[&X, CST].
6654
6655 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
6656
6657 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
6658 already is final.
6659 (ipa_inline): Recompute inline_failed codes.
6660 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
6661 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
6662 CIF_FINAL_ERROR.
6663
6664 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
6665
6666 PR rtl-optimization/60851
6667 * recog.c (constrain_operands): Accept a pseudo register before reload
6668 for LRA enabled targets.
6669
6670 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
6671
6672 PR target/65240
6673 * config/rs6000/predicates.md (easy_fp_constant): Remove special
6674 -ffast-math handling that kept non-0 constants live in the RTL
6675 until reload. Remove logic testing the number of instructions it
6676 took to create a constant in a GPR that was never used, due to a
6677 test for soft-float earlier.
6678 (memory_fp_constant): Delete, no longer used.
6679
6680 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
6681 alternatives for loading non-0 constants into GPRs for hard
6682 floating point that is no longer needed due to changes in
6683 easy_fp_constant. Add support for loading 0.0 into GPRs.
6684 (mov<mode>_hardfloat32): Likewise.
6685 (mov<mode>_hardfloat64): Likewise.
6686 (mov<mode>_64bit_dm): Likewise.
6687 (movtd_64bit_nodm): Likewise.
6688 (pre-reload move FP constant define_split): Delete define_split,
6689 since it is no longer used.
6690 (extenddftf2_internal): Remove GHF constraints that are not valid
6691 for extenddftf2.
6692
6693 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
6694
6695 PR rtl-optimization/63491
6696 * lra-constraints.c (check_and_process_move): Use src instead of
6697 sreg. Remove some dead code.
6698
6699 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
6700
6701 PR ipa/65380
6702 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
6703 (sem_variable::merge): Likewise.
6704
6705 2015-03-19 Martin Liska <mliska@suse.cz>
6706
6707 PR ipa/65465
6708 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
6709 all fields of cgraph_thunk_info.
6710
6711 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
6712
6713 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
6714 clone instrumented thunks.
6715
6716 2015-03-19 Richard Biener <rguenther@suse.de>
6717
6718 Revert
6719 2015-03-10 Richard Biener <rguenther@suse.de>
6720
6721 PR middle-end/63155
6722 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
6723 * tree-ssa-coalesce.c: Include timevar.h.
6724 (attempt_coalesce): Handle graph being NULL.
6725 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
6726 Split out abnormal coalescing to ...
6727 (perform_abnormal_coalescing): ... this function.
6728 (coalesce_ssa_name): Perform abnormal coalescing without computing
6729 live/conflict.
6730 (verify_ssa_coalescing_worker): New function.
6731 (verify_ssa_coalescing): Likewise.
6732
6733 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
6734 Jakub Jelinek <jakub@redhat.com>
6735
6736 PR sanitizer/65400
6737 * tsan.c (instrument_gimple): Clear tail call flag on
6738 calls.
6739
6740 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6741
6742 PR sanitizer/65400
6743 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
6744 call in the return bb.
6745 (find_split_points): Add RETURN_BB argument, don't call
6746 find_return_bb.
6747 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
6748 if true append TSAN_FUNC_EXIT internal call after the call to
6749 the split off function.
6750 (execute_split_functions): Call find_return_bb here.
6751 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
6752 Adjust find_split_points and split_function calls.
6753
6754 2015-03-18 DJ Delorie <dj@redhat.com>
6755
6756 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
6757 (iorqi3_virt): Likewise.
6758
6759 2015-03-18 Tom de Vries <tom@codesourcery.com>
6760
6761 * tree-parloops.c (parallelize_loops): Make static.
6762 * tree-parloops.h (parallelize_loops): Remove extern declaration.
6763
6764 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
6765
6766 PR middle-end/64491
6767 Revert:
6768 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
6769
6770 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
6771 condition would be removed due to undefined behaviour.
6772
6773 2015-03-18 Martin Liska <mliska@suse.cz>
6774
6775 PR ipa/65432
6776 * cgraph.c (cgraph_node::get_create): Remove unnecessary
6777 xstrdup_for_dump wrapper.
6778 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
6779 sem_item::name.
6780 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
6781 with xstrdup_for_dump.
6782 (sem_variable::equals): Likewise.
6783 (sem_item_optimizer::read_section): Use symtab_node::name instead of
6784 sem_item::name.
6785 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
6786 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
6787 symtab_node::asm_name with xstrdup_for_dump.
6788 (congruence_class::dump): Use symtab_node::name instead of
6789 sem_item::name.
6790 * ipa-icf.h (symtab_node::name): Remove.
6791 (symtab_node::asm_name): Likewise.
6792
6793 2015-03-18 Jakub Jelinek <jakub@redhat.com>
6794
6795 PR tree-optimization/65450
6796 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
6797 function.
6798 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
6799 it instead of duplicate_ssa_name_ptr_info.
6800
6801 PR target/65222
6802 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
6803
6804 2015-03-18 Richard Biener <rguenther@suse.de>
6805
6806 * tree-data-ref.h (struct access_matrix): Remove.
6807 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6808 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6809 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
6810 (am_vector_index_for_loop): Likewise.
6811 (struct data_reference): Remove access_matrix member.
6812 (DR_ACCESS_MATRIX): Remove.
6813 (lambda_vector_new): Add comment.
6814 (lambda_matrix_new): Use XOBNEWVEC.
6815
6816 2015-03-18 Richard Biener <rguenther@suse.de>
6817
6818 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
6819 (pass_ch::execute): Cleanup the CFG only if we did sth.
6820 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
6821
6822 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6823
6824 * expmed.c (synth_mult): Use std::swap instead of manually
6825 swapping algorithms.
6826
6827 2015-03-18 Jakub Jelinek <jakub@redhat.com>
6828
6829 PR target/65078
6830 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
6831
6832 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
6833
6834 PR target/65296
6835 * config/avr/avr.opt (-nodevicelib): New option.
6836 * doc/invoke.texi (AVR Options): Document it.
6837 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
6838 libgcc.a, libc.a, libm.a.
6839 * config/avr/specs.h: Same.
6840 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
6841 which don't (directly) depend on the device. Print more help.
6842 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
6843 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
6844 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
6845 case of an error.
6846 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
6847 for specs file name.
6848 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
6849 * config/avr/avr-mcus.def: Adjust initializers and comments.
6850
6851 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
6852
6853 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
6854 DECL_ONE_ONLY to check if decl is one only.
6855 * ipa-split.c (consider_split): Limit splitt of one only functions.
6856
6857 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6858
6859 PR tree-optimization/65427
6860 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
6861 functions.
6862 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
6863
6864 2015-03-16 Marek Polacek <polacek@redhat.com>
6865
6866 * cgraph.h (add_new_static_var): Remove declaration.
6867 * varpool.c (add_new_static_var): Remove function.
6868
6869 2015-03-16 Jakub Jelinek <jakub@redhat.com>
6870
6871 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
6872 instead of vec<tree> * with vec_alloc and release for args.
6873 Adjust all users.
6874
6875 PR middle-end/65431
6876 * omp-low.c (delete_omp_context): Only splay_tree_delete
6877 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
6878 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
6879
6880 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
6881
6882 PR sanitizer/64820
6883 * cfgexpand.c (align_base): New function.
6884 (alloc_stack_frame_space): Call it.
6885 (expand_stack_vars): Align prev_frame to be sure
6886 data->asan_vec elements aligned properly.
6887
6888 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
6889
6890 PR middle-end/65409
6891 * expr.c (store_field): Do not do a direct block copy if the source is
6892 a PARALLEL with BLKmode.
6893
6894 2015-03-16 Tom de Vries <tom@codesourcery.com>
6895
6896 PR middle-end/65414
6897 Revert:
6898 2015-03-12 Tom de Vries <tom@codesourcery.com>
6899
6900 PR rtl-optimization/64895
6901 * lra-lives.c (check_pseudos_live_through_calls): Use
6902 actual_call_used_reg_set instead of call_used_reg_set, if available.
6903
6904 2015-03-16 Alan Modra <amodra@gmail.com>
6905
6906 PR target/63150
6907 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
6908 Modify Z->r bswapdi splitter to use dest in place of scratch.
6909 In r->Z and Z->r bswapdi splitter rename word_high, word_low
6910 to word1, word2 and rearrange logic to suit.
6911 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
6912 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
6913 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
6914 Add one '?' on r->r. Modify Z->r splitter to avoid need for
6915 early clobber.
6916
6917 2015-03-14 Jakub Jelinek <jakub@redhat.com>
6918
6919 PR tree-optimization/65369
6920 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
6921 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
6922 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
6923
6924 PR tree-optimization/65418
6925 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
6926 are casts in the first PLUS_EXPR operand, ensure tbias and
6927 *totallowp are in the inner type.
6928
6929 PR rtl-optimization/65401
6930 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
6931 argument. If true, adjust_address_nv of x with big-endian
6932 correction for the mode widening to GET_MODE (y).
6933 (make_field_assignment): Don't do MEM mode widening here.
6934 Use MEM_P instead of GET_CODE == MEM.
6935
6936 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6937
6938 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
6939 the external decls.
6940
6941 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6942
6943 PR target/64600
6944 * config/arm/arm.c (arm_gen_constant, AND case): Use
6945 ARM_SIGN_EXTEND when constructing AND mask.
6946
6947 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
6948
6949 * graph.c (print_graph_cfg): Make function names visible and append
6950 parenthesis to it. Also make groups of basic blocks belonging to the
6951 same function visible.
6952
6953 2015-03-12 Richard Biener <rguenther@suse.de>
6954
6955 PR middle-end/44563
6956 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
6957 to avoid quadratic behavior with inline expansion splitting blocks.
6958 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
6959 with the successor if the predecessor will be merged with it.
6960 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
6961 entry block with its successor.
6962
6963 2015-03-13 Richard Biener <rguenther@suse.de>
6964
6965 PR middle-end/44563
6966 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
6967 (cleanup_tree_cfg_1): Do not call it.
6968 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
6969 (fixup_noreturn_call): Mark the stmt as control altering.
6970 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
6971 here.
6972 (pass_data_fixup_cfg): Produce a dump file.
6973 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
6974 (need_noreturn_fixup): New global.
6975 (pass_dominator::execute): Fixup queued noreturn calls.
6976 (optimize_stmt): Queue calls that became noreturn for fixup.
6977 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
6978 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
6979 (el_to_fixup): New global.
6980 (eliminate_dom_walker::before_dom_childre): Queue calls that
6981 became noreturn for fixup.
6982 (eliminate): Fixup queued noreturn calls.
6983 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
6984 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
6985 (substitute_and_fold_dom_walker::before_dom_children): Queue
6986 alls that became noreturn for fixup.
6987 (substitute_and_fold): Fixup queued noreturn calls.
6988
6989 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
6990
6991 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
6992 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
6993 are building; for methods check ODR type of class they belong to if
6994 they may lead to a polymorphic call.
6995 (sem_function::compare_polymorphic_p): Be bit smarter about testing
6996 when function may lead to a polymorphic call.
6997 (sem_function::compare_type_list): Remove.
6998 (sem_variable::equals): Update use of compatible_types_p.
6999 (sem_variable::parse_tree_refs): Remove.
7000 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
7001 cdtor.
7002 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
7003 matching here.
7004 (func_checker::compatible_polymorphic_types_p): Break out from ...
7005 (unc_checker::compatible_types_p): ... here.
7006 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
7007 Declare.
7008 (unc_checker::compatible_types_p): Update.
7009 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
7010 Remove.
7011
7012 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7013
7014 PR rtl-optimization/65235
7015 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
7016 When first element of vec_concat is const_int, calculate its size
7017 using second element.
7018
7019 2015-03-12 Richard Biener <rguenther@suse.de>
7020
7021 PR middle-end/65270
7022 * fold-const.c (operand_equal_p): Fix ordering of resetting
7023 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
7024
7025 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
7026
7027 * config/s390/s390.c (s390_reorg): Move code to output nops after label
7028 to s390_reorg ().
7029 (s390_asm_output_function_label): Likewise.
7030 * config/s390/s390.c (s390_asm_output_function_label):
7031 Fix function label alignment with -mhtopatch.
7032 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
7033 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
7034 ("nop_2_byte"): New define_insn.
7035 ("nop_4_byte"): Likewise.
7036 ("nop_6_byte"): Likewise.
7037 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
7038 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
7039
7040 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
7041
7042 PR target/65103
7043 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
7044 register.
7045
7046 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
7047
7048 PR target/65044
7049 * toplev.c (process_options): Restrict Pointer Bounds Checker
7050 usage with Address Sanitizer.
7051
7052 2015-03-12 Richard Biener <rguenther@suse.de>
7053
7054 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
7055 to split on.
7056 * omp-low.c (expand_omp_taskreg): Split block before removing
7057 the stmt.
7058 (expand_omp_target): Likewise.
7059 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
7060 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
7061 stmt to split_block.
7062
7063 2015-03-12 Tom de Vries <tom@codesourcery.com>
7064
7065 PR rtl-optimization/64895
7066 * lra-lives.c (check_pseudos_live_through_calls): Use
7067 actual_call_used_reg_set instead of call_used_reg_set, if available.
7068
7069 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7070
7071 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
7072 (cgraph_node::remove): Likewise.
7073 (cgraph_node::get_untransformed_body): Likewise.
7074 * varpool.c (varpool_node::remove): Likewise.
7075 (varpool_node::get_constructor): Add sanity check.
7076
7077 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
7078
7079 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
7080 old GCC versions.
7081 (-fabi-compat-version): Likewise.
7082 (-ffriend-injection): Likewise.
7083 (-Wdeclaration-after-statement): Likewise.
7084 (-fomit-frame-pointer): Likewise.
7085 (-ftree-coalesce-inlined-vars): Likewise.
7086 (-fvisibility=): Likewise.
7087 * doc/extend.texi (Typeof): Likewise.
7088 (Zero Length): Likewise.
7089 (Escaped Newlines): Likewise.
7090 (Compound Literals): Likewise.
7091 (Function Attributes): Likewise.
7092 (Label Attributes): Likewise.
7093 (Type Attributes): Likewise.
7094 (Function Names): Likewise.
7095 (Other Builtins): Likewise.
7096 (Function Specific Option Pragmas): Likewise.
7097 (C++ Interface): Likewise.
7098
7099 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
7100
7101 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
7102
7103 2015-03-11 Marek Polacek <polacek@redhat.com>
7104
7105 PR tree-optimization/65388
7106 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
7107
7108 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
7109
7110 PR target/65296
7111 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
7112 * configure: Regenerate.
7113 * config.in: Regenerate.
7114 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
7115 [-mn-flash]: Document it.
7116 [__AVR_ARCH__]: Document avrtiny.
7117
7118 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
7119 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
7120 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
7121
7122 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7123
7124 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
7125
7126 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7127
7128 PR target/65242
7129 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
7130 allow reloads of PLUS in floating point/VSX registers.
7131
7132 2015-03-11 Junmo Park <junmoz.park@samsung.com>
7133
7134 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
7135 crypto_sha256_fast.
7136 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
7137
7138 2015-03-11 Richard Biener <rguenther@suse.de>
7139
7140 PR tree-optimization/65310
7141 * tree-sra.c (build_ref_for_offset): Also preserve larger
7142 alignment.
7143
7144 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
7145
7146 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
7147
7148 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7149
7150 PR target/65368
7151 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
7152 new define_expand.
7153 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
7154
7155 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7156
7157 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
7158 (sem_function::equals_wpa): ... here.
7159
7160 2015-03-10 Marek Polacek <polacek@redhat.com>
7161 Jakub Jelinek <jakub@redhat.com>
7162
7163 PR sanitizer/65367
7164 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
7165 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
7166 separately.
7167
7168 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7169
7170 PR target/65286
7171 * config/rs6000/t-linux: For powerpc64* target set
7172 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
7173
7174 2015-03-10 Richard Biener <rguenther@suse.de>
7175
7176 PR middle-end/44563
7177 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
7178 for redirect_all_calls.
7179
7180 2015-03-10 Marek Polacek <polacek@redhat.com>
7181
7182 * gdbinit.in (pcfun): Define and document.
7183
7184 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
7185
7186 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
7187 of libgomp-plugin.h.
7188 (find_target_compiler): Support a case when the path to gcc is
7189 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
7190 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
7191 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
7192 libgomp-plugin.h.
7193 (main): Use GCC_INSTALL_NAME as target_driver_name.
7194 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
7195 define.
7196 (mkoffload.o): Remove obsolete include path and defines.
7197 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
7198
7199 2015-03-10 Richard Biener <rguenther@suse.de>
7200
7201 PR middle-end/63155
7202 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
7203 * tree-ssa-coalesce.c: Include timevar.h.
7204 (attempt_coalesce): Handle graph being NULL.
7205 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
7206 Split out abnormal coalescing to ...
7207 (perform_abnormal_coalescing): ... this function.
7208 (coalesce_ssa_name): Perform abnormal coalescing without computing
7209 live/conflict.
7210 (verify_ssa_coalescing_worker): New function.
7211 (verify_ssa_coalescing): Likewise.
7212
7213 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
7214
7215 PR target/65296
7216 * config.gcc (extra_options) [avr]: Remove.
7217 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
7218 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
7219 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
7220
7221 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
7222 (-mmcu=): Add Var and MissingArgError properties.
7223 (-march=): Remove.
7224 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
7225 * config/avr/t-multilib: Regenerate.
7226 * config/avr/specs.h: New file.
7227 * config/avr/driver-avr.c: New file.
7228 * config/avr/genopt.sh: Remove file.
7229 * config/avr/avr-tables.opt: Remove file.
7230 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
7231 * config/avr/avr-c.c: Same.
7232 * avr-arch.h: Same.
7233 (avr_current_device): Remove proto.
7234 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
7235 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
7236 (EXTRA_SPEC_FUNCTIONS): Define.
7237 (avr_devicespecs_file): New specs function proto.
7238 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
7239 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
7240 (avr_current_device): Remove definition and usage.
7241 (avr_set_core_architecture): New static function.
7242 (avr_option_override): Use it.
7243 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
7244 (mcu_name): New static array.
7245 (comparator, avr_archs_str, avr_mcus_str): New static functions.
7246 (avr_inform_devices, avr_inform_core_architectures): New functions.
7247 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
7248 (avrlibc.h) [WITH_AVRLIBC]: Include.
7249 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
7250 (print_mcu): Rewrite from scratch.
7251 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
7252 Forward to avr-specific specs defined in device-specs file.
7253 * config/avr/t-avr (driver-avr.o): New rule.
7254 (avr-devices.o): Depend on avr-arch.h.
7255 (avr-mcus): No more depend on avr-tables.opt.
7256 (avr-tables.opt): Remove rule.
7257 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
7258
7259 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7260
7261 * c-family/c.opt (fchkp-use-wrappers): New.
7262 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
7263 (chkp_wrap_function): New.
7264 (chkp_build_instrumented_fndecl): Support wrapped
7265 functions.
7266 * doc/invoke.texi (-fcheck-pointer-bounds): New.
7267 (-fchkp-check-incomplete-type): New.
7268 (-fchkp-first-field-has-own-bounds): New.
7269 (-fchkp-narrow-bounds): New.
7270 (-fchkp-narrow-to-innermost-array): New.
7271 (-fchkp-optimize): New.
7272 (-fchkp-use-fast-string-functions): New.
7273 (-fchkp-use-nochk-string-functions): New.
7274 (-fchkp-use-static-bounds): New.
7275 (-fchkp-use-static-const-bounds): New.
7276 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
7277 (-fchkp-check-read): New.
7278 (-fchkp-check-write): New.
7279 (-fchkp-store-bounds): New.
7280 (-fchkp-instrument-calls): New.
7281 (-fchkp-instrument-marked-only): New.
7282 (-fchkp-use-wrappers): New.
7283 (-static-libmpx): New.
7284 (-static-libmpxwrappers): New.
7285
7286 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7287
7288 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
7289 (CHKP_SPEC): Add wrappers library.
7290 * c-family/c.opt (static-libmpxwrappers): New.
7291
7292 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
7293
7294 * config/i386/linux-common.h (LIBMPX_LIBS): New.
7295 (LIBMPX_SPEC): New.
7296 (CHKP_SPEC): New.
7297 * gcc.c (CHKP_SPEC): New.
7298 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
7299 * c-family/c.opt (static-libmpx): New.
7300
7301 2015-03-10 Richard Biener <rguenther@suse.de>
7302
7303 PR middle-end/44563
7304 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
7305 for compare_type.
7306 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
7307 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
7308 (cgraph_add_edge_to_call_site_hash): Likewise.
7309 (cgraph_node::get_edge): Likewise.
7310 (cgraph_edge::set_call_stmt): Likewise.
7311 (cgraph_edge::remove_caller): Likewise.
7312
7313 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
7314
7315 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
7316 (callee_saved_gpr_regs_size): ... this.
7317 (callee_saved_regs_first_regno): Rename to ...
7318 (callee_saved_first_gpr_regno): ... this.
7319 (callee_saved_regs_last_regno) Rename to ...
7320 (callee_saved_last_gpr_regno): ... this.
7321 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
7322 variables.
7323 (nds32_initial_elimination_offset): Likewise.
7324 (nds32_expand_prologue): Likewise.
7325 (nds32_expand_epilogue): Likewise.
7326 (nds32_expand_prologue_v3push): Likewise.
7327 (nds32_expand_epilogue_v3pop): Likewise.
7328 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7329 Adjust renamed variables.
7330 (nds32_output_stack_pop): Likewise.
7331
7332 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
7333
7334 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
7335 code in comment.
7336
7337 2015-03-10 Jakub Jelinek <jakub@redhat.com>
7338
7339 PR rtl-optimization/65321
7340 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
7341 than shift mode.
7342 * var-tracking.c (use_narrower_mode): Likewise.
7343
7344 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
7345
7346 PR tree-optimization/65355
7347 * varasm.c (notice_global_symbol): Do not produce RTL.
7348 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
7349 anchor.
7350 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
7351 check for section anchors.
7352
7353 2015-03-10 Alan Modra <amodra@gmail.com>
7354
7355 PR target/65286
7356 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
7357 to be single-arch by default. Set cpu_is_64bit for powerpc64
7358 given --with-cpu=native.
7359 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
7360 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
7361 and powerpc64le.
7362 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
7363 rs6000_isa_flags rather than TARGET_64BIT.
7364
7365 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
7366 Kaz Kojima <kkojima@gcc.gnu.org>
7367
7368 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
7369
7370 2015-03-09 Jakub Jelinek <jakub@redhat.com>
7371
7372 PR lto/65361
7373 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
7374 on a TREE_BINFO, instead use BINFO_TYPE.
7375
7376 2015-03-09 Richard Biener <rguenther@suse.de>
7377
7378 PR middle-end/65270
7379 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
7380 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
7381 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
7382 of that. When comparing dereferences compare alignment.
7383 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
7384
7385 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
7386
7387 * ipa-inline-analysis.c (check_callers): Check
7388 node->can_remove_if_no_direct_calls_and_refs_p.
7389 (growth_likely_positive): Reorganize to call
7390 can_remove_if_no_direct_calls_p later.
7391 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
7392 will_be_removed_from_program_if_no_direct_calls_p): Add
7393 will_inline parameter.
7394 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
7395 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7396 Handle inliner case correctly.
7397
7398 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
7399
7400 PR tree-optimization/63743
7401 * cfgexpand.c (reorder_operands): Also reorder if only second operand
7402 had its definition forwarded by TER.
7403
7404 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
7405
7406 PR lto/65316
7407 * ipa-utils.h (types_odr_comparable): Add strict argument.
7408 * ipa-devirt.c: Fix whitespace;
7409 (odr_hasher): Remove.
7410 (odr_name_hasher, odr_vtable_hasher): New hashers.
7411 (can_be_name_hashed_p): New predicate.
7412 (hash_type_name): remove.
7413 (hash_odr_name): New.
7414 (odr_name_hasher::hash): new.
7415 (can_be_vtable_hashed_p): New.
7416 (hash_odr_vtable): New.
7417 (odr_vtable_hasher::hash): New.
7418 (types_same_for_odr): Add strict parameter.
7419 (types_odr_comparable): Likewise.
7420 (odr_name_hasher::equal): New.
7421 (odr_vtable_hasher::equal): New.
7422 (odr_name_hasher::remove): New.
7423 (odr_hash_type): Change to hash_table<odr_name_hasher>.
7424 (odr_vtable_hash_type): New.
7425 (odr_vtable_hash): New.
7426 (odr_subtypes_equivalent_p): Do strict comparsion.
7427 (add_type_duplicate): Merge type names; cleanup; avoid type
7428 duplicates.
7429 (register_odr_type): Initialize vtable hash.
7430 (build_type_inheritance_graph): Likewise
7431 (get_odr_type): Reorg to use two hashes.
7432 (dump_possible_polymorphic_call_targets): Move sanity check after debug
7433 output.
7434 (ipa_devirt): Dump type_inheritance_graph.
7435 (types_same_for_odr): Add strict mode.
7436
7437 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7438
7439 PR ipa/65334
7440 * cgraph.h (symtab_node): Add definition_alignment,
7441 can_increase_alignment_p and increase_alignment.
7442 * symtab.c (symtab_node::can_increase_alignment_p,
7443 increase_alignment_1, symtab_node::increase_alignment,
7444 symtab_node::definition_alignment): New.
7445 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
7446 can_increase_alignment_p.
7447 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
7448 * tree-vect-stmts.c (ensure_base_align): Likewise.
7449 * varasm.c (function_section_1): Use definition_alignment.
7450 (assemble_start_function): Likewise.
7451 (emit_local): likewise.
7452 (build_constant_desc): Likewsie.
7453 (output_constant_def_contents): Likewise.
7454 (place_block_symbol): Likewise.
7455 (output_object_block): Likewise.
7456
7457 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7458
7459 PR ipa/65316
7460 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
7461 when outputting debug.
7462
7463 2015-03-07 Marek Polacek <polacek@redhat.com>
7464 Martin Uecker <uecker@eecs.berkeley.edu>
7465
7466 PR sanitizer/65280
7467 * doc/invoke.texi: Update description of -fsanitize=bounds.
7468
7469 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
7470
7471 * tree-ssa-phiopt.c (neg_replacement): Remove.
7472 (tree_ssa_phiopt_worker): Remove negate optimization.
7473
7474 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7475
7476 PR ipa/65302
7477 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
7478
7479 2015-03-06 Richard Biener <rguenther@suse.de>
7480
7481 PR middle-end/64928
7482 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
7483 and liveout_obstack members.
7484 (calculate_live_on_exit): Remove.
7485 (calculate_live_ranges): Change declaration.
7486 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
7487 (new_tree_live_info): Adjust.
7488 (calculate_live_ranges): Delete livein when not wanted.
7489 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
7490 Deal with partly deleted live info.
7491 (loe_visit_block): Remove temporary bitmap by using
7492 bitmap_ior_and_compl_into.
7493 (live_worklist): Adjust accordingly.
7494 (calculate_live_on_exit): Make static.
7495 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
7496 we do not need livein.
7497
7498 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
7499
7500 * real.c (real_from_string): Fix typo in assertion.
7501
7502 2015-03-06 Alex Velenko <alex.velenko@arm.com>
7503
7504 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
7505 the patch.
7506
7507 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
7508
7509 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
7510
7511 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
7512
7513 PR target/64342
7514 * lra-assigns.c (find_hard_regno_for): Rename to
7515 find_hard_regno_for_1. Add a new parameter.
7516 (find_hard_regno_for): New function using find_hard_regno_for_1.
7517
7518 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
7519
7520 PR rtl-optimization/65067
7521 * expmed.c (store_bit_field, extract_bit_field): Reworked the
7522 strict volatile bitfield handling.
7523
7524 2015-03-05 Martin Liska <mliska@suse.cz>
7525
7526 PR ipa/65318
7527 * ipa-icf.c (sem_variable::equals): Compare variables types.
7528
7529 2015-03-05 Richard Henderson <rth@redhat.com>
7530
7531 PR target/65121
7532 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
7533 correctly check weak symbol binding.
7534
7535 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
7536
7537 PR middle-end/65315
7538 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
7539 needed alignment.
7540
7541 2015-03-05 Martin Liska <mliska@suse.cz>
7542
7543 * ipa-inline.c (inline_small_functions): Set default value to
7544 prevent warning during bootstrap.
7545 * tree.h: Add pragma guard that ignores false positives during
7546 bootstrap.
7547
7548 2015-03-05 Richard Biener <rguenther@suse.de>
7549
7550 PR tree-optimization/65310
7551 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7552 Properly preserve alignment of the base of the access.
7553
7554 2015-03-05 Richard Biener <rguenther@suse.de>
7555
7556 PR ipa/65270
7557 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
7558 Compare dependence info.
7559
7560 2015-03-05 Richard Biener <rguenther@suse.de>
7561
7562 PR middle-end/65233
7563 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
7564 tree-into-ssa.h.
7565 (walk_ssa_copies): Revert last chage. Instead do not walk
7566 SSA names registered for SSA update.
7567
7568 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7569
7570 PR ipa/65270
7571 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
7572 vtable references for their containing type.
7573 (sem_function::equals_wpa): Compare TYPE_RESTRICT
7574 and type attributes.
7575
7576 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
7577
7578 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
7579 before negating it.
7580 * stor-layout.c (finalize_record_size): Revert latest change.
7581
7582 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
7583
7584 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
7585
7586 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7587
7588 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
7589 for correct comdat handling.
7590 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
7591 Likewise.
7592 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
7593 (used_from_object_file_p_worker): Remove.
7594 (cgraph_node::only_called_directly_or_alised): Add
7595 used_from_object_file_p.
7596 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
7597 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
7598 can_remove_if_no_direct_calls_and_refs_p.
7599
7600 2015-03-04 Nick Clifton <nickc@redhat.com>
7601
7602 * config/rl78/rl78.h (enum reg_class): Remove real registers from
7603 General register class.
7604 * config/rl78/rl78-real.md: Replace general register constraints
7605 with real+virtual register constraints.
7606
7607 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7608
7609 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
7610 from checking for -mhtm option.
7611
7612 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
7613
7614 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
7615 (struct ipa_sra_check_caller_data): Add has_thunk field.
7616 (ipa_sra_check_caller): Check for thunk.
7617 (ipa_sra_preliminary_function_checks): Give up on function with
7618 thunks.
7619 (ipa_early_sra): Use call_for_symbol_and_aliases.
7620
7621 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
7622
7623 PR target/65249
7624 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
7625 called for __stack_chk_guard symbol.
7626
7627 2015-03-03 DJ Delorie <dj@redhat.com>
7628
7629 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
7630 inc/dec.
7631 (*addhi3_real): Likewise.
7632 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
7633 pattern to match incrementing memory.
7634 * config/rl78/predicates.md (rl78_1_2_operand): New.
7635 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
7636 it's the same and only mem.
7637 (rl78_alloc_physical_registers_op2): If there's effectively only
7638 one MEM, transcode it into HL.
7639 (rl78_far_p): Reject addresses that aren't legitimate.
7640
7641 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
7642
7643 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
7644 negating it.
7645
7646 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
7647
7648 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
7649
7650 Implement call0 ABI for xtensa
7651 * config/xtensa/constraints.md ("a" constraint): Include stack
7652 pointer in case of call0 ABI.
7653 ("q" constraint): Make empty in case of call0 ABI.
7654 ("D" constraint): Include stack pointer in case of call0 ABI.
7655 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
7656 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
7657 prototypes.
7658 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
7659 variable.
7660 (xtensa_regno_to_class): Make it a local variable in the
7661 function xtensa_regno_to_class.
7662 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
7663 macro, function prototype and implementation.
7664 (reg_nonleaf_alloc_order): Make it a local variable in the
7665 function order_regs_for_local_alloc.
7666 (xtensa_conditional_register_usage): New function.
7667 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
7668 (xtensa_valid_move): Allow direct moves to stack pointer
7669 register in call0 ABI.
7670 (xtensa_setup_frame_addresses): Only spill register windows in
7671 windowed ABI.
7672 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
7673 call0 ABI respectively.
7674 (xtensa_function_arg_1): Only mark a7 register for copying in
7675 windowed ABI.
7676 (xtensa_call_save_reg): New function.
7677 (compute_frame_size): Add space for callee saved register
7678 storage to the frame size in call0 ABI.
7679 (xtensa_expand_prologue): Generate code to set up stack frame
7680 and save callee-saved registers in call0 ABI.
7681 (xtensa_expand_epilogue): New function.
7682 (xtensa_set_return_address): New function.
7683 (xtensa_return_addr): Calculate return address in call0 ABI.
7684 (xtensa_builtin_saveregs): Only mark a7 register for copying and
7685 emit copying code in windowed ABI.
7686 (order_regs_for_local_alloc): Add preferred register allocation
7687 order for non-leaf function in call0 ABI.
7688 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
7689 (xtensa_asm_trampoline_template): Add trampoline generation for
7690 call0 ABI.
7691 (xtensa_trampoline_init): Add trampoline initialization for
7692 call0 ABI.
7693 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
7694 functions.
7695 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
7696 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
7697 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
7698 ABI call-used registers.
7699 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
7700 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
7701 call0 ABI.
7702 (REG_CLASS_CONTENTS): Include all registers into the preferred
7703 reload registers set, adjust the set in the
7704 xtensa_conditional_register_usage.
7705 (xtensa_regno_to_class): Drop variable declaration.
7706 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
7707 function.
7708 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
7709 respectively.
7710 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
7711 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
7712 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
7713 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
7714 location in call0 ABI.
7715 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
7716 stack adjustment size when handling exception.
7717 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
7718 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
7719 definitions.
7720 ("return" pattern): Generate ret.n/ret in call0 ABI.
7721 ("epilogue" pattern): Expand epilogue.
7722 ("nonlocal_goto" pattern): Use default in call0 ABI.
7723 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
7724 emit eh_set_a0_* depending on ABI.
7725 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
7726 ("eh_set_a0_call0", "blockage"): New patterns.
7727
7728 2015-03-03 Martin Liska <mliska@suse.cz>
7729
7730 PR ipa/65287
7731 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
7732
7733 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
7734
7735 PR 65138/target
7736 * config/rs6000/rs6000-tables.opt: Regenerate table.
7737
7738 2015-03-03 Renlin Li <renlin.li@arm.com>
7739
7740 * doc/md.texi (@item ^): Change ? into ^.
7741
7742 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
7743
7744 * doc/tm.texi: Regenerated.
7745
7746 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
7747
7748 * builtins.c (expand_builtin_return_addr): Add
7749 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
7750 surrounding #ifdef.
7751 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
7752 definition to 1.
7753 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
7754 Likewise.
7755 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
7756 undefined.
7757 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
7758 paragraph.
7759
7760 2015-03-03 Martin Jambor <mjambor@suse.cz>
7761 Eric Botcazou <ebotcazou@adacore.com>
7762
7763 * tree-sra.c (ipa_sra_check_caller_data): New type.
7764 (has_caller_p): Removed.
7765 (ipa_sra_check_caller): New function.
7766 (ipa_sra_preliminary_function_checks): Use it.
7767
7768 2015-03-03 Martin Liska <mliska@suse.cz>
7769
7770 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
7771 instead of if branch.
7772
7773 2015-03-03 Martin Liska <mliska@suse.cz>
7774
7775 PR ipa/65282
7776 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
7777
7778 2015-03-23 Jeff Law <law@redhat.com>
7779
7780 PR tree-optimization/65241
7781 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
7782 hash table if INSERT is true.
7783
7784 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7785
7786 PR target/65296
7787 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
7788
7789 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7790
7791 PR target/64331
7792 * config/avr/avr.c (context.h, tree-pass.h): Include them.
7793 (avr_pass_data_recompute_notes): New static variable.
7794 (avr_pass_recompute_notes): New class.
7795 (avr_register_passes): New static function.
7796 (avr_option_override): Call it.
7797
7798 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
7799
7800 Fix various problems with specs file generation.
7801
7802 PR target/65296
7803 * config.gcc (extra_gcc_objs) [avr]: Remove.
7804 * config/avr/driver-avr.c: Remove file.
7805 * config/avr/t-avr (driver-avr.o): Remove rule.
7806 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
7807 INCLUDES to build. Depend on TM_H.
7808 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
7809 build warnings. Fix non-matching types and non-existing %-codes.
7810 (tm.h): Include.
7811 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
7812 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
7813 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
7814 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
7815 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
7816 (LIBGCC_SPEC): Remove definitions.
7817
7818 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
7819
7820 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
7821 to create a register in testing mode.
7822
7823 2015-03-03 Martin Liska <mliska@suse.cz>
7824 Jan Hubicka <hubicka@ucw.cz>
7825
7826 PR ipa/65263
7827 * cgraph.c (cgraph_node::has_thunk_p): New function.
7828 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
7829 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
7830 (sem_function::merge): Assert is changed.
7831
7832 2015-03-03 Martin Liska <mliska@suse.cz>
7833 Martin Jambor <mjambor@suse.cz>
7834
7835 PR ipa/65087
7836 * ipa-icf.c (sem_item_optimizer::execute): Change function
7837 return value to boolean.
7838 (sem_item_optimizer::merge_classes): Likewise.
7839 (ipa_icf_driver): Return TODO_remove_functions in case there's
7840 a merge operation processed.
7841 * ipa-icf.h: Change function return value to boolean.
7842
7843 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
7844
7845 PR 65138/target
7846 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
7847 processor type for 64-bit little endian PowerPC.
7848
7849 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7850 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
7851 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
7852 printing built-in mask so it does not pass NULL pointers.
7853
7854 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
7855 -mcpu=powerpc64le.
7856
7857 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
7858
7859 PR target/58158
7860 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
7861 !ISA_HAS_FP_CONDMOVE.
7862
7863 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
7864
7865 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
7866 reload_completed.
7867
7868 2015-03-02 Ulrich Drepper <drepper@gmail.com>
7869
7870 * doc/invoke.texi (Options for Code Generation Conventions):
7871 Fix URL of DSO paper.
7872
7873 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7874
7875 PR ipa/65130
7876 * ipa-inline.c (check_callers): Looks for recursion.
7877 (inline_to_all_callers): Give up on uninlinable or recursive edges.
7878 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
7879 summary of inline clones.
7880 (do_estimate_growth_1): Fix recursion check.
7881
7882 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7883
7884 PR ipa/64988
7885 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
7886 comdat groups.
7887
7888 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
7889 Aldy Hernandez <aldyh@redhat.com>
7890
7891 PR lto/65276
7892 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
7893 when checking TYPE_BINFO.
7894
7895 2015-03-02 Richard Biener <rguenther@suse.de>
7896
7897 PR ipa/65270
7898 * ipa-icf-gimple.c: Include builtins.h.
7899 (func_checker::compare_memory_operand): Compare base alignment.
7900
7901 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7902
7903 PR target/65184
7904 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
7905 are never passed by reference.
7906
7907 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
7908
7909 PR target/65183
7910 * tree-chkp.c (chkp_check_lower): Don't check against
7911 zero bounds for already instrumented functions.
7912 (chkp_check_upper): Likewise.
7913 (chkp_fini): Clean pass local data to avoid wrong reusage.
7914
7915 2015-02-28 Martin Liska <mliska@suse.cz>
7916 Jan Hubicka <hubicka@ucw.cz>
7917
7918 * ipa-icf.c (sem_variable::equals): Improve debug output;
7919 get variable constructor.
7920 (sem_variable::parse): Do not filter out too early; give up on
7921 volatile and register vars.
7922 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
7923 variables.
7924 * ipa-icf.h (sem_variable::init): Do not set ctor.
7925 (sem_variable::ctor): Remove.
7926
7927 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
7928
7929 PR middle-end/65233
7930 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
7931
7932 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7933
7934 * ipa-icf.c: Include stor-layout.h
7935 (sem_function::compare_cgraph_references): Rename to ...
7936 (sem_item::compare_cgraph_references): ... this one.
7937 (sem_variable::equals_wpa): New function
7938 (sem_variable::equals): Do not check stuff already verified by
7939 equals_wpa.
7940 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
7941 * ipa-icf.h (sem_item): Add compare_cgraph_references.
7942 (sem_function): Remove compare_cgraph_references.
7943 (sem_variable): Turns equals_wpa into non-inline.
7944
7945 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7946
7947 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
7948 (sem_item::add_expr): New function.
7949 (sem_function::hash_stmt): Handle operands of most statements.
7950 (sem_variable::get_hash): Hash the actual constructor.
7951 * ipa-icf.h (sem_item): Add add_expr.
7952 (sem_function): Update prototype of hash_stmt
7953
7954 2015-02-28 Martin Liska <mliska@suse.cz>
7955 Jan Hubicka <hubicka@ucw.cz>
7956
7957 PR ipa/65245
7958 * ipa-icf-gimple.c (func_checker::compare_function_decl):
7959 Remove.
7960 (func_checker::compare_variable_decl): Skip symtab vars.
7961 (func_checker::compare_cst_or_decl): Update.
7962 * ipa-icf.c (sem_function::parse): Do not consider aliases.
7963 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
7964 use correct symtab predicates.
7965 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
7966 (sem_variable::parse): Update comment.
7967 (sem_item_optimizer::build_graph): Consider ultimate aliases
7968 for references.
7969
7970 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7971
7972 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
7973 of OBJ_TYPE_REF.
7974
7975 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7976
7977 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
7978 (sem_variable::merge) Likewise.
7979
7980 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7981
7982 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
7983 target; also match flag_ipa_devirt.
7984
7985 2015-03-01 Martin Liska <mliska@suse.cz>
7986 Jan Hubicka <hubicka@ucw.cz>
7987
7988 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
7989 Validate variable alignment.
7990 * ipa-icf.c (sem_function::equals_private): Be more precise
7991 about non-common function attributes.
7992 (sem_variable::equals): Likewise.
7993
7994 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
7995
7996 PR ipa/65237
7997 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
7998 across COMDAT group boundary.
7999
8000 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8001
8002 PR ipa/65232
8003 * ipa-icf.c (clear_decl_rtl): New function.
8004 (sem_function::merge): Clear RTL before forming alias.
8005 (sem_variable::merge): Clear RTL before forming alias.
8006
8007 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
8008
8009 PR ipa/65236
8010 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
8011
8012 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
8013
8014 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
8015 to neon_to_gp<q>.
8016
8017 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8018
8019 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
8020 a typo in the description.
8021
8022 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8023
8024 PR target/64317
8025 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8026 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
8027 * lra-constraints.c: Include "params.h".
8028 (EBB_PROBABILITY_CUTOFF): Use
8029 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
8030 (lra_inheritance): Use '<' instead of '<=' for
8031 EBB_PROBABILITY_CUTOFF.
8032 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
8033 Document change.
8034
8035 2015-02-27 Martin Liska <mliska@suse.cz>
8036
8037 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
8038 vector length condition.
8039
8040 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
8041
8042 * doc/extend.texi (x86 transactional memory intrinsics):
8043 Reorganize discussion of _xbegin. Clarify that the return
8044 value is a bit mask. Expand example and move to end of section.
8045
8046 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8047 Aldy Hernandez <aldyh@redhat.com>
8048
8049 PR rtl-optimization/65220
8050 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
8051
8052 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
8053
8054 PR target/65032
8055 * lra-remat.c (update_scratch_ops): New.
8056 (do_remat): Call it.
8057 * lra.c (lra_register_new_scratch_op): New. Take code from ...
8058 (remove_scratches): ... here.
8059 * lra-int.h (lra_register_new_scratch_op): New prototype.
8060
8061 2015-02-27 Marek Polacek <polacek@redhat.com>
8062
8063 PR c/65040
8064 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
8065 -Wformat-signedness anymore.
8066
8067 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8068
8069 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
8070 function.
8071 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
8072
8073 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8074
8075 * config/s390/s390.c (enum s390_builtin):
8076 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
8077 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
8078 (s390_init_builtins): Generate new builtin functions.
8079 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
8080 (s390_sfpc, s390_efpc): New pattern definitions.
8081
8082 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8083
8084 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
8085 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
8086 (s390_builtin_decls): New array.
8087 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
8088 (s390_builtin_decl): New function.
8089 (TARGET_BUILTIN_DECL): Define macro.
8090
8091 2015-02-27 Richard Biener <rguenther@suse.de>
8092
8093 PR middle-end/63175
8094 * builtins.c (get_object_alignment_2): Make sure to re-apply
8095 the ANDed mask after recursing to its operand gets us a new
8096 misalignment bit position.
8097
8098 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
8099 Martin Liska <mliska@suse.cz>
8100
8101 PR bootstrap/65150
8102 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
8103 Use address_matters_p.
8104 (redirect_all_callers, set_addressable): New functions.
8105 (sem_function::merge): Reorganize and fix merging issues.
8106 (sem_variable::merge): Likewise.
8107 (sem_variable::compare_sections): Remove.
8108 * common.opt (fmerge-all-constants, fmerge-constants): Remove
8109 Optimization flag.
8110 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
8111 redirect them.
8112 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
8113 decl is used.
8114 (address_matters_1): New function.
8115 (symtab_node::address_matters_p): New function.
8116 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
8117 check for merged flag.
8118 * cgraph.h (address_matters_p): Declare.
8119 (symtab_node::address_taken_from_non_vtable_p): Remove.
8120 (symtab_node::address_can_be_compared_p): New method.
8121 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
8122 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
8123 Remove.
8124 (comdat_can_be_unshared_p_1) Use address_matters_p.
8125 (update_vtable_references): Fix formating.
8126 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
8127 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
8128 * cgraphclones.c: Preserve merged and icf_merged flags.
8129
8130 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
8131
8132 * doc/extend.texi (Function Attributes): Fix spelling and typos.
8133 (Label Attributes): Likewise.
8134 (Cilk Plus Builtins): Likewise.
8135 (ARC SIMD Built-in Functions): Likewise.
8136 (ARM C Language Extensions (ACLE)): Likewise.
8137 (PowerPC Built-in Functions): Likewise.
8138 (PowerPC Hardware Transactional Memory Built-in Functions):
8139 Likewise.
8140
8141 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8142
8143 PR tree-optimization/65216
8144 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
8145 new stmt and new SSA_NAME for lhs whenever the arguments have
8146 changed and weren't just swapped. Fix comment typo.
8147
8148 PR tree-optimization/65215
8149 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
8150 for PDP endian targets.
8151 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
8152 Fix up formatting issues.
8153 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
8154 size is smaller than the original, adjust MEM_REF offset by the
8155 difference of sizes. Use is_gimple_mem_ref_addr instead of
8156 is_gimple_min_invariant test to avoid adding address temporaries.
8157
8158 2015-02-26 Martin Liska <mliska@suse.cz>
8159 Jan Hubicka <hubicka@ucw.cz>
8160
8161 PR ipa/64693
8162 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
8163 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
8164 (sem_item_optimizer::process_cong_reduction): Include division by
8165 sensitive references.
8166 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
8167 * ipa-ref.c (ipa_ref::address_matters_p): New function.
8168 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
8169
8170 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
8171
8172 PR target/65192
8173 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
8174 Remove.
8175 * config/avr/avr.c: Same.
8176 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
8177 Refuse any constant address not in 0..0xbf.
8178 * config/avr/avr.md (*mov<mode>, *movsf): Remove
8179 tiny_valid_direct_memory_access_range from insn conditions.
8180 (mov<mode>): Don't special-case expansion of avrtiny addresses.
8181
8182 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
8183
8184 PR target/61142
8185 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
8186 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
8187 * config/sh/predicates.md (const_logical_operand): New predicate.
8188 * config/sh/sh.md: Add new peephole2 patterns.
8189
8190 2015-02-26 Marek Polacek <polacek@redhat.com>
8191
8192 PR ipa/65008
8193 * ipa-inline.c (early_inliner): Recompute inline parameters.
8194
8195 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8196
8197 PR target/65171
8198 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
8199 instructions with TImode operands are included in the analysis.
8200
8201 2015-02-26 Sebastian Pop <s.pop@samsung.com>
8202
8203 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
8204 of an EDGE_FSM_THREAD.
8205
8206 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
8207
8208 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
8209
8210 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
8211
8212 PR debug/46102
8213 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
8214
8215 2015-02-26 Sebastian Pop <s.pop@samsung.com>
8216
8217 PR tree-optimization/65048
8218 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
8219 (thread_through_all_blocks): Call valid_jump_thread_path.
8220 Remove invalid FSM jump-thread paths.
8221
8222 2015-02-26 Jakub Jelinek <jakub@redhat.com>
8223
8224 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
8225 (ipa_write_optimization_summaries): Likewise.
8226 * tree-streamer.h: Include data-streamer.h.
8227 (streamer_mode_table): Declare extern variable.
8228 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
8229 * lto-streamer-out.c (lto_output_init_mode_table,
8230 lto_write_mode_table): New functions.
8231 (produce_asm_for_decls): Call lto_write_mode_table when streaming
8232 offloading LTO.
8233 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
8234 (lto_create_simple_input_block): Add mode_table argument to the
8235 lto_input_block constructors.
8236 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
8237 Likewise.
8238 * data-streamer-in.c (string_for_index): Likewise.
8239 * ipa-inline-analysis.c (inline_read_section): Likewise.
8240 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
8241 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
8242 * lto-streamer-in.c (lto_read_body_or_constructor,
8243 lto_input_toplevel_asms): Likewise.
8244 (lto_input_mode_table): New function.
8245 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
8246 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
8247 Use bp_pack_machine_mode.
8248 * real.h (struct real_format): Add name field.
8249 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
8250 (class lto_input_block): Add mode_table member.
8251 (lto_input_block::lto_input_block): Add mode_table_ argument,
8252 initialize mode_table.
8253 (struct lto_file_decl_data): Add mode_table field.
8254 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
8255 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
8256 unpack_ts_decl_common_value_fields,
8257 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
8258 * tree-streamer.c (streamer_mode_table): New variable.
8259 * real.c (ieee_single_format, mips_single_format,
8260 motorola_single_format, spu_single_format, ieee_double_format,
8261 mips_double_format, motorola_double_format,
8262 ieee_extended_motorola_format, ieee_extended_intel_96_format,
8263 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
8264 ibm_extended_format, mips_extended_format, ieee_quad_format,
8265 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
8266 decimal_single_format, decimal_double_format, decimal_quad_format,
8267 ieee_half_format, arm_half_format, real_internal_format): Add name
8268 field.
8269 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
8270
8271 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
8272
8273 PR target/65161
8274 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
8275 reordering for selective scheduling.
8276
8277 2015-02-26 Terry Guo <terry.guo@arm.com>
8278
8279 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
8280 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
8281 (arm_arch_no_volatile_ce): Declare new global variable.
8282 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
8283 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
8284 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
8285 (TARGET_NO_VOLATILE_CE): New macro.
8286 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
8287 volatile memory access in IT block
8288
8289 2015-02-25 Kai Tietz <ktietz@redhat.com>
8290
8291 PR tree-optimization/61917
8292 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
8293 that reduc_def_stmt is null.
8294
8295 2015-02-25 Martin Liska <mliska@suse.cz>
8296
8297 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
8298 hard register variables.
8299
8300 2015-02-25 Kai Tietz <ktietz@redhat.com>
8301
8302 PR target/64212
8303 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
8304 (symtab::noninterposable_alias): Likewise.
8305
8306 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
8307
8308 PR target/65167
8309 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
8310 bounds registers.
8311 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
8312
8313 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
8314
8315 PR target/64997
8316 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
8317 as split condition; force split via '#' in output pattern.
8318
8319 2015-02-25 Richard Biener <rguenther@suse.de>
8320 Kai Tietz <ktietz@redhat.com>
8321
8322 PR tree-optimization/61917
8323 * tree-vect-loop.c (vectorizable_reduction): Allow
8324 vect_internal_def without reduction to exit graceful.
8325
8326 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
8327
8328 PR target/65196
8329 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
8330 only with NONDEBUG_INSN_P.
8331
8332 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
8333
8334 Use variadic macros with avr-log.c.
8335
8336 * config/avr/avr-protos.h (avr_vdump): New prototype.
8337 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
8338 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
8339 * config/avr/avr-log.c: Adjust comments.
8340 (avr_vdump): New function.
8341 (avr_vadump): Pass caller as 2nd argument instead of format string.
8342 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
8343 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
8344
8345 2015-02-25 Jakub Jelinek <jakub@redhat.com>
8346
8347 PR lto/64374
8348 * target.def (target_option_stream_in): New target hook.
8349 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
8350 targetm.target_option.post_stream_in if non-NULL.
8351 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
8352 * doc/tm.texi: Updated.
8353 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
8354 function.
8355 (TARGET_OPTION_POST_STREAM_IN): Redefine.
8356
8357 2015-02-24 Jeff Law <law@redhat.com>
8358
8359 PR target/65117
8360 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
8361 of operand 0 and operand 2.
8362 (zero_cost_loop_end, loop_end): Similarly.
8363
8364 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
8365
8366 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
8367 CXX_MEM_STAT_INFO.
8368
8369 2015-02-24 DJ Delorie <dj@redhat.com>
8370
8371 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
8372 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
8373 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
8374 instead of hardcoding SImode.
8375
8376 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
8377
8378 * omp-low.c (create_omp_child_function): Tag entrypoint
8379 functions with a special attribute.
8380
8381 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8382
8383 PR target/65058
8384 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
8385
8386 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
8387
8388 PR rtl-optimization/65123
8389 * lra-remat.c (operand_to_remat): Check hard regs in insn
8390 definition too.
8391
8392 2015-02-24 Nick Clifton <nickc@redhat.com>
8393
8394 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
8395 to the assembler.
8396
8397 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
8398
8399 PR libgomp/64625
8400 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
8401 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
8402 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
8403 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
8404 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
8405 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
8406 (BUILT_IN_GOACC_PARALLEL): Specify as
8407 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
8408 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
8409 * builtin-types.def
8410 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8411 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8412 Remove function types.
8413 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
8414 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
8415 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
8416 New function types.
8417
8418 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
8419
8420 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
8421
8422 2015-02-24 Jakub Jelinek <jakub@redhat.com>
8423
8424 PR tree-optimization/65170
8425 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
8426 if val[1] < 0, clear also val[2] and return 3.
8427
8428 2015-02-24 Alan Modra <amodra@gmail.com>
8429
8430 PR target/65172
8431 * config/rs6000/rs6000.c (get_memref_parts): Only return true
8432 when *base is a reg. Handle nested plus addresses. Simplify
8433 pre_modify test.
8434
8435 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
8436
8437 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
8438 use natural alignment when optimizing for size.
8439
8440 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
8441
8442 PR target/65153
8443 * config/sh/sh.md (movsicc_true+3): Remove peephole.
8444 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
8445 * config/sh/sh.c (replace_n_hard_rtx): Remove.
8446
8447 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
8448
8449 PR fortran/63427
8450 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
8451 too big for a wide_int. Implement missing wrapping operation.
8452
8453 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
8454
8455 PR target/65163
8456 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
8457 instead of const_int 4294901760.
8458
8459 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
8460
8461 * config/avr/t-avr: Fix typo in comment.
8462
8463 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
8464
8465 * doc/rtl.texi (fma): Clarify documentation.
8466
8467 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
8468
8469 PR debug/58123
8470 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
8471 over input_location.
8472
8473 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8474
8475 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
8476 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
8477 restrict alignments to absolute_biggest_alignment.
8478 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
8479 Define.
8480 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
8481 * doc/tm.texi: Regenerate.
8482 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
8483
8484 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
8485
8486 PR target/64172
8487 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
8488
8489 2015-02-20 Richard Biener <rguenther@suse.de>
8490
8491 PR tree-optimization/65136
8492 * tree-ssa-propagate.c: Include cfgloop.h.
8493 (replace_phi_args_in): Avoid replacing loop latch edge PHI
8494 arguments with constants.
8495
8496 2015-02-20 Jakub Jelinek <jakub@redhat.com>
8497 Martin Liska <mliska@suse.cz>
8498
8499 PR target/63892
8500 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
8501 don't try to create_thunk if stdarg_p. If
8502 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
8503 redirect_callers if possible.
8504 (sem_item_optimizer::execute): Call unregister_hooks here...
8505 (ipa_icf_driver): ... instead of here.
8506
8507 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8508
8509 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
8510 Mark operand 0 as earlyclobber in 2nd alternative.
8511 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
8512 Write negated shift amount into QI lowpart operand 0 and use it
8513 in the shift step.
8514 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8515
8516 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8517
8518 * cgraph.h (clone_function_name_1): Declare.
8519 * cgraphclones.c (clone_function_name_1): New function.
8520 (clone_function_name): Use it.
8521 * lto-partition.c: Include "stringpool.h".
8522 (must_not_rename, maybe_rewrite_identifier)
8523 (validize_symbol_for_target): New static functions.
8524 (privatize_symbol_name): Use must_not_rename.
8525 (promote_symbol): Call validize_symbol_for_target.
8526 (lto_promote_cross_file_statics): Likewise.
8527 (lto_promote_statics_nonwpa): Likewise.
8528
8529 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
8530
8531 PR target/64452
8532 * config/avr/avr.md (pushhi_insn): New insn.
8533 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
8534
8535 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
8536 Jakub Jelinek <jakub@redhat.com>
8537
8538 * tree-streamer.c (preload_common_nodes): Don't preload
8539 TI_VA_LIST* for offloading.
8540 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
8541 in_lto_p.
8542
8543 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
8544
8545 * config/pa/pa.c (pa_emit_move_sequence): Always force
8546 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
8547 note on insn.
8548
8549 * config/pa/pa.c (pa_reloc_rw_mask): New function.
8550 (TARGET_ASM_RELOC_RW_MASK): Define.
8551 (pa_cannot_force_const_mem): Revert previous change.
8552
8553 2015-02-19 Martin Jambor <mjmabor@suse.cz>
8554 Jan Hubicka <hubicka@ucw.cz>
8555
8556 PR ipa/65028
8557 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
8558 across jump functions.
8559
8560 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
8561
8562 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
8563
8564 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
8565
8566 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
8567
8568 2015-02-19 Richard Henderson <rth@redhat.com>
8569
8570 PR middle-end/65074
8571 * varasm.c (default_binds_local_p_2): Don't test node->definition;
8572 test DECL_EXTERNAL independent of symtab_node.
8573
8574 2015-02-19 Jakub Jelinek <jakub@redhat.com>
8575
8576 PR lto/65012
8577 * varpool.c (varpool_node::get_constructor): Return early
8578 if this->lto_file_data is NULL.
8579
8580 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
8581
8582 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
8583 (rank_for_schedule_debug): Update.
8584 (ready_sort): Make static. Move sorting logic to ...
8585 (ready_sort_debug, ready_sort_real): New static functions.
8586 (schedule_block): Sort both debug insns and real insns in preparation
8587 for ready list trimming. Improve debug output.
8588 * sched-int.h (ready_sort): Remove global declaration.
8589
8590 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
8591
8592 * ipa-icf.c (sem_function::equals_private): Adjust.
8593 (sem_function::bb_dict_test): Take a vec<int> * instead of
8594 auto_vec<int>.
8595 * ipa-icf.h (bb_dict_test): Likewise.
8596
8597 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8598
8599 PR gcov-profile/64634
8600 * tree-eh.c (frob_into_branch_around): Fix up typos
8601 in function comment.
8602 (lower_catch): Put eh_seq resulting from EH lowering of
8603 the cleanup sequence after the cleanup rather than before it.
8604
8605 2015-02-18 Tom de Vries <tom@codesourcery.com>
8606
8607 * common.opt (fstdarg-opt): New option.
8608 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
8609 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
8610 (@item -fstdarg-opt): New item.
8611
8612 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
8613
8614 PR target/65064
8615 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
8616 for common symbols.
8617
8618 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8619
8620 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
8621 insn-modes.h.
8622 (ALL_HOST_OBJS): Add mkoffload.o.
8623 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
8624
8625 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
8626
8627 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
8628 (compare_virtual_tables): Be smarter about skipping typeinfos;
8629 do sane output on virtual table table mismatch.
8630 (warn_odr): Be ready for forward declarations of enums;
8631 output sane info on base mismatch and virtual table mismatch.
8632 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
8633 when only one type is polymorphic.
8634 (get_odr_type): Fix hashtable corruption.
8635 (dump_odr_type): Dump mangled names.
8636
8637 2015-02-18 Richard Biener <rguenther@suse.de>
8638
8639 PR tree-optimization/65063
8640 * tree-predcom.c (determine_unroll_factor): Return 1 if we
8641 have replaced looparound PHIs.
8642
8643 2015-02-18 Martin Liska <mliska@suse.cz>
8644
8645 * lto-streamer.c (lto_streamer_init): Encapsulate
8646 streamer_check_handled_ts_structures with checking macro.
8647
8648 2015-02-18 Jakub Jelinek <jakub@redhat.com>
8649
8650 PR ipa/65087
8651 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
8652 section if !implicit_section.
8653 (cgraph_node::create_version_clone_with_body): Likewise.
8654 * trans-mem.c (ipa_tm_create_version): Likewise.
8655
8656 2015-02-18 Richard Biener <rguenther@suse.de>
8657
8658 PR tree-optimization/62217
8659 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
8660 into BIVs.
8661
8662 2015-02-18 Marek Polacek <polacek@redhat.com>
8663
8664 PR sanitizer/65081
8665 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
8666 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
8667 is in range [-16K, -1]. Don't issue run-time error if
8668 (ptr > ptr + offset).
8669
8670 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
8671
8672 * doc/install.texi (nvptx-*-none): New section.
8673 * doc/invoke.texi (Nvidia PTX Options): Likewise.
8674 * config/nvptx/nvptx.opt: Update.
8675
8676 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
8677 (access_check): New functions, copied from
8678 config/i386/intelmic-mkoffload.c.
8679 (main): For non-installed testing, look in all COMPILER_PATHs for
8680 GCC_INSTALL_NAME.
8681
8682 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
8683
8684 2015-02-18 Andrew Pinski <apinski@cavium.com>
8685 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8686
8687 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
8688 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
8689
8690 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
8691
8692 * ipa-visibility.c (function_and_variable_visibility): Only
8693 check locality if node is not already local.
8694 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8695 call_for_symbol_and_aliases instead of
8696 call_for_symbol_thunks_and_aliases.
8697 (ipa_inline): Likewise.
8698 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8699 first walk aliases.
8700 * ipa.c (symbol_table::remove_unreachable_nodes): Use
8701 call_for_symbol_and_aliases.
8702 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8703 (ipa_propagate_frequency_1): Use it; use opt_for_fn
8704 (ipa_propagate_frequency): Update.
8705 (ipa_profile): Add opt_for_fn gueards.
8706
8707 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
8708
8709 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
8710 * doc/invoke.texi (SH options): Document it.
8711 * config/sh/sh.c (sh_insn_length_adjustment): Check
8712 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
8713
8714 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
8715
8716 * common.opt (fipa-cp-alignment): New.
8717 * ipa-cp.c (ipcp_store_alignment_results): Check
8718 flag_ipa_cp_alignment.
8719 * opts.c (default_options_table): Enable -fipa-cp-alignment for
8720 -O2.
8721 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
8722 * doc/invoke.texi: Document -fipa-cp-alignment.
8723
8724 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
8725
8726 PR target/64793
8727 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
8728 to nil. Adjust comments.
8729
8730 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
8731
8732 * ipa-visibility.c (function_and_variable_visibility): Only
8733 check locality if node is not already local.
8734 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
8735 call_for_symbol_and_aliases instead of
8736 call_for_symbol_thunks_and_aliases.
8737 (ipa_inline): Likewise.
8738 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
8739 first walk aliases.
8740 * ipa.c (symbol_table::remove_unreachable_nodes): Use
8741 call_for_symbol_and_aliases.
8742 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
8743 (ipa_propagate_frequency_1): Use it; use opt_for_fn
8744 (ipa_propagate_frequency): Update.
8745 (ipa_profile): Add opt_for_fn guards.
8746
8747 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8748
8749 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
8750 skipping of "strange" tokens.
8751
8752 2015-02-17 Jeff Law <law@redhat.com>
8753
8754 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
8755 obsolete comment.
8756
8757 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
8758
8759 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
8760 as forcing a HARD_DEP between instructions, thereby
8761 disallowing rewriting to break dependencies.
8762
8763 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
8764
8765 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
8766 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
8767 variables in boundary that have no inlitalizer encoded and are
8768 not aliases.
8769 * varasm.c (default_binds_local_p_2): External definitions do not
8770 count as definitions here.
8771
8772 2015-02-16 Jeff Law <law@redhat.com>
8773
8774 PR tree-optimization/64823
8775 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
8776 statements.
8777 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8778 threading through blocks with PHIs, but no statements.
8779 (thread_through_normal_block): Distinguish between blocks where
8780 we did not process all the statements and blocks with no statements.
8781
8782 2015-02-16 Jakub Jelinek <jakub@redhat.com>
8783 James Greenhalgh <james.greenhalgh@arm.com>
8784
8785 PR ipa/64963
8786 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
8787 section if not linkonce. Fix up formatting.
8788 (cgraph_node::create_version_clone_with_body): Copy section.
8789 * trans-mem.c (ipa_tm_create_version): Likewise.
8790
8791 2015-02-16 Richard Biener <rguenther@suse.de>
8792
8793 PR tree-optimization/65077
8794 * tree-ssa-structalias.c (get_constraint_for_1): Handle
8795 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
8796 (find_func_aliases): Allow float values to carry pointers again.
8797
8798 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
8799
8800 * doc/install.texi (Specific): Reorder targets list to put
8801 aarch64 in alphabetical order. Add a link to aarch64*-*-*
8802 from the top menu.
8803
8804 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
8805 David Edelsohn <dje.gcc@gmail.com>
8806
8807 PR target/65058
8808 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
8809 mapping class to external variable or function reference.
8810 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
8811 mapping class.
8812
8813 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
8814
8815 PR target/53348
8816 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
8817 ASM_WEAKEN_DECL if defined.
8818
8819 2015-02-16 Richard Biener <rguenther@suse.de>
8820
8821 PR lto/65015
8822 * varasm.c (default_file_start): For LTO produced units
8823 emit <artificial> as file directive.
8824
8825 2015-02-16 Richard Biener <rguenther@suse.de>
8826
8827 PR tree-optimization/63593
8828 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
8829 stmts and releasing SSA names until...
8830 (execute_pred_commoning): ... after processing all chains.
8831
8832 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
8833
8834 PR ipa/65059
8835 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
8836 external functions.
8837
8838 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
8839
8840 * doc/bugreport.texi: Adjust section titles throughout the file
8841 to use "Title Case".
8842 * doc/extend.texi: Likewise.
8843 * doc/gcov.texi: Likewise.
8844 * doc/implement-c.texi: Likewise.
8845 * doc/implement-cxx.texi: Likewise.
8846 * doc/invoke.texi: Likewise.
8847 * doc/objc.texi: Likewise.
8848 * doc/standards.texi: Likewise.
8849 * doc/trouble.texi: Likewise.
8850
8851 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
8852
8853 * cgraph.h (symtab_node::has_aliases_p): Simplify.
8854 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
8855 * tree.c (lookup_binfo_at_offset): Make static.
8856 (get_binfo_at_offset): Do not shadow offset; add explanatory
8857 comment.
8858
8859 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
8860
8861 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
8862 for all floading point loads and stores except those using a register
8863 index address.
8864 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
8865 to a register.
8866
8867 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8868
8869 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
8870 (do_estimate_growth_1): Record if any uninlinable edge was seen.
8871 (estimate_growth): Handle uninlinable edges correctly.
8872 (check_callers): New.
8873 (growth_likely_positive): Handle aliases correctly.
8874
8875 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
8876
8877 * ipa-chkp.c: Use iterate_direct_aliases.
8878 * symtab.c (resolution_used_from_other_file_p): Move inline.
8879 (symtab_node::create_reference): Fix formating.
8880 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8881 (symtab_node::iterate_reference): Move inline.
8882 (symtab_node::iterate_referring): Move inline.
8883 (symtab_node::iterate_direct_aliases): Move inline.
8884 (symtab_node::used_from_object_file_p_worker): Inline into ...
8885 (symtab_node::used_from_object_file_p): ... this one; move inline.
8886 (symtab_node::call_for_symbol_and_aliases): Move inline;
8887 use iterate_direct_aliases.
8888 (symtab_node::call_for_symbol_and_aliases_1): New method.
8889 (cgraph_node::call_for_symbol_and_aliases): Move inline;
8890 use iterate_direct_aliases.
8891 (cgraph_node::call_for_symbol_and_aliases_1): New method.
8892 (varpool_node::call_for_node_and_aliases): Rename to ...
8893 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
8894 use iterate_direct_aliases.
8895 (varpool_node::call_for_symbol_and_aliases_1): New method.
8896 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
8897 (ipa_discover_readonly_nonaddressable_var): Update.
8898 * ipa-devirt.c: Fix formating.
8899 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
8900 Move inline.
8901 (cgraph_node::call_for_symbol_and_aliases): Move inline.
8902 (cgraph_node::call_for_symbol_and_aliases_1): New function..
8903 * cgraph.h (used_from_object_file_p_worker): Remove.
8904 (resolution_used_from_other_file_p): Move inline.
8905 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
8906 (symtab_node::iterate_reference): Move inline.
8907 (symtab_node::iterate_referring): Move inline.
8908 (symtab_node::iterate_direct_aliases): Move inline.
8909 (symtab_node::used_from_object_file_p_worker): Inline into ...
8910 (symtab_node::used_from_object_file_p): Move inline.
8911 * tree-emutls.c (ipa_lower_emutls): Update.
8912 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
8913 (varpool_node::call_for_node_and_aliases): Remove.
8914
8915 2015-02-14 Jakub Jelinek <jakub@redhat.com>
8916
8917 PR tree-optimization/62209
8918 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
8919 op == range->exp, insert seq and gimplified code after labels
8920 instead of after the phi.
8921
8922 2015-02-13 Jeff Law <law@redhat.com>
8923
8924 PR bootstrap/65060
8925 Revert my change for tree-optimization/64823.
8926
8927 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8928
8929 PR tree-optimization/65053
8930 * tree-ssa-phiopt.c (value_replacement): When moving assign before
8931 cond, either reset VR on lhs or set it to phi result VR.
8932
8933 2015-02-13 Jeff Law <law@redhat.com>
8934
8935 PR tree-optimization/64823
8936 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
8937 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
8938 threading through blocks with PHIs, but no statements.
8939 (thread_through_normal_block): Distinguish between blocks where
8940 we did not process all the statements and blocks with no statements.
8941
8942 PR rtl-optimization/47477
8943 * match.pd (convert (plus/minus (convert @0) (convert @1): New
8944 simplifier to narrow arithmetic.
8945
8946 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
8947
8948 PR ipa/65028
8949 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
8950 polymorphic call info when type is not known to be preserved.
8951
8952 2015-02-13 Maritn Jambor <mjambor@suse.cz>
8953
8954 PR ipa/65028
8955 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
8956 (inline_call): Use it.
8957
8958 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
8959
8960 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
8961 GOMP_DEVICE_NVIDIA_PTX.
8962
8963 2015-02-13 Jakub Jelinek <jakub@redhat.com>
8964
8965 PR ipa/65034
8966 * stmt.c (emit_case_nodes): Use void_type_node instead of
8967 NULL_TREE as LABEL_DECL type.
8968
8969 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
8970
8971 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
8972 constraints.
8973 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
8974 symbolic references to data to be forced to constant memory on the
8975 SOM target.
8976
8977 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
8978
8979 PR tree-optimization/65002
8980 * tree-cfg.c (pass_data_fixup_cfg): Don't update
8981 SSA on start.
8982 * tree-sra.c (some_callers_have_no_vuse_p): New.
8983 (ipa_early_sra): Reject functions whose callers
8984 assume function is read only.
8985
8986 2015-02-13 Richard Biener <rguenther@suse.de>
8987
8988 PR lto/65015
8989 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
8990 for LTO produced CUs.
8991
8992 2015-02-13 Bin Cheng <bin.cheng@arm.com>
8993
8994 PR tree-optimization/64705
8995 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
8996 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
8997 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
8998 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
8999 expand_simple_operations.
9000
9001 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
9002 Richard Henderson <rth@redhat.com>
9003
9004 PR rtl/32219
9005 * cgraphunit.c (cgraph_node::finalize_function): Set definition
9006 before notice_global_symbol.
9007 (varpool_node::finalize_decl): Likewise.
9008 * varasm.c (default_binds_local_p_2): Rename from
9009 default_binds_local_p_1, add weak_dominate argument. Use direct
9010 returns instead of assigning to local variable. Unify varpool and
9011 cgraph paths via symtab_node. Reject undef weak variables before
9012 testing visibility. Reorder tests for simplicity.
9013 (default_binds_local_p): Use default_binds_local_p_2.
9014 (default_binds_local_p_1): Likewise.
9015 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
9016 via symtab_node.
9017 (default_elf_asm_output_external): Emit visibility when specified.
9018
9019 2015-02-13 Alan Modra <amodra@gmail.com>
9020
9021 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
9022 code setting up r11 for out-of-line fp restore.
9023
9024 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
9025
9026 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
9027 (muser-mode): Likewise.
9028
9029 2015-02-13 Alan Modra <amodra@gmail.com>
9030
9031 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
9032 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
9033
9034 2015-02-12 David Howells <dhowells@redhat.com>
9035
9036 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
9037 warning.
9038 * tree-ssa-uninit.c (dump_predicates): Likewise.
9039 * opts.c (print_filtered_help): Likewise.
9040
9041 2015-02-12 Jakub Jelinek <jakub@redhat.com>
9042
9043 * dwarf2out.c (output_die): Use "%s", name instead of name to
9044 avoid -Wformat-security warning.
9045
9046 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
9047 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9048 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
9049 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
9050
9051 2015-02-12 Jason Merrill <jason@redhat.com>
9052
9053 * common.opt (-flifetime-dse): New.
9054
9055 2015-02-12 Jakub Jelinek <jakub@redhat.com>
9056
9057 PR sanitizer/65019
9058 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
9059
9060 PR tree-optimization/65014
9061 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
9062 use original second operand of arg0 or arg1 instead of
9063 that adjusted by STRIP_NOPS.
9064
9065 2015-02-11 Jeff Law <law@redhat.com>
9066
9067 PR target/63347
9068 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
9069 that needs to be queued, just queue it for a single cycle.
9070
9071 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
9072
9073 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
9074 bodies of thunks; comment on why.
9075 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
9076 symbols are extern.
9077
9078 2015-02-11 Richard Henderson <rth@redhat.com>
9079
9080 PR sanitize/65000
9081 * tree-eh.c (mark_reachable_handlers): Mark source and destination
9082 regions of __builtin_eh_copy_values.
9083
9084 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9085
9086 PR middle-end/65003
9087 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
9088 ultimate alias is MEM with SYMBOL_REF satisfying
9089 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
9090 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
9091
9092 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
9093
9094 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
9095 "diagnostic-core.h".
9096 (main): Initialize progname, and call diagnostic_initialize.
9097
9098 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
9099 instead of __OPENMP_TARGET__.
9100
9101 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
9102 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
9103 hard-coding PTX_ID.
9104
9105 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
9106
9107 * doc/sourcebuild.texi (pie_enabled): Document.
9108
9109 2015-02-11 Martin Liska <mliska@suse.cz>
9110
9111 PR ipa/64813
9112 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
9113 a return value for call to a function that is noreturn.
9114
9115 2015-02-11 Richard Biener <rguenther@suse.de>
9116
9117 PR lto/65015
9118 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
9119 and -fresolution.
9120
9121 2015-02-11 Andrew Pinski <apinski@cavium.com>
9122
9123 PR target/64893
9124 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9125 Change the first argument type to size_type_node and add another
9126 size_type_node.
9127 (aarch64_simd_expand_builtin): Handle the new argument to
9128 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
9129 print an out when the first two arguments are not
9130 nonzero integer constants.
9131 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
9132 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
9133
9134 2015-02-11 Jakub Jelinek <jakub@redhat.com>
9135
9136 PR target/61925
9137 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
9138 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
9139 (ix86_set_current_function): Rewritten.
9140 (ix86_add_new_builtins): Temporarily clear current_target_pragma
9141 when creating builtin fndecls.
9142
9143 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9144
9145 PR ipa/65005
9146 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
9147 function.
9148 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
9149 have no comdat group.
9150 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
9151 (lto_output_varpool_node): Always output alias info.
9152 (output_refs): Output refs of boundary aliases, too.
9153 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
9154 (output_symtab): Output call eges in thunks in boundary.
9155 (get_alias_symbol): Remove.
9156 (input_node, input_varpool_node): Do not special case weakrefs.
9157 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
9158 alias and thunks targets in the boundary; do not take removed symbols
9159 from their comdat groups.
9160 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
9161 (cgraph_node::global_info): Remove.
9162 (cgraph_node::rtl_info): Look through aliases and thunks.
9163 * cgrpah.h (global_info): Remove.
9164 (non_local_p): Remove.
9165
9166 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9167 Sandra Loosemore <sandra@codesourcery.com>
9168
9169 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
9170 to inline asm. List dialects in proper order.
9171
9172 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9173 Sandra Loosemore <sandra@codesourcery.com>
9174
9175 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
9176
9177 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
9178
9179 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
9180 modified) reference to Solaris.
9181
9182 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
9183
9184 * doc/extend.texi (Extended Asm): Fix typos.
9185
9186 2015-02-10 Jakub Jelinek <jakub@redhat.com>
9187
9188 PR sanitizer/65004
9189 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
9190
9191 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
9192
9193 PR target/64661
9194 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
9195 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
9196 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
9197 * config/sh/constraints.md (Ara, Add): New constraints.
9198 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
9199 predicates.
9200 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
9201 atomic_mem_operand_0. Don't use force_reg on the memory address.
9202 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
9203 Sra constraint. Convert to insn_and_split. Add workaround for
9204 PR 64974.
9205 (atomic_compare_and_swap<mode>_hard): Copy to
9206 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
9207 Use atomic_mem_operand_0 predicate.
9208 (atomic_compare_and_swap<mode>_soft_gusa,
9209 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
9210 AraAdd constraints.
9211 (atomic_compare_and_swap<mode>_soft_tcb,
9212 atomic_compare_and_swap<mode>_soft_imask,
9213 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
9214 atomic_mem_operand_0 predicate and SraSdd constraints.
9215 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
9216 constraint.
9217 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
9218 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
9219 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
9220 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
9221 force_reg on the memory address.
9222 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
9223 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
9224 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
9225 atomic_mem_operand_1 predicate and Sra constraint.
9226 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
9227 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
9228 Use atomic_mem_operand_1 predicate.
9229 (atomic_<fetchop_name><mode>_hard): Copy to
9230 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
9231 Use atomic_mem_operand_1 predicate.
9232 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
9233 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
9234 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
9235 insn_and_split. Use atomic_mem_operand_1 predicate.
9236 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
9237 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
9238 Use atomic_mem_operand_1 predicate.
9239 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
9240 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
9241 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
9242 in generated insn with original mem operand before emitting the insn.
9243 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
9244 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
9245 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
9246 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
9247 Use atomic_mem_operand_1 predicate and AraAdd constraints.
9248 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
9249 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
9250 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
9251 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
9252 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
9253 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
9254 atomic_not_fetch<mode>_soft_tcb,
9255 atomic_<fetchop_name>_fetch<mode>_soft_imask,
9256 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
9257 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
9258 Use atomic_mem_operand_1 predicate and SraSdd constraints.
9259
9260 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
9261
9262 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
9263 and 3 earlyclobber operands.
9264
9265 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9266
9267 * common.opt (fstack-reuse): Mark as optimization.
9268
9269 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
9270
9271 PR ipa/64982
9272 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
9273
9274 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
9275
9276 PR tree-optimization/64326
9277 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
9278
9279 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
9280
9281 PR gcov-profile/61889
9282 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
9283
9284 2015-02-10 Richard Biener <rguenther@suse.de>
9285
9286 PR tree-optimization/64995
9287 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
9288 value we use is final.
9289 (visit_reference_op_store): Always valueize op.
9290 (visit_use): Properly valueize vuses.
9291
9292 2015-02-10 Richard Biener <rguenther@suse.de>
9293
9294 PR tree-optimization/64909
9295 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
9296 pass a scalar-stmt count estimate to the cost model.
9297 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
9298
9299 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
9300
9301 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
9302 enabled by default together with var-tracking.
9303
9304 2015-02-10 Nick Clifton <nickc@redhat.com>
9305
9306 * config/rl78/rl78.c: Remove DIV attribute code accidentally
9307 included in previous rl78 commit.
9308
9309 2015-02-10 Richard Biener <rguenther@suse.de>
9310
9311 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
9312 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
9313 return the bitpack.
9314
9315 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
9316
9317 PR gcov-profile/61889
9318 * config.in: regenerate.
9319 * configure.in: Likewise.
9320 * configure.ac: Check for ftw.h.
9321 * gcov-tool.c: Check for ftw.h before using nftw.
9322
9323 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
9324
9325 PR lto/64076
9326 * ipa-visibility.c (update_visibility_by_resolution_info): Only
9327 assert when not in lto mode.
9328
9329 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9330
9331 * ira-color.c (setup_left_conflict_sizes_p): Simplify
9332 initialization/assignment of conflict_size.
9333
9334 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
9335
9336 PR ipa/64978
9337 * ipa-cp.c (gather_caller_stats): Skip thunks.
9338 (propagate_constants_topo): Skip aliases.
9339
9340 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
9341
9342 PR target/64761
9343 * config/sh/sh.c (sh_option_override): Don't change
9344 -freorder-blocks-and-partition to -freorder-blocks even when
9345 unwinding is enabled.
9346 (sh_can_follow_jump): Return false if the followee jump is
9347 a crossing jump when -freorder-blocks-and-partition is specified.
9348 * config/sh/sh.md (*jump_compact_crossing): New insn.
9349
9350 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
9351 Kaz Kojima <kkojima@gcc.gnu.org>
9352
9353 PR target/64761
9354 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
9355 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
9356 (sh_can_redirect_branch): Rename to ...
9357 (sh_can_follow_jump): ... this. Constify argument types.
9358 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
9359 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
9360 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
9361 * doc/tm.texi: Regenerate.
9362
9363 2015-02-09 Jakub Jelinek <jakub@redhat.com>
9364
9365 PR sanitizer/64981
9366 * builtins.c (expand_builtin): Call targetm.expand_builtin
9367 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
9368
9369 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9370
9371 PR ipa/61548
9372 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
9373
9374 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9375
9376 PR ipa/63566
9377 * ipa-icf.c (set_local): New function.
9378 (sem_function::merge): Use it.
9379
9380 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9381
9382 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
9383 (add_type_duplicate): Fix comparison of BINFOs.
9384
9385 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9386
9387 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
9388 on getting VOID pointer.
9389
9390 2015-02-09 Jakub Jelinek <jakub@redhat.com>
9391
9392 PR target/64979
9393 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
9394 va_list escapes.
9395
9396 2015-02-09 Richard Biener <rguenther@suse.de>
9397
9398 * genmatch.c (replace_id): Copy expr_type.
9399
9400 2015-02-09 Richard Biener <rguenther@suse.de>
9401
9402 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
9403 (streamer_write_tree_bitfields): Declare.
9404 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
9405 properly unpack padding.
9406 (unpack_value_fields): Inline ...
9407 (streamer_read_tree_bitfields): ... here.
9408 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
9409 and properly add padding bits.
9410 (streamer_pack_tree_bitfields): Fold into ...
9411 (streamer_write_tree_bitfields): ... this new function,
9412 exposing the bitpack object.
9413 * lto-streamer-out.c (lto_write_tree_1): Call
9414 streamer_write_tree_bitfields.
9415
9416 2015-02-09 Richard Biener <rguenther@suse.de>
9417
9418 PR tree-optimization/54000
9419 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
9420 (struct ivopts_data): Add loop_loc member.
9421 (tree_ssa_iv_optimize_loop): Dump loop location.
9422 (create_new_ivs): Likewise, also dump number of IVs generated.
9423
9424 2015-02-09 Martin Liska <mliska@suse.cz>
9425
9426 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
9427 just if not yet registered.
9428 (ipa_icf_generate_summary): Register callgraph hooks.
9429
9430 2015-02-08 Andrew Pinski <apinski@cavium.com>
9431
9432 * config/aarch64/aarch64.c (gty_dummy): Delete.
9433
9434 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9435
9436 PR ipa/63566
9437 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
9438 (cgraph_node::local_p): Remove thunk related FIXME.
9439
9440 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9441
9442 PR ipa/63566
9443 * i386.c (ix86_function_regparm): Look through aliases to see if callee
9444 is local and optimized.
9445 (ix86_function_sseregparm): Likewise; also use target's SSE math
9446 settings; error out instead of silently generating wrong code
9447 on mismatches.
9448 (init_cumulative_args): Look through aliases.
9449
9450 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9451
9452 PR ipa/63566
9453 * ipa-split.c (execute_split_functions): Split if function has aliases.
9454
9455 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
9456
9457 PR ipa/63566
9458 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
9459 aliases before trying to expand it.
9460 (cgraph_node::expand_thunk): Fix formating.
9461
9462 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
9463
9464 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
9465 (Using Assembly Language with C): Expand introduction.
9466 (Basic Asm): Copy-edit. Add more information about uses of
9467 basic asm.
9468 (Extended Asm): Copy-edit. Document new escape syntax and
9469 %l[label] syntax.
9470 (Global Reg Vars): Copy-edit.
9471 (Local Reg Vars): Likewise.
9472
9473 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
9474
9475 PR debug/2714
9476 PR bootstrap/64256
9477 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
9478 (DBX_CONTIN_CHAR): Define.
9479
9480 2015-02-06 Sebastian Pop <s.pop@samsung.com>
9481 Brian Rzycki <b.rzycki@samsung.com>
9482
9483 PR tree-optimization/64878
9484 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
9485 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
9486 Stop recursion at loop phi nodes after having visited a loop phi node.
9487
9488 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9489
9490 * toplev.c (process_options): Change flag_ipa_ra before creating
9491 optimization_{default,current}_node.
9492
9493 PR ipa/64896
9494 * cgraphunit.c (cgraph_node::expand_thunk): If
9495 restype is not is_gimple_reg_type nor the thunk_fndecl
9496 returns aggregate_value_p, set restmp to a temporary variable
9497 instead of resdecl.
9498
9499 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
9500
9501 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
9502
9503 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
9504
9505 PR target/64205
9506 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
9507 add a general secondary reload handler for SDmode, unless we have
9508 both read/write support for SDmode.
9509
9510 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9511
9512 PR middle-end/64937
9513 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
9514 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
9515 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
9516 1 before, push it to abstract_vec.
9517 (dwarf2out_abstract_function): Adjust caller. Don't call
9518 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
9519 DECL_ABSTRACT_P flags for all abstract_vec elts.
9520
9521 2015-02-06 Renlin Li <renlin.li@arm.com>
9522
9523 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
9524 complex gimple.
9525 * tree-ssa.c (execute_update_addresses_taken): Likewise.
9526
9527 2015-02-06 Jeff Law <law@redhat.com>
9528
9529 PR target/64889
9530 * config/h8300/h8300.c (push): New argument "in_prologue".
9531 Pass "in_prologue" along to "F".
9532 (h8300_push_pop): Corresponding changes.
9533 (h8300_expand_prologue): Likewise.
9534 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
9535
9536 2015-02-06 Jakub Jelinek <jakub@redhat.com>
9537
9538 PR rtl-optimization/64957
9539 PR debug/64817
9540 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
9541 IOR rather than for AND.
9542
9543 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
9544
9545 PR target/62631
9546 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
9547 of shift-add and (add + shift) operations. Rename local variable.
9548
9549 2015-02-05 Jeff Law <law@redhat.com>
9550
9551 PR target/17306
9552 * config/h8300/constraints.md (U): Correctly dectect
9553 "eightbit_data" memory addresses.
9554 * config/h8300/h8300.c (eightbit_constant_address_p): Also
9555 handle (const (plus (symbol_ref (x)))) where x is declared
9556 as an 8-bit data memory address.
9557 * config/h8300/h8300.md (call, call_value): Correctly detect
9558 "funcvec" functions.
9559
9560 PR target/43264
9561 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
9562 24 to 28 bits for the H8/300.
9563
9564 2015-02-06 Alan Modra <amodra@gmail.com>
9565
9566 PR target/64876
9567 * config/rs6000/rs6000.c (chain_already_loaded): New function.
9568 (rs6000_call_aix): Use it.
9569
9570 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
9571
9572 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
9573 check.
9574
9575 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
9576
9577 * config/h8300/constraints.md ("U" constraint): Use strict
9578 variant of REG_OK_FOR_BASE_P after reload has started.
9579
9580 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
9581
9582 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
9583 define to zero if !TARGET_NEON.
9584 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
9585
9586 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9587 Trevor Saunders <tsaunders@mozilla.com>
9588
9589 PR ipa/61548
9590 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
9591
9592 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9593
9594 PR ipa/61548
9595 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
9596 when removing varpool nodes.
9597
9598 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9599
9600 PR ipa/61548
9601 * varpool.c (varpool_node::remove): Fix order of variables.
9602
9603 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9604
9605 PR ipa/64686
9606 * ipa-inline.c (inline_small_functions): Fix ordering issue between
9607 speculation resolution and key updates.
9608
9609 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9610
9611 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
9612 about not letting any speculative edges unupdated.
9613
9614 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9615
9616 PR gcov/64123
9617 * gcov-io.c (gcov_var): Export.
9618
9619 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9620
9621 PR middle-end/64922
9622 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
9623 edges that become speculative.
9624
9625 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9626
9627 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
9628 or DW_LANG_Fortran08.
9629 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
9630 DW_LANG_Fortran08.
9631 (gen_compile_unit_die): Handle "GNU Fortran2003" and
9632 "GNU Fortran2008" language strings.
9633 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
9634 * langhooks.h (lang_GNU_Fortran): New prototype.
9635 * langhooks.c (lang_GNU_Fortran): New function.
9636 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
9637 lang_GNU_Fortran.
9638
9639 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
9640
9641 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
9642 (RTX_OK_FOR_OLO10_P): Likewise.
9643
9644 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
9645
9646 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
9647
9648 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
9649
9650 PR middle-end/64922
9651 * gimple.c: Include gimple-ssa.h.
9652 (maybe_remove_unused_call_args): New function.
9653 * gimple.h (maybe_remove_unused_call_args): Declare.
9654 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
9655 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
9656 * gimple-fold.c (gimple_fold_call): Likewise.
9657
9658 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
9659
9660 PR rtl-optimization/64905
9661 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
9662 pointer alignment if it isn't needed.
9663
9664 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
9665
9666 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
9667 cortex-a72.cortex-a53.
9668 * config/aarch64/aarch64-tune.md: Regenerate.
9669 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
9670
9671 2015-02-04 Nick Clifton <nickc@redhat.com>
9672
9673 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
9674 inside a MEM.
9675
9676 2015-02-04 Jakub Jelinek <jakub@redhat.com>
9677
9678 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
9679 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
9680 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
9681 of DEF_BUILTIN.
9682 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
9683 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
9684 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
9685 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
9686 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
9687 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
9688 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
9689 * tree-core.h (enum built_in_function): In between
9690 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
9691 for builtins that use DEF_BUILTIN_CHKP macro.
9692
9693 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
9694
9695 PR debug/64817
9696 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
9697 operands for tcc_comparison exprs. Fix typos.
9698
9699 PR debug/64817
9700 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
9701 of two XORs that have an intervening AND or IOR.
9702
9703 PR debug/64817
9704 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
9705 simplification of XOR of AND to not allocate new rtx before
9706 committing to a simplification.
9707
9708 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9709
9710 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
9711 manual swaps in all peepholes.
9712
9713 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9714
9715 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
9716 of manual swapping implementation.
9717 (aarch64_expand_vec_perm_const_1): Likewise.
9718
9719 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
9720
9721 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
9722 (generic_addrcost_table): Remove NAMED_PARAM.
9723 (cortexa57_addrcost_table): Likewise.
9724 (xgene1_addrcost_table): Likewise.
9725 (generic_regmove_table): Likewise.
9726 (cortexa53_regmove_table): Likewise.
9727 (xgene1_regmove_table): Likewise.
9728 (generic_vector_table): Likewise.
9729 (cortexa57_vector_table): Likewise.
9730 (xgene1_vector_table): Likewise.
9731 (generic_tunings): Likewise.
9732 (cortexa53_tunings): Likewise.
9733 (cortexa57_tunings): Likewise.
9734 (xgene1_tunings): Likewise.
9735
9736 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
9737
9738 * config/arm/arm-cores.def: Add cortex-a72 and
9739 cortex-a72.cortex-a53.
9740 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
9741 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
9742 * config/arm/arm-tune.md: Regenerate.
9743 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
9744 "cortex-a72.cortex-a53".
9745 * doc/invoke.texi (ARM Options/-mtune): Likewise.
9746
9747 2015-02-04 Nick Clifton <nickc@redhat.com>
9748
9749 PR target/64408
9750 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
9751 of accepted codes.
9752 (nonimmediate_di_operand): Likewise.
9753
9754 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
9755 prefixes of known F5 using MSP430 MCUs.
9756
9757 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9758
9759 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
9760 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
9761 instead of __builtin_sqrt.
9762
9763 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
9764
9765 * varasm.c (do_assemble_alias): Follow transparent alias
9766 chain for target.
9767 (default_assemble_visibility): Follow transparent alias
9768 chain for decl name.
9769
9770 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9771
9772 PR middle-end/62103
9773 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
9774 to compute size of referenced value in the constant case.
9775
9776 2015-02-03 Jakub Jelinek <jakub@redhat.com>
9777
9778 PR rtl-optimization/64756
9779 * cse.c (invalidate_dest): New function.
9780 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
9781 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
9782 invalidate and do not record it.
9783
9784 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
9785
9786 PR target/64660
9787 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
9788 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
9789 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
9790 atomic_nand<mode>_soft_tcb): New insns.
9791 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
9792 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
9793 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
9794 Split into atomic_not_fetchsi_hard if operands[0] is unused.
9795 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
9796 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9797 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
9798 atomic_not<mode>_hard if operands[0] is unused.
9799 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
9800 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
9801 if operands[0] is unused.
9802 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
9803 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
9804 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
9805 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9806 unused.
9807 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
9808 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9809 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
9810 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
9811 if operands[0] is unused.
9812 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
9813 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
9814 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
9815 atomic_nand_fetchsi_hard if operands[0] is unused.
9816 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
9817 atomic_nand<mode>_hard if operands[0] is unused.
9818 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
9819 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
9820 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
9821 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9822 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
9823 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
9824 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
9825 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
9826 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
9827 atomic_not<mode>_hard if operands[0] is unused.
9828 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
9829 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
9830 unused.
9831 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9832 into atomic_not<mode>_soft_tcb if operands[0] is unused.
9833 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
9834 atomic_nand<mode>_hard if operands[0] is unused.
9835 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
9836 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
9837
9838 2015-02-03 David Malcolm <dmalcolm@redhat.com>
9839
9840 PR jit/64810
9841 * Makefile.in (GCC_OBJS): Add gcc-main.o.
9842 * gcc-main.c: New file, containing "main" taken from gcc.c.
9843 * gcc.c (do_self_spec): Free decoded_options.
9844 (class driver): Move declaration to gcc.h.
9845 (main): Move declaration and implementation to new file
9846 gcc-main.c.
9847 (driver_get_configure_time_options): New function.
9848 * gcc.h (class driver): Move this declaration here, from
9849 gcc.c.
9850 (driver_get_configure_time_options): New declaration.
9851
9852 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
9853
9854 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
9855 cross-module inlining.
9856 * cgraph.h (cgraph_node): Add flag merged.
9857 * ipa-icf.c (sem_function::merge): Maintain it.
9858
9859 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
9860
9861 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
9862 instead of OBJECT_P.
9863
9864 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
9865
9866 PR target/62631
9867 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
9868 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
9869 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
9870 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
9871
9872 2015-02-03 Jakub Jelinek <jakub@redhat.com>
9873
9874 PR other/63504
9875 * combine.c (reg_n_sets_max): New variable.
9876 (can_change_dest_mode, reg_nonzero_bits_for_combine,
9877 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
9878 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
9879 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
9880 (rest_of_handle_combine): Initialize reg_n_sets_max.
9881
9882 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
9883
9884 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
9885 if some always_inline was inlined, apply changes before inlining
9886 heuristically.
9887
9888 2015-02-02 David Malcolm <dmalcolm@redhat.com>
9889
9890 PR jit/64810
9891 * config/arm/arm.c (arm_option_override): Set
9892 arm_selected_arch/cpu/tune to NULL on entry.
9893
9894 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
9895 Andrew Pinski <pinskia@gcc.gnu.org>
9896 Jakub Jelinek <jakub@gcc.gnu.org>
9897
9898 PR target/64231
9899 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
9900 integer typing for small model. Use IN_RANGE.
9901
9902 2015-02-02 Richard Biener <rguenther@suse.de>
9903
9904 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
9905 * tree-vrp.c (vrp_valueize_1): Likewise.
9906
9907 2015-02-02 Alan Modra <amodra@gmail.com>
9908
9909 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
9910 than mem for toc_restore.
9911 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
9912 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
9913 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
9914
9915 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
9916
9917 PR target/64047
9918 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
9919 explicit default options.
9920
9921 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
9922
9923 PR ipa/64872
9924 * ipa-utils.c (ipa_merge_profiles): Add release argument.
9925 * ipa-icf.c (sem_function::merge): Do not release body when merging.
9926 * ipa-utils.h (ipa_merge_profiles): Update prototype.
9927
9928 2015-02-01 Jakub Jelinek <jakub@redhat.com>
9929
9930 PR debug/64817
9931 * cfgexpand.c (deep_ter_debug_map): New variable.
9932 (avoid_deep_ter_for_debug): New function.
9933 (expand_debug_expr): If TERed SSA_NAME is in
9934 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
9935 instead of trying to expand SSA_NAME's def stmt.
9936 (expand_debug_locations): When expanding debug bind
9937 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
9938 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
9939 value.
9940 (pass_expand::execute): Call avoid_deep_ter_for_debug on
9941 all debug bind stmts. Delete deep_ter_debug_map after
9942 expand_debug_location if non-NULL and clear it.
9943
9944 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
9945
9946 PR target/64851
9947 * config/sh/sync.md (atomic_fetch_notsi_hard,
9948 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
9949 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
9950 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
9951 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
9952 atomic_not_fetch<mode>_soft_imask): New insns.
9953
9954 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
9955
9956 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
9957 (rank_for_schedule_debug): Split from ...
9958 (rank_for_schedule): ... this.
9959 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
9960 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
9961
9962 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9963
9964 * doc/md.texi (Machine Constraints): Alphabetize table by target.
9965 * doc/extend.texi (x86 Variable Attributes): Move section to
9966 correct alphabetization after renaming.
9967 (x86 Type Attributes): Likewise.
9968 (Target Builtins): Re-alphabetize menu.
9969 (x86 Built-in Functions): Move section to correct alphabetization
9970 after renaming.
9971 (x86 transactional memory intrinsics): Likewise.
9972 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
9973 and x86 Windows Options in table and menu.
9974 (x86 Options): Move section to correct alphabetization after
9975 renaming.
9976 (x86 Windows Options): Likewise.
9977
9978 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
9979
9980 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
9981 preferred names of the architecture and its 32- and 64-bit
9982 variants.
9983 * doc/invoke.texi: Likewise.
9984 * doc/md.texi: Likewise.
9985
9986 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9987
9988 PR target/64882
9989 * config/i386/predicates.md (address_no_seg_operand): Reject
9990 non-CONST_INT_P operands in invalid mode.
9991
9992 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
9993
9994 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
9995 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
9996 * config/i386/predicates.md (address_no_seg_operand): Call
9997 address_operand with VOIDmode.
9998 (vsib_address_operand): Ditto.
9999 (address_mpx_no_base_operand): Ditto.
10000 (address_mpx_no_index_operand): Ditto.
10001
10002 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
10003
10004 PR target/64688
10005 * lra-constraints.c (original_subreg_reg_mode): New.
10006 (simplify_operand_subreg): Try to simplify subreg of const. Use
10007 original_subreg_reg_mode for it.
10008 (swap_operands): Update original_subreg_reg_mode.
10009 (curr_insn_transform): Set up original_subreg_reg_mode.
10010
10011 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
10012
10013 PR target/64617
10014 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
10015 function.
10016 (process_alt_operands): Use it.
10017 (curr_insn_transform): Check the optional reload pseudo class is
10018 ok for the mode.
10019
10020 2015-01-30 Joseph Myers <joseph@codesourcery.com>
10021
10022 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
10023 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
10024 prototype.
10025 * toplev.h (init_asm_output): Update comment on use of
10026 UNKNOWN_LOCATION with fatal_error.
10027 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
10028 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
10029 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
10030 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
10031 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
10032 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
10033 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
10034 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
10035 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
10036 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
10037 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
10038 fatal_error changed to pass input_location as first argument.
10039
10040 2015-01-30 Martin Liska <mliska@suse.cz>
10041
10042 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
10043 in #pragma GCC diagnostic guards.
10044
10045 2015-01-30 Richard Biener <rguenther@suse.de>
10046
10047 PR tree-optimization/64829
10048 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
10049 not add a widening conversion pattern but hand off extra
10050 widenings to callers.
10051 (vect_recog_widen_mult_pattern): Handle extra widening produced
10052 by vect_handle_widen_op_by_const.
10053 (vect_recog_widen_shift_pattern): Likewise.
10054 (vect_pattern_recog_1): Remove excess vertical space in dumping.
10055 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
10056 (vect_init_vector_1): Likewise.
10057 (vect_get_vec_def_for_operand): Likewise.
10058 (vect_finish_stmt_generation): Likewise.
10059 (vectorizable_load): Likewise.
10060 (vect_analyze_stmt): Likewise.
10061 (vect_is_simple_use): Likewise.
10062
10063 2015-01-29 Jeff Law <law@redhat.com>
10064
10065 * combine.c (try_combine): Fix typo in comment.
10066
10067 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
10068
10069 PR target/64580
10070 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
10071 (rs6000_stack_info): Add assert.
10072 (rs6000_output_savres_externs): New function, split off from...
10073 (rs6000_output_function_prologue): ... here. Do not call it for
10074 thunks.
10075
10076 2015-01-29 Jeff Law <law@redhat.com>
10077
10078 PR target/15184
10079 * combine.c (try_combine): If I0 is a memory load and I3 a store
10080 to a related address, increase the "goodness" of doing a 4-insn
10081 combination with I0-I3.
10082 (make_field_assignment): Handle SUBREGs in the ior+and case.
10083
10084 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
10085
10086 PR tree-optimization/64746
10087 * tree-if-conv.c (mask_exists): New function.
10088 (predicate_mem_writes): Save created mask with given size for further
10089 use.
10090 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
10091 (ifcvt_repair_bool_pattern): Collect all statements that are root
10092 of bool pattern and use iterative algorithm to remove multiple uses
10093 of predicates, display number of required iterations.
10094
10095 2015-01-29 Richard Biener <rguenther@suse.de>
10096
10097 PR tree-optimization/64853
10098 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
10099 stmt will get simulated again.
10100 * tree-ssa-ccp.c (valueize_op_1): Likewise.
10101
10102 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10103
10104 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
10105 return_in_pc. Remove redundant assignments.
10106 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
10107 (arm_expand_epilogue): Don't compare boolean with true in if condition.
10108
10109 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
10110
10111 * config/i386/i386.c (ix86_mode_after): Make static.
10112
10113 2015-01-29 Richard Biener <rguenther@suse.de>
10114
10115 PR tree-optimization/64844
10116 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
10117 dump cost model analysis.
10118 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10119 Do not register adjusted load/store costs here.
10120
10121 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
10122 Uros Bizjak <ubizjak@gmail.com>
10123
10124 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
10125 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
10126 using x86_use_pseudo_pic_reg.
10127 * config/i386/i386.c (ix86_conditional_register_usage): Remove
10128 support for fixed PIC register.
10129 (ix86_use_pseudo_pic_reg): Not static any more.
10130
10131 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
10132
10133 PR middle-end/64805
10134 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
10135 to avoid error in cgraph node verification.
10136
10137 2015-01-29 Marek Polacek <polacek@redhat.com>
10138
10139 * doc/standards.texi: Reflect that the default for C is gnu11.
10140
10141 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
10142
10143 PR target/64761
10144 * reorg.c (switch_text_sections_between_p): New function.
10145 (relax_delay_slots): Call it when testing if the jump insn
10146 is removable. Use targetm.can_follow_jump when testing if
10147 the conditional branch can follow an unconditional jump.
10148
10149 2015-01-27 Caroline Tice <cmtice@google.com>
10150
10151 Committing VTV Cywin/Ming patch for Patrick Wollgast
10152 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
10153 if -fvtable-verify=preinit/std is used.
10154 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
10155 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
10156 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
10157 if -fvtable-verify=preinit/std is used.
10158 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
10159 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
10160 if -fvtable-verify=preinit/std is used.
10161 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
10162 * config/i386/mingw32.h (LIB_SPEC): Likewise.
10163 * varasm.c (assemble_variable): Add code to properly set the comdat
10164 section and name for the .vtable_map_vars section in case the
10165 target is PE or COFF.
10166
10167 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
10168
10169 PR ipa/64801
10170 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
10171 make sane BB profile.
10172 (cgraph_node::expand_thunk): Make sane BB profile.
10173 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
10174 * cgraph.h (init_lowered_empty_function): Update prototype.
10175 * config/i386/i386.c (make_resolver_func): Update call.
10176 * predict.c (gate): Disable branch prediction pass if
10177 profile is already there.
10178
10179 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
10180
10181 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
10182 * opth-gen.awk: Likewise.
10183 * common.opt: Mark flag_fp_contract_mode as Optimization.
10184
10185 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
10186
10187 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
10188 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
10189
10190 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
10191
10192 PR target/64659
10193 * config/sh/predicates.md (atomic_arith_operand,
10194 atomic_logical_operand): Remove.
10195 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
10196 (atomic_arith_operand_0): New predicate.
10197 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
10198 Use atomic_arith_operand_0 for input values.
10199 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
10200 atomic_compare_and_swap<mode>_soft_gusa,
10201 atomic_compare_and_swap<mode>_soft_tcb,
10202 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
10203 arith_reg_operand instead of register_operand.
10204 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
10205 atomic_arith_operand_0 for newval input.
10206 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
10207 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
10208 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
10209 arith_reg_operand instead of register_operand.
10210 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
10211 fetchop_predicate_1, fetchop_constraint_1_llcs,
10212 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
10213 fetchop_constraint_1_imask): New code iterator attributes.
10214 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
10215 register_operand. Use fetchop_predicate_1.
10216 (atomic_fetch_<fetchop_name>si_hard,
10217 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
10218 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
10219 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
10220 and arith_reg_operand instead of register_operand. Use
10221 fetchop_predicate_1, fetchop_constraint_1_gusa.
10222 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
10223 and arith_reg_operand instead of register_operand. Use
10224 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
10225 to allow R0 usage.
10226 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
10227 and arith_reg_operand instead of register_operand. Use
10228 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
10229 to allow R0 usage.
10230 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
10231 register_operand. Use atomic_logical_operand_1.
10232 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
10233 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
10234 arith_reg_operand instead of register_operand.
10235 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
10236 Use arith_reg_dest and arith_reg_operand instead of register_operand.
10237 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
10238 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
10239 register_operand. Use fetchop_predicate_1.
10240 (atomic_<fetchop_name>_fetchsi_hard,
10241 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
10242 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10243 fetchop_constraint_1_llcs.
10244 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
10245 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10246 fetchop_constraint_1_gusa.
10247 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
10248 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10249 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
10250 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
10251 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
10252 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
10253 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
10254 register_operand. Use atomic_logical_operand_1.
10255 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
10256 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
10257 arith_reg_operand instead of register_operand.
10258 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
10259 arith_reg_operand instead of register_operand. Use logical_operand
10260 and K08. Adjust asm sequence to allow R0 usage.
10261 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
10262 arith_reg_operand instead of register_operand. Use logical_operand
10263 and K08.
10264
10265 2015-01-28 Jakub Jelinek <jakub@redhat.com>
10266
10267 PR other/63504
10268 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
10269 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
10270 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
10271 only get_full_len HOST_WIDE_INTs from get_val () array rather than
10272 all bits in *val_wide.
10273
10274 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
10275
10276 * varpool.c (tls_model_names): Fix names.
10277 (varpool_node::dump): Dump tls- prefix for tls models.
10278
10279 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
10280 Bernd Schmidt <bernds@codesourcery.com>
10281 Nathan Sidwell <nathan@codesourcery.com>
10282
10283 * config/nvptx/mkoffload.c: New file.
10284 * config/nvptx/t-nvptx: Add build rules for it.
10285 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
10286 (extra_programs): Add mkoffload.
10287 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
10288 function.
10289 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
10290
10291 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
10292
10293 PR middle-end/64809
10294 * cfgexpand.c (reorder_operands): Skip debug gimples.
10295
10296 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
10297
10298 PR tree-optimization/64277
10299 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
10300 range info when possible to refine estimation.
10301
10302 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10303
10304 PR tree-optimization/64718
10305 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
10306 be a 16bit unsigned integer when n->range is 16.
10307 (bswap_replace): Convert src to that type if necessary for all bswap
10308 sizes. Fix rotation right notation in nearby comment. Use bswap_type
10309 set in pass_optimize_bswap::execute ().
10310
10311 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
10312
10313 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
10314 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
10315 integer and floating point variants.
10316 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
10317
10318 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
10319
10320 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
10321 for all vector modes.
10322
10323 2015-01-28 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR bootstrap/64612
10326 * doc/sourcebuild.texi (comdat_group): Document.
10327
10328 2015-01-28 Terry Guo <terry.guo@arm.com>
10329
10330 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
10331
10332 2015-01-27 David Malcolm <dmalcolm@redhat.com>
10333
10334 * toplev.c (print_version): Add param "show_global_state", and
10335 only print GGC and plugin information if it is true.
10336 (init_asm_output): Pass in "true" for the new param when calling
10337 print_version.
10338 (process_options): Likewise.
10339 (toplev::main): Likewise.
10340 * toplev.h (print_version): Add new param to decl.
10341
10342 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
10343
10344 PR ipa/60871
10345 PR ipa/64139
10346 * tree.c (lookup_binfo_at_offset): New function.
10347 (get_binfo_at_offset): Use it.
10348
10349 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
10350
10351 PR ipa/64282
10352 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
10353 on vtable being vtable.
10354
10355 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10356
10357 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
10358 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
10359 -mhotpatch= option.
10360 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
10361 -mno-hotpatch options. Change syntax of -mhotpatch= option.
10362 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
10363 Renamed.
10364 (s390_hotpatch_trampoline_halfwords_max): Renamed.
10365 (s390_hotpatch_hw_max): New name.
10366 (s390_hotpatch_trampoline_halfwords): Renamed.
10367 (s390_hotpatch_hw_before_label): New name.
10368 (get_hotpatch_attribute): Removed.
10369 (s390_hotpatch_hw_after_label): New name.
10370 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
10371 attribute.
10372 (s390_attribute_table): Ditto.
10373 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
10374 (s390_function_num_hotpatch_hw): New name.
10375 Remove special handling of inline functions and hotpatching.
10376 Return number of nops before and after the function label.
10377 (s390_can_inline_p): Removed.
10378 (s390_asm_output_function_label): Emit a configurable number of nops
10379 after the function label.
10380 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
10381 (TARGET_CAN_INLINE_P) Removed.
10382 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
10383
10384 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10385 Jiong Wang <jiong.wang@arm.com>
10386
10387 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
10388 of scratch reg.
10389 (cb<optab><mode>1): Likewise.
10390 * config/aarch64/iterators.md (bcond): New define_code_attr.
10391
10392 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10393
10394 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
10395 memory accesses.
10396
10397 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10398
10399 * config/s390/s390.c (s390_register_move_cost): Increase costs for
10400 FPR->GPR moves.
10401
10402 2015-01-27 Richard Biener <rguenther@suse.de>
10403
10404 * tree-vrp.c (update_value_range): Intersect the range with
10405 old recorded SSA name range information.
10406
10407 2015-01-27 Nick Clifton <nickc@redhat.com>
10408
10409 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
10410 BC, DE and HL registers directly, not via AX.
10411 When decrementing the stack pointer by a large amount, transfer SP
10412 into AX and perform the subtraction there.
10413 (rl78_expand_epilogue): Perform the inverse of the above
10414 enhancements.
10415
10416 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10417
10418 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
10419
10420 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10421 Yury Gribov <y.gribov@samsung.com>
10422
10423 PR ubsan/64741
10424 * ubsan.c (ubsan_source_location): Refactor code.
10425 (ubsan_type_descriptor): Update type size. Refactor code.
10426
10427 2015-01-27 Richard Biener <rguenther@suse.de>
10428
10429 PR tree-optimization/56273
10430 PR tree-optimization/59124
10431 PR tree-optimization/64277
10432 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
10433 from the first VRP pass.
10434
10435 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10436
10437 PR ipa/64776
10438 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
10439 handle the first argument in the same loop as all the other arguments.
10440
10441 PR rtl-optimization/61058
10442 * jump.c (cleanup_barriers): Update basic block boundaries
10443 if BLOCK_FOR_INSN is non-NULL on PREV.
10444
10445 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
10446
10447 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
10448 bounds narrowing, already instrumented calls and calls to
10449 not instrumentable functions.
10450
10451 2015-01-27 Jakub Jelinek <jakub@redhat.com>
10452
10453 PR tree-optimization/64807
10454 * wide-int.cc (wi::divmod_internal): Clear
10455 b_dividend[dividend_blocks_needed].
10456
10457 2015-01-26 DJ Delorie <dj@redhat.com>
10458
10459 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
10460 volatile memory references.
10461
10462 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
10463
10464 PR target/49263
10465 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
10466 remove_insn.
10467 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
10468 shifts if it already fits into K08.
10469
10470 2015-01-26 Jakub Jelinek <jakub@redhat.com>
10471
10472 PR ipa/64730
10473 * ipa-inline.c (inline_small_functions): Print "unknown" even
10474 if edge->call_stmt is non-NULL, but has builtins or unknown
10475 location.
10476
10477 PR middle-end/64421
10478 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
10479 with asterisk, skip the first character.
10480
10481 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
10482
10483 PR target/64806
10484 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
10485 order change.
10486
10487 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
10488
10489 PR target/64795
10490 * config/i386/i386.md (*movdi_internal): Also check operand 0
10491 to determine TYPE_LEA operand.
10492 (*movsi_internal): Ditto.
10493
10494 2015-01-26 Jakub Jelinek <jakub@redhat.com>
10495
10496 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
10497 OPTION_MASK_QUAD_MEMORY_ATOMIC.
10498
10499 2015-01-26 Renlin Li <renlin.li@arm.com>
10500
10501 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
10502 the comment.
10503 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
10504 for higher part.
10505
10506 2015-01-26 Richard Biener <rguenther@suse.de>
10507
10508 PR middle-end/64764
10509 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
10510 combining two BIT_AND_EXPR predicates.
10511
10512 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
10513
10514 PR bootstrap/64754
10515 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
10516
10517 2015-01-26 Terry Guo <terry.guo@arm.com>
10518
10519 * config/arm/arm.c (arm_file_start): Update the assignment of
10520 Tag_ABI_HardFP_use.
10521
10522 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
10523
10524 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
10525 pipeline model.
10526 config/arm/arm.md: Include the new Cortex-A57 model.
10527 (generic_sched): Don't use generic_sched when tuning for
10528 Cortex-A57.
10529
10530 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
10531 Uros Bizjak <ubizjak@gmail.com>
10532
10533 * config/i386/i386.c (get_builtin_code_for_version): Add
10534 support for BMI and BMI2 multiversion functions.
10535
10536 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10537
10538 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
10539 (extract_bit_field): Likewise.
10540 (extract_low_bits): Likewise.
10541 (expand_mult): Likewise.
10542 (expand_mult_highpart_adjust): Likewise.
10543
10544 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
10545
10546 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
10547 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
10548 * config/i386/i386.c (processor_model): Add
10549 M_INTEL_COREI7_BROADWELL.
10550 (arch_names_table): Add "broadwell".
10551
10552 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
10553
10554 PR target/49263
10555 PR target/53987
10556 PR target/64345
10557 PR target/59533
10558 PR target/52933
10559 PR target/54236
10560 PR target/51244
10561 * config/sh/sh-protos.h
10562 (sh_extending_set_of_reg::can_use_as_unextended_reg,
10563 sh_extending_set_of_reg::use_as_unextended_reg,
10564 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
10565 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
10566 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
10567 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
10568 (sh_treg_insns): New class.
10569 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
10570 (scope_counter): New class.
10571 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
10572 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
10573 sh_extending_set_of_reg::can_use_as_unextended_reg,
10574 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
10575 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
10576 sh_split_treg_set_expr): New functions.
10577 (addsubcosts): Handle treg_set_expr.
10578 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
10579 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
10580 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
10581 (sh_insn_operands_modified_between_p): Make non-static.
10582 * config/sh/predicates.md (zero_extend_movu_operand): Allow
10583 simple_mem_operand in addition to displacement_mem_operand.
10584 (zero_extend_operand): Don't allow zero_extend_movu_operand.
10585 (treg_set_expr, treg_set_expr_not_const01,
10586 arith_reg_or_treg_set_expr): New predicates.
10587 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
10588 arith_or_int_operand instead of logical_operand. Convert to
10589 insn_and_split. Try to optimize constant operand in splitter.
10590 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
10591 (*tstqi_t_zero): Delete.
10592 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
10593 (tstsi_t_and_not): Delete.
10594 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
10595 Convert to insn_and_split.
10596 (unnamed split, tstsi_t_zero_extract_xor,
10597 tstsi_t_zero_extract_subreg_xor_little,
10598 tstsi_t_zero_extract_subreg_xor_big): Delete.
10599 (*tstsi_t_shift_mask): New insn_and_split.
10600 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
10601 to recombine with surrounding insns when splitting.
10602 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
10603 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
10604 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
10605 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
10606 (*cbranch_div0s: Delete.
10607 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
10608 Try to recombine with surrounding insns when splitting. Add operand
10609 order variants.
10610 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
10611 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
10612 *addc_r_r_msb, *addc_2r_msb): Delete.
10613 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
10614 order variant.
10615 (*addc_negreg_t): New insn_and_split.
10616 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
10617 Try to recombine with surrounding insns when splitting.
10618 Add operand order variants.
10619 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
10620 insn_and_split patterns.
10621 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
10622 surrounding insns when splitting.
10623 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
10624 (*rotcl): Likewise. Add zero_extract variant.
10625 (*ashrsi2_31): New insn_and_split.
10626 (*negc): Convert to insn_and_split. Use treg_set_expr.
10627 (*zero_extend<mode>si2_disp_mem): Update comment.
10628 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
10629 condition.
10630 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
10631 with surrounding insns when splitting.
10632 (any_treg_expr_to_reg): New insn_and_split.
10633 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
10634 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
10635 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
10636 *zero_extract_2): New single bit zero extract patterns.
10637 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
10638 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
10639 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
10640 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
10641 set destination.
10642 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
10643 register_operand for set source.
10644
10645 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
10646
10647 * i386.opt (prefetch_sse): New targetsave.
10648 * i386.c (ix86_function_specific_save): Save prefetch_sse.
10649 (ix86_function_specific_restore): Restore prefetch_sse and initialize
10650 ix86_cost/ix86_tune_cost.
10651
10652 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10653
10654 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10655 Support the JIT by using 0 as the language type.
10656
10657 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
10658
10659 PR target/64317
10660 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
10661 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
10662 (mark_regno_live, process_bb_lives): Pass new parameter value to
10663 make_hard_regno_born.
10664
10665 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10666
10667 PR rtl-optimization/63637
10668 PR rtl-optimization/60663
10669 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
10670 if elt->cost is MAX_COST for ASM_OPERANDS.
10671 (find_sets_in_insn): Fix up comment typo.
10672 (cse_insn): Don't set src_volatile for all non-volatile
10673 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
10674 or with "memory" clobber. Set elt->cost to MAX_COST
10675 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
10676 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
10677
10678 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
10679
10680 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
10681 alternative 1.
10682
10683 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
10684
10685 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
10686 libgcc/config/i386/elf-lib.h.
10687
10688 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10689
10690 PR driver/64737
10691 * gcc.c (print_configuration): Don't print a blank line at the end
10692 here...
10693 (run_attempt): ... but here unstead.
10694
10695 PR middle-end/64734
10696 * omp-low.c (scan_sharing_clauses): Don't ignore
10697 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
10698 on target data/update constructs.
10699
10700 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
10701
10702 PR target/50928
10703 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
10704 (DEBUG_RELOAD): Removed define.
10705 (m32c_limit_reload_class): Enable traces with if DEBUG0.
10706 (m32c_function_arg): Added a type cast.
10707 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
10708 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
10709 * config/m32c/bitops.md (andqi3_16): Likewise.
10710 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
10711 (push_a01_l): Likewise.
10712
10713 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10714
10715 PR jit/64721
10716 * main.c (main): Construct toplev instances with init_signals=true.
10717 * toplev.c (general_init): Add param "init_signals", and use it to
10718 conditionalize the calls to signal and host_hooks.extra_signals.
10719 (toplev::toplev): Add param "init_signals".
10720 (toplev::main): When invoking general_init, pass m_init_signals
10721 to control whether signal-handlers are installed.
10722 * toplev.h (toplev::toplev): Add param "init_signals".
10723 (toplev::m_init_signals): New field.
10724
10725 2015-01-23 David Malcolm <dmalcolm@redhat.com>
10726
10727 PR jit/64722
10728 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
10729 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
10730 latter may be affected by the former (e.g. on i686).
10731
10732 2015-01-23 Martin Liska <mliska@suse.cz>
10733
10734 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
10735 false positive during profiledbootstrap.
10736
10737 2015-01-23 Tom de Vries <tom@codesourcery.com>
10738
10739 PR libgomp/64672
10740 * lto-opts.c (lto_write_options): Output non-explicit conservative
10741 -fno-openacc.
10742 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
10743 (append_compiler_options): Pass -fopenacc through.
10744
10745 2015-01-23 Tom de Vries <tom@codesourcery.com>
10746
10747 PR libgomp/64707
10748 * lto-opts.c (lto_write_options): Output non-explicit conservative
10749 -fno-openmp.
10750 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
10751 (append_compiler_options): Pass -fopenmp through.
10752
10753 2015-01-23 Jakub Jelinek <jakub@redhat.com>
10754
10755 PR debug/64511
10756 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
10757 GTY markup.
10758
10759 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
10760 * diagnostic.def (DK_ICE_NOBT): New kind.
10761 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
10762 like DK_ICE, but never print backtrace.
10763 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
10764 (internal_error_no_backtrace): New function.
10765 * gcc.c (execute): Use internal_error_no_backtrace instead of
10766 internal_error.
10767
10768 2015-01-22 Jeff Law <law@redhat.com>
10769
10770 PR target/52076
10771 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
10772 improve code density for small immediate to memory case.
10773 (insv): Better handle bitfield assignments when the field is
10774 being set to all ones.
10775 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
10776 operand predicate.
10777
10778 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10779 Jakub Jelinek <jakub@redhat.com>
10780
10781 PR middle-end/64729
10782 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
10783 for !TARGET_LIBC_PROVIDES_SSP version and
10784 -fstack-protector-{all,strong,explicit} otherwise.
10785 * config/freebsd.h (LINK_SSP_SPEC): Handle
10786 -fstack-protector-{strong,explicit}.
10787
10788 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
10789 H.J. Lu <hongjiu.lu@intel.com>
10790
10791 PR ipa/64694
10792 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
10793 heap.
10794
10795 2015-01-22 Wei Mi <wmi@google.com>
10796
10797 PR rtl-optimization/64557
10798 * dse.c (record_store): Call get_addr for mem_addr.
10799 (check_mem_read_rtx): Likewise.
10800
10801 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
10802
10803 * fold-const.c (const_binop): Add early return for non-tcc_binary.
10804
10805 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10806
10807 * toplev.c (init_local_tick): Process the failure when read
10808 fails for random_seed.
10809
10810 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
10811 'pretty_name' to avoid memory overflow.
10812
10813 2015-01-22 Richard Biener <rguenther@suse.de>
10814
10815 PR middle-end/64728
10816 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
10817 abnormal coalescing on undefined SSA names.
10818
10819 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
10820
10821 PR target/64688
10822 PR target/64477
10823 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
10824 for alternative 3.
10825 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
10826
10827 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
10828
10829 PR middle-end/63325
10830 * fold-const.c (fold_checksum_tree): Don't include value of
10831 expr->decl_with_vis.symtab_node in the checksum.
10832
10833 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10834
10835 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
10836
10837 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
10838
10839 PR driver/64690
10840 * gcc.c (insert_comments): New function.
10841 (try_generate_repro): Call it.
10842 (append_text): Removed.
10843
10844 2015-01-22 Richard Biener <rguenther@suse.de>
10845
10846 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
10847 with IL incompatible options. Properly honor user optimize
10848 attributes.
10849
10850 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
10851
10852 PR rtl-optimization/64682
10853 * combine.c (distribute_notes): When moving a death note for
10854 a register that is set in the new I2, make sure to put it
10855 before that new I2.
10856
10857 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
10858
10859 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
10860 not TARGET_DEFAULT.
10861
10862 2015-01-21 Jakub Jelinek <jakub@redhat.com>
10863
10864 PR debug/64511
10865 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
10866 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
10867 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
10868
10869 PR sanitizer/64706
10870 * doc/invoke.texi (-fsanitize=vptr): Document.
10871
10872 PR rtl-optimization/62078
10873 * dse.c: Include cfgcleanup.h.
10874 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
10875 anything call purge_all_dead_edges and cleanup_cfg at the end
10876 of the pass.
10877
10878 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
10879
10880 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
10881 edges.
10882
10883 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
10884
10885 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
10886 decl attribute.
10887
10888 2015-01-21 David Sherwood <david.sherwood@arm.com>
10889 Tejas Belagod <Tejas.Belagod@arm.com>
10890
10891 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
10892 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
10893 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
10894 Removed.
10895
10896 2015-01-21 David Sherwood <david.sherwood@arm.com>
10897 Tejas Belagod <Tejas.Belagod@arm.com>
10898
10899 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
10900 (aarch64_reverse_mask): New decls.
10901 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
10902 (insn_count): New mode_attr.
10903 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
10904 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
10905 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
10906 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
10907 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
10908 (aarch64_simd_st4): New patterns.
10909 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
10910 (aarch64_reverse_mask): New functions.
10911
10912 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
10913
10914 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
10915 Declare.
10916 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
10917 addressing modes for BE.
10918 (aarch64_print_operand): Add 'R' specifier.
10919 (aarch64_simd_disambiguate_copy): Delete.
10920 (aarch64_simd_emit_reg_reg_move): New function.
10921 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
10922 in define_splits for structural moves.
10923 (mov<mode>): Use less restrictive predicates.
10924 (*aarch64_mov<mode>): Simplify and only allow for LE.
10925 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
10926
10927 2015-01-21 Alan Hayward <alan.hayward@arm.com>
10928
10929 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
10930
10931 2015-01-21 Richard Henderson <rth@redhat.com>
10932
10933 PR target/64669
10934 * ccmp.c (used_in_cond_stmt_p): Remove.
10935 (expand_ccmp_expr): Don't use it.
10936
10937 2015-01-21 Nick Clifton <nickc@redhat.com>
10938
10939 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
10940 PARALLELs.
10941
10942 2015-01-21 Richard Biener <rguenther@suse.de>
10943
10944 PR middle-end/64313
10945 * tree-core.h (builtin_info, builtin_info_type): Turn from
10946 an object with two arrays into an array of an object with
10947 decl and two flags, implicit_p and declared_p.
10948 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
10949 set_builtin_decl, set_builtin_decl_implicit_p,
10950 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
10951 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
10952 * builtins.c (builtin_info): Adjust.
10953 * gimplify.c (gimplify_addr_expr): References to builtins
10954 that have been declared by the user makes them eligible for
10955 use by the compiler. Call set_builtin_decl_implicit_p on them.
10956
10957 2015-01-20 Jeff Law <law@redhat.com>
10958
10959 PR target/59946
10960 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
10961 allow pc-relative addresses in operand predicates or constraints.
10962
10963 2015-01-21 Bin Cheng <bin.cheng@arm.com>
10964
10965 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
10966 neon on aarch32 processors for stringops.
10967
10968 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10969
10970 PR ipa/63576
10971 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
10972
10973 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
10974
10975 PR lto/45375
10976 * ipa-inline.c: Include lto-streamer.h
10977 (report_inline_failed_reason): Output source file differences and
10978 flags on optimization/target node mismatch.
10979 (can_inline_edge_p): Consider caller to be the outer inline function;
10980 be less restrictive about matching opimize and optimize_size attributes.
10981 (inline_account_function_p): Break out from ...
10982 (inline_small_functions): ... here.
10983 * ipa-inline-transform.c (clone_inlined_nodes): Use
10984 inline_account_function_p.
10985 (inline_call): Use optimize attribution; use inline_account_function_p.
10986 (inline_transform): Use opt_for_fn.
10987 * ipa-inline.h (inline_account_function_p): Declare.
10988
10989 2015-01-20 Jakub Jelinek <jakub@redhat.com>
10990
10991 PR debug/64663
10992 * dwarf2out.c (decl_piece_node): Don't put bitsize into
10993 mode if bitsize <= 0.
10994 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
10995 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
10996 sizes and positions.
10997
10998 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
10999
11000 * config/nios2/nios2.c (nios2_asm_file_end): Implement
11001 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
11002 needed.
11003 (TARGET_ASM_FILE_END): Define.
11004
11005 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11006
11007 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
11008 (struct tune_params): Use the enum.
11009 * arm.c (arm_*_tune): Update.
11010 (arm_option_override): Update.
11011
11012 2015-01-20 Richard Biener <rguenther@suse.de>
11013
11014 PR ipa/64684
11015 * ipa-reference.c (add_static_var): Inline ...
11016 (analyze_function): ... here after splitting out from ...
11017 (is_proper_for_analysis): ... this.
11018
11019 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
11020
11021 PR target/64149
11022 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
11023 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
11024 replace the conditional with it's true branch.
11025 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
11026 (arm_lra_p): Remove.
11027
11028 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
11029
11030 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
11031
11032 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11033
11034 * config/tilegx/mul-tables.c: Move symtab.h include after
11035 coretypes.h include.
11036 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
11037 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
11038 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
11039 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
11040 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
11041
11042 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
11043
11044 PR bootstrap/64676
11045 Revert:
11046 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
11047
11048 PR rtl-optimization/64081
11049 * loop-iv.c (def_pred_latch_p): New function.
11050 (latch_dominating_def): Allow specific cases with non-single
11051 definitions.
11052 (iv_get_reaching_def): Likewise.
11053 (check_complex_exit_p): New function.
11054 (check_simple_exit): Use check_complex_exit_p to allow certain cases
11055 with exits not executing on any iteration.
11056
11057 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11058
11059 PR lto/45375
11060 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
11061 to set branch cost.
11062
11063 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11064
11065 PR lto/45375
11066 * i386.c (gate): Check flag_expensive_optimizations and
11067 optimize_size.
11068 (ix86_option_override_internal): Drop optimize_size condition
11069 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
11070 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
11071 MASK_PREFER_AVX128.
11072 (ix86_avx256_split_vector_move_misalign,
11073 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
11074 * sse.md (all uses of TARGET_PREFER_AVX128): Add
11075 optimize_insn_for_speed_p check.
11076
11077 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
11078
11079 * config/mips/mips.h (FP_ASM_SPEC): New define.
11080 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
11081 instead.
11082
11083 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
11084
11085 PR target/53988
11086 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
11087 nullptr for insn when reaching the first insn.
11088 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
11089 (sh_insn_operands_modified_between_p): Add nullptr check.
11090 (sh_find_extending_set_of_reg): Fix log message. Don't accept
11091 sign extending mem load if the insn contains any UNSPEC or
11092 UNSPEC_VOLATILE.
11093
11094 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11095
11096 * params.def (inline-unit-growth): Drop to 15%.
11097 * invoke.texi (inline-unit-growth): Document change.
11098
11099 2015-01-19 Martin Liska <mliska@suse.cz>
11100
11101 PR ipa/64668
11102 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
11103 function for second argument of OBJ_TYPE_REF.
11104
11105 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11106
11107 PR ipa/64218
11108 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
11109 whether function is an alias.
11110
11111 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
11112
11113 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
11114 cases.
11115
11116 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
11117
11118 PR rtl-optimization/64671
11119 * lra-remat.c (operand_to_remat): Don't consider jump and call
11120 insns.
11121
11122 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
11123
11124 PR target/59828
11125 * config/rs6000/default64.h: Include rs6000-cpus.def.
11126 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
11127 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
11128 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
11129 and POWER8.
11130 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
11131 POWER8.
11132 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
11133 pseudo-op to specify assembler dialect.
11134
11135 2015-01-19 Martin Liska <mliska@suse.cz>
11136
11137 PR ipa/64664
11138 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
11139 Handle safe potentially removed nodes during filtering.
11140
11141 2015-01-19 Martin Liska <mliska@suse.cz>
11142
11143 * doc/extend.texi (no_icf): Add new attribute description.
11144 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
11145 where the pass attempts to merge a function with no_icf attribute.
11146
11147 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11148
11149 PR target/64532
11150 * doc/md.texi (ARM Options): Document register constraints.
11151
11152 2015-01-19 Jiong Wang <jiong.wang@arm.com>
11153 Andrew Pinski <apinski@cavium.com>
11154
11155 PR target/64304
11156 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
11157 (ashl<mode>3): Don't expand if operands[2] is not constant.
11158
11159 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11160
11161 PR target/64448
11162 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
11163 Match xor-and-xor RTL pattern.
11164
11165 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
11166
11167 PR rtl-optimization/64081
11168 * loop-iv.c (def_pred_latch_p): New function.
11169 (latch_dominating_def): Allow specific cases with non-single
11170 definitions.
11171 (iv_get_reaching_def): Likewise.
11172 (check_complex_exit_p): New function.
11173 (check_simple_exit): Use check_complex_exit_p to allow certain cases
11174 with exits not executing on any iteration.
11175
11176 2015-01-19 Jakub Jelinek <jakub@redhat.com>
11177
11178 * common.opt (fgraphite): Fix a typo.
11179
11180 2015-01-19 Felix Yang <felix.yang@huawei.com>
11181
11182 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
11183 pattern.
11184 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
11185 uminp, smax_nanp, smin_nanp): New builtins.
11186 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
11187 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
11188 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
11189 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
11190 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
11191 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
11192 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
11193 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
11194 vpminnms_f32): Rewrite using builtin functions.
11195
11196 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
11197
11198 PR libgomp/64625
11199 * omp-low.c (offload_symbol_decl): Remove variable.
11200 (get_offload_symbol_decl): Remove function.
11201 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
11202 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
11203 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
11204 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
11205 BUILT_IN_GOACC_UPDATE don't pass it at all.
11206
11207 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
11208
11209 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
11210 callers.
11211
11212 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
11213
11214 * ipa-chkp.c (chkp_produce_thunks): Add early param
11215 to split thunks production into two passes. Keep
11216 'always_inline' function bodies after the first pass.
11217 (pass_data_ipa_chkp_early_produce_thunks): New.
11218 (pass_ipa_chkp_early_produce_thunks): New.
11219 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
11220 chkp_produce_thunks signature.
11221 (make_pass_ipa_chkp_early_produce_thunks): New.
11222 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
11223 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
11224 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
11225
11226 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11227
11228 * cgraph.c (cgraph_node::dump): Dump profile flags.
11229
11230 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
11231
11232 PR target/64652
11233 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
11234 reg appear first in the parallel.
11235
11236 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11237
11238 * ipa-reference.c (set_reference_optimization_summary,
11239 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
11240 disabled.
11241 (ignore_module_statics): New static var.
11242 (propagate_bits): If ipa-reference is disabled, do not look into local
11243 properties.
11244 (analyze_function): Disable analysis when ipa_reference is disabled.
11245 (generate_summary): Do not dump when reference is disabled;
11246 collect vars accessed from functions with ipa-reference disabled.
11247 (get_read_write_all_from_node): When ipa-reference is disabled, use the
11248 node flags.
11249 (gate): Enable for LTO.
11250 (ignore_edge_p): New function.
11251 (propagate): Skip functions w/o ipa-reference analysis.
11252 * optc-save-gen.awk: Handle optimize_debug correctly.
11253 * opth-gen.awk: Likewise.
11254 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
11255 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
11256 fira-share-save-slots, fira-share-spill-slots,
11257 fmodulo-sched-allow-regmoves, fpartial-inlining,
11258 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
11259 ftracer, ftree-parallelize-loops, fassociative-math,
11260 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
11261 Optimization
11262 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
11263 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
11264 Optimization.
11265 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
11266 Fix for IPA.
11267
11268 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
11269
11270 PR ipa/64378
11271 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
11272 flag correctly.
11273 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
11274
11275 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
11276
11277 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
11278 Remove duplicate option listings.
11279
11280 2015-01-18 Felix Yang <felix.yang@huawei.com>
11281
11282 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
11283 (autofdo_source_profile::get_callsite_total_count,
11284 function_instance::get_function_instance_by_decl,
11285 string_table::get_index, string_table::get_index_by_decl,
11286 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
11287 Fix comment typos. Reformatting and minor code rearrangement.
11288
11289 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11290
11291 * config/rs6000/rs6000.md (probe_stack): Delete.
11292 (probe_stack_address): New.
11293
11294 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11295
11296 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
11297 to test for 32-bit ABIs, not !TARGET_POWERPC64.
11298
11299 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
11300
11301 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
11302 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
11303 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
11304 snafu.
11305 (rs6000_libcall_value): Use the new function.
11306
11307 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
11308
11309 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
11310
11311 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
11312
11313 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
11314 implement a more precise life analysis for it during backward scan.
11315
11316 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11317
11318 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
11319
11320 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
11321
11322 PR rtl-optimization/52773
11323 * calls.c (emit_library_call_value): When pushing arguments use
11324 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
11325 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
11326 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
11327
11328 2015-01-17 Jeff Law <law@redhat.com>
11329
11330 PR rtl-optimization/32790
11331 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
11332 not ZERO_EXTEND in SET_DESTs.
11333
11334 2015-01-17 Alan Modra <amodra@gmail.com>
11335
11336 * cprop.c (do_local_cprop): Revert last change.
11337
11338 2015-01-16 DJ Delorie <dj@redhat.com>
11339 Nick Clifton <nickc@redhat.com>
11340
11341 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
11342 (addhi3_real): Likewise. Fix [HL+0] syntax.
11343 (subqi3_real): Likewise.
11344 (subhi3_real): Likewise.
11345 (cbranchqi4_real): Likewise. Allow saddr,#imm.
11346 (cbranchhi4_real): Likewise.
11347 (cbranchhi4_real_inverted): Likewise.
11348 (cbranchsi4_real_lt): Likewise.
11349 (cbranchsi4_real_ge): Likewise.
11350 (cbranchsi4_real_ge): Likewise.
11351 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
11352 (sub<mode>3_virt): Likewise.
11353 (cbranchqi4_virt): Likewise.
11354 (cbranchhi4_virt): Likewise.
11355 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
11356 always use '[reg+imm]' even when imm is zero.
11357 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
11358 (rl78_general_operand): New.
11359 (rl78_nonimmediate_operand): New.
11360 (rl78_nonfar_operand): Use them.
11361 (rl78_nonfar_nonimm_operand): Likewise.
11362 (rl78_stack_based_mem): Fix.
11363 * config/rl78/constraints.md (Ibqi): New.
11364 (IBqi): New.
11365 (Wsa): New.
11366 (Wsf): New.
11367 (Cs1): Fix.
11368 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
11369 (iorqi3): Likewise.
11370 (xorqi3): Likewise.
11371 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
11372
11373 * config/rl78/constrains (Qs8): New constraint.
11374 * config/rl78/rl78.c (rl78_flags_already_set): New function.
11375 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
11376 * config/rl78/rl78-real.md (update_Z): New attribute.
11377 Update patterns to set it.
11378 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
11379 shorter compare and branch sequence can be used.
11380 (cbranchhi4_real): Likewise.
11381 (cbranchhi4_real_inverted): Likewise.
11382
11383 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
11384 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
11385 address space.
11386 * config/rl78/rl78.c (rl78_get_name_encoding): New.
11387 (rl78_option_override): Allow -mes0 only if C.
11388 (characterize_address): Support subregs of symbol_refs.
11389 (rl78_addr_space_address_mode): Move. Add __near.
11390 (rl78_far_p): Likewise.
11391 (rl78_addr_space_pointer_mode): Likewise.
11392 (rl78_as_legitimate_address): Likewise.
11393 (rl78_addr_space_subset_p): Likewise.
11394 (rl78_addr_space_convert): Likewise.
11395 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
11396 symbols with -mes0.
11397 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
11398 addressing.
11399 (rl78_alloc_physical_registers_op1): Change logic to prefer
11400 symbol[BC] addressing.
11401 (frodata_section): New.
11402 (rl78_asm_init_sections): Initialize it.
11403 (rl78_select_section): Put __far readonly symbols in .frodata.
11404 (rl78_make_type_far): New.
11405 (rl78_insert_attributes): Force all readonly symbols to be
11406 __far when -mes0.
11407 (rl78_asm_out_integer): New.
11408 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
11409 * config/rl78/rl78.opt (-mes0): New.
11410
11411 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
11412 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11413 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
11414 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
11415 (rl78_saddr_p): New.
11416 (rl78_output_aligned_common): New.
11417 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
11418 (rl78_handle_saddr_attribute): New.
11419 (rl78_handle_naked_attribute): New.
11420 (rl78_attribute_table): Add saddr.
11421 (rl78_print_operand_1): Don't print '!' on saddr operands.
11422 (rl78_print_operand_1): Strip encodings.
11423 (rl78_sfr_p): New.
11424 (rl78_strip_name_encoding): New.
11425 (rl78_attrlist_to_encoding): New.
11426 (rl78_encode_section_info): New.
11427 (rl78_asm_init_sections): New.
11428 (rl78_select_section): New.
11429 (rl78_output_labelref): New.
11430 (rl78_output_aligned_common): New.
11431 (rl78_asm_out_integer): New.
11432 (rl78_asm_ctor_dtor): New.
11433 (rl78_asm_constructor): New.
11434 (rl78_asm_destructor): New.
11435
11436 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
11437 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
11438 (transcode_memory_rtx): Update.
11439 (rl78_expand_epilogue): Use A_REG instead of 0.
11440
11441 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11442
11443 * config/arm/arm-protos.h (struct tune_params): New field
11444 sched_autopref_queue_depth.
11445 * config/arm/arm.c (sched-int.h): Include header.
11446 (arm_first_cycle_multipass_dfa_lookahead_guard,)
11447 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
11448 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
11449 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
11450 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
11451 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
11452 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
11453 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
11454 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
11455 * config/arm/t-arm (arm.o): Update.
11456 * haifa-sched.c (update_insn_after_change): Update.
11457 (rank_for_schedule): Use auto-prefetcher model, if requested.
11458 (autopref_multipass_init): New static function.
11459 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
11460 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
11461 variable for debug dumps.
11462 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
11463 (autopref_multipass_dfa_lookahead_guard): New global function that
11464 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
11465 (init_h_i_d): Update.
11466 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
11467 * sched-int.h (enum autopref_multipass_data_status): New const enum.
11468 (autopref_multipass_data_): Structure for auto-prefetcher data.
11469 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
11470 (struct _haifa_insn_data:autopref_multipass_data): New field.
11471 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
11472 (autopref_multipass_dfa_lookahead_guard): Declare.
11473
11474 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11475
11476 * rtlanal.c (get_base_term): Handle SCRATCH.
11477
11478 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11479
11480 * config/aarch64/aarch64.c
11481 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
11482 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11483 * config/arm/arm.c
11484 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
11485 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
11486
11487 2015-01-17 Alan Modra <amodra@gmail.com>
11488
11489 * cprop.c (do_local_cprop): Disallow replacement of fixed
11490 hard registers.
11491
11492 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11493
11494 PR target/62066
11495 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
11496 early return 0.
11497
11498 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
11499
11500 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
11501 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
11502
11503 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11504
11505 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
11506 * config/arm/thumb1.md: ... Here.
11507
11508 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11509
11510 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
11511 TImode for TARGET_32BIT.
11512
11513 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11514
11515 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
11516 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
11517 as ...
11518 (rs6000_abi_word_mode): New function.
11519
11520 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11521
11522 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
11523 instead of UNITS_PER_WORD to describe the size of stack slots.
11524
11525 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11526
11527 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
11528 as rs6000_promote_function_mode. Move comment to there.
11529 (rs6000_promote_function_mode): New function.
11530
11531 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
11532
11533 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
11534 -mpowerpc64 is active.
11535
11536 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
11537
11538 PR middle-end/64353
11539 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
11540 virtuals on start.
11541
11542 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
11543
11544 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
11545 introduced in revision 219724.
11546
11547 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11548 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11549
11550 PR target/64263
11551 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
11552 destination is not a GP reg.
11553 (*movdi_aarch64): Likewise.
11554
11555 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
11556
11557 PR target/64623
11558 * config/rs6000/default64.h: Revert ISA change.
11559
11560 2015-01-16 Richard Biener <rguenther@suse.de>
11561
11562 PR middle-end/64614
11563 * tree-ssa-uninit.c: Include tree-cfg.h.
11564 (MAX_SWITCH_CASES): New define.
11565 (convert_control_dep_chain_into_preds): Handle switch statements.
11566 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
11567 (normalize_one_pred_1): Do not split bit-manipulations.
11568 Record (x & CST).
11569
11570 2015-01-16 Richard Biener <rguenther@suse.de>
11571
11572 PR tree-optimization/64568
11573 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
11574 complex load rewriting for TARGET_MEM_REFs.
11575
11576 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
11577
11578 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
11579
11580 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
11581
11582 PR target/64149
11583 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
11584 variable.
11585 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
11586 (aarch64_lra_p): Remove.
11587
11588 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
11589
11590 PR target/64363
11591 * ipa-chkp.h (chkp_instrumentable_p): New.
11592 * ipa-chkp.c: Include tree-inline.h.
11593 (chkp_instrumentable_p): New.
11594 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
11595 Fix processing of not instrumentable functions.
11596 (chkp_versioning): Use chkp_instrumentable_p. Warn about
11597 not instrumentable functions.
11598 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
11599 chkp_instrumentable_p.
11600 * tree-inline.h (copy_forbidden): New.
11601 * tree-inline.c (copy_forbidden): Not static anymore.
11602
11603 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11604
11605 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
11606 ptr1, ptr2 unused.
11607
11608 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
11609
11610 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
11611 type OP_OUT to OP_INOUT.
11612
11613 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
11614
11615 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
11616 (high x) y) to y if x and y have the same base.
11617
11618 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
11619
11620 * config/arm/cortex-a57.md: New.
11621 * config/aarch64/aarch64.md: Include it.
11622 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
11623 * config/aarch64/aarch64-tune.md: Regenerate.
11624
11625 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
11626
11627 PR target/64015
11628 * ccmp.c (expand_ccmp_next): New function.
11629 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
11630 and compare insn sequence.
11631 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
11632 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
11633 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
11634 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
11635 (*ccmp_ior): Changed to ccmp_ior<mode>.
11636 (cmp<mode>): New pattern.
11637 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
11638 parameters.
11639 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
11640
11641 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
11642
11643 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
11644 _mm256_bsrli_epi128): New.
11645 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
11646
11647 2015-01-15 Jiong Wang <jiong.wang@arm.com>
11648
11649 * expmed.c (store_bit_field_using_insv): Improve warning message.
11650 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
11651
11652 2015-01-15 Jiong Wang <jiong.wang@arm.com>
11653
11654 PR rtl-optimization/64011
11655 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
11656 there is partial overflow.
11657
11658 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11659
11660 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
11661 prototype.
11662 (nds32_expand_epilogue_v3pop): Likewise.
11663 * config/nds32/nds32.md (sibcall): Define this for sibling call
11664 optimization.
11665 (sibcall_register): Likewise.
11666 (sibcall_immediate): Likewise.
11667 (sibcall_value): Likewise.
11668 (sibcall_value_register): Likewise.
11669 (sibcall_value_immediate): Likewise.
11670 (sibcall_epilogue): Likewise.
11671 (epilogue): Pass false to indicate this is not a sibcall epilogue.
11672 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
11673 (nds32_expand_epilogue_v3pop): Likewise.
11674
11675 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11676
11677 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
11678 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
11679 (return_internal): New.
11680 (return): Define this named pattern.
11681 (simple_return): Define this named pattern.
11682 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
11683 pattern instead of unspec_volatile_func_return.
11684 (nds32_expand_epilogue_v3pop): Likewise.
11685 (nds32_can_use_return_insn): New function.
11686
11687 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11688
11689 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
11690 * config/nds32/nds32.md (pop25return): New.
11691 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
11692 pop25return pattern.
11693
11694 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11695
11696 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
11697 -mforbid-fp-as-gp, and -mex9 options.
11698
11699 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
11700
11701 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
11702 remove -mgp-direct option.
11703
11704 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11705
11706 * doc/invoke.texi (--param early-inlining-insns): Update default value.
11707 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
11708
11709 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11710
11711 * ipa-inline.c (inline_small_functions): Work around hints
11712 cache issue.
11713
11714 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
11715
11716 PR target/59710
11717 * doc/invoke.texi (Option Summary): Document new Nios II
11718 -mgpopt= syntax.
11719 (Nios II Options): Likewise.
11720 * config/nios2/nios2.opt: Add -mgpopt= option support.
11721 Modify existing -mgpopt and -mno-gpopt options to be aliases.
11722 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
11723 * config/nios2/nios2.c (nios2_option_override): Adjust
11724 -mgpopt defaulting.
11725 (nios2_in_small_data_p): Return true for explicit small data
11726 sections even with -G0.
11727 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
11728 option choices.
11729
11730 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11731
11732 PR ipa/64612
11733 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
11734 of comdat locals.
11735 (inline_call): Fix removal of aliases.
11736
11737 2015-01-15 Jakub Jelinek <jakub@redhat.com>
11738
11739 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
11740 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
11741 * opts.c (common_handle_option): Add -fsanitize=vptr.
11742 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
11743 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
11744 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
11745 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
11746 (ubsan_expand_vptr_ifn): New prototype.
11747 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
11748 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
11749 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
11750 expand_LOOP_VECTORIZED): Make argument nameless, remove
11751 ATTRIBUTE_UNUSED.
11752 (expand_UBSAN_VPTR): New function.
11753 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
11754 in fn spec.
11755 (UBSAN_VPTR): New internal function.
11756 * sanopt.c (tree_map_traits): Renamed to ...
11757 (sanopt_tree_map_traits): ... this.
11758 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
11759 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
11760 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
11761 (maybe_optimize_ubsan_vptr_ifn): New function.
11762 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
11763 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
11764 -fsanitize=vptr.
11765 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
11766 internal calls like pure functions for aliasing, even when they
11767 have other side-effects that prevent making them ECF_PURE.
11768 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
11769 (ubsan_expand_vptr_ifn): New function.
11770
11771 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
11772
11773 PR rtl-optimization/64110
11774 * stmt.c (parse_output_constraint): Process '^' and '$'.
11775 (parse_input_constraint): Ditto.
11776 * lra-constraints.c (process_alt_operands): Process the new
11777 constraints.
11778 * ira-costs.c (record_reg_classes): Process the new constraint
11779 '^'.
11780 * genoutput.c (indep_constraints): Add '^' and '$'.
11781 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
11782 * doc/md.texi: Add description of the new constraints.
11783
11784 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
11785 Bernd Schmidt <bernds@codesourcery.com>
11786 Cesar Philippidis <cesar@codesourcery.com>
11787 James Norris <jnorris@codesourcery.com>
11788 Tom de Vries <tom@codesourcery.com>
11789 Ilmir Usmanov <i.usmanov@samsung.com>
11790 Dmitry Bocharnikov <dmitry.b@samsung.com>
11791 Evgeny Gavrin <e.gavrin@samsung.com>
11792 Jakub Jelinek <jakub@redhat.com>
11793
11794 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
11795 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
11796 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
11797 New function types.
11798 * builtins.c: Include "gomp-constants.h".
11799 (expand_builtin_acc_on_device): New function.
11800 (expand_builtin, is_inexpensive_builtin): Handle
11801 BUILT_IN_ACC_ON_DEVICE.
11802 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
11803 New macros.
11804 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
11805 flag_openmp.
11806 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
11807 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
11808 i386/intelmic-offload.h.
11809 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
11810 to libgomp and its dependencies.
11811 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
11812 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
11813 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
11814 * config/ia64/hpux.h (LIB_SPEC): Likewise.
11815 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
11816 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
11817 * doc/generic.texi: Update for OpenACC changes.
11818 * doc/gimple.texi: Likewise.
11819 * doc/invoke.texi: Likewise.
11820 * doc/sourcebuild.texi: Likewise.
11821 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11822 GF_OMP_FOR_KIND_OACC_LOOP.
11823 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
11824 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
11825 GF_OMP_TARGET_KIND_OACC_UPDATE,
11826 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11827 Dump more data.
11828 * gimple.c: Update comments for OpenACC changes.
11829 * gimple.def: Likewise.
11830 * gimple.h: Likewise.
11831 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
11832 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11833 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
11834 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
11835 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
11836 appropriate place.
11837 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
11838 * gimplify.c: Include "gomp-constants.h".
11839 Update comments for OpenACC changes.
11840 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
11841 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
11842 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11843 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
11844 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11845 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11846 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
11847 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11848 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
11849 OMP_CLAUSE_SEQ.
11850 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
11851 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11852 OMP_CLAUSE_SET_MAP_KIND.
11853 (gimplify_oacc_cache): New function.
11854 (gimplify_omp_for): Handle OACC_LOOP.
11855 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
11856 OACC_DATA.
11857 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
11858 OACC_EXIT_DATA, OACC_UPDATE.
11859 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
11860 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
11861 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
11862 (gimplify_body): Consider flag_openacc next to flag_openmp.
11863 * lto-streamer-out.c: Include "gomp-constants.h".
11864 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
11865 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
11866 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
11867 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
11868 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
11869 (BUILT_IN_ACC_ON_DEVICE): New builtins.
11870 * omp-low.c: Include "gomp-constants.h".
11871 Update comments for OpenACC changes.
11872 (struct omp_context): Add reduction_map, gwv_below, gwv_this
11873 members.
11874 (extract_omp_for_data, use_pointer_for_field, install_var_field)
11875 (new_omp_context, delete_omp_context, scan_sharing_clauses)
11876 (create_omp_child_function, scan_omp_for, scan_omp_target)
11877 (check_omp_nesting_restrictions, lower_reduction_clauses)
11878 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
11879 Update for OpenACC changes.
11880 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
11881 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
11882 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
11883 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
11884 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
11885 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
11886 OMP_CLAUSE_MAP_*.
11887 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11888 Handle GF_OMP_FOR_KIND_OACC_LOOP.
11889 (expand_omp_target, lower_omp_target): Handle
11890 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
11891 GF_OMP_TARGET_KIND_OACC_UPDATE,
11892 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
11893 GF_OMP_TARGET_KIND_OACC_DATA.
11894 (pass_expand_omp::execute, execute_lower_omp)
11895 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
11896 flag_openmp.
11897 (offload_symbol_decl): New variable.
11898 (oacc_get_reduction_array_id, oacc_max_threads)
11899 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
11900 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
11901 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
11902 (oacc_gimple_assign, oacc_initialize_reduction_data)
11903 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
11904 functions.
11905 (is_targetreg_ctx): Remove function.
11906 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
11907 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
11908 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
11909 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
11910 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
11911 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
11912 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
11913 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
11914 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
11915 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
11916 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
11917 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
11918 * tree-core.h: Update comments for OpenACC changes.
11919 (enum omp_clause_map_kind): Remove.
11920 (struct tree_omp_clause): Change type of map_kind member from enum
11921 omp_clause_map_kind to unsigned char.
11922 * tree-inline.c: Update comments for OpenACC changes.
11923 * tree-nested.c: Likewise. Include "gomp-constants.h".
11924 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
11925 (convert_tramp_reference_stmt, convert_gimple_call): Update for
11926 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
11927 OMP_CLAUSE_SET_MAP_KIND.
11928 * tree-pretty-print.c: Include "gomp-constants.h".
11929 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
11930 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
11931 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
11932 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
11933 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
11934 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
11935 instead of OMP_CLAUSE_MAP_*.
11936 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
11937 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
11938 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
11939 * tree-streamer-in.c: Include "gomp-constants.h".
11940 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
11941 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
11942 * tree-streamer-out.c: Include "gomp-constants.h".
11943 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
11944 OMP_CLAUSE_MAP_*.
11945 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
11946 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
11947 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
11948 * tree.c (omp_clause_num_ops): Update accordingly.
11949 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
11950 Likewise.
11951 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
11952 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
11953 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
11954 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
11955 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
11956 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
11957 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
11958 (OMP_CLAUSE_SET_MAP_KIND): New macro.
11959 * varpool.c (varpool_node::get_create): Consider flag_openacc next
11960 to flag_openmp.
11961 * config/i386/intelmic-offload.h: New file.
11962 * config/nvptx/offload.h: Likewise.
11963
11964 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11965
11966 * explow.h: Remove duplicate contents.
11967 * dojump.h: Likewise.
11968
11969 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
11970
11971 * arm.c (arm_xgene_tune): Add default initializer for instruction
11972 fusion.
11973
11974 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
11975
11976 PR ipa/64068
11977 PR ipa/64559
11978 * ipa.c (symbol_table::remove_unreachable_nodes):
11979 Do not put abstract origins into boundary.
11980
11981 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
11982
11983 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
11984 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
11985
11986 2015-01-15 Steve Ellcey <sellcey@mips.com>
11987
11988 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
11989 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
11990 builtins.def, and chkp-builtins.def.
11991
11992 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
11993
11994 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
11995 ISA 2.7 (POWER8).
11996
11997 2015-01-15 Richard Biener <rguenther@suse.de>
11998
11999 PR tree-optimization/61743
12000 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
12001 information on PHIs for some simple cases.
12002
12003 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12004
12005 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
12006 Include xgene1.md.
12007 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
12008 * config/arm/arm-cores.def (xgene1): New entry.
12009 * config/arm/arm-tables.opt: Regenerate.
12010 * config/arm/arm-tune.md: Regenerate.
12011 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
12012
12013 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
12014
12015 * tree-if-conv.c: Include hash-map.h.
12016 (aggressive_if_conv): New variable.
12017 (fold_build_cond_expr): Add simplification of non-zero condition.
12018 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
12019 destination block is not always executed.
12020 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
12021 than two predecessors if AGGRESSIVE_IF_CONV is true.
12022 (if_convertible_stmt_p): Fix commentary.
12023 (all_preds_critical_p): New function.
12024 (has_pred_critical_p): New function.
12025 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
12026 BB can have more than two predecessors and all incoming edges can be
12027 critical.
12028 (predicate_bbs): Skip predication for loop exit block, use build2_loc
12029 to compute predicate for true edge.
12030 (find_phi_replacement_condition): Delete this function.
12031 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
12032 Allow interchange PHI arguments if EXTENDED is false.
12033 Change check that block containing reduction statement candidate
12034 is predecessor of phi-block since phi may have more than two arguments.
12035 (phi_args_hash_traits): New helper structure.
12036 (struct phi_args_hash_traits): New type.
12037 (phi_args_hash_traits::hash): New function.
12038 (phi_args_hash_traits::equal_keys): New function.
12039 (gen_phi_arg_condition): New function.
12040 (predicate_scalar_phi): Add handling of phi nodes with more than two
12041 arguments, delete COND and TRUE_BB arguments, insert body of
12042 find_phi_replacement_condition to predicate ordinary phi nodes.
12043 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
12044 delete call of find_phi_replacement_condition and invoke
12045 predicate_scalar_phi with two arguments.
12046 (insert_gimplified_predicates): Add assert that non-predicated block
12047 don't have statements to insert.
12048 (ifcvt_split_critical_edges): New function.
12049 (ifcvt_split_def_stmt): Likewise.
12050 (ifcvt_walk_pattern_tree): Likewise.
12051 (stmt_is_root_of_bool_pattern): Likewise.
12052 (ifcvt_repair_bool_pattern): Likewise.
12053 (ifcvt_local_dce): Likewise.
12054 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
12055 is copy of inner or outer loop force_vectorize field, invoke
12056 ifcvt_split_critical_edges, ifcvt_local_dce and
12057 ifcvt_repair_bool_pattern for aggressive if-conversion.
12058
12059 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
12060
12061 * config/aarch64/aarch64.md: Include xgene1.md.
12062 * config/aarch64/xgene1.md: New file.
12063
12064 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
12065
12066 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
12067 xgene1 (APM XGene-1) core definition.
12068 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
12069 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
12070 * doc/invoke.texi: Document -mcpu=xgene1.
12071
12072 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12073
12074 * dojump.h: New header file.
12075 * explow.h: Likewise.
12076 * expr.h: Remove includes.
12077 Move expmed.c prototypes to expmed.h.
12078 Move dojump.c prototypes to dojump.h.
12079 Move alias.c prototypes to alias.h.
12080 Move explow.c prototypes to explow.h.
12081 Move calls.c prototypes to calls.h.
12082 Move emit-rtl.c prototypes to emit-rtl.h.
12083 Move varasm.c prototypes to varasm.h.
12084 Move stmt.c prototypes to stmt.h.
12085 (saved_pending_stack_adjust): Move to dojump.h.
12086 (adjust_address): Move to explow.h.
12087 (adjust_address_nv): Move to emit-rtl.h.
12088 (adjust_bitfield_address): Likewise.
12089 (adjust_bitfield_address_size): Likewise.
12090 (adjust_bitfield_address_nv): Likewise.
12091 (adjust_automodify_address_nv): Likewise.
12092 * explow.c (expr_size): Move to expr.c.
12093 (int_expr_size): Likewise.
12094 (tree_expr_size): Likewise.
12095 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12096 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12097 * genemit.c (main): Generate includes statistics.h, real.h,
12098 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
12099 stmt.h.
12100 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
12101 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
12102 explow.h, emit-rtl.h, stmt.h.
12103 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
12104 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
12105 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
12106 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
12107 emit-rtl.h, varasm.h, stmt.h.
12108 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
12109 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
12110 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
12111 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
12112 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
12113 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
12114 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
12115 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
12116 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
12117 tm.h tree.h varasm.h vec.h wide-int.h.
12118 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12119 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12120 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
12121 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
12122 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
12123 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
12124 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
12125 * loop-iv.c: Likewise.
12126 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
12127 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
12128 statistics.h stmt.h tree.h varasm.h wide-int.h.
12129 * lra-constraints.c: Likewise.
12130 * lra-eliminations.c: Likewise.
12131 * lra-lives.c: Likewise.
12132 * lra-remat.c: Likewise.
12133 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12134 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
12135 statistics.h stmt.h tree.h varasm.h wide-int.h.
12136 * hw-doloop.c: Likewise.
12137 * ira-color.c: Likewise.
12138 * ira-emit.c: Likewise.
12139 * loop-doloop.c: Likewise.
12140 * loop-invariant.c: Likewise.
12141 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12142 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
12143 statistics.h stmt.h tree.h varasm.h wide-int.h.
12144 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
12145 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
12146 statistics.h stmt.h tree.h varasm.h wide-int.h.
12147 * combine-stack-adj.c: Likewise.
12148 * cse.c: Likewise.
12149 * ddg.c: Likewise.
12150 * ifcvt.c: Likewise.
12151 * ira-costs.c: Likewise.
12152 * jump.c: Likewise.
12153 * lra-coalesce.c: Likewise.
12154 * lra-spills.c: Likewise.
12155 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12156 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
12157 stmt.h varasm.h wide-int.h.
12158 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
12159 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12160 varasm.h.
12161 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
12162 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
12163 statistics.h stmt.h varasm.h wide-int.h.
12164 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
12165 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
12166 varasm.h wide-int.h.
12167 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
12168 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12169 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
12170 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
12171 statistics.h stmt.h.
12172 * config/tilepro/tilepro.c: Likewise.
12173 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
12174 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
12175 * config/pdp11/pdp11.c: Likewise.
12176 * config/xtensa/xtensa.c: Likewise.
12177 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
12178 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
12179 varasm.h.
12180 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12181 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12182 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
12183 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12184 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
12185 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
12186 * rtl-chkp.c: Likewise.
12187 * tree-chkp-opt.c: Likewise.
12188 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
12189 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
12190 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
12191 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12192 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12193 statistics.h stmt.h.
12194 * tree-vect-data-refs.c: Likewise.
12195 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
12196 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12197 rtl.h statistics.h stmt.h varasm.h.
12198 * internal-fn.c: Likewise.
12199 * ipa-icf-gimple.c: Likewise.
12200 * lto-section-out.c: Likewise.
12201 * tree-data-ref.c: Likewise.
12202 * tree-nested.c: Likewise.
12203 * tree-outof-ssa.c: Likewise.
12204 * tree-predcom.c: Likewise.
12205 * tree-pretty-print.c: Likewise.
12206 * tree-scalar-evolution.c: Likewise.
12207 * tree-ssa-strlen.c: Likewise.
12208 * tree-vect-loop.c: Likewise.
12209 * tree-vect-patterns.c: Likewise.
12210 * tree-vect-slp.c: Likewise.
12211 * tree-vect-stmts.c: Likewise.
12212 * tsan.c: Likewise.
12213 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12214 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
12215 stmt.h.
12216 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
12217 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12218 statistics.h stmt.h varasm.h.
12219 * loop-unroll.c: Likewise.
12220 * ubsan.c: Likewise.
12221 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
12222 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
12223 stmt.h varasm.h.
12224 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12225 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
12226 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
12227 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12228 statistics.h stmt.h.
12229 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
12230 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
12231 statistics.h stmt.h varasm.h.
12232 * gimple-match-head.c: Likewise.
12233 * lto-cgraph.c: Likewise.
12234 * lto-section-in.c: Likewise.
12235 * lto-streamer-in.c: Likewise.
12236 * lto-streamer-out.c: Likewise.
12237 * tree-affine.c: Likewise.
12238 * tree-cfg.c: Likewise.
12239 * tree-cfgcleanup.c: Likewise.
12240 * tree-if-conv.c: Likewise.
12241 * tree-into-ssa.c: Likewise.
12242 * tree-ssa-alias.c: Likewise.
12243 * tree-ssa-copyrename.c: Likewise.
12244 * tree-ssa-dse.c: Likewise.
12245 * tree-ssa-forwprop.c: Likewise.
12246 * tree-ssa-live.c: Likewise.
12247 * tree-ssa-math-opts.c: Likewise.
12248 * tree-ssa-pre.c: Likewise.
12249 * tree-ssa-sccvn.c: Likewise.
12250 * tree-tailcall.c: Likewise.
12251 * tree-vect-generic.c: Likewise.
12252 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12253 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
12254 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12255 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
12256 * varasm.c: Likewise.
12257 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12258 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
12259 varasm.h.
12260 * init-regs.c: Likewise.
12261 * ira.c: Likewise.
12262 * omp-low.c: Likewise.
12263 * stack-ptr-mod.c: Likewise.
12264 * tree-ssa-reassoc.c: Likewise.
12265 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12266 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
12267 varasm.h.
12268 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12269 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
12270 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12271 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
12272 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12273 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
12274 * tree-ssa-phiopt.c: Likewise.
12275 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12276 fixed-value.h hashtab.h real.h statistics.h stmt.h.
12277 * config/fr30/fr30.c: Likewise.
12278 * config/frv/frv.c: Likewise.
12279 * expr.c: Likewise.
12280 * final.c: Likewise.
12281 * optabs.c: Likewise.
12282 * passes.c: Likewise.
12283 * simplify-rtx.c: Likewise.
12284 * stmt.c: Likewise.
12285 * toplev.c: Likewise.
12286 * var-tracking.c: Likewise.
12287 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12288 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12289 * lower-subreg.c: Likewise.
12290 * postreload-gcse.c: Likewise.
12291 * ree.c: Likewise.
12292 * reginfo.c: Likewise.
12293 * store-motion.c: Likewise.
12294 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12295 fixed-value.h hashtab.h real.h stmt.h varasm.h.
12296 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12297 fixed-value.h hashtab.h statistics.h stmt.h.
12298 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12299 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
12300 * except.c: Likewise.
12301 * explow.c: Likewise.
12302 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12303 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
12304 varasm.h.
12305 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12306 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
12307 * tree-ssa-structalias.c: Likewise.
12308 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12309 fixed-value.h insn-config.h real.h statistics.h.
12310 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12311 fixed-value.h insn-config.h real.h statistics.h stmt.h.
12312 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12313 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12314 * cfgbuild.c: Likewise.
12315 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12316 fixed-value.h real.h rtl.h statistics.h stmt.h.
12317 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12318 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12319 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12320 fixed-value.h real.h statistics.h stmt.h.
12321 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
12322 fixed-value.h real.h statistics.h stmt.h varasm.h.
12323 * cprop.c: Likewise.
12324 * modulo-sched.c: Likewise.
12325 * postreload.c: Likewise.
12326 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12327 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
12328 statistics.h stmt.h varasm.h.
12329 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
12330 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12331 rtl.h statistics.h stmt.h varasm.h.
12332 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
12333 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
12334 varasm.h.
12335 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
12336 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
12337 varasm.h.
12338 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
12339 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
12340 varasm.h.
12341 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
12342 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12343 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12344 function.h real.h statistics.h stmt.h varasm.h.
12345 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12346 insn-config.h real.h statistics.h stmt.h.
12347 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
12348 statistics.h stmt.h.
12349 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
12350 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
12351 statistics.h stmt.h varasm.h.
12352 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
12353 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
12354 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12355 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
12356 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
12357 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
12358 statistics.h stmt.h varasm.h.
12359 * ipa-polymorphic-call.c: Likewise.
12360 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
12361 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12362 statistics.h stmt.h.
12363 * config/c6x/c6x.c: Likewise.
12364 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
12365 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
12366 statistics.h stmt.h varasm.h.
12367 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
12368 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
12369 stmt.h varasm.h.
12370 * ipa-split.c: Likewise.
12371 * tree-eh.c: Likewise.
12372 * tree-ssa-dce.c: Likewise.
12373 * tree-ssa-loop-niter.c: Likewise.
12374 * tree-vrp.c: Likewise.
12375 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
12376 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
12377 stmt.h.
12378 * config/nds32/nds32-fp-as-gp.c: Likewise.
12379 * config/nds32/nds32-intrinsic.c: Likewise.
12380 * config/nds32/nds32-isr.c: Likewise.
12381 * config/nds32/nds32-md-auxiliary.c: Likewise.
12382 * config/nds32/nds32-memory-manipulation.c: Likewise.
12383 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
12384 * config/nds32/nds32-predicates.c: Likewise.
12385 * config/nds32/nds32.c: Likewise.
12386 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
12387 fixed-value.h hashtab.h real.h statistics.h.
12388 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
12389 fixed-value.h hashtab.h real.h statistics.h stmt.h.
12390 * config/arm/arm.c: Likewise.
12391 * config/avr/avr.c: Likewise.
12392 * config/bfin/bfin.c: Likewise.
12393 * config/h8300/h8300.c: Likewise.
12394 * config/i386/i386.c: Likewise.
12395 * config/ia64/ia64.c: Likewise.
12396 * config/iq2000/iq2000.c: Likewise.
12397 * config/m32c/m32c.c: Likewise.
12398 * config/m32r/m32r.c: Likewise.
12399 * config/m68k/m68k.c: Likewise.
12400 * config/mcore/mcore.c: Likewise.
12401 * config/mep/mep.c: Likewise.
12402 * config/mips/mips.c: Likewise.
12403 * config/mn10300/mn10300.c: Likewise.
12404 * config/moxie/moxie.c: Likewise.
12405 * config/pa/pa.c: Likewise.
12406 * config/rl78/rl78.c: Likewise.
12407 * config/rx/rx.c: Likewise.
12408 * config/s390/s390.c: Likewise.
12409 * config/sh/sh.c: Likewise.
12410 * config/sparc/sparc.c: Likewise.
12411 * config/spu/spu.c: Likewise.
12412 * config/stormy16/stormy16.c: Likewise.
12413 * config/v850/v850.c: Likewise.
12414 * config/vax/vax.c: Likewise.
12415 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
12416 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
12417 * config/msp430/msp430.c: Likewise.
12418 * predict.c: Likewise.
12419 * value-prof.c: Likewise.
12420 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
12421 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
12422 * config/microblaze/microblaze.c: Likewise.
12423 * config/nios2/nios2.c: Likewise.
12424 * config/rs6000/rs6000.c: Likewise.
12425 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12426 insn-config.h real.h rtl.h statistics.h stmt.h.
12427 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
12428 insn-config.h real.h statistics.h stmt.h.
12429 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
12430 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
12431 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
12432 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
12433 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
12434 fixed-value.h real.h statistics.h stmt.h.
12435 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
12436 fixed-value.h statistics.h stmt.h.
12437 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
12438 stmt.h.
12439
12440 2015-01-15 Jakub Jelinek <jakub@redhat.com>
12441
12442 * gengtype.c (create_user_defined_type): Workaround
12443 -Wmaybe-uninitialized false positives.
12444 * cse.c (fold_rtx): Likewise.
12445 * loop-invariant.c (gain_for_invariant): Likewise.
12446
12447 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
12448
12449 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
12450 set the memory attributes in all cases but clear MEM_EXPR if need be.
12451
12452 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
12453
12454 PR tree-optimization/64434
12455 * cfgexpand.c (reorder_operands): New function.
12456 (expand_gimple_basic_block): Insert call of reorder_operands if
12457 optimized is true.
12458
12459 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
12460
12461 * config/mips/micromips.md (*swp): Remove explicit parallel.
12462 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
12463 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
12464 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
12465 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
12466 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
12467 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
12468 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
12469 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
12470 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
12471 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
12472 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
12473 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
12474 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
12475 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
12476 (mips_wrdsp): Likewise.
12477 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
12478 parallel.
12479 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
12480 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
12481 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
12482 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
12483 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
12484 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
12485 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
12486 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
12487 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
12488
12489 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12490
12491 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
12492 (mips_print_operand): Support 'y' to print exact log2 in decimal
12493 of a const_int.
12494 * config/mips/mips.h (ISA_HAS_LSA): New define.
12495 (ISA_HAS_DLSA): Likewise.
12496 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
12497 * config/mips/predicates.md (const_immlsa_operand): New predicate.
12498
12499 2015-01-15 Martin Liska <mliska@suse.cz>
12500
12501 PR target/64377
12502 * optc-save-gen.awk: Add support for array types.
12503
12504 2015-01-15 Richard Biener <rguenther@suse.de>
12505
12506 PR middle-end/64365
12507 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
12508 for MEM_REF access functions with the same base can never partially
12509 overlap.
12510
12511 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
12512
12513 * common.opt: New option -fstack-protector-explicit.
12514 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
12515 (stack_protect_decl_phase): Handle stack_protect attribute for
12516 explicit stack protection requests.
12517 (expand_used_vars): Similarly.
12518 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
12519 * doc/extend.texi: Add documentation for "stack_protect" attribute.
12520 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
12521
12522 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
12523
12524 PR target/53988
12525 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
12526 reg-reg copies.
12527 (sh_extending_set_of_reg): New struct.
12528 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
12529 sh_remove_reg_dead_or_unused_notes): New Declarations.
12530 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
12531 sh_find_extending_set_of_reg, sh_split_tst_subregs,
12532 sh_extending_set_of_reg::use_as_extended_reg): New functions.
12533 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
12534 convert to insn_and_split and use new function sh_split_tst_subregs.
12535
12536 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
12537
12538 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
12539 option.
12540 (Optimization Options): Move -fuse-ld documentation to...
12541 (Link Options): ...here.
12542
12543 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12544
12545 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
12546 offsets.
12547 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
12548 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
12549 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
12550 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
12551 instead of ZR for the memory operand of LL/SC.
12552 (compare_and_swap_12, sync_add<mode>): Likewise.
12553 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
12554 (sync_new_<optab>_12, sync_nand_12): Likewise.
12555 (sync_old_nand_12, sync_new_nand_12): Likewise.
12556 (sync_sub<mode>, sync_old_add<mode>): Likewise.
12557 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
12558 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
12559 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
12560 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
12561 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
12562 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
12563 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
12564 * doc/md.texi (ZC): Update description.
12565
12566 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
12567
12568 * builtins.c (expand_builtin_atomic_exchange): Remove error when
12569 memory model is CONSUME.
12570 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
12571 expand_builtin_atomic_store): Change invalid memory model errors to
12572 warnings.
12573 (expand_builtin_atomic_clear): Change invalid model errors to warnings
12574 and issue warning for CONSUME.
12575
12576 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
12577
12578 * lto-cgraph: Update function comments for
12579 lto_symtab_encoder_encode_*.
12580
12581 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
12582
12583 * Makefile.in (site.exp): Do not set ENABLE_LTO.
12584
12585 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
12586
12587 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
12588 * lto-cgraph.c (select_what_to_stream): Remove argument, use
12589 lto_stream_offload_p instead.
12590 * lto-streamer.h (select_what_to_stream): Remove argument.
12591 * passes.c (ipa_write_summaries): Likewise.
12592 * tree-pass.h (ipa_write_summaries): Likewise.
12593
12594 2015-01-14 Richard Biener <rguenther@suse.de>
12595
12596 PR tree-optimization/59354
12597 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
12598 groups larger than the slp group size as having gaps.
12599
12600 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
12601
12602 PR middle-end/59448
12603 * builtins.c (get_memmodel): Promote consume to acquire always.
12604
12605 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12606
12607 PR target/64386
12608 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
12609 V32HImode.
12610
12611 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12612
12613 PR target/64393
12614 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
12615 Enable AVX512BW.
12616 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
12617 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
12618 AVX512VBMI, as it implies AVX512BW.
12619
12620 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
12621
12622 PR target/64387
12623 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
12624 (vec_unpacks_hi_v16sf): Ditto.
12625
12626 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12627
12628 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
12629 is not available.
12630
12631 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12632
12633 * doc/invoke.texi (mapcs): Mention deprecation.
12634 (mapcs-frame): Likewise.
12635
12636 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
12637
12638 PR target/64453
12639 * config/arm/arm.c (callee_saved_reg_p): Define.
12640 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
12641 register is callee saved instead of !call_used_regs[reg].
12642 (thumb1_compute_save_reg_mask): Likewise.
12643
12644 2015-01-14 Hale Wang <hale.wang@arm.com>
12645
12646 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
12647 Cortex-M7.
12648
12649 2015-01-14 Richard Biener <rguenther@suse.de>
12650
12651 PR lto/64415
12652 * tree-inline.c (insert_debug_decl_map): Check destination
12653 function MAY_HAVE_DEBUG_STMTS.
12654 (insert_init_debug_bind): Likewise.
12655 (insert_init_stmt): Remove redundant check.
12656 (remap_gimple_stmt): Drop debug stmts if the destination
12657 function has var-tracking assignments disabled.
12658
12659 2015-01-14 Martin Liska <mliska@suse.cz>
12660
12661 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
12662 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
12663
12664 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665
12666 PR target/64460
12667 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
12668 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
12669
12670 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
12671
12672 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
12673 level from an ARCH; do not inject the default.
12674 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
12675 MIPS_ISA_LEVEL_SPEC.
12676 (MIPS_ISA_NAN2008_SPEC): Update comment.
12677 (BASE_DRIVER_SELF_SPECS): Likewise.
12678 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
12679 MIPS_DEFAULT_ISA_LEVEL_SPEC.
12680 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
12681 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
12682 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
12683
12684 2015-01-14 Richard Biener <rguenther@suse.de>
12685
12686 PR tree-optimization/64493
12687 PR tree-optimization/64495
12688 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
12689 assign the proper vectorized PHI to the inner loop exit PHIs.
12690
12691 2015-01-14 Joey Ye <joey.ye@arm.com>
12692
12693 * config/arm/arm.c (arm_compute_save_reg_mask):
12694 Do not save lr in case of tail call.
12695 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
12696
12697 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
12698
12699 * tree-vrp.c (check_array_ref): Emit more warnings
12700 for warn_array_bounds >= 2.
12701 * common.opt: New option -Warray-bounds=.
12702 * doc/invoke.texi: Document -Warray-bounds=.
12703
12704 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
12705
12706 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
12707 (mforbid-fp-as-gp): Remove.
12708 (mex9): Remove.
12709 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
12710 (nds32_symbol_load_store_p): Remove.
12711 (nds32_fp_as_gp_check_available): Clean up implementation.
12712 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
12713 cases.
12714 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
12715 fp-as-gp and ex9 cases.
12716
12717 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12718
12719 * tree-profile.c (init_ic_make_global_vars): Drop workaround
12720 for bintuils bug 14342.
12721 (init_ic_make_global_vars): Likewise.
12722 (gimple_init_edge_profiler): Likewise.
12723 (gimple_gen_ic_func_profiler): Likewise.
12724
12725 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12726
12727 * ipa-inline.c (inline_small_functions): Swap the operands in
12728 enum.
12729
12730 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12731
12732 PR ipa/64481
12733 * ipa-inline-analysis.c (node_growth_cache): Remove.
12734 (initialize_growth_caches): Do not initialize it.
12735 (free_growth_caches): Do not free it.
12736 (do_estimate_growth): Rename to ...
12737 (estimate_growth): ... this one; drop growth cache code.
12738 (growth_likely_positive): Always go the heuristics way.
12739 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
12740 (reset_edge_caches): Do not reset node growth.
12741 (heap_edge_removal_hook): Do not maintain cache.
12742 (inline_small_functions): Likewise; strenghten sanity check.
12743 (ipa_inline): Do not maintain caches.
12744 * ipa-inline.h (node_growth_cache): Remove.
12745 (do_estimate_growth): Remove to ...
12746 (estimate_growth): this one; remove inline version.
12747 (reset_node_growth_cache): Remove.
12748
12749 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
12750
12751 PR ipa/64565
12752 * ipa-inline.c (inline_small_functions): Update callee keys after
12753 resolving speculation
12754 (inline_small_functions): Always check monotonicity of the queue.
12755
12756 2015-01-13 Marek Polacek <polacek@redhat.com>
12757
12758 PR middle-end/64391
12759 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
12760
12761 2015-01-13 Jakub Jelinek <jakub@redhat.com>
12762
12763 PR rtl-optimization/64286
12764 * ree.c (combine_reaching_defs): Move part of comment earlier,
12765 remove !SCALAR_INT_MODE_P check.
12766 (add_removable_extension): Don't add vector mode
12767 extensions if all uses of the source register aren't the same
12768 vector extensions.
12769
12770 2015-01-13 Renlin Li <renlin.li@arm.com>
12771
12772 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
12773 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
12774
12775 2015-01-13 Martin Liska <mliska@suse.cz>
12776
12777 * ipa-icf.c (sem_function::equals_private): Call new functions
12778 cl_target_option_print_diff and cl_optimization_print_diff.
12779 * optc-save-gen.awk (cl_target_option_print_diff): New function.
12780 (cl_optimization_print_diff): Likewise.
12781 * opth-gen.awk: Likewise.
12782
12783 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
12784
12785 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
12786 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
12787 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
12788 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
12789 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
12790 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
12791
12792 2015-01-13 Andrew Pinski <apinski@cavium.com>
12793
12794 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
12795 instead of src mode.
12796
12797 2015-01-13 Richard Biener <rguenther@suse.de>
12798
12799 PR lto/64373
12800 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
12801 DECL_CONTEXT.
12802
12803 2015-01-13 Andrew Pinski <apinski@cavium.com>
12804
12805 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
12806 volatile mems.
12807 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
12808
12809 2015-01-13 Jakub Jelinek <jakub@redhat.com>
12810
12811 PR middle-end/63974
12812 * cfgexpand.c (expand_computed_goto): Don't call
12813 convert_memory_address here.
12814
12815 2015-01-13 Richard Biener <rguenther@suse.de>
12816
12817 PR tree-optimization/64406
12818 * tree-loop-distibution.c (pass_loop_distribution::execute):
12819 Reset the SCEV hashtable if we distributed anything.
12820
12821 2015-01-13 Richard Biener <rguenther@suse.de>
12822
12823 PR tree-optimization/64404
12824 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
12825 SLP types for CSEd loads.
12826
12827 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12828
12829 PR tree-optimization/64436
12830 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
12831 merge of two symbolic numbers for a bitwise OR to ...
12832 (perform_symbolic_merge): This. Also fix computation of the range and
12833 end of the symbolic number corresponding to the result of a bitwise OR.
12834
12835 2015-01-13 Richard Biener <rguenther@suse.de>
12836
12837 PR tree-optimization/64568
12838 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
12839 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
12840
12841 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12842
12843 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
12844 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
12845
12846 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12847
12848 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
12849 target-specific symbol_ref flag.
12850 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
12851 resides in rodata section.
12852 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
12853 (nds32_encode_section_info): New function.
12854
12855 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12856
12857 * config/nds32/nds32.md (call): Use pseudo instruction bal which
12858 clobbers TA_REGNUM if large code model is specified.
12859 (call_register): Likewise.
12860 (call_immediate): Likewise.
12861 (call_value): Likewise.
12862 (call_value_register): Likewise.
12863 (call_value_immediate): Likewise.
12864
12865 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12866
12867 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
12868 (TARGET_CMODEL_MEDIUM): New macro.
12869 (TARGET_CMODEL_LARGE): New macro.
12870 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
12871 code model setting in assembly code.
12872
12873 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12874
12875 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
12876 Remove MASK_GP_DIRECT flag.
12877 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
12878 one of the multilib default options.
12879 * config/nds32/nds32.opt (mgp-direct): Remove.
12880 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
12881 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
12882
12883 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
12884
12885 * config/nds32/nds32.opt (mcmodel): Add new option.
12886 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
12887 to describe code model.
12888
12889 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
12890
12891 PR target/64479
12892 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
12893
12894 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
12895
12896 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
12897 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
12898 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
12899 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
12900 __builtin_sh_set_fpscr.
12901
12902 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12903
12904 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
12905 after a funtion name just to indicate it is a function.
12906 ([-fsanitize-undefined-trap-on-error]): Likewise.
12907 ([-fdbg-cnt=]): Likewise.
12908 ([-mmemcpy]): Likewise.
12909 ([-mflush-func]): Likewise.
12910 ([-msynci]): Likewise.
12911
12912 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
12913
12914 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
12915 example.
12916
12917 2015-01-12 Jakub Jelinek <jakub@redhat.com>
12918
12919 PR tree-optimization/64563
12920 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
12921 instead of != VR_VARYING.
12922
12923 PR target/64513
12924 * config/i386/i386.c (ix86_expand_prologue): Add
12925 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
12926
12927 PR tree-optimization/64454
12928 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
12929 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
12930 for signed or [0, op1 - 1] for unsigned modulo.
12931 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
12932 even if op1 does not satisfy integer_pow2p.
12933
12934 PR other/64370
12935 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
12936
12937 2015-01-12 Jeff Law <law@redhat.com>
12938
12939 PR target/64461
12940 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
12941 (trunchiqi2, truncsihi2): Similarly.
12942
12943 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
12944 rather than calling F.
12945
12946 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
12947
12948 * tsan.c (instrument_expr): Use force_gimple_operand.
12949 Use may_be_nonaddressable_p instead of is_gimple_addressable.
12950
12951 2015-01-12 Richard Biener <rguenther@suse.de>
12952
12953 PR tree-optimization/64530
12954 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
12955 back dr1.
12956
12957 2015-01-12 Richard Biener <rguenther@suse.de>
12958
12959 PR middle-end/64357
12960 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
12961 latches properly.
12962
12963 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12964
12965 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
12966 Cortex-A17 tuning parameters.
12967 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
12968
12969 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12970
12971 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
12972 * config/arm/arm.c (arm_macro_fusion_p): New function.
12973 (arm_macro_fusion_pair_p): Likewise.
12974 (TARGET_SCHED_MACRO_FUSION_P): Define.
12975 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
12976 (ARM_FUSE_NOTHING): Likewise.
12977 (ARM_FUSE_MOVW_MOVT): Likewise.
12978 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
12979 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
12980 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
12981 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
12982 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
12983 arm_cortex_a5_tune): Specify fuseable_ops value.
12984
12985 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
12986
12987 PR bootstrap/64561
12988 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
12989 test for PIE with copy reloc.
12990 * configure: Regenerated.
12991
12992 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12993
12994 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
12995 in gen_rtx_REG.
12996 (arm_tls_descseq_addr): Likewise.
12997 (arm_gen_movmemqi): Likewise.
12998 (arm_expand_epilogue_apcs_frame): Likewise.
12999 (arm_expand_epilogue): Likewise.
13000 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
13001 in gen_rtx_REG.
13002
13003 2015-01-12 Martin Liska <mliska@suse.cz>
13004
13005 PR ipa/64550
13006 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
13007 volatility for correct operands.
13008
13009 2015-01-12 Martin Liska <mliska@suse.cz>
13010
13011 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13012 that a function is not leaf.
13013 (sem_function::compare_polymorphic_p): Likewise.
13014
13015 2015-01-12 Martin Liska <mliska@suse.cz>
13016
13017 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
13018 that a function is not leaf.
13019 (sem_function::compare_polymorphic_p): Likewise.
13020
13021 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13022
13023 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
13024 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
13025 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
13026 fold-const.h, tree-check.h.
13027
13028 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
13029
13030 PR ipa/63967
13031 PR ipa/64425
13032 * ipa-inline.c (compute_uninlined_call_time,
13033 compute_inlined_call_time): Use counts for extra precision when
13034 needed possible.
13035 (big_speedup_p): Fix formating.
13036 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
13037 (relative_time_benefit): Remove.
13038 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
13039 merge guessed and read profile paths.
13040 (inline_small_functions): Count only !optimize_size functions into
13041 initial size; be more lax about sanity check when profile is used;
13042 be sure to update inlined function profile when profile is read.
13043
13044 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
13045
13046 PR ipa/63470
13047 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
13048 cost when edge becomes direct.
13049 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
13050 is resolved or when introducing new speculation.
13051
13052 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
13053
13054 PR ipa/64551
13055 PR ipa/64552
13056 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
13057 '||' to fix typo issue.
13058
13059 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
13060 accept and return NULL.
13061
13062 2015-01-12 Martin Liska <mliska@suse.cz>
13063
13064 * cgraph.c (cgraph_edge::remove_callee): Move function to header
13065 file for being inlined.
13066 (cgraph_set_edge_callee): Delete.
13067 (cgraph_edge::redirect_callee): Move function to header file
13068 for being inlined.
13069 (cgraph_edge::make_direct): Use new function.
13070 (cgraph_edge::dump_edge_flags): New function created from
13071 static dump_edge_flags function.
13072 (cgraph_node::dump): Use new function.
13073 (cgraph_edge::verify_count_and_frequency): New function created
13074 from verify_edge_count_and_frequency.
13075 (cgraph_edge::verify_corresponds_to_fndecl): New function created
13076 from verify_edge_corresponds_to_fndecl.
13077 (verify_edge_corresponds_to_fndecl): Delete.
13078 (cgraph_node::verify_node): Use new function.
13079 * cgraph.h (cgraph_edge::set_callee): New function.
13080 (cgraph_edge::dump_edge_flags): Likewise.
13081 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
13082
13083 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
13084
13085 * ipa-utils.c (estimate_function_body_sizes): Do not
13086 free node params when called late with early=true.
13087
13088 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
13089
13090 * doc/md.texi (Instruction Patterns): Rewrite text for
13091 clarity.
13092 (Example): Likewise.
13093
13094 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
13095
13096 * doc/invoke.texi (Option Summary): Break long lines.
13097 [(-fdiagnostics-color)]: Put long literal in @smallexample
13098 instead of inline.
13099 [(-fsanitize-recover)]: Likewise.
13100 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
13101 [(-ffast-math)]: Likewise.
13102 [(--param max-inline-insns-recursive)]: Likewise.
13103 [(--param max-inline-recursive-depth)]: Likewise.
13104 [(-mno-text-section-literals)]: Likewise.
13105
13106 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
13107
13108 * doc/install.texi: Update for libgomp being renamed from "GNU
13109 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
13110 Runtime Library".
13111 * doc/sourcebuild.texi: Likewise.
13112
13113 2015-01-10 Anthony Green <green@moxielogic.com>
13114
13115 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
13116 mul.x availability for moxiebox configuration.
13117
13118 2015-01-09 Anthony Green <green@moxielogic.com>
13119
13120 * config/moxie/moxie.md: Tabify assembly output.
13121
13122 2015-01-09 Anthony Green <green@moxielogic.com>
13123
13124 * config/moxie/moxie.md (CC_REG): Correct register definition.
13125
13126 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
13127
13128 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
13129 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
13130 of log files.
13131
13132 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13133
13134 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
13135
13136 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
13137 Jakub Jelinek <jakub@redhat.com>
13138
13139 PR middle-end/64412
13140 * lto-streamer.h (lto_stream_offload_p): New declaration.
13141 * lto-streamer.c (lto_stream_offload_p): New variable.
13142 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
13143 at the same time as section_name_prefix.
13144 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
13145 if lto_stream_offload_p.
13146 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
13147 stream TREE_TARGET_OPTION if lto_stream_offload_p.
13148 (write_ts_function_decl_tree_pointers): Don't
13149 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
13150 * tree-streamer-in.c (unpack_value_fields): Don't stream
13151 TREE_TARGET_OPTION in if ACCEL_COMPILER.
13152 (lto_input_ts_function_decl_tree_pointers): Don't stream
13153 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
13154 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
13155 instead of section_name_prefix string comparisons.
13156
13157 2015-01-09 Jakub Jelinek <jakub@redhat.com>
13158
13159 PR rtl-optimization/64536
13160 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
13161 tablejumps.
13162
13163 2015-01-09 Michael Collison <michael.collison@linaro.org>
13164
13165 PR tree-optimization/64322
13166 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
13167 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
13168
13169 2015-01-09 Tom de Vries <tom@codesourcery.com>
13170
13171 PR rtl-optimization/64539
13172 * regcprop.c (kill_clobbered_values): Factor out of ...
13173 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
13174 instead of note_stores with kill_clobbered_value.
13175
13176 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13177
13178 * ginclude/unwind-arm-common.h: Revert previous commit.
13179
13180 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
13181
13182 * config.gcc (arm*-*-freebsd*): New configuration.
13183 * config/arm/freebsd.h: New file.
13184 * config.host: Add extra components for arm*-*-freebsd*.
13185 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
13186 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
13187
13188 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13189
13190 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
13191 for -mcpu=e6500.
13192 * config/rs6000/t-rtems: Add e6500 multilibs.
13193
13194 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13195
13196 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
13197 MPC8540.
13198
13199 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13200
13201 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
13202 MULTILIB_EXCEPTIONS.
13203
13204 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13205
13206 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
13207 MULTILIB_EXCEPTIONS.
13208
13209 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
13210
13211 * config/arm/t-rtems-eabi: Rename to...
13212 * config/arm/t-rtems: ...this.
13213 * config/arm/rtems-eabi.h: Rename to...
13214 * config/arm/rtems.h: ...this.
13215 * config.gcc (arm*-*-rtems*): Reflect changes above.
13216
13217 2015-01-09 Richard Biener <rguenther@suse.de>
13218
13219 PR tree-optimization/64410
13220 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
13221 on the LHS.
13222 (execute_update_addresses_taken): Deal with that.
13223 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
13224 loads/stores for complex variables.
13225
13226 2015-01-09 Martin Liska <mliska@suse.cz>
13227
13228 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
13229 name comparison.
13230 (func_checker::compare_memory_operand): New function.
13231 (func_checker::compare_operand): Split case to newly
13232 added functions.
13233 (func_checker::compare_cst_or_decl): New function.
13234 (func_checker::compare_gimple_call): Identify
13235 memory operands.
13236 (func_checker::compare_gimple_assign): Likewise.
13237 * ipa-icf-gimple.h: New function.
13238
13239 2015-01-09 Martin Liska <mliska@suse.cz>
13240
13241 PR ipa/64503
13242 * sreal.c (sreal::dump): Change unsigned format to signed for
13243 m_exp value.
13244 (sreal::to_double): Replace exp2 with scalbln.
13245
13246 2015-01-09 Martin Liska <mliska@suse.cz>
13247
13248 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
13249 * ipa-icf.c (sem_function::equals_private): Add support for target and
13250 (sem_item_optimizer::merge_classes): Remove redundant function
13251 optimization flags comparison.
13252 * tree.h (target_opts_for_fn): New function.
13253
13254 2015-01-09 Tom de Vries <tom@codesourcery.com>
13255
13256 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
13257
13258 2015-01-09 Kito Cheng <kito@0xlab.org>
13259
13260 PR rtl-optimization/64348
13261 * lra-constraints.c (split_reg): Fix caller-save store/restore
13262 instruction generation.
13263
13264 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
13265
13266 PR gcov-profile/61790
13267 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
13268 long long. Fallback to int64_t if host doesn't have long long and
13269 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
13270
13271 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13272
13273 PR tree-optimization/63989
13274 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
13275 from 1000 to 10000.
13276 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
13277 (get_stridx): If we don't have a record for certain SSA_NAME,
13278 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
13279 constant offset, call get_stridx_plus_constant.
13280 (get_stridx_plus_constant): New function.
13281 (zero_length_string): Don't use get_stridx here.
13282
13283 PR target/55023
13284 PR middle-end/64388
13285 * dse.c (struct insn_info): Mention frame_read set also
13286 before reload for tail calls on some targets.
13287 (scan_insn): Revert 2014-12-22 change. Set frame_read
13288 also before reload for tail calls if
13289 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
13290 instead of add_non_frame_wild_read for non-const/memset
13291 tail calls after reload.
13292
13293 2015-01-08 Jason Merrill <jason@redhat.com>
13294
13295 * ubsan.c (do_ubsan_in_current_function): New.
13296 (pass_ubsan::gate): Use it.
13297 * ubsan.h: Declare it.
13298 * convert.c (convert_to_integer): Use it.
13299
13300 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13301
13302 PR target/64338
13303 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
13304 compare_code when it is unconditionally overwritten afterwards.
13305 Use ix86_reverse_condition instead of reverse_condition. Don't
13306 change code if *reverse_condition* returned UNKNOWN and don't
13307 swap ct/cf and negate diff in that case.
13308
13309 2015-01-08 Mike Stump <mikestump@comcast.net>
13310
13311 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
13312 (pass_tsan_O0::gate): Likewise.
13313 * extend.texi (Function Attributes): Add no_sanitize_thread
13314 documentation.
13315
13316 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
13317
13318 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
13319 for registering builtins.
13320 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
13321 add -fopenmp to the argv_obstack used when invoking
13322 compile_for_target.
13323
13324 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
13325 add "-m32" or "-m64" to argv_obstack.
13326 (generate_host_descr_file): Likewise, when invoking host_compiler.
13327 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
13328 ld.
13329
13330 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
13331
13332 * config/sh/sh-mem.cc: Use constant as second operand when emitting
13333 tstsi_t insns.
13334
13335 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
13336
13337 PR target/55212
13338 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
13339 constant load if constant operand fits into I08.
13340
13341 2015-01-08 Jakub Jelinek <jakub@redhat.com>
13342
13343 PR sanitizer/64336
13344 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
13345 and TREE_THIS_VOLATILE for MEM_REFs.
13346 (build5_stat): Fix up initialization of TREE_READONLY and
13347 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
13348
13349 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
13350
13351 PR target/64533
13352 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
13353 of r for the second alternative of the destination operand.
13354
13355 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
13356
13357 PR target/36557
13358 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
13359
13360 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
13361
13362 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
13363 keywords.
13364 ([-fivar-visibility], [-fvisibility]): Likewise.
13365
13366 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
13367
13368 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
13369 the file where @code, @command, etc is more appropriate.
13370
13371 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
13372
13373 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
13374 of -mrecip= documentation.
13375
13376 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13377
13378 PR target/64505
13379 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
13380 correct reload handler if -m32 -mpowerpc64 is used.
13381
13382 2015-01-06 Tom de Vries <tom@codesourcery.com>
13383
13384 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
13385
13386 2015-01-08 Christian Bruel <christian.bruel@st.com>
13387
13388 PR target/64507
13389 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
13390
13391 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13392
13393 PR tree-optimization/63259
13394 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
13395 if optab exists for 16bit byteswap.
13396
13397 2015-01-06 Jakub Jelinek <jakub@redhat.com>
13398
13399 * opts.c (common_handle_option): Add support for
13400 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
13401 * doc/invoke.texi: Document -fno-sanitize=all,
13402 -f{,no-}sanitize-recover=all. Document that
13403 -fsanitize=float-cast-overflow is not enabled
13404 by -fsanitize=undefined. Fix up documentation
13405 of -f{,no-}sanitize-recover.
13406
13407 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
13408
13409 * config.gcc: Add Visium support.
13410 * configure.ac: Likewise.
13411 * configure: Regenerate.
13412 * doc/extend.texi (interrupt attribute): Add Visium.
13413 * doc/invoke.texi: Document Visium options.
13414 * doc/install.texi: Document Visium target.
13415 * doc/md.texi: Document Visium constraints.
13416 * common/config/visium: New directory.
13417 * config/visium: Likewise.
13418
13419 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13420
13421 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
13422 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
13423
13424 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
13425
13426 * combine.c (combine_validate_cost): Do not count the cost of a
13427 split I2 twice. Do not display it twice in the dump, either.
13428
13429 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
13430
13431 Revert parts of r219199.
13432 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
13433 <inttypes.h>.
13434 ([-Wtraditional]): Restore markup on <limits.h>.
13435
13436 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
13437
13438 PR c++/31397
13439 * doc/invoke.texi: Document -Wsuggest-override.
13440
13441 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
13442
13443 PR rtl-optimization/64287
13444 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
13445 (process_options): Disable flag_ipa_ra if profiling.
13446
13447 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
13448
13449 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
13450
13451 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
13452
13453 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
13454 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
13455 put under #if TARGET_LOOPS guard.
13456
13457 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
13458
13459 * config/i386/i386.c (output_387_binary_op): Use std::swap.
13460
13461 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
13462
13463 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
13464 * rtl.h (refers_to_regno_p): Add overload.
13465 * cse.c: Use it.
13466 * bt-load.c: Likewise.
13467 * combine.c: Likewise.
13468 * df-scan.c: Likewise.
13469 * sched-deps.c: Likewise.
13470 * config/s390/s390.c: Likewise.
13471 * config/m32r/m32r.c: Likewise.
13472 * config/rs6000/spe.md: Likewise.
13473 * config/rs6000/rs6000.c: Likewise.
13474 * config/pa/pa.c: Likewise.
13475 * config/stormy16/stormy16.c: Likewise.
13476 * config/cris/cris.c: Likewise.
13477 * config/arc/arc.md: Likewise.
13478 * config/arc/arc.c: Likewise.
13479 * config/sh/sh.md: Likewise.
13480 * config/sh/sh.c: Likewise.
13481 * config/frv/frv.c: Likewise.
13482
13483 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13484
13485 PR sanitizer/64265
13486 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
13487 call as cleanup of the whole body.
13488 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
13489 * tsan.c (replace_func_exit): New function.
13490 (instrument_func_exit): Moved earlier.
13491 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
13492 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
13493 been found.
13494 (tsan_pass): Don't call instrument_func_exit.
13495 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
13496 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
13497 inlining.
13498
13499 PR sanitizer/64344
13500 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
13501 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
13502 it to libubsan handler instead of EXPR. Fold comparisons earlier,
13503 if the result is integer_zerop, return NULL_TREE.
13504 * convert.c (convert_to_integer): Pass expr as ARG.
13505
13506 PR tree-optimization/64465
13507 * tree-inline.c (redirect_all_calls): During inlining
13508 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
13509 changed the stmt to a non-throwing call.
13510
13511 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
13512
13513 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
13514 etc markup throughout the file.
13515
13516 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13517
13518 Enable experimental TSAN support for Ada.
13519 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
13520
13521 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13522
13523 PR tree-optimization/64494
13524 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
13525 clear SSA_NAME_ANTI_RANGE_P flag.
13526
13527 2015-01-05 Marek Polacek <polacek@redhat.com>
13528
13529 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
13530
13531 2015-01-05 Jakub Jelinek <jakub@redhat.com>
13532
13533 Update copyright years.
13534
13535 * gcc.c (process_command): Update copyright notice dates.
13536 * gcov-dump.c: Ditto.
13537 * gcov.c: Ditto.
13538 * doc/cpp.texi: Bump @copying's copyright year.
13539 * doc/cppinternals.texi: Ditto.
13540 * doc/gcc.texi: Ditto.
13541 * doc/gccint.texi: Ditto.
13542 * doc/gcov.texi: Ditto.
13543 * doc/install.texi: Ditto.
13544 * doc/invoke.texi: Ditto.
13545
13546 * auto-profile.c, auto-profile.h: Fix up Copyright line.
13547
13548 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
13549
13550 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
13551 verb tense, etc.
13552 ([-fvtable-verify], [-fvtv-debug]): Likewise.
13553 ([-Wabi]): Likewise.
13554 ([-fmessage-length]): Likewise.
13555 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
13556 ([-Wno-discarded-qualifiers]): Likewise.
13557 ([-Wnodiscarded-array-qualifiers]): Likewise.
13558 ([-Wno-virtual-move-assign]): Likewise.
13559 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
13560 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
13561 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
13562 ([-fsanitize-undefined-trap-on-error]): Likewise.
13563 ([-floop-interchange]): Likewise.
13564 ([-ftree-coalesce-inlined-vars]): Likewise.
13565 ([-fvect-cost-model]): Likewise.
13566 ([-flto]): Likewise.
13567 ([--param]): Likewise.
13568 (Spec Files): Likewise.
13569 ([-mstrict-align]): Likewise.
13570 ([-mfix-cortex-a53-835769]): Likewise.
13571 ([-march], [-mtune]): Likewise.
13572 ([-mpic-register]): Likewise.
13573 ([-munaligned-access]): Likewise.
13574 ([-msp8]): Likewise.
13575 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
13576 (AVR Built-in Macros): Likewise.
13577 ([-mpreferred-stack-boundary]): Likewise.
13578 ([-mtune-crtl]): Likewise.
13579 ([-mashf]): Likewise.
13580 ([-mmcu=]): Likewise.
13581 ([-minrt]): Likewise.
13582 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
13583 ([-mupper-regs]): Likewise.
13584 ([-matomic-model]): Likewise.
13585 ([-mdiv]): Likewise.
13586 ([-mzdcbranch]): Likewise.
13587 ([-mdisable-callt]): Likewise.
13588 ([-msoft-float]): Likewise.
13589 ([-m8byte-align]): Likewise.
13590 ([-fstack-reuse]): Likewise.
13591
13592 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13593
13594 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
13595 Fix markup, light copy-editing.
13596 ([-fauto-profile]): Rewrite to fix formatting and content
13597 problems.
13598
13599 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13600
13601 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
13602 Copy-edit description.
13603 ([-fisolate-erroneous-paths-attribute]): Likewise.
13604 * common.opt (fisolate-erroneous-paths-dereference):
13605 Copy-edit description.
13606 (fisolate-erroneous-paths-attribute): Likewise.
13607
13608 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13609
13610 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
13611 tidy grammar.
13612
13613 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
13614
13615 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
13616 ([-fvtv-debug]): Likewise.
13617 ([-Wc++-compat]): Likewise.
13618 ([-Wc++11-compat]): Likewise.
13619 ([-Wc++14-compat]): Likewise.
13620 ([-Wno-sized-deallocation]): Likewise.
13621 ([-femit-class-debug-always]): Likewise.
13622 ([-femit-struct-debug-detailed]): Likewise.
13623 ([-fno-keep-inline-dllexport]): Likewise.
13624 ([-fira-algorithm]): Likewise.
13625 ([-fira-region]): Likewise.
13626 ([-flra-remat]): Likewise.
13627 ([-fipa-ra]): Likewise.
13628 ([-fhoist-adjacent-loads]): Likewise.
13629 ([-fisolate-erroneous-paths-dereference]): Likewise.
13630 ([-fisolate-erroneous-paths-attribute]): Likewise.
13631 ([-ftree-switch-conversion]): Likewise.
13632 ([-ftree-tail-merge]): Likewise.
13633 ([-ftree-loop-if-convert]): Likewise.
13634 ([-ftree-loop-if-convert-stores]): Likewise.
13635 ([-ftree-loop-distribution]): Likewise.
13636 ([-ftree-loop-distribute-patterns]): Likewise.
13637 ([-flto-compression-level]): Likewise.
13638 ([-flto-report]): Likewise.
13639 ([-flto-report-wpa]): Likewise.
13640 ([-fuse-linker-plugin]): Likewise.
13641 ([-mfix-cortex-a53-835769]): Likewise.
13642 ([-mno-fix-cortex-a53-835769]): Likewise.
13643 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
13644 explicit listing; add a note to the discussion indicating they
13645 exist. Reorder table to group similar options. Add missing
13646 @opindex entries. Add @need commands throughout the table to
13647 allow it to be split across multiple pages.
13648 ([-m8bit-idiv]): Fix @opindex.
13649 ([-mavx256-split-unaligned-load]): Likewise.
13650 ([-mavx256-split-unaligned-store]): Likewise.
13651 ([-mstack-protector-guard]): Likewise.
13652 ([-mcpu=]): Likewise.
13653 ([-mcpu]): Likewise.
13654 ([-mpointer-size=]): Likewise.
13655
13656 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
13657
13658 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
13659 instead of `m' constraint. Likewise for unnamed movb comparison
13660 patterns using reg_before_reload_operand predicate.
13661 * config/pa/predicates.md (reg_before_reload_operand): Tighten
13662 predicate to reject register index and LO_SUM DLT memory forms
13663 after reload.
13664
13665 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
13666
13667 * doc/invoke.texi (Option Summary): Fix spelling of
13668 -fdevirtualize-at-ltrans.
13669 ([-fdevirtualize]): Fix markup.
13670 ([-fdevirtualize-speculatively]): Fix typo.
13671 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
13672 implementor-speaky.
13673 * common.opt (fdevirtualize-at-ltrans): Likewise.
13674 * ipa-devirt.c: Fix typos in comments throughout the file.
13675 (ipa_devirt): Fix typos in format strings for dump output.
13676
13677 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
13678
13679 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
13680 discussion of defaults, light copy-editing.
13681
13682 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13683
13684 * tsan.c (instrument_expr): corrected previous checkin.
13685
13686 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
13687
13688 Instrument bit field and unaligned accesses for TSAN.
13689 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
13690 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
13691 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
13692 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
13693 unaligned memory regions.
13694
13695 2015-01-01 Anthony Green <green@moxielogic.com>
13696
13697 * config/moxie/predicates.md (moxie_general_movsrc_operand):
13698 Restrict move source register offsets to 16 bits.
13699 \f
13700 Copyright (C) 2015 Free Software Foundation, Inc.
13701
13702 Copying and distribution of this file, with or without modification,
13703 are permitted in any medium without royalty provided the copyright
13704 notice and this notice are preserved.