re PR target/64408 (fr30-elf ICE in extract_insn, at recog.c:2202)
[gcc.git] / gcc / ChangeLog
1 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
2
3 * config/arm/arm-cores.def: Add cortex-a72 and
4 cortex-a72.cortex-a53.
5 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
6 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
7 * config/arm/arm-tune.md: Regenerate.
8 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
9 "cortex-a72.cortex-a53".
10 * doc/invoke.texi (ARM Options/-mtune): Likewise.
11
12 2015-02-04 Nick Clifton <nickc@redhat.com>
13
14 PR target/64408
15 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
16 of accepted codes.
17 (nonimmediate_di_operand): Likewise.
18
19 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
20 prefixes of known F5 using MSP430 MCUs.
21
22 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23
24 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
25 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
26 instead of __builtin_sqrt.
27
28 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
29
30 * varasm.c (do_assemble_alias): Follow transparent alias
31 chain for target.
32 (default_assemble_visibility): Follow transparent alias
33 chain for decl name.
34
35 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
36
37 PR middle-end/62103
38 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39 to compute size of referenced value in the constant case.
40
41 2015-02-03 Jakub Jelinek <jakub@redhat.com>
42
43 PR rtl-optimization/64756
44 * cse.c (invalidate_dest): New function.
45 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
46 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
47 invalidate and do not record it.
48
49 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
50
51 PR target/64660
52 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
53 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
54 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
55 atomic_nand<mode>_soft_tcb): New insns.
56 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
57 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
58 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
59 Split into atomic_not_fetchsi_hard if operands[0] is unused.
60 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
61 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
62 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
63 atomic_not<mode>_hard if operands[0] is unused.
64 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
65 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
66 if operands[0] is unused.
67 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
68 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
69 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
70 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
71 unused.
72 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
73 into atomic_not<mode>_soft_tcb if operands[0] is unused.
74 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
75 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
76 if operands[0] is unused.
77 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
78 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
79 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
80 atomic_nand_fetchsi_hard if operands[0] is unused.
81 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
82 atomic_nand<mode>_hard if operands[0] is unused.
83 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
84 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
85 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
86 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
87 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
88 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
89 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
90 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
91 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
92 atomic_not<mode>_hard if operands[0] is unused.
93 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
94 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
95 unused.
96 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
97 into atomic_not<mode>_soft_tcb if operands[0] is unused.
98 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
99 atomic_nand<mode>_hard if operands[0] is unused.
100 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
101 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
102
103 2015-02-03 David Malcolm <dmalcolm@redhat.com>
104
105 PR jit/64810
106 * Makefile.in (GCC_OBJS): Add gcc-main.o.
107 * gcc-main.c: New file, containing "main" taken from gcc.c.
108 * gcc.c (do_self_spec): Free decoded_options.
109 (class driver): Move declaration to gcc.h.
110 (main): Move declaration and implementation to new file
111 gcc-main.c.
112 (driver_get_configure_time_options): New function.
113 * gcc.h (class driver): Move this declaration here, from
114 gcc.c.
115 (driver_get_configure_time_options): New declaration.
116
117 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
118
119 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
120 cross-module inlining.
121 * cgraph.h (cgraph_node): Add flag merged.
122 * ipa-icf.c (sem_function::merge): Maintain it.
123
124 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
125
126 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
127 instead of OBJECT_P.
128
129 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
130
131 PR target/62631
132 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
133 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
134 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
135 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
136
137 2015-02-03 Jakub Jelinek <jakub@redhat.com>
138
139 PR other/63504
140 * combine.c (reg_n_sets_max): New variable.
141 (can_change_dest_mode, reg_nonzero_bits_for_combine,
142 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
143 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
144 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
145 (rest_of_handle_combine): Initialize reg_n_sets_max.
146
147 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
148
149 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
150 if some always_inline was inlined, apply changes before inlining
151 heuristically.
152
153 2015-02-02 David Malcolm <dmalcolm@redhat.com>
154
155 PR jit/64810
156 * config/arm/arm.c (arm_option_override): Set
157 arm_selected_arch/cpu/tune to NULL on entry.
158
159 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
160 Andrew Pinski <pinskia@gcc.gnu.org>
161 Jakub Jelinek <jakub@gcc.gnu.org>
162
163 PR target/64231
164 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
165 integer typing for small model. Use IN_RANGE.
166
167 2015-02-02 Richard Biener <rguenther@suse.de>
168
169 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
170 * tree-vrp.c (vrp_valueize_1): Likewise.
171
172 2015-02-02 Alan Modra <amodra@gmail.com>
173
174 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
175 than mem for toc_restore.
176 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
177 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
178 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
179
180 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
181
182 PR target/64047
183 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
184 explicit default options.
185
186 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
187
188 PR ipa/64872
189 * ipa-utils.c (ipa_merge_profiles): Add release argument.
190 * ipa-icf.c (sem_function::merge): Do not release body when merging.
191 * ipa-utils.h (ipa_merge_profiles): Update prototype.
192
193 2015-02-01 Jakub Jelinek <jakub@redhat.com>
194
195 PR debug/64817
196 * cfgexpand.c (deep_ter_debug_map): New variable.
197 (avoid_deep_ter_for_debug): New function.
198 (expand_debug_expr): If TERed SSA_NAME is in
199 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
200 instead of trying to expand SSA_NAME's def stmt.
201 (expand_debug_locations): When expanding debug bind
202 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
203 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
204 value.
205 (pass_expand::execute): Call avoid_deep_ter_for_debug on
206 all debug bind stmts. Delete deep_ter_debug_map after
207 expand_debug_location if non-NULL and clear it.
208
209 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
210
211 PR target/64851
212 * config/sh/sync.md (atomic_fetch_notsi_hard,
213 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
214 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
215 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
216 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
217 atomic_not_fetch<mode>_soft_imask): New insns.
218
219 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
220
221 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
222 (rank_for_schedule_debug): Split from ...
223 (rank_for_schedule): ... this.
224 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
225 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
226
227 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
228
229 * doc/md.texi (Machine Constraints): Alphabetize table by target.
230 * doc/extend.texi (x86 Variable Attributes): Move section to
231 correct alphabetization after renaming.
232 (x86 Type Attributes): Likewise.
233 (Target Builtins): Re-alphabetize menu.
234 (x86 Built-in Functions): Move section to correct alphabetization
235 after renaming.
236 (x86 transactional memory intrinsics): Likewise.
237 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
238 and x86 Windows Options in table and menu.
239 (x86 Options): Move section to correct alphabetization after
240 renaming.
241 (x86 Windows Options): Likewise.
242
243 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
244
245 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
246 preferred names of the architecture and its 32- and 64-bit
247 variants.
248 * doc/invoke.texi: Likewise.
249 * doc/md.texi: Likewise.
250
251 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
252
253 PR target/64882
254 * config/i386/predicates.md (address_no_seg_operand): Reject
255 non-CONST_INT_P operands in invalid mode.
256
257 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
258
259 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
260 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
261 * config/i386/predicates.md (address_no_seg_operand): Call
262 address_operand with VOIDmode.
263 (vsib_address_operand): Ditto.
264 (address_mpx_no_base_operand): Ditto.
265 (address_mpx_no_index_operand): Ditto.
266
267 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
268
269 PR target/64688
270 * lra-constraints.c (original_subreg_reg_mode): New.
271 (simplify_operand_subreg): Try to simplify subreg of const. Use
272 original_subreg_reg_mode for it.
273 (swap_operands): Update original_subreg_reg_mode.
274 (curr_insn_transform): Set up original_subreg_reg_mode.
275
276 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
277
278 PR target/64617
279 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
280 function.
281 (process_alt_operands): Use it.
282 (curr_insn_transform): Check the optional reload pseudo class is
283 ok for the mode.
284
285 2015-01-30 Joseph Myers <joseph@codesourcery.com>
286
287 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
288 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
289 prototype.
290 * toplev.h (init_asm_output): Update comment on use of
291 UNKNOWN_LOCATION with fatal_error.
292 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
293 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
294 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
295 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
296 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
297 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
298 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
299 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
300 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
301 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
302 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
303 fatal_error changed to pass input_location as first argument.
304
305 2015-01-30 Martin Liska <mliska@suse.cz>
306
307 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
308 in #pragma GCC diagnostic guards.
309
310 2015-01-30 Richard Biener <rguenther@suse.de>
311
312 PR tree-optimization/64829
313 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
314 not add a widening conversion pattern but hand off extra
315 widenings to callers.
316 (vect_recog_widen_mult_pattern): Handle extra widening produced
317 by vect_handle_widen_op_by_const.
318 (vect_recog_widen_shift_pattern): Likewise.
319 (vect_pattern_recog_1): Remove excess vertical space in dumping.
320 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
321 (vect_init_vector_1): Likewise.
322 (vect_get_vec_def_for_operand): Likewise.
323 (vect_finish_stmt_generation): Likewise.
324 (vectorizable_load): Likewise.
325 (vect_analyze_stmt): Likewise.
326 (vect_is_simple_use): Likewise.
327
328 2015-01-29 Jeff Law <law@redhat.com>
329
330 * combine.c (try_combine): Fix typo in comment.
331
332 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
333
334 PR target/64580
335 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
336 (rs6000_stack_info): Add assert.
337 (rs6000_output_savres_externs): New function, split off from...
338 (rs6000_output_function_prologue): ... here. Do not call it for
339 thunks.
340
341 2015-01-29 Jeff Law <law@redhat.com>
342
343 PR target/15184
344 * combine.c (try_combine): If I0 is a memory load and I3 a store
345 to a related address, increase the "goodness" of doing a 4-insn
346 combination with I0-I3.
347 (make_field_assignment): Handle SUBREGs in the ior+and case.
348
349 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
350
351 PR tree-optimization/64746
352 * tree-if-conv.c (mask_exists): New function.
353 (predicate_mem_writes): Save created mask with given size for further
354 use.
355 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
356 (ifcvt_repair_bool_pattern): Collect all statements that are root
357 of bool pattern and use iterative algorithm to remove multiple uses
358 of predicates, display number of required iterations.
359
360 2015-01-29 Richard Biener <rguenther@suse.de>
361
362 PR tree-optimization/64853
363 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
364 stmt will get simulated again.
365 * tree-ssa-ccp.c (valueize_op_1): Likewise.
366
367 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
368
369 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
370 return_in_pc. Remove redundant assignments.
371 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
372 (arm_expand_epilogue): Don't compare boolean with true in if condition.
373
374 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
375
376 * config/i386/i386.c (ix86_mode_after): Make static.
377
378 2015-01-29 Richard Biener <rguenther@suse.de>
379
380 PR tree-optimization/64844
381 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
382 dump cost model analysis.
383 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
384 Do not register adjusted load/store costs here.
385
386 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
387 Uros Bizjak <ubizjak@gmail.com>
388
389 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
390 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
391 using x86_use_pseudo_pic_reg.
392 * config/i386/i386.c (ix86_conditional_register_usage): Remove
393 support for fixed PIC register.
394 (ix86_use_pseudo_pic_reg): Not static any more.
395
396 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
397
398 PR middle-end/64805
399 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
400 to avoid error in cgraph node verification.
401
402 2015-01-29 Marek Polacek <polacek@redhat.com>
403
404 * doc/standards.texi: Reflect that the default for C is gnu11.
405
406 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
407
408 PR target/64761
409 * reorg.c (switch_text_sections_between_p): New function.
410 (relax_delay_slots): Call it when testing if the jump insn
411 is removable. Use targetm.can_follow_jump when testing if
412 the conditional branch can follow an unconditional jump.
413
414 2015-01-27 Caroline Tice <cmtice@google.com>
415
416 Committing VTV Cywin/Ming patch for Patrick Wollgast
417 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
418 if -fvtable-verify=preinit/std is used.
419 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
420 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
421 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
422 if -fvtable-verify=preinit/std is used.
423 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
424 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
425 if -fvtable-verify=preinit/std is used.
426 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
427 * config/i386/mingw32.h (LIB_SPEC): Likewise.
428 * varasm.c (assemble_variable): Add code to properly set the comdat
429 section and name for the .vtable_map_vars section in case the
430 target is PE or COFF.
431
432 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
433
434 PR ipa/64801
435 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
436 make sane BB profile.
437 (cgraph_node::expand_thunk): Make sane BB profile.
438 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
439 * cgraph.h (init_lowered_empty_function): Update prototype.
440 * config/i386/i386.c (make_resolver_func): Update call.
441 * predict.c (gate): Disable branch prediction pass if
442 profile is already there.
443
444 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
445
446 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
447 * opth-gen.awk: Likewise.
448 * common.opt: Mark flag_fp_contract_mode as Optimization.
449
450 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
451
452 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
453 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
454
455 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
456
457 PR target/64659
458 * config/sh/predicates.md (atomic_arith_operand,
459 atomic_logical_operand): Remove.
460 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
461 (atomic_arith_operand_0): New predicate.
462 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
463 Use atomic_arith_operand_0 for input values.
464 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
465 atomic_compare_and_swap<mode>_soft_gusa,
466 atomic_compare_and_swap<mode>_soft_tcb,
467 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
468 arith_reg_operand instead of register_operand.
469 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
470 atomic_arith_operand_0 for newval input.
471 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
472 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
473 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
474 arith_reg_operand instead of register_operand.
475 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
476 fetchop_predicate_1, fetchop_constraint_1_llcs,
477 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
478 fetchop_constraint_1_imask): New code iterator attributes.
479 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
480 register_operand. Use fetchop_predicate_1.
481 (atomic_fetch_<fetchop_name>si_hard,
482 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
483 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
484 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
485 and arith_reg_operand instead of register_operand. Use
486 fetchop_predicate_1, fetchop_constraint_1_gusa.
487 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
488 and arith_reg_operand instead of register_operand. Use
489 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
490 to allow R0 usage.
491 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
492 and arith_reg_operand instead of register_operand. Use
493 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
494 to allow R0 usage.
495 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
496 register_operand. Use atomic_logical_operand_1.
497 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
498 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
499 arith_reg_operand instead of register_operand.
500 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
501 Use arith_reg_dest and arith_reg_operand instead of register_operand.
502 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
503 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
504 register_operand. Use fetchop_predicate_1.
505 (atomic_<fetchop_name>_fetchsi_hard,
506 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
507 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
508 fetchop_constraint_1_llcs.
509 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
510 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
511 fetchop_constraint_1_gusa.
512 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
513 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
514 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
515 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
516 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
517 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
518 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
519 register_operand. Use atomic_logical_operand_1.
520 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
521 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
522 arith_reg_operand instead of register_operand.
523 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
524 arith_reg_operand instead of register_operand. Use logical_operand
525 and K08. Adjust asm sequence to allow R0 usage.
526 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
527 arith_reg_operand instead of register_operand. Use logical_operand
528 and K08.
529
530 2015-01-28 Jakub Jelinek <jakub@redhat.com>
531
532 PR other/63504
533 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
534 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
535 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
536 only get_full_len HOST_WIDE_INTs from get_val () array rather than
537 all bits in *val_wide.
538
539 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
540
541 * varpool.c (tls_model_names): Fix names.
542 (varpool_node::dump): Dump tls- prefix for tls models.
543
544 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
545 Bernd Schmidt <bernds@codesourcery.com>
546 Nathan Sidwell <nathan@codesourcery.com>
547
548 * config/nvptx/mkoffload.c: New file.
549 * config/nvptx/t-nvptx: Add build rules for it.
550 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
551 (extra_programs): Add mkoffload.
552 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
553 function.
554 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
555
556 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
557
558 PR middle-end/64809
559 * cfgexpand.c (reorder_operands): Skip debug gimples.
560
561 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
562
563 PR tree-optimization/64277
564 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
565 range info when possible to refine estimation.
566
567 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
568
569 PR tree-optimization/64718
570 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
571 be a 16bit unsigned integer when n->range is 16.
572 (bswap_replace): Convert src to that type if necessary for all bswap
573 sizes. Fix rotation right notation in nearby comment. Use bswap_type
574 set in pass_optimize_bswap::execute ().
575
576 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
577
578 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
579 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
580 integer and floating point variants.
581 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
582
583 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
584
585 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
586 for all vector modes.
587
588 2015-01-28 Jakub Jelinek <jakub@redhat.com>
589
590 PR bootstrap/64612
591 * doc/sourcebuild.texi (comdat_group): Document.
592
593 2015-01-28 Terry Guo <terry.guo@arm.com>
594
595 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
596
597 2015-01-27 David Malcolm <dmalcolm@redhat.com>
598
599 * toplev.c (print_version): Add param "show_global_state", and
600 only print GGC and plugin information if it is true.
601 (init_asm_output): Pass in "true" for the new param when calling
602 print_version.
603 (process_options): Likewise.
604 (toplev::main): Likewise.
605 * toplev.h (print_version): Add new param to decl.
606
607 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
608
609 PR ipa/60871
610 PR ipa/64139
611 * tree.c (lookup_binfo_at_offset): New function.
612 (get_binfo_at_offset): Use it.
613
614 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
615
616 PR ipa/64282
617 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
618 on vtable being vtable.
619
620 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
621
622 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
623 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
624 -mhotpatch= option.
625 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
626 -mno-hotpatch options. Change syntax of -mhotpatch= option.
627 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
628 Renamed.
629 (s390_hotpatch_trampoline_halfwords_max): Renamed.
630 (s390_hotpatch_hw_max): New name.
631 (s390_hotpatch_trampoline_halfwords): Renamed.
632 (s390_hotpatch_hw_before_label): New name.
633 (get_hotpatch_attribute): Removed.
634 (s390_hotpatch_hw_after_label): New name.
635 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
636 attribute.
637 (s390_attribute_table): Ditto.
638 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
639 (s390_function_num_hotpatch_hw): New name.
640 Remove special handling of inline functions and hotpatching.
641 Return number of nops before and after the function label.
642 (s390_can_inline_p): Removed.
643 (s390_asm_output_function_label): Emit a configurable number of nops
644 after the function label.
645 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
646 (TARGET_CAN_INLINE_P) Removed.
647 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
648
649 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
650 Jiong Wang <jiong.wang@arm.com>
651
652 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
653 of scratch reg.
654 (cb<optab><mode>1): Likewise.
655 * config/aarch64/iterators.md (bcond): New define_code_attr.
656
657 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
658
659 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
660 memory accesses.
661
662 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
663
664 * config/s390/s390.c (s390_register_move_cost): Increase costs for
665 FPR->GPR moves.
666
667 2015-01-27 Richard Biener <rguenther@suse.de>
668
669 * tree-vrp.c (update_value_range): Intersect the range with
670 old recorded SSA name range information.
671
672 2015-01-27 Nick Clifton <nickc@redhat.com>
673
674 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
675 BC, DE and HL registers directly, not via AX.
676 When decrementing the stack pointer by a large amount, transfer SP
677 into AX and perform the subtraction there.
678 (rl78_expand_epilogue): Perform the inverse of the above
679 enhancements.
680
681 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
682
683 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
684
685 2015-01-27 Jakub Jelinek <jakub@redhat.com>
686 Yury Gribov <y.gribov@samsung.com>
687
688 PR ubsan/64741
689 * ubsan.c (ubsan_source_location): Refactor code.
690 (ubsan_type_descriptor): Update type size. Refactor code.
691
692 2015-01-27 Richard Biener <rguenther@suse.de>
693
694 PR tree-optimization/56273
695 PR tree-optimization/59124
696 PR tree-optimization/64277
697 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
698 from the first VRP pass.
699
700 2015-01-27 Jakub Jelinek <jakub@redhat.com>
701
702 PR ipa/64776
703 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
704 handle the first argument in the same loop as all the other arguments.
705
706 PR rtl-optimization/61058
707 * jump.c (cleanup_barriers): Update basic block boundaries
708 if BLOCK_FOR_INSN is non-NULL on PREV.
709
710 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
711
712 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
713 bounds narrowing, already instrumented calls and calls to
714 not instrumentable functions.
715
716 2015-01-27 Jakub Jelinek <jakub@redhat.com>
717
718 PR tree-optimization/64807
719 * wide-int.cc (wi::divmod_internal): Clear
720 b_dividend[dividend_blocks_needed].
721
722 2015-01-26 DJ Delorie <dj@redhat.com>
723
724 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
725 volatile memory references.
726
727 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
728
729 PR target/49263
730 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
731 remove_insn.
732 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
733 shifts if it already fits into K08.
734
735 2015-01-26 Jakub Jelinek <jakub@redhat.com>
736
737 PR ipa/64730
738 * ipa-inline.c (inline_small_functions): Print "unknown" even
739 if edge->call_stmt is non-NULL, but has builtins or unknown
740 location.
741
742 PR middle-end/64421
743 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
744 with asterisk, skip the first character.
745
746 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
747
748 PR target/64806
749 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
750 order change.
751
752 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
753
754 PR target/64795
755 * config/i386/i386.md (*movdi_internal): Also check operand 0
756 to determine TYPE_LEA operand.
757 (*movsi_internal): Ditto.
758
759 2015-01-26 Jakub Jelinek <jakub@redhat.com>
760
761 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
762 OPTION_MASK_QUAD_MEMORY_ATOMIC.
763
764 2015-01-26 Renlin Li <renlin.li@arm.com>
765
766 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
767 the comment.
768 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
769 for higher part.
770
771 2015-01-26 Richard Biener <rguenther@suse.de>
772
773 PR middle-end/64764
774 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
775 combining two BIT_AND_EXPR predicates.
776
777 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
778
779 PR bootstrap/64754
780 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
781
782 2015-01-26 Terry Guo <terry.guo@arm.com>
783
784 * config/arm/arm.c (arm_file_start): Update the assignment of
785 Tag_ABI_HardFP_use.
786
787 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
788
789 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
790 pipeline model.
791 config/arm/arm.md: Include the new Cortex-A57 model.
792 (generic_sched): Don't use generic_sched when tuning for
793 Cortex-A57.
794
795 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
796 Uros Bizjak <ubizjak@gmail.com>
797
798 * config/i386/i386.c (get_builtin_code_for_version): Add
799 support for BMI and BMI2 multiversion functions.
800
801 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
802
803 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
804 (extract_bit_field): Likewise.
805 (extract_low_bits): Likewise.
806 (expand_mult): Likewise.
807 (expand_mult_highpart_adjust): Likewise.
808
809 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
810
811 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
812 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
813 * config/i386/i386.c (processor_model): Add
814 M_INTEL_COREI7_BROADWELL.
815 (arch_names_table): Add "broadwell".
816
817 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
818
819 PR target/49263
820 PR target/53987
821 PR target/64345
822 PR target/59533
823 PR target/52933
824 PR target/54236
825 PR target/51244
826 * config/sh/sh-protos.h
827 (sh_extending_set_of_reg::can_use_as_unextended_reg,
828 sh_extending_set_of_reg::use_as_unextended_reg,
829 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
830 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
831 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
832 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
833 (sh_treg_insns): New class.
834 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
835 (scope_counter): New class.
836 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
837 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
838 sh_extending_set_of_reg::can_use_as_unextended_reg,
839 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
840 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
841 sh_split_treg_set_expr): New functions.
842 (addsubcosts): Handle treg_set_expr.
843 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
844 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
845 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
846 (sh_insn_operands_modified_between_p): Make non-static.
847 * config/sh/predicates.md (zero_extend_movu_operand): Allow
848 simple_mem_operand in addition to displacement_mem_operand.
849 (zero_extend_operand): Don't allow zero_extend_movu_operand.
850 (treg_set_expr, treg_set_expr_not_const01,
851 arith_reg_or_treg_set_expr): New predicates.
852 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
853 arith_or_int_operand instead of logical_operand. Convert to
854 insn_and_split. Try to optimize constant operand in splitter.
855 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
856 (*tstqi_t_zero): Delete.
857 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
858 (tstsi_t_and_not): Delete.
859 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
860 Convert to insn_and_split.
861 (unnamed split, tstsi_t_zero_extract_xor,
862 tstsi_t_zero_extract_subreg_xor_little,
863 tstsi_t_zero_extract_subreg_xor_big): Delete.
864 (*tstsi_t_shift_mask): New insn_and_split.
865 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
866 to recombine with surrounding insns when splitting.
867 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
868 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
869 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
870 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
871 (*cbranch_div0s: Delete.
872 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
873 Try to recombine with surrounding insns when splitting. Add operand
874 order variants.
875 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
876 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
877 *addc_r_r_msb, *addc_2r_msb): Delete.
878 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
879 order variant.
880 (*addc_negreg_t): New insn_and_split.
881 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
882 Try to recombine with surrounding insns when splitting.
883 Add operand order variants.
884 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
885 insn_and_split patterns.
886 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
887 surrounding insns when splitting.
888 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
889 (*rotcl): Likewise. Add zero_extract variant.
890 (*ashrsi2_31): New insn_and_split.
891 (*negc): Convert to insn_and_split. Use treg_set_expr.
892 (*zero_extend<mode>si2_disp_mem): Update comment.
893 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
894 condition.
895 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
896 with surrounding insns when splitting.
897 (any_treg_expr_to_reg): New insn_and_split.
898 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
899 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
900 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
901 *zero_extract_2): New single bit zero extract patterns.
902 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
903 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
904 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
905 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
906 set destination.
907 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
908 register_operand for set source.
909
910 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
911
912 * i386.opt (prefetch_sse): New targetsave.
913 * i386.c (ix86_function_specific_save): Save prefetch_sse.
914 (ix86_function_specific_restore): Restore prefetch_sse and initialize
915 ix86_cost/ix86_tune_cost.
916
917 2015-01-23 David Malcolm <dmalcolm@redhat.com>
918
919 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
920 Support the JIT by using 0 as the language type.
921
922 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
923
924 PR target/64317
925 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
926 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
927 (mark_regno_live, process_bb_lives): Pass new parameter value to
928 make_hard_regno_born.
929
930 2015-01-23 Jakub Jelinek <jakub@redhat.com>
931
932 PR rtl-optimization/63637
933 PR rtl-optimization/60663
934 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
935 if elt->cost is MAX_COST for ASM_OPERANDS.
936 (find_sets_in_insn): Fix up comment typo.
937 (cse_insn): Don't set src_volatile for all non-volatile
938 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
939 or with "memory" clobber. Set elt->cost to MAX_COST
940 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
941 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
942
943 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
944
945 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
946 alternative 1.
947
948 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
949
950 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
951 libgcc/config/i386/elf-lib.h.
952
953 2015-01-23 Jakub Jelinek <jakub@redhat.com>
954
955 PR driver/64737
956 * gcc.c (print_configuration): Don't print a blank line at the end
957 here...
958 (run_attempt): ... but here unstead.
959
960 PR middle-end/64734
961 * omp-low.c (scan_sharing_clauses): Don't ignore
962 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
963 on target data/update constructs.
964
965 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
966
967 PR target/50928
968 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
969 (DEBUG_RELOAD): Removed define.
970 (m32c_limit_reload_class): Enable traces with if DEBUG0.
971 (m32c_function_arg): Added a type cast.
972 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
973 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
974 * config/m32c/bitops.md (andqi3_16): Likewise.
975 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
976 (push_a01_l): Likewise.
977
978 2015-01-23 David Malcolm <dmalcolm@redhat.com>
979
980 PR jit/64721
981 * main.c (main): Construct toplev instances with init_signals=true.
982 * toplev.c (general_init): Add param "init_signals", and use it to
983 conditionalize the calls to signal and host_hooks.extra_signals.
984 (toplev::toplev): Add param "init_signals".
985 (toplev::main): When invoking general_init, pass m_init_signals
986 to control whether signal-handlers are installed.
987 * toplev.h (toplev::toplev): Add param "init_signals".
988 (toplev::m_init_signals): New field.
989
990 2015-01-23 David Malcolm <dmalcolm@redhat.com>
991
992 PR jit/64722
993 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
994 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
995 latter may be affected by the former (e.g. on i686).
996
997 2015-01-23 Martin Liska <mliska@suse.cz>
998
999 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
1000 false positive during profiledbootstrap.
1001
1002 2015-01-23 Tom de Vries <tom@codesourcery.com>
1003
1004 PR libgomp/64672
1005 * lto-opts.c (lto_write_options): Output non-explicit conservative
1006 -fno-openacc.
1007 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
1008 (append_compiler_options): Pass -fopenacc through.
1009
1010 2015-01-23 Tom de Vries <tom@codesourcery.com>
1011
1012 PR libgomp/64707
1013 * lto-opts.c (lto_write_options): Output non-explicit conservative
1014 -fno-openmp.
1015 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
1016 (append_compiler_options): Pass -fopenmp through.
1017
1018 2015-01-23 Jakub Jelinek <jakub@redhat.com>
1019
1020 PR debug/64511
1021 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
1022 GTY markup.
1023
1024 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
1025 * diagnostic.def (DK_ICE_NOBT): New kind.
1026 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
1027 like DK_ICE, but never print backtrace.
1028 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
1029 (internal_error_no_backtrace): New function.
1030 * gcc.c (execute): Use internal_error_no_backtrace instead of
1031 internal_error.
1032
1033 2015-01-22 Jeff Law <law@redhat.com>
1034
1035 PR target/52076
1036 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
1037 improve code density for small immediate to memory case.
1038 (insv): Better handle bitfield assignments when the field is
1039 being set to all ones.
1040 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
1041 operand predicate.
1042
1043 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1044 Jakub Jelinek <jakub@redhat.com>
1045
1046 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
1047 for !TARGET_LIBC_PROVIDES_SSP version and
1048 -fstack-protector-{all,strong,explicit} otherwise.
1049 * config/freebsd.h (LINK_SSP_SPEC): Handle
1050 -fstack-protector-{strong,explicit}.
1051
1052 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
1053 H.J. Lu <hongjiu.lu@intel.com>
1054
1055 PR ipa/64694
1056 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
1057 heap.
1058
1059 2015-01-22 Wei Mi <wmi@google.com>
1060
1061 PR rtl-optimization/64557
1062 * dse.c (record_store): Call get_addr for mem_addr.
1063 (check_mem_read_rtx): Likewise.
1064
1065 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
1066
1067 * fold-const.c (const_binop): Add early return for non-tcc_binary.
1068
1069 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1070
1071 * toplev.c (init_local_tick): Process the failure when read
1072 fails for random_seed.
1073
1074 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
1075 'pretty_name' to avoid memory overflow.
1076
1077 2015-01-22 Richard Biener <rguenther@suse.de>
1078
1079 PR middle-end/64728
1080 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
1081 abnormal coalescing on undefined SSA names.
1082
1083 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
1084
1085 PR target/64688
1086 PR target/64477
1087 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
1088 for alternative 3.
1089 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
1090
1091 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
1092
1093 PR middle-end/63325
1094 * fold-const.c (fold_checksum_tree): Don't include value of
1095 expr->decl_with_vis.symtab_node in the checksum.
1096
1097 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1098
1099 * config/s390/s390.md (atomic code attribute): Fix typo "ior" ->
1100 "or".
1101
1102 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
1103
1104 PR driver/64690
1105 * gcc.c (insert_comments): New function.
1106 (try_generate_repro): Call it.
1107 (append_text): Removed.
1108
1109 2015-01-22 Richard Biener <rguenther@suse.de>
1110
1111 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
1112 with IL incompatible options. Properly honor user optimize
1113 attributes.
1114
1115 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
1116
1117 PR rtl-optimization/64682
1118 * combine.c (distribute_notes): When moving a death note for
1119 a register that is set in the new I2, make sure to put it
1120 before that new I2.
1121
1122 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
1123
1124 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
1125 not TARGET_DEFAULT.
1126
1127 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1128
1129 PR debug/64511
1130 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
1131 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
1132 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
1133
1134 PR sanitizer/64706
1135 * doc/invoke.texi (-fsanitize=vptr): Document.
1136
1137 PR rtl-optimization/62078
1138 * dse.c: Include cfgcleanup.h.
1139 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
1140 anything call purge_all_dead_edges and cleanup_cfg at the end
1141 of the pass.
1142
1143 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
1144
1145 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
1146 edges.
1147
1148 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
1149
1150 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
1151 decl attribute.
1152
1153 2015-01-21 David Sherwood <david.sherwood@arm.com>
1154 Tejas Belagod <Tejas.Belagod@arm.com>
1155
1156 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
1157 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
1158 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
1159 Removed.
1160
1161 2015-01-21 David Sherwood <david.sherwood@arm.com>
1162 Tejas Belagod <Tejas.Belagod@arm.com>
1163
1164 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
1165 (aarch64_reverse_mask): New decls.
1166 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
1167 (insn_count): New mode_attr.
1168 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
1169 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
1170 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
1171 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
1172 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
1173 (aarch64_simd_st4): New patterns.
1174 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
1175 (aarch64_reverse_mask): New functions.
1176
1177 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
1178
1179 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
1180 Declare.
1181 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
1182 addressing modes for BE.
1183 (aarch64_print_operand): Add 'R' specifier.
1184 (aarch64_simd_disambiguate_copy): Delete.
1185 (aarch64_simd_emit_reg_reg_move): New function.
1186 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
1187 in define_splits for structural moves.
1188 (mov<mode>): Use less restrictive predicates.
1189 (*aarch64_mov<mode>): Simplify and only allow for LE.
1190 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
1191
1192 2015-01-21 Alan Hayward <alan.hayward@arm.com>
1193
1194 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
1195
1196 2015-01-21 Richard Henderson <rth@redhat.com>
1197
1198 PR target/64669
1199 * ccmp.c (used_in_cond_stmt_p): Remove.
1200 (expand_ccmp_expr): Don't use it.
1201
1202 2015-01-21 Nick Clifton <nickc@redhat.com>
1203
1204 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
1205 PARALLELs.
1206
1207 2015-01-21 Richard Biener <rguenther@suse.de>
1208
1209 PR middle-end/64313
1210 * tree-core.h (builtin_info, builtin_info_type): Turn from
1211 an object with two arrays into an array of an object with
1212 decl and two flags, implicit_p and declared_p.
1213 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
1214 set_builtin_decl, set_builtin_decl_implicit_p,
1215 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
1216 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
1217 * builtins.c (builtin_info): Adjust.
1218 * gimplify.c (gimplify_addr_expr): References to builtins
1219 that have been declared by the user makes them eligible for
1220 use by the compiler. Call set_builtin_decl_implicit_p on them.
1221
1222 2015-01-20 Jeff Law <law@redhat.com>
1223
1224 PR target/59946
1225 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
1226 allow pc-relative addresses in operand predicates or constraints.
1227
1228 2015-01-21 Bin Cheng <bin.cheng@arm.com>
1229
1230 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
1231 neon on aarch32 processors for stringops.
1232
1233 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1234
1235 PR ipa/63576
1236 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
1237
1238 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1239
1240 PR lto/45375
1241 * ipa-inline.c: Include lto-streamer.h
1242 (report_inline_failed_reason): Output source file differences and
1243 flags on optimization/target node mismatch.
1244 (can_inline_edge_p): Consider caller to be the outer inline function;
1245 be less restrictive about matching opimize and optimize_size attributes.
1246 (inline_account_function_p): Break out from ...
1247 (inline_small_functions): ... here.
1248 * ipa-inline-transform.c (clone_inlined_nodes): Use
1249 inline_account_function_p.
1250 (inline_call): Use optimize attribution; use inline_account_function_p.
1251 (inline_transform): Use opt_for_fn.
1252 * ipa-inline.h (inline_account_function_p): Declare.
1253
1254 2015-01-20 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR debug/64663
1257 * dwarf2out.c (decl_piece_node): Don't put bitsize into
1258 mode if bitsize <= 0.
1259 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
1260 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
1261 sizes and positions.
1262
1263 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
1264
1265 * config/nios2/nios2.c (nios2_asm_file_end): Implement
1266 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
1267 needed.
1268 (TARGET_ASM_FILE_END): Define.
1269
1270 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1271
1272 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
1273 (struct tune_params): Use the enum.
1274 * arm.c (arm_*_tune): Update.
1275 (arm_option_override): Update.
1276
1277 2015-01-20 Richard Biener <rguenther@suse.de>
1278
1279 PR ipa/64684
1280 * ipa-reference.c (add_static_var): Inline ...
1281 (analyze_function): ... here after splitting out from ...
1282 (is_proper_for_analysis): ... this.
1283
1284 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
1285
1286 PR target/64149
1287 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
1288 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
1289 replace the conditional with it's true branch.
1290 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
1291 (arm_lra_p): Remove.
1292
1293 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
1294
1295 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
1296
1297 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1298
1299 * config/tilegx/mul-tables.c: Move symtab.h include after
1300 coretypes.h include.
1301 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
1302 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
1303 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
1304 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
1305 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
1306
1307 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
1308
1309 PR bootstrap/64676
1310 Revert:
1311 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1312
1313 PR rtl-optimization/64081
1314 * loop-iv.c (def_pred_latch_p): New function.
1315 (latch_dominating_def): Allow specific cases with non-single
1316 definitions.
1317 (iv_get_reaching_def): Likewise.
1318 (check_complex_exit_p): New function.
1319 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1320 with exits not executing on any iteration.
1321
1322 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1323
1324 PR lto/45375
1325 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
1326 to set branch cost.
1327
1328 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1329
1330 PR lto/45375
1331 * i386.c (gate): Check flag_expensive_optimizations and
1332 optimize_size.
1333 (ix86_option_override_internal): Drop optimize_size condition
1334 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
1335 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
1336 MASK_PREFER_AVX128.
1337 (ix86_avx256_split_vector_move_misalign,
1338 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
1339 * sse.md (all uses of TARGET_PREFER_AVX128): Add
1340 optimize_insn_for_speed_p check.
1341
1342 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
1343
1344 * config/mips/mips.h (FP_ASM_SPEC): New define.
1345 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
1346 instead.
1347
1348 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
1349
1350 PR target/53988
1351 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
1352 nullptr for insn when reaching the first insn.
1353 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
1354 (sh_insn_operands_modified_between_p): Add nullptr check.
1355 (sh_find_extending_set_of_reg): Fix log message. Don't accept
1356 sign extending mem load if the insn contains any UNSPEC or
1357 UNSPEC_VOLATILE.
1358
1359 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1360
1361 * params.def (inline-unit-growth): Drop to 15%.
1362 * invoke.texi (inline-unit-growth): Document change.
1363
1364 2015-01-19 Martin Liska <mliska@suse.cz>
1365
1366 PR ipa/64668
1367 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
1368 function for second argument of OBJ_TYPE_REF.
1369
1370 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1371
1372 PR ipa/64218
1373 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
1374 whether function is an alias.
1375
1376 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
1377
1378 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
1379 cases.
1380
1381 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
1382
1383 PR rtl-optimization/64671
1384 * lra-remat.c (operand_to_remat): Don't consider jump and call
1385 insns.
1386
1387 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
1388
1389 * config/rs6000/default64.h: Include rs6000-cpus.def.
1390 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
1391 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
1392 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
1393 and POWER8.
1394 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
1395 POWER8.
1396 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
1397 pseudo-op to specify assembler dialect.
1398
1399 2015-01-19 Martin Liska <mliska@suse.cz>
1400
1401 PR ipa/64664
1402 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
1403 Handle safe potentially removed nodes during filtering.
1404
1405 2015-01-19 Martin Liska <mliska@suse.cz>
1406
1407 * doc/extend.texi (no_icf): Add new attribute description.
1408 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
1409 where the pass attempts to merge a function with no_icf attribute.
1410
1411 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1412
1413 PR target/64532
1414 * doc/md.texi (ARM Options): Document register constraints.
1415
1416 2015-01-19 Jiong Wang <jiong.wang@arm.com>
1417 Andrew Pinski <apinski@cavium.com>
1418
1419 PR target/64304
1420 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
1421 (ashl<mode>3): Don't expand if operands[2] is not constant.
1422
1423 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1424
1425 PR target/64448
1426 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
1427 Match xor-and-xor RTL pattern.
1428
1429 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
1430
1431 PR rtl-optimization/64081
1432 * loop-iv.c (def_pred_latch_p): New function.
1433 (latch_dominating_def): Allow specific cases with non-single
1434 definitions.
1435 (iv_get_reaching_def): Likewise.
1436 (check_complex_exit_p): New function.
1437 (check_simple_exit): Use check_complex_exit_p to allow certain cases
1438 with exits not executing on any iteration.
1439
1440 2015-01-19 Jakub Jelinek <jakub@redhat.com>
1441
1442 * common.opt (fgraphite): Fix a typo.
1443
1444 2015-01-19 Felix Yang <felix.yang@huawei.com>
1445
1446 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
1447 pattern.
1448 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
1449 uminp, smax_nanp, smin_nanp): New builtins.
1450 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
1451 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
1452 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
1453 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
1454 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
1455 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
1456 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
1457 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
1458 vpminnms_f32): Rewrite using builtin functions.
1459
1460 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
1461
1462 PR libgomp/64625
1463 * omp-low.c (offload_symbol_decl): Remove variable.
1464 (get_offload_symbol_decl): Remove function.
1465 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
1466 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
1467 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
1468 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
1469 BUILT_IN_GOACC_UPDATE don't pass it at all.
1470
1471 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1472
1473 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
1474 callers.
1475
1476 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
1477
1478 * ipa-chkp.c (chkp_produce_thunks): Add early param
1479 to split thunks production into two passes. Keep
1480 'always_inline' function bodies after the first pass.
1481 (pass_data_ipa_chkp_early_produce_thunks): New.
1482 (pass_ipa_chkp_early_produce_thunks): New.
1483 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
1484 chkp_produce_thunks signature.
1485 (make_pass_ipa_chkp_early_produce_thunks): New.
1486 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
1487 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
1488 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
1489
1490 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1491
1492 * cgraph.c (cgraph_node::dump): Dump profile flags.
1493
1494 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
1495
1496 PR target/64652
1497 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
1498 reg appear first in the parallel.
1499
1500 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1501
1502 * ipa-reference.c (set_reference_optimization_summary,
1503 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
1504 disabled.
1505 (ignore_module_statics): New static var.
1506 (propagate_bits): If ipa-reference is disabled, do not look into local
1507 properties.
1508 (analyze_function): Disable analysis when ipa_reference is disabled.
1509 (generate_summary): Do not dump when reference is disabled;
1510 collect vars accessed from functions with ipa-reference disabled.
1511 (get_read_write_all_from_node): When ipa-reference is disabled, use the
1512 node flags.
1513 (gate): Enable for LTO.
1514 (ignore_edge_p): New function.
1515 (propagate): Skip functions w/o ipa-reference analysis.
1516 * optc-save-gen.awk: Handle optimize_debug correctly.
1517 * opth-gen.awk: Likewise.
1518 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
1519 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
1520 fira-share-save-slots, fira-share-spill-slots,
1521 fmodulo-sched-allow-regmoves, fpartial-inlining,
1522 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
1523 ftracer, ftree-parallelize-loops, fassociative-math,
1524 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
1525 Optimization
1526 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
1527 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
1528 Optimization.
1529 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
1530 Fix for IPA.
1531
1532 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
1533
1534 PR ipa/64378
1535 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
1536 flag correctly.
1537 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
1538
1539 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
1540
1541 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
1542 Remove duplicate option listings.
1543
1544 2015-01-18 Felix Yang <felix.yang@huawei.com>
1545
1546 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
1547 (autofdo_source_profile::get_callsite_total_count,
1548 function_instance::get_function_instance_by_decl,
1549 string_table::get_index, string_table::get_index_by_decl,
1550 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
1551 Fix comment typos. Reformatting and minor code rearrangement.
1552
1553 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1554
1555 * config/rs6000/rs6000.md (probe_stack): Delete.
1556 (probe_stack_address): New.
1557
1558 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1559
1560 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
1561 to test for 32-bit ABIs, not !TARGET_POWERPC64.
1562
1563 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
1564
1565 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
1566 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
1567 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
1568 snafu.
1569 (rs6000_libcall_value): Use the new function.
1570
1571 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
1572
1573 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
1574
1575 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
1576
1577 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
1578 implement a more precise life analysis for it during backward scan.
1579
1580 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
1583
1584 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
1585
1586 PR rtl-optimization/52773
1587 * calls.c (emit_library_call_value): When pushing arguments use
1588 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
1589 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
1590 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
1591
1592 2015-01-17 Jeff Law <law@redhat.com>
1593
1594 PR rtl-optimization/32790
1595 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
1596 not ZERO_EXTEND in SET_DESTs.
1597
1598 2015-01-17 Alan Modra <amodra@gmail.com>
1599
1600 * cprop.c (do_local_cprop): Revert last change.
1601
1602 2015-01-16 DJ Delorie <dj@redhat.com>
1603 Nick Clifton <nickc@redhat.com>
1604
1605 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
1606 (addhi3_real): Likewise. Fix [HL+0] syntax.
1607 (subqi3_real): Likewise.
1608 (subhi3_real): Likewise.
1609 (cbranchqi4_real): Likewise. Allow saddr,#imm.
1610 (cbranchhi4_real): Likewise.
1611 (cbranchhi4_real_inverted): Likewise.
1612 (cbranchsi4_real_lt): Likewise.
1613 (cbranchsi4_real_ge): Likewise.
1614 (cbranchsi4_real_ge): Likewise.
1615 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
1616 (sub<mode>3_virt): Likewise.
1617 (cbranchqi4_virt): Likewise.
1618 (cbranchhi4_virt): Likewise.
1619 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
1620 always use '[reg+imm]' even when imm is zero.
1621 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
1622 (rl78_general_operand): New.
1623 (rl78_nonimmediate_operand): New.
1624 (rl78_nonfar_operand): Use them.
1625 (rl78_nonfar_nonimm_operand): Likewise.
1626 (rl78_stack_based_mem): Fix.
1627 * config/rl78/constraints.md (Ibqi): New.
1628 (IBqi): New.
1629 (Wsa): New.
1630 (Wsf): New.
1631 (Cs1): Fix.
1632 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
1633 (iorqi3): Likewise.
1634 (xorqi3): Likewise.
1635 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
1636
1637 * config/rl78/constrains (Qs8): New constraint.
1638 * config/rl78/rl78.c (rl78_flags_already_set): New function.
1639 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
1640 * config/rl78/rl78-real.md (update_Z): New attribute.
1641 Update patterns to set it.
1642 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
1643 shorter compare and branch sequence can be used.
1644 (cbranchhi4_real): Likewise.
1645 (cbranchhi4_real_inverted): Likewise.
1646
1647 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
1648 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
1649 address space.
1650 * config/rl78/rl78.c (rl78_get_name_encoding): New.
1651 (rl78_option_override): Allow -mes0 only if C.
1652 (characterize_address): Support subregs of symbol_refs.
1653 (rl78_addr_space_address_mode): Move. Add __near.
1654 (rl78_far_p): Likewise.
1655 (rl78_addr_space_pointer_mode): Likewise.
1656 (rl78_as_legitimate_address): Likewise.
1657 (rl78_addr_space_subset_p): Likewise.
1658 (rl78_addr_space_convert): Likewise.
1659 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
1660 symbols with -mes0.
1661 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
1662 addressing.
1663 (rl78_alloc_physical_registers_op1): Change logic to prefer
1664 symbol[BC] addressing.
1665 (frodata_section): New.
1666 (rl78_asm_init_sections): Initialize it.
1667 (rl78_select_section): Put __far readonly symbols in .frodata.
1668 (rl78_make_type_far): New.
1669 (rl78_insert_attributes): Force all readonly symbols to be
1670 __far when -mes0.
1671 (rl78_asm_out_integer): New.
1672 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
1673 * config/rl78/rl78.opt (-mes0): New.
1674
1675 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
1676 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1677 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1678 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
1679 (rl78_saddr_p): New.
1680 (rl78_output_aligned_common): New.
1681 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
1682 (rl78_handle_saddr_attribute): New.
1683 (rl78_handle_naked_attribute): New.
1684 (rl78_attribute_table): Add saddr.
1685 (rl78_print_operand_1): Don't print '!' on saddr operands.
1686 (rl78_print_operand_1): Strip encodings.
1687 (rl78_sfr_p): New.
1688 (rl78_strip_name_encoding): New.
1689 (rl78_attrlist_to_encoding): New.
1690 (rl78_encode_section_info): New.
1691 (rl78_asm_init_sections): New.
1692 (rl78_select_section): New.
1693 (rl78_output_labelref): New.
1694 (rl78_output_aligned_common): New.
1695 (rl78_asm_out_integer): New.
1696 (rl78_asm_ctor_dtor): New.
1697 (rl78_asm_constructor): New.
1698 (rl78_asm_destructor): New.
1699
1700 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
1701 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
1702 (transcode_memory_rtx): Update.
1703 (rl78_expand_epilogue): Use A_REG instead of 0.
1704
1705 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1706
1707 * config/arm/arm-protos.h (struct tune_params): New field
1708 sched_autopref_queue_depth.
1709 * config/arm/arm.c (sched-int.h): Include header.
1710 (arm_first_cycle_multipass_dfa_lookahead_guard,)
1711 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
1712 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
1713 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
1714 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
1715 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
1716 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
1717 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
1718 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
1719 * config/arm/t-arm (arm.o): Update.
1720 * haifa-sched.c (update_insn_after_change): Update.
1721 (rank_for_schedule): Use auto-prefetcher model, if requested.
1722 (autopref_multipass_init): New static function.
1723 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
1724 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
1725 variable for debug dumps.
1726 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
1727 (autopref_multipass_dfa_lookahead_guard): New global function that
1728 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
1729 (init_h_i_d): Update.
1730 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
1731 * sched-int.h (enum autopref_multipass_data_status): New const enum.
1732 (autopref_multipass_data_): Structure for auto-prefetcher data.
1733 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
1734 (struct _haifa_insn_data:autopref_multipass_data): New field.
1735 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
1736 (autopref_multipass_dfa_lookahead_guard): Declare.
1737
1738 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1739
1740 * rtlanal.c (get_base_term): Handle SCRATCH.
1741
1742 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
1743
1744 * config/aarch64/aarch64.c
1745 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
1746 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1747 * config/arm/arm.c
1748 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
1749 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
1750
1751 2015-01-17 Alan Modra <amodra@gmail.com>
1752
1753 * cprop.c (do_local_cprop): Disallow replacement of fixed
1754 hard registers.
1755
1756 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1757
1758 PR target/62066
1759 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
1760 early return 0.
1761
1762 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1763
1764 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
1765 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
1766
1767 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1768
1769 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
1770 * config/arm/thumb1.md: ... Here.
1771
1772 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1773
1774 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
1775 TImode for TARGET_32BIT.
1776
1777 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1778
1779 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
1780 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
1781 as ...
1782 (rs6000_abi_word_mode): New function.
1783
1784 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1785
1786 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
1787 instead of UNITS_PER_WORD to describe the size of stack slots.
1788
1789 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1790
1791 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
1792 as rs6000_promote_function_mode. Move comment to there.
1793 (rs6000_promote_function_mode): New function.
1794
1795 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
1796
1797 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
1798 -mpowerpc64 is active.
1799
1800 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1801
1802 PR middle-end/64353
1803 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
1804 virtuals on start.
1805
1806 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1807
1808 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
1809 introduced in revision 219724.
1810
1811 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1812 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1813
1814 PR target/64263
1815 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
1816 destination is not a GP reg.
1817 (*movdi_aarch64): Likewise.
1818
1819 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
1820
1821 PR target/64623
1822 * config/rs6000/default64.h: Revert ISA change.
1823
1824 2015-01-16 Richard Biener <rguenther@suse.de>
1825
1826 PR middle-end/64614
1827 * tree-ssa-uninit.c: Include tree-cfg.h.
1828 (MAX_SWITCH_CASES): New define.
1829 (convert_control_dep_chain_into_preds): Handle switch statements.
1830 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
1831 (normalize_one_pred_1): Do not split bit-manipulations.
1832 Record (x & CST).
1833
1834 2015-01-16 Richard Biener <rguenther@suse.de>
1835
1836 PR tree-optimization/64568
1837 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
1838 complex load rewriting for TARGET_MEM_REFs.
1839
1840 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
1841
1842 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
1843
1844 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
1845
1846 PR target/64149
1847 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
1848 variable.
1849 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
1850 (aarch64_lra_p): Remove.
1851
1852 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
1853
1854 PR target/64363
1855 * ipa-chkp.h (chkp_instrumentable_p): New.
1856 * ipa-chkp.c: Include tree-inline.h.
1857 (chkp_instrumentable_p): New.
1858 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
1859 Fix processing of not instrumentable functions.
1860 (chkp_versioning): Use chkp_instrumentable_p. Warn about
1861 not instrumentable functions.
1862 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
1863 chkp_instrumentable_p.
1864 * tree-inline.h (copy_forbidden): New.
1865 * tree-inline.c (copy_forbidden): Not static anymore.
1866
1867 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1868
1869 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
1870 ptr1, ptr2 unused.
1871
1872 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1873
1874 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
1875 type OP_OUT to OP_INOUT.
1876
1877 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
1878
1879 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
1880 (high x) y) to y if x and y have the same base.
1881
1882 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
1883
1884 * config/arm/cortex-a57.md: New.
1885 * config/aarch64/aarch64.md: Include it.
1886 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
1887 * config/aarch64/aarch64-tune.md: Regenerate.
1888
1889 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
1890
1891 PR target/64015
1892 * ccmp.c (expand_ccmp_next): New function.
1893 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
1894 and compare insn sequence.
1895 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
1896 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
1897 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
1898 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
1899 (*ccmp_ior): Changed to ccmp_ior<mode>.
1900 (cmp<mode>): New pattern.
1901 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
1902 parameters.
1903 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
1904
1905 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
1906
1907 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
1908 _mm256_bsrli_epi128): New.
1909 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
1910
1911 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1912
1913 * expmed.c (store_bit_field_using_insv): Improve warning message.
1914 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
1915
1916 2015-01-15 Jiong Wang <jiong.wang@arm.com>
1917
1918 PR rtl-optimization/64011
1919 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
1920 there is partial overflow.
1921
1922 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1923
1924 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
1925 prototype.
1926 (nds32_expand_epilogue_v3pop): Likewise.
1927 * config/nds32/nds32.md (sibcall): Define this for sibling call
1928 optimization.
1929 (sibcall_register): Likewise.
1930 (sibcall_immediate): Likewise.
1931 (sibcall_value): Likewise.
1932 (sibcall_value_register): Likewise.
1933 (sibcall_value_immediate): Likewise.
1934 (sibcall_epilogue): Likewise.
1935 (epilogue): Pass false to indicate this is not a sibcall epilogue.
1936 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
1937 (nds32_expand_epilogue_v3pop): Likewise.
1938
1939 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1940
1941 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
1942 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
1943 (return_internal): New.
1944 (return): Define this named pattern.
1945 (simple_return): Define this named pattern.
1946 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
1947 pattern instead of unspec_volatile_func_return.
1948 (nds32_expand_epilogue_v3pop): Likewise.
1949 (nds32_can_use_return_insn): New function.
1950
1951 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1952
1953 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
1954 * config/nds32/nds32.md (pop25return): New.
1955 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
1956 pop25return pattern.
1957
1958 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1959
1960 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
1961 -mforbid-fp-as-gp, and -mex9 options.
1962
1963 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
1964
1965 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
1966 remove -mgp-direct option.
1967
1968 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1969
1970 * doc/invoke.texi (--param early-inlining-insns): Update default value.
1971 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
1972
1973 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1974
1975 * ipa-inline.c (inline_small_functions): Work around hints
1976 cache issue.
1977
1978 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
1979
1980 PR target/59710
1981 * doc/invoke.texi (Option Summary): Document new Nios II
1982 -mgpopt= syntax.
1983 (Nios II Options): Likewise.
1984 * config/nios2/nios2.opt: Add -mgpopt= option support.
1985 Modify existing -mgpopt and -mno-gpopt options to be aliases.
1986 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
1987 * config/nios2/nios2.c (nios2_option_override): Adjust
1988 -mgpopt defaulting.
1989 (nios2_in_small_data_p): Return true for explicit small data
1990 sections even with -G0.
1991 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
1992 option choices.
1993
1994 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
1995
1996 PR ipa/64612
1997 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
1998 of comdat locals.
1999 (inline_call): Fix removal of aliases.
2000
2001 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2002
2003 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
2004 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
2005 * opts.c (common_handle_option): Add -fsanitize=vptr.
2006 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
2007 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
2008 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
2009 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
2010 (ubsan_expand_vptr_ifn): New prototype.
2011 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
2012 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
2013 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
2014 expand_LOOP_VECTORIZED): Make argument nameless, remove
2015 ATTRIBUTE_UNUSED.
2016 (expand_UBSAN_VPTR): New function.
2017 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
2018 in fn spec.
2019 (UBSAN_VPTR): New internal function.
2020 * sanopt.c (tree_map_traits): Renamed to ...
2021 (sanopt_tree_map_traits): ... this.
2022 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
2023 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
2024 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
2025 (maybe_optimize_ubsan_vptr_ifn): New function.
2026 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
2027 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
2028 -fsanitize=vptr.
2029 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
2030 internal calls like pure functions for aliasing, even when they
2031 have other side-effects that prevent making them ECF_PURE.
2032 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
2033 (ubsan_expand_vptr_ifn): New function.
2034
2035 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
2036
2037 PR rtl-optimization/64110
2038 * stmt.c (parse_output_constraint): Process '^' and '$'.
2039 (parse_input_constraint): Ditto.
2040 * lra-constraints.c (process_alt_operands): Process the new
2041 constraints.
2042 * ira-costs.c (record_reg_classes): Process the new constraint
2043 '^'.
2044 * genoutput.c (indep_constraints): Add '^' and '$'.
2045 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
2046 * doc/md.texi: Add description of the new constraints.
2047
2048 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2049 Bernd Schmidt <bernds@codesourcery.com>
2050 Cesar Philippidis <cesar@codesourcery.com>
2051 James Norris <jnorris@codesourcery.com>
2052 Tom de Vries <tom@codesourcery.com>
2053 Ilmir Usmanov <i.usmanov@samsung.com>
2054 Dmitry Bocharnikov <dmitry.b@samsung.com>
2055 Evgeny Gavrin <e.gavrin@samsung.com>
2056 Jakub Jelinek <jakub@redhat.com>
2057
2058 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
2059 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
2060 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
2061 New function types.
2062 * builtins.c: Include "gomp-constants.h".
2063 (expand_builtin_acc_on_device): New function.
2064 (expand_builtin, is_inexpensive_builtin): Handle
2065 BUILT_IN_ACC_ON_DEVICE.
2066 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
2067 New macros.
2068 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
2069 flag_openmp.
2070 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
2071 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
2072 i386/intelmic-offload.h.
2073 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
2074 to libgomp and its dependencies.
2075 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
2076 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2077 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2078 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2079 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2080 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2081 * doc/generic.texi: Update for OpenACC changes.
2082 * doc/gimple.texi: Likewise.
2083 * doc/invoke.texi: Likewise.
2084 * doc/sourcebuild.texi: Likewise.
2085 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2086 GF_OMP_FOR_KIND_OACC_LOOP.
2087 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
2088 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
2089 GF_OMP_TARGET_KIND_OACC_UPDATE,
2090 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2091 Dump more data.
2092 * gimple.c: Update comments for OpenACC changes.
2093 * gimple.def: Likewise.
2094 * gimple.h: Likewise.
2095 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
2096 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2097 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
2098 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
2099 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
2100 appropriate place.
2101 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
2102 * gimplify.c: Include "gomp-constants.h".
2103 Update comments for OpenACC changes.
2104 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
2105 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
2106 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2107 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2108 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2109 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2110 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
2111 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2112 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
2113 OMP_CLAUSE_SEQ.
2114 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
2115 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2116 OMP_CLAUSE_SET_MAP_KIND.
2117 (gimplify_oacc_cache): New function.
2118 (gimplify_omp_for): Handle OACC_LOOP.
2119 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
2120 OACC_DATA.
2121 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
2122 OACC_EXIT_DATA, OACC_UPDATE.
2123 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
2124 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
2125 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
2126 (gimplify_body): Consider flag_openacc next to flag_openmp.
2127 * lto-streamer-out.c: Include "gomp-constants.h".
2128 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
2129 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
2130 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
2131 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
2132 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
2133 (BUILT_IN_ACC_ON_DEVICE): New builtins.
2134 * omp-low.c: Include "gomp-constants.h".
2135 Update comments for OpenACC changes.
2136 (struct omp_context): Add reduction_map, gwv_below, gwv_this
2137 members.
2138 (extract_omp_for_data, use_pointer_for_field, install_var_field)
2139 (new_omp_context, delete_omp_context, scan_sharing_clauses)
2140 (create_omp_child_function, scan_omp_for, scan_omp_target)
2141 (check_omp_nesting_restrictions, lower_reduction_clauses)
2142 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
2143 Update for OpenACC changes.
2144 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
2145 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
2146 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
2147 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
2148 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
2149 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
2150 OMP_CLAUSE_MAP_*.
2151 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2152 Handle GF_OMP_FOR_KIND_OACC_LOOP.
2153 (expand_omp_target, lower_omp_target): Handle
2154 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
2155 GF_OMP_TARGET_KIND_OACC_UPDATE,
2156 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
2157 GF_OMP_TARGET_KIND_OACC_DATA.
2158 (pass_expand_omp::execute, execute_lower_omp)
2159 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
2160 flag_openmp.
2161 (offload_symbol_decl): New variable.
2162 (oacc_get_reduction_array_id, oacc_max_threads)
2163 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
2164 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
2165 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
2166 (oacc_gimple_assign, oacc_initialize_reduction_data)
2167 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
2168 functions.
2169 (is_targetreg_ctx): Remove function.
2170 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
2171 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
2172 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2173 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
2174 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
2175 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
2176 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
2177 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
2178 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
2179 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
2180 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
2181 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
2182 * tree-core.h: Update comments for OpenACC changes.
2183 (enum omp_clause_map_kind): Remove.
2184 (struct tree_omp_clause): Change type of map_kind member from enum
2185 omp_clause_map_kind to unsigned char.
2186 * tree-inline.c: Update comments for OpenACC changes.
2187 * tree-nested.c: Likewise. Include "gomp-constants.h".
2188 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
2189 (convert_tramp_reference_stmt, convert_gimple_call): Update for
2190 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2191 OMP_CLAUSE_SET_MAP_KIND.
2192 * tree-pretty-print.c: Include "gomp-constants.h".
2193 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
2194 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
2195 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
2196 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
2197 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2198 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
2199 instead of OMP_CLAUSE_MAP_*.
2200 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
2201 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
2202 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
2203 * tree-streamer-in.c: Include "gomp-constants.h".
2204 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
2205 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
2206 * tree-streamer-out.c: Include "gomp-constants.h".
2207 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
2208 OMP_CLAUSE_MAP_*.
2209 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
2210 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
2211 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
2212 * tree.c (omp_clause_num_ops): Update accordingly.
2213 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
2214 Likewise.
2215 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
2216 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
2217 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
2218 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
2219 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
2220 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
2221 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
2222 (OMP_CLAUSE_SET_MAP_KIND): New macro.
2223 * varpool.c (varpool_node::get_create): Consider flag_openacc next
2224 to flag_openmp.
2225 * config/i386/intelmic-offload.h: New file.
2226 * config/nvptx/offload.h: Likewise.
2227
2228 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2229
2230 * explow.h: Remove duplicate contents.
2231 * dojump.h: Likewise.
2232
2233 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
2234
2235 * arm.c (arm_xgene_tune): Add default initializer for instruction
2236 fusion.
2237
2238 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
2239
2240 PR ipa/64068
2241 PR ipa/64559
2242 * ipa.c (symbol_table::remove_unreachable_nodes):
2243 Do not put abstract origins into boundary.
2244
2245 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
2246
2247 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
2248 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
2249
2250 2015-01-15 Steve Ellcey <sellcey@mips.com>
2251
2252 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
2253 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
2254 builtins.def, and chkp-builtins.def.
2255
2256 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
2257
2258 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
2259 ISA 2.7 (POWER8).
2260
2261 2015-01-15 Richard Biener <rguenther@suse.de>
2262
2263 PR tree-optimization/61743
2264 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
2265 information on PHIs for some simple cases.
2266
2267 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2268
2269 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
2270 Include xgene1.md.
2271 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
2272 * config/arm/arm-cores.def (xgene1): New entry.
2273 * config/arm/arm-tables.opt: Regenerate.
2274 * config/arm/arm-tune.md: Regenerate.
2275 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
2276
2277 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2278
2279 * tree-if-conv.c: Include hash-map.h.
2280 (aggressive_if_conv): New variable.
2281 (fold_build_cond_expr): Add simplification of non-zero condition.
2282 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
2283 destination block is not always executed.
2284 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
2285 than two predecessors if AGGRESSIVE_IF_CONV is true.
2286 (if_convertible_stmt_p): Fix commentary.
2287 (all_preds_critical_p): New function.
2288 (has_pred_critical_p): New function.
2289 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
2290 BB can have more than two predecessors and all incoming edges can be
2291 critical.
2292 (predicate_bbs): Skip predication for loop exit block, use build2_loc
2293 to compute predicate for true edge.
2294 (find_phi_replacement_condition): Delete this function.
2295 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
2296 Allow interchange PHI arguments if EXTENDED is false.
2297 Change check that block containing reduction statement candidate
2298 is predecessor of phi-block since phi may have more than two arguments.
2299 (phi_args_hash_traits): New helper structure.
2300 (struct phi_args_hash_traits): New type.
2301 (phi_args_hash_traits::hash): New function.
2302 (phi_args_hash_traits::equal_keys): New function.
2303 (gen_phi_arg_condition): New function.
2304 (predicate_scalar_phi): Add handling of phi nodes with more than two
2305 arguments, delete COND and TRUE_BB arguments, insert body of
2306 find_phi_replacement_condition to predicate ordinary phi nodes.
2307 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
2308 delete call of find_phi_replacement_condition and invoke
2309 predicate_scalar_phi with two arguments.
2310 (insert_gimplified_predicates): Add assert that non-predicated block
2311 don't have statements to insert.
2312 (ifcvt_split_critical_edges): New function.
2313 (ifcvt_split_def_stmt): Likewise.
2314 (ifcvt_walk_pattern_tree): Likewise.
2315 (stmt_is_root_of_bool_pattern): Likewise.
2316 (ifcvt_repair_bool_pattern): Likewise.
2317 (ifcvt_local_dce): Likewise.
2318 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
2319 is copy of inner or outer loop force_vectorize field, invoke
2320 ifcvt_split_critical_edges, ifcvt_local_dce and
2321 ifcvt_repair_bool_pattern for aggressive if-conversion.
2322
2323 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
2324
2325 * config/aarch64/aarch64.md: Include xgene1.md.
2326 * config/aarch64/xgene1.md: New file.
2327
2328 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2329
2330 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
2331 xgene1 (APM XGene-1) core definition.
2332 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
2333 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
2334 * doc/invoke.texi: Document -mcpu=xgene1.
2335
2336 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2337
2338 * dojump.h: New header file.
2339 * explow.h: Likewise.
2340 * expr.h: Remove includes.
2341 Move expmed.c prototypes to expmed.h.
2342 Move dojump.c prototypes to dojump.h.
2343 Move alias.c prototypes to alias.h.
2344 Move explow.c prototypes to explow.h.
2345 Move calls.c prototypes to calls.h.
2346 Move emit-rtl.c prototypes to emit-rtl.h.
2347 Move varasm.c prototypes to varasm.h.
2348 Move stmt.c prototypes to stmt.h.
2349 (saved_pending_stack_adjust): Move to dojump.h.
2350 (adjust_address): Move to explow.h.
2351 (adjust_address_nv): Move to emit-rtl.h.
2352 (adjust_bitfield_address): Likewise.
2353 (adjust_bitfield_address_size): Likewise.
2354 (adjust_bitfield_address_nv): Likewise.
2355 (adjust_automodify_address_nv): Likewise.
2356 * explow.c (expr_size): Move to expr.c.
2357 (int_expr_size): Likewise.
2358 (tree_expr_size): Likewise.
2359 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2360 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2361 * genemit.c (main): Generate includes statistics.h, real.h,
2362 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
2363 stmt.h.
2364 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
2365 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
2366 explow.h, emit-rtl.h, stmt.h.
2367 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
2368 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
2369 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
2370 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
2371 emit-rtl.h, varasm.h, stmt.h.
2372 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
2373 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
2374 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
2375 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
2376 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
2377 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
2378 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
2379 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
2380 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
2381 tm.h tree.h varasm.h vec.h wide-int.h.
2382 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2383 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2384 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
2385 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
2386 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
2387 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
2388 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
2389 * loop-iv.c: Likewise.
2390 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
2391 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
2392 statistics.h stmt.h tree.h varasm.h wide-int.h.
2393 * lra-constraints.c: Likewise.
2394 * lra-eliminations.c: Likewise.
2395 * lra-lives.c: Likewise.
2396 * lra-remat.c: Likewise.
2397 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2398 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
2399 statistics.h stmt.h tree.h varasm.h wide-int.h.
2400 * hw-doloop.c: Likewise.
2401 * ira-color.c: Likewise.
2402 * ira-emit.c: Likewise.
2403 * loop-doloop.c: Likewise.
2404 * loop-invariant.c: Likewise.
2405 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2406 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
2407 statistics.h stmt.h tree.h varasm.h wide-int.h.
2408 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
2409 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
2410 statistics.h stmt.h tree.h varasm.h wide-int.h.
2411 * combine-stack-adj.c: Likewise.
2412 * cse.c: Likewise.
2413 * ddg.c: Likewise.
2414 * ifcvt.c: Likewise.
2415 * ira-costs.c: Likewise.
2416 * jump.c: Likewise.
2417 * lra-coalesce.c: Likewise.
2418 * lra-spills.c: Likewise.
2419 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2420 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
2421 stmt.h varasm.h wide-int.h.
2422 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
2423 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2424 varasm.h.
2425 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
2426 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
2427 statistics.h stmt.h varasm.h wide-int.h.
2428 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
2429 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
2430 varasm.h wide-int.h.
2431 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
2432 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2433 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
2434 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
2435 statistics.h stmt.h.
2436 * config/tilepro/tilepro.c: Likewise.
2437 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
2438 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
2439 * config/pdp11/pdp11.c: Likewise.
2440 * config/xtensa/xtensa.c: Likewise.
2441 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
2442 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
2443 varasm.h.
2444 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2445 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2446 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
2447 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2448 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
2449 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
2450 * rtl-chkp.c: Likewise.
2451 * tree-chkp-opt.c: Likewise.
2452 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
2453 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
2454 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
2455 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2456 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2457 statistics.h stmt.h.
2458 * tree-vect-data-refs.c: Likewise.
2459 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
2460 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2461 rtl.h statistics.h stmt.h varasm.h.
2462 * internal-fn.c: Likewise.
2463 * ipa-icf-gimple.c: Likewise.
2464 * lto-section-out.c: Likewise.
2465 * tree-data-ref.c: Likewise.
2466 * tree-nested.c: Likewise.
2467 * tree-outof-ssa.c: Likewise.
2468 * tree-predcom.c: Likewise.
2469 * tree-pretty-print.c: Likewise.
2470 * tree-scalar-evolution.c: Likewise.
2471 * tree-ssa-strlen.c: Likewise.
2472 * tree-vect-loop.c: Likewise.
2473 * tree-vect-patterns.c: Likewise.
2474 * tree-vect-slp.c: Likewise.
2475 * tree-vect-stmts.c: Likewise.
2476 * tsan.c: Likewise.
2477 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2478 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
2479 stmt.h.
2480 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
2481 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2482 statistics.h stmt.h varasm.h.
2483 * loop-unroll.c: Likewise.
2484 * ubsan.c: Likewise.
2485 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
2486 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
2487 stmt.h varasm.h.
2488 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2489 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
2490 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
2491 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2492 statistics.h stmt.h.
2493 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
2494 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
2495 statistics.h stmt.h varasm.h.
2496 * gimple-match-head.c: Likewise.
2497 * lto-cgraph.c: Likewise.
2498 * lto-section-in.c: Likewise.
2499 * lto-streamer-in.c: Likewise.
2500 * lto-streamer-out.c: Likewise.
2501 * tree-affine.c: Likewise.
2502 * tree-cfg.c: Likewise.
2503 * tree-cfgcleanup.c: Likewise.
2504 * tree-if-conv.c: Likewise.
2505 * tree-into-ssa.c: Likewise.
2506 * tree-ssa-alias.c: Likewise.
2507 * tree-ssa-copyrename.c: Likewise.
2508 * tree-ssa-dse.c: Likewise.
2509 * tree-ssa-forwprop.c: Likewise.
2510 * tree-ssa-live.c: Likewise.
2511 * tree-ssa-math-opts.c: Likewise.
2512 * tree-ssa-pre.c: Likewise.
2513 * tree-ssa-sccvn.c: Likewise.
2514 * tree-tailcall.c: Likewise.
2515 * tree-vect-generic.c: Likewise.
2516 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2517 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
2518 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2519 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
2520 * varasm.c: Likewise.
2521 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2522 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
2523 varasm.h.
2524 * init-regs.c: Likewise.
2525 * ira.c: Likewise.
2526 * omp-low.c: Likewise.
2527 * stack-ptr-mod.c: Likewise.
2528 * tree-ssa-reassoc.c: Likewise.
2529 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2530 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
2531 varasm.h.
2532 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2533 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
2534 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2535 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
2536 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2537 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
2538 * tree-ssa-phiopt.c: Likewise.
2539 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2540 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2541 * config/fr30/fr30.c: Likewise.
2542 * config/frv/frv.c: Likewise.
2543 * expr.c: Likewise.
2544 * final.c: Likewise.
2545 * optabs.c: Likewise.
2546 * passes.c: Likewise.
2547 * simplify-rtx.c: Likewise.
2548 * stmt.c: Likewise.
2549 * toplev.c: Likewise.
2550 * var-tracking.c: Likewise.
2551 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2552 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2553 * lower-subreg.c: Likewise.
2554 * postreload-gcse.c: Likewise.
2555 * ree.c: Likewise.
2556 * reginfo.c: Likewise.
2557 * store-motion.c: Likewise.
2558 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2559 fixed-value.h hashtab.h real.h stmt.h varasm.h.
2560 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2561 fixed-value.h hashtab.h statistics.h stmt.h.
2562 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2563 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
2564 * except.c: Likewise.
2565 * explow.c: Likewise.
2566 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2567 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
2568 varasm.h.
2569 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2570 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
2571 * tree-ssa-structalias.c: Likewise.
2572 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2573 fixed-value.h insn-config.h real.h statistics.h.
2574 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2575 fixed-value.h insn-config.h real.h statistics.h stmt.h.
2576 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2577 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2578 * cfgbuild.c: Likewise.
2579 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2580 fixed-value.h real.h rtl.h statistics.h stmt.h.
2581 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2582 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2583 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2584 fixed-value.h real.h statistics.h stmt.h.
2585 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
2586 fixed-value.h real.h statistics.h stmt.h varasm.h.
2587 * cprop.c: Likewise.
2588 * modulo-sched.c: Likewise.
2589 * postreload.c: Likewise.
2590 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2591 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
2592 statistics.h stmt.h varasm.h.
2593 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
2594 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2595 rtl.h statistics.h stmt.h varasm.h.
2596 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
2597 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
2598 varasm.h.
2599 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
2600 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
2601 varasm.h.
2602 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
2603 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
2604 varasm.h.
2605 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
2606 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2607 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2608 function.h real.h statistics.h stmt.h varasm.h.
2609 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2610 insn-config.h real.h statistics.h stmt.h.
2611 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
2612 statistics.h stmt.h.
2613 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
2614 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
2615 statistics.h stmt.h varasm.h.
2616 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
2617 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
2618 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2619 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
2620 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
2621 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
2622 statistics.h stmt.h varasm.h.
2623 * ipa-polymorphic-call.c: Likewise.
2624 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
2625 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2626 statistics.h stmt.h.
2627 * config/c6x/c6x.c: Likewise.
2628 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
2629 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
2630 statistics.h stmt.h varasm.h.
2631 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
2632 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
2633 stmt.h varasm.h.
2634 * ipa-split.c: Likewise.
2635 * tree-eh.c: Likewise.
2636 * tree-ssa-dce.c: Likewise.
2637 * tree-ssa-loop-niter.c: Likewise.
2638 * tree-vrp.c: Likewise.
2639 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
2640 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
2641 stmt.h.
2642 * config/nds32/nds32-fp-as-gp.c: Likewise.
2643 * config/nds32/nds32-intrinsic.c: Likewise.
2644 * config/nds32/nds32-isr.c: Likewise.
2645 * config/nds32/nds32-md-auxiliary.c: Likewise.
2646 * config/nds32/nds32-memory-manipulation.c: Likewise.
2647 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
2648 * config/nds32/nds32-predicates.c: Likewise.
2649 * config/nds32/nds32.c: Likewise.
2650 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
2651 fixed-value.h hashtab.h real.h statistics.h.
2652 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
2653 fixed-value.h hashtab.h real.h statistics.h stmt.h.
2654 * config/arm/arm.c: Likewise.
2655 * config/avr/avr.c: Likewise.
2656 * config/bfin/bfin.c: Likewise.
2657 * config/h8300/h8300.c: Likewise.
2658 * config/i386/i386.c: Likewise.
2659 * config/ia64/ia64.c: Likewise.
2660 * config/iq2000/iq2000.c: Likewise.
2661 * config/m32c/m32c.c: Likewise.
2662 * config/m32r/m32r.c: Likewise.
2663 * config/m68k/m68k.c: Likewise.
2664 * config/mcore/mcore.c: Likewise.
2665 * config/mep/mep.c: Likewise.
2666 * config/mips/mips.c: Likewise.
2667 * config/mn10300/mn10300.c: Likewise.
2668 * config/moxie/moxie.c: Likewise.
2669 * config/pa/pa.c: Likewise.
2670 * config/rl78/rl78.c: Likewise.
2671 * config/rx/rx.c: Likewise.
2672 * config/s390/s390.c: Likewise.
2673 * config/sh/sh.c: Likewise.
2674 * config/sparc/sparc.c: Likewise.
2675 * config/spu/spu.c: Likewise.
2676 * config/stormy16/stormy16.c: Likewise.
2677 * config/v850/v850.c: Likewise.
2678 * config/vax/vax.c: Likewise.
2679 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
2680 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
2681 * config/msp430/msp430.c: Likewise.
2682 * predict.c: Likewise.
2683 * value-prof.c: Likewise.
2684 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
2685 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
2686 * config/microblaze/microblaze.c: Likewise.
2687 * config/nios2/nios2.c: Likewise.
2688 * config/rs6000/rs6000.c: Likewise.
2689 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2690 insn-config.h real.h rtl.h statistics.h stmt.h.
2691 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
2692 insn-config.h real.h statistics.h stmt.h.
2693 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
2694 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
2695 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
2696 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
2697 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
2698 fixed-value.h real.h statistics.h stmt.h.
2699 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
2700 fixed-value.h statistics.h stmt.h.
2701 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
2702 stmt.h.
2703
2704 2015-01-15 Jakub Jelinek <jakub@redhat.com>
2705
2706 * gengtype.c (create_user_defined_type): Workaround
2707 -Wmaybe-uninitialized false positives.
2708 * cse.c (fold_rtx): Likewise.
2709 * loop-invariant.c (gain_for_invariant): Likewise.
2710
2711 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
2712
2713 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
2714 set the memory attributes in all cases but clear MEM_EXPR if need be.
2715
2716 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
2717
2718 PR tree-optimization/64434
2719 * cfgexpand.c (reorder_operands): New function.
2720 (expand_gimple_basic_block): Insert call of reorder_operands if
2721 optimized is true.
2722
2723 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
2724
2725 * config/mips/micromips.md (*swp): Remove explicit parallel.
2726 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
2727 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
2728 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
2729 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
2730 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
2731 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
2732 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
2733 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
2734 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
2735 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
2736 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
2737 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
2738 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
2739 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
2740 (mips_wrdsp): Likewise.
2741 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
2742 parallel.
2743 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
2744 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
2745 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
2746 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
2747 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
2748 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
2749 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
2750 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
2751 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
2752
2753 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2754
2755 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
2756 (mips_print_operand): Support 'y' to print exact log2 in decimal
2757 of a const_int.
2758 * config/mips/mips.h (ISA_HAS_LSA): New define.
2759 (ISA_HAS_DLSA): Likewise.
2760 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
2761 * config/mips/predicates.md (const_immlsa_operand): New predicate.
2762
2763 2015-01-15 Martin Liska <mliska@suse.cz>
2764
2765 PR target/64377
2766 * optc-save-gen.awk: Add support for array types.
2767
2768 2015-01-15 Richard Biener <rguenther@suse.de>
2769
2770 PR middle-end/64365
2771 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
2772 for MEM_REF access functions with the same base can never partially
2773 overlap.
2774
2775 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2776
2777 * common.opt: New option -fstack-protector-explicit.
2778 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
2779 (stack_protect_decl_phase): Handle stack_protect attribute for
2780 explicit stack protection requests.
2781 (expand_used_vars): Similarly.
2782 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
2783 * doc/extend.texi: Add documentation for "stack_protect" attribute.
2784 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
2785
2786 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
2787
2788 PR target/53988
2789 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
2790 reg-reg copies.
2791 (sh_extending_set_of_reg): New struct.
2792 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
2793 sh_remove_reg_dead_or_unused_notes): New Declarations.
2794 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
2795 sh_find_extending_set_of_reg, sh_split_tst_subregs,
2796 sh_extending_set_of_reg::use_as_extended_reg): New functions.
2797 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
2798 convert to insn_and_split and use new function sh_split_tst_subregs.
2799
2800 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
2801
2802 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
2803 option.
2804 (Optimization Options): Move -fuse-ld documentation to...
2805 (Link Options): ...here.
2806
2807 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2808
2809 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
2810 offsets.
2811 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
2812 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
2813 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
2814 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
2815 instead of ZR for the memory operand of LL/SC.
2816 (compare_and_swap_12, sync_add<mode>): Likewise.
2817 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
2818 (sync_new_<optab>_12, sync_nand_12): Likewise.
2819 (sync_old_nand_12, sync_new_nand_12): Likewise.
2820 (sync_sub<mode>, sync_old_add<mode>): Likewise.
2821 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
2822 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
2823 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
2824 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
2825 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
2826 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
2827 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
2828 * doc/md.texi (ZC): Update description.
2829
2830 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2831
2832 * builtins.c (expand_builtin_atomic_exchange): Remove error when
2833 memory model is CONSUME.
2834 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
2835 expand_builtin_atomic_store): Change invalid memory model errors to
2836 warnings.
2837 (expand_builtin_atomic_clear): Change invalid model errors to warnings
2838 and issue warning for CONSUME.
2839
2840 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
2841
2842 * lto-cgraph: Update function comments for
2843 lto_symtab_encoder_encode_*.
2844
2845 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2846
2847 * Makefile.in (site.exp): Do not set ENABLE_LTO.
2848
2849 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
2850
2851 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
2852 * lto-cgraph.c (select_what_to_stream): Remove argument, use
2853 lto_stream_offload_p instead.
2854 * lto-streamer.h (select_what_to_stream): Remove argument.
2855 * passes.c (ipa_write_summaries): Likewise.
2856 * tree-pass.h (ipa_write_summaries): Likewise.
2857
2858 2015-01-14 Richard Biener <rguenther@suse.de>
2859
2860 PR tree-optimization/59354
2861 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
2862 groups larger than the slp group size as having gaps.
2863
2864 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
2865
2866 PR middle-end/59448
2867 * builtins.c (get_memmodel): Promote consume to acquire always.
2868
2869 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2870
2871 PR target/64386
2872 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
2873 V32HImode.
2874
2875 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2876
2877 PR target/64393
2878 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
2879 Enable AVX512BW.
2880 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
2881 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
2882 AVX512VBMI, as it implies AVX512BW.
2883
2884 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
2885
2886 PR target/64387
2887 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
2888 (vec_unpacks_hi_v16sf): Ditto.
2889
2890 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2891
2892 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
2893 is not available.
2894
2895 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2896
2897 * doc/invoke.texi (mapcs): Mention deprecation.
2898 (mapcs-frame): Likewise.
2899
2900 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
2901
2902 PR target/64453
2903 * config/arm/arm.c (callee_saved_reg_p): Define.
2904 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
2905 register is callee saved instead of !call_used_regs[reg].
2906 (thumb1_compute_save_reg_mask): Likewise.
2907
2908 2015-01-14 Hale Wang <hale.wang@arm.com>
2909
2910 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
2911 Cortex-M7.
2912
2913 2015-01-14 Richard Biener <rguenther@suse.de>
2914
2915 PR lto/64415
2916 * tree-inline.c (insert_debug_decl_map): Check destination
2917 function MAY_HAVE_DEBUG_STMTS.
2918 (insert_init_debug_bind): Likewise.
2919 (insert_init_stmt): Remove redundant check.
2920 (remap_gimple_stmt): Drop debug stmts if the destination
2921 function has var-tracking assignments disabled.
2922
2923 2015-01-14 Martin Liska <mliska@suse.cz>
2924
2925 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
2926 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
2927
2928 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2929
2930 PR target/64460
2931 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
2932 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
2933
2934 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
2935
2936 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
2937 level from an ARCH; do not inject the default.
2938 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
2939 MIPS_ISA_LEVEL_SPEC.
2940 (MIPS_ISA_NAN2008_SPEC): Update comment.
2941 (BASE_DRIVER_SELF_SPECS): Likewise.
2942 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
2943 MIPS_DEFAULT_ISA_LEVEL_SPEC.
2944 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
2945 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
2946 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
2947
2948 2015-01-14 Richard Biener <rguenther@suse.de>
2949
2950 PR tree-optimization/64493
2951 PR tree-optimization/64495
2952 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
2953 assign the proper vectorized PHI to the inner loop exit PHIs.
2954
2955 2015-01-14 Joey Ye <joey.ye@arm.com>
2956
2957 * config/arm/arm.c (arm_compute_save_reg_mask):
2958 Do not save lr in case of tail call.
2959 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
2960
2961 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
2962
2963 * tree-vrp.c (check_array_ref): Emit more warnings
2964 for warn_array_bounds >= 2.
2965 * common.opt: New option -Warray-bounds=.
2966 * doc/invoke.texi: Document -Warray-bounds=.
2967
2968 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
2969
2970 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
2971 (mforbid-fp-as-gp): Remove.
2972 (mex9): Remove.
2973 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
2974 (nds32_symbol_load_store_p): Remove.
2975 (nds32_fp_as_gp_check_available): Clean up implementation.
2976 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
2977 cases.
2978 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
2979 fp-as-gp and ex9 cases.
2980
2981 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2982
2983 * tree-profile.c (init_ic_make_global_vars): Drop workaround
2984 for bintuils bug 14342.
2985 (init_ic_make_global_vars): Likewise.
2986 (gimple_init_edge_profiler): Likewise.
2987 (gimple_gen_ic_func_profiler): Likewise.
2988
2989 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2990
2991 * ipa-inline.c (inline_small_functions): Swap the operands in
2992 enum.
2993
2994 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
2995
2996 PR ipa/64481
2997 * ipa-inline-analysis.c (node_growth_cache): Remove.
2998 (initialize_growth_caches): Do not initialize it.
2999 (free_growth_caches): Do not free it.
3000 (do_estimate_growth): Rename to ...
3001 (estimate_growth): ... this one; drop growth cache code.
3002 (growth_likely_positive): Always go the heuristics way.
3003 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
3004 (reset_edge_caches): Do not reset node growth.
3005 (heap_edge_removal_hook): Do not maintain cache.
3006 (inline_small_functions): Likewise; strenghten sanity check.
3007 (ipa_inline): Do not maintain caches.
3008 * ipa-inline.h (node_growth_cache): Remove.
3009 (do_estimate_growth): Remove to ...
3010 (estimate_growth): this one; remove inline version.
3011 (reset_node_growth_cache): Remove.
3012
3013 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
3014
3015 PR ipa/64565
3016 * ipa-inline.c (inline_small_functions): Update callee keys after
3017 resolving speculation
3018 (inline_small_functions): Always check monotonicity of the queue.
3019
3020 2015-01-13 Marek Polacek <polacek@redhat.com>
3021
3022 PR middle-end/64391
3023 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
3024
3025 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3026
3027 PR rtl-optimization/64286
3028 * ree.c (combine_reaching_defs): Move part of comment earlier,
3029 remove !SCALAR_INT_MODE_P check.
3030 (add_removable_extension): Don't add vector mode
3031 extensions if all uses of the source register aren't the same
3032 vector extensions.
3033
3034 2015-01-13 Renlin Li <renlin.li@arm.com>
3035
3036 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
3037 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
3038
3039 2015-01-13 Martin Liska <mliska@suse.cz>
3040
3041 * ipa-icf.c (sem_function::equals_private): Call new functions
3042 cl_target_option_print_diff and cl_optimization_print_diff.
3043 * optc-save-gen.awk (cl_target_option_print_diff): New function.
3044 (cl_optimization_print_diff): Likewise.
3045 * opth-gen.awk: Likewise.
3046
3047 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
3048
3049 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
3050 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
3051 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
3052 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
3053 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
3054 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
3055
3056 2015-01-13 Andrew Pinski <apinski@cavium.com>
3057
3058 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
3059 instead of src mode.
3060
3061 2015-01-13 Richard Biener <rguenther@suse.de>
3062
3063 PR lto/64373
3064 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
3065 DECL_CONTEXT.
3066
3067 2015-01-13 Andrew Pinski <apinski@cavium.com>
3068
3069 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
3070 volatile mems.
3071 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3072
3073 2015-01-13 Jakub Jelinek <jakub@redhat.com>
3074
3075 PR middle-end/63974
3076 * cfgexpand.c (expand_computed_goto): Don't call
3077 convert_memory_address here.
3078
3079 2015-01-13 Richard Biener <rguenther@suse.de>
3080
3081 PR tree-optimization/64406
3082 * tree-loop-distibution.c (pass_loop_distribution::execute):
3083 Reset the SCEV hashtable if we distributed anything.
3084
3085 2015-01-13 Richard Biener <rguenther@suse.de>
3086
3087 PR tree-optimization/64404
3088 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
3089 SLP types for CSEd loads.
3090
3091 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
3092
3093 PR tree-optimization/64436
3094 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
3095 merge of two symbolic numbers for a bitwise OR to ...
3096 (perform_symbolic_merge): This. Also fix computation of the range and
3097 end of the symbolic number corresponding to the result of a bitwise OR.
3098
3099 2015-01-13 Richard Biener <rguenther@suse.de>
3100
3101 PR tree-optimization/64568
3102 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
3103 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
3104
3105 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3106
3107 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
3108 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
3109
3110 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3111
3112 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
3113 target-specific symbol_ref flag.
3114 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
3115 resides in rodata section.
3116 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
3117 (nds32_encode_section_info): New function.
3118
3119 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3120
3121 * config/nds32/nds32.md (call): Use pseudo instruction bal which
3122 clobbers TA_REGNUM if large code model is specified.
3123 (call_register): Likewise.
3124 (call_immediate): Likewise.
3125 (call_value): Likewise.
3126 (call_value_register): Likewise.
3127 (call_value_immediate): Likewise.
3128
3129 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3130
3131 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
3132 (TARGET_CMODEL_MEDIUM): New macro.
3133 (TARGET_CMODEL_LARGE): New macro.
3134 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
3135 code model setting in assembly code.
3136
3137 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3138
3139 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
3140 Remove MASK_GP_DIRECT flag.
3141 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
3142 one of the multilib default options.
3143 * config/nds32/nds32.opt (mgp-direct): Remove.
3144 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
3145 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
3146
3147 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
3148
3149 * config/nds32/nds32.opt (mcmodel): Add new option.
3150 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
3151 to describe code model.
3152
3153 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
3154
3155 PR target/64479
3156 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
3157
3158 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
3159
3160 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
3161 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
3162 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
3163 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
3164 __builtin_sh_set_fpscr.
3165
3166 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3167
3168 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
3169 after a funtion name just to indicate it is a function.
3170 ([-fsanitize-undefined-trap-on-error]): Likewise.
3171 ([-fdbg-cnt=]): Likewise.
3172 ([-mmemcpy]): Likewise.
3173 ([-mflush-func]): Likewise.
3174 ([-msynci]): Likewise.
3175
3176 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
3177
3178 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
3179 example.
3180
3181 2015-01-12 Jakub Jelinek <jakub@redhat.com>
3182
3183 PR tree-optimization/64563
3184 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
3185 instead of != VR_VARYING.
3186
3187 PR target/64513
3188 * config/i386/i386.c (ix86_expand_prologue): Add
3189 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
3190
3191 PR tree-optimization/64454
3192 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
3193 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
3194 for signed or [0, op1 - 1] for unsigned modulo.
3195 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
3196 even if op1 does not satisfy integer_pow2p.
3197
3198 PR other/64370
3199 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
3200
3201 2015-01-12 Jeff Law <law@redhat.com>
3202
3203 PR target/64461
3204 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
3205 (trunchiqi2, truncsihi2): Similarly.
3206
3207 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
3208 rather than calling F.
3209
3210 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
3211
3212 * tsan.c (instrument_expr): Use force_gimple_operand.
3213 Use may_be_nonaddressable_p instead of is_gimple_addressable.
3214
3215 2015-01-12 Richard Biener <rguenther@suse.de>
3216
3217 PR tree-optimization/64530
3218 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
3219 back dr1.
3220
3221 2015-01-12 Richard Biener <rguenther@suse.de>
3222
3223 PR middle-end/64357
3224 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
3225 latches properly.
3226
3227 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3228
3229 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
3230 Cortex-A17 tuning parameters.
3231 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
3232
3233 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3234
3235 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
3236 * config/arm/arm.c (arm_macro_fusion_p): New function.
3237 (arm_macro_fusion_pair_p): Likewise.
3238 (TARGET_SCHED_MACRO_FUSION_P): Define.
3239 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
3240 (ARM_FUSE_NOTHING): Likewise.
3241 (ARM_FUSE_MOVW_MOVT): Likewise.
3242 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
3243 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
3244 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
3245 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
3246 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
3247 arm_cortex_a5_tune): Specify fuseable_ops value.
3248
3249 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
3250
3251 PR bootstrap/64561
3252 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
3253 test for PIE with copy reloc.
3254 * configure: Regenerated.
3255
3256 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3257
3258 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
3259 in gen_rtx_REG.
3260 (arm_tls_descseq_addr): Likewise.
3261 (arm_gen_movmemqi): Likewise.
3262 (arm_expand_epilogue_apcs_frame): Likewise.
3263 (arm_expand_epilogue): Likewise.
3264 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
3265 in gen_rtx_REG.
3266
3267 2015-01-12 Martin Liska <mliska@suse.cz>
3268
3269 PR ipa/64550
3270 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
3271 volatility for correct operands.
3272
3273 2015-01-12 Martin Liska <mliska@suse.cz>
3274
3275 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3276 that a function is not leaf.
3277 (sem_function::compare_polymorphic_p): Likewise.
3278
3279 2015-01-12 Martin Liska <mliska@suse.cz>
3280
3281 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as indication
3282 that a function is not leaf.
3283 (sem_function::compare_polymorphic_p): Likewise.
3284
3285 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3286
3287 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
3288 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
3289 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
3290 fold-const.h, tree-check.h.
3291
3292 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3293
3294 PR ipa/63967
3295 PR ipa/64425
3296 * ipa-inline.c (compute_uninlined_call_time,
3297 compute_inlined_call_time): Use counts for extra precision when
3298 needed possible.
3299 (big_speedup_p): Fix formating.
3300 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
3301 (relative_time_benefit): Remove.
3302 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
3303 merge guessed and read profile paths.
3304 (inline_small_functions): Count only !optimize_size functions into
3305 initial size; be more lax about sanity check when profile is used;
3306 be sure to update inlined function profile when profile is read.
3307
3308 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
3309
3310 PR ipa/63470
3311 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
3312 cost when edge becomes direct.
3313 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
3314 is resolved or when introducing new speculation.
3315
3316 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
3317
3318 PR ipa/64551
3319 PR ipa/64552
3320 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
3321 '||' to fix typo issue.
3322
3323 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
3324 accept and return NULL.
3325
3326 2015-01-12 Martin Liska <mliska@suse.cz>
3327
3328 * cgraph.c (cgraph_edge::remove_callee): Move function to header
3329 file for being inlined.
3330 (cgraph_set_edge_callee): Delete.
3331 (cgraph_edge::redirect_callee): Move function to header file
3332 for being inlined.
3333 (cgraph_edge::make_direct): Use new function.
3334 (cgraph_edge::dump_edge_flags): New function created from
3335 static dump_edge_flags function.
3336 (cgraph_node::dump): Use new function.
3337 (cgraph_edge::verify_count_and_frequency): New function created
3338 from verify_edge_count_and_frequency.
3339 (cgraph_edge::verify_corresponds_to_fndecl): New function created
3340 from verify_edge_corresponds_to_fndecl.
3341 (verify_edge_corresponds_to_fndecl): Delete.
3342 (cgraph_node::verify_node): Use new function.
3343 * cgraph.h (cgraph_edge::set_callee): New function.
3344 (cgraph_edge::dump_edge_flags): Likewise.
3345 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
3346
3347 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
3348
3349 * ipa-utils.c (estimate_function_body_sizes): Do not
3350 free node params when called late with early=true.
3351
3352 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
3353
3354 * doc/md.texi (Instruction Patterns): Rewrite text for
3355 clarity.
3356 (Example): Likewise.
3357
3358 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
3359
3360 * doc/invoke.texi (Option Summary): Break long lines.
3361 [(-fdiagnostics-color)]: Put long literal in @smallexample
3362 instead of inline.
3363 [(-fsanitize-recover)]: Likewise.
3364 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
3365 [(-ffast-math)]: Likewise.
3366 [(--param max-inline-insns-recursive)]: Likewise.
3367 [(--param max-inline-recursive-depth)]: Likewise.
3368 [(-mno-text-section-literals)]: Likewise.
3369
3370 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
3371
3372 * doc/install.texi: Update for libgomp being renamed from "GNU
3373 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
3374 Runtime Library".
3375 * doc/sourcebuild.texi: Likewise.
3376
3377 2015-01-10 Anthony Green <green@moxielogic.com>
3378
3379 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
3380 mul.x availability for moxiebox configuration.
3381
3382 2015-01-09 Anthony Green <green@moxielogic.com>
3383
3384 * config/moxie/moxie.md: Tabify assembly output.
3385
3386 2015-01-09 Anthony Green <green@moxielogic.com>
3387
3388 * config/moxie/moxie.md (CC_REG): Correct register definition.
3389
3390 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
3391
3392 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
3393 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
3394 of log files.
3395
3396 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3397
3398 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
3399
3400 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
3401 Jakub Jelinek <jakub@redhat.com>
3402
3403 PR middle-end/64412
3404 * lto-streamer.h (lto_stream_offload_p): New declaration.
3405 * lto-streamer.c (lto_stream_offload_p): New variable.
3406 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
3407 at the same time as section_name_prefix.
3408 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
3409 if lto_stream_offload_p.
3410 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
3411 stream TREE_TARGET_OPTION if lto_stream_offload_p.
3412 (write_ts_function_decl_tree_pointers): Don't
3413 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
3414 * tree-streamer-in.c (unpack_value_fields): Don't stream
3415 TREE_TARGET_OPTION in if ACCEL_COMPILER.
3416 (lto_input_ts_function_decl_tree_pointers): Don't stream
3417 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
3418 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
3419 instead of section_name_prefix string comparisons.
3420
3421 2015-01-09 Jakub Jelinek <jakub@redhat.com>
3422
3423 PR rtl-optimization/64536
3424 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
3425 tablejumps.
3426
3427 2015-01-09 Michael Collison <michael.collison@linaro.org>
3428
3429 PR tree-optimization/64322
3430 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
3431 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
3432
3433 2015-01-09 Tom de Vries <tom@codesourcery.com>
3434
3435 PR rtl-optimization/64539
3436 * regcprop.c (kill_clobbered_values): Factor out of ...
3437 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
3438 instead of note_stores with kill_clobbered_value.
3439
3440 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3441
3442 * ginclude/unwind-arm-common.h: Revert previous commit.
3443
3444 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
3445
3446 * config.gcc (arm*-*-freebsd*): New configuration.
3447 * config/arm/freebsd.h: New file.
3448 * config.host: Add extra components for arm*-*-freebsd*.
3449 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
3450 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
3451
3452 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3453
3454 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
3455 for -mcpu=e6500.
3456 * config/rs6000/t-rtems: Add e6500 multilibs.
3457
3458 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3459
3460 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
3461 MPC8540.
3462
3463 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3464
3465 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
3466 MULTILIB_EXCEPTIONS.
3467
3468 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3469
3470 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
3471 MULTILIB_EXCEPTIONS.
3472
3473 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
3474
3475 * config/arm/t-rtems-eabi: Rename to...
3476 * config/arm/t-rtems: ...this.
3477 * config/arm/rtems-eabi.h: Rename to...
3478 * config/arm/rtems.h: ...this.
3479 * config.gcc (arm*-*-rtems*): Reflect changes above.
3480
3481 2015-01-09 Richard Biener <rguenther@suse.de>
3482
3483 PR tree-optimization/64410
3484 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
3485 on the LHS.
3486 (execute_update_addresses_taken): Deal with that.
3487 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
3488 loads/stores for complex variables.
3489
3490 2015-01-09 Martin Liska <mliska@suse.cz>
3491
3492 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
3493 name comparison.
3494 (func_checker::compare_memory_operand): New function.
3495 (func_checker::compare_operand): Split case to newly
3496 added functions.
3497 (func_checker::compare_cst_or_decl): New function.
3498 (func_checker::compare_gimple_call): Identify
3499 memory operands.
3500 (func_checker::compare_gimple_assign): Likewise.
3501 * ipa-icf-gimple.h: New function.
3502
3503 2015-01-09 Martin Liska <mliska@suse.cz>
3504
3505 PR ipa/64503
3506 * sreal.c (sreal::dump): Change unsigned format to signed for
3507 m_exp value.
3508 (sreal::to_double): Replace exp2 with scalbln.
3509
3510 2015-01-09 Martin Liska <mliska@suse.cz>
3511
3512 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
3513 * ipa-icf.c (sem_function::equals_private): Add support for target and
3514 (sem_item_optimizer::merge_classes): Remove redundant function
3515 optimization flags comparison.
3516 * tree.h (target_opts_for_fn): New function.
3517
3518 2015-01-09 Tom de Vries <tom@codesourcery.com>
3519
3520 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
3521
3522 2015-01-09 Kito Cheng <kito@0xlab.org>
3523
3524 PR rtl-optimization/64348
3525 * lra-constraints.c (split_reg): Fix caller-save store/restore
3526 instruction generation.
3527
3528 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
3529
3530 PR gcov-profile/61790
3531 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
3532 long long. Fallback to int64_t if host doesn't have long long and
3533 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
3534
3535 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3536
3537 PR tree-optimization/63989
3538 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
3539 from 1000 to 10000.
3540 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
3541 (get_stridx): If we don't have a record for certain SSA_NAME,
3542 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
3543 constant offset, call get_stridx_plus_constant.
3544 (get_stridx_plus_constant): New function.
3545 (zero_length_string): Don't use get_stridx here.
3546
3547 PR target/55023
3548 PR middle-end/64388
3549 * dse.c (struct insn_info): Mention frame_read set also
3550 before reload for tail calls on some targets.
3551 (scan_insn): Revert 2014-12-22 change. Set frame_read
3552 also before reload for tail calls if
3553 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
3554 instead of add_non_frame_wild_read for non-const/memset
3555 tail calls after reload.
3556
3557 2015-01-08 Jason Merrill <jason@redhat.com>
3558
3559 * ubsan.c (do_ubsan_in_current_function): New.
3560 (pass_ubsan::gate): Use it.
3561 * ubsan.h: Declare it.
3562 * convert.c (convert_to_integer): Use it.
3563
3564 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3565
3566 PR target/64338
3567 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
3568 compare_code when it is unconditionally overwritten afterwards.
3569 Use ix86_reverse_condition instead of reverse_condition. Don't
3570 change code if *reverse_condition* returned UNKNOWN and don't
3571 swap ct/cf and negate diff in that case.
3572
3573 2015-01-08 Mike Stump <mikestump@comcast.net>
3574
3575 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
3576 (pass_tsan_O0::gate): Likewise.
3577 * extend.texi (Function Attributes): Add no_sanitize_thread
3578 documentation.
3579
3580 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
3581
3582 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
3583 for registering builtins.
3584 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
3585 add -fopenmp to the argv_obstack used when invoking
3586 compile_for_target.
3587
3588 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
3589 add "-m32" or "-m64" to argv_obstack.
3590 (generate_host_descr_file): Likewise, when invoking host_compiler.
3591 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
3592 ld.
3593
3594 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3595
3596 * config/sh/sh-mem.cc: Use constant as second operand when emitting
3597 tstsi_t insns.
3598
3599 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
3600
3601 PR target/55212
3602 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
3603 constant load if constant operand fits into I08.
3604
3605 2015-01-08 Jakub Jelinek <jakub@redhat.com>
3606
3607 PR sanitizer/64336
3608 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
3609 and TREE_THIS_VOLATILE for MEM_REFs.
3610 (build5_stat): Fix up initialization of TREE_READONLY and
3611 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
3612
3613 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
3614
3615 PR target/64533
3616 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
3617 of r for the second alternative of the destination operand.
3618
3619 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
3620
3621 PR target/36557
3622 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
3623
3624 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3625
3626 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
3627 keywords.
3628 ([-fivar-visibility], [-fvisibility]): Likewise.
3629
3630 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
3631
3632 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
3633 the file where @code, @command, etc is more appropriate.
3634
3635 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
3636
3637 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
3638 of -mrecip= documentation.
3639
3640 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3641
3642 PR target/64505
3643 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
3644 correct reload handler if -m32 -mpowerpc64 is used.
3645
3646 2015-01-06 Tom de Vries <tom@codesourcery.com>
3647
3648 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
3649
3650 2015-01-08 Christian Bruel <christian.bruel@st.com>
3651
3652 PR target/64507
3653 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
3654
3655 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
3656
3657 PR tree-optimization/63259
3658 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
3659 if optab exists for 16bit byteswap.
3660
3661 2015-01-06 Jakub Jelinek <jakub@redhat.com>
3662
3663 * opts.c (common_handle_option): Add support for
3664 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
3665 * doc/invoke.texi: Document -fno-sanitize=all,
3666 -f{,no-}sanitize-recover=all. Document that
3667 -fsanitize=float-cast-overflow is not enabled
3668 by -fsanitize=undefined. Fix up documentation
3669 of -f{,no-}sanitize-recover.
3670
3671 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
3672
3673 * config.gcc: Add Visium support.
3674 * configure.ac: Likewise.
3675 * configure: Regenerate.
3676 * doc/extend.texi (interrupt attribute): Add Visium.
3677 * doc/invoke.texi: Document Visium options.
3678 * doc/install.texi: Document Visium target.
3679 * doc/md.texi: Document Visium constraints.
3680 * common/config/visium: New directory.
3681 * config/visium: Likewise.
3682
3683 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3684
3685 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
3686 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
3687
3688 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
3689
3690 * combine.c (combine_validate_cost): Do not count the cost of a
3691 split I2 twice. Do not display it twice in the dump, either.
3692
3693 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3694
3695 Revert parts of r219199.
3696 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
3697 <inttypes.h>.
3698 ([-Wtraditional]): Restore markup on <limits.h>.
3699
3700 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
3701
3702 PR c++/31397
3703 * doc/invoke.texi: Document -Wsuggest-override.
3704
3705 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
3706
3707 PR rtl-optimization/64287
3708 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
3709 (process_options): Disable flag_ipa_ra if profiling.
3710
3711 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
3712
3713 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
3714
3715 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
3716
3717 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
3718 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
3719 put under #if TARGET_LOOPS guard.
3720
3721 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
3722
3723 * config/i386/i386.c (output_387_binary_op): Use std::swap.
3724
3725 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
3726
3727 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
3728 * rtl.h (refers_to_regno_p): Add overload.
3729 * cse.c: Use it.
3730 * bt-load.c: Likewise.
3731 * combine.c: Likewise.
3732 * df-scan.c: Likewise.
3733 * sched-deps.c: Likewise.
3734 * config/s390/s390.c: Likewise.
3735 * config/m32r/m32r.c: Likewise.
3736 * config/rs6000/spe.md: Likewise.
3737 * config/rs6000/rs6000.c: Likewise.
3738 * config/pa/pa.c: Likewise.
3739 * config/stormy16/stormy16.c: Likewise.
3740 * config/cris/cris.c: Likewise.
3741 * config/arc/arc.md: Likewise.
3742 * config/arc/arc.c: Likewise.
3743 * config/sh/sh.md: Likewise.
3744 * config/sh/sh.c: Likewise.
3745 * config/frv/frv.c: Likewise.
3746
3747 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3748
3749 PR sanitizer/64265
3750 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
3751 call as cleanup of the whole body.
3752 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
3753 * tsan.c (replace_func_exit): New function.
3754 (instrument_func_exit): Moved earlier.
3755 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
3756 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
3757 been found.
3758 (tsan_pass): Don't call instrument_func_exit.
3759 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
3760 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
3761 inlining.
3762
3763 PR sanitizer/64344
3764 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
3765 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
3766 it to libubsan handler instead of EXPR. Fold comparisons earlier,
3767 if the result is integer_zerop, return NULL_TREE.
3768 * convert.c (convert_to_integer): Pass expr as ARG.
3769
3770 PR tree-optimization/64465
3771 * tree-inline.c (redirect_all_calls): During inlining
3772 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
3773 changed the stmt to a non-throwing call.
3774
3775 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
3776
3777 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
3778 etc markup throughout the file.
3779
3780 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3781
3782 Enable experimental TSAN support for Ada.
3783 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
3784
3785 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3786
3787 PR tree-optimization/64494
3788 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
3789 clear SSA_NAME_ANTI_RANGE_P flag.
3790
3791 2015-01-05 Marek Polacek <polacek@redhat.com>
3792
3793 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
3794
3795 2015-01-05 Jakub Jelinek <jakub@redhat.com>
3796
3797 Update copyright years.
3798
3799 * gcc.c (process_command): Update copyright notice dates.
3800 * gcov-dump.c: Ditto.
3801 * gcov.c: Ditto.
3802 * doc/cpp.texi: Bump @copying's copyright year.
3803 * doc/cppinternals.texi: Ditto.
3804 * doc/gcc.texi: Ditto.
3805 * doc/gccint.texi: Ditto.
3806 * doc/gcov.texi: Ditto.
3807 * doc/install.texi: Ditto.
3808 * doc/invoke.texi: Ditto.
3809
3810 * auto-profile.c, auto-profile.h: Fix up Copyright line.
3811
3812 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
3813
3814 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
3815 verb tense, etc.
3816 ([-fvtable-verify], [-fvtv-debug]): Likewise.
3817 ([-Wabi]): Likewise.
3818 ([-fmessage-length]): Likewise.
3819 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
3820 ([-Wno-discarded-qualifiers]): Likewise.
3821 ([-Wnodiscarded-array-qualifiers]): Likewise.
3822 ([-Wno-virtual-move-assign]): Likewise.
3823 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
3824 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
3825 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
3826 ([-fsanitize-undefined-trap-on-error]): Likewise.
3827 ([-floop-interchange]): Likewise.
3828 ([-ftree-coalesce-inlined-vars]): Likewise.
3829 ([-fvect-cost-model]): Likewise.
3830 ([-flto]): Likewise.
3831 ([--param]): Likewise.
3832 (Spec Files): Likewise.
3833 ([-mstrict-align]): Likewise.
3834 ([-mfix-cortex-a53-835769]): Likewise.
3835 ([-march], [-mtune]): Likewise.
3836 ([-mpic-register]): Likewise.
3837 ([-munaligned-access]): Likewise.
3838 ([-msp8]): Likewise.
3839 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
3840 (AVR Built-in Macros): Likewise.
3841 ([-mpreferred-stack-boundary]): Likewise.
3842 ([-mtune-crtl]): Likewise.
3843 ([-mashf]): Likewise.
3844 ([-mmcu=]): Likewise.
3845 ([-minrt]): Likewise.
3846 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
3847 ([-mupper-regs]): Likewise.
3848 ([-matomic-model]): Likewise.
3849 ([-mdiv]): Likewise.
3850 ([-mzdcbranch]): Likewise.
3851 ([-mdisable-callt]): Likewise.
3852 ([-msoft-float]): Likewise.
3853 ([-m8byte-align]): Likewise.
3854 ([-fstack-reuse]): Likewise.
3855
3856 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3857
3858 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
3859 Fix markup, light copy-editing.
3860 ([-fauto-profile]): Rewrite to fix formatting and content
3861 problems.
3862
3863 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3864
3865 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
3866 Copy-edit description.
3867 ([-fisolate-erroneous-paths-attribute]): Likewise.
3868 * common.opt (fisolate-erroneous-paths-dereference):
3869 Copy-edit description.
3870 (fisolate-erroneous-paths-attribute): Likewise.
3871
3872 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3873
3874 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
3875 tidy grammar.
3876
3877 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
3878
3879 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
3880 ([-fvtv-debug]): Likewise.
3881 ([-Wc++-compat]): Likewise.
3882 ([-Wc++11-compat]): Likewise.
3883 ([-Wc++14-compat]): Likewise.
3884 ([-Wno-sized-deallocation]): Likewise.
3885 ([-femit-class-debug-always]): Likewise.
3886 ([-femit-struct-debug-detailed]): Likewise.
3887 ([-fno-keep-inline-dllexport]): Likewise.
3888 ([-fira-algorithm]): Likewise.
3889 ([-fira-region]): Likewise.
3890 ([-flra-remat]): Likewise.
3891 ([-fipa-ra]): Likewise.
3892 ([-fhoist-adjacent-loads]): Likewise.
3893 ([-fisolate-erroneous-paths-dereference]): Likewise.
3894 ([-fisolate-erroneous-paths-attribute]): Likewise.
3895 ([-ftree-switch-conversion]): Likewise.
3896 ([-ftree-tail-merge]): Likewise.
3897 ([-ftree-loop-if-convert]): Likewise.
3898 ([-ftree-loop-if-convert-stores]): Likewise.
3899 ([-ftree-loop-distribution]): Likewise.
3900 ([-ftree-loop-distribute-patterns]): Likewise.
3901 ([-flto-compression-level]): Likewise.
3902 ([-flto-report]): Likewise.
3903 ([-flto-report-wpa]): Likewise.
3904 ([-fuse-linker-plugin]): Likewise.
3905 ([-mfix-cortex-a53-835769]): Likewise.
3906 ([-mno-fix-cortex-a53-835769]): Likewise.
3907 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
3908 explicit listing; add a note to the discussion indicating they
3909 exist. Reorder table to group similar options. Add missing
3910 @opindex entries. Add @need commands throughout the table to
3911 allow it to be split across multiple pages.
3912 ([-m8bit-idiv]): Fix @opindex.
3913 ([-mavx256-split-unaligned-load]): Likewise.
3914 ([-mavx256-split-unaligned-store]): Likewise.
3915 ([-mstack-protector-guard]): Likewise.
3916 ([-mcpu=]): Likewise.
3917 ([-mcpu]): Likewise.
3918 ([-mpointer-size=]): Likewise.
3919
3920 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
3921
3922 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
3923 instead of `m' constraint. Likewise for unnamed movb comparison
3924 patterns using reg_before_reload_operand predicate.
3925 * config/pa/predicates.md (reg_before_reload_operand): Tighten
3926 predicate to reject register index and LO_SUM DLT memory forms
3927 after reload.
3928
3929 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3930
3931 * doc/invoke.texi (Option Summary): Fix spelling of
3932 -fdevirtualize-at-ltrans.
3933 ([-fdevirtualize]): Fix markup.
3934 ([-fdevirtualize-speculatively]): Fix typo.
3935 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
3936 implementor-speaky.
3937 * common.opt (fdevirtualize-at-ltrans): Likewise.
3938 * ipa-devirt.c: Fix typos in comments throughout the file.
3939 (ipa_devirt): Fix typos in format strings for dump output.
3940
3941 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
3942
3943 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
3944 discussion of defaults, light copy-editing.
3945
3946 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3947
3948 * tsan.c (instrument_expr): corrected previous checkin.
3949
3950 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3951
3952 Instrument bit field and unaligned accesses for TSAN.
3953 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
3954 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
3955 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
3956 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
3957 unaligned memory regions.
3958
3959 2015-01-01 Anthony Green <green@moxielogic.com>
3960
3961 * config/moxie/predicates.md (moxie_general_movsrc_operand):
3962 Restrict move source register offsets to 16 bits.
3963 \f
3964 Copyright (C) 2015 Free Software Foundation, Inc.
3965
3966 Copying and distribution of this file, with or without modification,
3967 are permitted in any medium without royalty provided the copyright
3968 notice and this notice are preserved.