Update definition of call_fusage_contains_non_callee_clobbers
[gcc.git] / gcc / ChangeLog
1 2014-06-20 Tom de Vries <tom@codesourcery.com>
2
3 * target.def (call_fusage_contains_non_callee_clobbers): Update
4 definition.
5 * doc/tm.texi: Regenerate.
6
7 2014-06-20 Yury Gribov <y.gribov@samsung.com>
8 Max Ostapenko <m.ostapenko@partner.samsung.com>
9
10 PR sanitizer/61547
11 * asan.c (instrument_strlen_call): Fixed instrumentation of
12 trailing byte.
13
14 2014-06-20 Martin Jambor <mjambor@suse.cz>
15
16 PR ipa/61540
17 * ipa-prop.c (impossible_devirt_target): New function.
18 (try_make_edge_direct_virtual_call): Use it, also instead of
19 asserting.
20
21 2014-06-20 Yury Gribov <y.gribov@samsung.com>
22 Max Ostapenko <m.ostapenko@partner.samsung.com>
23
24 PR sanitizer/61530
25 * asan.c (build_check_stmt): Add condition.
26
27 2014-06-20 Martin Jambor <mjambor@suse.cz>
28
29 PR ipa/61211
30 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
31 expanded clones.
32
33 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34
35 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
36 Update comments.
37 (VCONQ): Make comment more helpful.
38 (VCON): Delete.
39 * config/aarch64/aarch64-simd.md
40 (aarch64_sqdmulh_lane<mode>):
41 Use VCOND for operands 2. Update lane checking and flipping logic.
42 (aarch64_sqrdmulh_lane<mode>): Likewise.
43 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
44 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
45 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
46 attribute of operand 3 to VCOND.
47 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
48 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
49 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
50 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
51 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
52 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
53 define_insn.
54 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
55 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
56 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
57 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
58 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
59 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
60 operand to VCOND. Update lane flipping and bounds checking logic.
61 (aarch64_sqdmlal2_lane<mode>): Likewise.
62 (aarch64_sqdmlsl_lane<mode>): Likewise.
63 (aarch64_sqdmull_lane<mode>): Likewise.
64 (aarch64_sqdmull2_lane<mode>): Likewise.
65 (aarch64_sqdmlal_laneq<mode>):
66 Replace VCON usage with VCONQ.
67 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
68 (aarch64_sqdmlal2_laneq<mode>): Emit
69 aarch64_sqdmlal2_laneq<mode>_internal insn.
70 Replace VCON with VCONQ.
71 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
72 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
73 (aarch64_sqdmull_laneq<mode>): Emit
74 aarch64_sqdmull_laneq<mode>_internal insn.
75 Replace VCON with VCONQ.
76 (aarch64_sqdmull2_laneq<mode>): Emit
77 aarch64_sqdmull2_laneq<mode>_internal insn.
78 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
79 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
80 of 3rd argument to int16x4_t.
81 (vqdmlalh_lane_s16): Likewise.
82 (vqdmlslh_lane_s16): Likewise.
83 (vqdmull_high_lane_s16): Likewise.
84 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
85 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
86 (vqdmlsl_lane_s16): Likewise.
87 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
88 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
89 (vqdmlals_lane_s32): Likewise.
90 (vqdmlsls_lane_s32): Likewise.
91 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
92 (vqdmulls_lane_s32): Likewise.
93 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
94 (vqdmlsl_lane_s32): Likewise.
95 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
96 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
97 (vqrdmulhh_lane_s16): Likewise.
98 (vqdmlsl_high_lane_s16): Likewise.
99 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
100 (vqdmlsl_high_lane_s32): Likewise.
101 (vqrdmulhs_lane_s32): Likewise.
102
103 2014-06-20 Tom de Vries <tom@codesourcery.com>
104
105 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
106 get_call_reg_set_usage.
107
108 2014-06-20 Tom de Vries <tom@codesourcery.com>
109
110 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
111 it contains all call_used_regs.
112
113 2014-06-20 Tom de Vries <tom@codesourcery.com>
114
115 * final.c (collect_fn_hard_reg_usage): Add and use variable
116 function_used_regs.
117
118 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
119
120 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
121 (set_init_priority, get_init_priority, set_fini_priority,
122 get_fini_priority): New methods.
123 * tree.c (init_priority_for_decl): Remove.
124 (init_ttree): Do not initialize init priority.
125 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
126 (decl_priority_info): Remove.
127 (decl_init_priority_insert): Rewrite.
128 (decl_fini_priority_insert): Rewrite.
129 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
130 tree_priority_map_marked_p): Remove.
131 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
132 * lto-streamer-out.c (hash_tree): Do not hash priorities.
133 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
134 not output priorities.
135 (pack_ts_function_decl_value_fields): Likewise.
136 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
137 not input priorities.
138 (unpack_ts_function_decl_value_fields): Likewise.
139 * symtab.c (symbol_priority_map): Declare.
140 (init_priority_hash): Declare.
141 (symtab_unregister_node): Unregister from priority hash, too.
142 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
143 New methods.
144 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
145 (symbol_priority_info): New function.
146 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
147 New methods.
148 * tree-core.h (tree_priority_map): Remove.
149
150 2014-06-20 Jakub Jelinek <jakub@redhat.com>
151
152 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
153 0xff to uint64_t before shifting it up.
154
155 2014-06-20 Julian Brown <julian@codesourcery.com>
156 Chung-Lin Tang <cltang@codesourcery.com>
157
158 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
159 TARGET_THUMB1_ONLY. Add comments.
160
161 2014-06-19 Tom de Vries <tom@codesourcery.com>
162
163 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
164 return type to void.
165 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
166
167 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
168
169 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
170 as "move", from depends_on.
171
172 2014-06-19 Terry Guo <terry.guo@arm.com>
173
174 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
175 stage.
176
177 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
178
179 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
180 Remove cr5.
181 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
182
183 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
184
185 PR target/61550
186 * config/sh/sh.c (prepare_move_operands): Don't process TLS
187 addresses here if reload in progress or completed.
188
189 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
190
191 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
192 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
193 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
194 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
195 (mips_register_priority): New function that implements the target
196 hook TARGET_REGISTER_PRIORITY.
197 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
198 (mips_lra_p): Likewise for TARGET_LRA_P.
199 (TARGET_REGISTER_PRIORITY): Define macro.
200 (TARGET_SPILL_CLASS): Likewise.
201 (TARGET_LRA_P): Likewise.
202 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
203 classes.
204 (REG_CLASS_NAMES): Likewise.
205 (REG_CLASS_CONTENTS): Likewise.
206 (BASE_REG_CLASS): Use M16_SP_REGS.
207 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
208 New set attribute to enable alternatives depending on the register
209 allocator used.
210 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
211 (*lea64): Disable pattern for MIPS16.
212 * config/mips/mips.opt (mlra): New option.
213
214 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
215
216 * lra-constraints.c (base_to_reg): New function.
217 (process_address): Use new function.
218
219 2014-06-18 Tom de Vries <tom@codesourcery.com>
220
221 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
222 * config/aarch64/aarch64.c
223 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
224 (aarch64_emit_call_insn): New function.
225 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
226 of emit_call_insn.
227 * config/aarch64/aarch64.md (define_expand "call_internal")
228 (define_expand "call_value_internal", define_expand "sibcall_internal")
229 (define_expand "sibcall_value_internal"): New.
230 (define_expand "call", define_expand "call_value")
231 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
232 expand variant and aarch64_emit_call_insn.
233
234 2014-06-18 Radovan Obradovic <robradovic@mips.com>
235 Tom de Vries <tom@codesourcery.com>
236
237 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
238 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
239 Redefine to true.
240 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
241 clobbers to CALL_INSN_FUNCTION_USAGE.
242 (define_expand "sibcall_internal")
243 (define_expand "sibcall_value_internal"): New.
244 (define_expand "call", define_expand "call_value"): Add argument to
245 arm_emit_call_insn.
246 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
247 (define_expand "sibcall_value"): Use sibcall_value_internal and
248 arm_emit_call_insn.
249
250 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
251
252 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
253
254 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
255
256 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
257 __udivmoddi4.
258
259 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
260
261 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
262 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
263 annotations. Fix DWARF information.
264
265 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
266
267 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
268 __udivmoddi4, and fixups for negative operands.
269
270 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
271
272 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
273
274 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
275
276 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
277 to __udivmoddi4.
278
279 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
280
281 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
282 manipulation.
283
284 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
285
286 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
287 describing register usage on function entry and exit.
288
289 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
290
291 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
292 (__aeabi_ldivmod): Fix whitespace.
293
294 2014-06-18 Andreas Schwab <schwab@suse.de>
295
296 * doc/md.texi (Standard Names): Use @itemx for grouped items.
297 Remove blank line after @item.
298
299 2014-06-18 Richard Henderson <rth@redhat.com>
300
301 PR target/61545
302 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
303
304 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
305
306 * config/arm/arm.c (neon_vector_mem_operand): Allow register
307 POST_MODIFY for neon loads and stores.
308 (arm_print_operand): Output post-index register for neon loads and
309 stores.
310
311 2014-06-18 Richard Biener <rguenther@suse.de>
312
313 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
314
315 2014-06-18 Richard Biener <rguenther@suse.de>
316
317 * tree-pass.h (make_pass_dce_loop): Remove.
318 * passes.def: Replace pass_dce_loop with pass_dce.
319 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
320 changed free niter estimates and reset the scev cache.
321 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
322 make_pass_dce_loop): Remove.
323 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
324 (fini_copy_prop): Return whether something changed. Always
325 let substitute_and_fold perform DCE and free niter estimates
326 and reset the scev cache if so.
327 (execute_copy_prop): If sth changed schedule cleanup-cfg.
328 (pass_data_copy_prop): Do not unconditionally schedule
329 cleanup-cfg or update-ssa.
330
331 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
332
333 PR tree-optimization/61518
334 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
335 reduction var is used in reduction stmt or phi-function only.
336
337 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
338
339 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
340
341 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
342
343 PR tree-optimization/61517
344 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
345 whose rhs's first tree is the source expression instead of the
346 expression itself.
347 (find_bswap_or_nop): Likewise.
348 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
349 gimple stmt whose rhs's first tree is the source. In the memory source
350 case, move the stmt to be replaced close to one of the original load to
351 avoid the problem of a store between the load and the stmt's original
352 location.
353 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
354 signature.
355
356 2014-06-18 Andreas Schwab <schwab@suse.de>
357
358 PR rtl-optimization/54555
359 * postreload.c (move2add_use_add2_insn): Substitute
360 STRICT_LOW_PART only if it is cheaper.
361
362 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
363
364 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
365 Do not use unspec as call operand. Use memory_operand instead of
366 memory_nox32_operand and add "m" operand constraint. Disable
367 pattern for TARGET_X32.
368 (*sibcall_pop_memory): Ditto.
369 (*sibcall_value_memory): Ditto.
370 (*sibcall_value_pop_memory): Ditto.
371 (sibcall peepholes): Merge SImode and DImode patterns using
372 W mode iterator. Use memory_operand instead of memory_nox32_operand.
373 Disable pattern for TARGET_X32. Check if eliminated register is
374 really dead after call insn. Generate call RTX without unspec operand.
375 (sibcall_value peepholes): Ditto.
376 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
377 instead of memory_nox32_operand. Check if eliminated register is
378 really dead after call insn. Generate call RTX without unspec operand.
379 (sibcall_value_pop peepholes): Ditto.
380 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
381
382 2014-06-18 Terry Guo <terry.guo@arm.com>
383
384 PR target/61544
385 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
386 reach the head.
387
388 2014-06-18 Richard Biener <rguenther@suse.de>
389
390 * common.opt (fssa-phiopt): New option.
391 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
392 but not with -Og.
393 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
394 * doc/invoke.texi (-fssa-phiopt): Document.
395
396 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
397
398 * genattrtab.c (n_bypassed): New variable.
399 (process_bypasses): Initialise n_bypassed.
400 Count number of bypassed reservations.
401 (make_automaton_attrs): Allocate space for bypassed reservations
402 rather than number of bypasses.
403
404 2014-06-18 Richard Biener <rguenther@suse.de>
405
406 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
407 we propagated anything.
408 (substitute_and_fold_dom_walker::before_dom_children): Something
409 changed if we propagated into PHI arguments.
410 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
411 we removed a stmt.
412
413 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
414
415 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
416 vector case.
417 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
418 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
419 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
420 Introduces alternative way of loads group permutaions.
421 (vect_transform_grouped_load): Try alternative way of permutations.
422
423 2014-06-18 Jakub Jelinek <jakub@redhat.com>
424
425 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
426 changed in ORT_TARGET region, don't jump to do_outer.
427 (struct gimplify_adjust_omp_clauses_data): New type.
428 (gimplify_adjust_omp_clauses_1): Adjust for data being
429 a struct gimplify_adjust_omp_clauses_data pointer instead
430 of tree *. Pass pre_p as a new argument to
431 lang_hooks.decls.omp_finish_clause hook.
432 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
433 splay_tree_foreach to pass both list_p and pre_p.
434 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
435 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
436 gimplify_adjust_omp_clauses callers.
437 * langhooks.c (lhd_omp_finish_clause): New function.
438 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
439 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
440 * langhooks.h (struct lang_hooks_for_decls): Add a new
441 gimple_seq * argument to omp_finish_clause hook.
442 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
443 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
444 (scan_omp_parallel, lower_omp_for): When adding
445 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
446 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
447 * tree-nested.c (convert_nonlocal_omp_clauses,
448 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
449 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
450
451 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
452
453 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
454 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
455
456 2014-06-17 Xinliang David Li <davidxl@google.com>
457
458 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
459 * passes.c (pass_init_dump_file): Do not set initialize
460 flag to false unconditionally.
461
462 2014-06-17 Richard Biener <rguenther@suse.de>
463
464 * genopinit.c (main): Use vec<>::qsort method.
465 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
466 Likewise.
467 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
468
469 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
470
471 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
472 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
473 (mips_move_to_gpr_cost): Remove ST_REGS case.
474 (mips_move_from_gpr_cost): Likewise.
475 (mips_register_move_cost): Likewise.
476 (mips_secondary_reload_class): Likewise.
477
478 2014-06-17 Richard Biener <rguenther@suse.de>
479
480 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
481 (pass_all_optimizations): Move 3rd copy-prop pass from after
482 fre to before ifcombine/phiopt.
483
484 2014-06-17 Richard Biener <rguenther@suse.de>
485
486 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
487 and allow all blocks to be forwarders.
488
489 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
490
491 PR target/61483
492 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
493 variable 'size'; calculate 'size' right in the front; use
494 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
495 pcum->aapcs_stack_words.
496
497 2014-06-17 Nick Clifton <nickc@redhat.com>
498
499 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
500 (umulhi3, mulsidi3, umulsidi3): Likewise.
501
502 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
503
504 PR middle-end/61508
505 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
506 check for section name.
507
508 2014-06-17 Richard Biener <rguenther@suse.de>
509
510 * tree-ssa-propagate.c: Include domwalk.h.
511 (substitute_and_fold): Outline main worker into a domwalker ...
512 (substitute_and_fold_dom_walker::before_dom_children): ... here.
513 Schedule stmts we can fully propagate for removal. Remove
514 poor-mans DCE.
515 (substitute_and_fold): Apply a dominator walk to perform
516 substitution. Process stmts scheduled for removal here.
517
518 2014-06-17 Richard Biener <rguenther@suse.de>
519
520 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
521 of PHI node moving.
522
523 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
524
525 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
526 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
527 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
528 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
529 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
530 TARGET_HARD_FLOAT.
531 (get_fpscr) : Likewise.
532
533 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
534
535 PR rtl-optimization/61325
536 * lra-constraints.c (valid_address_p): Add forward declaration.
537 (simplify_operand_subreg): Check address validity before and after
538 alter_reg of memory subreg.
539
540 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
541
542 * config/i386/i386.c (decide_alg): Correctly handle
543 maximum size of stringop algorithm.
544
545 2014-06-16 Yury Gribov <y.gribov@samsung.com>
546
547 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
548
549 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
550
551 PR rtl-optimization/61522
552 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
553
554 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
555
556 Revert:
557 * symtab.c (symtab_node::reset_section): New method.
558 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
559 for localization.
560 * cgraph.h (reset_section): Declare.
561 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
562 do not consider comdat locals.
563 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
564 for new symbol.
565 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
566 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
567 reset sections of symbols dragged out of the comdats.
568 (function_and_variable_visibility): Reset sections of
569 localized symbols.
570
571 2014-06-16 Richard Biener <rguenther@suse.de>
572
573 PR tree-optimization/61482
574 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
575 [-INF(OVF), +INF(OVF)] range.
576
577 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
578
579 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
580 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
581 handling 32-bit multiplication.
582
583 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
584
585 PR middle-end/61430
586 * lra-lives.c (process_bb_lives): Skip creating copy during
587 insn scan when src/dest has constrained to same regno.
588
589 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
590
591 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
592 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
593
594 2014-06-16 Yury Gribov <y.gribov@samsung.com>
595
596 * asan.c (check_func): New function.
597 (maybe_create_ssa_name): Likewise.
598 (build_check_stmt_with_calls): Likewise.
599 (use_calls_p): Likewise.
600 (report_error_func): Change interface.
601 (build_check_stmt): Allow non-integer lengths; add support
602 for new parameter.
603 (asan_instrument): Likewise.
604 (instrument_mem_region_access): Moved code to build_check_stmt.
605 (instrument_derefs): Likewise.
606 (instrument_strlen_call): Likewise.
607 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
608 * doc/invoke.texi: Describe new parameter.
609 * params.def: Define new parameter.
610 * params.h: Likewise.
611 * sanitizer.def: Describe new builtins.
612
613 2014-06-16 Richard Biener <rguenther@suse.de>
614
615 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
616 Make all defs available at the end.
617 (eliminate): If we remove a PHI node schedule cfg-cleanup.
618
619 2014-06-18 Jakub Jelinek <jakub@redhat.com>
620
621 PR plugins/45078
622 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
623
624 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
625
626 PR bootstrap/61516
627 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
628 initialization. Replace remaining use of uid.
629
630 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
631
632 * c-family/c-common.c (handle_tls_model_attribute): Use
633 set_decl_tls_model.
634 * c-family/c-common.c (handle_tls_model_attribute): Use
635 set_decl_tls_model.
636 * cgraph.h (struct varpool_node): Add tls_model.
637 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
638 * tree.h (DECL_TLS_MODEL): Update.
639 (DECL_THREAD_LOCAL_P): Check that variable is static.
640 (decl_tls_model): Declare.
641 (set_decl_tls_model): Declare.
642 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
643 set symbol prorperties.
644 (get_emutls_init_templ_addr): Cleanup.
645 (new_emutls_decl): Update.
646 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
647 (lto_input_varpool_node): Likewise.
648 * lto-streamer-out.c (hash_tree): Likewise.
649 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
650 not stream DECL_TLS_MODEL.
651 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
652 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
653
654 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
655
656 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
657
658 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
659
660 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
661 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
662 lists.
663 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
664 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
665 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
666 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
667 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
668 (df_get_artificial_defs, df_get_artificial_uses)
669 (df_single_def, df_single_use): Update accordingly.
670 (df_refs_chain_dump): Take the first element in a linked list as
671 parameter, rather than a pointer to an array of pointers.
672 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
673 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
674 (df_chain_create_bb_process_use): Likewise.
675 (df_md_bb_local_compute_process_def): Likewise.
676 * fwprop.c (process_defs, process_uses): Likewise.
677 (register_active_defs, update_uses): Likewise.
678 (forward_propagate_asm): Update for new df_ref linking.
679 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
680 (df_null_ref_rec, df_null_mw_rec): Likewise.
681 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
682 explicitly.
683 (df_scan_free_bb_info): Remove check for null artificial_defs.
684 (df_install_ref_incremental): Adjust for new df_ref linking.
685 Use a single-element insertion rather than a full sort.
686 (df_ref_chain_delete_du_chain): Take the first element
687 in a linked list as parameter, rather than a pointer to an array of
688 pointers.
689 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
690 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
691 (df_insn_info_delete): Remove check for null defs and call to
692 df_scan_free_mws_vec.
693 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
694 null rather than df_null_*_rec.
695 (df_insn_rescan_debug_internal): Likewise, and update null
696 checks in the same way. Remove check for null defs.
697 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
698 Move a single element rather doing a full sort.
699 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
700 linking.
701 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
702 Initialize df_ref and df_mw_hardreg lists to null rather than
703 df_null_*_rec.
704 (df_ref_compare): Take df_refs as parameter, transferring the
705 old interface to...
706 (df_ref_ptr_compare): ...this new function.
707 (df_sort_and_compress_refs): Update accordingly.
708 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
709 old interface to...
710 (df_mw_ptr_compare): ...this new function.
711 (df_sort_and_compress_mws): Update accordingly.
712 (df_install_refs, df_install_mws): Return a linked list rather than
713 an array of pointers.
714 (df_refs_add_to_chains): Assert that old lists are empty rather
715 than freeing them.
716 (df_insn_refs_verify): Don't handle null defs speciailly.
717 * web.c (union_match_dups): Update for new df_ref linking.
718
719 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
720
721 * df.h (df_ref_create, df_ref_remove): Delete.
722 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
723 (df_ref_remove): Likewise.
724
725 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
726
727 * df.h (df_single_def, df_single_use): New functions.
728 * ira.c (find_moveable_pseudos): Use them.
729
730 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
731
732 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
733 * df-problems.c (df_note_bb_compute): Use it.
734 * regstat.c (regstat_bb_compute_ri): Likewise.
735
736 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
737
738 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
739 * cse.c (cse_extended_basic_block): Use them.
740 * dce.c (mark_artificial_use): Likewise.
741 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
742 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
743 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
744 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
745 (df_simulate_initialize_backwards): Likewise.
746 (df_simulate_finalize_backwards): Likewise.
747 (df_simulate_initialize_forwards): Likewise.
748 (df_md_simulate_artificial_defs_at_top): Likewise.
749 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
750 * regrename.c (init_rename_info): Likewise.
751 * regstat.c (regstat_bb_compute_ri): Likewise.
752 (regstat_bb_compute_calls_crossed): Likewise.
753
754 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
755
756 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
757 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
758 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
759 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
760 * combine.c (create_log_links): Likewise.
761 * compare-elim.c (find_flags_uses_in_insn): Likewise.
762 (try_eliminate_compare): Likewise.
763 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
764 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
765 (remove_reg_equal_equiv_notes_for_defs): Likewise.
766 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
767 (word_dce_process_block, dce_process_block): Likewise.
768 * ddg.c (def_has_ccmode_p): Likewise.
769 * df-core.c (df_bb_regno_first_def_find): Likewise.
770 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
771 * df-problems.c (df_rd_simulate_one_insn): Likewise.
772 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
773 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
774 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
775 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
776 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
777 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
778 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
779 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
780 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
781 * fwprop.c (local_ref_killed_between_p): Likewise.
782 (all_uses_available_at, free_load_extend): Likewise.
783 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
784 * hw-doloop.c (scan_loop): Likewise.
785 * ifcvt.c (dead_or_predicable): Likewise.
786 * init-regs.c (initialize_uninitialized_regs): Likewise.
787 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
788 (process_bb_node_lives): Likewise.
789 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
790 (find_moveable_pseudos): Likewise.
791 * loop-invariant.c (check_dependencies, record_uses): Likewise.
792 * recog.c (peep2_find_free_register): Likewise.
793 * ree.c (get_defs): Likewise.
794 * regstat.c (regstat_bb_compute_ri): Likewise.
795 (regstat_bb_compute_calls_crossed): Likewise.
796 * sched-deps.c (find_inc, find_mem): Likewise.
797 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
798 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
799 * shrink-wrap.c (requires_stack_frame_p): Likewise.
800 (prepare_shrink_wrap): Likewise.
801 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
802 * web.c (union_defs, pass_web::execute): Likewise.
803 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
804 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
805
806 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
807
808 * lra-assign.c (assign_by_spills): Add code to assign vector regs
809 to inheritance pseudos.
810 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
811
812 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
813
814 PR target/61415
815 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
816 (BU_MISC_2): Rename to ...
817 (BU_LDBL128_2): ... this.
818 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
819 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
820 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
821 RS6000_BTM_LDBL128.
822 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
823 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
824 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
825 (unpacktf_1): Likewise.
826 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
827 (__builtin_longdouble_dw1): Likewise.
828 * doc/sourcebuild.texi (longdouble128): Document.
829
830 2014-06-13 Jeff Law <law@redhat.com>
831
832 PR rtl-optimization/61094
833 PR rtl-optimization/61446
834 * ree.c (combine_reaching_defs): Get the mode for the copy from
835 the extension insn rather than the defining insn.
836
837 2014-06-13 Dehao Chen <dehao@google.com>
838
839 * dwarf2out.c (add_linkage_name): Emit more linkage name.
840
841 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
842
843 * doc/install.texi (--enable-linker-plugin-configure-flags)
844 (--enable-linker-plugin-flags): Document new flags.
845
846 2014-06-13 Martin Jambor <mjambor@suse.cz>
847
848 PR ipa/61186
849 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
850 cache_token if returning early.
851
852 2014-06-13 Nick Clifton <nickc@redhat.com>
853
854 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
855 requested alignment is active.
856 (LABEL_ALIGN): Likewise.
857 (LOOP_ALIGN): Likewise.
858
859 2014-06-13 Richard Biener <rguenther@suse.de>
860
861 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
862 Rewrite to propagate the VN result into all uses where
863 possible and to remove stmts becoming dead because of that.
864 (eliminate): Generalize stmt removal handling, remove in
865 reverse dominator order to support proper debug stmt
866 generation. Update stmts before removing stmts.
867 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
868
869 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
870
871 PR tree-optimization/61375
872 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
873 symbolic number cannot be represented in an uint64_t.
874 (find_bswap_or_nop_1): Likewise.
875
876 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
877
878 * symtab.c (symtab_node::reset_section): New method.
879 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
880 for localization.
881 * cgraph.h (reset_section): Declare.
882 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
883 do not consider comdat locals.
884 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
885 for new symbol.
886 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
887 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
888 reset sections of symbols dragged out of the comdats.
889 (function_and_variable_visibility): Reset sections of
890 localized symbols.
891
892 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
893
894 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
895 to use symtab and decl_binds_to_current_def_p
896 * tree-vectorizer.c (increase_alignment): Increase alignment
897 of alias target, too.
898
899 2014-06-12 Jakub Jelinek <jakub@redhat.com>
900
901 PR middle-end/61486
902 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
903 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
904 if outer combined construct is distribute.
905 (gimplify_omp_for): For OMP_DISTRIBUTE set
906 gimplify_omp_ctxp->distribute.
907 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
908 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
909 mapping into decl map.
910
911 2014-06-12 Jason Merrill <jason@redhat.com>
912
913 * common.opt (fabi-version): Change default to 0.
914
915 2014-06-12 Jason Merrill <jason@redhat.com>
916
917 * toplev.c (process_options): Reject -fabi-version=1.
918
919 2014-06-12 Jeff Law <law@redhat.com>
920
921 PR tree-optimization/61009
922 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
923 value when we stop processing a block due to problematic PHIs.
924
925 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
926
927 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
928 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
929 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
930 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
931 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
932 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
933 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
934 are not in the spec.
935
936 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
937
938 PR target/59843
939 * config/aarch64/aarch64-modes.def: Add V1DFmode.
940 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
941 Support V1DFmode.
942
943 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
944
945 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
946
947 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
948
949 PR target/61443
950 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
951 loading from address spaces.
952
953 2014-06-12 Martin Liska <mliska@suse.cz>
954
955 PR ipa/61462
956 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
957 statement is reachable.
958
959 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
960
961 * symtab.c (section_hash): New hash.
962 (symtab_unregister_node): Clear section before freeing.
963 (hash_section_hash_entry): New haser.
964 (eq_sections): New function.
965 (symtab_node::set_section_for_node): New method.
966 (set_section_1): Update.
967 (symtab_node::set_section): Take string instead of tree as parameter.
968 (symtab_resolve_alias): Update.
969 * cgraph.h (section_hash_entry_d): New structure.
970 (section_hash_entry): New typedef.
971 (cgraph_node): Change comdat_group_ to x_comdat_group,
972 change section_ to x_section and turn into section_hash_entry;
973 update accestors; put set_section_for_node offline.
974 * tree.c (decl_section_name): Turn into string.
975 (set_decl_section_name): Change parameter to be string.
976 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
977 * sdbout.c (sdbout_one_type): Update.
978 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
979 * varasm.c (IN_NAMED_SECTION, get_named_section,
980 resolve_unique_section, hot_function_section, get_named_text_section,
981 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
982 make_decl_rtl, default_unique_section): Update.
983 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
984 (c6x_elf_unique_section): Update.
985 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
986 * config/pa/pa.c (pa_function_section): Update.
987 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
988 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
989 * config/arc/arc.c (arc_in_small_data_p): Update.
990 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
991 * config/mcore/mcore.c (mcore_unique_section): Update.
992 * config/mips/mips.c (mips16_build_function_stub): Update.
993 (mips16_build_call_stub): Update.
994 (mips_function_rodata_section): Update.
995 (mips_in_small_data_p): Update.
996 * config/score/score.c (score_in_small_data_p): Update.
997 * config/rx/rx.c (rx_in_small_data): Update.
998 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
999 (rs6000_xcoff_asm_named_section): Update.
1000 (rs6000_xcoff_unique_section): Update.
1001 * config/frv/frv.c (frv_string_begins_with): Update.
1002 (frv_in_small_data_p): Update.
1003 * config/v850/v850.c (v850_encode_data_area): Update.
1004 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
1005 (bfin_handle_l1_data_attribute): Update.
1006 (bfin_handle_l2_attribute): Update.
1007 * config/mep/mep.c (mep_unique_section): Update.
1008 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
1009 Update.
1010 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
1011 (h8300_handle_tiny_data_attribute): Update.
1012 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
1013 (m32r_in_small_data_p): Update.
1014 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
1015 * config/i386/i386.c (ix86_in_large_data_p): Update.
1016 * config/i386/winnt.c (i386_pe_unique_section): Update.
1017 * config/darwin.c (darwin_function_section): Update.
1018 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
1019 * tree-emutls.c (get_emutls_init_templ_addr): Update.
1020 (new_emutls_decl): Update.
1021 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
1022 input_varpool_node): Update.
1023 (ead_string_cst): Turn to ...
1024 (read_string): ... this one.
1025 * dwarf2out.c (secname_for_decl): Update.
1026 * asan.c (asan_protect_global): Update.
1027
1028 2014-06-11 DJ Delorie <dj@redhat.com>
1029
1030 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
1031 cache lines.
1032 * config/rx/rx.c (rx_option_override): Likewise.
1033 (rx_align_for_label): Likewise.
1034
1035 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
1036
1037 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
1038
1039 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
1040 prototype.
1041
1042 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1043
1044 * common.md: New file.
1045 * doc/md.texi: Update description of generic, machine-independent
1046 constraints.
1047 * config/s390/constraints.md (e): Delete.
1048 * Makefile.in (md_file): Include common.md.
1049 * config/m32c/t-m32c (md_file): Likewise.
1050 * genpreds.c (general_mem): New array.
1051 (generic_constraint_letters): Remove constraints now defined by
1052 common.md.
1053 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1054 Allow the first character to be '<' or '>' as well.
1055 * genoutput.c (general_mem): New array.
1056 (indep_constraints): Remove constraints now defined by common.md.
1057 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
1058 Remove special handling of 'm'.
1059 * ira-costs.c (record_reg_classes): Remove special handling of
1060 constraints now defined by common.md.
1061 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
1062 * ira-lives.c (single_reg_class): Likewise.
1063 (ira_implicitly_set_insn_hard_regs): Likewise.
1064 * lra-constraints.c (reg_class_from_constraints): Likewise.
1065 (process_alt_operands, process_address, curr_insn_transform): Likewise.
1066 * postreload.c (reload_cse_simplify_operands): Likewise.
1067 * reload.c (push_secondary_reload, scratch_reload_class)
1068 (find_reloads, alternative_allows_const_pool_ref): Likewise.
1069 * reload1.c (maybe_fix_stack_asms): Likewise.
1070 * targhooks.c (default_secondary_reload): Likewise.
1071 * stmt.c (parse_output_constraint): Likewise.
1072 * recog.c (preprocess_constraints): Likewise.
1073 (constrain_operands, peep2_find_free_register): Likewise.
1074 (asm_operand_ok): Likewise, but add a comment saying why 'o'
1075 must be handled specially.
1076
1077 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1078
1079 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
1080 * genpreds.c (have_const_dbl_constraints): Delete.
1081 (add_constraint): Don't set it.
1082 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
1083 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
1084 constraints using the lookup_constraint logic.
1085 * ira-lives.c (single_reg_class): Likewise.
1086 * ira.c (ira_setup_alts): Likewise.
1087 * lra-constraints.c (process_alt_operands): Likewise.
1088 * recog.c (asm_operand_ok, constrain_operands): Likewise.
1089 * reload.c (find_reloads): Likewise.
1090
1091 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1092
1093 * genpreds.c (const_int_start, const_int_end): New variables.
1094 (choose_enum_order): Output CONST_INT constraints before memory
1095 constraints.
1096 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
1097 Add CT_CONST_INT.
1098 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
1099 * ira.c (ira_setup_alts): Likewise.
1100 * lra-constraints.c (process_alt_operands): Likewise.
1101 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
1102 * reload.c (find_reloads): Likewise.
1103
1104 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1105
1106 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
1107 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
1108 * recog.c (preprocess_constraints): Update accordingly.
1109
1110 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1111
1112 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
1113 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
1114 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
1115 * genpreds.c (print_type_tree): New function.
1116 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
1117 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
1118 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
1119 Write out enum constraint_type and get_constraint_type.
1120 * lra-constraints.c (satisfies_memory_constraint_p): Take a
1121 constraint_num rather than a constraint string.
1122 (satisfies_address_constraint_p): Likewise.
1123 (reg_class_from_constraints): Avoid old constraint macros.
1124 (process_alt_operands, process_address_1): Likewise.
1125 (curr_insn_transform): Likewise.
1126 * ira-costs.c (record_reg_classes): Likewise.
1127 (record_operand_costs): Likewise.
1128 * ira-lives.c (single_reg_class): Likewise.
1129 (ira_implicitly_set_insn_hard_regs): Likewise.
1130 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
1131 * postreload.c (reload_cse_simplify_operands): Likewise.
1132 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
1133 (constrain_operands, peep2_find_free_register): Likewise.
1134 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
1135 (find_reloads, alternative_allows_const_pool_ref): Likewise.
1136 * reload1.c (maybe_fix_stack_asms): Likewise.
1137 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1138 * targhooks.c (default_secondary_reload): Likewise.
1139 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
1140 to EXTRA_CONSTRAINT_STR.
1141 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
1142
1143 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1144
1145 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
1146 (write_constraint_satisfied_p_array): ...this new function.
1147 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
1148 an array.
1149 (write_insn_preds_c): Update accordingly.
1150
1151 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1152
1153 * genpreds.c (write_lookup_constraint): Rename to...
1154 (write_lookup_constraint_1): ...this.
1155 (write_lookup_constraint_array): New function.
1156 (write_tm_preds_h): Define lookup_constraint as an inline function
1157 that uses write_lookup_constraint_array where possible.
1158 (write_insn_preds_c): Update for the changes above.
1159
1160 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
1161
1162 * doc/md.texi (regclass_for_constraint): Rename to...
1163 (reg_class_for_constraint): ...this.
1164 * genpreds.c (num_constraints, enum_order, register_start)
1165 (register_end, satisfied_start, memory_start, memory_end)
1166 (address_start, address_end): New variables.
1167 (add_constraint): Count the number of constraints.
1168 (choose_enum_order): New function.
1169 (write_enum_constraint_num): Iterate over enum_order.
1170 (write_regclass_for_constraint): Rename to...
1171 (write_reg_class_for_constraint_1): ...this and update output
1172 accordingly.
1173 (write_constraint_satisfied_p): Rename to...
1174 (write_constraint_satisfied_p_1): ...this and update output
1175 accordingly. Do nothing if all extra constraints are register
1176 constraints.
1177 (write_insn_extra_memory_constraint): Delete.
1178 (write_insn_extra_address_constraint): Delete.
1179 (write_range_function): New function.
1180 (write_tm_preds_h): Define constraint_satisfied_p and
1181 reg_class_for_constraint as inline functions that do a range check
1182 before calling the out-of-line function. Use write_range_function
1183 to implement insn_extra_{register,memory,address}_constraint,
1184 the first of which is new.
1185 (write_insn_preds_c): Update after above changes to write_* functions.
1186 (main): Call choose_enum_order.
1187
1188 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
1189
1190 PR tree-optimization/61306
1191 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
1192 expression instead of its size.
1193 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
1194 false to prevent optimization when the result is unpredictable due to
1195 arithmetic right shift of signed type with highest byte is set.
1196 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
1197 (init_symbolic_number): Likewise.
1198 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
1199 when the result is unpredictable due to sign extension.
1200
1201 2014-06-11 Terry Guo <terry.guo@arm.com>
1202
1203 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
1204 (*thumb1_addsi3): Ditto.
1205 (*thumb_subdi3): Ditto.
1206 (thumb1_subsi3_insn): Ditto.
1207 (*thumb_mulsi3): Ditto.
1208 (*thumb_mulsi3_v6): Ditto.
1209 (*thumb1_andsi3_insn): Ditto.
1210 (thumb1_bicsi3): Ditto.
1211 (*thumb1_iorsi3_insn): Ditto.
1212 (*thumb1_xorsi3_insn): Ditto.
1213 (*thumb1_ashlsi3): Ditto.
1214 (*thumb1_ashrsi3): Ditto.
1215 (*thumb1_lshrsi3): Ditto.
1216 (*thumb1_rotrsi3): Ditto.
1217 (*thumb1_negdi2): Ditto.
1218 (*thumb1_negsi2): Ditto.
1219 (*thumb1_abssi2): Ditto.
1220 (*thumb1_neg_abssi2): Ditto.
1221 (*thumb1_one_cmplsi2): Ditto.
1222 (*thumb1_zero_extendhisi2): Ditto.
1223 (*thumb1_zero_extendqisi2): Ditto.
1224 (*thumb1_zero_extendqisi2_v6): Ditto.
1225 (thumb1_extendhisi2): Ditto.
1226 (thumb1_extendqisi2): Ditto.
1227 (*thumb1_movdi_insn): Ditto.
1228 (*thumb1_movsi_insn): Ditto.
1229 (*thumb1_movhi_insn): Ditto.
1230 (thumb_movhi_clobber): Ditto.
1231 (*thumb1_movqi_insn): Ditto.
1232 (*thumb1_movhf): Ditto.
1233 (*thumb1_movsf_insn): Ditto.
1234 (*thumb_movdf_insn): Ditto.
1235 (movmem12b): Ditto.
1236 (movmem8b): Ditto.
1237 (cbranchqi4): Ditto.
1238 (cbranchsi4_insn): Ditto.
1239 (cbranchsi4_scratch): Ditto.
1240 (*negated_cbranchsi4): Ditto.
1241 (*tbit_cbranch): Ditto.
1242 (*tlobits_cbranch): Ditto.
1243 (*tstsi3_cbranch): Ditto.
1244 (*cbranchne_decr1): Ditto.
1245 (*addsi3_cbranch): Ditto.
1246 (*addsi3_cbranch_scratch): Ditto.
1247 (*thumb_cmpdi_zero): Ditto.
1248 (cstoresi_eq0_thumb1): Ditto.
1249 (cstoresi_ne0_thumb1): Ditto.
1250 (*cstoresi_eq0_thumb1_insn): Ditto.
1251 (*cstoresi_ne0_thumb1_insn): Ditto.
1252 (cstoresi_nltu_thumb1): Ditto.
1253 (cstoresi_ltu_thumb1): Ditto.
1254 (thumb1_addsi3_addgeu): Ditto.
1255 (*thumb_jump): Ditto.
1256 (*call_reg_thumb1_v5): Ditto.
1257 (*call_reg_thumb1): Ditto.
1258 (*call_value_reg_thumb1_v5): Ditto.
1259 (*call_value_reg_thumb1): Ditto.
1260 (*call_insn): Ditto.
1261 (*call_value_insn): Ditto.
1262 (thumb1_casesi_internal_pic): Ditto.
1263 (thumb1_casesi_dispatch): Ditto.
1264 (*thumb1_indirect_jump): Ditto.
1265 (prologue_thumb1_interwork): Ditto.
1266 (*epilogue_insns): Ditto.
1267 (consttable_1): Ditto.
1268 (consttable_2): Ditto.
1269 (tablejump): Ditto.
1270 (*thumb1_tablejump): Ditto.
1271 (thumb_eh_return): Ditto.
1272 (define_peephole2): Two of them are thumb1 only and got moved into
1273 new file thumb1.md.
1274 (define_split): Six of them are thumb1 only and got moved into new
1275 file thumb1.md.
1276 * config/arm/thumb1.md: New file comprised of above thumb1 only
1277 patterns.
1278
1279 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1280
1281 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
1282 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
1283 dependencies.
1284 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
1285 (aarch64_crc_builtin_datum): New struct.
1286 (aarch64_crc_builtin_data): New.
1287 (aarch64_init_crc32_builtins): New function.
1288 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
1289 (aarch64_crc32_expand_builtin): New.
1290 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
1291 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1292 __ARM_FEATURE_CRC32 when appropriate.
1293 (TARGET_CRC32): Define.
1294 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
1295 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
1296 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
1297 (aarch64_<crc_variant>): New pattern.
1298 * config/aarch64/arm_acle.h: New file.
1299 * config/aarch64/iterators.md (CRC): New int iterator.
1300 (crc_variant, crc_mode): New int attributes.
1301 * doc/aarch64-acle-intrinsics.texi: New file.
1302 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
1303 Include aarch64-acle-intrinsics.texi.
1304
1305 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
1306
1307 * tree-vect-data-refs.c (vect_grouped_store_supported): New
1308 check for stores group of length 3.
1309 (vect_permute_store_chain): New permutations for stores group of
1310 length 3.
1311 * tree-vect-stmts.c (vect_model_store_cost): Change cost
1312 of vec_perm_shuffle for the new permutations.
1313
1314 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1315
1316 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
1317 table rewriting temporarily on targets not supporting ONE_ONLY.
1318
1319 2014-06-11 Richard Biener <rguenther@suse.de>
1320
1321 PR middle-end/61437
1322 Revert
1323 2014-06-04 Richard Biener <rguenther@suse.de>
1324
1325 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
1326 TREE_PUBLIC and DECL_EXTERNAL decls.
1327
1328 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1329
1330 * varasm.c (set_implicit_section): New function.
1331 (resolve_unique_section): Use it to set implicit section
1332 for aliases, too.
1333 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
1334 (default_function_section): Likewise.
1335 (decl_binds_to_current_def_p): Constify argument.
1336 * varasm.h (decl_binds_to_current_def_p): Update prototype.
1337 * asan.c (asan_protect_global): Use
1338 symtab_get_node (decl)->implicit_section.
1339 * symtab.c (dump_symtab_base): Dump implicit sections.
1340 (verify_symtab_base): Verify sanity of sectoins and comdats.
1341 (symtab_resolve_alias): Alias share the section of its target.
1342 (set_section_1): New function.
1343 (symtab_node::set_section): Move here, recurse to aliases.
1344 (verify_symtab): Check for duplicated symtab lists.
1345 * tree-core.h (implicit_section_name_p): Remove.
1346 * tree-vect-data-refs.c: Include varasm.h.
1347 (vect_can_force_dr_alignment_p): Fix conditional on when
1348 decl bints to current definition; use
1349 symtab_get_node (decl)->implicit_section.
1350 * cgraph.c (cgraph_make_node_local_1): Fix section set.
1351 * cgraph.h (struct symtab_node): Add implicit_section.
1352 (set_section): Rename to ...
1353 (set_section_for_node): ... this one.
1354 (set_section): Declare.
1355 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
1356 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1357 input_overwrite_node, input_varpool_node): Stream implicit_section.
1358 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
1359 removal; it will fail in LTO.
1360
1361 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1362
1363 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
1364 Change second alternative type to f_mcr.
1365 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
1366 and 12th alternatives' types to f_mcr and f_mrc.
1367 (*movdi_aarch64): Same for 12th and 13th alternatives.
1368 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
1369 (aarch64_movtilow_tilow): Change type to fmov.
1370
1371 2014-06-10 Jiong Wang <jiong.wang@arm.com>
1372
1373 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
1374 (aarch64_save_or_restore_callee_save_registers): Fix layout.
1375
1376 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1377
1378 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
1379 New expander.
1380 (aarch64_sqrdmulh_lane<mode>): Likewise.
1381 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
1382 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
1383 (aarch64_sqdmulh_laneq<mode>): New expander.
1384 (aarch64_sqrdmulh_laneq<mode>): Likewise.
1385 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
1386 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
1387 (aarch64_sqdmulh_lane<mode>): New expander.
1388 (aarch64_sqrdmulh_lane<mode>): Likewise.
1389 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
1390 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
1391 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
1392 (aarch64_sqdmlal_laneq<mode>): Likewise.
1393 (aarch64_sqdmlsl_lane<mode>): Likewise.
1394 (aarch64_sqdmlsl_laneq<mode>): Likewise.
1395 (aarch64_sqdmlal2_lane<mode>): Likewise.
1396 (aarch64_sqdmlal2_laneq<mode>): Likewise.
1397 (aarch64_sqdmlsl2_lane<mode>): Likewise.
1398 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
1399 (aarch64_sqdmull_lane<mode>): Likewise.
1400 (aarch64_sqdmull_laneq<mode>): Likewise.
1401 (aarch64_sqdmull2_lane<mode>): Likewise.
1402 (aarch64_sqdmull2_laneq<mode>): Likewise.
1403
1404 2014-06-10 Richard Biener <rguenther@suse.de>
1405
1406 PR tree-optimization/61438
1407 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
1408 (eliminate_dom_walker::before_dom_children): Only try to inhibit
1409 insertion of IVs if running PRE.
1410 (eliminate): Adjust.
1411 (pass_pre::execute): Likewise.
1412 (pass_fre::execute): Likewise.
1413
1414 2014-06-10 Richard Biener <rguenther@suse.de>
1415
1416 PR middle-end/61456
1417 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
1418 Do not use the main variant for the type comparison.
1419 (ncr_compar): Likewise.
1420 (nonoverlapping_component_refs_p): Likewise.
1421
1422 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
1423
1424 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
1425 REG_CFA_RESTORE mode.
1426
1427 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
1428
1429 * config/i386/i386.c (expand_vec_perm_pblendv): New.
1430 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
1431 expand_vec_perm_pblendv.
1432
1433 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1434
1435 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
1436 available.
1437 Simplify description of __crc32d and __crc32cd intrinsics.
1438 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
1439 availability.
1440
1441 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
1442
1443 PR lto/61334
1444 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
1445 * config.in: Regenerate.
1446 * configure: Likewise.
1447
1448 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
1449
1450 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
1451 and public vars.
1452 (intersect_static_var_sets): Remove.
1453 (propagate): Do not prune local statics.
1454
1455 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1456
1457 PR fortran/60928
1458 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
1459 Set lastprivate_firstprivate even if omp_private_outer_ref
1460 langhook returns true.
1461 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
1462 langhook, call unshare_expr on new_var and call
1463 build_outer_var_ref to get the last argument.
1464
1465 2014-06-10 Marek Polacek <polacek@redhat.com>
1466
1467 PR c/60988
1468 * doc/extend.texi: Add cindex for transparent_union.
1469
1470 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
1471
1472 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
1473 init_symbolic_number ().
1474
1475 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
1476
1477 PR middle-end/61141
1478 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
1479 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
1480 (verify_rtl_sharing): Likewise.
1481
1482 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
1483
1484 PR c++/54442
1485 * tree.c (build_qualified_type): Use a canonical type for
1486 TYPE_CANONICAL.
1487
1488 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1489
1490 * config/arm/arm-modes.def: Remove XFmode.
1491
1492 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
1493
1494 PR target/61062
1495 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
1496 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
1497 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
1498 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
1499 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
1500 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
1501 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
1502 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
1503 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
1504
1505 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
1506
1507 * tree-core.h (tree_decl_with_vis): Remove section_name.
1508
1509 2014-06-09 Kito Cheng <kito@0xlab.org>
1510
1511 * ira.c (ira): Don't call init_caller_save if LRA enabled
1512 since LRA use its own infrastructure to handle that.
1513
1514 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1515
1516 * symtab.c (dump_symtab_base): Update dumping.
1517 (symtab_make_decl_local): Clear only DECL_COMDAT.
1518 * tree-vect-data-refs.c (Check that variable is static before
1519 tampering with sections.
1520 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
1521 (cgraph_create_virtual_clone): Likewise.
1522 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
1523 (decl_section_name, set_decl_section_name): New accessors.
1524 (find_decls_types_r): Do not walk section name
1525 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
1526 (decl_comdat_group, decl_comdat_group_id): Constify.
1527 (decl_section_name, set_decl_section_name): Update.
1528 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
1529 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
1530 (cgraph_make_node_local_1): Clear section and comdat group.
1531 * cgraph.h (set_comdat_group): Sanity check.
1532 (get_section, set_section): New.
1533 * ipa-comdats.c (ipa_comdats): Use get_section.
1534 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
1535 * lto-streamer-out.c: Do not follow section names.
1536 * c-family/c-common.c (handle_section_attribute): Update.
1537 * lto-cgraph.c (lto_output_node): Output section.
1538 (lto_output_varpool_node): Likewise.
1539 (read_comdat_group): Rename to ...
1540 (read_identifier): ... this one.
1541 (read_string_cst): New function.
1542 (input_node, input_varpool_node): Input section names.
1543 * tree-emutls.c (get_emutls_init_templ_addr): Update.
1544 (new_emutls_decl): Update.
1545 (secname_for_decl): Check section names only of static vars.
1546 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
1547 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
1548 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
1549 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
1550 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
1551 * config/mcore/mcore.c (mcore_unique_section): Likewise.
1552 * config/mips/mips.c (mips16_build_function_stub): Likewise.
1553 * config/v850/v850.c (v850_insert_attributes): Likewise.
1554 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
1555 Likewise.
1556 (h8300_handle_tiny_data_attribute): Likewise.
1557 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
1558 (bfin_handle_l2_attribute): Likewise.
1559
1560 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1561
1562 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
1563 remove static initializer.
1564
1565 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1566
1567 * varasm.c (use_blocks_for_decl_p): Check symbol table
1568 instead of alias attribute.
1569 (place_block_symbol): Recurse on aliases.
1570
1571 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1572
1573 * ipa-visibility.c: Include varasm.h
1574 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
1575
1576 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
1577
1578 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
1579 outputting aliases.
1580
1581 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
1582
1583 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
1584 from test_insn into GGC space escape via SET_SRC.
1585
1586 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
1587
1588 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
1589 call statement, if any.
1590 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
1591 statements, if any. Tidy up.
1592
1593 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1594
1595 PR target/61431
1596 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
1597 iterators, VSX_D that handles 64-bit types, and VSX_LE that
1598 handles swapping the two 64-bit double words on little endian
1599 systems. Include V1TImode and optionally TImode in VSX_LE so that
1600 these types are properly swapped. Change all of the insns and
1601 splits that do the 64-bit swaps to use VSX_LE.
1602 (vsx_le_perm_load_<mode>): Likewise.
1603 (vsx_le_perm_store_<mode>): Likewise.
1604 (splitters for little endian memory operations): Likewise.
1605 (vsx_xxpermdi2_le_<mode>): Likewise.
1606 (vsx_lxvd2x2_le_<mode>): Likewise.
1607 (vsx_stxvd2x2_le_<mode>): Likewise.
1608
1609 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
1610
1611 PR target/61423
1612 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
1613 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
1614 and corresponding splitters. Zero extend general register
1615 or memory input operand to XMM temporary. Enable for
1616 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
1617 (floatunssi<mode>2): Update expander predicate.
1618
1619 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
1620
1621 PR rtl-optimization/61325
1622 * lra-constraints.c (process_address_1): Check scale equal to one
1623 to prevent transformation: base + scale * index => base + new_reg.
1624
1625 2014-06-06 Richard Biener <rguenther@suse.de>
1626
1627 PR tree-optimization/59299
1628 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
1629 a def operand.
1630 (nearest_common_dominator_of_uses): Likewise.
1631 (statement_sink_location): Adjust. Support sinking loads.
1632
1633 2014-06-06 Martin Jambor <mjambor@suse.cz>
1634
1635 * ipa-prop.c (get_place_in_agg_contents_list): New function.
1636 (build_agg_jump_func_from_list): Likewise.
1637 (determine_known_aggregate_parts): Renamed to
1638 determine_locally_known_aggregate_parts. Moved some functionality
1639 to the two functions above, removed bound checks.
1640
1641 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
1642
1643 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
1644 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
1645 (aarch64_progress_pointer): Likewise.
1646 (aarch64_copy_one_part_and_move_pointers): Likewise.
1647 (aarch64_expand_movmen): Likewise.
1648 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
1649 * config/aarch64/aarch64.md (movmem<mode>): New.
1650
1651 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
1652
1653 * targhooks.c (default_add_stmt_cost): Call target specific
1654 hook instead of default one.
1655
1656 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
1657
1658 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
1659 endianness instead of host endianness.
1660 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
1661 comments.
1662
1663 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
1664
1665 PR debug/53927
1666 * function.c (instantiate_decls): Process the saved static chain.
1667 (expand_function_start): If not optimizing, save the static chain
1668 onto the stack.
1669 * tree-nested.c (convert_all_function_calls): Always create the static
1670 chain for nested functions if not optimizing.
1671
1672 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
1673
1674 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
1675
1676 2014-06-06 Richard Biener <rguenther@suse.de>
1677
1678 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
1679 (construct_init_block): Likewise.
1680 (construct_exit_block): Likewise.
1681 (pass_expand::execute): Likewise.
1682 * graphite.c (graphite_transforms): Replace check for current_loops
1683 with a check for > 1 loops.
1684 (pass_graphite_transforms::execute): Adjust.
1685 * ipa-split.c (split_function): Remove check for current_loops.
1686 * omp-low.c (expand_parallel_call): Likewise.
1687 (expand_omp_for_init_counts): Likewise.
1688 (extract_omp_for_update_vars): Likewise.
1689 (expand_omp_for_generic): Likewise.
1690 (expand_omp_sections): Likewise.
1691 (expand_omp_target): Likewise.
1692 * tracer.c (tail_duplicate): Likewise.
1693 (pass_tracer::execute): Likewise.
1694 * trans-mem.c (expand_transaction): Likewise.
1695 * tree-complex.c (expand_complex_div_wide): Likewise.
1696 * tree-eh.c (lower_resx): Likewise.
1697 (cleanup_empty_eh_merge_phis): Likewise.
1698 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
1699 current_loops with a check for > 1 loops.
1700 (pass_predcom::execute): Adjust.
1701 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
1702 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
1703 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
1704 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
1705 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
1706 * tree-switch-conversion.c (process_switch): Likewise.
1707 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
1708 * tree-vrp.c (vrp_visit_phi_node): Likewise.
1709 (execute_vrp): Likewise.
1710 * ubsan.c (ubsan_expand_null_ifn): Likewise.
1711
1712 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
1713
1714 * rtl.h (insn_location): Declare.
1715 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
1716 with UNKNOWN_LOCATION.
1717 * emit-rtl.c (insn_location): New function.
1718 * final.c (notice_source_line): Check that the instruction has a
1719 location before retrieving it and use insn_location.
1720 * modulo-sched.c (loop_single_full_bb_p): Likewise.
1721 * print-rtl.c (print_rtx): Likewise.
1722
1723 2014-06-06 Richard Biener <rguenther@suse.de>
1724
1725 * passes.def: Move 2nd VRP pass before phi-only-cprop.
1726
1727 2014-06-06 Christian Bruel <christian.bruel@st.com>
1728
1729 PR tree-optimization/43934
1730 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
1731 cost.
1732
1733 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1734
1735 * ira-lives.c (single_reg_class): Add missing break. Explicitly
1736 return NO_REGS for extra address and memory constraints. Handle
1737 operands that match (or are equivalent to something that matches)
1738 extra constant constraints. Ignore other non-register operands.
1739
1740 2014-06-06 Alan Modra <amodra@gmail.com>
1741
1742 PR target/61300
1743 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
1744 * doc/tm.texi: Regenerate.
1745 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
1746 Use throughout in place of REG_PARM_STACK_SPACE.
1747 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
1748 "incoming" param. Pass to rs6000_function_parms_need_stack.
1749 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
1750 prototype_p when incoming. Use function decl when incoming
1751 to handle K&R style functions.
1752 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
1753 (INCOMING_REG_PARM_STACK_SPACE): Define.
1754
1755 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1756
1757 PR target/52472
1758 * cfgexpand.c (expand_debug_expr): Use address space of nested
1759 TREE_TYPE for ADDR_EXPR and MEM_REF.
1760
1761 2014-06-05 Jeff Law <law@redhat.com>
1762
1763 PR tree-optimization/61289
1764 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
1765 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
1766 looking for those which match LHS. All callers changed.
1767 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
1768 parameters and code which manipulated them. All callers changed.
1769 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
1770 and DST_MAP parameters. Simplify invalidation code by just calling
1771 invalidate_equivalences. All callers changed.
1772 (thread_across_edge): Simplify now that we don't need to maintain
1773 the map of equivalences to invalidate.
1774
1775 2014-06-05 Kai Tietz <ktietz@redhat.com>
1776 Richard Henderson <rth@redhat.com>
1777
1778 PR target/46219
1779 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
1780 checking for !TARGET_X32.
1781 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
1782 (sibcall_intern): New define_insn, plus required peepholes.
1783 (sibcall_pop_intern): Likewise.
1784 (sibcall_value_intern): Likewise.
1785 (sibcall_value_pop_intern): Likewise.
1786
1787 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
1788
1789 * tree-inline.c (tree_function_versioning): Check DF info existence
1790 before accessing it.
1791
1792 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1793
1794 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
1795 frame_size.
1796 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
1797 aarch64_frame hard_fp_offset and frame_size.
1798 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
1799 frame_size; remove original_frame_size.
1800 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
1801 (aarch64_initial_elimination_offset): Remove frame_size and
1802 offset. Use aarch64_frame frame_size.
1803
1804 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1805 Jiong Wang <jiong.wang@arm.com>
1806 Renlin <renlin.li@arm.com>
1807
1808 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
1809 initialization of R30 offset. Update offset. Iterate core
1810 regisers upto X30. Remove X29, X30 specific code.
1811
1812 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1813 Jiong Wang <jiong.wang@arm.com>
1814
1815 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
1816 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
1817 (aarch64_register_saved_on_entry): Adjust test.
1818
1819 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1820
1821 * config/aarch64/aarch64.h (machine_function): Move
1822 saved_varargs_size from here...
1823 (aarch64_frame): ... to here.
1824
1825 * config/aarch64/aarch64.c (aarch64_expand_prologue)
1826 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
1827 (aarch64_initial_elimination_offset)
1828 (aarch64_setup_incoming_varargs): Adjust location of
1829 saved_varargs_size.
1830
1831 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1832
1833 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
1834 layout comment.
1835
1836 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
1837 Prachi Godbole <Prachi.Godbole@imgtec.com>
1838
1839 * config/mips/mips-cpus.def: Add definition for p5600. Updated
1840 mips32r5 entry to use PROCESSOR_P5600.
1841 * config/mips/mips-tables.opt: Regenerate.
1842 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
1843 * config/mips/mips.c (mips_fmadd_bypass): New function.
1844 (mips_rtx_cost_data): Add costs for p5600.
1845 (mips_issue_rate): Add support for p5600.
1846 (mips_multipass_dfa_lookahead): Likewise.
1847 * config/mips/mips.h (TUNE_P5600): New define.
1848 (TUNE_MACC_CHAINS): Add TUNE_P5600.
1849 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
1850 * config/mips/mips.md: Include p5600.md.
1851 (processor): Add p5600.
1852 * config/mips/p5600.md: New file.
1853
1854 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
1855
1856 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
1857 * config/i386/predicates.md (palignr_operand): New.
1858 Indicates if permutation is suitable for palignr instruction.
1859
1860 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
1861
1862 PR tree-optimization/61319
1863 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
1864 stmt belongs to loop.
1865
1866 2014-06-05 Richard Biener <rguenther@suse.de>
1867
1868 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
1869 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
1870 (lookup_tmp_var): Adjust.
1871 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
1872
1873 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1874
1875 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
1876
1877 2014-06-05 Marek Polacek <polacek@redhat.com>
1878
1879 PR c/49706
1880 * doc/invoke.texi: Document -Wlogical-not-parentheses.
1881
1882 2014-06-04 Tom de Vries <tom@codesourcery.com>
1883
1884 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
1885 CONST_INT.
1886
1887 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
1888
1889 PR tree-optimization/61385
1890 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
1891
1892 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
1893
1894 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
1895 changed to use fatal_error.
1896 (main): Ensure lto_wrapper_cleanup is run atexit.
1897
1898 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1899
1900 * lra-constraints.c (valid_address_p): Move earlier in file.
1901 (address_eliminator): New structure.
1902 (satisfies_memory_constraint_p): New function.
1903 (satisfies_address_constraint_p): Likewise.
1904 (process_alt_operands, process_address, curr_insn_transform): Use them.
1905
1906 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1907
1908 * lra-int.h (lra_static_insn_data): Make operand_alternative a
1909 const pointer.
1910 (target_lra_int, default_target_lra_int, this_target_lra_int)
1911 (op_alt_data): Delete.
1912 * lra.h (lra_init): Delete.
1913 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
1914 (init_insn_code_data_once): Remove op_alt_data handling.
1915 (finish_insn_code_data_once): Likewise.
1916 (init_op_alt_data): Delete.
1917 (get_static_insn_data): Initialize operand_alternative to null.
1918 (free_insn_recog_data): Cast operand_alternative before freeing it.
1919 (setup_operand_alternative): Take the operand_alternative as
1920 parameter and assume it isn't already cached in the static
1921 insn data.
1922 (lra_set_insn_recog_data): Update accordingly.
1923 (lra_init): Delete.
1924 * ira.c (ira_init): Don't call lra_init.
1925 * target-globals.h (this_target_lra_int): Declare.
1926 (target_globals): Remove lra_int.
1927 (restore_target_globals): Update accordingly.
1928 * target-globals.c: Don't include lra-int.h.
1929 (default_target_globals, save_target_globals): Remove lra_int.
1930
1931 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1932
1933 * recog.h (operand_alternative): Convert reg_class, reject,
1934 matched and matches into bitfields.
1935 (preprocess_constraints): New overload.
1936 (preprocess_insn_constraints): New function.
1937 (preprocess_constraints): Take the insn as parameter.
1938 (recog_op_alt): Change into a pointer.
1939 (target_recog): Add x_op_alt.
1940 * recog.c (asm_op_alt): New variable.
1941 (recog_op_alt): Change into a pointer.
1942 (preprocess_constraints): New overload, replacing the old function
1943 definition with one that doesn't use global state.
1944 (preprocess_insn_constraints): New function.
1945 (preprocess_constraints): Use them. Take the insn as parameter.
1946 Use asm_op_alt for asms.
1947 (recog_init): Free existing x_op_alt entries.
1948 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
1949 pointer const.
1950 (make_early_clobber_and_input_conflicts): Likewise.
1951 (process_bb_node_lives): Pass the insn to process_constraints.
1952 * reg-stack.c (check_asm_stack_operands): Likewise.
1953 (subst_asm_stack_regs): Likewise.
1954 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
1955 * regrename.c (build_def_use): Likewise.
1956 * sched-deps.c (sched_analyze_insn): Likewise.
1957 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
1958 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
1959 (note_invalid_constants): Likewise.
1960 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1961 (ix86_legitimate_combined_insn): Make operand_alternative pointer
1962 const.
1963
1964 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1965
1966 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
1967 * ira-lives.c (check_and_make_def_conflict): Check for disabled
1968 alternatives.
1969 (make_early_clobber_and_input_conflicts): Likewise.
1970 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1971
1972 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1973
1974 * recog.h (alternative_class): New function.
1975 (which_op_alt): Return a const recog_op_alt.
1976 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
1977 (subst_asm_stack_regs): Likewise.
1978 * config/arm/arm.c (note_invalid_constants): Likewise.
1979 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
1980 the operand_alternative; use alternative class instead.
1981 * sel-sched.c (get_reg_class): Likewise.
1982 * regrename.c (build_def_use): Likewise.
1983 (hide_operands, restore_operands, record_out_operands): Update type
1984 accordingly.
1985
1986 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
1987
1988 * recog.h (recog_op_alt): Convert to a flat array.
1989 (which_op_alt): New function.
1990 * recog.c (recog_op_alt): Convert to a flat array.
1991 (preprocess_constraints): Update accordingly, grouping all
1992 operands of the same alternative together, rather than the
1993 other way around.
1994 * ira-lives.c (check_and_make_def_conflict): Likewise.
1995 (make_early_clobber_and_input_conflicts): Likewise.
1996 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1997 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
1998 (subst_asm_stack_regs): Likewise.
1999 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
2000 * regrename.c (hide_operands, record_out_operands): Likewise.
2001 (build_def_use): Likewise.
2002 * sel-sched.c (get_reg_class): Likewise.
2003 * config/arm/arm.c (note_invalid_constants): Likewise.
2004
2005 2014-06-04 Jason Merrill <jason@redhat.com>
2006
2007 PR c++/51253
2008 PR c++/61382
2009 * gimplify.c (gimplify_arg): Non-static.
2010 * gimplify.h: Declare it.
2011
2012 2014-06-04 Richard Biener <rguenther@suse.de>
2013
2014 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
2015 TREE_PUBLIC and DECL_EXTERNAL decls.
2016
2017 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
2018
2019 * regcprop.c (copyprop_hardreg_forward_1): Account for
2020 HARD_REGNO_CALL_PART_CLOBBERED.
2021
2022 2014-06-04 Richard Biener <rguenther@suse.de>
2023
2024 * configure.ac: Check whether the underlying type of int64_t
2025 is long or long long.
2026 * configure: Regenerate.
2027 * config.in: Likewise.
2028 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
2029 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
2030
2031 2014-06-04 Richard Biener <rguenther@suse.de>
2032
2033 PR tree-optimization/60098
2034 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
2035 we hit a kill.
2036 (dse_optimize_stmt): Simplify, now that we found a kill
2037 earlier.
2038
2039 2014-06-04 Richard Biener <rguenther@suse.de>
2040
2041 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
2042 of accesses with non-invariant address.
2043
2044 2014-06-04 Martin Liska <mliska@suse.cz>
2045
2046 * cgraph.h (cgraph_make_wrapper): New function introduced.
2047 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
2048 * ipa-inline.h (inline_analyze_function): The function is global.
2049 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
2050
2051 2014-06-04 Martin Liska <mliska@suse.cz>
2052
2053 * tree.h (private_lookup_attribute_starting): New function.
2054 (lookup_attribute_starting): Likewise.
2055 * tree.c (private_lookup_attribute_starting): Likewise.
2056
2057 2014-06-04 Martin Liska <mliska@suse.cz>
2058
2059 * cgraph.h (expand_thunk): New argument added.
2060 (address_taken_from_non_vtable_p): New global function.
2061 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
2062 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
2063 * cgraphunit.c (analyze_function): Likewise.
2064 (assemble_thunks_and_aliases): Argument added to call.
2065 (expand_thunk): New argument forces to produce GIMPLE thunk.
2066
2067 2014-06-04 Martin Liska <mliska@suse.cz>
2068
2069 * coverage.h (coverage_compute_cfg_checksum): Argument added.
2070 * coverage.c (coverage_compute_cfg_checksum): Likewise.
2071 * profile.c (branch_prob): Likewise.
2072
2073 2014-06-04 Martin Jambor <mjambor@suse.cz>
2074
2075 PR ipa/61340
2076 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
2077 handler for switch on an ipa_ref_use enum.
2078 * ipa-reference.c (analyze_function): Likewise.
2079
2080 2014-06-04 Kai Tietz <ktietz@redhat.com>
2081
2082 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
2083 from old call-instruction.
2084
2085 2014-06-04 Bin Cheng <bin.cheng@arm.com>
2086
2087 * config/aarch64/aarch64.c (aarch64_classify_address)
2088 (aarch64_legitimize_reload_address): Support full addressing modes
2089 for vector modes.
2090 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
2091 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
2092
2093 2014-06-03 Andrew Pinski <apinski@cavium.com>
2094
2095 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
2096 for OP0.
2097
2098 2014-06-03 Andrew Pinski <apinski@cavium.com>
2099
2100 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
2101 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
2102
2103 2014-06-03 Kai Tietz <ktietz@redhat.com>
2104
2105 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
2106 for 64-bit ms-abi.
2107
2108 2014-06-03 Dehao Chen <dehao@google.com>
2109
2110 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
2111 the same loop.
2112
2113 2014-06-03 Marek Polacek <polacek@redhat.com>
2114
2115 PR c/60439
2116 * doc/invoke.texi: Document -Wswitch-bool.
2117 * function.c (stack_protect_epilogue): Cast controlling expression of
2118 the switch to int.
2119 * gengtype.c (walk_type): Generate switch expression with its
2120 controlling expression cast to int.
2121
2122 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
2123
2124 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
2125 and attiny841.
2126 * config/avr/avr-tables.opt: Regenerate.
2127 * config/avr/t-multilib: Regenerate.
2128 * doc/avr-mmcu.texi: Regenerate.
2129
2130 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
2131 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2132
2133 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
2134 (ata6617c, ata664251): Add new avr35 devices.
2135 (ata6612c): Add new avr4 device.
2136 (ata6613c, ata6614q): Add new avr5 devices.
2137 * config/avr/avr-tables.opt: Regenerate.
2138 * config/avr/t-multilib: Regenerate.
2139 * doc/avr-mmcu.texi: Regenerate.
2140
2141 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2142
2143 * gcc/config/aarch64/aarch64-builtins.c
2144 (aarch64_types_binop_ssu_qualifiers): New static data.
2145 (TYPES_BINOP_SSU): Define.
2146 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
2147 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
2148 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
2149 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
2150 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
2151 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
2152 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
2153 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
2154 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
2155 suffix to builtin function name, remove cast.
2156 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
2157 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
2158 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
2159
2160 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2161
2162 * gcc/config/aarch64/aarch64-builtins.c
2163 (aarch64_types_binop_uus_qualifiers,
2164 aarch64_types_shift_to_unsigned_qualifiers,
2165 aarch64_types_unsigned_shiftacc_qualifiers): Define.
2166 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
2167 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
2168 sqshlu_n, uqshl_n): Update qualifiers.
2169 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
2170 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
2171 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
2172 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
2173 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
2174 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
2175 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
2176 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
2177 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
2178 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
2179 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
2180 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
2181 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
2182 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
2183 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
2184 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
2185 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
2186 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
2187 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
2188 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
2189 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
2190 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
2191 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
2192 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
2193 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
2194 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
2195 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
2196
2197 2014-06-03 Teresa Johnson <tejohnson@google.com>
2198
2199 * tree-sra.c (modify_function): Record caller nodes after rebuild.
2200
2201 2014-06-02 Jason Merrill <jason@redhat.com>
2202
2203 PR c++/61020
2204 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
2205
2206 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2207
2208 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
2209 location == 0.
2210
2211 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
2212
2213 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
2214 New pattern.
2215 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
2216 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
2217 * config/aarch64/iterators.md (REVERSE): New iterator.
2218 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
2219 (rev_op): New int_attribute.
2220 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
2221 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
2222 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
2223 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
2224 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
2225 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
2226 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
2227 Replace temporary __asm__ with __builtin_shuffle.
2228
2229 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2230
2231 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
2232 mips64r5.
2233 * config/mips/mips-tables.opt: Regenerate.
2234 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
2235 to use mips_isa_rev rather than ISA_MIPS32R2.
2236 * config/mips/mips.h (ISA_MIPS32R3): New define.
2237 (ISA_MIPS32R5): New define.
2238 (ISA_MIPS64R3): New define.
2239 (ISA_MIPS64R5): New define.
2240 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
2241 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
2242 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
2243 and mips64r5.
2244 (MIPS_ISA_SYNCI_SPEC): Likewise.
2245 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
2246 (LINK_SPEC): Added mips32r3 and mips32r5.
2247 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
2248 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
2249 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
2250 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
2251 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
2252 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
2253 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
2254
2255 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
2256
2257 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
2258 options.
2259 * config/mips/mips.opt (mxpa): New option.
2260 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
2261 assembler.
2262
2263 2014-06-03 Martin Jambor <mjambor@suse.cz>
2264
2265 PR ipa/61160
2266 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
2267 thunks.
2268
2269 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
2270
2271 PR tree-optimization/61328
2272 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
2273 initialization from find_bswap_or_nop_1.
2274 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
2275 in source_expr2 before using the size value the function sets. Also
2276 make use of init_symbolic_number () in both the old place and
2277 find_bswap_or_nop_load () to avoid reading uninitialized memory when
2278 doing recursion in the GIMPLE_BINARY_RHS case.
2279
2280 2014-06-03 Richard Biener <rguenther@suse.de>
2281
2282 PR tree-optimization/61383
2283 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
2284 stmts can't trap.
2285
2286 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2287
2288 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
2289 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
2290 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
2291 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
2292 in this file.
2293 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
2294 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
2295 * system.h: ...here and make it unconditional.
2296 * target.def (conditional_register_usage): Mention
2297 define_register_constraint instead of old-style constraint macros.
2298 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
2299 * doc/tm.texi: Regenerate.
2300 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
2301 protected by !USE_MD_CONSTRAINTS.
2302 * config/frv/frv.md: Remove quote from old version of documentation.
2303 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
2304 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
2305 CONST_DOUBLE_OK_FOR_LETTER.
2306 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
2307
2308 2014-06-02 Andrew Pinski <apinski@cavium.com>
2309
2310 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
2311 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
2312 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
2313 file whose name depends on -mabi= and -mbig-endian.
2314 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
2315 Handle LP64 better and handle ilp32 too.
2316 (MULTILIB_OPTIONS): Delete.
2317 (MULTILIB_DIRNAMES): Delete.
2318
2319 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
2320
2321 * expr.h: Remove prototypes of functions defined in builtins.c.
2322 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
2323 Remove prototypes of functions defined in builtins.c.
2324 * builtins.h: Update prototype list to include all exported functions.
2325 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
2326 no_c99_libc_has_function): Move to targhooks.c
2327 (build_string_literal, build_call_expr_loc_array,
2328 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
2329 to tree.c.
2330 (expand_builtin_object_size, fold_builtin_object_size): Make static.
2331 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
2332 no_c99_libc_has_function): Relocate from builtins.c.
2333 * tree.c: Include builtins.h.
2334 (build_call_expr_loc_array, build_call_expr_loc_vec,
2335 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
2336 from builtins.c.
2337 * fold-const.h (fold_fma): Move prototype to builtins.h.
2338 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
2339 * asan.c: Include builtins.h.
2340 * cfgexpand.c: Likewise.
2341 * convert.c: Likewise.
2342 * emit-rtl.c: Likewise.
2343 * except.c: Likewise.
2344 * expr.c: Likewise.
2345 * fold-const.c: Likewise.
2346 * gimple-fold.c: Likewise.
2347 * gimple-ssa-strength-reduction.c: Likewise.
2348 * gimplify.c: Likewise.
2349 * ipa-inline.c: Likewise.
2350 * ipa-prop.c: Likewise.
2351 * lto-streamer-out.c: Likewise.
2352 * stmt.c: Likewise.
2353 * tree-inline.c: Likewise.
2354 * tree-object-size.c: Likewise.
2355 * tree-sra.c: Likewise.
2356 * tree-ssa-ccp.c: Likewise.
2357 * tree-ssa-forwprop.c: Likewise.
2358 * tree-ssa-loop-ivcanon.c: Likewise.
2359 * tree-ssa-loop-ivopts.c: Likewise.
2360 * tree-ssa-math-opts.c: Likewise.
2361 * tree-ssa-reassoc.c: Likewise.
2362 * tree-ssa-threadedge.c: Likewise.
2363 * tree-streamer-in.c: Likewise.
2364 * tree-vect-data-refs.c: Likewise.
2365 * tree-vect-patterns.c: Likewise.
2366 * tree-vect-stmts.c: Likewise.
2367 * config/aarch64/aarch64.c: Likewise.
2368 * config/alpha/alpha.c: Likewise.
2369 * config/arc/arc.c: Likewise.
2370 * config/arm/arm.c: Likewise.
2371 * config/avr/avr.c: Likewise.
2372 * config/bfin/bfin.c: Likewise.
2373 * config/c6x/c6x.c: Likewise.
2374 * config/cr16/cr16.c: Likewise.
2375 * config/cris/cris.c: Likewise.
2376 * config/epiphany/epiphany.c: Likewise.
2377 * config/fr30/fr30.c: Likewise.
2378 * config/frv/frv.c: Likewise.
2379 * config/h8300/h8300.c: Likewise.
2380 * config/i386/i386.c: Likewise.
2381 * config/i386/winnt.c: Likewise.
2382 * config/ia64/ia64.c: Likewise.
2383 * config/iq2000/iq2000.c: Likewise.
2384 * config/lm32/lm32.c: Likewise.
2385 * config/m32c/m32c.c: Likewise.
2386 * config/m32r/m32r.c: Likewise.
2387 * config/m68k/m68k.c: Likewise.
2388 * config/mcore/mcore.c: Likewise.
2389 * config/mep/mep.c: Likewise.
2390 * config/microblaze/microblaze.c: Likewise.
2391 * config/mips/mips.c: Likewise.
2392 * config/mmix/mmix.c: Likewise.
2393 * config/mn10300/mn10300.c: Likewise.
2394 * config/moxie/moxie.c: Likewise.
2395 * config/msp430/msp430.c: Likewise.
2396 * config/nds32/nds32.c: Likewise.
2397 * config/pa/pa.c: Likewise.
2398 * config/pdp11/pdp11.c: Likewise.
2399 * config/picochip/picochip.c: Likewise.
2400 * config/rl78/rl78.c: Likewise.
2401 * config/rs6000/rs6000.c: Likewise.
2402 * config/rx/rx.c: Likewise.
2403 * config/s390/s390.c: Likewise.
2404 * config/score/score.c: Likewise.
2405 * config/sh/sh.c: Likewise.
2406 * config/sparc/sparc.c: Likewise.
2407 * config/spu/spu.c: Likewise.
2408 * config/stormy16/stormy16.c: Likewise.
2409 * config/tilegx/tilegx.c: Likewise.
2410 * config/tilepro/tilepro.c: Likewise.
2411 * config/v850/v850.c: Likewise.
2412 * config/vax/vax.c: Likewise.
2413 * config/xtensa/xtensa.c: Likewise.
2414
2415 2014-06-02 Jeff Law <law@redhat.com>
2416
2417 PR rtl-optimization/61094
2418 * ree.c (combine_reaching_defs): Do not reextend an insn if it
2419 was marked as do_no_reextend. If a copy is needed to eliminate
2420 an extension, then mark it as do_not_reextend.
2421
2422 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
2423
2424 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
2425
2426 2014-06-02 Richard Henderson <rth@redhat.com>
2427
2428 PR target/61336
2429 * config/alpha/alpha.c (print_operand_address): Allow symbolic
2430 addresses inside asms. Use output_operand_lossage instead of
2431 gcc_unreachable.
2432
2433 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
2434
2435 PR target/61239
2436 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
2437 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
2438
2439 2014-06-02 Tom de Vries <tom@codesourcery.com>
2440
2441 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
2442 case that x has VOIDmode.
2443
2444 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
2445
2446 * varasm.c (copy_constant): Delete function.
2447 (build_constant_desc): Don't call it.
2448
2449 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2450
2451 PR target/61154
2452 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
2453 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
2454 with immediate_operand.
2455
2456 2014-06-02 Andreas Schwab <schwab@suse.de>
2457
2458 * config/ia64/ia64.c
2459 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
2460 pending_data_specs first.
2461
2462 2014-06-02 Richard Biener <rguenther@suse.de>
2463
2464 PR tree-optimization/61378
2465 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
2466 valueized_anything.
2467
2468 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
2469
2470 * config/i386/constraints.md (Bw): Rename from 'w'.
2471 (Bz): Rename from 'z'.
2472 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
2473
2474 2014-06-01 Kai Tietz <ktietz@redhat.com>
2475
2476 PR target/61377
2477 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
2478 * config/i386/i386.md (sibcall_insn_operand): Use Bs
2479 instead of m constraint.
2480
2481 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
2482
2483 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
2484 a separate alternative where the scratch operand 2 is marked as
2485 early clobber.
2486
2487 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
2488
2489 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
2490 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
2491 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
2492 and __builtins_arm_get_fpscr.
2493 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
2494 __builtins_arm_get_fpscr.
2495 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
2496 __builtins_arm_ldfpscr.
2497 (arm_atomic_assign_expand_fenv): New function.
2498 * config/arm/vfp.md (set_fpscr): New pattern.
2499 (get_fpscr) : Likewise.
2500 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
2501 VUNSPEC_SET_FPSCR.
2502 * doc/extend.texi (AARCH64 Built-in Functions) : Document
2503 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
2504
2505 2014-05-30 Jakub Jelinek <jakub@redhat.com>
2506
2507 * asan.c (report_error_func): Add SLOW_P argument, use
2508 BUILT_IN_ASAN_*_N if set.
2509 (build_check_stmt): Likewise.
2510 (instrument_derefs): If T has insufficient alignment,
2511 force same handling as for odd sizes.
2512
2513 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
2514 BUILT_IN_ASAN_REPORT_STORE_N): New.
2515 * asan.c (struct asan_mem_ref): Change access_size type to
2516 HOST_WIDE_INT.
2517 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
2518 update_mem_ref_hash_table): Likewise.
2519 (asan_mem_ref_hasher::hash): Hash in a HWI.
2520 (report_error_func): Change size_in_bytes argument to HWI.
2521 Use *_N builtins if size_in_bytes is larger than 16 or not power of
2522 two.
2523 (build_shadow_mem_access): New function.
2524 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
2525 Handle size_in_bytes not power of two or larger than 16.
2526 (instrument_derefs): Don't give up if size_in_bytes is not
2527 power of two or is larger than 16.
2528
2529 2014-05-30 Kai Tietz <ktietz@redhat.com>
2530
2531 PR target/60104
2532 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
2533 for sibling-tail-calls.
2534 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
2535 to its use.
2536 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
2537 (sibcall_insn_operand): Add check for sibcall_memory_operand.
2538
2539 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2540
2541 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
2542 * config/avr/avr-tables.opt: Regenerate.
2543 * config/avr/t-multilib: Regenerate.
2544 * doc/avr-mmcu.texi: Regenerate.
2545
2546 2014-05-30 Ian Lance Taylor <iant@google.com>
2547
2548 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
2549 target("sse").
2550
2551 2014-05-30 Tom de Vries <tom@codesourcery.com>
2552
2553 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
2554 Redefine as true.
2555
2556 2014-05-30 Tom de Vries <tom@codesourcery.com>
2557
2558 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
2559 * lra.c (initialize_lra_reg_info_element): Add init of
2560 actual_call_used_reg_set field.
2561 (lra): Call lra_create_live_ranges before lra_inheritance for
2562 -fuse-caller-save.
2563 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
2564 -fuse-caller-save.
2565 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
2566 instead of call_used_reg_set for -fuse-caller-save.
2567 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
2568
2569 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2570
2571 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
2572 to mov_imm.
2573 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
2574
2575 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
2576
2577 * ira.c (ira_get_dup_out_num): Check for output operands at
2578 the start of the loop. Handle cases where an included alternative
2579 follows an excluded one.
2580
2581 2014-05-29 Mike Stump <mikestump@comcast.net>
2582
2583 PR debug/61352
2584 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
2585 post ld passes when lto is used.
2586
2587 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
2588
2589 PR rtl-optimization/61325
2590 * lra-constraints.c (process_address): Rename to process_address_1.
2591 (process_address): New function.
2592
2593 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
2594
2595 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
2596 TYPES_BINOPV): New static data.
2597 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
2598 New builtin.
2599 * config/aarch64/aarch64-simd.md (aarch64_ext,
2600 aarch64_im_lane_boundsi): New patterns.
2601 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
2602 patterns for EXT.
2603 (aarch64_evpc_ext): New function.
2604
2605 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
2606
2607 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
2608 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
2609 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
2610 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
2611 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
2612
2613 2014-05-29 Tom de Vries <tom@codesourcery.com>
2614
2615 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
2616
2617 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
2618 Richard Sandiford <rdsandiford@googlemail.com>
2619
2620 * arm/iterators.md (shiftable_ops): New code iterator.
2621 (t2_binop0, arith_shift_insn): New code attributes.
2622 * arm/predicates.md (shift_nomul_operator): New predicate.
2623 * arm/arm.md (insn_enabled): Delete.
2624 (enabled): Remove insn_enabled test.
2625 (*arith_shiftsi): Delete. Replace with ...
2626 (*<arith_shift_insn>_multsi): ... new pattern.
2627 (*<arith_shift_insn>_shiftsi): ... new pattern.
2628 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
2629
2630 2014-05-29 Radovan Obradovic <robradovic@mips.com>
2631 Tom de Vries <tom@codesourcery.com>
2632
2633 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
2634 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
2635 clobber.
2636 (mips_split_call): Use POST_CALL_TMP_REG.
2637 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
2638
2639 2014-05-29 Tom de Vries <tom@codesourcery.com>
2640
2641 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
2642 with #ifdef STACK_REGS.
2643
2644 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
2645
2646 * varasm.c (get_variable_section): Walk aliases.
2647 (place_block_symbol): Walk aliases.
2648
2649 2014-05-28 Tom de Vries <tom@codesourcery.com>
2650
2651 Revert:
2652 2014-05-28 Tom de Vries <tom@codesourcery.com>
2653
2654 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
2655 * lra.c (initialize_lra_reg_info_element): Add init of
2656 actual_call_used_reg_set field.
2657 (lra): Call lra_create_live_ranges before lra_inheritance for
2658 -fuse-caller-save.
2659 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
2660 -fuse-caller-save.
2661 * lra-constraints.c (need_for_call_save_p): Use
2662 actual_call_used_reg_set instead of call_used_reg_set for
2663 -fuse-caller-save.
2664 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
2665
2666 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2667
2668 * doc/md.texi: Document that the % constraint character must
2669 be at the beginning of the string.
2670 * genoutput.c (validate_insn_alternatives): Check that '=',
2671 '+' and '%' only appear at the beginning of a constraint.
2672 * ira.c (commutative_constraint_p): Delete.
2673 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
2674 at the start of the string.
2675 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
2676 duplicate '='s.
2677 * config/arm/neon.md (bicdi3_neon): Likewise.
2678 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
2679 (slt_si, sltu_si): Likewise.
2680 * config/vax/vax.md (sbcdi3): Likewise.
2681 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
2682 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
2683 (mul64): Move '%' to beginning of constraint.
2684 * config/arm/arm.md (*xordi3_insn): Likewise.
2685 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
2686 (xorsi3): Likewise.
2687
2688 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2689
2690 * doc/md.texi: Document the restrictions on the "enabled" attribute.
2691
2692 2014-05-28 Jason Merrill <jason@redhat.com>
2693
2694 PR c++/47202
2695 * cgraph.h (symtab_node::get_comdat_group_id): New.
2696 * cgraphunit.c (analyze_functions): Call it.
2697 * symtab.c (dump_symtab_node): Likewise.
2698 * tree.c (decl_comdat_group_id): New.
2699 * tree.h: Declare it.
2700 * lto-streamer-out.c (write_symbol): Use it.
2701 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
2702
2703 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2704
2705 PR bootstrap/PR61146
2706 * wide-int.cc: Do not include longlong.h when compiling with clang.
2707
2708 2014-05-28 Richard Biener <rguenther@suse.de>
2709
2710 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
2711 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
2712 (vrp_visit_assignment_or_call): Print less vertical space.
2713 (vrp_visit_stmt): Likewise.
2714 (vrp_visit_phi_node): Likewise. For a PHI argument with
2715 VR_VARYING range consider recording it as copy.
2716
2717 2014-05-28 Richard Biener <rguenther@suse.de>
2718
2719 Revert
2720 2014-05-28 Richard Biener <rguenther@suse.de>
2721
2722 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
2723
2724 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
2725
2726 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
2727 sufficiently aligned and an offset is used at the same time.
2728 (expand_expr_real_1): Likewise.
2729
2730 2014-05-28 Richard Biener <rguenther@suse.de>
2731
2732 PR middle-end/61045
2733 * fold-const.c (fold_comparison): When folding
2734 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
2735 the sign of the remaining constant operand stays the same.
2736
2737 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
2738
2739 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
2740 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
2741 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
2742 to the assembler.
2743 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
2744 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
2745 (m32bit-doubles) Likewise.
2746 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
2747 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
2748 option for RL78.
2749
2750 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2751
2752 * configure.ac ($gcc_cv_ld_clearcap): New test.
2753 * configure: Regenerate.
2754 * config.in: Regenerate.
2755 * config/sol2.opt (mclear-hwcap): New option.
2756 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
2757 * config/sol2-clearcap.map: Moved here from
2758 testsuite/gcc.target/i386/clearcap.map.
2759 * config/sol2-clearcapv2.map: Move here from
2760 gcc.target/i386/clearcapv2.map.
2761 * config/t-sol2 (install): Depend on install-clearcap-map.
2762 (install-clearcap-map): New target.
2763 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
2764 -mclear-hwcap.
2765
2766 2014-05-28 Richard Biener <rguenther@suse.de>
2767
2768 * hwint.h (*_HALF_WIDE_INT*): Move to ...
2769 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
2770 ... here and remove the rest.
2771 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
2772
2773 2014-05-28 Richard Biener <rguenther@suse.de>
2774
2775 PR tree-optimization/61335
2776 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
2777 new range fails, drop to varying.
2778
2779 2014-05-28 Tom de Vries <tom@codesourcery.com>
2780
2781 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
2782 * lra.c (initialize_lra_reg_info_element): Add init of
2783 actual_call_used_reg_set field.
2784 (lra): Call lra_create_live_ranges before lra_inheritance for
2785 -fuse-caller-save.
2786 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
2787 -fuse-caller-save.
2788 * lra-constraints.c (need_for_call_save_p): Use
2789 actual_call_used_reg_set instead of call_used_reg_set for
2790 -fuse-caller-save.
2791 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
2792
2793 2014-05-28 Radovan Obradovic <robradovic@mips.com>
2794 Tom de Vries <tom@codesourcery.com>
2795
2796 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
2797 to gccoptlist.
2798 (@item -fuse-caller-save): New item.
2799
2800 2014-05-28 Radovan Obradovic <robradovic@mips.com>
2801 Tom de Vries <tom@codesourcery.com>
2802
2803 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
2804 OPT_fuse_caller_save.
2805
2806 2014-05-28 Radovan Obradovic <robradovic@mips.com>
2807 Tom de Vries <tom@codesourcery.com>
2808
2809 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
2810 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
2811 get_call_reg_set_usage.
2812 * resource.c (mark_set_resources, mark_target_live_regs): Use
2813 get_call_reg_set_usage.
2814 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
2815 field.
2816 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
2817 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
2818 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2819 * ira-build.c (ira_create_allocno): Init
2820 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2821 (create_cap_allocno, propagate_allocno_info)
2822 (propagate_some_info_from_allocno)
2823 (copy_info_to_removed_store_destinations): Handle
2824 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
2825 * ira-costs.c (ira_tune_allocno_costs): Use
2826 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
2827
2828 2014-05-28 Radovan Obradovic <robradovic@mips.com>
2829 Tom de Vries <tom@codesourcery.com>
2830
2831 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
2832 and function_used_regs_valid fields.
2833 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
2834 find_all_hard_reg_sets.
2835 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
2836 (get_call_reg_set_usage): New function.
2837 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
2838 * regs.h (get_call_reg_set_usage): Declare.
2839
2840 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
2841
2842 PR libgcc/61152
2843 * config/dbx.h (License): Add Runtime Library Exception.
2844 * config/newlib-stdint.h (License): Same.
2845 * config/rtems.h (License): Same
2846 * config/initfini-array.h (License): Same
2847 * config/v850/v850.h (License): Same.
2848 * config/v850/v850-opts.h (License): Same
2849 * config/v850/rtems.h (License): Same.
2850
2851 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
2852
2853 PR target/61044
2854 * doc/extend.texi (Local Labels): Note that label differences are
2855 not supported for AVR.
2856
2857 2014-05-27 Andrew Pinski <apinski@cavium.com>
2858
2859 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
2860 Use <w> for the register in assembly template.
2861 (stack_protect_test): Use the mode of operands[0] for the result.
2862 (stack_protect_test_<mode>): Use <w> for the register
2863 in assembly template.
2864
2865 2014-05-27 DJ Delorie <dj@redhat.com>
2866
2867 * config/rx/rx.c (add_vector_labels): New.
2868 (rx_output_function_prologue): Call it.
2869 (rx_handle_func_attribute): Don't require empty arguments.
2870 (rx_handle_vector_attribute): New.
2871 (rx_attribute_table): Add "vector" attribute.
2872 * doc/extend.texi (interrupt, vector): Document new/changed
2873 RX-specific attributes.
2874
2875 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
2876
2877 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
2878
2879 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
2880 predicate to detect a negative quotient.
2881
2882 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
2883
2884 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
2885 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
2886 Add X - Y CMP 0 to X CMP Y transformation.
2887 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
2888
2889 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
2890
2891 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
2892 before printing.
2893
2894 2014-05-27 Steve Ellcey <sellcey@mips.com>
2895
2896 * config/mips/mips.c: Add include of cgraph.h.
2897
2898 2014-05-27 Richard Biener <rguenther@suse.de>
2899
2900 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
2901
2902 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
2903
2904 PR libgcc/61152
2905 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
2906 * config/arm/arm-cores.def (License): Same.
2907 * config/arm/arm-opts.h (License): Same.
2908 * config/arm/aout.h (License): Same.
2909 * config/arm/bpabi.h (License): Same.
2910 * config/arm/elf.h (License): Same.
2911 * config/arm/linux-elf.h (License): Same.
2912 * config/arm/linux-gas.h (License): Same.
2913 * config/arm/netbsd-elf.h (License): Same.
2914 * config/arm/uclinux-eabi.h (License): Same.
2915 * config/arm/uclinux-elf.h (License): Same.
2916 * config/arm/vxworks.h (License): Same.
2917
2918 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2919
2920 * config/arm/neon.md (neon_bswap<mode>): New pattern.
2921 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
2922 (arm_init_neon_builtins): Handle NEON_BSWAP.
2923 Define required type nodes.
2924 (arm_expand_neon_builtin): Handle NEON_BSWAP.
2925 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
2926 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
2927 * config/arm/iterators.md (VDQHSD): New mode iterator.
2928
2929 2014-05-27 Richard Biener <rguenther@suse.de>
2930
2931 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
2932 Try using literal operands when comparing value-ranges failed.
2933
2934 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
2935
2936 * ira.c (commutative_operand): Adjust for change to recog_data.
2937 [Missing from previous commit.]
2938
2939 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
2940
2941 * system.h (TEST_BIT): New macro.
2942 * recog.h (alternative_mask): New type.
2943 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
2944 (recog_data_d): Replace alternative_enabled_p array with
2945 enabled_alternatives.
2946 (target_recog): New structure.
2947 (default_target_recog, this_target_recog): Declare.
2948 (get_enabled_alternatives, recog_init): Likewise.
2949 * recog.c (default_target_recog, this_target_recog): New variables.
2950 (get_enabled_alternatives): New function.
2951 (extract_insn): Use it.
2952 (recog_init): New function.
2953 (preprocess_constraints, constrain_operands): Adjust for change to
2954 recog_data.
2955 * postreload.c (reload_cse_simplify_operands): Likewise.
2956 * reload.c (find_reloads): Likewise.
2957 * ira-costs.c (record_reg_classes): Likewise.
2958 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
2959 all alternatives after a disabled one would be skipped.
2960 (ira_implicitly_set_insn_hard_regs): Likewise.
2961 * ira.c (ira_setup_alts): Adjust for change to recog_data.
2962 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
2963 with enabled_alternatives.
2964 * lra.c (free_insn_recog_data): Update accordingly.
2965 (lra_update_insn_recog_data): Likewise.
2966 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
2967 * lra-constraints.c (process_alt_operands): Likewise. Handle
2968 only_alternative as part of the enabled mask.
2969 * target-globals.h (this_target_recog): Declare.
2970 (target_globals): Add a recog field.
2971 (restore_target_globals): Restore this_target_recog.
2972 * target-globals.c: Include recog.h.
2973 (default_target_globals): Initialize recog field.
2974 (save_target_globals): Likewise.
2975 * reginfo.c (reinit_regs): Call recog_init.
2976 * toplev.c (backend_init_target): Likewise.
2977
2978 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
2979
2980 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
2981 rather than any named insn's code.
2982
2983 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
2984
2985 PR libgcc/61152
2986 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
2987 * config/arm/arm-cores.def (License): Same.
2988
2989 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
2990
2991 * tree.h (decl_comdat_group): Declare.
2992 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
2993 * tree.c (decl_comdat_group): Here.
2994
2995 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
2996
2997 PR rtl-optimization/61222
2998 * combine.c (simplify_shift_const_1): When moving a PLUS outside
2999 the shift, truncate the PLUS operand to the result mode.
3000
3001 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
3002
3003 PR target/61271
3004 * config/i386/i386.c (ix86_rtx_costs)
3005 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
3006 Fix condition.
3007
3008 2014-05-26 Martin Jambor <mjambor@suse.cz>
3009
3010 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
3011 subreg uses.
3012
3013 2014-05-26 Richard Biener <rguenther@suse.de>
3014
3015 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
3016 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
3017 Provide specializations.
3018 (wi::int_traits <HOST_WIDE_INT>,
3019 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
3020
3021 2014-05-26 Alan Modra <amodra@gmail.com>
3022
3023 PR target/61098
3024 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
3025 params and return a bool. Remove dead code. Update comment.
3026 Assert we have a const_int source. Remove bogus code from
3027 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
3028 handling of constants > 2G and reg_equal note, from..
3029 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
3030 return value. Update comment. If we can, use a new pseudo
3031 for intermediate calculations.
3032 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
3033 prototype.
3034 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
3035 call to rs6000_emit_set_const in splitter.
3036 (movdi_internal64+2, +3): Likewise.
3037
3038 2014-05-26 Richard Biener <rguenther@suse.de>
3039
3040 * system.h: Define __STDC_FORMAT_MACROS before
3041 including inttypes.h.
3042 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
3043 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
3044 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
3045 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
3046 HOST_WIDEST_INT_C): Remove.
3047 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
3048 if C99 inttypes.h is not available.
3049 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
3050 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
3051 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
3052 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
3053 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
3054 (struct output_info): Likewise.
3055 (print_statistics): Adjust.
3056 (dump_bitmap_statistics): Likewise.
3057 * bt-load.c (migrate_btr_defs): Print with PRId64.
3058 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
3059 (MAX_SAFE_MULTIPLIER): Adjust.
3060 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
3061 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
3062 dump_cgraph_node): Likewise.
3063 * final.c (dump_basic_block_info): Likewise.
3064 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
3065 * gcov.c (format_gcov): Likewise.
3066 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
3067 for calculation.
3068 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
3069 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
3070 (inline_small_functions, dump_overall_stats, dump_inline_stats):
3071 Use PRId64 for dumping.
3072 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
3073 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
3074 (add_allocno_hard_regs): Adjust.
3075 * loop-doloop.c (doloop_modify): Print using PRId64.
3076 * loop-iv.c (inverse): Compute in uint64_t.
3077 (determine_max_iter, iv_number_of_iterations): Likewise.
3078 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
3079 Print using PRId64.
3080 * lto-streamer-out.c (write_symbol): Use uint64_t.
3081 * mcf.c (CAP_INFINITY): Use int64_t maximum.
3082 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
3083 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
3084 * modulo-sched.c (const_iteration_count): Use int64_t.
3085 (sms_schedule): Dump using PRId64.
3086 * predict.c (dump_prediction): Likewise.
3087 * pretty-print.h (pp_widest_integer): Remove.
3088 * profile.c (get_working_sets, is_edge_inconsistent,
3089 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
3090 * tree-pretty-print.c (pp_double_int): Remove case handling
3091 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
3092 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
3093 and adjust users.
3094 (pass_optimize_bswap::execute): Remove restriction on hosts.
3095 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
3096 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
3097 * tree.c (widest_int_cst_value): Remove.
3098 * tree.h (widest_int_cst_value): Likewise.
3099 * value-prof.c (dump_histogram_value): Print using PRId64.
3100 * gengtype.c (main): Also inject int64_t.
3101 * ggc-page.c (struct max_alignment): Use int64_t.
3102 * alloc-pool.c (struct allocation_object_def): Likewise.
3103 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
3104 for computation.
3105 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
3106 * doc/tm.texi: Regenerated.
3107 * gengtype-lex.l (IWORD): Handle [u]int64_t.
3108 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
3109 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
3110 mmix_output_register_setting): Use [u]int64_t in prototypes.
3111 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
3112 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
3113 mmix_output_octa, mmix_output_shifted_value): Adjust.
3114 (mmix_intval): Adjust. Remove unreachable case.
3115 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
3116
3117 2014-05-26 Richard Biener <rguenther@suse.de>
3118
3119 * configure.ac: Drop __int64 type check. Insist that we
3120 found uint64_t and int64_t.
3121 * hwint.h (HOST_BITS_PER___INT64): Remove.
3122 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
3123 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
3124 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
3125 (HOST_WIDEST_FAST_INT): Remove __int64 case.
3126 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
3127 for dst_q_src_df_rms_cdt.
3128 * configure: Regenerate.
3129 * config.in: Likewise.
3130
3131 2014-05-26 Michael Tautschnig <mt@debian.org>
3132
3133 PR target/61249
3134 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
3135 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
3136
3137 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3138
3139 PR rtl-optimization/61278
3140 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
3141
3142 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3143
3144 PR rtl-optimization/61220
3145 Part of PR rtl-optimization/61225
3146 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
3147 insn; skip split_edge for a block with only one successor.
3148
3149 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3150
3151 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
3152 for variables.
3153
3154 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3155
3156 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
3157 (update_vtable_references): New function.
3158 (function_and_variable_visibility): Rewrite also vtable initializers.
3159 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
3160
3161 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3162
3163 * ggc.h (ggc_grow): New function.
3164 * ggc-none.c (ggc_grow): New function.
3165 * ggc-page.c (ggc_grow): Likewise.
3166
3167 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3168
3169 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3170 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
3171 comdat_can_be_unshared_p, cgraph_externally_visible_p,
3172 varpool_externally_visible_p, can_replace_by_local_alias,
3173 update_visibility_by_resolution_info, function_and_variable_visibility,
3174 pass_data_ipa_function_and_variable_visibility,
3175 make_pass_ipa_function_and_variable_visibility,
3176 whole_program_function_and_variable_visibility,
3177 pass_data_ipa_whole_program_visibility,
3178 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
3179 * cgraph.h (cgraph_local_node_p): Declare.
3180 * ipa-visibility.c: New file.
3181 * Makefile.in (OBJS): Add ipa-visiblity.o
3182
3183 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3184
3185 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
3186 that var decl is available.
3187
3188 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3189
3190 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
3191 symtab_node pointer.
3192 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
3193 (find_decls_types_r): Do not walk COMDAT_GROUP.
3194 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
3195 * varasm.c (make_decl_one_only): Use set_comdat_group;
3196 create node if needed.
3197 * ipa-inline-transform.c (save_inline_function_body): Update
3198 way we decl->symtab mapping.
3199 * symtab.c (symtab_hash, hash_node, eq_node
3200 symtab_insert_node_to_hashtable): Remove.
3201 (symtab_register_node): Update.
3202 (symtab_unregister_node): Update.
3203 (symtab_get_node): Reimplement as inline function.
3204 (symtab_add_to_same_comdat_group): Update.
3205 (symtab_dissolve_same_comdat_group_list): Update.
3206 (dump_symtab_base): Update.
3207 (verify_symtab_base): Update.
3208 (symtab_make_decl_local): Update.
3209 (fixup_same_cpp_alias_visibility): Update.
3210 (symtab_nonoverwritable_alias): Update.
3211 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
3212 * ipa.c (update_visibility_by_resolution_info): UPdate.
3213 * bb-reorder.c: Include cgraph.h
3214 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
3215 with comdat groups.
3216 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
3217 * cgraph.c (cgraph_get_create_node): Update.
3218 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
3219 and comdat_group_.
3220 (symtab_get_node): Make inline.
3221 (symtab_insert_node_to_hashtable): Remove.
3222 (symtab_can_be_discarded): Update.
3223 (decl_comdat_group): New function.
3224 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
3225 Update.
3226 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
3227 comdat group name.
3228 (read_comdat_group): New function.
3229 (input_node, input_varpool_node): Use it.
3230 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
3231 comdat groups.
3232 * mips.c (mips_start_unique_function): Likewise.
3233 (ix86_code_end): Likewise.
3234 (rs6000_code_end): Likweise.
3235 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
3236
3237 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3238
3239 * gengtype-state.c (fatal_reading_state): Bring offline.
3240 * optabs.c (widening_optab_handler): Bring offline.
3241 * optabs.h (widening_optab_handler): Likewise.
3242 * final.c (get_attr_length_1): Likewise.
3243
3244 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
3245
3246 * sched-int.h (sd_iterator_cond): Manually tail recurse.
3247
3248 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3249
3250 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
3251 (ppc440-compare): Include shift with dot.
3252 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
3253 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
3254 without dot.
3255 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
3256 without dot.
3257 (e6500_sfx2): Include it.
3258 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
3259 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
3260 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
3261 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
3262 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
3263 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
3264 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
3265 *lshiftrt_internal1le, *lshiftrt_internal1be,
3266 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
3267 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
3268 *rotldi3_internal10le, *rotldi3_internal10be,
3269 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
3270 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
3271 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
3272 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
3273 define_insns): Use type "shift" in the appropriate alternatives.
3274
3275 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3276
3277 * config/rs6000/rs6000.md (type): Add "logical". Delete
3278 "fast_compare".
3279 (dot): Adjust comment.
3280 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
3281 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
3282 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
3283 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
3284 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
3285 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
3286 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
3287 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
3288
3289 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3290 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
3291 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3292 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3293 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3294 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3295 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3296 * config/rs6000/8540.md (ppc8540_su): Adjust.
3297 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3298 cell-cmp-microcoded): Adjust.
3299 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
3300 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3301 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
3302 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
3303 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
3304 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3305 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
3306 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
3307 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
3308 Adjust.
3309 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
3310 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
3311 Adjust. Adjust comment.
3312 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3313 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
3314
3315 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3316
3317 * config/rs6000/rs6000.md (type): Add "add".
3318 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
3319 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
3320 define_insns): Use it.
3321 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
3322
3323 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3324 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
3325 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3326 * config/rs6000/601.md (ppc601-integer): Adjust.
3327 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3328 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3329 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3330 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3331 * config/rs6000/8540.md (ppc8540_su): Adjust.
3332 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3333 cell-cmp-microcoded): Adjust.
3334 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
3335 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3336 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
3337 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
3338 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
3339 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3340 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
3341 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
3342 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
3343 Adjust.
3344 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
3345 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
3346 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3347 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
3348
3349 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3350
3351 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
3352 "delayed_compare", "var_delayed_compare".
3353 (var_shift): New attribute.
3354 (cell_micro): Adjust.
3355 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
3356 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
3357 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
3358 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
3359 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
3360 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
3361 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
3362 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
3363 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
3364 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
3365 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
3366 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
3367 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
3368 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
3369 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
3370 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
3371 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
3372 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
3373 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
3374 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
3375 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
3376 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
3377 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
3378 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3379 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
3380
3381 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
3382 * config/rs6000/440.md (ppc440-integer): Adjust.
3383 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
3384 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
3385 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
3386 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
3387 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
3388 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
3389 * config/rs6000/8540.md (ppc8540_su): Adjust.
3390 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
3391 cell-cmp-microcoded): Adjust.
3392 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
3393 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3394 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
3395 e500mc64_delayed): Adjust.
3396 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
3397 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
3398 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
3399 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
3400 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
3401 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
3402 power6-delayed-compare, power6-var-delayed-compare): Adjust.
3403 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
3404 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
3405 Adjust comment.
3406 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
3407 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
3408
3409 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3410
3411 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
3412 (bits): New mode_attr.
3413 (idiv_ldiv): Delete mode_attr.
3414 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
3415 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3416 rs6000_adjust_priority, is_nonpipeline_insn,
3417 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
3418
3419 * config/rs6000/40x.md (ppc403-idiv): Adjust.
3420 * config/rs6000/440.md (ppc440-idiv): Adjust.
3421 * config/rs6000/476.md (ppc476-idiv): Adjust.
3422 * config/rs6000/601.md (ppc601-idiv): Adjust.
3423 * config/rs6000/603.md (ppc603-idiv): Adjust.
3424 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
3425 ppc620-ldiv): Adjust.
3426 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
3427 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
3428 * config/rs6000/8540.md (ppc8540_divide): Adjust.
3429 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
3430 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
3431 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
3432 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
3433 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
3434 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
3435 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
3436 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
3437 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
3438 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
3439 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
3440 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
3441 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
3442 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
3443 * config/rs6000/titan.md (titan_fxu_div): Adjust.
3444
3445 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3446
3447 * config/rs6000/rs6000.md (type): Delete "insert_word",
3448 "insert_dword". Add "insert".
3449 (size): Update comment.
3450 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3451 insn_must_be_first_in_group): Adjust.
3452 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
3453 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
3454 *insvsi_internal6, insvdi_internal): Adjust.
3455
3456 * config/rs6000/40x.md (ppc403-integer): Adjust.
3457 * config/rs6000/440.md (ppc440-integer): Adjust.
3458 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
3459 * config/rs6000/601.md (ppc601-integer): Adjust.
3460 * config/rs6000/603.md (ppc603-integer): Adjust.
3461 * config/rs6000/6xx.md (ppc604-integer): Adjust.
3462 * config/rs6000/7450.md (ppc7450-integer): Adjust.
3463 * config/rs6000/7xx.md (ppc750-integer): Adjust.
3464 * config/rs6000/8540.md (ppc8540_su): Adjust.
3465 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
3466 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
3467 * config/rs6000/e500mc.md (e500mc_su): Adjust.
3468 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
3469 * config/rs6000/e5500.md (e5500_sfx): Adjust.
3470 * config/rs6000/e6500.md (e6500_sfx): Adjust.
3471 * config/rs6000/mpc.md (mpccore-integer): Adjust.
3472 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
3473 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
3474 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
3475 * config/rs6000/power7.md (power7-integer): Adjust.
3476 * config/rs6000/power8.md (power8-1cyc): Adjust.
3477 * config/rs6000/rs64.md (rs64a-integer): Adjust.
3478 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
3479
3480 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3481
3482 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
3483 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
3484 (size): New attribute.
3485 (dot): New attribute.
3486 (cell_micro): Adjust.
3487 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
3488 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
3489 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
3490 umuldi3_highpart): Adjust.
3491 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
3492 rs6000_adjust_priority, is_nonpipeline_insn,
3493 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
3494
3495 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
3496 ppc405-imul3): Adjust.
3497 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
3498 * config/rs6000/476.md (ppc476-imul): Adjust.
3499 * config/rs6000/601.md (ppc601-imul): Adjust.
3500 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
3501 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
3502 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
3503 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
3504 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
3505 Adjust.
3506 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
3507 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
3508 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
3509 cell-imul): Adjust.
3510 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
3511 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
3512 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
3513 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
3514 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
3515 * config/rs6000/mpc.md (mpccore-imul): Adjust.
3516 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
3517 power4-lmul, power4-imul, power4-imul3): Adjust.
3518 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
3519 power5-lmul, power5-imul, power5-imul3): Adjust.
3520 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
3521 power6-lmul, power6-imul, power6-imul3): Adjust.
3522 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
3523 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
3524
3525 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
3526 rs64a-lmul): Adjust.
3527 * config/rs6000/titan.md (titan_imul): Adjust.
3528
3529 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3530
3531 * config/rs6000/rs6000.md (type): Add new value "halfmul".
3532 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
3533 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
3534 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
3535 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
3536 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
3537 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
3538 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
3539 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
3540 * config/rs6000/titan.md: Delete nonsensical comment.
3541 (titan_imul): Add type imul3.
3542 (titan_mulhw): Remove type imul3; add type halfmul.
3543
3544 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
3545
3546 * config/rs6000/rs6000.md (type): Reorder, reformat.
3547
3548 2014-05-23 Martin Jambor <mjambor@suse.cz>
3549
3550 PR tree-optimization/53787
3551 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
3552 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
3553 analysis_done, update all uses.
3554 * ipa-prop.c: Include domwalk.h
3555 (param_analysis_info): Removed.
3556 (param_aa_status): New type.
3557 (ipa_bb_info): Likewise.
3558 (func_body_info): Likewise.
3559 (ipa_get_bb_info): New function.
3560 (aa_overwalked): Likewise.
3561 (find_dominating_aa_status): Likewise.
3562 (parm_bb_aa_status_for_bb): Likewise.
3563 (parm_preserved_before_stmt_p): Changed to use new param AA info.
3564 (load_from_unmodified_param): Accept func_body_info as a parameter
3565 instead of parms_ainfo.
3566 (parm_ref_data_preserved_p): Changed to use new param AA info.
3567 (parm_ref_data_pass_through_p): Likewise.
3568 (ipa_load_from_parm_agg_1): Likewise. Update callers.
3569 (compute_complex_assign_jump_func): Changed to use new param AA info.
3570 (compute_complex_ancestor_jump_func): Likewise.
3571 (ipa_compute_jump_functions_for_edge): Likewise.
3572 (ipa_compute_jump_functions): Removed.
3573 (ipa_compute_jump_functions_for_bb): New function.
3574 (ipa_analyze_indirect_call_uses): Likewise, moved variable
3575 declarations down.
3576 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
3577 and info, moved variable declarations down.
3578 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
3579 node and info.
3580 (ipa_analyze_stmt_uses): Likewise.
3581 (ipa_analyze_params_uses): Removed.
3582 (ipa_analyze_params_uses_in_bb): New function.
3583 (ipa_analyze_controlled_uses): Likewise.
3584 (free_ipa_bb_info): Likewise.
3585 (analysis_dom_walker): New class.
3586 (ipa_analyze_node): Handle node-specific forbidden analysis,
3587 initialize and free func_body_info, use dominator walker.
3588 (ipcp_modif_dom_walker): New class.
3589 (ipcp_transform_function): Create and free func_body_info, use
3590 ipcp_modif_dom_walker, moved a lot of functionality there.
3591
3592 2014-05-23 Marek Polacek <polacek@redhat.com>
3593 Jakub Jelinek <jakub@redhat.com>
3594
3595 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
3596 * gcc.c (sanitize_spec_function): Likewise.
3597 * convert.c (convert_to_integer): Include "ubsan.h". Add
3598 floating-point to integer instrumentation.
3599 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
3600 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
3601 SANITIZE_NONDEFAULT.
3602 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
3603 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
3604 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
3605 * ubsan.c: Include "realmpfr.h" and "dfp.h".
3606 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
3607 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
3608 float/double/long double.
3609 (ubsan_instrument_float_cast): New function.
3610 * ubsan.h (ubsan_instrument_float_cast): Declare.
3611
3612 2014-05-23 Jiong Wang <jiong.wang@arm.com>
3613
3614 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
3615 predicate.
3616 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
3617 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
3618 Adjust for tailcalling through registers.
3619 * config/aarch64/aarch64.h (enum reg_class): New caller save
3620 register class.
3621 (REG_CLASS_NAMES): Likewise.
3622 (REG_CLASS_CONTENTS): Likewise.
3623 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
3624 Allow tailcalling without decls.
3625
3626 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
3627
3628 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
3629 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
3630
3631 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
3632 gsi, and variables v_* to v*.
3633
3634 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
3635
3636 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
3637
3638 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
3639
3640 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
3641 * omp-low.c: Update accordingly.
3642
3643 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
3644 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
3645 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
3646 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
3647 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
3648 GF_OMP_TARGET_KIND_UPDATE.
3649
3650 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
3651 Explicitly enumerate the expected region types.
3652
3653 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
3654
3655 PR other/56955
3656 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
3657 documentation; the old documentation didn't clearly state the
3658 constraints on the contents of the pointed-to storage.
3659
3660 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3661
3662 Fix bootstrap error on ia64
3663 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
3664 Return default value.
3665
3666 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
3667
3668 PR tree-optimization/54733
3669 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
3670 (CMPNOP): Define.
3671 (find_bswap_or_nop_load): New.
3672 (find_bswap_1): Renamed to ...
3673 (find_bswap_or_nop_1): This. Also add support for memory source.
3674 (find_bswap): Renamed to ...
3675 (find_bswap_or_nop): This. Also add support for memory source and
3676 detection of bitwise operations equivalent to load in target
3677 endianness.
3678 (execute_optimize_bswap): Likewise. Also move its leading comment back
3679 in place and split statement transformation into ...
3680 (bswap_replace): This.
3681
3682 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
3683
3684 PR rtl-optimization/61215
3685 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
3686 simplify_gen_subreg until final substitution.
3687
3688 2014-05-23 Alan Modra <amodra@gmail.com>
3689
3690 PR target/61231
3691 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
3692 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
3693 Use "Y" constraint rather than "m".
3694
3695 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3696
3697 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
3698 define.
3699 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
3700 New function declaration.
3701 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
3702 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
3703 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
3704 (aarch64_init_builtins) : Initialize builtins
3705 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
3706 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
3707 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
3708 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
3709 and __builtins_aarch64_set_fpsr.
3710 (aarch64_atomic_assign_expand_fenv): New function.
3711 * config/aarch64/aarch64.md (set_fpcr): New pattern.
3712 (get_fpcr) : Likewise.
3713 (set_fpsr) : Likewise.
3714 (get_fpsr) : Likewise.
3715 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
3716 and UNSPECV_SET_FPSR.
3717 * doc/extend.texi (AARCH64 Built-in Functions) : Document
3718 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
3719 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
3720
3721 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
3722
3723 PR rtl-optimization/60969
3724 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
3725 constraints. Set up mem cost for NO_REGS case.
3726
3727 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3728
3729 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
3730
3731 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
3732
3733 * config/darwin.c: Include "lto-section-names.h".
3734 (LTO_SEGMENT_NAME): Don't define.
3735 * config/i386/winnt.c: Include "lto-section-names.h".
3736 * lto-streamer.c: Include "lto-section-names.h".
3737 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
3738 * lto-wrapper.c: Include "lto-section-names.h".
3739 (LTO_SECTION_NAME_PREFIX): Don't define.
3740 * lto-section-names.h: New file.
3741 * cgraphunit.c: Include "lto-section-names.h".
3742
3743 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
3744
3745 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
3746
3747 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
3748
3749 PR target/61208
3750 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
3751
3752 2014-05-22 Nick Clifton <nickc@redhat.com>
3753
3754 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
3755
3756 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
3757
3758 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
3759 -> (T)A transformation to integer types.
3760
3761 2014-05-22 Teresa Johnson <tejohnson@google.com>
3762
3763 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
3764 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
3765 (gcov_rewrite): Use gcov_nonruntime_assert.
3766 (gcov_open): Ditto.
3767 (gcov_write_words): Ditto.
3768 (gcov_write_length): Ditto.
3769 (gcov_read_words): Use gcov_nonruntime_assert, and remove
3770 gcc_assert from IN_LIBGCOV code.
3771 (gcov_read_summary): Use gcov_error to flag profile corruption.
3772 (gcov_sync): Use gcov_nonruntime_assert.
3773 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
3774 (gcov_histo_index): Use gcov_nonruntime_assert.
3775 (static void gcov_histogram_merge): Ditto.
3776 (compute_working_sets): Ditto.
3777 * gcov-io.h (gcov_nonruntime_assert): Define.
3778 (gcov_error): Define for !IN_LIBGCOV
3779
3780 2014-05-22 Richard Biener <rguenther@suse.de>
3781
3782 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3783 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
3784 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
3785 and deallocation site.
3786 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3787 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
3788 passing through the incoming points-to set.
3789 (handle_lhs_call): Use flags argument instead of recomputing it.
3790 (find_func_aliases_for_call): Call handle_lhs_call with proper
3791 call return flags.
3792
3793 2014-05-22 Jakub Jelinek <jakub@redhat.com>
3794
3795 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
3796 all padding bits in REAL_VALUE_TYPE are cleared.
3797
3798 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3799
3800 Cleanup and improve multipass_dfa_lookahead_guard
3801 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
3802 (core2i7_first_cycle_multipass_begin,)
3803 (core2i7_first_cycle_multipass_issue,)
3804 (core2i7_first_cycle_multipass_backtrack): Update signature.
3805 * config/ia64/ia64.c
3806 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
3807 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
3808 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
3809 hook definition.
3810 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
3811 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
3812 values.
3813 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
3814 return values.
3815 * doc/tm.texi: Regenerate.
3816 * doc/tm.texi.in
3817 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
3818 * haifa-sched.c (ready_try): Make signed to allow negative values.
3819 (rebug_ready_list_1): Update.
3820 (choose_ready): Simplify.
3821 (sched_extend_ready_list): Update.
3822
3823 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3824
3825 Remove IA64 speculation tweaking flags
3826 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
3827 speculation tuning flags.
3828 (msched-prefer-non-data-spec-insns,)
3829 (msched-prefer-non-control-spec-insns): Obsolete options.
3830 * haifa-sched.c (choose_ready): Remove handling of
3831 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
3832 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
3833 and PREFER_NON_DATA_SPEC.
3834 * sel-sched.c (process_spec_exprs): Remove handling of
3835 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
3836
3837 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3838
3839 Improve scheduling debug output
3840 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
3841 (advance_one_cycle): Update.
3842 (schedule_insn, queue_to_ready): Add debug printouts.
3843 (debug_ready_list_1): New static function.
3844 (debug_ready_list): Update.
3845 (max_issue): Add debug printouts.
3846 (dump_insn_stream): New static function.
3847 (schedule_block): Use it. Also better indent printouts.
3848
3849 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
3850
3851 Fix sched_insn debug counter
3852 * haifa-sched.c (schedule_insn): Update.
3853 (struct haifa_saved_data): Add nonscheduled_insns_begin.
3854 (save_backtrack_point, restore_backtrack_point): Update.
3855 (first_nonscheduled_insn): New static function.
3856 (queue_to_ready, choose_ready): Use it.
3857 (schedule_block): Init nonscheduled_insns_begin.
3858 (sched_emit_insn): Update.
3859
3860
3861 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
3862
3863 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
3864 to GENERAL_REGS.
3865 (aarch64_secondary_reload) : LikeWise.
3866 (aarch64_class_max_nregs) : Remove CORE_REGS.
3867 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
3868 (REG_CLASS_NAMES) : Likewise.
3869 (REG_CLASS_CONTENTS) : LikeWise.
3870 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
3871
3872 2014-05-21 Guozhi Wei <carrot@google.com>
3873
3874 PR target/61202
3875 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
3876 constraint.
3877 (vqdmulhq_n_s16): Likewise.
3878
3879 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
3880
3881 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
3882
3883 2014-05-21 Marek Polacek <polacek@redhat.com>
3884
3885 PR sanitizer/61272
3886 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
3887
3888 2014-05-21 Martin Jambor <mjambor@suse.cz>
3889
3890 * doc/invoke.texi (Optimize Options): Document parameters
3891 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
3892 ipa-cp-array-index-hint-bonus.
3893
3894 2014-05-21 Mark Wielaard <mjw@redhat.com>
3895
3896 PR debug/16063
3897 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
3898 version >= 3 or not strict DWARF.
3899 * langhooks.h (struct lang_hooks_for_types): Add
3900 enum_underlying_base_type.
3901 * langhooks.c (lhd_enum_underlying_base_type): New function.
3902 * gcc/langhooks.h (struct lang_hooks_for_types): Add
3903 enum_underlying_base_type.
3904 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
3905 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
3906 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
3907
3908 2014-05-21 Richard Biener <rguenther@suse.de>
3909
3910 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
3911
3912 2014-05-21 John Marino <gnugcc@marino.st>
3913
3914 * config.gcc (*-*-dragonfly*): New target.
3915 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
3916 * configure: Regenerate.
3917 * config/dragonfly-stdint.h: New.
3918 * config/dragonfly.h: New.
3919 * config/dragonfly.opt: New.
3920 * config/i386/dragonfly.h: New.
3921 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
3922
3923 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3924
3925 * tree.def (VOID_CST): New.
3926 * tree-core.h (TI_VOID): New.
3927 * tree.h (void_node): New.
3928 * tree.c (tree_node_structure_for_code, tree_code_size)
3929 (iterative_hash_expr): Handle VOID_CST.
3930 (build_common_tree_nodes): Initialize void_node.
3931
3932 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
3933
3934 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
3935 functions.
3936 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
3937
3938 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
3939 more places.
3940
3941 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
3942 flag_reorder_blocks_and_partition.
3943 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
3944
3945 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
3946
3947 PR target/54236
3948 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
3949 constraints.
3950 (*addc_r_t): Add new insn_and_split.
3951
3952 2014-05-21 Jakub Jelinek <jakub@redhat.com>
3953
3954 PR middle-end/61252
3955 * omp-low.c (handle_simd_reference): New function.
3956 (lower_rec_input_clauses): Use it. Defer adding reference
3957 initialization even for reduction without placeholder if in simd,
3958 handle it properly later on.
3959
3960 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
3961
3962 PR tree-optimization/60899
3963 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
3964 assume all static symbols will have definition wile parsing and
3965 check the do have definition later in compilation; check that
3966 variable referring symbol will be output before concluding that
3967 reference is safe; be conservative for referring local statics;
3968 be more precise about when comdat is output in other partition.
3969
3970 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
3971
3972 PR bootstrap/60984
3973 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
3974 parameter.
3975 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
3976 (ipa_inline): Loop inline_to_all_callers until no more aliases
3977 are removed.
3978
3979 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
3980
3981 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
3982 set writeonly flag only for vars actually written to.
3983
3984 2014-05-20 Dehao Chen <dehao@google.com>
3985
3986 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
3987 and callee count to get clone count.
3988 * tree-inline.c (expand_call_inline): Use callee count instead of bb
3989 count in copy_body.
3990
3991 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
3992
3993 PR rtl-optimization/61243
3994 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
3995
3996 2014-05-20 Xinliang David Li <davidxl@google.com>
3997
3998 * cgraphunit.c (walk_polymorphic_call_targets): Add
3999 dbgcnt and fopt-info support.
4000 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
4001 * ipa-devirt.c (ipa_devirt): Ditto.
4002 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
4003 * ipa.c (walk_polymorphic_call_targets): Ditto.
4004 * gimple-fold.c (fold_gimple_assign): Ditto.
4005 (gimple_fold_call): Ditto.
4006 * dbgcnt.def: New counter.
4007
4008 2014-05-20 DJ Delorie <dj@redhat.com>
4009
4010 * config/msp430/msp430.md (split): Don't allow subregs when
4011 splitting SImode adds.
4012 (andneghi): Fix subtraction logic.
4013 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
4014
4015 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
4016
4017 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
4018 symbols.
4019 * except.c (switch_to_exception_section, resolve_unique_section,
4020 get_named_text_section, default_function_rodata_section,
4021 align_variable, get_block_for_decl, default_section_type_flags):
4022 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
4023 * symtab.c (symtab_add_to_same_comdat_group,
4024 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
4025 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
4026 Likewise.
4027 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
4028 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
4029 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
4030 (c6x_function_in_section_p): Likewise.
4031 * config/darwin.c (machopic_select_section): Likewise.
4032 * config/arm/arm.c (arm_function_in_section_p): Likewise.
4033 * config/mips/mips.c (mips_function_rodata_section): Likewise.
4034 * config/mep/mep.c (mep_select_section): LIkewise.
4035 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
4036
4037 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
4038
4039 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
4040 EH region of calls to pure functions that can throw an exception.
4041 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
4042 (copy_reference_ops_from_call): Also copy the EH region of the call if
4043 it can throw an exception.
4044
4045 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4046
4047 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
4048 nested VEC_SELECTs that are inverses of each other.
4049
4050 2014-05-20 Richard Biener <rguenther@suse.de>
4051
4052 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
4053 (extract_and_process_scc_for_name): not here.
4054 (cond_dom_walker::before_dom_children): Only process
4055 stmts that end the BB in interesting ways.
4056 (run_scc_vn): Mark param uses as visited.
4057
4058 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4059
4060 * config/arm/arm.md (arith_shiftsi): Do not predicate for
4061 arm_restrict_it.
4062
4063 2014-05-20 Nick Clifton <nickc@redhat.com>
4064
4065 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
4066 (msp430_gimplify_va_arg_expr): New function.
4067 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
4068
4069 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
4070 operand 0 in order to prevent confusion about the number of
4071 registers involved.
4072
4073 2014-05-20 Richard Biener <rguenther@suse.de>
4074
4075 PR tree-optimization/61221
4076 * tree-ssa-pre.c (el_to_update): Remove.
4077 (eliminate_dom_walker::before_dom_children): Handle released
4078 VDEFs by value-numbering them to the associated VUSE. Update
4079 stmt immediately for substituted call address.
4080 (eliminate): Remove delayed stmt updating code.
4081 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
4082 possibly late re-numbered vuses.
4083 (vn_reference_lookup_2): Adjust.
4084 (vn_reference_lookup_pieces): Likewise.
4085 (vn_reference_lookup): Likewise.
4086
4087 2014-05-20 Richard Biener <rguenther@suse.de>
4088
4089 * config.gcc: Remove need_64bit_hwint.
4090 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
4091 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
4092 it to be true.
4093 * config.in: Regenerate.
4094 * configure: Likewise.
4095
4096 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
4097
4098 * doc/extend.texi: Create Label Attributes section,
4099 move all label attributes into it and reference it.
4100
4101 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
4102
4103 * arm.c (thumb1_reorg): When scanning backwards skip anything
4104 that's not a proper insn.
4105
4106 2014-05-19 Richard Biener <rguenther@suse.de>
4107
4108 PR tree-optimization/61221
4109 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4110 Do nothing for unreachable blocks.
4111 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
4112 Improve unreachability detection.
4113
4114 2014-05-19 Richard Biener <rguenther@suse.de>
4115
4116 PR tree-optimization/61209
4117 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
4118
4119 2014-05-19 Nick Clifton <nickc@redhat.com>
4120
4121 * except.c (init_eh): Fix computation of builtin setjmp buffer
4122 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
4123
4124 2014-05-19 Richard Biener <rguenther@suse.de>
4125
4126 PR tree-optimization/61184
4127 * tree-vrp.c (is_negative_overflow_infinity): Use
4128 TREE_OVERFLOW_P and do that check first.
4129 (is_positive_overflow_infinity): Likewise.
4130 (is_overflow_infinity): Likewise.
4131 (vrp_operand_equal_p): Properly treat operands with
4132 differing overflow as not equal.
4133
4134 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
4135
4136 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
4137 shift simplification where it was intended.
4138
4139 2014-05-19 Christian Bruel <christian.bruel@st.com>
4140
4141 PR target/61195
4142 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
4143
4144 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
4145
4146 PR target/61084
4147 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
4148 than wide_int.
4149
4150 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4151
4152 * reg-notes.def (CROSSING_JUMP): Likewise.
4153 * rtl.h (rtx_def): Update comment for jump flag.
4154 (CROSSING_JUMP_P): Define.
4155 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
4156 of a REG_CROSSING_JUMP note.
4157 * cfghooks.c (tidy_fallthru_edges): Likewise.
4158 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
4159 * emit-rtl.c (try_split): Likewise.
4160 * haifa-sched.c (sched_create_recovery_edges): Likewise.
4161 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
4162 * jump.c (redirect_jump_2): Likewise.
4163 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
4164 (relax_delay_slots): Likewise.
4165 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
4166 (bbit_di): Likewise.
4167 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
4168 * config/sh/sh.md (jump_compact): Likewise.
4169 * bb-reorder.c (rotate_loop): Likewise.
4170 (pass_duplicate_computed_gotos::execute): Likewise.
4171 (add_reg_crossing_jump_notes): Rename to...
4172 (update_crossing_jump_flags): ...this.
4173 (pass_partition_blocks::execute): Update accordingly.
4174
4175 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4176
4177 * tree.h: Remove extraneous template <>.
4178
4179 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4180
4181 * ipa.c (symtab_remove_unreachable_nodes): Remove
4182 symbol from comdat group if its body was eliminated.
4183 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
4184 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
4185 (symtab_unregister_node): ... this one.
4186 (verify_symtab_base): More strict checking of comdats.
4187 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
4188
4189 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4190
4191 * tree-pass.h (make_pass_ipa_comdats): New pass.
4192 * timevar.def (TV_IPA_COMDATS): New timevar.
4193 * passes.def (pass_ipa_comdats): Add.
4194 * Makefile.in (OBJS): Add ipa-comdats.o
4195 * ipa-comdats.c: New file.
4196
4197 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4198
4199 * ipa.c (update_visibility_by_resolution_info): New function.
4200 (function_and_variable_visibility): Use it.
4201
4202 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
4203
4204 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
4205 New functions.
4206 (FOR_EACH_DEFINED_SYMBOL): New macro.
4207 (varpool_first_static_initializer, varpool_next_static_initializer,
4208 varpool_first_defined_variable, varpool_next_defined_variable):
4209 Fix comments.
4210 (symtab_in_same_comdat_p): Correctly deal with inline functions.
4211
4212 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4213
4214 * ggc-page.c (ggc_handle_finalizers): Add comment.
4215
4216 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4217
4218 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
4219 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
4220 (ggc_internal_cleared_alloc): Likewise.
4221 * ggc-page.c (finalizer): New class.
4222 (vec_finalizer): Likewise.
4223 (globals::finalizers): New member.
4224 (globals::vec_finalizers): Likewise.
4225 (ggc_internal_alloc): Record the finalizer if any for the block being
4226 allocated.
4227 (ggc_handle_finalizers): New function.
4228 (ggc_collect): Call ggc_handle_finalizers.
4229 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
4230 finalizer.
4231 (ggc_internal_cleared_alloc): Likewise.
4232 (finalize): New function.
4233 (need_finalization_p): Likewise.
4234 (ggc_alloc): Install the type's destructor as the finalizer if it
4235 might do something.
4236 (ggc_cleared_alloc): Likewise.
4237 (ggc_vec_alloc): Likewise.
4238 (ggc_cleared_vec_alloc): Likewise.
4239
4240 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4241
4242 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
4243
4244 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4245
4246 * alias.c (record_alias_subset): Adjust.
4247 * bitmap.c (bitmap_element_allocate): Likewise.
4248 (bitmap_gc_alloc_stat): Likewise.
4249 * cfg.c (init_flow): Likewise.
4250 (alloc_block): Likewise.
4251 (unchecked_make_edge): Likewise.
4252 * cfgloop.c (alloc_loop): Likewise.
4253 (flow_loops_find): Likewise.
4254 (rescan_loop_exit): Likewise.
4255 * cfgrtl.c (init_rtl_bb_info): Likewise.
4256 * cgraph.c (insert_new_cgraph_node_version): Likewise.
4257 (cgraph_allocate_node): Likewise.
4258 (cgraph_create_edge_1): Likewise.
4259 (cgraph_allocate_init_indirect_info): Likewise.
4260 * cgraphclones.c (cgraph_clone_edge): Likewise.
4261 * cgraphunit.c (add_asm_node): Likewise.
4262 (init_lowered_empty_function): Likewise.
4263 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
4264 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4265 (alpha_use_linkage): Likewise.
4266 * config/arc/arc.c (arc_init_machine_status): Likewise.
4267 * config/arm/arm.c (arm_init_machine_status): Likewise.
4268 * config/avr/avr.c (avr_init_machine_status): Likewise.
4269 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4270 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
4271 * config/cris/cris.c (cris_init_machine_status): Likewise.
4272 * config/darwin.c (machopic_indirection_name): Likewise.
4273 (darwin_build_constant_cfstring): Likewise.
4274 (darwin_enter_string_into_cfstring_table): Likewise.
4275 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
4276 * config/frv/frv.c (frv_init_machine_status): Likewise.
4277 * config/i386/i386.c (get_dllimport_decl): Likewise.
4278 (ix86_init_machine_status): Likewise.
4279 (assign_386_stack_local): Likewise.
4280 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4281 (i386_pe_maybe_record_exported_symbol): Likewise.
4282 (i386_pe_record_stub): Likewise.
4283 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4284 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4285 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4286 (m32c_note_pragma_address): Likewise.
4287 * config/mep/mep.c (mep_init_machine_status): Likewise.
4288 (mep_note_pragma_flag): Likewise.
4289 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4290 (mips16_local_alias): Likewise.
4291 (mips_init_machine_status): Likewise.
4292 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4293 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4294 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
4295 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
4296 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
4297 * config/pa/pa.c (pa_init_machine_status): Likewise.
4298 (pa_get_deferred_plabel): Likewise.
4299 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
4300 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4301 (rs6000_init_machine_status): Likewise.
4302 (output_toc): Likewise.
4303 * config/s390/s390.c (s390_init_machine_status): Likewise.
4304 * config/score/score.c (score_output_external): Likewise.
4305 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4306 * config/spu/spu.c (spu_init_machine_status): Likewise.
4307 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
4308 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
4309 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4310 * coverage.c (coverage_end_function): Likewise.
4311 * dbxout.c (dbxout_init): Likewise.
4312 * doc/gty.texi: Don't mention variable_size attribute.
4313 * dwarf2cfi.c (new_cfi): Adjust.
4314 (new_cfi_row): Likewise.
4315 (copy_cfi_row): Likewise.
4316 (create_cie_data): Likewise.
4317 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
4318 (new_loc_descr): Likewise.
4319 (find_AT_string_in_table): Likewise.
4320 (add_addr_table_entry): Likewise.
4321 (new_die): Likewise.
4322 (add_var_loc_to_decl): Likewise.
4323 (clone_die): Likewise.
4324 (clone_as_declaration): Likewise.
4325 (break_out_comdat_types): Likewise.
4326 (new_loc_list): Likewise.
4327 (add_loc_descr_to_each): Likewise.
4328 (add_location_or_const_value_attribute): Likewise.
4329 (add_linkage_name): Likewise.
4330 (lookup_filename): Likewise.
4331 (dwarf2out_var_location): Likewise.
4332 (new_line_info_table): Likewise.
4333 (dwarf2out_init): Likewise.
4334 (mem_loc_descriptor): Likewise.
4335 (loc_descriptor): Likewise.
4336 (add_const_value_attribute): Likewise.
4337 (tree_add_const_value_attribute): Likewise.
4338 (comp_dir_string): Likewise.
4339 (dwarf2out_vms_debug_main_pointer): Likewise.
4340 (string_cst_pool_decl): Likewise.
4341 * emit-rtl.c (set_mem_attrs): Likewise.
4342 (get_reg_attrs): Likewise.
4343 (start_sequence): Likewise.
4344 (init_emit): Likewise.
4345 (init_emit_regs): Likewise.
4346 * except.c (init_eh_for_function): Likewise.
4347 (gen_eh_region): Likewise.
4348 (gen_eh_region_catch): Likewise.
4349 (gen_eh_landing_pad): Likewise.
4350 (add_call_site): Likewise.
4351 * function.c (add_frame_space): Likewise.
4352 (insert_temp_slot_address): Likewise.
4353 (assign_stack_temp_for_type): Likewise.
4354 (get_hard_reg_initial_val): Likewise.
4355 (allocate_struct_function): Likewise.
4356 (prepare_function_start): Likewise.
4357 (types_used_by_var_decl_insert): Likewise.
4358 * gengtype.c (variable_size_p): Remove function.
4359 (enum alloc_quantity): Remove enum.
4360 (write_typed_alloc_def): Remove function.
4361 (write_typed_struct_alloc_def): Likewise.
4362 (write_typed_typedef_alloc_def): Likewise.
4363 (write_typed_alloc_defns): Likewise.
4364 (main): Adjust.
4365 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
4366 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
4367 * ggc.h (ggc_alloc): new function.
4368 (ggc_cleared_alloc): Likewise.
4369 (ggc_vec_alloc): Template on type of vector element, and remove
4370 element size argument.
4371 (ggc_cleared_vec_alloc): Likewise.
4372 * gimple.c (gimple_build_omp_for): Adjust.
4373 (gimple_copy): Likewise.
4374 * ipa-cp.c (get_replacement_map): Likewise.
4375 (find_aggregate_values_for_callers_subset): Likewise.
4376 (known_aggs_to_agg_replacement_list): Likewise.
4377 * ipa-devirt.c (get_odr_type): Likewise.
4378 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
4379 (read_agg_replacement_chain): Likewise.
4380 * loop-iv.c (get_simple_loop_desc): Likewise.
4381 * lto-cgraph.c (input_node_opt_summary): Likewise.
4382 * lto-section-in.c (lto_new_in_decl_state): Likewise.
4383 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4384 (input_eh_region): Likewise.
4385 (input_eh_lp): Likewise.
4386 (input_cfg): Likewise.
4387 * optabs.c (set_optab_libfunc): Likewise.
4388 (init_tree_optimization_optabs): Likewise.
4389 (set_conv_libfunc): Likewise.
4390 * passes.c (do_per_function_toporder): Likewise.
4391 * rtl.h: Don't use variable_size gty attribute.
4392 * sese.c (if_region_set_false_region): Adjust.
4393 * stringpool.c (gt_pch_save_stringpool): Likewise.
4394 * target-globals.c (save_target_globals): Likewise.
4395 * toplev.c (general_init): Likewise.
4396 * trans-mem.c (record_tm_replacement): Likewise.
4397 (split_bb_make_tm_edge): Likewise.
4398 * tree-cfg.c (move_sese_region_to_fn): Likewise.
4399 * tree-data-ref.h (lambda_vector_new): Likewise.
4400 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4401 * tree-iterator.c (tsi_link_before): Likewise.
4402 (tsi_link_after): Likewise.
4403 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4404 * tree-ssa-loop-niter.c (record_estimate): Likewise.
4405 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4406 * tree-ssa-operands.h: Don't use variable_size gty attribute.
4407 * tree-ssa.c (init_tree_ssa): Adjust.
4408 * tree-ssanames.c (set_range_info): Likewise.
4409 (get_ptr_info): Likewise.
4410 (duplicate_ssa_name_ptr_info): Likewise.
4411 (duplicate_ssa_name_range_info): Likewise.
4412 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
4413 (unpack_ts_fixed_cst_value_fields): Likewise.
4414 * tree.c (build_fixed): Likewise.
4415 (build_real): Likewise.
4416 (build_string): Likewise.
4417 (decl_priority_info): Likewise.
4418 (decl_debug_expr_insert): Likewise.
4419 (decl_value_expr_insert): Likewise.
4420 (decl_debug_args_insert): Likewise.
4421 (type_hash_add): Likewise.
4422 (build_omp_clause): Likewise.
4423 * ubsan.c (decl_for_type_insert): Likewise.
4424 * varasm.c (get_unnamed_section): Likewise.
4425 (get_noswitch_section): Likewise.
4426 (get_section): Likewise.
4427 (get_block_for_section): Likewise.
4428 (create_block_symbol): Likewise.
4429 (build_constant_desc): Likewise.
4430 (create_constant_pool): Likewise.
4431 (force_const_mem): Likewise.
4432 (record_tm_clone_pair): Likewise.
4433 * varpool.c (varpool_create_empty_node): Likewise.
4434
4435 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
4436
4437 * dwarf2out.c (tree_add_const_value_attribute): Call
4438 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
4439 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
4440 instead of ggc_internal_<x>alloc_stat.
4441 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
4442 (ggc_realloc): Likewise.
4443 * ggc-none.c (ggc_internal_alloc): Likewise.
4444 (ggc_internal_cleared_alloc): Likewise.
4445 * ggc-page.c: Likewise.
4446 * ggc.h (ggc_internal_alloc_stat): Likewise.
4447 (ggc_internal_alloc): Remove macro.
4448 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
4449 (ggc_internal_cleared_alloc): Remove macro.
4450 (GGC_RESIZEVEC): Adjust.
4451 (ggc_resizevar): Remove macro.
4452 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
4453 (ggc_internal_cleared_vec_alloc_stat): Likewise.
4454 (ggc_internal_vec_cleared_alloc): Remove macro.
4455 (ggc_alloc_atomic_stat): Drop _stat suffix.
4456 (ggc_alloc_atomic): Remove macro.
4457 (ggc_alloc_cleared_atomic): Remove macro.
4458 (ggc_alloc_string_stat): Drop _stat suffix.
4459 (ggc_alloc_string): Remove macro.
4460 (ggc_alloc_rtx_def_stat): Adjust.
4461 (ggc_alloc_tree_node_stat): Likewise.
4462 (ggc_alloc_cleared_tree_node_stat): Likewise.
4463 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
4464 (ggc_alloc_cleared_simd_clone_stat): Likewise.
4465 * gimple.c (gimple_build_omp_for): Likewise.
4466 (gimple_copy): Likewise.
4467 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
4468 * toplev.c (realloc_for_line_map): Adjust.
4469 * tree-data-ref.h (lambda_vector_new): Likewise.
4470 * tree-phinodes.c (allocate_phi_node): Likewise.
4471 * tree.c (grow_tree_vec_stat): Likewise.
4472 * vec.h (va_gc::reserve): Adjust.
4473
4474 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
4475
4476 * config/microblaze/microblaze.c (break_handler): New Declaration.
4477 (microblaze_break_function_p,microblaze_is_break_handler): New.
4478 (compute_frame_size): Use microblaze_break_function_p.
4479 Add the test of break_handler.
4480 (microblaze_function_prologue) : Add the test of variable
4481 break_handler. Check the fnname by BREAK_HANDLER_NAME.
4482 (microblaze_function_epilogue) : Add the test of break_handler.
4483 (microblaze_globalize_label) : Add the test of break_handler.
4484 Check the name by BREAK_HANDLER_NAME.
4485
4486 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
4487
4488 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
4489 microblaze_is_break_handler test.
4490 (call_internal1,call_value_intern): Use microblaze_break_function_p.
4491 Use SYMBOL_REF_DECL.
4492
4493 * config/microblaze/microblaze-protos.h
4494 (microblaze_break_function_p,microblaze_is_break_handler):
4495 New Declaration.
4496
4497 * doc/extend.texi (MicroBlaze break_handler Functions): Document
4498 new MicroBlaze break_handler functions.
4499
4500 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
4501
4502 * doc/extend.texi (Size of an asm): Move node text according
4503 to its @menu entry position.
4504
4505 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
4506
4507 PR tree-optimization/61140
4508 PR tree-optimization/61150
4509 PR tree-optimization/61197
4510 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
4511
4512 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
4513
4514 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
4515
4516 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
4517
4518 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
4519 __SIZEOF_INT128__ is defined.
4520
4521 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4522
4523 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
4524 (rs6000_delegitimize_address): Use it.
4525
4526 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
4527
4528 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
4529 inplace argument. Store the new address in the original MEM when true.
4530 * emit-rtl.c (change_address_1): Likewise.
4531 (adjust_address_1, adjust_automodify_address_1, offset_address):
4532 Update accordingly.
4533 * rtl.h (plus_constant): Add an inplace argument.
4534 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
4535 when true. Avoid generating (plus X (const_int 0)).
4536 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
4537 in-place. Pass true to plus_constant.
4538 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
4539
4540 2014-05-16 Dehao Chen <dehao@google.com>
4541
4542 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
4543
4544 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
4545
4546 PR target/54089
4547 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
4548 patterns.
4549 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
4550
4551 2014-05-16 Dehao Chen <dehao@google.com>
4552
4553 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
4554 optimize_function_for_size_p.
4555 * regs.h (REG_FREQ_FROM_BB): Likewise.
4556
4557 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
4558
4559 PR target/51244
4560 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
4561 negt_reg_operand cases.
4562 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
4563 predicate.
4564 * config/sh/predicates.md (cbranch_treg_value): Simplify.
4565
4566 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
4567
4568 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
4569 target variants.
4570
4571 2014-05-16 David Malcolm <dmalcolm@redhat.com>
4572
4573 Revert:
4574 2014-04-29 David Malcolm <dmalcolm@redhat.com>
4575
4576 * tree-cfg.c (dump_function_to_file): Dump the return type of
4577 functions, in a line to itself before the function body, mimicking
4578 the layout of a C function.
4579
4580 2014-05-16 Dehao Chen <dehao@google.com>
4581
4582 * cfghooks.c (make_forwarder_block): Use direct computation to
4583 get fall-through edge's count and frequency.
4584
4585 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
4586
4587 * config/arc/arc.c (arc_init): Fix typo in error message.
4588 * config/i386/i386.c (ix86_expand_builtin): Likewise.
4589 (split_stack_prologue_scratch_regno): Likewise.
4590 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
4591 word from error message.
4592
4593 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
4594
4595 * ira-costs.c: Fix typo in comment.
4596
4597 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
4598
4599 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
4600
4601 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
4602
4603 * varpool.c (dump_varpool_node): Dump write-only flag.
4604 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
4605 write-only flag.
4606 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
4607 write-only variables.
4608 * ipa.c (process_references): New function.
4609 (set_readonly_bit): New function.
4610 (set_writeonly_bit): New function.
4611 (clear_addressable_bit): New function.
4612 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
4613 fix handling of aliases.
4614 * cgraph.h (struct varpool_node): Add writeonly flag.
4615
4616 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
4617
4618 PR rtl-optimization/60969
4619 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
4620 Calculate costs for this case.
4621
4622 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
4623
4624 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
4625 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
4626
4627 2014-05-16 Richard Biener <rguenther@suse.de>
4628
4629 PR tree-optimization/61194
4630 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
4631 bool patterns ending in a COND_EXPR.
4632
4633 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4634
4635 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
4636
4637 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4638
4639 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
4640 where we were unable to cost an RTX.
4641
4642 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4643
4644 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
4645 HIGH, LO_SUM.
4646
4647 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4648 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4649
4650 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
4651
4652 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4653 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4654
4655 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
4656 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
4657
4658 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4659 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4660
4661 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
4662 operators.
4663
4664 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4665 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4666
4667 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
4668 DIV/MOD.
4669
4670 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4671 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4672
4673 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
4674 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
4675
4676 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4677 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4678
4679 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
4680 rotates and shifts.
4681
4682 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4683 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4684
4685 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
4686 ZERO_EXTEND and SIGN_EXTEND better.
4687
4688 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4689 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4690
4691 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
4692 logical operations.
4693
4694 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4695 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4696
4697 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
4698 costs when costing loads and stores to memory.
4699
4700 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4701 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
4702
4703 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
4704 for SET RTX.
4705
4706 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4707
4708 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
4709
4710 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4711 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4712
4713 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
4714 to...
4715 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
4716 well formed.
4717 (aarch64_rtx_mult_cost): New.
4718 (aarch64_rtx_costs): Use it, refactor as appropriate.
4719
4720 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4721 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
4722
4723 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
4724 emit instructions, return number of instructions which would
4725 be emitted.
4726 (aarch64_add_constant): Update call to aarch64_build_constant.
4727 (aarch64_output_mi_thunk): Likewise.
4728 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
4729 a CONST_DOUBLE.
4730
4731 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4732
4733 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
4734 (TARGET_RTX_COSTS): Call it.
4735
4736 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4737
4738 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
4739 (cortexa57_vector_cost): Likewise.
4740 (cortexa57_tunings): Use them.
4741
4742 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
4743
4744 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
4745 (cpu_addrcost_table): Use it.
4746 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
4747 (aarch64_address_cost): Rewrite using aarch64_classify_address,
4748 move it.
4749
4750 2014-05-16 Richard Biener <rguenther@suse.de>
4751
4752 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
4753 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
4754 (visit_phi): Ignore edges marked as not executable.
4755 (class cond_dom_walker): New.
4756 (cond_dom_walker::before_dom_children): Value-number
4757 control statements and mark successor edges as not
4758 executable if possible.
4759 (run_scc_vn): First walk all control statements in
4760 dominator order, marking edges as not executable.
4761 * tree-inline.c (copy_edges_for_bb): Be not confused
4762 about random edge flags.
4763
4764 2014-05-16 Richard Biener <rguenther@suse.de>
4765
4766 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
4767
4768 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
4769
4770 PR target/61193
4771 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
4772 (__TM_simple_begin): Use it.
4773 (__TM_begin): Likewise.
4774
4775 2014-05-15 Martin Jambor <mjambor@suse.cz>
4776
4777 PR ipa/61085
4778 * ipa-prop.c (update_indirect_edges_after_inlining): Check
4779 type_preserved flag when the indirect edge is polymorphic.
4780
4781 2014-05-15 Martin Jambor <mjambor@suse.cz>
4782
4783 PR tree-optimization/61090
4784 * tree-sra.c (sra_modify_expr): Pass the current gsi to
4785 build_ref_for_model.
4786
4787 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4788
4789 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
4790 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
4791
4792 2014-05-15 Jakub Jelinek <jakub@redhat.com>
4793
4794 PR tree-optimization/61158
4795 * fold-const.c (fold_binary_loc): If X is zero-extended and
4796 shiftc >= prec, make sure zerobits is all ones instead of
4797 invoking undefined behavior.
4798
4799 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4800
4801 * regcprop.h: New file.
4802 * regcprop.c (skip_debug_insn_p): New decl.
4803 (replace_oldest_value_reg): Check skip_debug_insn_p.
4804 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
4805 * shrink-wrap.c: Include regcprop.h.
4806 (prepare_shrink_wrap): Call
4807 copyprop_hardreg_forward_bb_without_debug_insn.
4808
4809 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4810
4811 * shrink-wrap.h: Update comment.
4812 * shrink-wrap.c: Update comment.
4813 (next_block_for_reg): Rename to live_edge_for_reg.
4814 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
4815 (move_insn_for_shrink_wrap): Split live_edge.
4816 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
4817
4818 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
4819
4820 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
4821 Delete.
4822 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
4823 * config/sparc/sparc.md (fptype_ut699): New attribute.
4824 (in_branch_delay): Return false if -mfix-ut699 is specified and
4825 fptype_ut699 is set to single.
4826 (truncdfsf2): Add fptype_ut699 attribute.
4827 (fix_truncdfsi2): Likewise.
4828 (floatsisf2): Change fptype attribute.
4829 (fix_truncsfsi2): Likewise.
4830 (negtf2_notv9): Delete.
4831 (negtf2_v9): Likewise.
4832 (negtf2_hq): New instruction.
4833 (negtf2): New instruction and splitter.
4834 (negdf2_notv9): Rewrite.
4835 (abstf2_notv9): Delete.
4836 (abstf2_hq_v9): Likewise.
4837 (abstf2_v9): Likewise.
4838 (abstf2_hq): New instruction.
4839 (abstf2): New instruction and splitter.
4840 (absdf2_notv9): Rewrite.
4841
4842 2014-05-14 Cary Coutant <ccoutant@google.com>
4843
4844 PR debug/61013
4845 * opts.c (common_handle_option): Don't special-case "-g".
4846 (set_debug_level): Default to at least level 2 with "-g".
4847
4848 2014-05-14 DJ Delorie <dj@redhat.com>
4849
4850 * config/msp430/msp430.c (msp430_builtin): Add
4851 MSP430_BUILTIN_DELAY_CYCLES.
4852 (msp430_init_builtins): Register void __delay_cycles(long long).
4853 (msp430_builtin_decl): Add it.
4854 (cg_magic_constant): New.
4855 (msp430_expand_delay_cycles): New.
4856 (msp430_expand_builtin): Call it.
4857 (msp430_print_operand_raw): Change integer printing from "int" to
4858 HOST_WIDE_INT.
4859 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
4860 (delay_cycles_start): New.
4861 (delay_cycles_end): New.
4862 (delay_cycles_32): New.
4863 (delay_cycles_32x): New.
4864 (delay_cycles_16): New.
4865 (delay_cycles_16x): New.
4866 (delay_cycles_2): New.
4867 (delay_cycles_1): New.
4868 * doc/extend.texi: Document __delay_cycles().
4869
4870 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
4871
4872 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
4873 length attribute computation.
4874
4875 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
4876
4877 PR debug/61188
4878 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
4879
4880 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
4881
4882 PR target/61084
4883 * config/sparc/sparc.md: Fix types of low and high in DI constant
4884 splitter. Use gen_int_mode in some other splitters.
4885
4886 2014-05-14 Martin Jambor <mjambor@suse.cz>
4887
4888 PR ipa/60897
4889 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
4890
4891 2014-05-14 James Norris <jnorris@codesourcery.com>
4892
4893 * omp-low.c (expand_parallel_call): Remove shadow variable.
4894 (expand_omp_taskreg): Likewise.
4895
4896 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
4897
4898 * common/config/i386/i386-common.c
4899 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
4900 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
4901 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
4902 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
4903 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
4904 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
4905 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
4906 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
4907 xsavecintrin.h, xsavesintrin.h.
4908 (x86_64-*-*): Ditto.
4909 * config/i386/clflushoptintrin.h: New.
4910 * config/i386/xsavecintrin.h: Ditto.
4911 * config/i386/xsavesintrin.h: Ditto.
4912 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
4913 (bit_XSAVES): Ditto.
4914 (bit_XSAVES): Ditto.
4915 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
4916 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
4917 -mno-clflushopt.
4918 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4919 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
4920 OPTION_MASK_ISA_XSAVES.
4921 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
4922 -mxsavec, -mxsaves.
4923 (PTA_CLFLUSHOPT) Define.
4924 (PTA_XSAVEC): Ditto.
4925 (PTA_XSAVES): Ditto.
4926 (ix86_option_override_internal): Handle new options.
4927 (ix86_valid_target_attribute_inner_p): Ditto.
4928 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
4929 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
4930 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
4931 (bdesc_special_args): Add __builtin_ia32_xsaves,
4932 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
4933 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
4934 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
4935 (ix86_expand_builtin): Handle new builtins.
4936 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
4937 (TARGET_CLFLUSHOPT_P): Ditto.
4938 (TARGET_XSAVEC): Ditto.
4939 (TARGET_XSAVEC_P): Ditto.
4940 (TARGET_XSAVES): Ditto.
4941 (TARGET_XSAVES_P): Ditto.
4942 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
4943 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
4944 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
4945 (ANY_XRSTOR): New.
4946 (ANY_XRSTOR64): Ditto.
4947 (xrstor): Ditto.
4948 (xrstor): Change into <xrstor>.
4949 (xrstor_rex64): Change into <xrstor>_rex64.
4950 (xrstor64): Change into <xrstor>64
4951 (clflushopt): New.
4952 * config/i386/i386.opt (mclflushopt): New.
4953 (mxsavec): Ditto.
4954 (mxsaves): Ditto.
4955 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
4956 xsavecintrin.h.
4957 * doc/invoke.texi: Document new options.
4958
4959 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
4960
4961 PR rtl-optimization/60866
4962 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
4963 Default it to -1. Pass it down to init_simplejump_data.
4964 (init_simplejump_data): New parameter old_seqno. Pass it down
4965 to get_seqno_for_a_jump.
4966 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
4967 initializing new jump seqno as a last resort. Add comment.
4968 (sel_redirect_edge_and_branch): Save old seqno of the conditional
4969 jump and pass it down to sel_init_new_insn.
4970 (sel_redirect_edge_and_branch_force): Likewise.
4971
4972 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
4973
4974 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
4975 shifted values to avoid build warning.
4976
4977 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
4978
4979 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
4980 * cfgrtl.c (rtl_merge_blocks): Fix comment.
4981 (cfg_layout_merge_blocks): Likewise.
4982 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
4983
4984 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
4985
4986 PR rtl-optimization/60901
4987 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
4988 bb predecessor belongs to the same scheduling region. Adjust comment.
4989
4990 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
4991
4992 * doc/sourcebuild.texi: (dfp_hw): Document.
4993 (p8vector_hw): Likewise.
4994 (powerpc_eabi_ok): Likewise.
4995 (powerpc_elfv2): Likewise.
4996 (powerpc_htm_ok): Likewise.
4997 (ppc_recip_hw): Likewise.
4998 (vsx_hw): Likewise.
4999
5000 2014-05-13 Cary Coutant <ccoutant@google.com>
5001
5002 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
5003
5004 2014-05-13 David Malcolm <dmalcolm@redhat.com>
5005
5006 * gengtype-parse.c (require3): Eliminate in favor of...
5007 (require4): New.
5008 (require_template_declaration): Update to support optional single *
5009 on a type.
5010
5011 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
5012 (create_user_defined_type): Handle a single level of explicit
5013 pointerness within template arguments.
5014 (struct write_types_data): Add field "kind".
5015 (filter_type_name): Handle "*" character.
5016 (write_user_func_for_structure_ptr): Require a write_types_data
5017 rather than just a prefix string, so that we can look up the kind
5018 of the wtd and use it as an index into wrote_user_func_for_ptr,
5019 ensuring that such functions are written at most once. Support
5020 subclasses by invoking the marking function of the ultimate base class.
5021 (write_user_func_for_structure_body): Require a write_types_data
5022 rather than just a prefix string, so that we can pass this to
5023 write_user_func_for_structure_ptr.
5024 (write_func_for_structure): Likewise.
5025 (ggc_wtd): Add initializer of new "kind" field.
5026 (pch_wtd): Likewise.
5027
5028 * gengtype.h (enum write_types_kinds): New.
5029 (struct type): Add field wrote_user_func_for_ptr to the "s"
5030 union member.
5031
5032 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5033
5034 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
5035 instead of const_binop.
5036 (fold_binary_loc): Likewise.
5037
5038 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
5039
5040 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
5041 calculation to match get_ref_base_and_extent.
5042
5043 2014-05-13 Catherine Moore <clm@codesourcery.com>
5044 Sandra Loosemore <sandra@codesourcery.com>
5045
5046 * configure.ac: Fix assembly for explicit JALR relocation check.
5047 * configure: Regenerate.
5048
5049 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5050
5051 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
5052 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
5053 Remove associated type declarations and initialisations.
5054 (arm_expand_neon_builtin): Likewise.
5055 (neon_emit_pair_result_insn): Delete.
5056 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
5057 * config/arm/neon.md (neon_vtrn<mode>): Delete.
5058 (neon_vzip<mode>): Likewise.
5059 (neon_vuzp<mode>): Likewise.
5060
5061 2014-05-13 Richard Biener <rguenther@suse.de>
5062
5063 PR ipa/60973
5064 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
5065 it needs revisiting whether the call still may be tail-called.
5066
5067 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5068
5069 * rtl.def (SYMBOL_REF): Remove middle "0" field.
5070 * rtl.h (block_symbol): Reduce number of fields to 2.
5071 (rtx_def): Add u2.symbol_ref_flags.
5072 (SYMBOL_REF_FLAGS): Use it.
5073 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
5074 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
5075 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
5076 Lower index of SYMBOL_REF_DATA.
5077 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
5078 Print SYMBOL_REF_FLAGS at the same time.
5079 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
5080
5081 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5082
5083 * rtl.def (VAR_LOCATION): Remove "i" field.
5084 * rtl.h (rtx_def): Add u2.var_location_status.
5085 (PAT_VAR_LOCATION_STATUS): Use it.
5086 (gen_rtx_VAR_LOCATION): Declare.
5087 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
5088 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
5089 * var-tracking.c (emit_note_insn_var_location): Remove casts.
5090
5091 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5092
5093 * rtl.def (scratch): Fix outdated comment and remove "0" field.
5094 * gengtype.c (adjust_field_rtx_def): Update accordingly.
5095
5096 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5097
5098 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
5099 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
5100 * rtl.h (rtx_def): Add insn_uid to u2 field.
5101 (RTX_FLAG_CHECK8): Delete in favor of...
5102 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
5103 (INSN_DELETED_P): Update accordingly.
5104 (INSN_UID): Use u2.insn_uid.
5105 (INSN_CHAIN_CODE_P): Define.
5106 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
5107 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
5108 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
5109 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
5110 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
5111 indices accordingly.
5112 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
5113 Update indices for insn-chain rtxes.
5114 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
5115 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
5116 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
5117 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
5118 * combine.c (try_combine): Likewise.
5119 * ira.c (setup_prohibited_mode_move_regs): Likewise.
5120
5121 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5122
5123 * rtl.def (REG): Remove middle field.
5124 * rtl.h (rtx_def): Add orignal_regno to u2.
5125 (ORIGINAL_REGNO): Use it instead of field 1.
5126 (REG_ATTRS): Lower field index accordingly.
5127 * gengtype.c (adjust_field_rtx_def): Remove handling of
5128 ORIGINAL_REGNO. Move REG_ATTRS index down.
5129 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
5130 code that prints the REGNO.
5131
5132 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5133
5134 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
5135 GENERATOR_FILE.
5136
5137 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
5138
5139 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
5140
5141 2014-05-13 Bin Cheng <bin.cheng@arm.com>
5142
5143 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
5144 (alloc_iv): Lower base expressions containing ADDR_EXPR.
5145
5146 2014-05-13 Ian Bolton <ian.bolton@arm.com>
5147
5148 * config/aarch64/aarch64-protos.h
5149 (aarch64_hard_regno_caller_save_mode): New prototype.
5150 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
5151 New function.
5152 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
5153
5154 2014-05-13 Christian Bruel <christian.bruel@st.com>
5155
5156 * target.def (mode_switching): New hook vector.
5157 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
5158 (mode_exit, modepriority_to_mode): Likewise.
5159 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
5160 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5161 * target.h: Include tm.h and hard-reg-set.h.
5162 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
5163 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
5164 * doc/tm.texi Regenerate.
5165 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
5166 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5167 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
5168 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
5169 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
5170 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5171 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
5172 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
5173 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
5174 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
5175 (ix86_emit_mode_set): Hookify.
5176 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
5177 Delete.
5178 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
5179 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
5180 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
5181 (epiphany_mode_priority_to_mode): Remove declaration.
5182 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
5183 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
5184 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
5185 Likewise.
5186 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
5187 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
5188 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
5189
5190 2014-05-13 Jakub Jelinek <jakub@redhat.com>
5191
5192 PR target/61060
5193 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
5194 is const0_rtx, return immediately. Don't test count == 0 when
5195 it is always true.
5196
5197 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5198
5199 * Makefile.in: add shrink-wrap.o.
5200 * config/i386/i386.c: include "shrink-wrap.h"
5201 * function.c: Likewise.
5202 (requires_stack_frame_p, next_block_for_reg,
5203 move_insn_for_shrink_wrap, prepare_shrink_wrap,
5204 dup_block_and_redirect): Move to shrink-wrap.c
5205 (thread_prologue_and_epilogue_insns): Extract three code segments
5206 as functions in shrink-wrap.c
5207 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
5208 shrink-wrap.h
5209 * shrink-wrap.c: New file.
5210 * shrink-wrap.h: New file.
5211
5212 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
5213
5214 * doc/extend.texi: Reflect current numbers of pragmas. Remove
5215 reference to Solaris.
5216
5217 2014-05-12 Mike Stump <mikestump@comcast.net>
5218
5219 PR other/31778
5220 * genattrtab.c (filename): Add.
5221 (convert_set_attr_alternative): Improve error message.
5222 (check_defs): Restore read_md_filename for error messages.
5223 (gen_insn): Save filename.
5224
5225 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
5226
5227 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
5228 -fno-local-ivars and -fivar-visibility.
5229 * c-family/c.opt: Make -Wshadow also implicitly enable
5230 -Wshadow-ivar.
5231
5232 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
5233
5234 * doc/tm.texi: Remove reference to deleted macro.
5235 * doc/tm.texi.in: Likewise.
5236
5237 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5238
5239 PR target/60991
5240 * config/avr/avr.c (avr_out_store_psi): Use correct constant
5241 to restore Y.
5242
5243 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
5244
5245 PR libgcc/61152
5246 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
5247 * config/arm/aout.h (License): Same.
5248 * config/arm/bpabi.h (License): Same.
5249 * config/arm/elf.h (License): Same.
5250 * config/arm/linux-elf.h (License): Same.
5251 * config/arm/linux-gas.h (License): Same.
5252 * config/arm/netbsd-elf.h (License): Same.
5253 * config/arm/uclinux-eabi.h (License): Same.
5254 * config/arm/uclinux-elf.h (License): Same.
5255 * config/arm/vxworks.h (License): Same.
5256
5257 2014-05-11 Jakub Jelinek <jakub@redhat.com>
5258
5259 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
5260 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
5261 number of operands to 3.
5262 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
5263 * tree-nested.c (convert_nonlocal_omp_clauses,
5264 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
5265 * gimplify.c (gimplify_scan_omp_clauses): Handle
5266 OMP_CLAUSE_LINEAR_STMT.
5267 * omp-low.c (lower_rec_input_clauses): Fix typo.
5268 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
5269 cast between Fortran boolean_type_node and C _Bool if
5270 needed.
5271
5272 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
5273
5274 PR tree-optimization/61136
5275 * wide-int.h (multiple_of_p): Define a version that doesn't return
5276 the quotient.
5277 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
5278 integer_zerop/const_binop pair.
5279 (multiple_of_p): Likewise, converting both operands to widest_int
5280 precision.
5281
5282 2014-05-09 Teresa Johnson <tejohnson@google.com>
5283
5284 * cgraphunit.c (analyze_functions): Use correct dump file.
5285
5286 2014-05-09 Florian Weimer <fweimer@redhat.com>
5287
5288 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
5289 expand_used_vars.
5290 (stack_protect_return_slot_p): New function.
5291 (expand_used_vars): Call stack_protect_decl_p and
5292 stack_protect_return_slot_p for -fstack-protector-strong.
5293
5294 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
5295 Andrew Haley <aph@redhat.com>
5296 Richard Sandiford <rdsandiford@googlemail.com>
5297
5298 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
5299 pages.
5300
5301 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
5302
5303 PR middle-end/61111
5304 * fold-const.c (fold_binary_loc): Changed width of mask.
5305
5306 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
5307
5308 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
5309 unsigned int initializers for regno_in, regno_out.
5310
5311 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
5312
5313 PR target/61055
5314 * config/avr/avr.md (cc): Add new attribute set_vzn.
5315 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
5316 Set cc insn attribute to set_vzn instead of set_zn for alternatives
5317 with INC, DEC or NEG.
5318 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
5319 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
5320 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
5321
5322 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5323
5324 Revert:
5325 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5326
5327 * wide-int.cc (UTItype): Define.
5328 (UDWtype): Define for appropriate W_TYPE_SIZE.
5329
5330 2014-05-09 Richard Biener <rguenther@suse.de>
5331
5332 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
5333 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
5334 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
5335 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
5336 ssa_propagate): Adjust.
5337
5338 2014-05-08 Jeff Law <law@redhat.com>
5339
5340 PR tree-optimization/61009
5341 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
5342 tri-state rather than a boolean. When a block is too big to
5343 thread through, inform caller via negative return value.
5344 (thread_across_edge): If a block was too big for normal threading,
5345 then it's too big for a joiner too, so remove temporary equivalences
5346 and return immediately.
5347
5348 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5349 Matthias Klose <doko@ubuntu.com>
5350
5351 PR driver/61106
5352 * optc-gen.awk: Fix option handling for -Wunused-parameter.
5353
5354 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
5355
5356 PR target/59952
5357 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
5358
5359 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
5360
5361 PR target/61092
5362 * config/alpha/alpha.c: Include gimple-iterator.h.
5363 (alpha_gimple_fold_builtin): New function. Move
5364 ALPHA_BUILTIN_UMULH folding from ...
5365 (alpha_fold_builtin): ... here.
5366 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
5367
5368 2014-05-08 Wei Mi <wmi@google.com>
5369
5370 PR target/58066
5371 * config/i386/i386.c (ix86_compute_frame_layout): Update
5372 preferred_stack_boundary for call, expanded from tls descriptor.
5373 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
5374 to depend on SP register.
5375 (*tls_local_dynamic_base_32_gnu): Ditto.
5376 (*tls_local_dynamic_32_once): Ditto.
5377 (tls_global_dynamic_64_<mode>): Set
5378 ix86_tls_descriptor_calls_expanded_in_cfun.
5379 (tls_local_dynamic_base_64_<mode>): Ditto.
5380 (tls_global_dynamic_32): Set
5381 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
5382 to depend on SP register.
5383 (tls_local_dynamic_base_32): Ditto.
5384
5385 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5386
5387 * config/arm/arm_neon.h: Update comment.
5388 * config/arm/neon-docgen.ml: Delete.
5389 * config/arm/neon-gen.ml: Delete.
5390 * doc/arm-neon-intrinsics.texi: Update comment.
5391
5392 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5393
5394 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
5395 and v4sf versions.
5396 (vand, vorr, veor, vorn, vbic): Remove.
5397 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
5398 iterator.
5399 (neon_vsub_unspec): Likewise.
5400 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
5401
5402 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5403
5404 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
5405 (vadd_s16): Likewise.
5406 (vadd_s32): Likewise.
5407 (vadd_f32): Likewise.
5408 (vadd_u8): Likewise.
5409 (vadd_u16): Likewise.
5410 (vadd_u32): Likewise.
5411 (vadd_s64): Likewise.
5412 (vadd_u64): Likewise.
5413 (vaddq_s8): Likewise.
5414 (vaddq_s16): Likewise.
5415 (vaddq_s32): Likewise.
5416 (vaddq_s64): Likewise.
5417 (vaddq_f32): Likewise.
5418 (vaddq_u8): Likewise.
5419 (vaddq_u16): Likewise.
5420 (vaddq_u32): Likewise.
5421 (vaddq_u64): Likewise.
5422 (vmul_s8): Likewise.
5423 (vmul_s16): Likewise.
5424 (vmul_s32): Likewise.
5425 (vmul_f32): Likewise.
5426 (vmul_u8): Likewise.
5427 (vmul_u16): Likewise.
5428 (vmul_u32): Likewise.
5429 (vmul_p8): Likewise.
5430 (vmulq_s8): Likewise.
5431 (vmulq_s16): Likewise.
5432 (vmulq_s32): Likewise.
5433 (vmulq_f32): Likewise.
5434 (vmulq_u8): Likewise.
5435 (vmulq_u16): Likewise.
5436 (vmulq_u32): Likewise.
5437 (vsub_s8): Likewise.
5438 (vsub_s16): Likewise.
5439 (vsub_s32): Likewise.
5440 (vsub_f32): Likewise.
5441 (vsub_u8): Likewise.
5442 (vsub_u16): Likewise.
5443 (vsub_u32): Likewise.
5444 (vsub_s64): Likewise.
5445 (vsub_u64): Likewise.
5446 (vsubq_s8): Likewise.
5447 (vsubq_s16): Likewise.
5448 (vsubq_s32): Likewise.
5449 (vsubq_s64): Likewise.
5450 (vsubq_f32): Likewise.
5451 (vsubq_u8): Likewise.
5452 (vsubq_u16): Likewise.
5453 (vsubq_u32): Likewise.
5454 (vsubq_u64): Likewise.
5455 (vand_s8): Likewise.
5456 (vand_s16): Likewise.
5457 (vand_s32): Likewise.
5458 (vand_u8): Likewise.
5459 (vand_u16): Likewise.
5460 (vand_u32): Likewise.
5461 (vand_s64): Likewise.
5462 (vand_u64): Likewise.
5463 (vandq_s8): Likewise.
5464 (vandq_s16): Likewise.
5465 (vandq_s32): Likewise.
5466 (vandq_s64): Likewise.
5467 (vandq_u8): Likewise.
5468 (vandq_u16): Likewise.
5469 (vandq_u32): Likewise.
5470 (vandq_u64): Likewise.
5471 (vorr_s8): Likewise.
5472 (vorr_s16): Likewise.
5473 (vorr_s32): Likewise.
5474 (vorr_u8): Likewise.
5475 (vorr_u16): Likewise.
5476 (vorr_u32): Likewise.
5477 (vorr_s64): Likewise.
5478 (vorr_u64): Likewise.
5479 (vorrq_s8): Likewise.
5480 (vorrq_s16): Likewise.
5481 (vorrq_s32): Likewise.
5482 (vorrq_s64): Likewise.
5483 (vorrq_u8): Likewise.
5484 (vorrq_u16): Likewise.
5485 (vorrq_u32): Likewise.
5486 (vorrq_u64): Likewise.
5487 (veor_s8): Likewise.
5488 (veor_s16): Likewise.
5489 (veor_s32): Likewise.
5490 (veor_u8): Likewise.
5491 (veor_u16): Likewise.
5492 (veor_u32): Likewise.
5493 (veor_s64): Likewise.
5494 (veor_u64): Likewise.
5495 (veorq_s8): Likewise.
5496 (veorq_s16): Likewise.
5497 (veorq_s32): Likewise.
5498 (veorq_s64): Likewise.
5499 (veorq_u8): Likewise.
5500 (veorq_u16): Likewise.
5501 (veorq_u32): Likewise.
5502 (veorq_u64): Likewise.
5503 (vbic_s8): Likewise.
5504 (vbic_s16): Likewise.
5505 (vbic_s32): Likewise.
5506 (vbic_u8): Likewise.
5507 (vbic_u16): Likewise.
5508 (vbic_u32): Likewise.
5509 (vbic_s64): Likewise.
5510 (vbic_u64): Likewise.
5511 (vbicq_s8): Likewise.
5512 (vbicq_s16): Likewise.
5513 (vbicq_s32): Likewise.
5514 (vbicq_s64): Likewise.
5515 (vbicq_u8): Likewise.
5516 (vbicq_u16): Likewise.
5517 (vbicq_u32): Likewise.
5518 (vbicq_u64): Likewise.
5519 (vorn_s8): Likewise.
5520 (vorn_s16): Likewise.
5521 (vorn_s32): Likewise.
5522 (vorn_u8): Likewise.
5523 (vorn_u16): Likewise.
5524 (vorn_u32): Likewise.
5525 (vorn_s64): Likewise.
5526 (vorn_u64): Likewise.
5527 (vornq_s8): Likewise.
5528 (vornq_s16): Likewise.
5529 (vornq_s32): Likewise.
5530 (vornq_s64): Likewise.
5531 (vornq_u8): Likewise.
5532 (vornq_u16): Likewise.
5533 (vornq_u32): Likewise.
5534 (vornq_u64): Likewise.
5535
5536 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5537
5538 * wide-int.cc (UTItype): Define.
5539 (UDWtype): Define for appropriate W_TYPE_SIZE.
5540
5541 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
5542
5543 PR tree-optimization/59100
5544 * tree-ssa-phiopt.c: Include tree-inline.h.
5545 (neutral_element_p, absorbing_element_p): New functions.
5546 (value_replacement): Handle conditional binary operations with a
5547 neutral or absorbing element.
5548
5549 2014-05-08 Richard Biener <rguenther@suse.de>
5550
5551 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
5552 folding the expression.
5553 (valueize_expr): Remove.
5554 (visit_reference_op_load): Do not valueize the result of
5555 vn_get_expr_for.
5556 (simplify_binary_expression): Likewise.
5557 (simplify_unary_expression): Likewise.
5558
5559 2014-05-08 Richard Biener <rguenther@suse.de>
5560
5561 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
5562 looking at TYPE_ARG_TYPES.
5563
5564 2014-05-08 Richard Biener <rguenther@suse.de>
5565
5566 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
5567 pointer propagation special-case.
5568
5569 2014-05-08 Bin Cheng <bin.cheng@arm.com>
5570
5571 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
5572 core part of address expressions.
5573
5574 2014-05-08 Alan Modra <amodra@gmail.com>
5575
5576 PR target/60737
5577 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
5578 loads and stores when -mno-strict-align at any alignment.
5579 (expand_block_clear): Similarly. Also correct calculation of
5580 instruction count.
5581
5582 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
5583
5584 PR middle-end/39246
5585 * tree-complex.c (expand_complex_move): Keep line info when expanding
5586 complex move.
5587 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
5588 of complex expression. Use new argument to display correct location
5589 for values coming from phi statement.
5590 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
5591 (warn_uninitialized_phi): Pass location of phi argument to
5592 warn_uninit.
5593 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
5594 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
5595
5596 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
5597
5598 * config/rs6000/predicates.md (indexed_address_mem): New.
5599 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
5600 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
5601 fpstore_ux, fpstore_u.
5602 (sign_extend, indexed, update): New.
5603 (cell_micro): Adjust.
5604 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
5605 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
5606 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
5607 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
5608 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
5609 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
5610 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
5611 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
5612 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
5613 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
5614 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
5615 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
5616 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
5617 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
5618 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
5619
5620 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
5621 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
5622 *vsx_extract_<mode>_store): Adjust.
5623 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
5624 is_cracked_insn, insn_must_be_first_in_group,
5625 insn_must_be_last_in_group): Adjust.
5626
5627 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
5628 Adjust.
5629 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
5630 ppc440-fpstore): Adjust.
5631 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
5632 ppc476-fpstore): Adjust.
5633 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
5634 ppc601-fpstore): Adjust.
5635 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
5636 Adjust.
5637 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
5638 Adjust.
5639 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
5640 ppc7450-fpstore): Adjust.
5641 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
5642 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
5643 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
5644 Adjust.
5645 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
5646 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
5647 cell-fpstore, cell-fpstore-update): Adjust.
5648 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
5649 ppce300c3_store, ppce300c3_fpstore): Adjust.
5650 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
5651 e500mc_fpstore): Adjust.
5652 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
5653 e500mc64_store, e500mc64_fpstore): Adjust.
5654 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
5655 e5500_fpstore): Adjust.
5656 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
5657 e6500_fpstore): Adjust.
5658 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
5659 Adjust.
5660 * config/rs6000/power4.md (power4-load, power4-load-ext,
5661 power4-load-ext-update, power4-load-ext-update-indexed,
5662 power4-load-update-indexed, power4-load-update, power4-fpload,
5663 power4-fpload-update, power4-store, power4-store-update,
5664 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
5665 Adjust.
5666 * config/rs6000/power5.md (power5-load, power5-load-ext,
5667 power5-load-ext-update, power5-load-ext-update-indexed,
5668 power5-load-update-indexed, power5-load-update, power5-fpload,
5669 power5-fpload-update, power5-store, power5-store-update,
5670 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
5671 Adjust.
5672 * config/rs6000/power6.md (power6-load, power6-load-ext,
5673 power6-load-update, power6-load-update-indexed,
5674 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
5675 power6-fpload-update, power6-store, power6-store-update,
5676 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
5677 Adjust.
5678 * config/rs6000/power7.md (power7-load, power7-load-ext,
5679 power7-load-update, power7-load-update-indexed,
5680 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
5681 power7-fpload-update, power7-store, power7-store-update,
5682 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
5683 Adjust.
5684 * config/rs6000/power8.md (power8-load, power8-load-update,
5685 power8-load-ext, power8-load-ext-update, power8-fpload,
5686 power8-fpload-update, power8-store, power8-store-update-indexed,
5687 power8-fpstore, power8-fpstore-update): Adjust.
5688 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
5689 Adjust.
5690 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
5691 titan_lsu_store, titan_lsu_fpstore): Adjust.
5692 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
5693
5694 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
5695
5696 PR target/60884
5697 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
5698 unrolled byte insns. Emit address increments after move insns.
5699
5700 2014-05-07 David Malcolm <dmalcolm@redhat.com>
5701
5702 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
5703 const_gimple, rather than a gimple.
5704 (gimple_call_builtin_p): Likewise, for the three variants.
5705
5706 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
5707 (gimple_call_builtin_p): Likewise, for the three variants.
5708
5709 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5710
5711 PR tree-optimization/61095
5712 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
5713
5714 2014-05-07 Richard Biener <rguenther@suse.de>
5715
5716 PR tree-optimization/61034
5717 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
5718 (maybe_skip_until): Use translate to take into account
5719 lattices when trying to do disambiguations.
5720 (get_continuation_for_phi_1): Likewise.
5721 (get_continuation_for_phi): Adjust for added translate arguments.
5722 (walk_non_aliased_vuses): Likewise.
5723 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
5724 (walk_non_aliased_vuses): Likewise.
5725 (call_may_clobber_ref_p_1): Declare.
5726 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
5727 calls. Stop early if we are only supposed to disambiguate.
5728 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
5729
5730 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
5731
5732 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
5733 Emit an error when the function has arguments.
5734
5735 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
5736
5737 * cfgloop.h (unswitch_loops): Remove.
5738 * doc/passes.texi: Remove references to loop-unswitch.c
5739 * timevar.def (TV_LOOP_UNSWITCH): Remove.
5740
5741 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
5742
5743 * tree-vect-data-refs.c (vect_grouped_load_supported): New
5744 check for loads group of length 3.
5745 (vect_permute_load_chain): New permutations for loads group of
5746 length 3.
5747 * tree-vect-stmts.c (vect_model_load_cost): Change cost
5748 of vec_perm_shuffle for the new permutations.
5749
5750 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
5751
5752 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
5753 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
5754 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
5755 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
5756 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
5757 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
5758 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
5759 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
5760
5761 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
5762
5763 * loop-unswitch.c: Delete.
5764
5765 2014-05-07 Richard Biener <rguenther@suse.de>
5766
5767 * config.gcc: Always set need_64bit_hwint to yes.
5768
5769 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
5770
5771 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
5772 of using optimize_size.
5773
5774 2014-05-06 Mike Stump <mikestump@comcast.net>
5775
5776 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
5777
5778 2014-05-06 Joseph Myers <joseph@codesourcery.com>
5779
5780 * config/i386/sse.md (*mov<mode>_internal)
5781 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
5782 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
5783 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
5784 (*<code><mode>3, *andnot<mode>3<mask_name>)
5785 (<mask_codefor><code><mode>3<mask_name>): Only consider
5786 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
5787
5788 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
5789
5790 Revert:
5791 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
5792
5793 * lra-constraints.c (valid_address_p): Move earlier in file.
5794 Add a constraint argument to the address_info version.
5795 (satisfies_memory_constraint_p): New function.
5796 (satisfies_address_constraint_p): Likewise.
5797 (process_alt_operands, curr_insn_transform): Use them.
5798 (process_address): Pass the constraint to valid_address_p when
5799 checking address operands.
5800
5801 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
5802
5803 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
5804 to their respective blocks. Fix inadvertent use of "node".
5805
5806 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
5807
5808 * emit-rtl.c (init_derived_machine_modes): New functionm, split
5809 out from...
5810 (init_emit_once): ...here.
5811 * rtl.h (init_derived_machine_modes): Declare.
5812 * toplev.c (do_compile): Call it even if no_backend.
5813
5814 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5815 Mike Stump <mikestump@comcast.net>
5816 Richard Sandiford <rdsandiford@googlemail.com>
5817 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5818
5819 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
5820 (rtx_equal_for_memref_p): Update comment.
5821 (adjust_offset_for_component_ref): Use wide-int interfaces.
5822 * builtins.c (get_object_alignment_2): Likewise.
5823 (c_readstr): Likewise.
5824 (target_char_cast): Add comment.
5825 (determine_block_size): Use wide-int interfaces.
5826 (expand_builtin_signbit): Likewise.
5827 (fold_builtin_int_roundingfn): Likewise.
5828 (fold_builtin_bitop): Likewise.
5829 (fold_builtin_bswap): Likewise.
5830 (fold_builtin_logarithm): Use signop.
5831 (fold_builtin_pow): Likewise.
5832 (fold_builtin_memory_op): Use wide-int interfaces.
5833 (fold_builtin_object_size): Likewise.
5834 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
5835 nb_iterations_estimate.
5836 (record_niter_bound): Use wide-int interfaces.
5837 (get_estimated_loop_iterations_int): Likewise.
5838 (get_estimated_loop_iterations): Likewise.
5839 (get_max_loop_iterations): Likewise.
5840 * cfgloop.h: Include wide-int.h.
5841 (struct nb_iter_bound): Change bound to widest_int.
5842 (struct loop): Change nb_iterations_upper_bound and
5843 nb_iterations_estimate to widest_int.
5844 (record_niter_bound): Switch to use widest_int.
5845 (get_estimated_loop_iterations): Likewise.
5846 (get_max_loop_iterations): Likewise.
5847 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
5848 update for wide-int.
5849 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
5850 * combine.c (try_combine): Likewise.
5851 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
5852 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
5853 interfaces.
5854 (aarch64_float_const_representable_p): Likewise.
5855 * config/arc/arc.c: Include wide-int.h.
5856 (arc_can_use_doloop_p): Use wide-int interfaces.
5857 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
5858 (vfp3_const_double_index): Likewise.
5859 * config/avr/avr.c (avr_out_round): Likewise.
5860 (avr_fold_builtin): Likewise.
5861 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
5862 (bfin_can_use_doloop_p): Likewise.
5863 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
5864 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
5865 * config/i386/i386.c: Include wide-int.h.
5866 (ix86_data_alignment): Use wide-int interfaces.
5867 (ix86_local_alignment): Likewise.
5868 (ix86_emit_swsqrtsf): Update real_from_integer.
5869 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
5870 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5871 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
5872 (zero_constant): Likewise.
5873 (input_operand): Likewise.
5874 (splat_input_operand): Likewise.
5875 (non_logical_cint_operand): Change const_double to const_wide_int.
5876 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
5877 (easy_altivec_constant): Remove comment.
5878 (paired_expand_vector_init): Use CONSTANT_P.
5879 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
5880 (rs6000_emit_move): Update checks.
5881 (rs6000_aggregate_candidate): Use wide-int interfaces.
5882 (rs6000_expand_ternop_builtin): Likewise.
5883 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
5884 (rs6000_assemble_integer): Likewise.
5885 (rs6000_hash_constant): Likewise.
5886 (output_toc): Likewise.
5887 (rs6000_rtx_costs): Likewise.
5888 (rs6000_emit_swrsqrt); Update call to real_from_integer.
5889 * config/rs6000/rs6000-c.c: Include wide-int.h.
5890 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
5891 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
5892 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
5893 Handle CONST_WIDE_INT.
5894 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
5895 Use tree_fits_uhwi_p.
5896 * config/sparc/sparc.c: Include wide-int.h.
5897 (sparc_fold_builtin): Use wide-int interfaces.
5898 * config/vax/vax.c: Include wide-int.h.
5899 (vax_float_literal): Use real_from_integer.
5900 * coretypes.h (struct hwivec_def): New.
5901 (hwivec): New.
5902 (const_hwivec): New.
5903 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
5904 (equiv_constant): Handle CONST_WIDE_INT.
5905 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
5906 (cselib_hash_rtx): Handle CONST_WIDE_INT.
5907 * dbxout.c (stabstr_U): Use wide-int interfaces.
5908 (dbxout_type): Update to use cst_fits_shwi_p.
5909 * defaults.h (LOG2_BITS_PER_UNIT): Define.
5910 (TARGET_SUPPORTS_WIDE_INT): Add default.
5911 * dfp.c: Include wide-int.h.
5912 (decimal_real_to_integer2): Use wide-int interfaces and rename to
5913 decimal_real_to_integer.
5914 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
5915 decimal_real_to_integer.
5916 * doc/generic.texi (Constant expressions): Update for wide_int.
5917 * doc/rtl.texi (const_double): Likewise.
5918 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
5919 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
5920 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
5921 (REAL_VALUE_FROM_INT): Remove.
5922 (TARGET_SUPPORTS_WIDE_INT): New.
5923 * doc/tm.texi: Regenerate.
5924 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
5925 * double-int.h: Include wide-int.h.
5926 (struct wi::int_traits): New.
5927 * dwarf2out.c (get_full_len): New.
5928 (dw_val_equal_p): Add case dw_val_class_wide_int.
5929 (size_of_loc_descr): Likewise.
5930 (output_loc_operands): Likewise.
5931 (insert_double): Remove.
5932 (insert_wide_int): New.
5933 (add_AT_wide): New.
5934 (print_die): Add case dw_val_class_wide_int.
5935 (attr_checksum): Likewise.
5936 (attr_checksum_ordered): Likewise.
5937 (same_dw_val_p): Likewise.
5938 (size_of_die): Likewise.
5939 (value_format): Likewise.
5940 (output_die): Likewise.
5941 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
5942 Use wide-int.
5943 (clz_loc_descriptor): Use wide-int interfaces.
5944 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
5945 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
5946 (round_up_to_align): Use wide-int interfaces.
5947 (field_byte_offset): Likewise.
5948 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
5949 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
5950 CONST_DOUBLE handling. Use wide-int interfaces.
5951 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
5952 (gen_enumeration_type_die): Use add_AT_wide.
5953 (hash_loc_operands): Add case dw_val_class_wide_int.
5954 (compare_loc_operands): Likewise.
5955 * dwarf2out.h: Include wide-int.h.
5956 (wide_int_ptr): New.
5957 (enum dw_val_class): Add dw_val_class_wide_int.
5958 (struct dw_val_struct): Add val_wide.
5959 * emit-rtl.c (const_wide_int_htab): New.
5960 (const_wide_int_htab_hash): New.
5961 (const_wide_int_htab_eq): New.
5962 (lookup_const_wide_int): New.
5963 (const_double_htab_hash): Use wide-int interfaces.
5964 (const_double_htab_eq): Likewise.
5965 (rtx_to_double_int): Conditionally compile for wide-int.
5966 (immed_double_int_const): Rename to immed_wide_int_const and
5967 update for wide-int.
5968 (immed_double_const): Conditionally compile for wide-int.
5969 (init_emit_once): Use wide-int interfaces.
5970 * explow.c (plus_constant): Likewise.
5971 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
5972 (lshift_value): Use wide-int interfaces.
5973 (expand_mult): Likewise.
5974 (choose_multiplier): Likewise.
5975 (expand_smod_pow2): Likewise.
5976 (make_tree): Likewise.
5977 * expr.c (convert_modes): Consolidate handling of constants.
5978 Use wide-int interfaces.
5979 (emit_group_load_1): Add note.
5980 (store_expr): Update comment.
5981 (get_inner_reference): Use wide-int interfaces.
5982 (expand_constructor): Update comment.
5983 (expand_expr_real_2): Use wide-int interfaces.
5984 (expand_expr_real_1): Likewise.
5985 (reduce_to_bit_field_precision): Likewise.
5986 (const_vector_from_tree): Likewise.
5987 * final.c: Include wide-int-print.h.
5988 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
5989 * fixed-value.c: Include wide-int.h.
5990 (fixed_from_string): Use wide-int interfaces.
5991 (fixed_to_decimal): Likewise.
5992 (fixed_convert_from_real): Likewise.
5993 (real_convert_from_fixed): Likewise.
5994 * fold-const.h (mem_ref_offset): Return an offset_int.
5995 (div_if_zero_remainder): Remove code parameter.
5996 * fold-const.c (div_if_zero_remainder): Remove code parameter.
5997 Use wide-int interfaces.
5998 (may_negate_without_overflow_p): Use wide-int interfaces.
5999 (negate_expr_p): Likewise.
6000 (fold_negate_expr): Likewise.
6001 (int_const_binop_1): Likewise.
6002 (const_binop): Likewise.
6003 (fold_convert_const_int_from_int): Likewise.
6004 (fold_convert_const_int_from_real): Likewise.
6005 (fold_convert_const_int_from_fixed): Likewise.
6006 (fold_convert_const_fixed_from_int): Likewise.
6007 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
6008 (sign_bit_p): Use wide-int interfaces.
6009 (make_range_step): Likewise.
6010 (build_range_check): Likewise. Pass an integer of the correct type
6011 instead of using integer_one_node.
6012 (range_predecessor): Pass an integer of the correct type instead
6013 of using integer_one_node.
6014 (range_successor): Likewise.
6015 (merge_ranges): Likewise.
6016 (unextend): Use wide-int interfaces.
6017 (extract_muldiv_1): Likewise.
6018 (fold_div_compare): Likewise.
6019 (fold_single_bit_test): Likewise.
6020 (fold_sign_changed_comparison): Likewise.
6021 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
6022 (fold_plusminus_mult_expr): Use wide-int interfaces.
6023 (native_encode_int): Likewise.
6024 (native_interpret_int): Likewise.
6025 (fold_unary_loc): Likewise.
6026 (pointer_may_wrap_p): Likewise.
6027 (size_low_cst): Likewise.
6028 (mask_with_tz): Likewise.
6029 (fold_binary_loc): Likewise.
6030 (fold_ternary_loc): Likewise.
6031 (multiple_of_p): Likewise.
6032 (tree_call_nonnegative_warnv_p): Update calls to
6033 tree_int_cst_min_precision and real_from_integer.
6034 (fold_negate_const): Use wide-int interfaces.
6035 (fold_abs_const): Likewise.
6036 (fold_relational_const): Use tree_int_cst_lt.
6037 (round_up_loc): Use wide-int interfaces.
6038 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
6039 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
6040 * gengtype.c: Remove include of double-int.h.
6041 (do_typedef): Use wide-int interfaces.
6042 (open_base_files): Add wide-int.h.
6043 (main): Add offset_int and widest_int typedefs.
6044 * gengtype-lex.l: Handle "^".
6045 (CXX_KEYWORD): Add "static".
6046 * gengtype-parse.c (require3): New.
6047 (require_template_declaration): Handle constant template arguments
6048 and nested templates.
6049 * gengtype-state.c: Don't include "double-int.h".
6050 * genpreds.c (write_one_predicate_function): Update comment.
6051 (write_tm_constrs_h): Add check for hval and lval use in
6052 CONST_WIDE_INT.
6053 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
6054 (add_to_sequence): Likewise.
6055 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
6056 and const_double_operand.
6057 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
6058 interfaces.
6059 * gimple-fold.c (get_base_constructor): Likewise.
6060 (fold_array_ctor_reference): Likewise.
6061 (fold_nonarray_ctor_reference): Likewise.
6062 (fold_const_aggregate_ref_1): Likewise.
6063 (gimple_val_nonnegative_real_p): Likewise.
6064 (gimple_fold_indirect_ref): Likewise.
6065 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
6066 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
6067 (struct slsr_cand_d): Change index to be widest_int.
6068 (struct incr_info_d): Change incr to be widest_int.
6069 (alloc_cand_and_find_basis): Use wide-int interfaces.
6070 (slsr_process_phi): Likewise.
6071 (backtrace_base_for_ref): Likewise. Return a widest_int.
6072 (restructure_reference): Take a widest_int instead of a double_int.
6073 (slsr_process_ref): Use wide-int interfaces.
6074 (create_mul_ssa_cand): Likewise.
6075 (create_mul_imm_cand): Likewise.
6076 (create_add_ssa_cand): Likewise.
6077 (create_add_imm_cand): Take a widest_int instead of a double_int.
6078 (slsr_process_add): Use wide-int interfaces.
6079 (slsr_process_cast): Likewise.
6080 (slsr_process_copy): Likewise.
6081 (dump_candidate): Likewise.
6082 (dump_incr_vec): Likewise.
6083 (replace_ref): Likewise.
6084 (cand_increment): Likewise. Return a widest_int.
6085 (cand_abs_increment): Likewise.
6086 (replace_mult_candidate): Take a widest_int instead of a double_int.
6087 (replace_unconditional_candidate): Use wide-int interfaces.
6088 (incr_vec_index): Take a widest_int instead of a double_int.
6089 (create_add_on_incoming_edge): Likewise.
6090 (create_phi_basis): Use wide-int interfaces.
6091 (replace_conditional_candidate): Likewise.
6092 (record_increment): Take a widest_int instead of a double_int.
6093 (record_phi_increments): Use wide-int interfaces.
6094 (phi_incr_cost): Take a widest_int instead of a double_int.
6095 (lowest_cost_path): Likewise.
6096 (total_savings): Likewise.
6097 (analyze_increments): Use wide-int interfaces.
6098 (ncd_with_phi): Take a widest_int instead of a double_int.
6099 (ncd_of_cand_and_phis): Likewise.
6100 (nearest_common_dominator_for_cands): Likewise.
6101 (insert_initializers): Use wide-int interfaces.
6102 (all_phi_incrs_profitable): Likewise.
6103 (replace_one_candidate): Likewise.
6104 (replace_profitable_candidates): Likewise.
6105 * godump.c: Include wide-int-print.h.
6106 (go_output_typedef): Use wide-int interfaces.
6107 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
6108 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
6109 (build_loop_iteration_domains): Likewise.
6110 * hooks.h: Include wide-int.h rather than double-int.h.
6111 (hook_bool_dint_dint_uint_bool_true): Delete.
6112 (hook_bool_wint_wint_uint_bool_true): Declare.
6113 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
6114 (hook_bool_wint_wint_uint_bool_true): New.
6115 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
6116 interfaces.
6117 (ubsan_expand_si_overflow_mul_check): Likewise.
6118 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
6119 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
6120 (get_ancestor_addr_info): Likewise.
6121 (ipa_modify_call_arguments): Likewise.
6122 * loop-doloop.c (doloop_modify): Likewise.
6123 (doloop_optimize): Likewise.
6124 * loop-iv.c (iv_number_of_iterations): Likewise.
6125 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
6126 (unroll_loop_constant_iterations): Likewise.
6127 (decide_unroll_runtime_iterations): Likewise.
6128 (unroll_loop_runtime_iterations): Likewise.
6129 (decide_peel_simple): Likewise.
6130 (decide_unroll_stupid): Likewise.
6131 * lto-streamer-in.c (streamer_read_wi): Add.
6132 (input_cfg): Use wide-int interfaces.
6133 (lto_input_tree_1): Likewise.
6134 * lto-streamer-out.c (streamer_write_wi): Add.
6135 (hash_tree): Use wide-int interfaces.
6136 (output_cfg): Likewise.
6137 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
6138 (GTFILES): Add wide-int.h and signop.h.
6139 (TAGS): Look for .cc files too.
6140 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
6141 * optabs.c (expand_subword_shift): Likewise.
6142 (expand_doubleword_shift): Likewise.
6143 (expand_absneg_bit): Likewise.
6144 (expand_copysign_absneg): Likewise.
6145 (expand_copysign_bit): Likewise.
6146 * postreload.c (reload_cse_simplify_set): Likewise.
6147 * predict.c (predict_iv_comparison): Likewise.
6148 * pretty-print.h: Include wide-int-print.h.
6149 (pp_wide_int) New.
6150 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
6151 * print-tree.c: Include wide-int-print.h.
6152 (print_node_brief): Use wide-int interfaces.
6153 (print_node): Likewise.
6154 * read-rtl.c (validate_const_wide_int): New.
6155 (read_rtx_code): Add CONST_WIDE_INT case.
6156 * real.c: Include wide-int.h.
6157 (real_to_integer2): Delete.
6158 (real_to_integer): New function, returning a wide_int.
6159 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
6160 (ten_to_ptwo): Update call to real_from_integer.
6161 (real_digit): Likewise.
6162 * real.h: Include signop.h, wide-int.h and insn-modes.h.
6163 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
6164 (REAL_VALUE_TO_INT): Delete.
6165 (real_to_integer): Declare a wide-int form.
6166 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
6167 * recog.c (const_int_operand): Improve comment.
6168 (const_scalar_int_operand): New.
6169 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
6170 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
6171 (split_double): Likewise.
6172 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
6173 (rtx_size): Likewise.
6174 (rtx_alloc_stat_v): New.
6175 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
6176 (cwi_output_hex): New.
6177 (iterative_hash_rtx): Handle CONST_WIDE_INT.
6178 (cwi_check_failed_bounds): New.
6179 * rtl.def (CONST_WIDE_INT): New.
6180 * rtl.h: Include <utility> and wide-int.h.
6181 (struct hwivec_def): New.
6182 (CWI_GET_NUM_ELEM): New.
6183 (CWI_PUT_NUM_ELEM): New.
6184 (struct rtx_def): Add num_elem and hwiv.
6185 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
6186 (CASE_CONST_UNIQUE): Likewise.
6187 (CASE_CONST_ANY): Likewise.
6188 (CONST_SCALAR_INT_P): Likewise.
6189 (CONST_WIDE_INT_P): New.
6190 (CWI_ELT): New.
6191 (HWIVEC_CHECK): New.
6192 (cwi_check_failed_bounds): New.
6193 (CWI_ELT): New.
6194 (HWIVEC_CHECK): New.
6195 (CONST_WIDE_INT_VEC) New.
6196 (CONST_WIDE_INT_NUNITS) New.
6197 (CONST_WIDE_INT_ELT) New.
6198 (rtx_mode_t): New type.
6199 (wi::int_traits <rtx_mode_t>): New.
6200 (wi::shwi): New.
6201 (wi::min_value): New.
6202 (wi::max_value): New.
6203 (rtx_alloc_v) New.
6204 (const_wide_int_alloc): New.
6205 (immed_wide_int_const): New.
6206 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
6207 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
6208 * signop.h: New file.
6209 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
6210 (simplify_const_unary_operation): Use wide-int interfaces.
6211 (simplify_binary_operation_1): Likewise.
6212 (simplify_const_binary_operation): Likewise.
6213 (simplify_const_relational_operation): Likewise.
6214 (simplify_immed_subreg): Likewise.
6215 * stmt.c (expand_case): Likewise.
6216 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
6217 signop rather than a bool.
6218 * stor-layout.c (layout_type): Use wide-int interfaces.
6219 (initialize_sizetypes): Update calls to
6220 set_min_and_max_values_for_integral_type.
6221 (set_min_and_max_values_for_integral_type): Take a signop rather
6222 than a bool. Use wide-int interfaces.
6223 (fixup_signed_type): Update accordingly. Remove
6224 HOST_BITS_PER_DOUBLE_INT limit.
6225 (fixup_unsigned_type): Likewise.
6226 * system.h (STATIC_CONSTANT_P): New.
6227 (STATIC_ASSERT): New.
6228 * target.def (can_use_doloop_p): Take widest_ints rather than
6229 double_ints.
6230 * target.h: Include wide-int.h rather than double-int.h.
6231 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
6232 than double_ints.
6233 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
6234 rather than INT_CST_LT_UNSIGNED.
6235 (can_use_doloop_if_innermost): Take widest_ints rather than
6236 double_ints.
6237 * tree-affine.c: Include wide-int-print.h.
6238 (double_int_ext_for_comb): Delete.
6239 (wide_int_ext_for_comb): New.
6240 (aff_combination_zero): Use wide-int interfaces.
6241 (aff_combination_const): Take a widest_int instead of a double_int.
6242 (aff_combination_elt): Use wide-int interfaces.
6243 (aff_combination_scale): Take a widest_int instead of a double_int.
6244 (aff_combination_add_elt): Likewise.
6245 (aff_combination_add_cst): Likewise.
6246 (aff_combination_add): Use wide-int interfaces.
6247 (aff_combination_convert): Likewise.
6248 (tree_to_aff_combination): Likewise.
6249 (add_elt_to_tree): Take a widest_int instead of a double_int.
6250 (aff_combination_to_tree): Use wide-int interfaces.
6251 (aff_combination_remove_elt): Likewise.
6252 (aff_combination_add_product): Take a widest_int instead of
6253 a double_int.
6254 (aff_combination_mult): Use wide-int interfaces.
6255 (aff_combination_expand): Likewise.
6256 (double_int_constant_multiple_p): Delete.
6257 (wide_int_constant_multiple_p): New.
6258 (aff_combination_constant_multiple_p): Take a widest_int pointer
6259 instead of a double_int pointer.
6260 (print_aff): Use wide-int interfaces.
6261 (get_inner_reference_aff): Take a widest_int pointer
6262 instead of a double_int pointer.
6263 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
6264 * tree-affine.h: Include wide-int.h.
6265 (struct aff_comb_elt): Change type of coef to widest_int.
6266 (struct affine_tree_combination): Change type of offset to widest_int.
6267 (double_int_ext_for_comb): Delete.
6268 (wide_int_ext_for_comb): New.
6269 (aff_combination_const): Use widest_int instead of double_int.
6270 (aff_combination_scale): Likewise.
6271 (aff_combination_add_elt): Likewise.
6272 (aff_combination_constant_multiple_p): Likewise.
6273 (get_inner_reference_aff): Likewise.
6274 (aff_comb_cannot_overlap_p): Likewise.
6275 (aff_combination_zero_p): Use wide-int interfaces.
6276 * tree.c: Include tree.h.
6277 (init_ttree): Use make_int_cst.
6278 (tree_code_size): Removed code for INTEGER_CST case.
6279 (tree_size): Add INTEGER_CST case.
6280 (make_node_stat): Update comment.
6281 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
6282 (build_int_cst_type): Use wide-int interfaces.
6283 (double_int_to_tree): Likewise.
6284 (double_int_fits_to_tree_p): Delete.
6285 (force_fit_type_double): Delete.
6286 (force_fit_type): New.
6287 (int_cst_hash_hash): Use wide-int interfaces.
6288 (int_cst_hash_eq): Likewise.
6289 (build_int_cst_wide): Delete.
6290 (wide_int_to_tree): New.
6291 (cache_integer_cst): Use wide-int interfaces.
6292 (build_low_bits_mask): Likewise.
6293 (cst_and_fits_in_hwi): Likewise.
6294 (real_value_from_int_cst): Likewise.
6295 (make_int_cst_stat): New.
6296 (integer_zerop): Use wide_int interfaces.
6297 (integer_onep): Likewise.
6298 (integer_all_onesp): Likewise.
6299 (integer_pow2p): Likewise.
6300 (integer_nonzerop): Likewise.
6301 (tree_log2): Likewise.
6302 (tree_floor_log2): Likewise.
6303 (tree_ctz): Likewise.
6304 (int_size_in_bytes): Likewise.
6305 (mem_ref_offset): Return an offset_int rather than a double_int.
6306 (build_type_attribute_qual_variant): Use wide_int interfaces.
6307 (type_hash_eq): Likewise
6308 (tree_int_cst_equal): Likewise.
6309 (tree_int_cst_lt): Delete.
6310 (tree_int_cst_compare): Likewise.
6311 (tree_fits_shwi_p): Use wide_int interfaces.
6312 (tree_fits_uhwi_p): Likewise.
6313 (tree_int_cst_sign_bit): Likewise.
6314 (tree_int_cst_sgn): Likewise.
6315 (tree_int_cst_min_precision): Take a signop rather than a bool.
6316 (simple_cst_equal): Use wide_int interfaces.
6317 (compare_tree_int): Likewise.
6318 (iterative_hash_expr): Likewise.
6319 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
6320 INT_CST_LT.
6321 (get_type_static_bounds): Use wide_int interfaces.
6322 (tree_int_cst_elt_check_failed): New.
6323 (build_common_tree_nodes): Reordered to set prec before filling in
6324 value.
6325 (int_cst_value): Check cst_and_fits_in_hwi.
6326 (widest_int_cst_value): Use wide_int interfaces.
6327 (upper_bound_in_type): Likewise.
6328 (lower_bound_in_type): Likewise.
6329 (num_ending_zeros): Likewise.
6330 (drop_tree_overflow): Likewise.
6331 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
6332 (gen_conditions_for_pow_cst_base): Likewise.
6333 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
6334 (group_case_labels_stmt): Use wide-int interfaces.
6335 (verify_gimple_assign_binary): Likewise.
6336 (print_loop): Likewise.
6337 * tree-chrec.c (tree_fold_binomial): Likewise.
6338 * tree-core.h (struct tree_base): Add int_length.
6339 (struct tree_int_cst): Change rep of value.
6340 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
6341 (dr_may_alias_p): Likewise.
6342 (max_stmt_executions_tree): Likewise.
6343 * tree.def (INTEGER_CST): Update comment.
6344 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
6345 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
6346 * tree-dump.c: Include wide-int.h and wide-int-print.h.
6347 (dequeue_and_dump): Use wide-int interfaces.
6348 * tree.h: Include wide-int.h.
6349 (NULL_TREE): Moved to earlier loc in file.
6350 (TREE_INT_CST_ELT_CHECK): New.
6351 (tree_int_cst_elt_check_failed): New.
6352 (TYPE_SIGN): New.
6353 (TREE_INT_CST): Delete.
6354 (TREE_INT_CST_LOW): Use wide-int interfaces.
6355 (TREE_INT_CST_HIGH): Delete.
6356 (TREE_INT_CST_NUNITS): New.
6357 (TREE_INT_CST_EXT_NUNITS): Likewise.
6358 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
6359 (TREE_INT_CST_ELT): Likewise.
6360 (INT_CST_LT): Delete.
6361 (tree_int_cst_elt_check): New (two forms).
6362 (type_code_size): Update comment.
6363 (make_int_cst_stat, make_int_cst): New.
6364 (tree_to_double_int): Delete.
6365 (double_int_fits_to_tree_p): Delete.
6366 (force_fit_type_double): Delete.
6367 (build_int_cstu): Replace with out-of-line function.
6368 (build_int_cst_wide): Delete.
6369 (tree_int_cst_lt): Define inline.
6370 (tree_int_cst_le): New.
6371 (tree_int_cst_compare): Define inline.
6372 (tree_int_cst_min_precision): Take a signop rather than a bool.
6373 (wi::int_traits <const_tree>): New.
6374 (wi::int_traits <tree>): New.
6375 (wi::extended_tree): New.
6376 (wi::int_traits <wi::extended_tree>): New.
6377 (wi::to_widest): New.
6378 (wi::to_offset): New.
6379 (wi::fits_to_tree_p): New.
6380 (wi::min_value): New.
6381 (wi::max_value): New.
6382 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
6383 (copy_tree_body_r): Likewise.
6384 * tree-object-size.c (compute_object_offset): Likewise.
6385 (addr_object_size): Likewise.
6386 * tree-predcom.c: Include wide-int-print.h.
6387 (struct dref_d): Change type of offset to widest_int.
6388 (dump_dref): Call wide-int printer.
6389 (aff_combination_dr_offset): Use wide-int interfaces.
6390 (determine_offset): Take a widest_int pointer rather than a
6391 double_int pointer.
6392 (split_data_refs_to_components): Use wide-int interfaces.
6393 (suitable_component_p): Likewise.
6394 (order_drefs): Likewise.
6395 (add_ref_to_chain): Likewise.
6396 (valid_initializer_p): Likewise.
6397 (determine_roots_comp): Likewise.
6398 * tree-pretty-print.c: Include wide-int-print.h.
6399 (dump_generic_node): Use wide-int interfaces.
6400 * tree-sra.c (sra_ipa_modify_expr): Likewise.
6401 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
6402 (move_fixed_address_to_symbol): Likewise.
6403 (move_hint_to_base): Likewise.
6404 (move_pointer_to_base): Likewise.
6405 (move_variant_to_index): Likewise.
6406 (most_expensive_mult_to_index): Likewise.
6407 (addr_to_parts): Likewise.
6408 (copy_ref_info): Likewise.
6409 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6410 (indirect_refs_may_alias_p): Likewise.
6411 (stmt_kills_ref_p_1): Likewise.
6412 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
6413 * tree-ssa-ccp.c: Update comment at top of file. Include
6414 wide-int-print.h.
6415 (struct prop_value_d): Change type of mask to widest_int.
6416 (extend_mask): New function.
6417 (dump_lattice_value): Use wide-int interfaces.
6418 (get_default_value): Likewise.
6419 (set_constant_value): Likewise.
6420 (set_value_varying): Likewise.
6421 (valid_lattice_transition): Likewise.
6422 (set_lattice_value): Likewise.
6423 (value_to_double_int): Delete.
6424 (value_to_wide_int): New.
6425 (get_value_from_alignment): Use wide-int interfaces.
6426 (get_value_for_expr): Likewise.
6427 (do_dbg_cnt): Likewise.
6428 (ccp_finalize): Likewise.
6429 (ccp_lattice_meet): Likewise.
6430 (bit_value_unop_1): Use widest_ints rather than double_ints.
6431 (bit_value_binop_1): Likewise.
6432 (bit_value_unop): Use wide-int interfaces.
6433 (bit_value_binop): Likewise.
6434 (bit_value_assume_aligned): Likewise.
6435 (evaluate_stmt): Likewise.
6436 (ccp_fold_stmt): Likewise.
6437 (visit_cond_stmt): Likewise.
6438 (ccp_visit_stmt): Likewise.
6439 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
6440 (constant_pointer_difference): Likewise.
6441 (associate_pointerplus): Likewise.
6442 (combine_conversions): Likewise.
6443 * tree-ssa-loop.h: Include wide-int.h.
6444 (struct tree_niter_desc): Change type of max to widest_int.
6445 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
6446 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
6447 (remove_redundant_iv_tests): Likewise.
6448 (canonicalize_loop_induction_variables): Likewise.
6449 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
6450 (constant_multiple_of): Take a widest_int pointer instead of
6451 a double_int pointer.
6452 (get_computation_aff): Use wide-int interfaces.
6453 (ptr_difference_cost): Likewise.
6454 (difference_cost): Likewise.
6455 (get_loop_invariant_expr_id): Likewise.
6456 (get_computation_cost_at): Likewise.
6457 (iv_elimination_compare_lt): Likewise.
6458 (may_eliminate_iv): Likewise.
6459 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
6460 instead of double_int.
6461 (max_loop_iterations): Likewise.
6462 (max_stmt_executions): Likewise.
6463 (estimated_stmt_executions): Likewise.
6464 * tree-ssa-loop-niter.c: Include wide-int-print.h.
6465 (split_to_var_and_offset): Use wide-int interfaces.
6466 (determine_value_range): Likewise.
6467 (bound_difference_of_offsetted_base): Likewise.
6468 (bounds_add): Take a widest_int instead of a double_int.
6469 (number_of_iterations_ne_max): Use wide-int interfaces.
6470 (number_of_iterations_ne): Likewise.
6471 (number_of_iterations_lt_to_ne): Likewise.
6472 (assert_loop_rolls_lt): Likewise.
6473 (number_of_iterations_lt): Likewise.
6474 (number_of_iterations_le): Likewise.
6475 (number_of_iterations_cond): Likewise.
6476 (number_of_iterations_exit): Likewise.
6477 (finite_loop_p): Likewise.
6478 (derive_constant_upper_bound_assign): Likewise.
6479 (derive_constant_upper_bound): Return a widest_int.
6480 (derive_constant_upper_bound_ops): Likewise.
6481 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
6482 (record_estimate): Take a widest_int rather than a double_int.
6483 (record_nonwrapping_iv): Use wide-int interfaces.
6484 (double_int_cmp): Delete.
6485 (wide_int_cmp): New.
6486 (bound_index): Take a widest_int rather than a double_int.
6487 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
6488 (maybe_lower_iteration_bound): Likewise.
6489 (estimate_numbers_of_iterations_loop): Likewise.
6490 (estimated_loop_iterations): Take a widest_int pointer than than
6491 a double_int pointer.
6492 (estimated_loop_iterations_int): Use wide-int interfaces.
6493 (max_loop_iterations): Take a widest_int pointer than than
6494 a double_int pointer.
6495 (max_loop_iterations_int): Use wide-int interfaces.
6496 (max_stmt_executions): Take a widest_int pointer than than
6497 a double_int pointer.
6498 (estimated_stmt_executions): Likewise.
6499 (n_of_executions_at_most): Use wide-int interfaces.
6500 (scev_probably_wraps_p): Likewise.
6501 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
6502 to real_to_integer.
6503 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
6504 interfaces.
6505 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
6506 double_ints. Adjust for trailing_wide_ints <3> representation.
6507 (set_nonzero_bits): Likewise.
6508 (get_range_info): Return wide_ints rather than double_ints.
6509 Adjust for trailing_wide_ints <3> representation.
6510 (get_nonzero_bits): Likewise.
6511 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
6512 representation.
6513 * tree-ssanames.h (struct range_info_def): Replace min, max and
6514 nonzero_bits with a trailing_wide_ints <3>.
6515 (set_range_info): Use wide_int_refs rather than double_ints.
6516 (set_nonzero_bits): Likewise.
6517 (get_range_info): Return wide_ints rather than double_ints.
6518 (get_nonzero_bits): Likewise.
6519 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
6520 * tree-ssa-pre.c (phi_translate_1): Likewise.
6521 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
6522 (acceptable_pow_call): Likewise.
6523 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
6524 interfaces.
6525 (vn_reference_fold_indirect): Likewise.
6526 (vn_reference_maybe_forwprop_address): Likewise.
6527 (valueize_refs_1): Likewise.
6528 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
6529 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
6530 tree_int_cst_lt and tree_int_cst_le.
6531 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
6532 interfaces.
6533 (streamer_alloc_tree): Likewise.
6534 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
6535 (streamer_write_tree_header): Likewise.
6536 (streamer_write_integer_cst): Likewise.
6537 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
6538 (build_constructors): Likewise.
6539 (array_value_type): Likewise.
6540 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
6541 (vect_check_gather): Likewise.
6542 * tree-vect-generic.c (build_replicated_const): Likewise.
6543 (expand_vector_divmod): Likewise.
6544 * tree-vect-loop.c (vect_transform_loop): Likewise.
6545 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
6546 (vect_do_peeling_for_alignment): Likewise.
6547 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6548 * tree-vrp.c: Include wide-int.h.
6549 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
6550 (extract_range_from_assert): Use wide-int interfaces.
6551 (vrp_int_const_binop): Likewise.
6552 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
6553 double_int pointers.
6554 (ranges_from_anti_range): Use wide-int interfaces.
6555 (quad_int_cmp): Delete.
6556 (quad_int_pair_sort): Likewise.
6557 (extract_range_from_binary_expr_1): Use wide-int interfaces.
6558 (extract_range_from_unary_expr_1): Likewise.
6559 (adjust_range_with_scev): Likewise.
6560 (masked_increment): Take and return wide_ints rather than double_ints.
6561 (register_edge_assert_for_2): Use wide-int interfaces.
6562 (check_array_ref): Likewise.
6563 (search_for_addr_array): Likewise.
6564 (maybe_set_nonzero_bits): Likewise.
6565 (union_ranges): Pass an integer of the correct type instead of
6566 using integer_one_node.
6567 (intersect_ranges): Likewise.
6568 (simplify_truth_ops_using_ranges): Likewise.
6569 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
6570 (range_fits_type_p): Likewise.
6571 (simplify_cond_using_ranges): Likewise. Take a signop rather than
6572 a bool.
6573 (simplify_conversion_using_ranges): Use wide-int interfaces.
6574 (simplify_float_conversion_using_ranges): Likewise.
6575 (vrp_finalize): Likewise.
6576 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
6577 (gimple_stringops_transform): Likewise.
6578 * varasm.c (decode_addr_const): Likewise.
6579 (const_hash_1): Likewise.
6580 (const_rtx_hash_1): Likewise
6581 (output_constant): Likewise.
6582 (array_size_for_constructor): Likewise.
6583 (output_constructor_regular_field): Likewise.
6584 (output_constructor_bitfield): Likewise.
6585 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
6586 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
6587 GENERATOR_FILEs.
6588 * gencheck.c: Define BITS_PER_UNIT.
6589 * wide-int.cc: New.
6590 * wide-int.h: New.
6591 * wide-int-print.cc: New.
6592 * wide-int-print.h: New.
6593
6594 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6595
6596 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
6597
6598 2014-05-06 Richard Biener <rguenther@suse.de>
6599
6600 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
6601 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
6602 (TODO_verify_all): Adjust.
6603 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
6604 TODO_verify_stmts and TODO_verify_rtl_sharing.
6605 * bb-reorder.c: Likewise.
6606 * cfgexpand.c: Likewise.
6607 * cprop.c: Likewise.
6608 * cse.c: Likewise.
6609 * function.c: Likewise.
6610 * fwprop.c: Likewise.
6611 * gcse.c: Likewise.
6612 * gimple-ssa-isolate-paths.c: Likewise.
6613 * gimple-ssa-strength-reduction.c: Likewise.
6614 * ipa-split.c: Likewise.
6615 * loop-init.c: Likewise.
6616 * loop-unroll.c: Likewise.
6617 * lower-subreg.c: Likewise.
6618 * modulo-sched.c: Likewise.
6619 * postreload-gcse.c: Likewise.
6620 * predict.c: Likewise.
6621 * recog.c: Likewise.
6622 * sched-rgn.c: Likewise.
6623 * store-motion.c: Likewise.
6624 * tracer.c: Likewise.
6625 * trans-mem.c: Likewise.
6626 * tree-call-cdce.c: Likewise.
6627 * tree-cfg.c: Likewise.
6628 * tree-cfgcleanup.c: Likewise.
6629 * tree-complex.c: Likewise.
6630 * tree-eh.c: Likewise.
6631 * tree-emutls.c: Likewise.
6632 * tree-if-conv.c: Likewise.
6633 * tree-into-ssa.c: Likewise.
6634 * tree-loop-distribution.c: Likewise.
6635 * tree-object-size.c: Likewise.
6636 * tree-parloops.c: Likewise.
6637 * tree-pass.h: Likewise.
6638 * tree-sra.c: Likewise.
6639 * tree-ssa-ccp.c: Likewise.
6640 * tree-ssa-copy.c: Likewise.
6641 * tree-ssa-copyrename.c: Likewise.
6642 * tree-ssa-dce.c: Likewise.
6643 * tree-ssa-dom.c: Likewise.
6644 * tree-ssa-dse.c: Likewise.
6645 * tree-ssa-forwprop.c: Likewise.
6646 * tree-ssa-ifcombine.c: Likewise.
6647 * tree-ssa-loop-ch.c: Likewise.
6648 * tree-ssa-loop-ivcanon.c: Likewise.
6649 * tree-ssa-loop.c: Likewise.
6650 * tree-ssa-math-opts.c: Likewise.
6651 * tree-ssa-phiopt.c: Likewise.
6652 * tree-ssa-phiprop.c: Likewise.
6653 * tree-ssa-pre.c: Likewise.
6654 * tree-ssa-reassoc.c: Likewise.
6655 * tree-ssa-sink.c: Likewise.
6656 * tree-ssa-strlen.c: Likewise.
6657 * tree-ssa-tail-merge.c: Likewise.
6658 * tree-ssa-uncprop.c: Likewise.
6659 * tree-switch-conversion.c: Likewise.
6660 * tree-tailcall.c: Likewise.
6661 * tree-vect-generic.c: Likewise.
6662 * tree-vectorizer.c: Likewise.
6663 * tree-vrp.c: Likewise.
6664 * tsan.c: Likewise.
6665 * var-tracking.c: Likewise.
6666 * bt-load.c: Likewise.
6667 * cfgcleanup.c: Likewise.
6668 * combine-stack-adj.c: Likewise.
6669 * combine.c: Likewise.
6670 * compare-elim.c: Likewise.
6671 * config/epiphany/resolve-sw-modes.c: Likewise.
6672 * config/i386/i386.c: Likewise.
6673 * config/mips/mips.c: Likewise.
6674 * config/s390/s390.c: Likewise.
6675 * config/sh/sh_treg_combine.cc: Likewise.
6676 * config/sparc/sparc.c: Likewise.
6677 * dce.c: Likewise.
6678 * dse.c: Likewise.
6679 * final.c: Likewise.
6680 * ifcvt.c: Likewise.
6681 * mode-switching.c: Likewise.
6682 * passes.c: Likewise.
6683 * postreload.c: Likewise.
6684 * ree.c: Likewise.
6685 * reg-stack.c: Likewise.
6686 * regcprop.c: Likewise.
6687 * regrename.c: Likewise.
6688 * web.c: Likewise.
6689
6690 2014-05-06 Richard Biener <rguenther@suse.de>
6691
6692 PR middle-end/61070
6693 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
6694 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
6695
6696 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
6697
6698 PR ipa/60965
6699 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
6700
6701 2014-05-05 Radovan Obradovic <robradovic@mips.com>
6702 Tom de Vries <tom@codesourcery.com>
6703
6704 * target.def (call_fusage_contains_non_callee_clobbers): New
6705 DEFHOOKPOD.
6706 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
6707 Hooks to @menu.
6708 (@node Miscellaneous Register Hooks): New node.
6709 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
6710 * doc/tm.texi: Regenerate.
6711
6712 2014-05-05 Marek Polacek <polacek@redhat.com>
6713
6714 PR driver/61065
6715 * opts.c (common_handle_option): Call error_at instead of warning_at.
6716
6717 2014-05-05 Richard Biener <rguenther@suse.de>
6718
6719 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
6720 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
6721 under the TODO_verify_il umbrella.
6722
6723 2014-05-05 Richard Biener <rguenther@suse.de>
6724
6725 * passes.c (execute_function_todo): Move TODO_verify_flow under
6726 the TODO_verify_ul umbrella.
6727
6728 2014-05-05 Richard Biener <rguenther@suse.de>
6729
6730 PR middle-end/61010
6731 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
6732 X & CST away from a CST that is the mask of a mode.
6733
6734 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6735
6736 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
6737 int argument to enum machine_mode.
6738 (picochip_class_max_nregs): Ditto.
6739 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
6740 (picochip_class_max_nregs): Ditto.
6741
6742 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6743
6744 * target.def: Add new target hook.
6745 * doc/tm.texi: Regenerate.
6746 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
6747 * targhooks.c (default_keep_leaf_when_profiled): New function.
6748
6749 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
6750 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
6751
6752 2014-05-05 Bin Cheng <bin.cheng@arm.com>
6753
6754 PR tree-optimization/60363
6755 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
6756 (copy_phi_args): New parameters. Call get_value_locus_in_path.
6757 (update_destination_phis): New parameter.
6758 (create_edge_and_update_destination_phis): Ditto.
6759 (ssa_fix_duplicate_block_edges): Pass new arguments.
6760 (thread_single_edge): Ditto.
6761
6762 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
6763
6764 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
6765 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
6766 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
6767 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
6768 Use RS6000_BTM_HARD_FLOAT.
6769 (BU_MISC_2): Likewise.
6770 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
6771 RS6000_BTM_HARD_FLOAT.
6772 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
6773 is explicitly used.
6774 (rs6000_invalid_builtin): Add hard floating builtin support.
6775 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
6776 hard float builtins.
6777 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
6778
6779 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6780
6781 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
6782 Add missing function* argument.
6783
6784 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
6785
6786 * lra-constraints.c (valid_address_p): Move earlier in file.
6787 Add a constraint argument to the address_info version.
6788 (satisfies_memory_constraint_p): New function.
6789 (satisfies_address_constraint_p): Likewise.
6790 (process_alt_operands, curr_insn_transform): Use them.
6791 (process_address): Pass the constraint to valid_address_p when
6792 checking address operands.
6793
6794 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
6795
6796 * config/mips/mips.c (mips_isa_rev): New variable.
6797 (mips_set_architecture): Set it.
6798 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
6799 from mips_isa_rev.
6800 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
6801 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
6802 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
6803 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
6804 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
6805 conditions in terms of mips_isa_rev.
6806 (mips_isa_rev): Declare.
6807
6808 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6809
6810 * config/sh/sh-mem.cc: Use tabs instead of spaces.
6811 (prob_unlikely, prob_likely): Make variables const.
6812
6813 2014-05-03 Denis Chertykov <chertykov@gmail.com>
6814
6815 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
6816
6817 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6818
6819 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
6820
6821 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6822
6823 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
6824 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
6825 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
6826 functions.
6827 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
6828 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
6829 sh_pass_in_reg_p.
6830 Replace usage of ROUND_REG with sh_round_reg.
6831 Use CEIL instead of ROUND_ADVANCE.
6832
6833 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
6834
6835 PR target/61026
6836 * config/sh/sh.c: Include stdlib headers before everything else.
6837
6838 2014-05-02 Jakub Jelinek <jakub@redhat.com>
6839
6840 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
6841 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
6842 (gimplify_adjust_omp_clauses): Simd region is never
6843 directly nested in combined parallel. Instead, for linear
6844 with copyin/copyout, if in combined for simd loop, make decl
6845 firstprivate/lastprivate on OMP_FOR.
6846 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6847 expand_omp_for_static_chunk): When setting endvar, also set
6848 fd->loop.v to the same value.
6849
6850 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6851
6852 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
6853
6854 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
6855
6856 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
6857 expression.
6858
6859 2014-05-02 Marek Polacek <polacek@redhat.com>
6860
6861 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
6862
6863 2014-05-02 Kito Cheng <kito@0xlab.org>
6864
6865 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
6866 to a C expression marco.
6867 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
6868 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
6869 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
6870 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
6871 HONOR_REG_ALLOC_ORDER.
6872 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
6873
6874 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6875
6876 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
6877
6878 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6879
6880 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
6881
6882 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
6883
6884 * tree-if-conv.c (is_cond_scalar_reduction): New function.
6885 (convert_scalar_cond_reduction): Likewise.
6886 (predicate_scalar_phi): Add recognition and transformation
6887 of simple conditioanl reduction to be vectorizable.
6888
6889 2014-05-01 Marek Polacek <polacek@redhat.com>
6890
6891 PR c/43245
6892 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
6893
6894 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
6895
6896 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
6897 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
6898 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
6899 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
6900 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
6901 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
6902 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
6903 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
6904
6905 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
6906
6907 * config/arc/arc.opt (mlra): Move comment above option name
6908 to avoid mis-parsing as language options.
6909
6910 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6911
6912 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
6913 * config/sol2.h: ... here.
6914 * config/sol2-10.h: Remove.
6915
6916 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
6917 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
6918 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
6919 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
6920 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
6921 * config/sol2.h: ... here.
6922 (SECTION_NAME_FORMAT): Don't redefine.
6923 (STARTFILE_ARCH32_SPEC): Rename to ...
6924 (STARTFILE_ARCH_SPEC): ... this.
6925 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
6926 * config/sparc/sol2.h: ... here.
6927 (SECTION_NAME_FORMAT): Don't undef.
6928 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
6929 (SUBTARGET_EXTRA_SPECS): Remove.
6930 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
6931
6932 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
6933 (MD_STARTFILE_PREFIX): Remove.
6934 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
6935 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
6936 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
6937 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
6938 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
6939 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
6940 * config/i386/sol2.h: ... here.
6941 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
6942 * config/i386/sol2-bi.h: Remove.
6943 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
6944 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
6945
6946 * config/i386/t-sol2-64: Rename to ...
6947 * config/i386/t-sol2: ... this.
6948 * config/sparc/t-sol2-64: Rename to ...
6949 * config/sparc/t-sol2: ... this.
6950
6951 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
6952 sol2_tm_file_head, sol2_tm_file_tail.
6953 Include ${cpu_type}/sol2.h before sol2.h.
6954 Remove sol2-10.h.
6955 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
6956 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
6957 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
6958 Reflect i386/t-sol2-64 renaming.
6959 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
6960 Reflect sparc/t-sol2-64 renaming.
6961
6962 2014-04-30 Richard Biener <rguenther@suse.de>
6963
6964 * passes.c (execute_function_todo): Move TODO_verify_stmts
6965 and TODO_verify_ssa under the TODO_verify_il umbrella.
6966 * tree-ssa.h (verify_ssa): Adjust prototype.
6967 * tree-ssa.c (verify_ssa): Add parameter to tell whether
6968 we should verify SSA operands.
6969 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
6970 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
6971 whether we should verify whether not throwing stmts have EH info.
6972 * graphite-scop-detection.c (create_sese_edges): Adjust.
6973 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
6974 * tree-eh.c (lower_try_finally_switch): Do not add the
6975 default case label twice.
6976
6977 2014-04-30 Marek Polacek <polacek@redhat.com>
6978
6979 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
6980 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
6981 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
6982 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
6983
6984 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
6985
6986 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
6987 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
6988 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
6989 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
6990 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
6991 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
6992 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
6993 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
6994
6995 2014-04-29 David Malcolm <dmalcolm@redhat.com>
6996
6997 * tree-cfg.c (dump_function_to_file): Dump the return type of
6998 functions, in a line to itself before the function body, mimicking
6999 the layout of a C function.
7000
7001 2014-04-29 Jakub Jelinek <jakub@redhat.com>
7002
7003 PR tree-optimization/60971
7004 * tree-tailcall.c (process_assignment): Reject conversions which
7005 reduce precision.
7006
7007 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7008
7009 * calls.c (initialize_argument_information): Always treat
7010 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
7011 (expand_call): Likewise.
7012 (emit_library_call_calue_1): Likewise.
7013 * expr.c (PUSH_ARGS_REVERSED): Do not define.
7014 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
7015 code accordingly.
7016
7017 2014-04-29 Nick Clifton <nickc@redhat.com>
7018
7019 * config/msp430/msp430.md (umulsidi): Fix typo.
7020 (mulhisi3): Enable even inside interrupt handlers.
7021 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
7022 bigger return address pushed in large mode.
7023
7024 2014-04-29 Nick Clifton <nickc@redhat.com>
7025
7026 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
7027 (arc_init_reg_tables): Use a machine_mode enum to iterate over
7028 available modes.
7029 * config/m32r/m32r.c (init_reg_tables): Likewise.
7030 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
7031 enum to hold the modes.
7032
7033 2014-04-29 Richard Biener <rguenther@suse.de>
7034
7035 * dominance.c (free_dominance_info): Add overload with
7036 function parameter.
7037 (dom_info_state): Likewise.
7038 (dom_info_available_p): Likewise.
7039 * basic-block.h (free_dominance_info, dom_info_state,
7040 dom_info_available_p): Declare overloads.
7041 * passes.c (execute_function_todo): Verify that verifiers
7042 don't change dominator info state. Drop dominator info
7043 for IPA pass invocations.
7044 * cgraph.c (release_function_body): Restore asserts that
7045 dominator information is released.
7046
7047 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
7048
7049 * doc/invoke.texi: Fix typo.
7050 * tree-vrp.c: Fix typos.
7051 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
7052
7053 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
7054
7055 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
7056
7057 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
7058
7059 * config/aarch64/aarch64-builtins.c
7060 (aarch64_types_storestruct_lane_qualifiers): New.
7061 (TYPES_STORESTRUCT_LANE): Likewise.
7062 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
7063 (st3_lane): Likewise.
7064 (st4_lane): Likewise.
7065 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
7066 (vec_store_lanesci_lane<mode>): Likewise.
7067 (vec_store_lanesxi_lane<mode>): Likewise.
7068 (aarch64_st2_lane<VQ:mode>): Likewise.
7069 (aarch64_st3_lane<VQ:mode>): Likewise.
7070 (aarch64_st4_lane<VQ:mode>): Likewise.
7071 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
7072 * config/aarch64/arm_neon.h
7073 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
7074 use new macro arguments.
7075 (__ST3_LANE_FUNC): Likewise.
7076 (__ST4_LANE_FUNC): Likewise.
7077 * config/aarch64/iterators.md (V_TWO_ELEM): New.
7078 (V_THREE_ELEM): Likewise.
7079 (V_FOUR_ELEM): Likewise.
7080
7081 2014-04-28 David Malcolm <dmalcolm@redhat.com>
7082
7083 * doc/gimple.texi: Replace the description of the now-defunct
7084 union gimple_statement_d with a diagram showing the
7085 gimple_statement_base class hierarchy and its relationships to
7086 the GSS_ and GIMPLE_ enums.
7087
7088 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
7089
7090 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
7091 * config/aarch64/aarch64.c
7092 (aarch64_cannot_change_mode_class): Weaken conditions.
7093 (aarch64_modes_tieable_p): New.
7094 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
7095
7096 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
7097
7098 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
7099 (loadsync_<mode>): Change mode.
7100 (load_quadpti, store_quadpti): New.
7101 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
7102 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
7103
7104 2014-04-28 Martin Jambor <mjambor@suse.cz>
7105
7106 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
7107 same alias type as the original statement.
7108 (subreplacement_assignment_data): New type.
7109 (handle_unscalarized_data_in_subtree): New type of parameter,
7110 generate new memory accesses with same alias type as the original
7111 statement.
7112 (load_assign_lhs_subreplacements): Likewise.
7113 (sra_modify_constructor_assign): Generate new memory accesses with
7114 same alias type as the original statement.
7115
7116 2014-04-28 Richard Biener <rguenther@suse.de>
7117
7118 * tree-pass.h (TODO_verify_il): Define.
7119 (TODO_verify_all): Complete properly.
7120 * passes.c (execute_function_todo): Move existing loop-closed
7121 SSA verification under TODO_verify_il.
7122 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
7123 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
7124 Fix tree sharing issue.
7125
7126 2014-04-28 Richard Biener <rguenther@suse.de>
7127
7128 PR middle-end/60092
7129 * builtins.def (DEF_C11_BUILTIN): Add.
7130 (BUILT_IN_ALIGNED_ALLOC): Likewise.
7131 * coretypes.h (enum function_class): Add function_c11_misc.
7132 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7133 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
7134 (call_may_clobber_ref_p_1): Likewise.
7135 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7136 (mark_all_reaching_defs_necessary_1): Likewise.
7137 (propagate_necessity): Likewise.
7138 (eliminate_unnecessary_stmts): Likewise.
7139 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
7140
7141 2014-04-28 Richard Biener <rguenther@suse.de>
7142
7143 * tree-vrp.c (vrp_var_may_overflow): Remove.
7144 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
7145 with overflow immediately bump to one before that value and
7146 let iteration figure out overflow status.
7147
7148 2014-04-28 Richard Biener <rguenther@suse.de>
7149
7150 * configure.ac: Do valgrind header checks unconditionally.
7151 Add --enable-valgrind-annotations.
7152 * system.h: Guard valgrind header inclusion with
7153 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
7154 * alloc-pool.c (pool_alloc, pool_free): Use
7155 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
7156 to guard possibly dead code.
7157 * config.in: Regenerated.
7158 * configure: Likewise.
7159
7160 2014-04-28 Jeff Law <law@redhat.com>
7161
7162 PR tree-optimization/60902
7163 * tree-ssa-threadedge.c
7164 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
7165 over real defs when invalidating outputs from statements that do not
7166 produce useful outputs for threading.
7167
7168 2014-04-28 Richard Biener <rguenther@suse.de>
7169
7170 PR tree-optimization/60979
7171 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
7172 SCOPs that end in a block with a successor with abnormal
7173 predecessors.
7174
7175 2014-04-28 Richard Biener <rguenther@suse.de>
7176
7177 * tree-pass.h (execute_pass_list): Adjust prototype.
7178 * passes.c (pass_manager::execute_early_local_passes): Adjust.
7179 (do_per_function): Change callback signature, push all actual
7180 work to the callbals.
7181 (do_per_function_toporder): Likewise.
7182 (execute_function_dump): Adjust.
7183 (execute_function_todo): Likewise.
7184 (clear_last_verified): Likewise.
7185 (verify_curr_properties): Likewise.
7186 (update_properties_after_pass): Likewise.
7187 (execute_pass_list_1): Split out from ...
7188 (execute_pass_list): ... here. Adjust.
7189 (execute_ipa_pass_list): Likewise.
7190 * cgraphunit.c (cgraph_add_new_function): Adjust.
7191 (analyze_function): Likewise.
7192 (expand_function): Likewise.
7193 * cgraph.c (release_function_body): Free dominance info
7194 here instead of asserting it was magically freed elsewhere.
7195
7196 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
7197
7198 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
7199 * configure: Regenerate.
7200 * config/sparc/sparc.opt (muser-mode): New option.
7201 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
7202 for LEON3.
7203 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
7204 * doc/invoke.texi (SPARC options): Document -muser-mode.
7205
7206 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
7207
7208 * cselib.c (find_slot_memmode): Delete.
7209 (cselib_hasher): Change compare_type to a struct.
7210 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
7211 constants.
7212 (preserve_constants_and_equivs): Adjust for new compare_type.
7213 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
7214 (wrap_constant): Delete.
7215 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
7216
7217 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
7218
7219 * doc/install.texi (Building with profile feedback): Remove
7220 outdated sentence.
7221
7222 2014-04-26 Tom de Vries <tom@codesourcery.com>
7223
7224 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
7225 array accesses.
7226
7227 2014-04-25 Cary Coutant <ccoutant@google.com>
7228
7229 PR debug/60929
7230 * dwarf2out.c (should_move_die_to_comdat): A type definition
7231 can contain a subprogram definition, but don't move it to a
7232 comdat unit.
7233 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
7234 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
7235 from original DIE.
7236 (clone_tree_hash): Rename to...
7237 (clone_tree_partial): ...this; change callers. Copy
7238 DW_TAG_subprogram DIEs as declarations.
7239 (copy_decls_walk): Don't copy children of a declaration into a
7240 type unit.
7241
7242 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
7243
7244 PR target/60969
7245 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
7246 alternative 12.
7247
7248 2014-04-25 Jiong Wang <jiong.wang@arm.com>
7249
7250 * config/arm/predicates.md (call_insn_operand): Add long_call check.
7251 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
7252 reg for long_call.
7253 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
7254 restriction.
7255
7256 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7257
7258 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
7259
7260 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7261
7262 PR tree-optimization/60930
7263 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
7264 creating a multiply candidate by folding two constant
7265 multiplicands when the result overflows.
7266
7267 2014-04-25 Jakub Jelinek <jakub@redhat.com>
7268
7269 PR tree-optimization/60960
7270 * tree-vect-generic.c (expand_vector_operation): Only call
7271 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
7272
7273 2014-04-25 Tom de Vries <tom@codesourcery.com>
7274
7275 * expr.c (clobber_reg_mode): New function.
7276 * expr.h (clobber_reg): New function.
7277
7278 2014-04-25 Tom de Vries <tom@codesourcery.com>
7279
7280 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
7281 clobbers.
7282
7283 2014-04-25 Radovan Obradovic <robradovic@mips.com>
7284 Tom de Vries <tom@codesourcery.com>
7285
7286 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
7287 handle.
7288 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
7289 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
7290 new argument to find_all_hard_reg_sets call.
7291
7292 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7293
7294 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
7295 Use HOST_WIDE_INT_C for mask literal.
7296 (aarch_rev16_shleft_mask_imm_p): Likewise.
7297
7298 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
7299
7300 PR target/60941
7301 * config/sparc/sparc.md (ashlsi3_extend): Delete.
7302
7303 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
7304
7305 PR preprocessor/56540
7306 * config/i386/i386-c.c (ix86_target_macros): Define
7307 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
7308
7309 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7310
7311 * configure.ac (tga_func): Remove.
7312 (LIB_TLS_SPEC): Remove.
7313 * configure: Regenerate.
7314 * config.in: Regenerate.
7315 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
7316
7317 2014-04-25 Richard Biener <rguenther@suse.de>
7318
7319 PR ipa/60912
7320 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
7321 call stmt use/clobber sets during stmt walk instead of
7322 walking the possibly incomplete set of caller edges.
7323
7324 2014-04-25 Richard Biener <rguenther@suse.de>
7325
7326 PR ipa/60911
7327 * passes.c (apply_ipa_transforms): Inline into only caller ...
7328 (execute_one_pass): ... here. Properly bring in function
7329 bodies for nodes we want to apply IPA transforms to.
7330
7331 2014-04-24 Cong Hou <congh@google.com>
7332
7333 PR tree-optimization/60896
7334 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
7335 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
7336 (vect_mark_pattern_stmts): Set the def type of all statements in
7337 PATTERN_DEF_SEQ as vect_internal_def.
7338
7339 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7340
7341 * doc/extend.texi (PowerPC Built-in Functions): Document new
7342 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
7343 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
7344
7345 * config/rs6000/predicates.md (const_0_to_3_operand): New
7346 predicate to match 0..3 integer constants.
7347
7348 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
7349 to support adding miscellaneous builtin functions.
7350 (BU_DFP_MISC_2): Likewise.
7351 (BU_P7_MISC_1): Likewise.
7352 (BU_P7_MISC_2): Likewise.
7353 (BU_P8V_MISC_3): Likewise.
7354 (BU_MISC_1): Likewise.
7355 (BU_MISC_2): Likewise.
7356 (DIVWE): Add extended divide builtin functions.
7357 (DIVWEO): Likewise.
7358 (DIVWEU): Likewise.
7359 (DIVWEUO): Likewise.
7360 (DIVDE): Likewise.
7361 (DIVDEO): Likewise.
7362 (DIVDEU): Likewise.
7363 (DIVDEUO): Likewise.
7364 (DXEX): Add decimal floating-point builtin functions.
7365 (DXEXQ): Likewise.
7366 (DDEDPD): Likewise.
7367 (DDEDPDQ): Likewise.
7368 (DENBCD): Likewise.
7369 (DENBCDQ): Likewise.
7370 (DIEX): Likewise.
7371 (DIEXQ): Likewise.
7372 (DSCLI): Likewise.
7373 (DSCLIQ): Likewise.
7374 (DSCRI): Likewise.
7375 (DSCRIQ): Likewise.
7376 (CDTBCD): Add new BCD builtin functions.
7377 (CBCDTD): Likewise.
7378 (ADDG6S): Likewise.
7379 (BCDADD): Likewise.
7380 (BCDADD_LT): Likewise.
7381 (BCDADD_EQ): Likewise.
7382 (BCDADD_GT): Likewise.
7383 (BCDADD_OV): Likewise.
7384 (BCDSUB): Likewise.
7385 (BCDSUB_LT): Likewise.
7386 (BCDSUB_EQ): Likewise.
7387 (BCDSUB_GT): Likewise.
7388 (BCDSUB_OV): Likewise.
7389 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
7390 (UNPACK_TD): Likewise.
7391 (PACK_TF): Likewise.
7392 (UNPACK_TF): Likewise.
7393 (UNPACK_TF_0): Likewise.
7394 (UNPACK_TF_1): Likewise.
7395 (PACK_V1TI): Likewise.
7396 (UNPACK_V1TI): Likewise.
7397
7398 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
7399 support for decimal floating point builtin functions.
7400 (rs6000_expand_ternop_builtin): Add checks for the new builtin
7401 functions that take constant arguments.
7402 (rs6000_invalid_builtin): Add decimal floating point builtin support.
7403 (rs6000_init_builtins): Setup long double, _Decimal64, and
7404 _Decimal128 types for new builtin functions.
7405 (builtin_function_type): Set the unsigned flags appropriately for
7406 the new builtin functions.
7407 (rs6000_opt_masks): Add support for decimal floating point builtin
7408 functions.
7409
7410 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
7411 floating point builtin functions.
7412 (RS6000_BTM_COMMON): Likewise.
7413 (RS6000_BTI_long_double): Likewise.
7414 (RS6000_BTI_dfloat64): Likewise.
7415 (RS6000_BTI_dfloat128): Likewise.
7416 (long_double_type_internal_node): Likewise.
7417 (dfloat64_type_internal_node): Likewise.
7418 (dfloat128_type_internal_node): Likewise.
7419
7420 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
7421 2.07 bcd arithmetic instructions.
7422 (UNSPEC_BCDSUB): Likewise.
7423 (UNSPEC_BCD_OVERFLOW): Likewise.
7424 (UNSPEC_BCD_ADD_SUB): Likewise.
7425 (bcd_add_sub): Likewise.
7426 (BCD_TEST): Likewise.
7427 (bcd<bcd_add_sub>): Likewise.
7428 (bcd<bcd_add_sub>_test): Likewise.
7429 (bcd<bcd_add_sub>_test2): Likewise.
7430 (bcd<bcd_add_sub>_<code>): Likewise.
7431 (peephole2 for combined bcd ops): Likewise.
7432
7433 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
7434 decimal floating point builtin functions.
7435 (UNSPEC_DENBCD): Likewise.
7436 (UNSPEC_DXEX): Likewise.
7437 (UNSPEC_DIEX): Likewise.
7438 (UNSPEC_DSCLI): Likewise.
7439 (UNSPEC_DSCRI): Likewise.
7440 (D64_D128): Likewise.
7441 (dfp_suffix): Likewise.
7442 (dfp_ddedpd_<mode>): Likewise.
7443 (dfp_denbcd_<mode>): Likewise.
7444 (dfp_dxex_<mode>): Likewise.
7445 (dfp_diex_<mode>): Likewise.
7446 (dfp_dscli_<mode>): Likewise.
7447 (dfp_dscri_<mode>): Likewise.
7448
7449 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
7450 builtin functions.
7451 (UNSPEC_CDTBCD): Likewise.
7452 (UNSPEC_CBCDTD): Likewise.
7453 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
7454 (UNSPEC_DIVEO): Likewise.
7455 (UNSPEC_DIVEU): Likewise.
7456 (UNSPEC_DIVEUO): Likewise.
7457 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
7458 pack/unpack 128-bit types.
7459 (UNSPEC_PACK_128BIT): Likewise.
7460 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
7461 (udiv<mode>3): Use idiv_ldiv mode attribute.
7462 (div<mode>3): Likewise.
7463 (addg6s): Add new BCD builtin functions.
7464 (cdtbcd): Likewise.
7465 (cbcdtd): Likewise.
7466 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
7467 (div_extend): Likewise.
7468 (div<div_extend>_<mode>"): Likewise.
7469 (FP128_64): Add support for new builtin functions to pack/unpack
7470 128-bit types.
7471 (unpack<mode>): Likewise.
7472 (unpacktf_0): Likewise.
7473 (unpacktf_1): Likewise.
7474 (unpack<mode>_dm): Likewise.
7475 (unpack<mode>_nodm): Likewise.
7476 (pack<mode>): Likewise.
7477 (unpackv1ti): Likewise.
7478 (packv1ti): Likewise.
7479
7480 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
7481
7482 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
7483 is disabled.
7484
7485 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7486
7487 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
7488 * gimplify.c (omp_is_private): Change last argument's type to int.
7489 Only diagnose lastprivate if the simd argument is 1, only diagnose
7490 linear if the simd argument is 2.
7491 (gimplify_omp_for): Adjust omp_is_private callers. When adding
7492 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
7493 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
7494 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
7495 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
7496 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
7497 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
7498 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
7499 * tree-nested.c (convert_nonlocal_omp_clauses,
7500 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
7501
7502 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
7503
7504 PR target/60822
7505 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
7506 operand 1.
7507
7508 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
7509
7510 * flag-types.h (enum ivar_visibility): Add.
7511
7512 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
7513
7514 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
7515 function * argument.
7516
7517 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
7518
7519 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
7520
7521 2014-04-24 Radovan Obradovic <robradovic@mips.com>
7522 Tom de Vries <tom@codesourcery.com>
7523
7524 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
7525 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
7526 reg-note.
7527 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
7528 * emit-rtl.c (try_split): Same.
7529
7530 2014-04-24 Radovan Obradovic <robradovic@mips.com>
7531 Tom de Vries <tom@codesourcery.com>
7532
7533 * common.opt (fuse-caller-save): New option.
7534
7535 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
7536
7537 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
7538 elements for big-endian.
7539
7540 2014-04-24 Richard Biener <rguenther@suse.de>
7541
7542 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
7543 during TER and instead use the sepops interface for expanding
7544 non-GIMPLE_SINGLE_RHS.
7545
7546 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7547
7548 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
7549 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
7550
7551 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7552
7553 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
7554 assembler 64-bit option.
7555 * configure: Regenerate.
7556
7557 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7558
7559 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
7560 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
7561 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
7562 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
7563 (TARGET_CRYPTO): Take TARGET_SIMD into account.
7564
7565 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7566
7567 * config/aarch64/aarch64-builtins.c
7568 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
7569 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
7570 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
7571 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
7572 builtins.
7573 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
7574 (Vrevsuff): New mode attribute.
7575
7576 2014-04-24 Terry Guo <terry.guo@arm.com>
7577
7578 * config/arm/arm.h (machine_function): Define variable
7579 after_arm_reorg here.
7580 * config/arm/arm.c (after_arm_reorg): Remove the definition.
7581 (arm_split_constant): Update the way to access variable
7582 after_arm_reorg.
7583 (arm_reorg): Ditto.
7584 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
7585
7586 2014-04-23 Tom de Vries <tom@codesourcery.com>
7587
7588 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
7589
7590 2014-04-23 David Malcolm <dmalcolm@redhat.com>
7591
7592 * is-a.h: Update comments to reflect the following changes to the
7593 "pointerness" of the API, making the template parameter match the
7594 return type, allowing use of is-a.h with typedefs of pointers.
7595 (is_a_helper::cast): Return a T rather then a pointer to a T, so
7596 that the return type matches the parameter to the is_a_helper.
7597 (as_a): Likewise.
7598 (dyn_cast): Likewise.
7599
7600 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
7601 pointer from the is-a.h API.
7602
7603 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
7604 (is_a_helper <cgraph_node *>::test): ...this, matching change to
7605 is-a.h API.
7606 (is_a_helper <varpool_node>::test): Likewise, convert to...
7607 (is_a_helper <varpool_node *>::test): ...this.
7608
7609 (varpool_first_variable): Update for removal of implicit pointer
7610 from the is-a.h API.
7611 (varpool_next_variable): Likewise.
7612 (varpool_first_static_initializer): Likewise.
7613 (varpool_next_static_initializer): Likewise.
7614 (varpool_first_defined_variable): Likewise.
7615 (varpool_next_defined_variable): Likewise.
7616 (cgraph_first_defined_function): Likewise.
7617 (cgraph_next_defined_function): Likewise.
7618 (cgraph_first_function): Likewise.
7619 (cgraph_next_function): Likewise.
7620 (cgraph_first_function_with_gimple_body): Likewise.
7621 (cgraph_next_function_with_gimple_body): Likewise.
7622 (cgraph_alias_target): Likewise.
7623 (varpool_alias_target): Likewise.
7624 (cgraph_function_or_thunk_node): Likewise.
7625 (varpool_variable_node): Likewise.
7626 (symtab_real_symbol_p): Likewise.
7627 * cgraphunit.c (referred_to_p): Likewise.
7628 (analyze_functions): Likewise.
7629 (handle_alias_pairs): Likewise.
7630 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7631 * gimple-ssa.h (gimple_vuse_op): Likewise.
7632 (gimple_vdef_op): Likewise.
7633 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
7634 * gimple.c (gimple_build_asm_1): Likewise.
7635 (gimple_build_try): Likewise.
7636 (gimple_build_resx): Likewise.
7637 (gimple_build_eh_dispatch): Likewise.
7638 (gimple_build_omp_for): Likewise.
7639 (gimple_omp_for_set_clauses): Likewise.
7640
7641 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
7642 (is_a_helper <gimple_statement_asm *>::test): ...this.
7643 (is_a_helper <gimple_statement_bind>::test): Convert to...
7644 (is_a_helper <gimple_statement_bind *>::test): ...this.
7645 (is_a_helper <gimple_statement_call>::test): Convert to...
7646 (is_a_helper <gimple_statement_call *>::test): ...this.
7647 (is_a_helper <gimple_statement_catch>::test): Convert to...
7648 (is_a_helper <gimple_statement_catch *>::test): ...this.
7649 (is_a_helper <gimple_statement_resx>::test): Convert to...
7650 (is_a_helper <gimple_statement_resx *>::test): ...this.
7651 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
7652 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
7653 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
7654 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
7655 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
7656 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
7657 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
7658 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
7659 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
7660 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
7661 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
7662 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
7663 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
7664 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
7665 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
7666 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
7667 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
7668 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
7669 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
7670 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
7671 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
7672 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
7673 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
7674 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
7675 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
7676 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
7677 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
7678 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
7679 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
7680 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
7681 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
7682 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
7683 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
7684 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
7685 (is_a_helper <gimple_statement_phi>::test): Convert to...
7686 (is_a_helper <gimple_statement_phi *>::test): ...this.
7687 (is_a_helper <gimple_statement_transaction>::test): Convert to...
7688 (is_a_helper <gimple_statement_transaction *>::test): ...this.
7689 (is_a_helper <gimple_statement_try>::test): Convert to...
7690 (is_a_helper <gimple_statement_try *>::test): ...this.
7691 (is_a_helper <gimple_statement_wce>::test): Convert to...
7692 (is_a_helper <gimple_statement_wce *>::test): ...this.
7693 (is_a_helper <const gimple_statement_asm>::test): Convert to...
7694 (is_a_helper <const gimple_statement_asm *>::test): ...this.
7695 (is_a_helper <const gimple_statement_bind>::test): Convert to...
7696 (is_a_helper <const gimple_statement_bind *>::test): ...this.
7697 (is_a_helper <const gimple_statement_call>::test): Convert to...
7698 (is_a_helper <const gimple_statement_call *>::test): ...this.
7699 (is_a_helper <const gimple_statement_catch>::test): Convert to...
7700 (is_a_helper <const gimple_statement_catch *>::test): ...this.
7701 (is_a_helper <const gimple_statement_resx>::test): Convert to...
7702 (is_a_helper <const gimple_statement_resx *>::test): ...this.
7703 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
7704 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
7705 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
7706 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
7707 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
7708 Convert to...
7709 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
7710 ...this.
7711 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
7712 Convert to...
7713 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
7714 ...this.
7715 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
7716 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
7717 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
7718 to...
7719 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
7720 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
7721 to...
7722 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
7723 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
7724 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
7725 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
7726 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
7727 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
7728 to...
7729 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
7730 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
7731 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
7732 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
7733 to...
7734 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
7735 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
7736 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
7737 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
7738 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
7739 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
7740 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
7741 (is_a_helper <const gimple_statement_phi>::test): Convert to...
7742 (is_a_helper <const gimple_statement_phi *>::test): ...this.
7743 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
7744 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
7745 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
7746 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
7747 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
7748 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
7749 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
7750 to...
7751 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
7752 ...this.
7753 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
7754 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
7755
7756 (gimple_use_ops): Update for removal of implicit pointer from the
7757 is-a.h API.
7758 (gimple_set_use_ops): Likewise.
7759 (gimple_vuse): Likewise.
7760 (gimple_vdef): Likewise.
7761 (gimple_vuse_ptr): Likewise.
7762 (gimple_vdef_ptr): Likewise.
7763 (gimple_set_vuse): Likewise.
7764 (gimple_set_vdef): Likewise.
7765 (gimple_omp_return_set_lhs): Likewise.
7766 (gimple_omp_return_lhs): Likewise.
7767 (gimple_omp_return_lhs_ptr): Likewise.
7768 (gimple_call_fntype): Likewise.
7769 (gimple_call_set_fntype): Likewise.
7770 (gimple_call_set_internal_fn): Likewise.
7771 (gimple_call_use_set): Likewise.
7772 (gimple_call_clobber_set): Likewise.
7773 (gimple_bind_vars): Likewise.
7774 (gimple_bind_set_vars): Likewise.
7775 (gimple_bind_body_ptr): Likewise.
7776 (gimple_bind_set_body): Likewise.
7777 (gimple_bind_add_stmt): Likewise.
7778 (gimple_bind_block): Likewise.
7779 (gimple_bind_set_block): Likewise.
7780 (gimple_asm_ninputs): Likewise.
7781 (gimple_asm_noutputs): Likewise.
7782 (gimple_asm_nclobbers): Likewise.
7783 (gimple_asm_nlabels): Likewise.
7784 (gimple_asm_input_op): Likewise.
7785 (gimple_asm_input_op_ptr): Likewise.
7786 (gimple_asm_output_op): Likewise.
7787 (gimple_asm_output_op_ptr): Likewise.
7788 (gimple_asm_set_output_op): Likewise.
7789 (gimple_asm_clobber_op): Likewise.
7790 (gimple_asm_set_clobber_op): Likewise.
7791 (gimple_asm_label_op): Likewise.
7792 (gimple_asm_set_label_op): Likewise.
7793 (gimple_asm_string): Likewise.
7794 (gimple_catch_types): Likewise.
7795 (gimple_catch_types_ptr): Likewise.
7796 (gimple_catch_handler_ptr): Likewise.
7797 (gimple_catch_set_types): Likewise.
7798 (gimple_catch_set_handler): Likewise.
7799 (gimple_eh_filter_types): Likewise.
7800 (gimple_eh_filter_types_ptr): Likewise.
7801 (gimple_eh_filter_failure_ptr): Likewise.
7802 (gimple_eh_filter_set_types): Likewise.
7803 (gimple_eh_filter_set_failure): Likewise.
7804 (gimple_eh_must_not_throw_fndecl): Likewise.
7805 (gimple_eh_must_not_throw_set_fndecl): Likewise.
7806 (gimple_eh_else_n_body_ptr): Likewise.
7807 (gimple_eh_else_e_body_ptr): Likewise.
7808 (gimple_eh_else_set_n_body): Likewise.
7809 (gimple_eh_else_set_e_body): Likewise.
7810 (gimple_try_eval_ptr): Likewise.
7811 (gimple_try_cleanup_ptr): Likewise.
7812 (gimple_try_set_eval): Likewise.
7813 (gimple_try_set_cleanup): Likewise.
7814 (gimple_wce_cleanup_ptr): Likewise.
7815 (gimple_wce_set_cleanup): Likewise.
7816 (gimple_phi_capacity): Likewise.
7817 (gimple_phi_num_args): Likewise.
7818 (gimple_phi_result): Likewise.
7819 (gimple_phi_result_ptr): Likewise.
7820 (gimple_phi_set_result): Likewise.
7821 (gimple_phi_arg): Likewise.
7822 (gimple_phi_set_arg): Likewise.
7823 (gimple_resx_region): Likewise.
7824 (gimple_resx_set_region): Likewise.
7825 (gimple_eh_dispatch_region): Likewise.
7826 (gimple_eh_dispatch_set_region): Likewise.
7827 (gimple_omp_critical_name): Likewise.
7828 (gimple_omp_critical_name_ptr): Likewise.
7829 (gimple_omp_critical_set_name): Likewise.
7830 (gimple_omp_for_clauses): Likewise.
7831 (gimple_omp_for_clauses_ptr): Likewise.
7832 (gimple_omp_for_set_clauses): Likewise.
7833 (gimple_omp_for_collapse): Likewise.
7834 (gimple_omp_for_index): Likewise.
7835 (gimple_omp_for_index_ptr): Likewise.
7836 (gimple_omp_for_set_index): Likewise.
7837 (gimple_omp_for_initial): Likewise.
7838 (gimple_omp_for_initial_ptr): Likewise.
7839 (gimple_omp_for_set_initial): Likewise.
7840 (gimple_omp_for_final): Likewise.
7841 (gimple_omp_for_final_ptr): Likewise.
7842 (gimple_omp_for_set_final): Likewise.
7843 (gimple_omp_for_incr): Likewise.
7844 (gimple_omp_for_incr_ptr): Likewise.
7845 (gimple_omp_for_set_incr): Likewise.
7846 (gimple_omp_for_pre_body_ptr): Likewise.
7847 (gimple_omp_for_set_pre_body): Likewise.
7848 (gimple_omp_parallel_clauses): Likewise.
7849 (gimple_omp_parallel_clauses_ptr): Likewise.
7850 (gimple_omp_parallel_set_clauses): Likewise.
7851 (gimple_omp_parallel_child_fn): Likewise.
7852 (gimple_omp_parallel_child_fn_ptr): Likewise.
7853 (gimple_omp_parallel_set_child_fn): Likewise.
7854 (gimple_omp_parallel_data_arg): Likewise.
7855 (gimple_omp_parallel_data_arg_ptr): Likewise.
7856 (gimple_omp_parallel_set_data_arg): Likewise.
7857 (gimple_omp_task_clauses): Likewise.
7858 (gimple_omp_task_clauses_ptr): Likewise.
7859 (gimple_omp_task_set_clauses): Likewise.
7860 (gimple_omp_task_child_fn): Likewise.
7861 (gimple_omp_task_child_fn_ptr): Likewise.
7862 (gimple_omp_task_set_child_fn): Likewise.
7863 (gimple_omp_task_data_arg): Likewise.
7864 (gimple_omp_task_data_arg_ptr): Likewise.
7865 (gimple_omp_task_set_data_arg): Likewise.
7866 (gimple_omp_taskreg_clauses): Likewise.
7867 (gimple_omp_taskreg_clauses_ptr): Likewise.
7868 (gimple_omp_taskreg_set_clauses): Likewise.
7869 (gimple_omp_taskreg_child_fn): Likewise.
7870 (gimple_omp_taskreg_child_fn_ptr): Likewise.
7871 (gimple_omp_taskreg_set_child_fn): Likewise.
7872 (gimple_omp_taskreg_data_arg): Likewise.
7873 (gimple_omp_taskreg_data_arg_ptr): Likewise.
7874 (gimple_omp_taskreg_set_data_arg): Likewise.
7875 (gimple_omp_task_copy_fn): Likewise.
7876 (gimple_omp_task_copy_fn_ptr): Likewise.
7877 (gimple_omp_task_set_copy_fn): Likewise.
7878 (gimple_omp_task_arg_size): Likewise.
7879 (gimple_omp_task_arg_size_ptr): Likewise.
7880 (gimple_omp_task_set_arg_size): Likewise.
7881 (gimple_omp_task_arg_align): Likewise.
7882 (gimple_omp_task_arg_align_ptr): Likewise.
7883 (gimple_omp_task_set_arg_align): Likewise.
7884 (gimple_omp_single_clauses): Likewise.
7885 (gimple_omp_single_clauses_ptr): Likewise.
7886 (gimple_omp_single_set_clauses): Likewise.
7887 (gimple_omp_target_clauses): Likewise.
7888 (gimple_omp_target_clauses_ptr): Likewise.
7889 (gimple_omp_target_set_clauses): Likewise.
7890 (gimple_omp_target_child_fn): Likewise.
7891 (gimple_omp_target_child_fn_ptr): Likewise.
7892 (gimple_omp_target_set_child_fn): Likewise.
7893 (gimple_omp_target_data_arg): Likewise.
7894 (gimple_omp_target_data_arg_ptr): Likewise.
7895 (gimple_omp_target_set_data_arg): Likewise.
7896 (gimple_omp_teams_clauses): Likewise.
7897 (gimple_omp_teams_clauses_ptr): Likewise.
7898 (gimple_omp_teams_set_clauses): Likewise.
7899 (gimple_omp_sections_clauses): Likewise.
7900 (gimple_omp_sections_clauses_ptr): Likewise.
7901 (gimple_omp_sections_set_clauses): Likewise.
7902 (gimple_omp_sections_control): Likewise.
7903 (gimple_omp_sections_control_ptr): Likewise.
7904 (gimple_omp_sections_set_control): Likewise.
7905 (gimple_omp_for_set_cond): Likewise.
7906 (gimple_omp_for_cond): Likewise.
7907 (gimple_omp_atomic_store_set_val): Likewise.
7908 (gimple_omp_atomic_store_val): Likewise.
7909 (gimple_omp_atomic_store_val_ptr): Likewise.
7910 (gimple_omp_atomic_load_set_lhs): Likewise.
7911 (gimple_omp_atomic_load_lhs): Likewise.
7912 (gimple_omp_atomic_load_lhs_ptr): Likewise.
7913 (gimple_omp_atomic_load_set_rhs): Likewise.
7914 (gimple_omp_atomic_load_rhs): Likewise.
7915 (gimple_omp_atomic_load_rhs_ptr): Likewise.
7916 (gimple_omp_continue_control_def): Likewise.
7917 (gimple_omp_continue_control_def_ptr): Likewise.
7918 (gimple_omp_continue_set_control_def): Likewise.
7919 (gimple_omp_continue_control_use): Likewise.
7920 (gimple_omp_continue_control_use_ptr): Likewise.
7921 (gimple_omp_continue_set_control_use): Likewise.
7922 (gimple_transaction_body_ptr): Likewise.
7923 (gimple_transaction_label): Likewise.
7924 (gimple_transaction_label_ptr): Likewise.
7925 (gimple_transaction_set_body): Likewise.
7926 (gimple_transaction_set_label): Likewise.
7927
7928 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
7929 * ipa-inline-analysis.c (inline_write_summary): Likewise.
7930 * ipa-ref.c (ipa_record_reference): Likewise.
7931 * ipa-reference.c (analyze_function): Likewise.
7932 (ipa_reference_write_optimization_summary): Likewise.
7933 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
7934 (address_taken_from_non_vtable_p): Likewise.
7935 (comdat_can_be_unshared_p_1): Likewise.
7936 * lto-cgraph.c (lto_output_ref): Likewise.
7937 (add_references): Likewise.
7938 (compute_ltrans_boundary): Likewise.
7939 (output_symtab): Likewise.
7940 (input_ref): Likewise.
7941 (input_cgraph_1): Likewise.
7942 (output_cgraph_opt_summary): Likewise.
7943 * lto-streamer-out.c (lto_output): Likewise.
7944 (output_symbol_p): Likewise.
7945 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
7946 (lsei_start_function_in_partition): Likewise.
7947 (lsei_next_variable_in_partition): Likewise.
7948 (lsei_start_variable_in_partition): Likewise.
7949 * symtab.c (insert_to_assembler_name_hash): Likewise.
7950 (unlink_from_assembler_name_hash): Likewise.
7951 (symtab_unregister_node): Likewise.
7952 (symtab_remove_node): Likewise.
7953 (dump_symtab_node): Likewise.
7954 (verify_symtab_base): Likewise.
7955 (verify_symtab_node): Likewise.
7956 (symtab_make_decl_local): Likewise.
7957 (symtab_alias_ultimate_target): Likewise.
7958 (symtab_resolve_alias): Likewise.
7959 (symtab_get_symbol_partitioning_class): Likewise.
7960 * tree-phinodes.c (allocate_phi_node): Likewise.
7961 (reserve_phi_args_for_new_edge): Likewise.
7962 (remove_phi_args): Likewise.
7963 * varpool.c (varpool_node_for_asm): Likewise.
7964 (varpool_remove_unreferenced_decls): Likewise.
7965
7966 2014-04-23 Jeff Law <law@redhat.com>
7967
7968 PR tree-optimization/60902
7969 * tree-ssa-threadedge.c
7970 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
7971 invalidate outputs from statements that do not produce useful
7972 outputs for threading.
7973
7974 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
7975
7976 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
7977 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
7978 machine descriptions for Stack Smashing Protector.
7979
7980 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
7981
7982 * aarch64.md (<optab>_rol<mode>3): New pattern.
7983 (<optab>_rolsi3_uxtw): Likewise.
7984 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
7985
7986 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
7987
7988 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
7989 (arm_cortex_a12_tune): Likewise.
7990
7991 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7992
7993 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
7994
7995 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7996
7997 * config/arm/arm.md (arm_rev16si2): New pattern.
7998 (arm_rev16si2_alt): Likewise.
7999 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
8000
8001 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8002
8003 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
8004 (rev16<mode>2_alt): Likewise.
8005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
8006 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
8007 (aarch_rev16_shleft_mask_imm_p): Likewise.
8008 (aarch_rev16_p_1): Likewise.
8009 (aarch_rev16_p): Likewise.
8010 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
8011 (aarch_rev16_shright_mask_imm_p): Likewise.
8012 (aarch_rev16_shleft_mask_imm_p): Likewise.
8013
8014 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8015
8016 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
8017 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
8018 rev cost.
8019 (cortex_a53_extra_costs): Likewise.
8020 (cortex_a57_extra_costs): Likewise.
8021 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
8022 (cortexa7_extra_costs): Likewise.
8023 (cortexa8_extra_costs): Likewise.
8024 (cortexa12_extra_costs): Likewise.
8025 (cortexa15_extra_costs): Likewise.
8026 (v7m_extra_costs): Likewise.
8027 (arm_new_rtx_costs): Handle BSWAP.
8028
8029 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8030
8031 * config/arm/arm.c (cortexa8_extra_costs): New table.
8032 (arm_cortex_a8_tune): New tuning struct.
8033 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
8034
8035 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8036
8037 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
8038
8039 2014-04-23 Richard Biener <rguenther@suse.de>
8040
8041 * Makefile.in (OBJS): Remove loop-unswitch.o.
8042 * tree-pass.h (make_pass_rtl_unswitch): Remove.
8043 * passes.def (pass_rtl_unswitch): Likewise.
8044 * loop-init.c (gate_rtl_unswitch): Likewise.
8045 (rtl_unswitch): Likewise.
8046 (pass_data_rtl_unswitch): Likewise.
8047 (pass_rtl_unswitch): Likewise.
8048 (make_pass_rtl_unswitch): Likewise.
8049 * rtl.h (reversed_condition): Likewise.
8050 (compare_and_jump_seq): Likewise.
8051 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
8052 and make static.
8053 * loop-unroll.c (compare_and_jump_seq): Likewise.
8054
8055 2014-04-23 Richard Biener <rguenther@suse.de>
8056
8057 PR tree-optimization/60903
8058 * tree-ssa-loop-im.c (analyze_memory_references): Remove
8059 commented code block.
8060 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
8061 loop flags to newly created BBs and edges.
8062
8063 2014-04-23 Nick Clifton <nickc@redhat.com>
8064
8065 * config/msp430/msp430.c (msp430_handle_option): Move function
8066 to msp430-common.c
8067 (msp430_option_override): Simplify mcu and mcpu option handling.
8068 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
8069 support for -mhwmult command line option.
8070 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
8071 -mhwmult command line option.
8072 (msp430_hwmult_enabled): Delete.
8073 (msp43o_output_labelref): Add support for -mhwmult command line option.
8074 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
8075 (umulsidi3): Likewise.
8076 * config/msp430/msp430.opt (mmcu): Add Report attribute.
8077 (mcpu, mlarge, msmall): Likewise.
8078 (mhwmult): New option.
8079 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
8080 prototype.
8081 (msp430_is_f5_mcu): Remove prototype.
8082 (msp430_use_f5_series_hwmult): Add prototype.
8083 * config/msp430/msp430-opts.h: New file.
8084 * common/config/msp430: New directory.
8085 * common/config/msp430/msp430-common.c: New file.
8086 * config.gcc (msp430): Remove target_has_targetm_common.
8087 * doc/invoke.texi: Document -mhwmult command line option.
8088
8089 2014-04-23 Nick Clifton <nickc@redhat.com>
8090
8091 * config/i386/cygwin.h (ENDFILE_SPEC): Include
8092 default-manifest.o if it can be found in the search path.
8093 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
8094
8095 2014-04-23 Terry Guo <terry.guo@arm.com>
8096
8097 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
8098
8099 2014-04-23 Richard Biener <rguenther@suse.de>
8100
8101 PR middle-end/60895
8102 * tree-inline.c (declare_return_variable): Use mark_addressable.
8103
8104 2014-04-23 Richard Biener <rguenther@suse.de>
8105
8106 PR middle-end/60891
8107 * loop-init.c (loop_optimizer_init): Make sure to apply
8108 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
8109
8110 2014-04-22 Jakub Jelinek <jakub@redhat.com>
8111
8112 PR sanitizer/60275
8113 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
8114 New options.
8115 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
8116 if flag_sanitize_undefined_trap_on_error.
8117 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
8118 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
8119 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
8120 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
8121 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
8122 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
8123 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
8124 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
8125 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
8126 * ubsan.c (ubsan_instrument_unreachable): Return
8127 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
8128 (ubsan_expand_null_ifn): Emit __builtin_trap ()
8129 if flag_sanitize_undefined_trap_on_error and
8130 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
8131 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
8132 instrument_bool_enum_load): Emit __builtin_trap () if
8133 flag_sanitize_undefined_trap_on_error and
8134 __builtin_handle_*_abort () if !flag_sanitize_recover.
8135 * doc/invoke.texi (-fsanitize-recover,
8136 -fsanitize-undefined-trap-on-error): Document.
8137
8138 2014-04-22 Christian Bruel <christian.bruel@st.com>
8139
8140 * config/sh/sh.md (mov<mode>): Replace movQIHI.
8141 Force immediates to SImode.
8142
8143 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
8144
8145 * config/nios2/nios2.md (UNSPEC_ROUND): New.
8146 (lroundsfsi2): New.
8147 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
8148 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
8149 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
8150 (nios2_fpu_insn): Add entry for round.
8151 (N2FPU_NO_ERRNO_P): Define.
8152 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
8153 flag_errno_math.
8154 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
8155
8156 2014-04-22 Richard Henderson <rth@redhat.com>
8157
8158 * config/aarch64/aarch64 (addti3, subti3): New expanders.
8159 (add<GPI>3_compare0): Remove leading * from name.
8160 (add<GPI>3_carryin): Likewise.
8161 (sub<GPI>3_compare0): Likewise.
8162 (sub<GPI>3_carryin): Likewise.
8163 (<su_optab>mulditi3): New expander.
8164 (multi3): New expander.
8165 (madd<GPI>): Remove leading * from name.
8166
8167 2014-04-22 Martin Jambor <mjambor@suse.cz>
8168
8169 * cgraphclones.c (cgraph_function_versioning): Copy
8170 ipa_transforms_to_apply instead of asserting it is empty.
8171
8172 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
8173
8174 PR target/60868
8175 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
8176 on count_exp to get mode.
8177
8178 2014-04-22 Andrew Pinski <apinski@cavium.com>
8179
8180 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
8181 Handle TLS for ILP32.
8182 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
8183 (tlsie_small_<mode>): this and handle PTR.
8184 (tlsie_small_sidi): New pattern.
8185 (tlsle_small): Change to an expand to handle ILP32.
8186 (tlsle_small_<mode>): New pattern.
8187 (tlsdesc_small): Rename to ...
8188 (tlsdesc_small_<mode>): this and handle PTR.
8189
8190 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8191
8192 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
8193
8194 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8195
8196 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
8197 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
8198 (aarch64_types_signed_poly_qualifiers): Likewise.
8199 (aarch64_types_unsigned_signed_qualifiers): Likewise.
8200 (aarch64_types_poly_signed_qualifiers): Likewise.
8201 (TYPES_REINTERP_SS): Type macro added.
8202 (TYPES_REINTERP_SU): Likewise.
8203 (TYPES_REINTERP_SP): Likewise.
8204 (TYPES_REINTERP_US): Likewise.
8205 (TYPES_REINTERP_PS): Likewise.
8206 (aarch64_fold_builtin): New expression folding added.
8207 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
8208 Declarations removed.
8209 (REINTERP_SS): Declarations added.
8210 (REINTERP_US): Likewise.
8211 (REINTERP_PS): Likewise.
8212 (REINTERP_SU): Likewise.
8213 (REINTERP_SP): Likewise.
8214 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
8215 (vreinterpretq_p8_f64): Likewise.
8216 (vreinterpret_p16_f64): Likewise.
8217 (vreinterpretq_p16_f64): Likewise.
8218 (vreinterpret_f32_f64): Likewise.
8219 (vreinterpretq_f32_f64): Likewise.
8220 (vreinterpret_f64_f32): Likewise.
8221 (vreinterpret_f64_p8): Likewise.
8222 (vreinterpret_f64_p16): Likewise.
8223 (vreinterpret_f64_s8): Likewise.
8224 (vreinterpret_f64_s16): Likewise.
8225 (vreinterpret_f64_s32): Likewise.
8226 (vreinterpret_f64_s64): Likewise.
8227 (vreinterpret_f64_u8): Likewise.
8228 (vreinterpret_f64_u16): Likewise.
8229 (vreinterpret_f64_u32): Likewise.
8230 (vreinterpret_f64_u64): Likewise.
8231 (vreinterpretq_f64_f32): Likewise.
8232 (vreinterpretq_f64_p8): Likewise.
8233 (vreinterpretq_f64_p16): Likewise.
8234 (vreinterpretq_f64_s8): Likewise.
8235 (vreinterpretq_f64_s16): Likewise.
8236 (vreinterpretq_f64_s32): Likewise.
8237 (vreinterpretq_f64_s64): Likewise.
8238 (vreinterpretq_f64_u8): Likewise.
8239 (vreinterpretq_f64_u16): Likewise.
8240 (vreinterpretq_f64_u32): Likewise.
8241 (vreinterpretq_f64_u64): Likewise.
8242 (vreinterpret_s64_f64): Likewise.
8243 (vreinterpretq_s64_f64): Likewise.
8244 (vreinterpret_u64_f64): Likewise.
8245 (vreinterpretq_u64_f64): Likewise.
8246 (vreinterpret_s8_f64): Likewise.
8247 (vreinterpretq_s8_f64): Likewise.
8248 (vreinterpret_s16_f64): Likewise.
8249 (vreinterpretq_s16_f64): Likewise.
8250 (vreinterpret_s32_f64): Likewise.
8251 (vreinterpretq_s32_f64): Likewise.
8252 (vreinterpret_u8_f64): Likewise.
8253 (vreinterpretq_u8_f64): Likewise.
8254 (vreinterpret_u16_f64): Likewise.
8255 (vreinterpretq_u16_f64): Likewise.
8256 (vreinterpret_u32_f64): Likewise.
8257 (vreinterpretq_u32_f64): Likewise.
8258
8259 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8260
8261 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
8262 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
8263 (vreinterpret_p8_s8): Likewise.
8264 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
8265 (vreinterpret_p8_s16): Likewise.
8266 (vreinterpret_p8_s32): Likewise.
8267 (vreinterpret_p8_s64): Likewise.
8268 (vreinterpret_p8_f32): Likewise.
8269 (vreinterpret_p8_u8): Likewise.
8270 (vreinterpret_p8_u16): Likewise.
8271 (vreinterpret_p8_u32): Likewise.
8272 (vreinterpret_p8_u64): Likewise.
8273 (vreinterpret_p8_p16): Likewise.
8274 (vreinterpretq_p8_s8): Likewise.
8275 (vreinterpretq_p8_s16): Likewise.
8276 (vreinterpretq_p8_s32): Likewise.
8277 (vreinterpretq_p8_s64): Likewise.
8278 (vreinterpretq_p8_f32): Likewise.
8279 (vreinterpretq_p8_u8): Likewise.
8280 (vreinterpretq_p8_u16): Likewise.
8281 (vreinterpretq_p8_u32): Likewise.
8282 (vreinterpretq_p8_u64): Likewise.
8283 (vreinterpretq_p8_p16): Likewise.
8284 (vreinterpret_p16_s8): Likewise.
8285 (vreinterpret_p16_s16): Likewise.
8286 (vreinterpret_p16_s32): Likewise.
8287 (vreinterpret_p16_s64): Likewise.
8288 (vreinterpret_p16_f32): Likewise.
8289 (vreinterpret_p16_u8): Likewise.
8290 (vreinterpret_p16_u16): Likewise.
8291 (vreinterpret_p16_u32): Likewise.
8292 (vreinterpret_p16_u64): Likewise.
8293 (vreinterpret_p16_p8): Likewise.
8294 (vreinterpretq_p16_s8): Likewise.
8295 (vreinterpretq_p16_s16): Likewise.
8296 (vreinterpretq_p16_s32): Likewise.
8297 (vreinterpretq_p16_s64): Likewise.
8298 (vreinterpretq_p16_f32): Likewise.
8299 (vreinterpretq_p16_u8): Likewise.
8300 (vreinterpretq_p16_u16): Likewise.
8301 (vreinterpretq_p16_u32): Likewise.
8302 (vreinterpretq_p16_u64): Likewise.
8303 (vreinterpretq_p16_p8): Likewise.
8304 (vreinterpret_f32_s8): Likewise.
8305 (vreinterpret_f32_s16): Likewise.
8306 (vreinterpret_f32_s32): Likewise.
8307 (vreinterpret_f32_s64): Likewise.
8308 (vreinterpret_f32_u8): Likewise.
8309 (vreinterpret_f32_u16): Likewise.
8310 (vreinterpret_f32_u32): Likewise.
8311 (vreinterpret_f32_u64): Likewise.
8312 (vreinterpret_f32_p8): Likewise.
8313 (vreinterpret_f32_p16): Likewise.
8314 (vreinterpretq_f32_s8): Likewise.
8315 (vreinterpretq_f32_s16): Likewise.
8316 (vreinterpretq_f32_s32): Likewise.
8317 (vreinterpretq_f32_s64): Likewise.
8318 (vreinterpretq_f32_u8): Likewise.
8319 (vreinterpretq_f32_u16): Likewise.
8320 (vreinterpretq_f32_u32): Likewise.
8321 (vreinterpretq_f32_u64): Likewise.
8322 (vreinterpretq_f32_p8): Likewise.
8323 (vreinterpretq_f32_p16): Likewise.
8324 (vreinterpret_s64_s8): Likewise.
8325 (vreinterpret_s64_s16): Likewise.
8326 (vreinterpret_s64_s32): Likewise.
8327 (vreinterpret_s64_f32): Likewise.
8328 (vreinterpret_s64_u8): Likewise.
8329 (vreinterpret_s64_u16): Likewise.
8330 (vreinterpret_s64_u32): Likewise.
8331 (vreinterpret_s64_u64): Likewise.
8332 (vreinterpret_s64_p8): Likewise.
8333 (vreinterpret_s64_p16): Likewise.
8334 (vreinterpretq_s64_s8): Likewise.
8335 (vreinterpretq_s64_s16): Likewise.
8336 (vreinterpretq_s64_s32): Likewise.
8337 (vreinterpretq_s64_f32): Likewise.
8338 (vreinterpretq_s64_u8): Likewise.
8339 (vreinterpretq_s64_u16): Likewise.
8340 (vreinterpretq_s64_u32): Likewise.
8341 (vreinterpretq_s64_u64): Likewise.
8342 (vreinterpretq_s64_p8): Likewise.
8343 (vreinterpretq_s64_p16): Likewise.
8344 (vreinterpret_u64_s8): Likewise.
8345 (vreinterpret_u64_s16): Likewise.
8346 (vreinterpret_u64_s32): Likewise.
8347 (vreinterpret_u64_s64): Likewise.
8348 (vreinterpret_u64_f32): Likewise.
8349 (vreinterpret_u64_u8): Likewise.
8350 (vreinterpret_u64_u16): Likewise.
8351 (vreinterpret_u64_u32): Likewise.
8352 (vreinterpret_u64_p8): Likewise.
8353 (vreinterpret_u64_p16): Likewise.
8354 (vreinterpretq_u64_s8): Likewise.
8355 (vreinterpretq_u64_s16): Likewise.
8356 (vreinterpretq_u64_s32): Likewise.
8357 (vreinterpretq_u64_s64): Likewise.
8358 (vreinterpretq_u64_f32): Likewise.
8359 (vreinterpretq_u64_u8): Likewise.
8360 (vreinterpretq_u64_u16): Likewise.
8361 (vreinterpretq_u64_u32): Likewise.
8362 (vreinterpretq_u64_p8): Likewise.
8363 (vreinterpretq_u64_p16): Likewise.
8364 (vreinterpret_s8_s16): Likewise.
8365 (vreinterpret_s8_s32): Likewise.
8366 (vreinterpret_s8_s64): Likewise.
8367 (vreinterpret_s8_f32): Likewise.
8368 (vreinterpret_s8_u8): Likewise.
8369 (vreinterpret_s8_u16): Likewise.
8370 (vreinterpret_s8_u32): Likewise.
8371 (vreinterpret_s8_u64): Likewise.
8372 (vreinterpret_s8_p8): Likewise.
8373 (vreinterpret_s8_p16): Likewise.
8374 (vreinterpretq_s8_s16): Likewise.
8375 (vreinterpretq_s8_s32): Likewise.
8376 (vreinterpretq_s8_s64): Likewise.
8377 (vreinterpretq_s8_f32): Likewise.
8378 (vreinterpretq_s8_u8): Likewise.
8379 (vreinterpretq_s8_u16): Likewise.
8380 (vreinterpretq_s8_u32): Likewise.
8381 (vreinterpretq_s8_u64): Likewise.
8382 (vreinterpretq_s8_p8): Likewise.
8383 (vreinterpretq_s8_p16): Likewise.
8384 (vreinterpret_s16_s8): Likewise.
8385 (vreinterpret_s16_s32): Likewise.
8386 (vreinterpret_s16_s64): Likewise.
8387 (vreinterpret_s16_f32): Likewise.
8388 (vreinterpret_s16_u8): Likewise.
8389 (vreinterpret_s16_u16): Likewise.
8390 (vreinterpret_s16_u32): Likewise.
8391 (vreinterpret_s16_u64): Likewise.
8392 (vreinterpret_s16_p8): Likewise.
8393 (vreinterpret_s16_p16): Likewise.
8394 (vreinterpretq_s16_s8): Likewise.
8395 (vreinterpretq_s16_s32): Likewise.
8396 (vreinterpretq_s16_s64): Likewise.
8397 (vreinterpretq_s16_f32): Likewise.
8398 (vreinterpretq_s16_u8): Likewise.
8399 (vreinterpretq_s16_u16): Likewise.
8400 (vreinterpretq_s16_u32): Likewise.
8401 (vreinterpretq_s16_u64): Likewise.
8402 (vreinterpretq_s16_p8): Likewise.
8403 (vreinterpretq_s16_p16): Likewise.
8404 (vreinterpret_s32_s8): Likewise.
8405 (vreinterpret_s32_s16): Likewise.
8406 (vreinterpret_s32_s64): Likewise.
8407 (vreinterpret_s32_f32): Likewise.
8408 (vreinterpret_s32_u8): Likewise.
8409 (vreinterpret_s32_u16): Likewise.
8410 (vreinterpret_s32_u32): Likewise.
8411 (vreinterpret_s32_u64): Likewise.
8412 (vreinterpret_s32_p8): Likewise.
8413 (vreinterpret_s32_p16): Likewise.
8414 (vreinterpretq_s32_s8): Likewise.
8415 (vreinterpretq_s32_s16): Likewise.
8416 (vreinterpretq_s32_s64): Likewise.
8417 (vreinterpretq_s32_f32): Likewise.
8418 (vreinterpretq_s32_u8): Likewise.
8419 (vreinterpretq_s32_u16): Likewise.
8420 (vreinterpretq_s32_u32): Likewise.
8421 (vreinterpretq_s32_u64): Likewise.
8422 (vreinterpretq_s32_p8): Likewise.
8423 (vreinterpretq_s32_p16): Likewise.
8424 (vreinterpret_u8_s8): Likewise.
8425 (vreinterpret_u8_s16): Likewise.
8426 (vreinterpret_u8_s32): Likewise.
8427 (vreinterpret_u8_s64): Likewise.
8428 (vreinterpret_u8_f32): Likewise.
8429 (vreinterpret_u8_u16): Likewise.
8430 (vreinterpret_u8_u32): Likewise.
8431 (vreinterpret_u8_u64): Likewise.
8432 (vreinterpret_u8_p8): Likewise.
8433 (vreinterpret_u8_p16): Likewise.
8434 (vreinterpretq_u8_s8): Likewise.
8435 (vreinterpretq_u8_s16): Likewise.
8436 (vreinterpretq_u8_s32): Likewise.
8437 (vreinterpretq_u8_s64): Likewise.
8438 (vreinterpretq_u8_f32): Likewise.
8439 (vreinterpretq_u8_u16): Likewise.
8440 (vreinterpretq_u8_u32): Likewise.
8441 (vreinterpretq_u8_u64): Likewise.
8442 (vreinterpretq_u8_p8): Likewise.
8443 (vreinterpretq_u8_p16): Likewise.
8444 (vreinterpret_u16_s8): Likewise.
8445 (vreinterpret_u16_s16): Likewise.
8446 (vreinterpret_u16_s32): Likewise.
8447 (vreinterpret_u16_s64): Likewise.
8448 (vreinterpret_u16_f32): Likewise.
8449 (vreinterpret_u16_u8): Likewise.
8450 (vreinterpret_u16_u32): Likewise.
8451 (vreinterpret_u16_u64): Likewise.
8452 (vreinterpret_u16_p8): Likewise.
8453 (vreinterpret_u16_p16): Likewise.
8454 (vreinterpretq_u16_s8): Likewise.
8455 (vreinterpretq_u16_s16): Likewise.
8456 (vreinterpretq_u16_s32): Likewise.
8457 (vreinterpretq_u16_s64): Likewise.
8458 (vreinterpretq_u16_f32): Likewise.
8459 (vreinterpretq_u16_u8): Likewise.
8460 (vreinterpretq_u16_u32): Likewise.
8461 (vreinterpretq_u16_u64): Likewise.
8462 (vreinterpretq_u16_p8): Likewise.
8463 (vreinterpretq_u16_p16): Likewise.
8464 (vreinterpret_u32_s8): Likewise.
8465 (vreinterpret_u32_s16): Likewise.
8466 (vreinterpret_u32_s32): Likewise.
8467 (vreinterpret_u32_s64): Likewise.
8468 (vreinterpret_u32_f32): Likewise.
8469 (vreinterpret_u32_u8): Likewise.
8470 (vreinterpret_u32_u16): Likewise.
8471 (vreinterpret_u32_u64): Likewise.
8472 (vreinterpret_u32_p8): Likewise.
8473 (vreinterpret_u32_p16): Likewise.
8474 (vreinterpretq_u32_s8): Likewise.
8475 (vreinterpretq_u32_s16): Likewise.
8476 (vreinterpretq_u32_s32): Likewise.
8477 (vreinterpretq_u32_s64): Likewise.
8478 (vreinterpretq_u32_f32): Likewise.
8479 (vreinterpretq_u32_u8): Likewise.
8480 (vreinterpretq_u32_u16): Likewise.
8481 (vreinterpretq_u32_u64): Likewise.
8482 (vreinterpretq_u32_p8): Likewise.
8483 (vreinterpretq_u32_p16): Likewise.
8484
8485 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8486
8487 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
8488 Pattern extended.
8489 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
8490 (sqabs): Likewise.
8491 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
8492 (vqnegd_s64): Likewise.
8493 (vqabs_s64): Likewise.
8494 (vqabsd_s64): Likewise.
8495
8496 2014-04-22 Richard Henderson <rth@redhat.com>
8497
8498 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
8499 computation to the top of the loop.
8500
8501 2014-04-22 Renlin <renlin.li@arm.com>
8502 Jiong Wang <jiong.wang@arm.com>
8503
8504 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
8505 * config/aarch64/aarch64.c (aarch64_layout_frame)
8506 (aarch64_initial_elimination_offset): Likewise.
8507
8508 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
8509
8510 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
8511 Fix indentation.
8512
8513 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
8514
8515 * machmode.h (bitwise_mode_for_mode): Declare.
8516 * stor-layout.h (bitwise_type_for_mode): Likewise.
8517 * stor-layout.c (bitwise_mode_for_mode): New function.
8518 (bitwise_type_for_mode): Likewise.
8519 * builtins.c (fold_builtin_memory_op): Use it instead of
8520 int_mode_for_mode and build_nonstandard_integer_type.
8521
8522 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8523
8524 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
8525 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
8526 (*-*-solaris2*): Simplify.
8527 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
8528 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
8529 *-*-solaris2.9* handling.
8530
8531 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
8532 as bug.
8533 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
8534 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
8535 handling, simplify.
8536 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
8537 * configure: Regenerate.
8538
8539 * config/i386/sol2-9.h: Remove.
8540
8541 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
8542 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
8543 Remove Solaris 9 references.
8544
8545 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
8546
8547 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
8548 (floatuns<GPI:mode><GPF:mode>2): Remove.
8549 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
8550 and floatuns conversions.
8551 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
8552 and floatuns conversions.
8553 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
8554 (w1,w2): New mode attributes for inequal width conversions.
8555
8556 2014-04-22 Renlin Li <Renlin.Li@arm.com>
8557
8558 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
8559 the output asm format.
8560
8561 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8562
8563 * config/aarch64/aarch64-simd.md
8564 (aarch64_cm<optab>di): Always split.
8565 (*aarch64_cm<optab>di): New.
8566 (aarch64_cmtstdi): Always split.
8567 (*aarch64_cmtstdi): New.
8568
8569 2014-04-22 Jakub Jelinek <jakub@redhat.com>
8570
8571 PR tree-optimization/60823
8572 * omp-low.c (ipa_simd_modify_function_body): Go through
8573 all SSA_NAMEs and for those refering to vector arguments
8574 which are going to be replaced adjust SSA_NAME_VAR and,
8575 if it is a default definition, change it into a non-default
8576 definition assigned at the beginning of function from new_decl.
8577 (ipa_simd_modify_stmt_ops): Rewritten.
8578 * tree-dfa.c (set_ssa_default_def): When removing default def,
8579 check for NULL loc instead of NULL *loc.
8580
8581 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8582
8583 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
8584 restrictions on core registers for DImode values in Thumb2.
8585
8586 2014-04-22 Ian Bolton <ian.bolton@arm.com>
8587
8588 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
8589 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
8590
8591 2014-04-22 Ian Bolton <ian.bolton@arm.com>
8592
8593 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
8594 (*iordi_notzesidi_di): Likewise.
8595 (*iordi_notsesidi_di): Likewise.
8596
8597 2014-04-22 Ian Bolton <ian.bolton@arm.com>
8598
8599 * config/arm/arm-protos.h (tune_params): New struct members.
8600 * config/arm/arm.c: Initialise tune_params per processor.
8601 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
8602 for speed, based on new tune_params.
8603
8604 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
8605
8606 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
8607 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
8608 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
8609 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
8610 * config/aarch64/arm_neon.h (vrnd_f64): Added.
8611 (vrnda_f64): Likewise.
8612 (vrndi_f64): Likewise.
8613 (vrndm_f64): Likewise.
8614 (vrndn_f64): Likewise.
8615 (vrndp_f64): Likewise.
8616 (vrndx_f64): Likewise.
8617
8618 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8619
8620 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
8621 GET_MODE_SIZE argument is enum machine_mode.
8622
8623 2014-04-22 Jakub Jelinek <jakub@redhat.com>
8624
8625 PR target/60910
8626 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
8627 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
8628
8629 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
8630
8631 PR middle-end/60281
8632 * asan.c (asan_emit_stack_protection): Force the base to align to
8633 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
8634 appropriate bits if STRICT_ALIGNMENT.
8635 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
8636 when asan is on.
8637 (expand_used_vars): Leave a space in the stack frame for alignment
8638 if STRICT_ALIGNMENT.
8639
8640 2014-04-21 David Malcolm <dmalcolm@redhat.com>
8641
8642 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
8643 than a gimple.
8644 (gimple_store_p): Likewise.
8645 (gimple_assign_load_p): Likewise.
8646 (gimple_assign_cast_p): Likewise.
8647 (gimple_clobber_p): Likewise.
8648
8649 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
8650 rather than a gimple.
8651 (gimple_assign_cast_p): Likewise.
8652
8653 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8654
8655 PR target/60735
8656 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
8657 If mode is DDmode and TARGET_E500_DOUBLE allow move.
8658
8659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
8660 more debug information for E500 if -mdebug=reg.
8661
8662 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
8663
8664 PR target/60909
8665 * config/i386/i386.c (ix86_expand_builtin)
8666 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
8667 register for target RTX.
8668 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
8669
8670 2014-04-18 Cong Hou <congh@google.com>
8671
8672 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
8673 the widen-mult pattern by handling two operands with different sizes,
8674 and operands whose size is smaller than half of the result type.
8675
8676 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
8677
8678 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
8679 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
8680 (do_estimate_edge_time): Compute it.
8681 * ipa-inline.c (want_inline_small_function_p): Bypass
8682 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
8683
8684 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
8685
8686 * ipa-inline.c (spec_rem): New static variable.
8687 (dump_overall_stats): New function.
8688 (dump_inline_stats): New function.
8689
8690 2014-04-18 Richard Henderson <rth@redhat.com>
8691
8692 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
8693 to GET_MODE_SIZE, not a reg_class_t.
8694
8695 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8696
8697 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
8698 (vsx_xxmrglw_<mode>): Likewise.
8699
8700 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
8701
8702 PR target/60876
8703 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
8704 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
8705 (rs6000_init_hard_regno_mode_ok): Likewise.
8706
8707 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
8708
8709 * ipa-inline.c (inline_small_functions): Account only non-cold
8710 functions.
8711 * doc/invoke.texi (inline-unit-growth): Update documentation.
8712
8713 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
8714
8715 * config/rs6000/rs6000.md (addti3, subti3): New.
8716
8717 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
8718
8719 PR target/60863
8720 * config/i386/i386.c (ix86_expand_clear): Remove outdated
8721 comment. Check optimize_insn_for_size_p instead of
8722 optimize_insn_for_speed_p.
8723
8724 2014-04-17 Martin Jambor <mjambor@suse.cz>
8725
8726 * gimple-iterator.c (gsi_start_edge): New function.
8727 * gimple-iterator.h (gsi_start_edge): Declare.
8728 * tree-sra.c (single_non_eh_succ): New function.
8729 (disqualify_ops_if_throwing_stmt): Renamed to
8730 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
8731 having one non-EH successor BB.
8732 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
8733 generate loads into replacements.
8734 (sra_modify_assign): Likewise and and also use the simple path for
8735 such statements.
8736 (sra_modify_function_body): Commit statements on edges.
8737
8738 2014-04-17 Richard Biener <rguenther@suse.de>
8739
8740 PR middle-end/60849
8741 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
8742 comparison results and add clarifying comment.
8743
8744 2014-04-17 Jakub Jelinek <jakub@redhat.com>
8745
8746 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
8747 (blank_mode): Initialize it.
8748 (emit_mode_size_inline, emit_mode_nunits_inline,
8749 emit_mode_inner_inline): New functions.
8750 (emit_insn_modes_h): Call them and surround their output with
8751 #if GCC_VERSION >= 4001 ... #endif.
8752 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
8753 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
8754 mode_* arrays if the argument is __builtin_constant_p.
8755 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
8756 is enum machine_mode.
8757
8758 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8759
8760 * passes.c (opt_pass::execute): Adjust.
8761 (pass_manager::execute_pass_mode_switching): Likewise.
8762 (early_local_passes::execute): Likewise.
8763 (execute_one_pass): Pass cfun to the pass's execute method.
8764 * tree-pass.h (opt_pass::execute): Add function * argument.
8765 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8766 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8767 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8768 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8769 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8770 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
8771 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
8772 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
8773 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
8774 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
8775 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
8776 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
8777 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
8778 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
8779 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
8780 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
8781 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
8782 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
8783 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8784 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8785 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8786 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8787 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8788 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8789 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8790 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8791 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8792 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8793 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
8794 Adjust.
8795
8796 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8797
8798 * passes.c (opt_pass::gate): Take function * argument.
8799 (gate_all_early_local_passes): Merge into
8800 (early_local_passes::gate): this.
8801 (gate_all_early_optimizations): Merge into
8802 (all_early_optimizations::gate): this.
8803 (gate_all_optimizations): Mege into
8804 (all_optimizations::gate): this.
8805 (gate_all_optimizations_g): Merge into
8806 (all_optimizations_g::gate): this.
8807 (gate_rest_of_compilation): Mege into
8808 (rest_of_compilation::gate): this.
8809 (gate_postreload): Merge into
8810 (postreload::gate): this.
8811 (dump_one_pass): Pass cfun to the pass's gate method.
8812 (execute_ipa_summary_passes): Likewise.
8813 (execute_one_pass): Likewise.
8814 (ipa_write_summaries_2): Likewise.
8815 (ipa_write_optimization_summaries_1): Likewise.
8816 (ipa_read_summaries_1): Likewise.
8817 (ipa_read_optimization_summaries_1): Likewise.
8818 (execute_ipa_stmt_fixups): Likewise.
8819 * tree-pass.h (opt_pass::gate): Add function * argument.
8820 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
8821 combine-stack-adj.c, combine.c, compare-elim.c,
8822 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8823 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
8824 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
8825 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
8826 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
8827 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
8828 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
8829 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
8830 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
8831 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
8832 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
8833 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
8834 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
8835 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
8836 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8837 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8838 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8839 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8840 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8841 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8842 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8843 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8844 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
8845 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
8846 var-tracking.c, vtable-verify.c, web.c: Adjust.
8847
8848 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8849
8850 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
8851 * configure: Regenerate.
8852
8853 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8854
8855 * passes.c (dump_one_pass): don't check pass->has_gate.
8856 (execute_ipa_summary_passes): Likewise.
8857 (execute_one_pass): Likewise.
8858 (ipa_write_summaries_2): Likewise.
8859 (ipa_write_optimization_summaries_1): Likewise.
8860 (ipa_read_optimization_summaries_1): Likewise.
8861 (execute_ipa_stmt_fixups): Likewise.
8862 * tree-pass.h (pass_data::has_gate): Remove.
8863 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
8864 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
8865 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
8866 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
8867 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
8868 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
8869 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
8870 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
8871 gimple-low.c, gimple-ssa-isolate-paths.c,
8872 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
8873 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
8874 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
8875 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
8876 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
8877 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
8878 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
8879 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
8880 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
8881 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
8882 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
8883 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
8884 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8885 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
8886 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
8887 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
8888 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
8889 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
8890 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
8891 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
8892 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
8893 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
8894 Adjust.
8895
8896 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8897
8898 * pass_manager.h (pass_manager::register_dump_files_1): Remove
8899 declaration.
8900 * passes.c (pass_manager::register_dump_files_1): Merge into
8901 (pass_manager::register_dump_files): this, and remove its handling of
8902 properties since the pass always has the properties anyway.
8903 (pass_manager::pass_manager): Adjust.
8904
8905 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
8906
8907 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
8908 * passes.c (pass_manager::register_dump_files_1): Remove dead code
8909 dealing with properties.
8910 (pass_manager::register_dump_files): Adjust.
8911
8912 2014-03-20 Mark Wielaard <mjw@redhat.com>
8913
8914 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
8915 then represent the bound as normal constant value.
8916
8917 2014-04-17 Jakub Jelinek <jakub@redhat.com>
8918
8919 PR target/60847
8920 Forward port from 4.8 branch
8921 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
8922
8923 * config/i386/bmiintrin.h (_blsi_u32): New.
8924 (_blsi_u64): Ditto.
8925 (_blsr_u32): Ditto.
8926 (_blsr_u64): Ditto.
8927 (_blsmsk_u32): Ditto.
8928 (_blsmsk_u64): Ditto.
8929 (_tzcnt_u32): Ditto.
8930 (_tzcnt_u64): Ditto.
8931
8932 2014-04-17 Kito Cheng <kito@0xlab.org>
8933
8934 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
8935
8936 2014-04-17 Richard Biener <rguenther@suse.de>
8937
8938 PR middle-end/60849
8939 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
8940 boolean results for comparisons.
8941
8942 2014-04-17 Richard Biener <rguenther@suse.de>
8943
8944 PR tree-optimization/60836
8945 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
8946 initial PHI args to be gimple values.
8947
8948 2014-04-17 Richard Biener <rguenther@suse.de>
8949
8950 PR tree-optimization/60841
8951 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
8952 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
8953 of stmts to SLP build.
8954 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
8955 (vect_analyze_slp): Likewise.
8956 (vect_analyze_slp_instance): Likewise.
8957 (vect_build_slp_tree): Limit overall SLP tree growth.
8958 * tree-vectorizer.h (vect_analyze_data_refs,
8959 vect_analyze_slp): Adjust prototypes.
8960
8961 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
8962
8963 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
8964 Silvermont.
8965
8966 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
8967
8968 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
8969 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
8970 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
8971 for TARGET_SLOW_PSHUFB
8972
8973 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
8974
8975 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
8976 * config/i386/i386.c (intel_cost): Ditto.
8977
8978 2014-04-17 Joey Ye <joey.ye@arm.com>
8979
8980 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
8981
8982 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
8983
8984 * opts.c (common_handle_option): Disable -fipa-reference coorectly
8985 with -fuse-profile.
8986
8987 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
8988
8989 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
8990 (type_all_derivations_known_p): New predicate.
8991 (type_all_ctors_visible_p): New predicate.
8992 (type_possibly_instantiated_p): New predicate.
8993 (get_odr_type): Compute all_derivations_known.
8994 (dump_odr_type): Dump the flag.
8995 (maybe_record_type): Cleanup.
8996 (record_target_from_binfo): Add bases_to_consider array;
8997 record bases for types w/o instances and skip CXX destructor.
8998 (possible_polymorphic_call_targets_1): Add bases_to_consider
8999 and consider_construction parameters; check if type may have instance.
9000 (get_polymorphic_call_info): Set maybe_in_construction to true
9001 when we know nothing.
9002 (record_targets_from_bases): Skip CXX destructors; they are
9003 never called for types in construction.
9004 (possible_polymorphic_call_targets): Do not record target when
9005 type may not have instance.
9006
9007 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
9008
9009 PR ipa/60854
9010 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
9011 external aliases alive, too.
9012
9013 2014-04-16 Andrew Pinski <apinski@cavium.com>
9014
9015 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
9016 definition.
9017
9018 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9019
9020 * final.c (compute_alignments): Do not apply loop alignment to a block
9021 falling through to the exit.
9022
9023 2014-04-16 Catherine Moore <clm@codesourcery.com>
9024
9025 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
9026 Adjust constraints for microMIPS store patterns.
9027
9028 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
9029
9030 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
9031
9032 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
9033
9034 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
9035 (append_use): Run at -O0.
9036 (append_vdef): Likewise.
9037 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
9038 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
9039
9040 2014-04-16 Jakub Jelinek <jakub@redhat.com>
9041
9042 PR tree-optimization/60844
9043 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
9044 (propagate_op_to_single_use, remove_visited_stmt_chain,
9045 linearize_expr, repropagate_negates, reassociate_bb): Use it
9046 instead of gsi_remove.
9047
9048 2014-04-16 Martin Jambor <mjambor@suse.cz>
9049
9050 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
9051 ipa_transforms_to_apply.
9052 (cgraph_function_versioning): Assert that old_node has empty
9053 ipa_transforms_to_apply.
9054 * trans-mem.c (ipa_tm_create_version): Likewise.
9055 * tree-inline.c (tree_function_versioning): Do not duplicate
9056 ipa_transforms_to_apply.
9057
9058 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9059
9060 PR target/60817
9061 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
9062 x86_64-*-* cases.
9063 Pass necessary as flags on 64-bit Solaris/x86.
9064 Use lowercase relocs for x86_64-*-*.
9065 * configure: Regenerate.
9066
9067 2014-04-15 Jan Hubicka <jh@suse.cz>
9068
9069 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
9070 (maybe_record_node, likely_target_p): Use it.
9071
9072 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9073
9074 PR target/60839
9075 Revert following patch
9076
9077 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9078
9079 PR target/60735
9080 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
9081 software floating point or no floating point registers, do not
9082 allow any type in the FPRs. Eliminate a test for SPE SIMD types
9083 in GPRs that occurs after we tested for GPRs that would never be
9084 true.
9085
9086 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
9087 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
9088 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
9089 specifically allow DDmode, since that does not use the SPE SIMD
9090 instructions.
9091
9092 2014-03-21 Mark Wielaard <mjw@redhat.com>
9093
9094 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
9095 as unsigned or int depending on type and value used.
9096
9097 2014-04-15 Richard Biener <rguenther@suse.de>
9098
9099 PR rtl-optimization/56965
9100 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
9101 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
9102 ... here.
9103 * alias.c (true_dependence_1): Do not call
9104 nonoverlapping_component_refs_p.
9105 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
9106 nonoverlapping_component_refs_p.
9107 (indirect_refs_may_alias_p): Likewise.
9108
9109 2014-04-15 Teresa Johnson <tejohnson@google.com>
9110
9111 * cfg.c (dump_bb_info): Fix flags check.
9112 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
9113
9114 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9115
9116 PR rtl-optimization/60663
9117 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
9118 avoid 0 cost.
9119
9120 2014-04-15 Richard Biener <rguenther@suse.de>
9121
9122 * lto-streamer.h (LTO_major_version): Bump to 4.
9123
9124 2014-04-15 Richard Biener <rguenther@suse.de>
9125
9126 * common.opt (lto_partition_model): New enum.
9127 (flto-partition=): Merge separate options with a single with argument,
9128 add -flto-partition=one support.
9129 * flag-types.h (enum lto_partition_model): Declare.
9130 * opts.c (finish_options): Remove duplicate -flto-partition=
9131 option check.
9132 * lto-wrapper.c (run_gcc): Adjust.
9133
9134 2014-04-15 Richard Biener <rguenther@suse.de>
9135
9136 * alias.c (ncr_compar): New function.
9137 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
9138
9139 2014-04-15 Richard Biener <rguenther@suse.de>
9140
9141 * alias.c (record_component_aliases): Do not walk BINFOs.
9142
9143 2014-04-15 Richard Biener <rguenther@suse.de>
9144
9145 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9146 Add struct function argument and adjust.
9147 (find_func_aliases_for_call): Likewise.
9148 (find_func_aliases): Likewise.
9149 (find_func_clobbers): Likewise.
9150 (intra_create_variable_infos): Likewise.
9151 (compute_points_to_sets): Likewise.
9152 (ipa_pta_execute): Adjust. Do not push/pop cfun.
9153
9154 2014-04-15 Richard Biener <rguenther@suse.de>
9155
9156 * tree.c (iterative_hash_expr): Use enum tree_code_class
9157 to store TREE_CODE_CLASS.
9158 (tree_block): Likewise.
9159 (tree_set_block): Likewise.
9160 * tree.h (fold_build_pointer_plus_loc): Use
9161 convert_to_ptrofftype_loc.
9162
9163 2014-04-15 Jakub Jelinek <jakub@redhat.com>
9164
9165 PR plugins/59335
9166 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
9167 added in 4.9.
9168
9169 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
9170
9171 * cfgloop.h (struct loop): Move force_vectorize down.
9172 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
9173 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
9174 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
9175 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
9176 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
9177 * tree-core.h (enum annot_expr_kind): Add new kind values.
9178 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
9179 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
9180 kinds.
9181 * tree.def (ANNOTATE_EXPR): Tweak comment.
9182
9183 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9184
9185 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
9186 cxa_pure_virtual).
9187
9188 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
9189
9190 * tree.h (TYPE_IDENTIFIER): Declare.
9191 * tree.c (subrange_type_for_debug_p): Use it.
9192 * godump.c (go_format_type): Likewise.
9193 * dwarf2out.c (is_cxx_auto, modified_type_die,
9194 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
9195 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
9196
9197 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9198
9199 PR lto/60820
9200 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
9201
9202 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
9203
9204 * config/i386/i386.c (examine_argument): Return bool. Return true if
9205 parameter should be passed in memory.
9206 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
9207 (construct_container): Update calls to examine_argument.
9208 (function_arg_advance_64): Ditto.
9209 (return_in_memory_32): Merge with ix86_return_in_memory.
9210 (return_in_memory_64): Ditto.
9211 (return_in_memory_ms_64): Ditto.
9212
9213 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
9214
9215 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
9216 * coverage.c (coverage_compute_profile_id): Handle externally visible
9217 symbols.
9218
9219 2014-04-14 Martin Jambor <mjambor@suse.cz>
9220
9221 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
9222 DECL_DISREGARD_INLINE_LIMITS functions.
9223
9224 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
9225
9226 PR target/60827
9227 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
9228
9229 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
9230
9231 PR target/60827
9232 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
9233 optimize_insn_for_speed_p instead of
9234 optimize_function_for_speed_p.
9235
9236 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
9237
9238 * doc/invoke.texi (free): Document AArch64.
9239
9240 2014-04-14 Richard Biener <rguenther@suse.de>
9241
9242 PR tree-optimization/60042
9243 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
9244 (insert_into_preds_of_block): Do not prevent PHI insertion
9245 for REFERENCE exprs here ...
9246 (eliminate_dom_walker::before_dom_children): ... but prevent
9247 their use here under similar conditions when applied to the
9248 IL after PRE optimizations.
9249
9250 2014-04-14 Richard Biener <rguenther@suse.de>
9251
9252 * passes.def: Move early points-to after early SRA.
9253
9254 2014-04-14 Richard Biener <rguenther@suse.de>
9255
9256 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
9257 check for which sign-changes we allow when forwarding
9258 a converted value into a switch.
9259
9260 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
9261
9262 * stor-layout.c (place_field): Finalize non-constant offset for the
9263 field, if any.
9264
9265 2014-04-14 Richard Biener <rguenther@suse.de>
9266
9267 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
9268 as argument.
9269 (expand_switch_using_bit_tests_p): Likewise.
9270 (process_switch): Compute and pass on speed_p based on the
9271 switch stmt.
9272 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
9273 optimize_bb_for_speed_p.
9274
9275 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
9276
9277 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
9278 * function.h (struct function): Rename has_force_vect_loops into
9279 has_force_vectorize_loops.
9280 * lto-streamer-in.c (input_cfg): Adjust for renaming.
9281 (input_struct_function_base): Likewise.
9282 * lto-streamer-out.c (output_cfg): Likewise.
9283 (output_struct_function_base): Likewise.
9284 * omp-low.c (expand_omp_simd): Likewise.
9285 * tree-cfg.c (move_sese_region_to_fn): Likewise.
9286 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
9287 (version_loop_for_if_conversion): Likewise.
9288 (tree_if_conversion): Likewise.
9289 (main_tree_if_conversion): Likewise.
9290 (gate_tree_if_conversion): Likewise.
9291 * tree-inline.c (copy_loops): Likewise.
9292 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
9293 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
9294 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
9295 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
9296 * tree-vectorizer.c (vectorize_loops): Likewise.
9297 * tree-vectorizer.h (unlimited_cost_model): Likewise.
9298
9299 2014-04-14 Richard Biener <rguenther@suse.de>
9300
9301 PR lto/60720
9302 * lto-streamer-out.c (wrap_refs): New function.
9303 (lto_output): Wrap symbol references in global initializes in
9304 type-preserving MEM_REFs.
9305
9306 2014-04-14 Christian Bruel <christian.bruel@st.com>
9307
9308 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
9309
9310 2014-04-14 Christian Bruel <christian.bruel@st.com>
9311
9312 * config/sh/sh.md (setmemqi): New expand pattern.
9313 * config/sh/sh.h (CLEAR_RATIO): Define.
9314 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
9315 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
9316
9317 2014-04-14 Richard Biener <rguenther@suse.de>
9318
9319 PR middle-end/55022
9320 * fold-const.c (negate_expr_p): Don't negate directional rounding
9321 division.
9322 (fold_negate_expr): Likewise.
9323
9324 2014-04-14 Richard Biener <rguenther@suse.de>
9325
9326 PR tree-optimization/59817
9327 PR tree-optimization/60453
9328 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
9329 recursion to catch all CHRECs in the scalar evolution and restrict
9330 the predicate for the remains appropriately.
9331
9332 2014-04-12 Catherine Moore <clm@codesourcery.com>
9333
9334 * config/mips/constraints.md: Add new register constraint "kb".
9335 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
9336 (*movhi_internal): Likewise.
9337 (*movqi_internal): Likewise.
9338 * config/mips/mips.h (M16_STORE_REGS): New register class.
9339 (REG_CLASS_NAMES): Add M16_STORE_REGS.
9340 (REG_CLASS_CONTENTS): Likewise.
9341 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
9342
9343 2014-04-11 Tobias Burnus <burnus@net-b.de>
9344
9345 PR c/60194
9346 * doc/invoke.texi (-Wformat-signedness): Document it.
9347 (Wformat=2): Mention that this enables -Wformat-signedness.
9348
9349 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9350
9351 * common/config/epiphany/epiphany-common.c
9352 (epiphany_option_optimization_table): Enable section anchors by
9353 default at -O1 or higher.
9354 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
9355 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
9356 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
9357 carries no extra cost.
9358 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
9359 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
9360 * config/epiphany/predicates.md (memclob_operand): New predicate.
9361 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
9362 Use memclob_operand predicate and X constraint for operand 3.
9363
9364 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9365
9366 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
9367 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
9368 its operands.
9369
9370 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
9371
9372 PR rtl-optimization/60651
9373 * mode-switching.c (optimize_mode_switching): Make sure to emit
9374 sets of a lower numbered entity before sets of a higher numbered
9375 entity to a mode of the same or lower priority.
9376 When creating a seginfo for a basic block that starts with a code
9377 label, move the insertion point past the code label.
9378 (new_seginfo): Document and enforce requirement that
9379 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
9380 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
9381 * doc/tm.texi: Regenerate.
9382
9383 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
9384
9385 PR target/60811
9386 * config/arc/arc.c (arc_save_restore): Fix assert typo.
9387
9388 2013-04-11 Jakub Jelinek <jakub@redhat.com>
9389
9390 * BASE-VER: Set to 4.10.0.
9391
9392 2014-04-11 Tobias Burnus <burnus@net-b.de>
9393
9394 PR other/59055
9395 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
9396 * doc/gcc.texi (Service): Update description in the @menu
9397 * doc/invoke.texi (Option Summary): Remove misplaced and
9398 duplicated @menu.
9399
9400 2014-04-11 Steve Ellcey <sellcey@mips.com>
9401 Jakub Jelinek <jakub@redhat.com>
9402
9403 PR middle-end/60556
9404 * expr.c (convert_move): Use emit_store_flag_force instead of
9405 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
9406 argument to it.
9407
9408 2014-04-11 Richard Biener <rguenther@suse.de>
9409
9410 PR middle-end/60797
9411 * varasm.c (assemble_alias): Avoid endless error reporting
9412 recursion by setting TREE_ASM_WRITTEN.
9413
9414 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9415
9416 * config/s390/s390.md: Add a splitter for NOT rtx.
9417
9418 2014-04-11 Jakub Jelinek <jakub@redhat.com>
9419
9420 PR rtl-optimization/60663
9421 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
9422
9423 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
9424 Jakub Jelinek <jakub@redhat.com>
9425
9426 PR lto/60567
9427 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
9428 flag from decl_node to node.
9429
9430 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9431
9432 PR debug/60655
9433 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
9434 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
9435 ameliorating the cases where it can be.
9436
9437 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
9438
9439 Revert
9440 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
9441
9442 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
9443 (loadsync_<mode>): Change mode.
9444 (load_quadpti, store_quadpti): New.
9445 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
9446 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
9447 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
9448
9449 2014-04-09 Cong Hou <congh@google.com>
9450
9451 PR testsuite/60773
9452 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
9453 documentation.
9454
9455 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9456
9457 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
9458 instead of vnor to exploit possible fusion opportunity in the
9459 future.
9460 (altivec_expand_vec_perm_const_le): Likewise.
9461
9462 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
9463
9464 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
9465 (loadsync_<mode>): Change mode.
9466 (load_quadpti, store_quadpti): New.
9467 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
9468 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
9469
9470 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
9471
9472 PR target/60763
9473 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
9474 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
9475 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
9476
9477 2014-04-08 Richard Biener <rguenther@suse.de>
9478
9479 PR middle-end/60706
9480 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
9481 a 64bit widest int print double-int similar to on HWI64 hosts.
9482
9483 2014-04-08 Richard Biener <rguenther@suse.de>
9484
9485 PR tree-optimization/60785
9486 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
9487 default defs properly.
9488
9489 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
9490
9491 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
9492 (Weffc++): Likewise.
9493
9494 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
9495
9496 * ipa-devirt.c (maybe_record_node): When node is not recorded,
9497 set completep to false rather than true.
9498
9499 2014-04-07 Douglas B Rupp <rupp@adacore.com>
9500
9501 PR target/60504
9502 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
9503 ARM_TARGET2_DWARF_FORMAT.
9504
9505 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
9506
9507 PR target/60609
9508 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
9509 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
9510 ADDR_DIFF_VEC.
9511
9512 2014-04-07 Richard Biener <rguenther@suse.de>
9513
9514 PR tree-optimization/60766
9515 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
9516 (may_eliminate_iv): Convert cand_value_at result to desired type.
9517
9518 2014-04-07 Jason Merrill <jason@redhat.com>
9519
9520 PR c++/60731
9521 * common.opt (-fno-gnu-unique): Add.
9522 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
9523
9524 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9525
9526 * haifa-sched.c: Fix outdated function reference and minor
9527 grammar errors in introductory comment.
9528
9529 2014-04-07 Richard Biener <rguenther@suse.de>
9530
9531 PR middle-end/60750
9532 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
9533 for noreturn calls.
9534 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
9535
9536 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
9537
9538 PR debug/55794
9539 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
9540 size accounting for thunks.
9541 (pa_asm_output_mi_thunk): Use final_start_function() and
9542 final_end_function() to output function start and end directives.
9543
9544 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
9545
9546 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
9547 device specific ISA/ feature information. Remove short_sp and
9548 errata_skip ds. Add avr_device_specific_features enum to have device
9549 specific info.
9550 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
9551 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
9552 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
9553 updated device specific info.
9554 * config/avr/avr-mcus.def: Merge device specific details to
9555 dev_attribute field.
9556 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
9557 errata_skip.
9558 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
9559 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
9560 assembler if RMW isa supported by current device.
9561 * config/avr/genmultilib.awk: Update as device info structure changed.
9562 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
9563
9564 2014-04-04 Cong Hou <congh@google.com>
9565
9566 PR tree-optimization/60656
9567 * tree-vect-stmts.c (supportable_widening_operation):
9568 Fix a bug that elements in a vector with vect_used_by_reduction
9569 property are incorrectly reordered when the operation on it is not
9570 consistant with the one in reduction operation.
9571
9572 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
9573
9574 PR rtl-optimization/60155
9575 * gcse.c (record_set_data): New function.
9576 (single_set_gcse): New function.
9577 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
9578 (hoist_code): Likewise.
9579 (get_pressure_class_and_nregs): Likewise.
9580
9581 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
9582
9583 * explow.c (probe_stack_range): Emit a final optimization blockage.
9584
9585 2014-04-04 Anthony Green <green@moxielogic.com>
9586
9587 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
9588 typos.
9589
9590 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
9591
9592 PR ipa/59626
9593 * lto-cgraph.c (input_overwrite_node): Check that partitioning
9594 flags are set only during streaming.
9595 * ipa.c (process_references, walk_polymorphic_call_targets,
9596 symtab_remove_unreachable_nodes): Drop bodies of always inline
9597 after early inlining.
9598 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
9599
9600 2014-04-04 Jakub Jelinek <jakub@redhat.com>
9601 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9602
9603 PR debug/60655
9604 * dwarf2out.c (const_ok_for_output_1): Reject expressions
9605 containing a NOT.
9606
9607 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9608
9609 PR bootstrap/60743
9610 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
9611 duration.
9612 (cortex_a53_fdivd): Likewise.
9613
9614 2014-04-04 Martin Jambor <mjambor@suse.cz>
9615
9616 PR ipa/60640
9617 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
9618 Adjust all callers.
9619 * cgraph.c (clone_of_p): Also return true if thunks match.
9620 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
9621 cgraph_function_or_thunk_node and an obsolete comment.
9622 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
9623 file.
9624 (build_function_decl_skip_args): Likewise.
9625 (set_new_clone_decl_and_node_flags): New function.
9626 (duplicate_thunk_for_node): Likewise.
9627 (redirect_edge_duplicating_thunks): Likewise.
9628 (cgraph_clone_node): New parameter args_to_skip, pass it to
9629 redirect_edge_duplicating_thunks which is called instead of
9630 cgraph_redirect_edge_callee.
9631 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
9632 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
9633
9634 2014-04-04 Jeff Law <law@redhat.com>
9635
9636 PR target/60657
9637 * config/arm/predicates.md (const_int_I_operand): New predicate.
9638 (const_int_M_operand): Similarly.
9639 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
9640 const_int_operand.
9641 (insv_t2, extv_reg, extzv_t2): Likewise.
9642 (load_multiple_with_writeback): Similarly for const_int_I_operand.
9643 (pop_multiple_with_writeback_and_return): Likewise.
9644 (vfp_pop_multiple_with_writeback): Likewise
9645
9646 2014-04-04 Richard Biener <rguenther@suse.de>
9647
9648 PR ipa/60746
9649 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
9650 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
9651 non-GIMPLE_LABELs.
9652 * gimplify.h (gimple_add_tmp_var_fn): Declare.
9653 * gimplify.c (gimple_add_tmp_var_fn): New function.
9654 * gimple-expr.h (create_tmp_reg_fn): Declare.
9655 * gimple-expr.c (create_tmp_reg_fn): New function.
9656 * gimple-low.c (record_vars_into): Don't change cfun.
9657 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
9658 code generation without cfun.
9659
9660 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
9661
9662 PR bootstrap/60719
9663 * Makefile.in (install-driver): Fix shell scripting.
9664
9665 2014-04-03 Cong Hou <congh@google.com>
9666
9667 PR tree-optimization/60505
9668 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
9669 threshold of number of iterations below which no vectorization
9670 will be done.
9671 * tree-vect-loop.c (new_loop_vec_info):
9672 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
9673 * tree-vect-loop.c (vect_analyze_loop_operations):
9674 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
9675 * tree-vect-loop.c (vect_transform_loop):
9676 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
9677 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
9678 of iterations of the loop and see if we should build the epilogue.
9679
9680 2014-04-03 Richard Biener <rguenther@suse.de>
9681
9682 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
9683 (streamer_tree_cache_create): Adjust.
9684 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
9685 to allow optional nodes array.
9686 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
9687 (streamer_tree_cache_append): Likewise.
9688 (streamer_tree_cache_create): Create nodes array optionally
9689 as specified by parameter.
9690 * lto-streamer-out.c (create_output_block): Avoid maintaining
9691 the node array in the writer cache.
9692 (DFS_write_tree): Remove assertion.
9693 (produce_asm_for_decls): Free the out decl state hash table early.
9694 * lto-streamer-in.c (lto_data_in_create): Adjust for
9695 streamer_tree_cache_create prototype change.
9696
9697 2014-04-03 Richard Biener <rguenther@suse.de>
9698
9699 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
9700 set TREE_CHAIN to NULL_TREE.
9701
9702 2014-04-03 Richard Biener <rguenther@suse.de>
9703
9704 PR tree-optimization/60740
9705 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
9706 over all GIMPLE_COND operands.
9707
9708 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
9709
9710 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
9711 (Weffc++): Remove Scott's numbering, merge lists and reference
9712 Wnon-virtual-dtor.
9713
9714 2014-04-03 Nick Clifton <nickc@redhat.com>
9715
9716 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
9717 properly.
9718
9719 2014-04-03 Martin Jambor <mjambor@suse.cz>
9720
9721 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
9722 mention gcc_unreachable before failing.
9723 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
9724 removed symbols.
9725
9726 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
9727
9728 PR ipa/60659
9729 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
9730 inconsistent code and instead mark the context inconsistent.
9731 (possible_polymorphic_call_targets): For inconsistent contexts
9732 return empty complete list.
9733
9734 2014-04-02 Anthony Green <green@moxielogic.com>
9735
9736 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
9737 (extendqisi2, extendhisi2): Define.
9738 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
9739 (WCHAR_TYPE): Change to unsigned int.
9740
9741 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9742
9743 PR tree-optimization/60733
9744 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
9745 insertion point for PHI candidates to be the end of the feeding
9746 block for the PHI argument.
9747
9748 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
9749
9750 PR rtl-optimization/60650
9751 * lra-constraints.c (process_alt_operands): Decrease reject for
9752 earlyclobber matching.
9753
9754 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9755
9756 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
9757
9758 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9759
9760 * config/spu/spu.c (pad_bb): Do not crash when the last
9761 insn is CODE_FOR_blockage.
9762
9763 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9764
9765 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
9766 lies outside the target mode.
9767
9768 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9769
9770 PR target/60735
9771 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
9772 software floating point or no floating point registers, do not
9773 allow any type in the FPRs. Eliminate a test for SPE SIMD types
9774 in GPRs that occurs after we tested for GPRs that would never be
9775 true.
9776
9777 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
9778 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
9779 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
9780 specifically allow DDmode, since that does not use the SPE SIMD
9781 instructions.
9782
9783 2014-04-02 Richard Biener <rguenther@suse.de>
9784
9785 PR middle-end/60729
9786 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
9787 MODE_INTs. Properly use negv_optab.
9788 (expand_abs): Likewise.
9789
9790 2014-04-02 Richard Biener <rguenther@suse.de>
9791
9792 PR bootstrap/60719
9793 * Makefile.in (install-driver): Guard extra installs with special
9794 names properly.
9795
9796 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
9797
9798 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
9799 Document vec_vgbbd.
9800
9801 2014-04-01 Richard Henderson <rth@redhat.com>
9802
9803 PR target/60704
9804 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
9805 alternative enabled before register allocation.
9806
9807 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
9808
9809 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
9810 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
9811 typo.
9812 (nios2_large_got_address): Remove unneeded 'sym' parameter.
9813 (nios2_got_address): Update nios2_large_got_address call site.
9814 (nios2_delegitimize_address): New function.
9815 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
9816 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
9817 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
9818
9819 2014-04-01 Martin Husemann <martin@duskware.de>
9820
9821 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
9822 for -mabi=32.
9823
9824 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
9825
9826 PR rtl-optimization/60604
9827 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
9828 check from register_operand.
9829 (register_operand): Redefine in terms of general_operand.
9830 (nonmemory_operand): Use register_operand for the non-constant cases.
9831
9832 2014-04-01 Richard Biener <rguenther@suse.de>
9833
9834 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
9835
9836 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
9837
9838 * doc/invoke.texi (mapp-regs): Clarify.
9839
9840 2014-03-31 Ulrich Drepper <drepper@gmail.com>
9841
9842 * config/i386/avx512fintrin.h (__v32hi): Define type.
9843 (__v64qi): Likewise.
9844 (_mm512_set1_epi8): Define.
9845 (_mm512_set1_epi16): Define.
9846 (_mm512_set4_epi32): Define.
9847 (_mm512_set4_epi64): Define.
9848 (_mm512_set4_pd): Define.
9849 (_mm512_set4_ps): Define.
9850 (_mm512_setr4_epi64): Define.
9851 (_mm512_setr4_epi32): Define.
9852 (_mm512_setr4_pd): Define.
9853 (_mm512_setr4_ps): Define.
9854 (_mm512_setzero_epi32): Define.
9855
9856 2014-03-31 Martin Jambor <mjambor@suse.cz>
9857
9858 PR middle-end/60647
9859 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
9860 callsite_arguments_match_p. Updated all callers. Also check types of
9861 corresponding formal parameters and actual arguments.
9862 (not_all_callers_have_enough_arguments_p) Renamed to
9863 some_callers_have_mismatched_arguments_p.
9864
9865 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
9866
9867 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
9868
9869 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
9870
9871 PR target/60034
9872 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
9873 section anchor.
9874
9875 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
9876
9877 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
9878 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
9879 Split out
9880 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
9881 Use FMAMODE_NOVF512 mode iterator.
9882 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
9883 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
9884 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
9885 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
9886 Split out
9887 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
9888 Use VF_128_256 mode iterator.
9889 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
9890 Ditto.
9891
9892 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
9893
9894 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
9895 static chain if needed.
9896
9897 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
9898
9899 PR target/60697
9900 * lra-constraints.c (index_part_to_reg): New.
9901 (process_address): Use it.
9902
9903 2014-03-27 Jeff Law <law@redhat.com>
9904 Jakub Jelinek <jakub@redhat.com>
9905
9906 PR target/60648
9907 * expr.c (do_tablejump): Use simplify_gen_binary rather than
9908 gen_rtx_{PLUS,MULT} to build up the address expression.
9909
9910 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
9911 creating non-canonical RTL.
9912
9913 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
9914
9915 PR ipa/60243
9916 * ipa-inline.c (want_inline_small_function_p): Short circuit large
9917 functions; reorganize to make cheap checks first.
9918 (inline_small_functions): Do not estimate growth when dumping;
9919 it is expensive.
9920 * ipa-inline.h (inline_summary): Add min_size.
9921 (growth_likely_positive): New function.
9922 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
9923 (set_cond_stmt_execution_predicate): Cleanup.
9924 (estimate_edge_size_and_time): Compute min_size.
9925 (estimate_calls_size_and_time): Likewise.
9926 (estimate_node_size_and_time): Likewise.
9927 (inline_update_overall_summary): Update min_size.
9928 (do_estimate_edge_time): Likewise.
9929 (do_estimate_edge_size): Update.
9930 (do_estimate_edge_hints): Update.
9931 (growth_likely_positive): New function.
9932
9933 2014-03-28 Jakub Jelinek <jakub@redhat.com>
9934
9935 PR target/60693
9936 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
9937 also if addr has VOIDmode.
9938
9939 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9940
9941 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
9942 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
9943 Declare extern.
9944 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
9945 instructions as well as AdvancedSIMD loads.
9946
9947 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9948
9949 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
9950 Use crypto_aese type.
9951 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
9952 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
9953 crypto_aese, crypto_aesmc. Move to types.md.
9954 * config/arm/types.md (crypto_aes): Split into crypto_aese,
9955 crypto_aesmc.
9956 * config/arm/iterators.md (crypto_type): Likewise.
9957
9958 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
9959
9960 * cgraph.c: Include expr.h and tree-dfa.h.
9961 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
9962 remove LHS.
9963
9964 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
9965
9966 PR target/60675
9967 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
9968 regs from checking multi-reg pseudos.
9969
9970 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9971
9972 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
9973
9974 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9975
9976 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
9977 if it would clobber the stack pointer, even temporarily.
9978
9979 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
9980
9981 * mode-switching.c: Make small adjustments to the top comment.
9982
9983 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
9984
9985 * config/rs6000/constraints.md (wD constraint): New constraint to
9986 match the constant integer to get the top DImode/DFmode out of a
9987 vector in a VSX register.
9988
9989 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
9990 match the constant integer to get the top DImode/DFmode out of a
9991 vector in a VSX register.
9992
9993 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
9994 for ISA 2.07.
9995
9996 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9997 vbpermq builtins.
9998
9999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
10000 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
10001
10002 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
10003 Optimize vec_extract of 64-bit values, where the value being
10004 extracted is in the top word, where we can use scalar
10005 instructions. Add direct move and store support. Combine the big
10006 endian/little endian vector select load support into a single insn.
10007 (vsx_extract_<mode>_internal1): Likewise.
10008 (vsx_extract_<mode>_internal2): Likewise.
10009 (vsx_extract_<mode>_load): Likewise.
10010 (vsx_extract_<mode>_store): Likewise.
10011 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
10012 combined into vsx_extract_<mode>_load.
10013 (vsx_extract_<mode>_one_le): Likewise.
10014
10015 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
10016 define the top 64-bit vector element.
10017
10018 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
10019 constraint.
10020
10021 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10022 Document vec_vbpermq builtin.
10023
10024 PR target/60672
10025 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
10026 enable use of xxsldwi and xxpermdi builtin functions.
10027 (vec_xxpermdi): Likewise.
10028
10029 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10030 Document use of vec_xxsldwi and vec_xxpermdi builtins.
10031
10032 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
10033
10034 PR rtl-optimization/60650
10035 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
10036 first_p. Use it.
10037 (find_spills_for): New.
10038 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
10039 Spill all pseudos on the second iteration.
10040
10041 2014-03-27 Marek Polacek <polacek@redhat.com>
10042
10043 PR c/50347
10044 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
10045 types.
10046
10047 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10048
10049 * config/s390/s390.c (s390_can_use_return_insn): Check for
10050 call-saved FPRs on 31 bit.
10051
10052 2014-03-27 Jakub Jelinek <jakub@redhat.com>
10053
10054 PR middle-end/60682
10055 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
10056 if they need regimplification, just drop them instead of
10057 calling gimple_regimplify_operands on them.
10058
10059 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
10060
10061 PR target/60580
10062 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
10063 (aarch64_frame_pointer_required): Adjust logic.
10064 (aarch64_can_eliminate): Adjust logic.
10065 (aarch64_override_options_after_change): Adjust logic.
10066
10067 2014-03-27 Dehao Chen <dehao@google.com>
10068
10069 * ipa-inline.c (early_inliner): Update node's inline info.
10070
10071 2014-03-26 Dehao Chen <dehao@google.com>
10072
10073 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
10074 compiler inserted conditional jumps for NAN float check.
10075
10076 2014-03-26 Jakub Jelinek <jakub@redhat.com>
10077
10078 * ubsan.h (ubsan_create_data): Change second argument's type
10079 to const location_t *.
10080 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
10081 _("<unknown>").
10082 (ubsan_create_data): Change second argument to const location_t *PLOC.
10083 Create Loc field whenever PLOC is non-NULL.
10084 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
10085 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
10086 callers.
10087
10088 PR other/59545
10089 * real.c (real_to_integer2): Change type of low to UHWI.
10090
10091 2014-03-26 Tobias Burnus <burnus@net-b.de>
10092
10093 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
10094 (CILK_SELF_SPECS): New define.
10095 (driver_self_specs): Use it.
10096
10097 2014-03-26 Richard Biener <rguenther@suse.de>
10098
10099 * tree-pretty-print.c (percent_K_format): Implement special
10100 case for LTO and its stripped down BLOCK tree.
10101
10102 2014-03-26 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR sanitizer/60636
10105 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
10106
10107 * tree-vrp.c (simplify_internal_call_using_ranges): If only
10108 one range is range_int_cst_p, but not both, at least optimize
10109 addition/subtraction of 0 and multiplication by 0 or 1.
10110 * gimple-fold.c (gimple_fold_call): Fold
10111 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
10112 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
10113 INTEGER_CSTs, try to fold at least x * 0 and y - y.
10114
10115 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
10116
10117 PR rtl-optimization/60452
10118 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
10119 <case REG>: Return 1 for invalid offsets from the frame pointer.
10120
10121 2014-03-26 Marek Polacek <polacek@redhat.com>
10122
10123 PR c/37428
10124 * doc/extend.texi (C Extensions): Mention variable-length arrays in
10125 a structure/union.
10126
10127 2014-03-26 Marek Polacek <polacek@redhat.com>
10128
10129 PR c/39525
10130 * doc/extend.texi (Designated Inits): Describe what happens to omitted
10131 field members.
10132
10133 2014-03-26 Marek Polacek <polacek@redhat.com>
10134
10135 PR other/59545
10136 * ira-color.c (update_conflict_hard_regno_costs): Perform the
10137 multiplication in unsigned type.
10138
10139 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
10140
10141 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
10142
10143 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
10144
10145 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
10146
10147 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
10148
10149 PR ipa/60315
10150 * cif-code.def (UNREACHABLE) New code.
10151 * ipa-inline.c (inline_small_functions): Skip edges to
10152 __builtlin_unreachable.
10153 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
10154 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
10155 predicate to __bulitin_unreachable.
10156 (set_cond_stmt_execution_predicate): Fix issue when
10157 invert_tree_comparison returns ERROR_MARK.
10158 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
10159 propagate to inline clones.
10160 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
10161 to unreachable.
10162 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
10163 * cgraphclones.c (cgraph_clone_node): If call destination is already
10164 ureachable, do not redirect it back.
10165 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
10166 unreachable.
10167
10168 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
10169
10170 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
10171 Do not modify inline clones.
10172
10173 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10174
10175 * config/i386/i386.md (general_sext_operand): New mode attr.
10176 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
10177 don't generate (sign_extend (const_int)).
10178 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
10179 operands[2]. Use We constraint instead of <i> and
10180 <general_sext_operand> predicate instead of <general_operand>.
10181 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
10182 * config/i386/constraints.md (We): New constraint.
10183 * config/i386/predicates.md (x86_64_sext_operand,
10184 sext_operand): New predicates.
10185
10186 2014-03-25 Martin Jambor <mjambor@suse.cz>
10187
10188 PR ipa/60600
10189 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
10190 inconsistent devirtualizations to __builtin_unreachable.
10191
10192 2014-03-25 Marek Polacek <polacek@redhat.com>
10193
10194 PR c/35449
10195 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
10196
10197 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
10198
10199 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
10200 order of elements for big-endian.
10201
10202 2014-03-25 Richard Biener <rguenther@suse.de>
10203
10204 PR middle-end/60635
10205 * gimplify-me.c (gimple_regimplify_operands): Update the
10206 re-gimplifed stmt.
10207
10208 2014-03-25 Martin Jambor <mjambor@suse.cz>
10209
10210 PR ipa/59176
10211 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
10212 (lto_output_varpool_node): Likewise.
10213 (input_overwrite_node): Likewise.
10214 (input_varpool_node): Likewise.
10215
10216 2014-03-25 Richard Biener <rguenther@suse.de>
10217
10218 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
10219 (run_gcc): Likewise.
10220
10221 2014-03-25 Jakub Jelinek <jakub@redhat.com>
10222
10223 * combine.c (simplify_compare_const): Add MODE argument.
10224 Handle mode_width 0 as very large mode_width.
10225 (try_combine, simplify_comparison): Adjust callers.
10226
10227 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
10228 type to avoid signed integer overflow.
10229 * explow.c (plus_constant): Likewise.
10230
10231 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10232
10233 * doc/generic.texi: Correct typos.
10234
10235 2014-03-24 Tobias Burnus <burnus@net-b.de>
10236
10237 * doc/invoke.texi (-flto): Expand section about
10238 using static libraries with LTO.
10239
10240 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10241
10242 PR rtl-optimization/60501
10243 * optabs.def (addptr3_optab): New optab.
10244 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
10245 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
10246 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
10247
10248 * lra.c (emit_add3_insn): Use the addptr pattern if available.
10249
10250 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
10251
10252 2014-03-24 Ulrich Drepper <drepper@gmail.com>
10253
10254 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
10255 _mm512_set1_pd.
10256
10257 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
10258 (_mm256_undefined_ps): Define.
10259 (_mm256_undefined_pd): Define.
10260 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
10261 (_mm_undefined_pd): Define.
10262 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
10263 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
10264 (_mm512_undefined_ps): Define.
10265 (_mm512_undefined_pd): Define.
10266 Use _mm*_undefined_*.
10267 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
10268
10269 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
10270
10271 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
10272 (lshr_simd): DI mode added.
10273 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
10274 (aarch64_ushr_simddi): Likewise.
10275 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
10276 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
10277 (vshrd_n_u64): Likewise.
10278
10279 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10280
10281 * Makefile.in (s-macro_list): Depend on cc1.
10282
10283 2014-03-23 Teresa Johnson <tejohnson@google.com>
10284
10285 * ipa-utils.c (ipa_print_order): Use specified dump file.
10286
10287 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
10288
10289 PR rtl-optimization/60601
10290 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
10291
10292 * gcc.c (eval_spec_function): Initialize save_growing_value.
10293
10294 2014-03-22 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR sanitizer/60613
10297 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
10298 code == MINUS_EXPR, never swap op0 with op1.
10299
10300 * toplev.c (init_local_tick): Avoid signed integer multiplication
10301 overflow.
10302 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
10303 shift by first operand's bitsize.
10304
10305 2014-03-21 Jakub Jelinek <jakub@redhat.com>
10306
10307 PR target/60610
10308 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
10309 redefine to 1 or 0.
10310 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
10311 TARGET_ISA_64BIT_P(x).
10312
10313 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10314
10315 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
10316 pattern for vector nor instead of subtract from splat(-1).
10317 (altivec_expand_vec_perm_const_le): Likewise.
10318
10319 2014-03-21 Richard Henderson <rth@twiddle.net>
10320
10321 PR target/60598
10322 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
10323 related insns after epilogue_completed.
10324
10325 2014-03-21 Martin Jambor <mjambor@suse.cz>
10326
10327 PR ipa/59176
10328 * cgraph.h (symtab_node): New flag body_removed.
10329 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
10330 when removing bodies.
10331 * symtab.c (dump_symtab_base): Dump body_removed flag.
10332 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
10333 had their bodies removed.
10334
10335 2014-03-21 Martin Jambor <mjambor@suse.cz>
10336
10337 PR ipa/60419
10338 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
10339 in the border.
10340
10341 2014-03-21 Richard Biener <rguenther@suse.de>
10342
10343 PR tree-optimization/60577
10344 * tree-core.h (struct tree_base): Document nothrow_flag use
10345 in DECL_NONALIASED.
10346 * tree.h (DECL_NONALIASED): New.
10347 (may_be_aliased): Adjust.
10348 * coverage.c (build_var): Set DECL_NONALIASED.
10349
10350 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10351
10352 * expr.c (expand_expr_real_1): Remove outdated comment.
10353
10354 2014-03-20 Jakub Jelinek <jakub@redhat.com>
10355
10356 PR middle-end/60597
10357 * ira.c (adjust_cleared_regs): Call copy_rtx on
10358 *reg_equiv[REGNO (loc)].src_p before passing it to
10359 simplify_replace_fn_rtx.
10360
10361 PR target/60568
10362 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
10363 into CONST, put pic register as first operand of PLUS. Use
10364 gen_const_mem for both 32-bit and 64-bit PIC got loads.
10365
10366 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10367
10368 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
10369
10370 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10371
10372 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
10373 around for store forwarding issue in the FPU on the UT699.
10374 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
10375 loads and operations if -mfix-ut699 is specified.
10376 (divtf3_hq): Tweak attribute.
10377 (sqrttf2_hq): Likewise.
10378
10379 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
10380
10381 * calls.c (store_one_arg): Remove incorrect const qualification on the
10382 type of the temporary.
10383 * cfgexpand.c (expand_return): Likewise.
10384 * expr.c (expand_constructor): Likewise.
10385 (expand_expr_real_1): Likewise.
10386
10387 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10388
10389 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
10390 of parts.
10391
10392 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
10393
10394 PR target/60039
10395 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
10396
10397 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
10398
10399 * config/arm/aarch-common-protos.h
10400 (alu_cost_table): Fix spelling of "extend".
10401 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
10402
10403 2014-03-19 Richard Biener <rguenther@suse.de>
10404
10405 PR middle-end/60553
10406 * tree-core.h (tree_type_common): Re-order pointer members
10407 to reduce recursion depth during GC walks.
10408
10409 2014-03-19 Marek Polacek <polacek@redhat.com>
10410
10411 PR sanitizer/60569
10412 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
10413 before accessing it.
10414
10415 2014-03-19 Richard Biener <rguenther@suse.de>
10416
10417 PR lto/59543
10418 * lto-streamer-in.c (input_function): In WPA stage do not drop
10419 debug stmts.
10420
10421 2014-03-19 Jakub Jelinek <jakub@redhat.com>
10422
10423 PR tree-optimization/60559
10424 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
10425 with build_zero_cst assignment.
10426
10427 2014-03-18 Kai Tietz <ktietz@redhat.com>
10428
10429 PR rtl-optimization/56356
10430 * sdbout.c (sdbout_parms): Verify that parms'
10431 incoming argument is valid.
10432 (sdbout_reg_parms): Likewise.
10433
10434 2014-03-18 Richard Henderson <rth@redhat.com>
10435
10436 PR target/60562
10437 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
10438 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
10439 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
10440
10441 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
10442
10443 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
10444 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
10445 Italicize plugin event names in description. Explain that
10446 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
10447 Remind that no GCC functions should be called after PLUGIN_FINISH.
10448 Explain what pragmas with expansion are.
10449
10450 2014-03-18 Martin Liska <mliska@suse.cz>
10451
10452 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
10453 gimple call statement is update.
10454 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
10455 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
10456
10457 2014-03-18 Jakub Jelinek <jakub@redhat.com>
10458
10459 PR sanitizer/60557
10460 * ubsan.c (ubsan_instrument_unreachable): Call
10461 initialize_sanitizer_builtins.
10462 (ubsan_pass): Likewise.
10463
10464 PR sanitizer/60535
10465 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
10466 varpool_finalize_decl instead of rest_of_decl_compilation.
10467
10468 2014-03-18 Richard Biener <rguenther@suse.de>
10469
10470 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
10471 by using bitmap_and_compl instead of bitmap_and_compl_into.
10472 (df_rd_transfer_function): Likewise.
10473
10474 2014-03-18 Richard Biener <rguenther@suse.de>
10475
10476 * doc/lto.texi (fresolution): Fix typo.
10477
10478 2014-03-18 Richard Biener <rguenther@suse.de>
10479
10480 * doc/invoke.texi (flto): Update for changes in 4.9.
10481
10482 2014-03-18 Richard Biener <rguenther@suse.de>
10483
10484 * doc/loop.texi: Remove section on the removed lambda framework.
10485 Update loop docs with recent changes in preserving loop structure.
10486
10487 2014-03-18 Richard Biener <rguenther@suse.de>
10488
10489 * doc/lto.texi (-fresolution): Document.
10490
10491 2014-03-18 Richard Biener <rguenther@suse.de>
10492
10493 * doc/contrib.texi: Adjust my name.
10494
10495 2014-03-18 Jakub Jelinek <jakub@redhat.com>
10496
10497 PR ipa/58721
10498 * internal-fn.c: Include diagnostic-core.h.
10499 (expand_BUILTIN_EXPECT): New function.
10500 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
10501 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
10502 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
10503 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
10504 IFN_BUILTIN_EXPECT.
10505 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
10506 Revert 3 argument __builtin_expect code.
10507 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
10508 * gimple-fold.c (gimple_fold_call): Likewise.
10509 * tree.h (fold_builtin_expect): New prototype.
10510 * builtins.c (build_builtin_expect_predicate): Add predictor
10511 argument, if non-NULL, create 3 argument __builtin_expect.
10512 (fold_builtin_expect): No longer static. Add ARG2 argument,
10513 pass it through to build_builtin_expect_predicate.
10514 (fold_builtin_2): Adjust caller.
10515 (fold_builtin_3): Handle BUILT_IN_EXPECT.
10516 * internal-fn.def (BUILTIN_EXPECT): New.
10517
10518 2014-03-18 Tobias Burnus <burnus@net-b.de>
10519
10520 PR ipa/58721
10521 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
10522 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
10523 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
10524
10525 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
10526
10527 PR ipa/58721
10528 * predict.c (combine_predictions_for_bb): Fix up formatting.
10529 (expr_expected_value_1, expr_expected_value): Add predictor argument,
10530 fill what it points to if non-NULL.
10531 (tree_predict_by_opcode): Adjust caller, use the predictor.
10532 * predict.def (PRED_COMPARE_AND_SWAP): Add.
10533
10534 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
10535
10536 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
10537 proper constant for the store mode.
10538
10539 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
10540
10541 * symtab.c (change_decl_assembler_name): Fix transparent alias
10542 chain construction.
10543
10544 2014-03-16 Renlin Li <Renlin.Li@arm.com>
10545
10546 * config/aarch64/aarch64.c: Correct the comments about the
10547 aarch64 stack layout.
10548
10549 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
10550
10551 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
10552 check for GF_OMP_FOR_KIND_FOR.
10553
10554 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
10555
10556 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
10557 ymm and zmm register names.
10558
10559 2014-03-17 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR target/60516
10562 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
10563 note creation for the 2010-08-31 changes.
10564
10565 2014-03-17 Marek Polacek <polacek@redhat.com>
10566
10567 PR middle-end/60534
10568 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
10569 as -fno-tree-loop-vectorize.
10570 (expand_omp_simd): Likewise.
10571
10572 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
10573
10574 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
10575 (eligible_for_call_delay): New prototype.
10576 * config/sparc/sparc.c (tls_call_delay): Rename into...
10577 (eligible_for_call_delay): ...this. Return false if the instruction
10578 cannot be put in the delay slot of a branch.
10579 (eligible_for_restore_insn): Simplify.
10580 (eligible_for_return_delay): Return false if the instruction cannot be
10581 put in the delay slot of a branch and simplify.
10582 (eligible_for_sibcall_delay): Return false if the instruction cannot be
10583 put in the delay slot of a branch.
10584 * config/sparc/sparc.md (fix_ut699): New attribute.
10585 (tls_call_delay): Delete.
10586 (in_call_delay): Reimplement.
10587 (eligible_for_sibcall_delay): Rename into...
10588 (in_sibcall_delay): ...this.
10589 (eligible_for_return_delay): Rename into...
10590 (in_return_delay): ...this.
10591 (in_branch_delay): Reimplement.
10592 (in_uncond_branch_delay): Delete.
10593 (in_annul_branch_delay): Delete.
10594
10595 2014-03-14 Richard Henderson <rth@redhat.com>
10596
10597 PR target/60525
10598 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
10599 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
10600 (*floathi<X87MODEF>2_i387_with_temp): Remove.
10601 (floathi splitters): Remove.
10602 (float<SWI48x>xf2): New pattern.
10603 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
10604 code that tried to handle DImode for 32-bit, but which was excluded
10605 by the pattern's condition. Drop allocation of stack temporary.
10606 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
10607 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
10608 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
10609 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
10610 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
10611 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
10612 (*float<SWI48><MODEF>2_sse_interunit): Remove.
10613 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
10614 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
10615 (*float<SWI48x><X87MODEF>2_i387): Remove.
10616 (all float _with_temp splitters): Remove.
10617 (*float<SWI48x><MODEF>2_i387): New pattern.
10618 (*float<SWI48><MODEF>2_sse): New pattern.
10619 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
10620 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
10621
10622 2014-03-14 Jakub Jelinek <jakub@redhat.com>
10623 Marek Polacek <polacek@redhat.com>
10624
10625 PR middle-end/60484
10626 * common.opt (dump_base_name_prefixed): New Variable.
10627 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
10628 if x_dump_base_name_prefixed is already set, set it at the end.
10629
10630 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
10631
10632 PR rtl-optimization/60508
10633 * lra-constraints.c (get_reload_reg): Add new parameter
10634 in_subreg_p.
10635 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
10636 Pass the new parameter values.
10637
10638 2014-03-14 Richard Biener <rguenther@suse.de>
10639
10640 * common.opt: Revert unintented changes from r205065.
10641 * opts.c: Likewise.
10642
10643 2014-03-14 Richard Biener <rguenther@suse.de>
10644
10645 PR middle-end/60518
10646 * cfghooks.c (split_block): Properly adjust all loops the
10647 block was a latch of.
10648
10649 2014-03-14 Martin Jambor <mjambor@suse.cz>
10650
10651 PR lto/60461
10652 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
10653 and simplify it.
10654
10655 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
10656
10657 PR target/59396
10658 * config/avr/avr.c (avr_set_current_function): Pass function name
10659 through default_strip_name_encoding before sanity checking instead
10660 of skipping the first char of the assembler name.
10661
10662 2014-03-13 Richard Henderson <rth@redhat.com>
10663
10664 PR debug/60438
10665 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
10666 (ix86_force_to_memory, ix86_free_from_memory): Remove.
10667 * config/i386/i386-protos.h: Likewise.
10668 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
10669 in the expander instead of a splitter.
10670 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
10671 any possibility of requiring a memory.
10672 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
10673 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
10674 (fp branch splitters): Update for ix86_split_fp_branch.
10675 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
10676 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
10677 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
10678 (*fop_<MODEF>_2_i387): Remove f/r alternative.
10679 (*fop_<MODEF>_3_i387): Likewise.
10680 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
10681 (splitters for the fop_* register patterns): Remove.
10682 (fscalexf4_i387): Rename from *fscalexf4_i387.
10683 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
10684
10685 2014-03-13 Jakub Jelinek <jakub@redhat.com>
10686
10687 PR tree-optimization/59779
10688 * tree-dfa.c (get_ref_base_and_extent): Use double_int
10689 type for bitsize and maxsize instead of HOST_WIDE_INT.
10690
10691 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
10692
10693 PR rtl-optimization/57320
10694 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
10695 the CFG after thread_prologue_and_epilogue_insns.
10696
10697 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
10698
10699 PR rtl-optimization/57189
10700 * lra-constraints.c (process_alt_operands): Disfavor spilling
10701 vector pseudos.
10702
10703 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
10704
10705 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
10706
10707 2014-03-13 Jakub Jelinek <jakub@redhat.com>
10708
10709 PR tree-optimization/59025
10710 PR middle-end/60418
10711 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
10712 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
10713
10714 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
10715
10716 PR target/60486
10717 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
10718 calls of avr_out_plus_1.
10719
10720 2014-03-13 Bin Cheng <bin.cheng@arm.com>
10721
10722 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
10723 BB's single pred and update the father loop's latch info later.
10724
10725 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
10726
10727 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
10728 (VEC_M): Likewise.
10729 (VEC_N): Likewise.
10730 (VEC_R): Likewise.
10731 (VEC_base): Likewise.
10732 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
10733 registers, we need to swap double words in little endian mode.
10734
10735 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
10736 to be a container mode for 128-bit integer operations added in ISA
10737 2.07. Unlike TImode and PTImode, the preferred register set is
10738 the Altivec/VMX registers for the 128-bit operations.
10739
10740 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
10741 declarations.
10742 (rs6000_split_128bit_ok_p): Likewise.
10743
10744 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
10745 macros for creating ISA 2.07 normal and overloaded builtin
10746 functions with 3 arguments.
10747 (BU_P8V_OVERLOAD_3): Likewise.
10748 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
10749 for use as overloaded functions.
10750 (VPERM_1TI_UNS): Likewise.
10751 (VSEL_1TI): Likewise.
10752 (VSEL_1TI_UNS): Likewise.
10753 (ST_INTERNAL_1ti): Likewise.
10754 (LD_INTERNAL_1ti): Likewise.
10755 (XXSEL_1TI): Likewise.
10756 (XXSEL_1TI_UNS): Likewise.
10757 (VPERM_1TI): Likewise.
10758 (VPERM_1TI_UNS): Likewise.
10759 (XXPERMDI_1TI): Likewise.
10760 (SET_1TI): Likewise.
10761 (LXVD2X_V1TI): Likewise.
10762 (STXVD2X_V1TI): Likewise.
10763 (VEC_INIT_V1TI): Likewise.
10764 (VEC_SET_V1TI): Likewise.
10765 (VEC_EXT_V1TI): Likewise.
10766 (EQV_V1TI): Likewise.
10767 (NAND_V1TI): Likewise.
10768 (ORC_V1TI): Likewise.
10769 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
10770 added in ISA 2.07. Add both normal 'altivec' builtins, and the
10771 overloaded builtin.
10772 (VADDUQM): Likewise.
10773 (VSUBCUQ): Likewise.
10774 (VADDEUQM): Likewise.
10775 (VADDECUQ): Likewise.
10776 (VSUBEUQM): Likewise.
10777 (VSUBECUQ): Likewise.
10778
10779 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
10780 __int128_t and __uint128_t types.
10781 (__uint128_type): Likewise.
10782 (altivec_categorize_keyword): Add support for vector __int128_t,
10783 vector __uint128_t, vector __int128, and vector unsigned __int128
10784 as a container type for TImode operations that need to be done in
10785 VSX/Altivec registers.
10786 (rs6000_macro_to_expand): Likewise.
10787 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
10788 to support 128-bit integer instructions vaddcuq, vadduqm,
10789 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
10790 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
10791
10792 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10793 for V1TImode, and set up preferences to use VSX/Altivec registers.
10794 Setup VSX reload handlers.
10795 (rs6000_debug_reg_global): Likewise.
10796 (rs6000_init_hard_regno_mode_ok): Likewise.
10797 (rs6000_preferred_simd_mode): Likewise.
10798 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
10799 (easy_altivec_constant): Likewise.
10800 (output_vec_const_move): Likewise.
10801 (rs6000_expand_vector_set): Convert V1TImode set and extract to
10802 simple move.
10803 (rs6000_expand_vector_extract): Likewise.
10804 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
10805 addressing.
10806 (rs6000_const_vec): Add support for V1TImode.
10807 (rs6000_emit_le_vsx_load): Swap double words when loading or
10808 storing TImode/V1TImode.
10809 (rs6000_emit_le_vsx_store): Likewise.
10810 (rs6000_emit_le_vsx_move): Likewise.
10811 (rs6000_emit_move): Add support for V1TImode.
10812 (altivec_expand_ld_builtin): Likewise.
10813 (altivec_expand_st_builtin): Likewise.
10814 (altivec_expand_vec_init_builtin): Likewise.
10815 (altivec_expand_builtin): Likewise.
10816 (rs6000_init_builtins): Add support for V1TImode type. Add
10817 support for ISA 2.07 128-bit integer builtins. Define type names
10818 for the VSX/Altivec vector types.
10819 (altivec_init_builtins): Add support for overloaded vector
10820 functions with V1TImode type.
10821 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
10822 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
10823 external function.
10824 (rs6000_split_128bit_ok_p): Likewise.
10825 (rs6000_handle_altivec_attribute): Create V1TImode from vector
10826 __int128_t and vector __uint128_t.
10827
10828 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
10829 and mode attributes.
10830 (VSX_M): Likewise.
10831 (VSX_M2): Likewise.
10832 (VSm): Likewise.
10833 (VSs): Likewise.
10834 (VSr): Likewise.
10835 (VSv): Likewise.
10836 (VS_scalar): Likewise.
10837 (VS_double): Likewise.
10838 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
10839
10840 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
10841 we support the ISA 2.07 128-bit integer arithmetic instructions.
10842 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
10843 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
10844 and TImode types for use with the builtin functions.
10845 (V1TI_type_node): Likewise.
10846 (unsigned_V1TI_type_node): Likewise.
10847 (intTI_type_internal_node): Likewise.
10848 (uintTI_type_internal_node): Likewise.
10849
10850 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
10851 128-bit builtin functions.
10852 (UNSPEC_VADDEUQM): Likewise.
10853 (UNSPEC_VADDECUQ): Likewise.
10854 (UNSPEC_VSUBCUQ): Likewise.
10855 (UNSPEC_VSUBEUQM): Likewise.
10856 (UNSPEC_VSUBECUQ): Likewise.
10857 (VM): Add V1TImode to vector mode iterators.
10858 (VM2): Likewise.
10859 (VI_unit): Likewise.
10860 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
10861 (altivec_vaddcuq): Likewise.
10862 (altivec_vsubuqm): Likewise.
10863 (altivec_vsubcuq): Likewise.
10864 (altivec_vaddeuqm): Likewise.
10865 (altivec_vaddecuq): Likewise.
10866 (altivec_vsubeuqm): Likewise.
10867 (altivec_vsubecuq): Likewise.
10868
10869 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
10870 mode iterators.
10871 (BOOL_128): Likewise.
10872 (BOOL_REGS_OUTPUT): Likewise.
10873 (BOOL_REGS_OP1): Likewise.
10874 (BOOL_REGS_OP2): Likewise.
10875 (BOOL_REGS_UNARY): Likewise.
10876 (BOOL_REGS_AND_CR0): Likewise.
10877
10878 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
10879 128-bit integer builtin support.
10880 (vec_vadduqm): Likewise.
10881 (vec_vaddecuq): Likewise.
10882 (vec_vaddeuqm): Likewise.
10883 (vec_vsubecuq): Likewise.
10884 (vec_vsubeuqm): Likewise.
10885 (vec_vsubcuq): Likewise.
10886 (vec_vsubuqm): Likewise.
10887
10888 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10889 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
10890 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
10891 128-bit integer add/subtract to ISA 2.07.
10892
10893 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
10894
10895 * config/arc/arc.c (arc_predicate_delay_insns):
10896 Fix third argument passed to conditionalize_nonjump.
10897
10898 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
10899
10900 * config/aarch64/aarch64-builtins.c
10901 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
10902 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
10903 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
10904 instead of __builtin_lfloor.
10905 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
10906
10907 2014-03-12 Jakub Jelinek <jakub@redhat.com>
10908
10909 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
10910 (tree_ssa_ifcombine_bb_1): New function.
10911 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
10912 is an empty forwarder block to then_bb or vice versa and then_bb
10913 and else_bb are effectively swapped.
10914
10915 2014-03-12 Christian Bruel <christian.bruel@st.com>
10916
10917 PR target/60264
10918 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
10919 REG_CFA_DEF_CFA note.
10920 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
10921 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
10922
10923 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10924
10925 PR tree-optimization/60454
10926 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
10927
10928 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10929
10930 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
10931 Do not define target_cpu_default2 to generic.
10932 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
10933 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
10934 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
10935
10936 2014-03-12 Jakub Jelinek <jakub@redhat.com>
10937 Marc Glisse <marc.glisse@inria.fr>
10938
10939 PR tree-optimization/60502
10940 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
10941 instead of build_low_bits_mask.
10942
10943 2014-03-12 Jakub Jelinek <jakub@redhat.com>
10944
10945 PR middle-end/60482
10946 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
10947 if there are multiple uses, but op doesn't live on E edge.
10948 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
10949 clobber stmts before __builtin_unreachable.
10950
10951 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
10952
10953 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
10954 hard_frame_pointer_rtx.
10955 * cse.c (cse_insn): Remove volatile check.
10956 * cselib.c (cselib_process_insn): Likewise.
10957 * dse.c (scan_insn): Likewise.
10958
10959 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
10960
10961 * config/arc/arc.c (conditionalize_nonjump): New function,
10962 broken out of ...
10963 (arc_ifcvt): ... this.
10964 (arc_predicate_delay_insns): Use it.
10965
10966 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
10967
10968 * config/arc/predicates.md (extend_operand): During/after reload,
10969 allow const_int_operand.
10970 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
10971 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
10972 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
10973 to "i".
10974 (umulsi3_highpart_i): Likewise.
10975
10976 2014-03-11 Richard Biener <rguenther@suse.de>
10977
10978 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
10979 Add asserts to guard possible wrong-code bugs.
10980
10981 2014-03-11 Richard Biener <rguenther@suse.de>
10982
10983 PR tree-optimization/60429
10984 PR tree-optimization/60485
10985 * tree-ssa-structalias.c (set_union_with_increment): Properly
10986 take into account all fields that overlap the shifted vars.
10987 (do_sd_constraint): Likewise.
10988 (do_ds_constraint): Likewise.
10989 (get_constraint_for_ptr_offset): Likewise.
10990
10991 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
10992
10993 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
10994 (nios2_compute_frame_layout):
10995 Add calculation of cfun->machine->fp_save_offset.
10996 (nios2_expand_prologue): Correct setting of frame pointer register
10997 in prologue.
10998 (nios2_expand_epilogue): Update recovery of stack pointer from
10999 frame pointer accordingly.
11000 (nios2_initial_elimination_offset): Update calculation of offset
11001 for eliminating to HARD_FRAME_POINTER_REGNUM.
11002
11003 2014-03-10 Jakub Jelinek <jakub@redhat.com>
11004
11005 PR ipa/60457
11006 * ipa.c (symtab_remove_unreachable_nodes): Don't call
11007 cgraph_get_create_node on VAR_DECLs.
11008
11009 2014-03-10 Richard Biener <rguenther@suse.de>
11010
11011 PR middle-end/60474
11012 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
11013
11014 2014-03-08 Douglas B Rupp <rupp@gnat.com>
11015
11016 * config/vms/vms.opt (vms_float_format): New variable.
11017
11018 2014-03-08 Tobias Burnus <burnus@net-b.de>
11019
11020 * doc/invoke.texi (-fcilkplus): Update implementation status.
11021
11022 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
11023 Richard Biener <rguenther@suse.de>
11024
11025 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
11026 consistently accross all TUs.
11027 (run_gcc): Enable -fshort-double automatically at link at link-time
11028 and disallow override.
11029
11030 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
11031
11032 PR target/58271
11033 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
11034 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
11035 if they can't be used.
11036
11037 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11038
11039 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
11040 for Solaris 11/x86 ld.
11041 * configure: Regenerate.
11042
11043 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11044
11045 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
11046 (LIB_TLS_SPEC): Save as ld_tls_libs.
11047 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
11048 (HAVE_AS_IX86_TLSLDM): New test.
11049 * configure, config.in: Regenerate.
11050 * config/i386/i386.c (legitimize_tls_address): Fall back to
11051 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
11052 cannot support TLS_MODEL_LOCAL_DYNAMIC.
11053 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
11054 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
11055
11056 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
11057
11058 * common.opt (fira-loop-pressure): Mark as optimization.
11059
11060 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
11061
11062 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
11063 an OpenMP mappable type.
11064
11065 2014-03-06 Matthias Klose <doko@ubuntu.com>
11066
11067 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
11068 MULTILIB_OSDIRNAMES is not defined.
11069
11070 2014-03-06 Jakub Jelinek <jakub@redhat.com>
11071 Meador Inge <meadori@codesourcery.com>
11072
11073 PR target/58595
11074 * config/arm/arm.c (arm_tls_symbol_p): Remove.
11075 (arm_legitimize_address): Call legitimize_tls_address for any
11076 arm_tls_referenced_p expression, handle constant addend. Call it
11077 before testing for !TARGET_ARM.
11078 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
11079
11080 2014-03-06 Richard Biener <rguenther@suse.de>
11081
11082 PR middle-end/60445
11083 PR lto/60424
11084 PR lto/60427
11085 Revert
11086 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
11087
11088 * tree-streamer.c (record_common_node): Assert we don't record
11089 nodes with type double.
11090 (preload_common_node): Skip type double, complex double and double
11091 pointer since it is now frontend dependent due to fshort-double option.
11092
11093 2014-03-06 Richard Biener <rguenther@suse.de>
11094
11095 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
11096 or -fno-lto is specified and the linker has full plugin support.
11097 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
11098 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
11099 * lto-wrapper.c (merge_and_complain): Merge compile-time
11100 optimization levels.
11101 (run_gcc): And pass it through to the link options.
11102
11103 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
11104
11105 PR debug/60381
11106 Revert:
11107 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11108 PR debug/59992
11109 * cselib.c (remove_useless_values): Skip to avoid quadratic
11110 behavior if the condition moved from...
11111 (cselib_process_insn): ... here holds.
11112
11113 2014-03-05 Jakub Jelinek <jakub@redhat.com>
11114
11115 PR plugins/59335
11116 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
11117 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
11118
11119 PR plugins/59335
11120 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
11121 (TM_H): Add x86-tune.def.
11122
11123 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11124
11125 * config/aarch64/aarch64.c (generic_tunings):
11126 Use cortexa57_extra_costs.
11127
11128 2014-03-05 Jakub Jelinek <jakub@redhat.com>
11129
11130 PR lto/60404
11131 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
11132 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
11133 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
11134 cost for in_lto_p.
11135
11136 2014-03-04 Heiher <r@hev.cc>
11137
11138 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
11139 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
11140
11141 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
11142
11143 * config/i386/predicates.md (const2356_operand): Change to ...
11144 (const2367_operand): ... this.
11145 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
11146 const2367_operand.
11147 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
11148 (*avx512pf_scatterpf<mode>sf): Ditto.
11149 (avx512pf_scatterpf<mode>df): Ditto.
11150 (*avx512pf_scatterpf<mode>df_mask): Ditto.
11151 (*avx512pf_scatterpf<mode>df): Ditto.
11152 * config/i386/i386.c (ix86_expand_builtin): Update
11153 incorrect hint operand error message.
11154
11155 2014-03-04 Richard Biener <rguenther@suse.de>
11156
11157 * lto-section-in.c (lto_get_section_data): Fix const cast.
11158
11159 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
11160
11161 * tree-streamer.c (record_common_node): Assert we don't record
11162 nodes with type double.
11163 (preload_common_node): Skip type double, complex double and double
11164 pointer since it is now frontend dependent due to fshort-double option.
11165
11166 2014-03-04 Richard Biener <rguenther@suse.de>
11167
11168 PR lto/60405
11169 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
11170 (lto_input_toplevel_asms): Likewise.
11171 * lto-section-in.c (lto_get_section_data): Instead do it here
11172 for every section.
11173
11174 2014-03-04 Richard Biener <rguenther@suse.de>
11175
11176 PR tree-optimization/60382
11177 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
11178 dead PHIs a reduction.
11179
11180 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
11181
11182 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
11183 hint value.
11184 (_mm_prefetch): Move out of GCC target("sse") pragma.
11185 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
11186 GCC target("prfchw") pragma.
11187 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
11188 for locality <= 2.
11189 * config/i386/i386.c (ix86_option_override_internal): Enable
11190 -mprfchw with -mprefetchwt1.
11191
11192 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
11193
11194 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
11195 Mark as varying.
11196
11197 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
11198
11199 * opts.h (CL_PCH_IGNORE): Define.
11200 * targhooks.c (option_affects_pch_p):
11201 Return false for options that have CL_PCH_IGNORE set.
11202 * opt-functions.awk: Process PchIgnore.
11203 * doc/options.texi: Document PchIgnore.
11204
11205 * config/arc/arc.opt (misize): Add PchIgnore property.
11206
11207 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11208
11209 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
11210 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
11211 constraint on constants to permit them being loaded into
11212 GENERAL_REGS or BASE_REGS.
11213
11214 2014-03-03 Nick Clifton <nickc@redhat.com>
11215
11216 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
11217 anti-cacnonical alternatives.
11218 (negandhi3_real): New pattern.
11219 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
11220
11221 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11222
11223 * config/avr/avr-mcus.def: Remove atxmega16x1.
11224 * config/avr/avr-tables.opt: Regenerate.
11225 * config/avr/t-multilib: Regenerate.
11226 * doc/avr-mmcu.texi: Regenerate.
11227
11228 2014-03-03 Tobias Grosser <tobias@grosser.es>
11229 Mircea Namolaru <mircea.namolaru@inria.fr>
11230
11231 PR tree-optimization/58028
11232 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
11233 scalar dimensions.
11234
11235 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11236
11237 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
11238 not handled by recognizers.
11239
11240 2014-03-03 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR middle-end/60175
11243 * function.c (expand_function_end): Don't emit
11244 clobber_return_register sequence if clobber_after is a BARRIER.
11245 * cfgexpand.c (construct_exit_block): Append instructions before
11246 return_label to prev_bb.
11247
11248 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11249
11250 * config/rs6000/constraints.md: Document reserved use of "wc".
11251
11252 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
11253
11254 PR ipa/60150
11255 * ipa.c (function_and_variable_visibility): When dissolving comdat
11256 group, also set all symbols to local.
11257
11258 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
11259
11260 PR ipa/60306
11261
11262 Revert:
11263 2013-12-14 Jan Hubicka <jh@suse.cz>
11264 PR middle-end/58477
11265 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
11266
11267 2014-03-02 Jon Beniston <jon@beniston.com>
11268
11269 PR bootstrap/48230
11270 PR bootstrap/50927
11271 PR bootstrap/52466
11272 PR target/46898
11273 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
11274 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
11275 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
11276 (simple_return, *simple_return): New patterns
11277 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
11278 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
11279
11280 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
11281
11282 * dwarf2out.c (gen_subprogram_die): Tidy.
11283
11284 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
11285
11286 PR target/60071
11287 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
11288 (*mov_t_msb_neg_negc): ... this new insn.
11289
11290 2014-02-28 Jason Merrill <jason@redhat.com>
11291
11292 PR c++/58678
11293 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
11294 function.
11295
11296 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11297
11298 PR c++/60314
11299 * dwarf2out.c (decltype_auto_die): New static.
11300 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
11301 (gen_type_die_with_usage): Handle 'decltype(auto)'.
11302 (is_cxx_auto): Likewise.
11303
11304 2014-02-28 Ian Bolton <ian.bolton@arm.com>
11305
11306 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
11307 we are not using general regs only.
11308
11309 2014-02-28 Richard Biener <rguenther@suse.de>
11310
11311 PR target/60280
11312 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
11313 previous fix and only allow to remove trivial pre-headers
11314 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
11315 (remove_forwarder_block): Properly update the latch of a loop.
11316
11317 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11318
11319 PR debug/59992
11320 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
11321 (cselib_preserved_hash_table): New.
11322 (preserve_constants_and_equivs): Move preserved vals to it.
11323 (cselib_find_slot): Look it up first.
11324 (cselib_init): Initialize it.
11325 (cselib_finish): Release it.
11326 (dump_cselib_table): Dump it.
11327
11328 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11329
11330 PR debug/59992
11331 * cselib.c (remove_useless_values): Skip to avoid quadratic
11332 behavior if the condition moved from...
11333 (cselib_process_insn): ... here holds.
11334
11335 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
11336
11337 PR debug/57232
11338 * var-tracking.c (vt_initialize): Apply the same condition to
11339 preserve the CFA base value.
11340
11341 2014-02-28 Joey Ye <joey.ye@arm.com>
11342
11343 PR target/PR60169
11344 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
11345 if reload in progress or completed.
11346
11347 2014-02-28 Tobias Burnus <burnus@net-b.de>
11348
11349 PR middle-end/60147
11350 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
11351 NAMELIST_DECL.
11352
11353 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
11354
11355 * doc/tm.texi.in (Condition Code Status): Update documention for
11356 relative locations of cc0-setter and cc0-user.
11357
11358 2014-02-27 Jeff Law <law@redhat.com>
11359
11360 PR rtl-optimization/52714
11361 * combine.c (try_combine): When splitting an unrecognized PARALLEL
11362 into two independent simple sets, if I3 is a jump, ensure the
11363 pattern we place into I3 is a (set (pc) ...).
11364
11365 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
11366 Jeff Law <law@redhat.com>
11367
11368 PR rtl-optimization/49847
11369 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
11370 are in different blocks.
11371 * doc/tm.texi (Condition Code Status): Update documention for
11372 relative locations of cc0-setter and cc0-user.
11373
11374 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
11375
11376 PR target/59222
11377 * lra.c (lra_emit_add): Check SUBREG too.
11378
11379 2014-02-27 Andreas Schwab <schwab@suse.de>
11380
11381 * config/m68k/m68k.c (m68k_option_override): Disable
11382 -flive-range-shrinkage for classic m68k.
11383 (m68k_override_options_after_change): Likewise.
11384
11385 2014-02-27 Marek Polacek <polacek@redhat.com>
11386
11387 PR middle-end/59223
11388 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
11389 -Wmaybe-uninitialized.
11390
11391 2014-02-27 Alan Modra <amodra@gmail.com>
11392
11393 PR target/57936
11394 * reload1.c (emit_input_reload_insns): When reload_override_in,
11395 set old to rl->in_reg when rl->in_reg is a subreg.
11396
11397 2014-02-26 Richard Biener <rguenther@suse.de>
11398
11399 PR bootstrap/60343
11400 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
11401
11402 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
11403
11404 * common/config/i386/predicates.md (const1256_operand): Remove.
11405 (const2356_operand): New.
11406 (const_1_to_2_operand): Remove.
11407 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
11408 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
11409 (*avx512pf_gatherpf<mode>sf): Ditto.
11410 (avx512pf_gatherpf<mode>df): Ditto.
11411 (*avx512pf_gatherpf<mode>df_mask): Ditto.
11412 (*avx512pf_gatherpf<mode>df): Ditto.
11413 (avx512pf_scatterpf<mode>sf): Ditto.
11414 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
11415 (*avx512pf_scatterpf<mode>sf): Ditto.
11416 (avx512pf_scatterpf<mode>df): Ditto.
11417 (*avx512pf_scatterpf<mode>df_mask): Ditto.
11418 (*avx512pf_scatterpf<mode>df): Ditto.
11419 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
11420
11421 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
11422
11423 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
11424 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
11425 (_mm512_mask_testn_epi64_mask): Move to ...
11426 * config/i386/avx512cdintrin.h: Here.
11427 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
11428 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
11429 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
11430 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
11431 TARGET_AVX512F from TARGET_AVX512CD.
11432
11433 2014-02-26 Richard Biener <rguenther@suse.de>
11434
11435 PR ipa/60327
11436 * ipa.c (walk_polymorphic_call_targets): Properly guard
11437 call to inline_update_overall_summary.
11438
11439 2014-02-26 Bin Cheng <bin.cheng@arm.com>
11440
11441 PR target/60280
11442 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
11443 and latches only if requested. Fix latch if it is removed.
11444 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
11445 LOOPS_HAVE_PREHEADERS.
11446
11447 2014-02-25 Andrew Pinski <apinski@cavium.com>
11448
11449 * builtins.c (expand_builtin_thread_pointer): Create a new target
11450 when the target is NULL.
11451
11452 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
11453
11454 PR rtl-optimization/60317
11455 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
11456 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
11457 * lra-assigns.c: Include params.h.
11458 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
11459 other reload pseudos considerations.
11460
11461 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11462
11463 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
11464 to use canonical form for nor<mode>3.
11465
11466 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11467
11468 PR target/55426
11469 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
11470 conversions.
11471
11472 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
11473
11474 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
11475 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
11476 (ix86_handle_option): Handle OPT_mprefetchwt1.
11477 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
11478 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11479 PREFETCHWT1 CPUID.
11480 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11481 OPTION_MASK_ISA_PREFETCHWT1.
11482 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
11483 (PTA_PREFETCHWT1): New.
11484 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
11485 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
11486 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
11487 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
11488 (*prefetch_avx512pf_<mode>_: Change into ...
11489 (*prefetch_prefetchwt1_<mode>: This.
11490 * config/i386/i386.opt (mprefetchwt1): New.
11491 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
11492 (_mm_prefetch): Handle intent to write.
11493 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
11494
11495 2014-02-25 Richard Biener <rguenther@suse.de>
11496
11497 PR middle-end/60291
11498 * emit-rtl.c (mem_attrs_htab): Remove.
11499 (mem_attrs_htab_hash): Likewise.
11500 (mem_attrs_htab_eq): Likewise.
11501 (set_mem_attrs): Always allocate new mem-attrs when something changed.
11502 (init_emit_once): Do not allocate mem_attrs_htab.
11503
11504 2014-02-25 Richard Biener <rguenther@suse.de>
11505
11506 PR lto/60319
11507 * lto-opts.c (lto_write_options): Output non-explicit conservative
11508 -fwrapv, -fno-trapv and -fno-strict-overflow.
11509 * lto-wrapper.c (merge_and_complain): Handle merging those options.
11510 (run_gcc): And pass them through.
11511
11512 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
11513
11514 * sel-sched.c (calculate_new_fences): New parameter ptime.
11515 Calculate it as a maximum over all fence cycles.
11516 (sel_sched_region_2): Adjust the call to calculate_new_fences.
11517 Print the final schedule timing when sched_verbose.
11518
11519 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
11520
11521 PR rtl-optimization/60292
11522 * sel-sched.c (fill_vec_av_set): Do not reset target availability
11523 bit fot the fence instruction.
11524
11525 2014-02-24 Alangi Derick <alangiderick@gmail.com>
11526
11527 * calls.h: Fix typo in comment.
11528
11529 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
11530
11531 * config/pa/pa.c (pa_output_move_double): Don't valididate when
11532 adjusting offsetable addresses.
11533
11534 2014-02-24 Guozhi Wei <carrot@google.com>
11535
11536 * sparseset.h (sparseset_pop): Fix the wrong index.
11537
11538 2014-02-24 Walter Lee <walt@tilera.com>
11539
11540 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
11541 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
11542 triplet.
11543 * common/config/tilegx/tilegx-common.c
11544 (TARGET_DEFAULT_TARGET_FLAGS): Define.
11545 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
11546 (LINK_SPEC): Ditto.
11547 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
11548 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
11549 (tilegx_gimplify_va_arg_expr): Handle big endian.
11550 (tilegx_expand_unaligned_load): Ditto.
11551 (tilegx_expand_unaligned_store): Ditto.
11552 (TARGET_RETURN_IN_MSB): New.
11553 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
11554 (TARGET_ENDIAN_DEFAULT): New.
11555 (TARGET_BIG_ENDIAN): Handle big endian.
11556 (BYTES_BIG_ENDIAN): Ditto.
11557 (WORDS_BIG_ENDIAN): Ditto.
11558 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
11559 (ENDIAN_SPEC): New.
11560 (EXTRA_SPECS): New.
11561 * config/tilegx/tilegx.md (extv): Handle big endian.
11562 (extzv): Ditto.
11563 (insn_st<n>): Ditto.
11564 (insn_st<n>_add<bitsuffix>): Ditto.
11565 (insn_stnt<n>): Ditto.
11566 (insn_stnt<n>_add<bitsuffix>):Ditto.
11567 (vec_interleave_highv8qi): Handle big endian.
11568 (vec_interleave_highv8qi_be): New.
11569 (vec_interleave_highv8qi_le): New.
11570 (insn_v1int_h): Handle big endian.
11571 (vec_interleave_lowv8qi): Handle big endian.
11572 (vec_interleave_lowv8qi_be): New.
11573 (vec_interleave_lowv8qi_le): New.
11574 (insn_v1int_l): Handle big endian.
11575 (vec_interleave_highv4hi): Handle big endian.
11576 (vec_interleave_highv4hi_be): New.
11577 (vec_interleave_highv4hi_le): New.
11578 (insn_v2int_h): Handle big endian.
11579 (vec_interleave_lowv4hi): Handle big endian.
11580 (vec_interleave_lowv4hi_be): New.
11581 (vec_interleave_lowv4hi_le): New.
11582 (insn_v2int_l): Handle big endian.
11583 (vec_interleave_highv2si): Handle big endian.
11584 (vec_interleave_highv2si_be): New.
11585 (vec_interleave_highv2si_le): New.
11586 (insn_v4int_h): Handle big endian.
11587 (vec_interleave_lowv2si): Handle big endian.
11588 (vec_interleave_lowv2si_be): New.
11589 (vec_interleave_lowv2si_le): New.
11590 (insn_v4int_l): Handle big endian.
11591 * config/tilegx/tilegx.opt (mbig-endian): New option.
11592 (mlittle-endian): New option.
11593 * doc/install.texi: Document tilegxbe-linux.
11594 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
11595
11596 2014-02-24 Martin Jambor <mjambor@suse.cz>
11597
11598 PR ipa/60266
11599 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
11600 there are no parameter descriptors.
11601
11602 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
11603
11604 PR rtl-optimization/60268
11605 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
11606 initialization to ...
11607 (sched_rgn_init): ... here.
11608 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
11609
11610 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
11611
11612 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
11613 names.
11614
11615 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11616
11617 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
11618 definition.
11619
11620 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
11621
11622 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
11623 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
11624
11625 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
11626
11627 * config/microblaze/predicates.md: Add cmp_op predicate.
11628 * config/microblaze/microblaze.md: Add branch_compare instruction
11629 which uses cmp_op predicate and emits cmp insn before branch.
11630 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
11631 to microblaze_expand_conditional_branch and consolidate logic.
11632 (microblaze_expand_conditional_branch): emit branch_compare
11633 insn instead of handling cmp op separate from branch insn.
11634
11635 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11636
11637 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
11638 to permit subregs.
11639
11640 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11641
11642 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
11643 define_insn with define_expand and new define_insn
11644 *altivec_lve<VI_char>x_internal.
11645 (altivec_stve<VI_char>x): Replace define_insn with define_expand
11646 and new define_insn *altivec_stve<VI_char>x_internal.
11647 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
11648 prototype.
11649 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
11650 lve*x built-ins.
11651 (altivec_expand_stvex_be): New function.
11652
11653 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
11654
11655 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
11656 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
11657 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
11658 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
11659
11660 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
11661
11662 PR target/60298
11663 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
11664 instead of emit_move_insn.
11665
11666 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11667
11668 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
11669 vspltw with vsldoi.
11670 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
11671 gen_altivec_vsumsws.
11672
11673 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11674
11675 * config/rs6000/altivec.md (altivec_lvxl): Rename as
11676 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
11677 (altivec_lvxl_<mode>): New define_expand incorporating
11678 -maltivec=be semantics where needed.
11679 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
11680 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
11681 semantics where needed.
11682 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
11683 (altivec_stvx_<mode>): New define_expand incorporating
11684 -maltivec=be semantics where needed.
11685 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
11686 VM2 iterator instead of V4SI.
11687 (altivec_stvxl_<mode>): New define_expand incorporating
11688 -maltivec=be semantics where needed.
11689 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
11690 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
11691 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
11692 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
11693 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
11694 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
11695 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
11696 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
11697 ALTIVEC_BUILTIN_STVXL.
11698 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
11699 (altivec_expand_stvx_be): Likewise.
11700 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
11701 (altivec_expand_lvx_be): Likewise.
11702 (altivec_expand_stvx_be): Likewise.
11703 (altivec_expand_builtin): Add cases for
11704 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
11705 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
11706 (altivec_init_builtins): Add definitions for
11707 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
11708 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
11709
11710 2014-02-21 Catherine Moore <clm@codesourcery.com>
11711
11712 * doc/invoke.texi (mvirt, mno-virt): Document.
11713 * config/mips/mips.opt (mvirt): New option.
11714 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
11715
11716 2014-02-21 Richard Biener <rguenther@suse.de>
11717
11718 PR tree-optimization/60276
11719 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
11720 (STMT_VINFO_MIN_NEG_DIST): New macro.
11721 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
11722 STMT_VINFO_MIN_NEG_DIST.
11723 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
11724 made for negative dependence distances still hold.
11725
11726 2014-02-21 Richard Biener <rguenther@suse.de>
11727
11728 PR middle-end/60291
11729 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
11730 DECL_INITIAL for globals not in the current function context.
11731
11732 2014-02-21 Jakub Jelinek <jakub@redhat.com>
11733
11734 PR tree-optimization/56490
11735 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
11736 * tree-ssa-uninit.c: Include params.h.
11737 (compute_control_dep_chain): Add num_calls argument, return false
11738 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
11739 num_calls to recursive call.
11740 (find_predicates): Change dep_chain into normal array,
11741 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
11742 variable and adjust compute_control_dep_chain caller.
11743 (find_def_preds): Likewise.
11744
11745 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
11746
11747 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
11748 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
11749
11750 2014-02-21 Nick Clifton <nickc@redhat.com>
11751
11752 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
11753 (pushhi1): Likewise.
11754 (popqi1): Add mode to pre_dec.
11755 (pophi1): Likewise.
11756
11757 2014-02-21 Jakub Jelinek <jakub@redhat.com>
11758
11759 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
11760 mode for mask of V8SFmode permutation.
11761
11762 2014-02-20 Richard Henderson <rth@redhat.com>
11763
11764 PR c++/60272
11765 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
11766 a new pseudo for OLDVAL.
11767
11768 2014-02-20 Jakub Jelinek <jakub@redhat.com>
11769
11770 PR target/57896
11771 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
11772 gen_reg_rtx if d->testing_p.
11773 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
11774 if d->testing_p and we will certainly return true.
11775 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
11776 if d->testing_p.
11777
11778 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
11779
11780 * emit-rtl.c (gen_reg_rtx): Assert that
11781 crtl->emit.regno_pointer_align_length is non-zero.
11782
11783 2014-02-20 Richard Henderson <rth@redhat.com>
11784
11785 PR c++/60272
11786 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
11787 on failure the store back into EXPECT.
11788
11789 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
11790 Sandra Loosemore <sandra@codesourcery.com>
11791
11792 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
11793 * config/nios2/nios2.c (nios2_function_profiler): Add
11794 -fPIC (flag_pic == 2) support.
11795 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
11796 (nios2_large_offset_p): New function.
11797 (nios2_unspec_reloc_p): Move up position, update to use
11798 nios2_large_offset_p.
11799 (nios2_unspec_address): Remove function.
11800 (nios2_unspec_offset): New function.
11801 (nios2_large_got_address): New function.
11802 (nios2_got_address): Add large offset support.
11803 (nios2_legitimize_tls_address): Update usage of removed and new
11804 functions.
11805 (nios2_symbol_binds_local_p): New function.
11806 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
11807 (nios2_legitimize_address): Update to use nios2_large_offset_p.
11808 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
11809 (nios2_print_operand): Merge H/L processing, add hiadj/lo
11810 processing for (const (unspec ...)).
11811 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
11812
11813 2014-02-20 Richard Biener <rguenther@suse.de>
11814
11815 * tree-cfg.c (replace_uses_by): Mark altered BBs before
11816 doing the substitution.
11817 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
11818
11819 2014-02-20 Martin Jambor <mjambor@suse.cz>
11820
11821 PR ipa/55260
11822 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
11823 info when checking whether lattices are bottom.
11824
11825 2014-02-20 Richard Biener <rguenther@suse.de>
11826
11827 PR middle-end/60221
11828 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
11829 regions at -O0.
11830
11831 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
11832
11833 PR ipa/58555
11834 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
11835 parameter specifying the scaling.
11836 (inline_call): Update.
11837 (want_inline_recursively): Guard division by zero.
11838 (recursive_inlining): Update.
11839 * ipa-inline.h (clone_inlined_nodes): Update.
11840
11841 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
11842
11843 PR target/60204
11844 * config/i386/i386.c (classify_argument): Pass structures of size
11845 64 bytes or less in register.
11846
11847 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
11848 Kirill Yukhin <kirill.yukhin@intel.com>
11849
11850 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
11851 (_mm_rcp28_round_ss): Ditto.
11852 (_mm_rsqrt28_round_sd): Ditto.
11853 (_mm_rsqrt28_round_ss): Ditto.
11854 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
11855 (_mm_rcp14_round_ss): Ditto.
11856 (_mm_rsqrt14_round_sd): Ditto.
11857 (_mm_rsqrt14_round_ss): Ditto.
11858 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
11859 the first input operand, get rid of match_dup.
11860 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
11861 attribute to sse.
11862 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
11863 Ditto.
11864 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
11865 operand as the first input operand, set type attribute.
11866 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
11867 Set type attribute.
11868 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
11869 operand as the first input operand, set type attribute.
11870
11871 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11872
11873 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
11874 bit of zero.
11875
11876 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
11877
11878 PR target/60207
11879 * config/i386/i386.c (construct_container): Remove TFmode check
11880 for X86_64_INTEGER_CLASS.
11881
11882 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
11883
11884 PR target/59794
11885 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
11886 only when -Wpsabi is enabled.
11887
11888 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
11889
11890 PR target/59799
11891 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
11892 passing arrays in registers are the same as for structs, so remove the
11893 special case for them.
11894
11895 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
11896
11897 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
11898 destination type, extract only the valid bits if the source type is not
11899 integral and has a different mode.
11900
11901 2014-02-19 Richard Biener <rguenther@suse.de>
11902
11903 PR ipa/60243
11904 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
11905 for all calls.
11906
11907 2014-02-19 Richard Biener <rguenther@suse.de>
11908
11909 PR ipa/60243
11910 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
11911 (ipa_modify_call_arguments): Emit an argument load explicitely and
11912 preserve virtual SSA form there and for the replacement call.
11913 Do not update SSA form nor free dominance info.
11914
11915 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
11916
11917 * ipa.c (function_and_variable_visibility): Also clear WEAK
11918 flag when disolving COMDAT_GROUP.
11919
11920 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
11921
11922 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
11923 * ipa-prop.c (ipa_set_jf_known_type): Return early when
11924 not devirtualizing.
11925 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
11926 do more sanity checks.
11927 (detect_type_change): Return true when giving up early.
11928 (compute_complex_assign_jump_func): Fix type parameter of
11929 ipa_set_ancestor_jf.
11930 (compute_complex_ancestor_jump_func): Likewise.
11931 (update_jump_functions_after_inlining): Fix updating of
11932 ancestor function.
11933 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
11934
11935 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
11936
11937 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
11938 inline clones when edge disappears.
11939
11940 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
11941
11942 PR target/60203
11943 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
11944 Split 64-bit moves into 2 patterns. Do not allow the use of
11945 direct move for TDmode in little endian, since the decimal value
11946 has little endian bytes within a word, but the 64-bit pieces are
11947 ordered in a big endian fashion, and normal subreg's of TDmode are
11948 not allowed.
11949 (mov<mode>_64bit_dm): Likewise.
11950 (movtd_64bit_nodm): Likewise.
11951
11952 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
11953
11954 PR tree-optimization/60174
11955 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
11956 statement of an SSA_NAME that occurs in an abnormal PHI node.
11957
11958 2014-02-18 Jakub Jelinek <jakub@redhat.com>
11959
11960 PR sanitizer/60142
11961 * final.c (SEEN_BB): Remove.
11962 (SEEN_NOTE, SEEN_EMITTED): Renumber.
11963 (final_scan_insn): Don't force_source_line on second
11964 NOTE_INSN_BASIC_BLOCK.
11965
11966 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
11967
11968 PR target/60205
11969 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
11970 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
11971 (type_natural_mode): Warn ABI change when %zmm register is not
11972 available for AVX512F vector value passing.
11973
11974 2014-02-18 Kai Tietz <ktietz@redhat.com>
11975
11976 PR target/60193
11977 * config/i386/i386.c (ix86_expand_prologue): Use value in
11978 rax register as displacement when restoring %r10 or %rax.
11979 Fix wrong offset when restoring both registers.
11980
11981 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
11982
11983 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
11984 assertion with conditional return.
11985
11986 2014-02-18 Jakub Jelinek <jakub@redhat.com>
11987 Uros Bizjak <ubizjak@gmail.com>
11988
11989 PR driver/60233
11990 * config/i386/driver-i386.c (host_detect_local_cpu): If
11991 YMM state is not saved by the OS, also clear has_f16c. Move
11992 CPUID 0x80000001 handling before YMM state saving checking.
11993
11994 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
11995
11996 PR rtl-optimization/58960
11997 * haifa-sched.c (alloc_global_sched_pressure_data): New,
11998 factored out from ...
11999 (sched_init): ... here.
12000 (free_global_sched_pressure_data): New, factored out from ...
12001 (sched_finish): ... here.
12002 * sched-int.h (free_global_sched_pressure_data): Declare.
12003 * sched-rgn.c (nr_regions_initial): New static global.
12004 (haifa_find_rgns): Initialize it.
12005 (schedule_region): Disable sched-pressure for the newly
12006 generated regions.
12007
12008 2014-02-17 Richard Biener <rguenther@suse.de>
12009
12010 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
12011 release SSA defs of pattern stmts.
12012
12013 2014-02-17 Richard Biener <rguenther@suse.de>
12014
12015 * tree-inline.c (expand_call_inline): Release the virtual
12016 operand defined by the call we are about to inline.
12017
12018 2014-02-17 Richard Biener <rguenther@suse.de>
12019
12020 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
12021
12022 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
12023 Ilya Tocar <ilya.tocar@intel.com>
12024
12025 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
12026 arguments order in builtin.
12027 (_mm512_permutexvar_epi64): Ditto.
12028 (_mm512_mask_permutexvar_epi64): Ditto
12029 (_mm512_maskz_permutexvar_epi32): Ditto
12030 (_mm512_permutexvar_epi32): Ditto
12031 (_mm512_mask_permutexvar_epi32): Ditto
12032
12033 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12034
12035 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
12036 (p8_vmrgow): Likewise.
12037
12038 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12039
12040 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
12041 endian targets.
12042
12043 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
12044
12045 PR target/60203
12046 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
12047 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
12048 into 64-bit and 32-bit moves. On 64-bit moves, add support for
12049 using direct move instructions on ISA 2.07. Also adjust
12050 instruction length for 64-bit.
12051 (mov<mode>_64bit, TFmode/TDmode): Likewise.
12052 (mov<mode>_32bit, TFmode/TDmode): Likewise.
12053
12054 2014-02-15 Alan Modra <amodra@gmail.com>
12055
12056 PR target/58675
12057 PR target/57935
12058 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
12059 find_replacement on parts of insn rtl that might be reloaded.
12060
12061 2014-02-15 Richard Biener <rguenther@suse.de>
12062
12063 PR tree-optimization/60183
12064 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
12065 (tree_ssa_phiprop): Calculate and free post-dominators.
12066
12067 2014-02-14 Jeff Law <law@redhat.com>
12068
12069 PR rtl-optimization/60131
12070 * ree.c (get_extended_src_reg): New function.
12071 (combine_reaching_defs): Use it rather than assuming location of REG.
12072 (find_and_remove_re): Verify first operand of extension is
12073 a REG before adding the insns to the copy list.
12074
12075 2014-02-14 Roland McGrath <mcgrathr@google.com>
12076
12077 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
12078 * configure: Regenerated.
12079 * config.in: Regenerated.
12080 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
12081 instead of ASM_SHORT.
12082
12083 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
12084 Richard Earnshaw <rearnsha@arm.com>
12085
12086 PR rtl-optimization/59535
12087 * lra-constraints.c (process_alt_operands): Encourage alternative
12088 when unassigned pseudo class is superset of the alternative class.
12089 (inherit_reload_reg): Don't inherit when optimizing for code size.
12090 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
12091 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
12092 modes not less than 4 for Thumb1.
12093
12094 2014-02-14 Kyle McMartin <kyle@redhat.com>
12095
12096 PR pch/60010
12097 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
12098
12099 2014-02-14 Richard Biener <rguenther@suse.de>
12100
12101 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
12102 (get_frame_arg): Drop the assert with langhook types_compatible_p.
12103 Do not strip INDIRECT_REFs.
12104
12105 2014-02-14 Richard Biener <rguenther@suse.de>
12106
12107 PR lto/60179
12108 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
12109 DECL_FUNCTION_SPECIFIC_TARGET.
12110 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
12111 * tree-streamer-out.c (pack_ts_target_option): Remove.
12112 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
12113 (write_ts_function_decl_tree_pointers): Do not stream
12114 DECL_FUNCTION_SPECIFIC_TARGET.
12115 * tree-streamer-in.c (unpack_ts_target_option): Remove.
12116 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
12117 (lto_input_ts_function_decl_tree_pointers): Do not stream
12118 DECL_FUNCTION_SPECIFIC_TARGET.
12119
12120 2014-02-14 Jakub Jelinek <jakub@redhat.com>
12121
12122 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
12123 (get_initial_def_for_induction, vectorizable_induction): Ignore
12124 debug stmts when looking for exit_phi.
12125 (vectorizable_live_operation): Fix up condition.
12126
12127 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12128
12129 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
12130 nreverse() because it changes the content of original tree list.
12131
12132 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12133
12134 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
12135 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
12136
12137 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
12138
12139 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
12140 GNU coding standards.
12141
12142 2014-02-13 Jakub Jelinek <jakub@redhat.com>
12143
12144 PR debug/60152
12145 * dwarf2out.c (gen_subprogram_die): Don't call
12146 add_calling_convention_attribute if subr_die is old_die.
12147
12148 2014-02-13 Sharad Singhai <singhai@google.com>
12149
12150 * doc/optinfo.texi: Fix order of nodes.
12151
12152 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
12153
12154 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
12155 operands[2], not operands[3].
12156
12157 2014-02-13 Richard Biener <rguenther@suse.de>
12158
12159 PR bootstrap/59878
12160 * doc/install.texi (ISL): Update recommended version to 0.12.2,
12161 mention the possibility of an in-tree build.
12162 (CLooG): Update recommended version to 0.18.1, mention the
12163 possibility of an in-tree build and clarify that the ISL
12164 bundled with CLooG does not work.
12165
12166 2014-02-13 Jakub Jelinek <jakub@redhat.com>
12167
12168 PR target/43546
12169 * expr.c (compress_float_constant): If x is a hard register,
12170 extend into a pseudo and then move to x.
12171
12172 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
12173
12174 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
12175 caused by bad second argument to warning_at() with -mhotpatch and
12176 nested functions (e.g. with gfortran).
12177
12178 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
12179
12180 * opts.c (option_name): Remove "enabled by default" rider.
12181
12182 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
12183
12184 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
12185
12186 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
12187 Uros Bizjak <ubizjak@gmail.com>
12188
12189 PR target/60151
12190 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
12191 * configure: Regenerated.
12192
12193 2014-02-12 Richard Biener <rguenther@suse.de>
12194
12195 * vec.c (vec_prefix::calculate_allocation): Move as
12196 inline variant to vec.h.
12197 (vec_prefix::calculate_allocation_1): New out-of-line version.
12198 * vec.h (vec_prefix::calculate_allocation_1): Declare.
12199 (vec_prefix::m_has_auto_buf): Rename to ...
12200 (vec_prefix::m_using_auto_storage): ... this.
12201 (vec_prefix::calculate_allocation): Inline the easy cases
12202 and dispatch to calculate_allocation_1 which doesn't need the
12203 prefix address.
12204 (va_heap::reserve): Use gcc_checking_assert.
12205 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
12206 m_using_auto_storage.
12207 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
12208 member and adjust.
12209 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
12210 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
12211 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
12212
12213 2014-02-12 Richard Biener <rguenther@suse.de>
12214
12215 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
12216 when we found a dependence.
12217
12218 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
12219
12220 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
12221 common code...
12222 (maybe_fold_stmt): ... into this new function.
12223 * omp-low.c (lower_omp): Update comment.
12224
12225 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
12226 last use.
12227
12228 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
12229 dereference.
12230
12231 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
12232
12233 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
12234 identifiers in comments.
12235 (cortexa53_extra_costs): Likewise.
12236 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
12237 (cortexa7_extra_costs): Likewise.
12238 (cortexa12_extra_costs): Likewise.
12239 (cortexa15_extra_costs): Likewise.
12240 (v7m_extra_costs): Likewise.
12241
12242 2014-02-12 Richard Biener <rguenther@suse.de>
12243
12244 PR middle-end/60092
12245 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
12246 of posix_memalign being successful.
12247 (lower_stmt): Restrict lowering of posix_memalign to when
12248 -ftree-bit-ccp is enabled.
12249
12250 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12251
12252 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
12253 arg_loc.
12254 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
12255
12256 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
12257
12258 PR rtl-optimization/60116
12259 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
12260 other_insn once the combination has been validated.
12261
12262 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
12263
12264 PR lto/59468
12265 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
12266 and wrapper.
12267 * ipa-devirt.c: Include demangle.h
12268 (odr_violation_reported): New static variable.
12269 (add_type_duplicate): Update odr_violations.
12270 (maybe_record_node): Add completep parameter; update it.
12271 (record_target_from_binfo): Add COMPLETEP parameter;
12272 update it as needed.
12273 (possible_polymorphic_call_targets_1): Likewise.
12274 (struct polymorphic_call_target_d): Add nonconstruction_targets;
12275 rename FINAL to COMPLETE.
12276 (record_targets_from_bases): Sanity check we found the binfo;
12277 fix COMPLETEP updating.
12278 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
12279 parameter, fix computing of COMPLETEP.
12280 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
12281 at LTO time do demangling.
12282 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
12283 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
12284 parameter.
12285 (gimple_get_virt_method_for_binfo): Likewise.
12286 * gimple-fold.h (gimple_get_virt_method_for_binfo,
12287 gimple_get_virt_method_for_vtable): Update prototypes.
12288
12289 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
12290
12291 PR target/49008
12292 * genautomata.c (add_presence_absence): Fix typo with
12293 {final_}presence_list.
12294
12295 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12296
12297 PR target/60137
12298 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
12299 for VSX/Altivec vectors that land in GPR registers.
12300
12301 2014-02-11 Richard Henderson <rth@redhat.com>
12302 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR debug/59776
12305 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
12306 around drhs if type conversion to lacc->type is not useless.
12307
12308 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12309
12310 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
12311 tuning struct.
12312 (cortex-a57.cortex-a53): Likewise.
12313 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
12314
12315 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12316
12317 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
12318 arm_restrict_it.
12319
12320 2014-02-11 Renlin Li <Renlin.Li@arm.com>
12321
12322 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
12323 add_options_for_arm_vfp3.
12324
12325 2014-02-11 Jeff Law <law@redhat.com>
12326
12327 PR middle-end/54041
12328 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
12329 object with an undesirable mode.
12330
12331 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12332
12333 PR libgomp/60107
12334 * config/i386/sol2-9.h: New file.
12335 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
12336 *-*-solaris2.9*): Use it.
12337
12338 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
12339
12340 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
12341 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
12342
12343 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
12344
12345 * config/microblaze/microblaze.c: Extend mcpu version format
12346
12347 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
12348
12349 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
12350
12351 2014-02-10 Richard Henderson <rth@redhat.com>
12352
12353 PR target/59927
12354 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
12355 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
12356 ms-abi vs -mno-accumulate-outgoing-args.
12357 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
12358 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
12359 respect to ms-abi.
12360
12361 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
12362
12363 PR middle-end/60080
12364 * cfgexpand.c (expand_asm_operands): Attach source location to
12365 ASM_INPUT rtx objects.
12366 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
12367
12368 2014-02-10 Nick Clifton <nickc@redhat.com>
12369
12370 * config/mn10300/mn10300.c (popcount): New function.
12371 (mn10300_expand_prologue): Include saved registers in stack usage
12372 count.
12373
12374 2014-02-10 Jeff Law <law@redhat.com>
12375
12376 PR middle-end/52306
12377 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
12378 when changing the SET_DEST of a prior insn to avoid an input reload.
12379
12380 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12381
12382 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
12383 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
12384 -mcall-openbsd, or -mcall-linux.
12385 (CC1_ENDIAN_BIG_SPEC): Remove.
12386 (CC1_ENDIAN_LITTLE_SPEC): Remove.
12387 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
12388 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
12389 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
12390 and %cc1_endian_default.
12391 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
12392
12393 2014-02-10 Richard Biener <rguenther@suse.de>
12394
12395 PR tree-optimization/60115
12396 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
12397 MEM_REF handling. Properly verify that the accesses are not
12398 out of the objects bound.
12399
12400 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12401
12402 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
12403 coretex to cortex.
12404
12405 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
12406
12407 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
12408 proper constants and fix formatting.
12409 (possible_polymorphic_call_targets): Fix formatting.
12410
12411 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
12412 Ilya Tocar <ilya.tocar@intel.com>
12413
12414 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
12415 (_mm512_loadu_epi32): Renamed into...
12416 (_mm512_loadu_si512): This.
12417 (_mm512_storeu_epi32): Renamed into...
12418 (_mm512_storeu_si512): This.
12419 (_mm512_maskz_ceil_ps): Removed.
12420 (_mm512_maskz_ceil_pd): Ditto.
12421 (_mm512_maskz_floor_ps): Ditto.
12422 (_mm512_maskz_floor_pd): Ditto.
12423 (_mm512_floor_round_ps): Ditto.
12424 (_mm512_floor_round_pd): Ditto.
12425 (_mm512_ceil_round_ps): Ditto.
12426 (_mm512_ceil_round_pd): Ditto.
12427 (_mm512_mask_floor_round_ps): Ditto.
12428 (_mm512_mask_floor_round_pd): Ditto.
12429 (_mm512_mask_ceil_round_ps): Ditto.
12430 (_mm512_mask_ceil_round_pd): Ditto.
12431 (_mm512_maskz_floor_round_ps): Ditto.
12432 (_mm512_maskz_floor_round_pd): Ditto.
12433 (_mm512_maskz_ceil_round_ps): Ditto.
12434 (_mm512_maskz_ceil_round_pd): Ditto.
12435 (_mm512_expand_pd): Ditto.
12436 (_mm512_expand_ps): Ditto.
12437 * config/i386/i386.c (ix86_builtins): Remove
12438 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
12439 (bdesc_args): Ditto.
12440 * config/i386/predicates.md (const1256_operand): New.
12441 (const_1_to_2_operand): Ditto.
12442 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
12443 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
12444 (*avx512pf_gatherpf<mode>sf): Ditto.
12445 (avx512pf_gatherpf<mode>df): Ditto.
12446 (*avx512pf_gatherpf<mode>df_mask): Ditto.
12447 (*avx512pf_gatherpf<mode>df): Ditto.
12448 (avx512pf_scatterpf<mode>sf): Ditto.
12449 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
12450 (*avx512pf_scatterpf<mode>sf): Ditto.
12451 (avx512pf_scatterpf<mode>df): Ditto.
12452 (*avx512pf_scatterpf<mode>df_mask): Ditto.
12453 (*avx512pf_scatterpf<mode>df): Ditto.
12454 (avx512f_expand<mode>): Removed.
12455 (<shift_insn><mode>3<mask_name>): Change predicate type.
12456
12457 2014-02-08 Jakub Jelinek <jakub@redhat.com>
12458
12459 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
12460 not at the end of datarefs vector use ordered_remove to avoid
12461 reordering datarefs vector.
12462
12463 PR c/59984
12464 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
12465 mark local addressable non-static vars as GOVD_PRIVATE
12466 instead of GOVD_LOCAL.
12467 * omp-low.c (lower_omp_for): Move gimple_bind_vars
12468 and BLOCK_VARS of gimple_bind_block to new_stmt rather
12469 than copying them.
12470
12471 PR middle-end/60092
12472 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
12473 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
12474 assume_aligned or alloc_align attributes.
12475 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
12476 arguments. Handle also assume_aligned and alloc_align attributes.
12477 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
12478 calls to functions with assume_aligned or alloc_align attributes.
12479 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
12480
12481 2014-02-08 Terry Guo <terry.guo@arm.com>
12482
12483 * doc/invoke.texi: Document ARM -march=armv7e-m.
12484
12485 2014-02-08 Jakub Jelinek <jakub@redhat.com>
12486
12487 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
12488 flag on __cilkrts_rethrow builtin.
12489
12490 PR ipa/60026
12491 * ipa-cp.c (determine_versionability): Fail at -O0
12492 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
12493 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
12494
12495 Revert:
12496 2014-02-04 Jakub Jelinek <jakub@redhat.com>
12497
12498 PR ipa/60026
12499 * tree-inline.c (copy_forbidden): Fail for
12500 __attribute__((optimize (0))) functions.
12501
12502 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
12503
12504 * varpool.c: Include pointer-set.h.
12505 (varpool_remove_unreferenced_decls): Variables in other partitions
12506 will not be output; be however careful to not lose information
12507 about partitioning.
12508
12509 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
12510
12511 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
12512 lookup in the vtable constructor.
12513
12514 2014-02-07 Jeff Law <law@redhat.com>
12515
12516 PR target/40977
12517 * config/m68k/m68k.md (ashldi_extsi): Turn into a
12518 define_insn_and_split.
12519
12520 * ipa-inline.c (inline_small_functions): Fix typos.
12521
12522 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12523
12524 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
12525 (s390_can_use_return_insn): Declare.
12526 * config/s390/s390.h (EPILOGUE_USES): Define.
12527 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
12528 instructions.
12529 (s390_chunkify_start): Handle return JUMP_LABELs.
12530 (s390_early_mach): Emit a main_pool instruction on the entry edge.
12531 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
12532 (s390_can_use_return_insn): New functions.
12533 (s390_fix_long_loop_prediction): Handle conditional returns.
12534 (TARGET_SET_UP_BY_PROLOGUE): Define.
12535 * config/s390/s390.md (ANY_RETURN): New code iterator.
12536 (*creturn, *csimple_return, return, simple_return): New patterns.
12537
12538 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12539
12540 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
12541 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
12542 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
12543 REG_CFA_RESTORE list when deciding not to restore a register.
12544
12545 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12546
12547 * config/s390/s390.c: Include tree-pass.h and context.h.
12548 (s390_early_mach): New function, split out from...
12549 (s390_emit_prologue): ...here.
12550 (pass_data_s390_early_mach): New pass structure.
12551 (pass_s390_early_mach): New class.
12552 (s390_option_override): Create and register early_mach pass.
12553 Move to end of file.
12554
12555 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
12556
12557 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
12558 to match for the exit block.
12559
12560 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12561
12562 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
12563 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
12564 Reject misaligned operands.
12565
12566 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12567
12568 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
12569
12570 2014-02-07 Richard Biener <rguenther@suse.de>
12571
12572 PR middle-end/60092
12573 * gimple-low.c (lower_builtin_posix_memalign): New function.
12574 (lower_stmt): Call it to lower posix_memalign in a way
12575 to make alignment info accessible.
12576
12577 2014-02-07 Jakub Jelinek <jakub@redhat.com>
12578
12579 PR c++/60082
12580 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
12581 __builtin_setjmp_receiver.
12582
12583 2014-02-07 Richard Biener <rguenther@suse.de>
12584
12585 PR middle-end/60092
12586 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
12587 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
12588 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12589 Handle BUILT_IN_POSIX_MEMALIGN.
12590 (find_func_clobbers): Likewise.
12591 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
12592 (call_may_clobber_ref_p_1): Likewise.
12593
12594 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
12595
12596 PR ipa/59918
12597 * ipa-devirt.c (record_target_from_binfo): Remove overactive
12598 sanity check.
12599
12600 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
12601
12602 PR ipa/59469
12603 * lto-cgraph.c (lto_output_node): Use
12604 symtab_get_symbol_partitioning_class.
12605 (lto_output_varpool_node): likewise.
12606 (symtab_get_symbol_partitioning_class): Move here from
12607 lto/lto-partition.c
12608 * cgraph.h (symbol_partitioning_class): Likewise.
12609 (symtab_get_symbol_partitioning_class): Declare.
12610
12611 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
12612
12613 * ggc.h (ggc_internal_cleared_alloc): New macro.
12614 * vec.h (vec_safe_copy): Handle memory stats.
12615 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
12616 * target-globals.c (save_target_globals): Likewise.
12617
12618 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
12619
12620 PR target/60077
12621 * expr.c (emit_move_resolve_push): Export; be bit more selective
12622 on when to clear alias set.
12623 * expr.h (emit_move_resolve_push): Declare.
12624 * function.h (struct function): Add tail_call_marked.
12625 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
12626 * config/i386/i386-protos.h (ix86_expand_push): Remove.
12627 * config/i386/i386.md (TImode move expander): De not call
12628 ix86_expand_push.
12629 (FP push expanders): Preserve memory attributes.
12630 * config/i386/sse.md (push<mode>1): Remove.
12631 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
12632 (ix86_expand_push): Remove.
12633 * config/i386/mmx.md (push<mode>1): Remove.
12634
12635 2014-02-06 Jakub Jelinek <jakub@redhat.com>
12636
12637 PR rtl-optimization/60030
12638 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
12639 lopart with paradoxical subreg before shifting it up by hprec.
12640
12641 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12642
12643 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
12644 Remove extra newline at end of file.
12645 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
12646 (arm_issue_rate): Handle cortexa57.
12647 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
12648 (cortex-a57.cortex-a53): Likewise.
12649
12650 2014-02-06 Jakub Jelinek <jakub@redhat.com>
12651
12652 PR target/59575
12653 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
12654 don't record in REG_FRAME_RELATED_EXPR registers not set in that
12655 bitmask.
12656 (arm_expand_prologue): Adjust all callers.
12657 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
12658 info, registers also at the lowest numbered registers side. Use
12659 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
12660 XEXP.
12661
12662 PR debug/59992
12663 * var-tracking.c (adjust_mems): Before adding a SET to
12664 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
12665
12666 2014-02-06 Alan Modra <amodra@gmail.com>
12667
12668 PR target/60032
12669 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
12670 change SDmode to DDmode when lra_in_progress.
12671
12672 2014-02-06 Jakub Jelinek <jakub@redhat.com>
12673
12674 PR middle-end/59150
12675 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
12676 free_data_ref on the dr first, and before goto again also set dr
12677 to the next dr. For simd_lane_access, free old datarefs[i] before
12678 overwriting it. For get_vectype_for_scalar_type failure, don't
12679 free_data_ref if simd_lane_access.
12680
12681 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
12682
12683 PR target/60062
12684 * tree.h (opts_for_fn): New inline function.
12685 (opt_for_fn): Define.
12686 * config/i386/i386.c (ix86_function_regparm): Use
12687 opt_for_fn (decl, optimize) instead of optimize.
12688
12689 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
12690
12691 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
12692 for SYMBOL_REF in large memory model.
12693
12694 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12695
12696 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
12697 and crypto support.
12698 (cortex-a57): Likewise.
12699 (cortex-a57.cortex-a53): Likewise.
12700
12701 2014-02-06 Yury Gribov <y.gribov@samsung.com>
12702 Kugan Vivekanandarajah <kuganv@linaro.org>
12703
12704 * config/arm/arm.c (arm_vector_alignment_reachable): Check
12705 unaligned_access.
12706 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
12707
12708 2014-02-06 Richard Biener <rguenther@suse.de>
12709
12710 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
12711 set_loop_copy and initialize_original_copy_tables.
12712
12713 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
12714
12715 * config/aarch64/aarch64-simd.md
12716 (aarch64_ashr_simddi): Change QI to SI.
12717
12718 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
12719 Jakub Jelinek <jakub@redhat.com>
12720
12721 PR middle-end/60013
12722 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
12723 of the dataflow.
12724
12725 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12726
12727 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
12728 CODE_FOR_altivec_vpku[hw]um to
12729 CODE_FOR_altivec_vpku[hw]um_direct.
12730 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
12731 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
12732 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
12733 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
12734
12735 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12736
12737 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
12738 generation for -maltivec=be.
12739 (altivec_vsumsws): Simplify redundant test.
12740
12741 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12742
12743 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
12744 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
12745 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
12746 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
12747 gen_altivec_vpkuwum.
12748 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
12749 BYTES_BIG_ENDIAN.
12750 (altivec_vpks<VI_char>ss): Likewise.
12751 (altivec_vpks<VI_char>us): Likewise.
12752 (altivec_vpku<VI_char>us): Likewise.
12753 (altivec_vpku<VI_char>um): Likewise.
12754 (altivec_vpku<VI_char>um_direct): New (copy of
12755 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
12756 internal use).
12757 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
12758 target is little endian and -maltivec=be is not specified.
12759 (*altivec_vupkhs<VU_char>_direct): New (copy of
12760 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
12761 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
12762 target is little endian and -maltivec=be is not specified.
12763 (*altivec_vupkls<VU_char>_direct): New (copy of
12764 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
12765 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
12766 little endian and -maltivec=be is not specified.
12767 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
12768 little endian and -maltivec=be is not specified.
12769
12770 2014-02-05 Richard Henderson <rth@redhat.com>
12771
12772 PR debug/52727
12773 * combine-stack-adj.c: Revert r206943.
12774 * sched-int.h (struct deps_desc): Add last_args_size.
12775 * sched-deps.c (init_deps): Initialize it.
12776 (sched_analyze_insn): Add OUTPUT dependencies between insns that
12777 contain REG_ARGS_SIZE notes.
12778
12779 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
12780
12781 * lto-cgraph.c (asm_nodes_output): Make global.
12782 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
12783 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
12784 (driver_handle_option): Handle OPT_fwpa.
12785
12786 2014-02-05 Jakub Jelinek <jakub@redhat.com>
12787
12788 PR ipa/59947
12789 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
12790 a comment typo and formatting issue. If odr_hash hasn't been
12791 created, return vNULL and set *completep to false.
12792
12793 PR middle-end/57499
12794 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
12795 bb with no successors.
12796
12797 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
12798
12799 PR target/59718
12800 * doc/invoke.texi (-march): Clarify documentation for ARM.
12801 (-mtune): Likewise.
12802 (-mcpu): Likewise.
12803
12804 2014-02-05 Richard Biener <rguenther@suse.de>
12805
12806 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
12807 when not vectorizing because of too many alias checks.
12808 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
12809 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
12810
12811 2014-02-05 Nick Clifton <nickc@redhat.com>
12812
12813 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
12814 accept extended registers in any mode when compiling for the MN10300.
12815
12816 2014-02-05 Yury Gribov <y.gribov@samsung.com>
12817
12818 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
12819 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
12820 sanitization attributes.
12821 (can_inline_edge_p): Likewise.
12822 (sanitize_attrs_match_for_inline_p): New function.
12823
12824 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
12825
12826 * ipa-prop.c (detect_type_change): Shor circuit testing of
12827 type changes on THIS pointer.
12828
12829 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
12830
12831 PR target/59777
12832 * config/pa/pa.c (legitimize_tls_address): Return original address
12833 if not passed a SYMBOL_REF rtx.
12834 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
12835 addresses.
12836 (pa_emit_move_sequence): Simplify TLS source operands.
12837 (pa_legitimate_constant_p): Reject all TLS constants.
12838 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
12839 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
12840
12841 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
12842
12843 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
12844 groups when we know they are controlled by LTO.
12845 * varasm.c (default_binds_local_p_1): If object is in other partition,
12846 it will be resolved locally.
12847
12848 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12849
12850 * config/host-linux.c (linux_gt_pch_use_address): Don't
12851 use SSIZE_MAX because it is not always defined.
12852
12853 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
12854
12855 PR bootstrap/59913
12856 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
12857 threshold for pseudo splitting.
12858 (update_ebb_live_info): Process call argument hard registers and
12859 hard registers from insn definition too.
12860 (max_small_class_regs_num): New constant.
12861 (inherit_in_ebb): Update live hard regs through EBBs. Update
12862 reloads_num only for small register classes. Don't split for
12863 outputs of jumps.
12864
12865 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
12866
12867 PR ipa/60058
12868 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
12869 is non-null.
12870
12871 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
12872
12873 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
12874 visibility is safe.
12875
12876 2014-02-04 Marek Polacek <polacek@redhat.com>
12877
12878 * gdbinit.in (pel): Define.
12879
12880 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
12881
12882 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
12883 behavior.
12884
12885 2014-02-04 Richard Biener <rguenther@suse.de>
12886
12887 PR lto/59723
12888 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
12889 in function context local.
12890 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
12891 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
12892 similar to LTO_imported_decl_ref.
12893
12894 2014-02-04 Jakub Jelinek <jakub@redhat.com>
12895
12896 PR tree-optimization/60002
12897 * cgraphclones.c (build_function_decl_skip_args): Clear
12898 DECL_LANG_SPECIFIC.
12899
12900 PR tree-optimization/60023
12901 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
12902 false to gsi_replace.
12903 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
12904 has been in some EH region and vec_stmt could throw, add
12905 vec_stmt into the same EH region.
12906 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
12907 has no lhs, ignore it.
12908 * internal-fn.c (expand_MASK_LOAD): Likewise.
12909
12910 PR ipa/60026
12911 * tree-inline.c (copy_forbidden): Fail for
12912 __attribute__((optimize (0))) functions.
12913
12914 PR other/58712
12915 * omp-low.c (simd_clone_struct_copy): If from->inbranch
12916 is set, copy one less argument.
12917 (expand_simd_clones): Don't subtract clone_info->inbranch
12918 from simd_clone_struct_alloc argument.
12919
12920 PR rtl-optimization/57915
12921 * recog.c (simplify_while_replacing): If all unary/binary/relational
12922 operation arguments are constant, attempt to simplify those.
12923
12924 PR middle-end/59261
12925 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
12926 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
12927
12928 2014-02-04 Richard Biener <rguenther@suse.de>
12929
12930 PR tree-optimization/60012
12931 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
12932 TBAA disambiguation to all DDRs.
12933
12934 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12935
12936 PR target/59788
12937 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
12938 (LINK_SPEC): Use it for -shared, -shared-libgcc.
12939
12940 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
12941
12942 PR ipa/59882
12943 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
12944
12945 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
12946
12947 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
12948 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
12949
12950 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
12951
12952 PR ipa/59831
12953 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
12954 to figure out targets of polymorphic calls with known decl.
12955 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12956 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
12957 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
12958 (get_polymorphic_call_info): ... here.
12959 (get_polymorphic_call_info_from_invariant): New function.
12960
12961 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
12962
12963 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
12964 lookup via vtable pointer; check for type consistency
12965 and turn inconsitent facts into UNREACHABLE.
12966 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12967 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
12968 type inconsistent querries; return UNREACHABLE instead.
12969
12970 2014-02-03 Richard Henderson <rth@twiddle.net>
12971
12972 PR tree-opt/59924
12973 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
12974 already processed this node.
12975 (normalize_one_pred_1): Pass along mark_set.
12976 (normalize_one_pred): Create and destroy a pointer_set_t.
12977 (normalize_one_pred_chain): Likewise.
12978
12979 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
12980
12981 PR gcov-profile/58602
12982 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
12983
12984 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
12985
12986 PR ipa/59831
12987 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
12988 -fno-devirtualize; try to devirtualize by the knowledge of
12989 virtual table pointer given by aggregate propagation.
12990 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
12991 (ipa_print_node_jump_functions): Dump also offset that
12992 is relevant for polymorphic calls.
12993 (determine_known_aggregate_parts): Add arg_type parameter; use it
12994 instead of determining the type from pointer type.
12995 (ipa_compute_jump_functions_for_edge): Update call of
12996 determine_known_aggregate_parts.
12997 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
12998 (gimple_get_virt_method_for_binfo): ... here; simplify using
12999 vtable_pointer_value_to_vtable.
13000 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
13001 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
13002 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
13003 (vtable_pointer_value_to_vtable): Break out from ...; handle also
13004 POINTER_PLUS_EXPR.
13005 (vtable_pointer_value_to_binfo): ... here.
13006 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
13007
13008 2014-02-03 Teresa Johnson <tejohnson@google.com>
13009
13010 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
13011 redef of outer loop index variable.
13012
13013 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
13014
13015 PR c++/53017
13016 PR c++/59211
13017 * doc/extend.texi (Function Attributes): Typo.
13018
13019 2014-02-03 Cong Hou <congh@google.com>
13020
13021 PR tree-optimization/60000
13022 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
13023 if the vectorized statement is a store. A store statement can only
13024 appear at the end of pattern statements.
13025
13026 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13027
13028 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
13029 (ix86_option_override_internal): Default long double to 64-bit for
13030 32-bit Bionic and to 128-bit for 64-bit Bionic.
13031
13032 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
13033 TARGET_LONG_DOUBLE_128 is true.
13034 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
13035
13036 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
13037 (mlong-double-64): Negate -mlong-double-128.
13038 (mlong-double-128): New option.
13039
13040 * config/i386/i386-c.c (ix86_target_macros): Define
13041 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
13042
13043 * doc/invoke.texi: Document -mlong-double-128.
13044
13045 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
13046
13047 PR rtl-optimization/60024
13048 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
13049
13050 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
13051
13052 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
13053
13054 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
13055
13056 PR rtl-optimization/57662
13057 * sel-sched.c (code_motion_path_driver): Do not mark already not
13058 existing blocks in the visiting bitmap.
13059
13060 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
13061
13062 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
13063 on the insn being emitted.
13064
13065 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
13066 Will Deacon <will.deacon@arm.com>
13067
13068 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
13069
13070 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13071
13072 * config/arm/arm-tables.opt: Regenerate.
13073
13074 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13075
13076 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
13077 for vector types other than V16QImode.
13078 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
13079 define_expand, and call altivec_expand_vec_perm_le when producing
13080 code with little endian element order.
13081 (*altivec_vperm_<mode>_internal): New insn having previous
13082 behavior of altivec_vperm_<mode>.
13083 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
13084 altivec_expand_vec_perm_le when producing code with little endian
13085 element order.
13086 (*altivec_vperm_<mode>_uns_internal): New insn having previous
13087 behavior of altivec_vperm_<mode>_uns.
13088
13089 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13090
13091 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
13092 (altivec_vsumsws): Add handling for -maltivec=be with a little
13093 endian target.
13094 (altivec_vsumsws_direct): New.
13095 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
13096 gen_altivec_vsumsws.
13097
13098 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
13099
13100 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
13101 vtable_pointer_value_to_binfo): New functions.
13102 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
13103 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
13104
13105 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
13106
13107 * config/nios2/nios2.md (load_got_register): Initialize GOT
13108 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
13109 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
13110
13111 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
13112
13113 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
13114 preserverd by passthrough, do not propagate the type.
13115
13116 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13117
13118 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
13119 (mips_atomic_assign_expand_fenv): New function.
13120 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
13121
13122 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13123
13124 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
13125 (__builtin_mips_set_fcsr): Likewise.
13126 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
13127 MIPS_USI_FTYPE_VOID.
13128 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
13129 (mips16_expand_set_fcsr): Likewise.
13130 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
13131 (mips16_set_fcsr_stub): Likewise.
13132 (mips16_get_fcsr_one_only_stub): New class.
13133 (mips16_set_fcsr_one_only_stub): Likewise.
13134 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
13135 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
13136 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
13137 (hard_float): New availability predicate.
13138 (mips_builtins): Add get_fcsr and set_fcsr.
13139 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
13140 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
13141 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
13142 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
13143 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
13144 patterns.
13145
13146 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
13147
13148 * config/mips/mips.c (mips_one_only_stub): New class.
13149 (mips_need_mips16_rdhwr_p): Replace with...
13150 (mips16_rdhwr_stub): ...this new variable.
13151 (mips16_stub_call_address): New function.
13152 (mips16_rdhwr_one_only_stub): New class.
13153 (mips_expand_thread_pointer): Use mips16_stub_call_address.
13154 (mips_output_mips16_rdhwr): Delete.
13155 (mips_finish_stub): New function.
13156 (mips_code_end): Use it to handle rdhwr stubs.
13157
13158 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
13159
13160 PR target/60017
13161 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
13162 when calculating size of integer atomic types.
13163
13164 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
13165
13166 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
13167
13168 2014-02-01 Jakub Jelinek <jakub@redhat.com>
13169
13170 PR tree-optimization/60003
13171 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
13172 * profile.c (branch_prob): Use gimple_call_builtin_p
13173 to check for BUILT_IN_SETJMP_RECEIVER.
13174 * tree-inline.c (copy_bb): Call notice_special_calls.
13175
13176 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
13177
13178 PR bootstrap/59985
13179 * lra-constraints.c (process_alt_operands): Update reload_sum only
13180 on the first pass.
13181
13182 2014-01-31 Richard Henderson <rth@redhat.com>
13183
13184 PR middle-end/60004
13185 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
13186 until after else_eh is processed.
13187
13188 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
13189
13190 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
13191 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
13192 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
13193 in smmintrin.h, remove them.
13194 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
13195 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
13196 * config/i386/i386.md (ROUND_SAE): Fix value.
13197 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
13198 (const48_operand): New.
13199 * config/i386/subst.md (round), (round_expand): Use
13200 const_4_or_8_to_11_operand.
13201 (round_saeonly), (round_saeonly_expand): Use const48_operand.
13202
13203 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
13204
13205 * config/i386/constraints.md (Yk): Swap meaning with k.
13206 * config/i386/i386.md (movhi_internal): Change Yk to k.
13207 (movqi_internal): Ditto.
13208 (*k<logic><mode>): Ditto.
13209 (*andhi_1): Ditto.
13210 (*andqi_1): Ditto.
13211 (kandn<mode>): Ditto.
13212 (*<code>hi_1): Ditto.
13213 (*<code>qi_1): Ditto.
13214 (kxnor<mode>): Ditto.
13215 (kortestzhi): Ditto.
13216 (kortestchi): Ditto.
13217 (kunpckhi): Ditto.
13218 (*one_cmplhi2_1): Ditto.
13219 (*one_cmplqi2_1): Ditto.
13220 * config/i386/sse.md (): Change k to Yk.
13221 (avx512f_load<mode>_mask): Ditto.
13222 (avx512f_blendm<mode>): Ditto.
13223 (avx512f_store<mode>_mask): Ditto.
13224 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
13225 (avx512f_storedqu<mode>_mask): Ditto.
13226 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
13227 Ditto.
13228 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
13229 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
13230 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
13231 (avx512f_maskcmp<mode>3): Ditto.
13232 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
13233 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
13234 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
13235 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
13236 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
13237 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
13238 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
13239 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
13240 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
13241 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
13242 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
13243 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
13244 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
13245 (vec_extract_lo_<mode>_maskm): Ditto.
13246 (vec_extract_hi_<mode>_maskm): Ditto.
13247 (avx512f_vternlog<mode>_mask): Ditto.
13248 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
13249 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
13250 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
13251 (avx512f_<code>v8div16qi2_mask): Ditto.
13252 (avx512f_<code>v8div16qi2_mask_store): Ditto.
13253 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
13254 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
13255 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
13256 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
13257 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13258 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13259 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13260 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13261 (avx512cd_maskb_vec_dupv8di): Ditto.
13262 (avx512cd_maskw_vec_dupv16si): Ditto.
13263 (avx512f_vpermi2var<mode>3_maskz): Ditto.
13264 (avx512f_vpermi2var<mode>3_mask): Ditto.
13265 (avx512f_vpermi2var<mode>3_mask): Ditto.
13266 (avx512f_vpermt2var<mode>3_maskz): Ditto.
13267 (*avx512f_gathersi<mode>): Ditto.
13268 (*avx512f_gathersi<mode>_2): Ditto.
13269 (*avx512f_gatherdi<mode>): Ditto.
13270 (*avx512f_gatherdi<mode>_2): Ditto.
13271 (*avx512f_scattersi<mode>): Ditto.
13272 (*avx512f_scatterdi<mode>): Ditto.
13273 (avx512f_compress<mode>_mask): Ditto.
13274 (avx512f_compressstore<mode>_mask): Ditto.
13275 (avx512f_expand<mode>_mask): Ditto.
13276 * config/i386/subst.md (mask): Change k to Yk.
13277 (mask_scalar_merge): Ditto.
13278 (sd): Ditto.
13279
13280 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
13281
13282 * doc/extend.texi (Vector Extensions): Document ?: in C++.
13283
13284 2014-01-31 Richard Biener <rguenther@suse.de>
13285
13286 PR middle-end/59990
13287 * builtins.c (fold_builtin_memory_op): Make sure to not
13288 use a floating-point mode or a boolean or enumeral type for
13289 the copy operation.
13290
13291 2014-01-30 DJ Delorie <dj@redhat.com>
13292
13293 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
13294 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
13295 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
13296 whenever main() has an epilogue.
13297
13298 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13299
13300 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
13301 unused variable "field".
13302 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
13303 (vsx_mergeh_<mode>): Likewise.
13304 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
13305 (altivec_vmrghh): Likewise.
13306 (altivec_vmrghw): Likewise.
13307 (altivec_vmrglb): Likewise.
13308 (altivec_vmrglh): Likewise.
13309 (altivec_vmrglw): Likewise.
13310 (altivec_vspltb): Add missing uses.
13311 (altivec_vsplth): Likewise.
13312 (altivec_vspltw): Likewise.
13313 (altivec_vspltsf): Likewise.
13314
13315 2014-01-30 Jakub Jelinek <jakub@redhat.com>
13316
13317 PR target/59923
13318 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
13319 frame related instructions.
13320
13321 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
13322
13323 PR rtl-optimization/59959
13324 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
13325 any reload of register whose subreg is invalid.
13326
13327 2014-01-30 Jakub Jelinek <jakub@redhat.com>
13328
13329 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
13330 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
13331 Add missing return type - void.
13332
13333 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13334
13335 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
13336 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
13337 remove element index adjustment for endian (now handled in vsx.md
13338 and altivec.md).
13339 (altivec_expand_vec_perm_const): Use
13340 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
13341 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
13342 (vsx_xxspltw_<mode>): Adjust element index for little endian.
13343 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
13344 define_expand and a new define_insn *altivec_vspltb_internal;
13345 adjust for -maltivec=be on a little endian target.
13346 (altivec_vspltb_direct): New.
13347 (altivec_vsplth): Divide into a define_expand and a new
13348 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
13349 little endian target.
13350 (altivec_vsplth_direct): New.
13351 (altivec_vspltw): Divide into a define_expand and a new
13352 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
13353 little endian target.
13354 (altivec_vspltw_direct): New.
13355 (altivec_vspltsf): Divide into a define_expand and a new
13356 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
13357 a little endian target.
13358
13359 2014-01-30 Richard Biener <rguenther@suse.de>
13360
13361 PR tree-optimization/59993
13362 * tree-ssa-forwprop.c (associate_pointerplus): Check we
13363 can propagate form the earlier stmt and avoid the transform
13364 when the intermediate result is needed.
13365
13366 2014-01-30 Alangi Derick <alangiderick@gmail.com>
13367
13368 * README.Portability: Fix typo.
13369
13370 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
13371
13372 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
13373 comparison_operator with ordered_comparison_operator.
13374
13375 2014-01-30 Nick Clifton <nickc@redhat.com>
13376
13377 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
13378 Rename to mn10300_store_multiple_regs.
13379 * config/mn10300/mn10300.c: Likewise.
13380 * config/mn10300/mn10300.md (store_movm): Fix typo: call
13381 store_multiple_regs.
13382 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
13383 Call mn10300_store_multiple_regs.
13384
13385 2014-01-30 Nick Clifton <nickc@redhat.com>
13386 DJ Delorie <dj@redhat.com>
13387
13388 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
13389 %fp 2 to keep registers after it properly word-aligned.
13390 (rl78_alloc_physical_registers_umul): Handle the case where both
13391 input operands are the same.
13392
13393 2014-01-30 Richard Biener <rguenther@suse.de>
13394
13395 PR tree-optimization/59903
13396 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
13397 check properly.
13398
13399 2014-01-30 Jason Merrill <jason@redhat.com>
13400
13401 PR c++/59633
13402 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
13403
13404 PR c++/59645
13405 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
13406
13407 2014-01-30 Richard Biener <rguenther@suse.de>
13408
13409 PR tree-optimization/59951
13410 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
13411
13412 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
13413
13414 PR target/59784
13415 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
13416 SFmode to DFmode case.
13417
13418 2014-01-29 DJ Delorie <dj@redhat.com>
13419
13420 * config/msp430/msp430.opt (-minrt): New.
13421 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
13422 if -minrt given.
13423 (ENDFILE_SPEC): Likewise.
13424
13425 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
13426
13427 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
13428 (estimate_function_body_sizes): Use it.
13429
13430 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
13431
13432 PR c++/58561
13433 * dwarf2out.c (is_cxx_auto): New.
13434 (is_base_type): Use it.
13435 (gen_type_die_with_usage): Likewise.
13436
13437 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13438
13439 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
13440 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
13441 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
13442 -maltivec=be with LE targets.
13443 (vsx_mergeh_<mode>): Likewise.
13444 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
13445 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
13446 (altivec_vmrghb): Replace with define_expand and new
13447 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
13448 (altivec_vmrghb_direct): New define_insn.
13449 (altivec_vmrghh): Replace with define_expand and new
13450 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
13451 (altivec_vmrghh_direct): New define_insn.
13452 (altivec_vmrghw): Replace with define_expand and new
13453 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
13454 (altivec_vmrghw_direct): New define_insn.
13455 (*altivec_vmrghsf): Adjust for endianness.
13456 (altivec_vmrglb): Replace with define_expand and new
13457 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
13458 (altivec_vmrglb_direct): New define_insn.
13459 (altivec_vmrglh): Replace with define_expand and new
13460 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
13461 (altivec_vmrglh_direct): New define_insn.
13462 (altivec_vmrglw): Replace with define_expand and new
13463 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
13464 (altivec_vmrglw_direct): New define_insn.
13465 (*altivec_vmrglsf): Adjust for endianness.
13466 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
13467 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
13468 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
13469 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
13470 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
13471 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
13472 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
13473 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
13474
13475 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
13476
13477 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
13478 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
13479 whitespace.
13480
13481 2014-01-29 Richard Biener <rguenther@suse.de>
13482
13483 PR tree-optimization/58742
13484 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
13485 associate_pointerplus_align.
13486 (associate_pointerplus_diff): New function.
13487 (associate_pointerplus): Likewise. Call associate_pointerplus_align
13488 and associate_pointerplus_diff.
13489
13490 2014-01-29 Richard Biener <rguenther@suse.de>
13491
13492 * lto-streamer.h (LTO_major_version): Bump to 3.
13493 (LTO_minor_version): Reset to 0.
13494
13495 2014-01-29 Renlin Li <Renlin.Li@arm.com>
13496
13497 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
13498 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
13499 (arm_file_start): Generate correct asm header for armv7ve.
13500 * config/arm/bpabi.h: Add multilib support for armv7ve.
13501 * config/arm/driver-arm.c: Change the architectures of cortex-a7
13502 and cortex-a15 to armv7ve.
13503 * config/arm/t-aprofile: Add multilib support for armv7ve.
13504 * doc/invoke.texi: Document -march=armv7ve.
13505
13506 2014-01-29 Richard Biener <rguenther@suse.de>
13507
13508 PR tree-optimization/58742
13509 * tree-ssa-forwprop.c (associate_plusminus): Return true
13510 if we changed sth, defer EH cleanup to ...
13511 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
13512 (simplify_mult): New function.
13513
13514 2014-01-29 Jakub Jelinek <jakub@redhat.com>
13515
13516 PR middle-end/59917
13517 PR tree-optimization/59920
13518 * tree.c (build_common_builtin_nodes): Remove
13519 __builtin_setjmp_dispatcher initialization.
13520 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
13521 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
13522 instead of gsi_after_labels + manually skipping debug stmts.
13523 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
13524 ignore bbs with IFN_ABNORMAL_DISPATCHER.
13525 * tree-inline.c (copy_edges_for_bb): Remove
13526 can_make_abnormal_goto argument, instead add abnormal_goto_dest
13527 argument. Ignore computed_goto_p stmts. Don't call
13528 make_abnormal_goto_edges. If a call might need abnormal edges
13529 for non-local gotos, see if it already has an edge to
13530 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
13531 with true argument, don't do anything then, otherwise add
13532 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
13533 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
13534 caller.
13535 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
13536 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
13537 (lower_stmt): Don't set data->calls_builtin_setjmp.
13538 (lower_builtin_setjmp): Adjust comment.
13539 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
13540 * tree-cfg.c (found_computed_goto): Remove.
13541 (factor_computed_gotos): Remove.
13542 (make_goto_expr_edges): Return bool, true for computed gotos.
13543 Don't call make_abnormal_goto_edges.
13544 (build_gimple_cfg): Don't set found_computed_goto, don't call
13545 factor_computed_gotos.
13546 (computed_goto_p): No longer static.
13547 (make_blocks): Don't set found_computed_goto.
13548 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
13549 (make_edges): If make_goto_expr_edges returns true, push bb
13550 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
13551 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
13552 vector. Record mapping between bbs and OpenMP regions if there
13553 are any, adjust make_gimple_omp_edges caller. Call
13554 handle_abnormal_edges.
13555 (make_abnormal_goto_edges): Remove.
13556 * tree-cfg.h (make_abnormal_goto_edges): Remove.
13557 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
13558 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
13559 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
13560 * internal-fn.def (ABNORMAL_DISPATCHER): New.
13561 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
13562 filling *region also set *region_idx to (*region)->entry->index.
13563
13564 PR other/58712
13565 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
13566 For REGs set ORIGINAL_REGNO.
13567
13568 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
13569
13570 * doc/md.texi: Mention that a target shouldn't implement
13571 vec_widen_(s|u)mul_even/odd pair if it is less efficient
13572 than hi/lo pair.
13573
13574 2014-01-29 Jakub Jelinek <jakub@redhat.com>
13575
13576 PR tree-optimization/59594
13577 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
13578 a copy of the datarefs vector rather than the vector itself.
13579
13580 2014-01-28 Jason Merrill <jason@redhat.com>
13581
13582 PR c++/53756
13583 * dwarf2out.c (auto_die): New static.
13584 (gen_type_die_with_usage): Handle C++1y 'auto'.
13585 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
13586 on definition.
13587
13588 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
13589
13590 PR target/59672
13591 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
13592 (SPEC_X32): Likewise.
13593 (SPEC_64): Likewise.
13594 * config/i386/i386.c (ix86_option_override_internal): Turn off
13595 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
13596 for TARGET_16BIT.
13597 (x86_file_start): Output .code16gcc for TARGET_16BIT.
13598 * config/i386/i386.h (TARGET_16BIT): New macro.
13599 (TARGET_16BIT_P): Likewise.
13600 * config/i386/i386.opt: Add m16.
13601 * doc/invoke.texi: Document -m16.
13602
13603 2014-01-28 Jakub Jelinek <jakub@redhat.com>
13604
13605 PR preprocessor/59935
13606 * input.c (location_get_source_line): Bail out on when line number
13607 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
13608
13609 2014-01-28 Richard Biener <rguenther@suse.de>
13610
13611 PR tree-optimization/58742
13612 * tree-ssa-forwprop.c (associate_plusminus): Handle
13613 pointer subtraction of the form (T)(P + A) - (T)P.
13614
13615 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13616
13617 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
13618 at const_int_cost.
13619
13620 2014-01-28 Richard Biener <rguenther@suse.de>
13621
13622 Revert
13623 2014-01-28 Richard Biener <rguenther@suse.de>
13624
13625 PR rtl-optimization/45364
13626 PR rtl-optimization/59890
13627 * var-tracking.c (local_get_addr_clear_given_value): Handle
13628 already cleared slot.
13629 (val_reset): Handle not allocated local_get_addr_cache.
13630 (vt_find_locations): Use post-order on the inverted CFG.
13631
13632 2014-01-28 Richard Biener <rguenther@suse.de>
13633
13634 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
13635
13636 2014-01-28 Richard Biener <rguenther@suse.de>
13637
13638 PR rtl-optimization/45364
13639 PR rtl-optimization/59890
13640 * var-tracking.c (local_get_addr_clear_given_value): Handle
13641 already cleared slot.
13642 (val_reset): Handle not allocated local_get_addr_cache.
13643 (vt_find_locations): Use post-order on the inverted CFG.
13644
13645 2014-01-28 Alan Modra <amodra@gmail.com>
13646
13647 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
13648 * configure.ac <recursive call for build != host>: Define
13649 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
13650 and LD_FOR_BUILD too.
13651 * configure: Regenerate.
13652
13653 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
13654
13655 * config/i386/i386.c (get_builtin_code_for_version): Separate
13656 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
13657 Broadwell from Haswell.
13658
13659 2014-01-27 Steve Ellcey <sellcey@mips.com>
13660
13661 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
13662 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
13663 * config/mips/mips.c (mips_option_override): Change setting
13664 of TARGET_DSP.
13665 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
13666 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
13667 Change from Mask to Var.
13668
13669 2014-01-27 Jeff Law <law@redhat.com>
13670
13671 * ipa-inline.c (inline_small_functions): Fix typo.
13672
13673 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
13674
13675 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
13676 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
13677 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
13678 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
13679 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
13680 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
13681 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
13682 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
13683 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
13684 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
13685 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
13686 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
13687 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
13688 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
13689 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
13690 (_mm512_storeu_epi64): Ditto.
13691 (_mm512_cmpge_epi32_mask): Ditto.
13692 (_mm512_cmpge_epu32_mask): Ditto.
13693 (_mm512_cmpge_epi64_mask): Ditto.
13694 (_mm512_cmpge_epu64_mask): Ditto.
13695 (_mm512_cmple_epi32_mask): Ditto.
13696 (_mm512_cmple_epu32_mask): Ditto.
13697 (_mm512_cmple_epi64_mask): Ditto.
13698 (_mm512_cmple_epu64_mask): Ditto.
13699 (_mm512_cmplt_epi32_mask): Ditto.
13700 (_mm512_cmplt_epu32_mask): Ditto.
13701 (_mm512_cmplt_epi64_mask): Ditto.
13702 (_mm512_cmplt_epu64_mask): Ditto.
13703 (_mm512_cmpneq_epi32_mask): Ditto.
13704 (_mm512_cmpneq_epu32_mask): Ditto.
13705 (_mm512_cmpneq_epi64_mask): Ditto.
13706 (_mm512_cmpneq_epu64_mask): Ditto.
13707 (_mm512_expand_pd): Ditto.
13708 (_mm512_expand_ps): Ditto.
13709 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
13710 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
13711 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
13712 * config/i386/i386.c (ix86_builtins): Add
13713 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
13714 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
13715 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
13716 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
13717 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
13718 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
13719 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
13720 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
13721 IX86_BUILTIN_PMOVUSQW512_MEM.
13722 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
13723 __builtin_ia32_pmovsqd512mem_mask,
13724 __builtin_ia32_pmovqd512mem_mask,
13725 __builtin_ia32_pmovusqw512mem_mask,
13726 __builtin_ia32_pmovsqw512mem_mask,
13727 __builtin_ia32_pmovqw512mem_mask,
13728 __builtin_ia32_pmovusdw512mem_mask,
13729 __builtin_ia32_pmovsdw512mem_mask,
13730 __builtin_ia32_pmovdw512mem_mask,
13731 __builtin_ia32_pmovqb512mem_mask,
13732 __builtin_ia32_pmovusqb512mem_mask,
13733 __builtin_ia32_pmovsqb512mem_mask,
13734 __builtin_ia32_pmovusdb512mem_mask,
13735 __builtin_ia32_pmovsdb512mem_mask,
13736 __builtin_ia32_pmovdb512mem_mask.
13737 (bdesc_args): Add __builtin_ia32_expanddf512,
13738 __builtin_ia32_expandsf512.
13739 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
13740 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
13741 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
13742 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
13743 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
13744 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
13745 (avx512f_<code>v8div16qi2_mask_store): This.
13746 (avx512f_expand<mode>): New.
13747
13748 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
13749
13750 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
13751 New.
13752 (_mm512_mask_prefetch_i64gather_pd): Ditto.
13753 (_mm512_prefetch_i32scatter_pd): Ditto.
13754 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
13755 (_mm512_prefetch_i64scatter_pd): Ditto.
13756 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
13757 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
13758 (_mm512_mask_prefetch_i64gather_ps): Ditto.
13759 (_mm512_prefetch_i32scatter_ps): Ditto.
13760 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
13761 (_mm512_prefetch_i64scatter_ps): Ditto.
13762 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
13763 * config/i386/i386-builtin-types.def: Define
13764 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
13765 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
13766 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
13767 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
13768 IX86_BUILTIN_SCATTERPFQPD.
13769 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
13770 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
13771 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
13772 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
13773 __builtin_ia32_scatterpfqps.
13774 (ix86_expand_builtin): Expand new built-ins.
13775 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
13776 fix memory access data type.
13777 (*avx512pf_gatherpf<mode>_mask): Ditto.
13778 (*avx512pf_gatherpf<mode>): Ditto.
13779 (avx512pf_scatterpf<mode>): Ditto.
13780 (*avx512pf_scatterpf<mode>_mask): Ditto.
13781 (*avx512pf_scatterpf<mode>): Ditto.
13782 (GATHER_SCATTER_SF_MEM_MODE): New.
13783 (avx512pf_gatherpf<mode>df): Ditto.
13784 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13785 (*avx512pf_scatterpf<mode>df): Ditto.
13786
13787 2014-01-27 Jakub Jelinek <jakub@redhat.com>
13788
13789 PR bootstrap/59934
13790 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
13791 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
13792 reached.
13793
13794 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
13795
13796 * common/config/arm/arm-common.c
13797 (arm_rewrite_mcpu): Handle multiple names.
13798 * config/arm/arm.h
13799 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
13800
13801 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
13802
13803 * gimple-builder.h (create_gimple_tmp): Delete.
13804
13805 2014-01-27 Christian Bruel <christian.bruel@st.com>
13806
13807 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
13808 words comparisons.
13809
13810 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
13811
13812 * config/pa/pa.md (call): Generate indirect long calls to non-local
13813 functions when outputing 32-bit code.
13814 (call_value): Likewise except for special call to buggy powf function.
13815
13816 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
13817 portable runtime and PIC indirect calls.
13818 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
13819 and PIC call sequences. Use ldo instead of blr to set return register
13820 in PIC call sequence.
13821
13822 2014-01-25 Walter Lee <walt@tilera.com>
13823
13824 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
13825 avoid clobbering a live register.
13826
13827 2014-01-25 Walter Lee <walt@tilera.com>
13828
13829 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
13830 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
13831 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
13832 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
13833
13834 2014-01-25 Walter Lee <walt@tilera.com>
13835
13836 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
13837 arguments on even registers.
13838 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
13839 STACK_BOUNDARY.
13840 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
13841 (BIGGEST_ALIGNMENT): Ditto.
13842 (BIGGEST_FIELD_ALIGNMENT): Ditto.
13843
13844 2014-01-25 Walter Lee <walt@tilera.com>
13845
13846 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
13847 insns before bundling.
13848 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
13849
13850 2014-01-25 Walter Lee <walt@tilera.com>
13851
13852 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
13853 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
13854 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
13855
13856 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
13857
13858 * config/mips/constraints.md (kl): Delete.
13859 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
13860 define expands, using...
13861 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
13862 instructions for MIPS16.
13863 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
13864 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
13865
13866 2014-01-25 Walter Lee <walt@tilera.com>
13867
13868 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
13869 (clzdi2): Ditto.
13870 (ffsdi2): Ditto.
13871
13872 2014-01-25 Walter Lee <walt@tilera.com>
13873
13874 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
13875 (TARGET_EXPAND_TO_RTL_HOOK): Define.
13876
13877 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
13878
13879 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
13880 Handle XOR.
13881
13882 2014-01-25 Jakub Jelinek <jakub@redhat.com>
13883
13884 * print-rtl.c (in_call_function_usage): New var.
13885 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
13886 EXPR_LIST mode as mode and not as reg note name.
13887
13888 PR middle-end/59561
13889 * cfgloopmanip.c (copy_loop_info): If
13890 loop->warned_aggressive_loop_optimizations, make sure
13891 the flag is set in target loop too.
13892
13893 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
13894
13895 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
13896 flag_cilkplus.
13897 * builtins.def: Likewise.
13898 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
13899 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
13900 * ira.c (ira_setup_eliminable_regset): Likewise.
13901 * omp-low.c (gate_expand_omp): Likewise.
13902 (execute_lower_omp): Likewise.
13903 (diagnose_sb_0): Likewise.
13904 (gate_diagnose_omp_blocks): Likewise.
13905 (simd_clone_clauses_extract): Likewise.
13906 (gate): Likewise.
13907
13908 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13909
13910 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
13911 correction for little endian...
13912 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
13913 here.
13914
13915 2014-01-24 Jeff Law <law@redhat.com>
13916
13917 PR tree-optimization/59919
13918 * tree-vrp.c (find_assert_locations_1): Do not register asserts
13919 for non-returning calls.
13920
13921 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
13922
13923 * common/config/aarch64/aarch64-common.c
13924 (aarch64_rewrite_mcpu): Handle multiple names.
13925 * config/aarch64/aarch64.h
13926 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
13927
13928 2014-01-24 Dodji Seketeli <dodji@redhat.com>
13929
13930 * input.c (add_file_to_cache_tab): Handle the case where fopen
13931 returns NULL.
13932
13933 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
13934
13935 PR target/59929
13936 * config/i386/i386.md (pushsf splitter): Get stack adjustment
13937 from push operand if code of push isn't PRE_DEC.
13938
13939 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13940
13941 PR target/59909
13942 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13943 -mquad-memory-atomic. Update -mquad-memory documentation to say
13944 it is only used for non-atomic loads/stores.
13945
13946 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
13947 -mquad-memory or -mquad-memory-atomic switches.
13948
13949 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
13950 -mquad-memory-atomic to ISA 2.07 support.
13951
13952 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
13953 to separate support of normal quad word memory operations (ldq, stq)
13954 from the atomic quad word memory operations.
13955
13956 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
13957 support to separate non-atomic quad word operations from atomic
13958 quad word operations. Disable non-atomic quad word operations in
13959 little endian mode so that we don't have to swap words after the
13960 load and before the store.
13961 (quad_load_store_p): Add comment about atomic quad word support.
13962 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
13963 options printed with -mdebug=reg.
13964
13965 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
13966 -mquad-memory-atomic as the test for whether we have quad word
13967 atomic instructions.
13968 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
13969 or -mp8-vector are used, allow byte/half-word atomic operations.
13970
13971 * config/rs6000/sync.md (load_lockedti): Insure that the address
13972 is a proper indexed or indirect address for the lqarx instruction.
13973 On little endian systems, swap the hi/lo registers after the lqarx
13974 instruction.
13975 (load_lockedpti): Use indexed_or_indirect_operand predicate to
13976 insure the address is valid for the lqarx instruction.
13977 (store_conditionalti): Insure that the address is a proper indexed
13978 or indirect address for the stqcrx. instruction. On little endian
13979 systems, swap the hi/lo registers before doing the stqcrx.
13980 instruction.
13981 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
13982 insure the address is valid for the stqcrx. instruction.
13983
13984 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
13985 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
13986 type of quad memory support is available.
13987
13988 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
13989
13990 PR regression/59915
13991 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
13992 there is a danger of looping.
13993
13994 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
13995
13996 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13997 force flag_ira_loop_pressure if set via command line.
13998
13999 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
14000
14001 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
14002 (ashr_simd): New builtin handling DI mode.
14003 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
14004 (aarch64_sshr_simddi): New match pattern.
14005 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
14006 (vshrd_n_s64): Likewise.
14007 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
14008
14009 2014-01-23 Nick Clifton <nickc@redhat.com>
14010
14011 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
14012 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
14013 favour of mcu specific scripts.
14014 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
14015 430x multilibs.
14016
14017 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
14018 Alex Velenko <Alex.Velenko@arm.com>
14019
14020 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
14021 (vaddv_s16): Likewise.
14022 (vaddv_s32): Likewise.
14023 (vaddv_u8): Likewise.
14024 (vaddv_u16): Likewise.
14025 (vaddv_u32): Likewise.
14026 (vaddvq_s8): Likewise.
14027 (vaddvq_s16): Likewise.
14028 (vaddvq_s32): Likewise.
14029 (vaddvq_s64): Likewise.
14030 (vaddvq_u8): Likewise.
14031 (vaddvq_u16): Likewise.
14032 (vaddvq_u32): Likewise.
14033 (vaddvq_u64): Likewise.
14034 (vaddv_f32): Likewise.
14035 (vaddvq_f32): Likewise.
14036 (vaddvq_f64): Likewise.
14037 (vmaxv_f32): Likewise.
14038 (vmaxv_s8): Likewise.
14039 (vmaxv_s16): Likewise.
14040 (vmaxv_s32): Likewise.
14041 (vmaxv_u8): Likewise.
14042 (vmaxv_u16): Likewise.
14043 (vmaxv_u32): Likewise.
14044 (vmaxvq_f32): Likewise.
14045 (vmaxvq_f64): Likewise.
14046 (vmaxvq_s8): Likewise.
14047 (vmaxvq_s16): Likewise.
14048 (vmaxvq_s32): Likewise.
14049 (vmaxvq_u8): Likewise.
14050 (vmaxvq_u16): Likewise.
14051 (vmaxvq_u32): Likewise.
14052 (vmaxnmv_f32): Likewise.
14053 (vmaxnmvq_f32): Likewise.
14054 (vmaxnmvq_f64): Likewise.
14055 (vminv_f32): Likewise.
14056 (vminv_s8): Likewise.
14057 (vminv_s16): Likewise.
14058 (vminv_s32): Likewise.
14059 (vminv_u8): Likewise.
14060 (vminv_u16): Likewise.
14061 (vminv_u32): Likewise.
14062 (vminvq_f32): Likewise.
14063 (vminvq_f64): Likewise.
14064 (vminvq_s8): Likewise.
14065 (vminvq_s16): Likewise.
14066 (vminvq_s32): Likewise.
14067 (vminvq_u8): Likewise.
14068 (vminvq_u16): Likewise.
14069 (vminvq_u32): Likewise.
14070 (vminnmv_f32): Likewise.
14071 (vminnmvq_f32): Likewise.
14072 (vminnmvq_f64): Likewise.
14073
14074 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
14075
14076 * config/aarch64/aarch64-simd.md
14077 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
14078 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
14079 (*aarch64_mul3_elt<mode>): Likewise.
14080 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
14081 (*aarch64_mul3_elt_to_64v2df): Likewise.
14082 (*aarch64_mla_elt<mode>): Likewise.
14083 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14084 (*aarch64_mls_elt<mode>): Likewise.
14085 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14086 (*aarch64_fma4_elt<mode>): Likewise.
14087 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14088 (*aarch64_fma4_elt_to_64v2df): Likewise.
14089 (*aarch64_fnma4_elt<mode>): Likewise.
14090 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14091 (*aarch64_fnma4_elt_to_64v2df): Likewise.
14092 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
14093 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
14094 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14095 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
14096 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
14097 (aarch64_sqdmull_lane<mode>_internal): Likewise.
14098 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
14099
14100 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
14101
14102 * config/aarch64/aarch64-simd.md
14103 (aarch64_be_checked_get_lane<mode>): New define_expand.
14104 * config/aarch64/aarch64-simd-builtins.def
14105 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
14106 New builtin definition.
14107 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
14108 Use new safe be builtin.
14109
14110 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
14111
14112 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
14113 New define_insn.
14114 (aarch64_be_st1<mode>): Likewise.
14115 (aarch_ld1<VALL:mode>): Define_expand modified.
14116 (aarch_st1<VALL:mode>): Likewise.
14117 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
14118 (UNSPEC_ST1): Likewise.
14119
14120 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
14121
14122 * config/microblaze/microblaze.md: Add trap insn and attribute
14123
14124 2014-01-23 Dodji Seketeli <dodji@redhat.com>
14125
14126 PR preprocessor/58580
14127 * input.h (location_get_source_line): Take an additional line_size
14128 parameter.
14129 (void diagnostics_file_cache_fini): Declare new function.
14130 * input.c (struct fcache): New type.
14131 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
14132 New static constants.
14133 (diagnostic_file_cache_init, total_lines_num)
14134 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
14135 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
14136 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
14137 (get_next_line, read_next_line, goto_next_line, read_line_num):
14138 New static function definitions.
14139 (diagnostic_file_cache_fini): New function.
14140 (location_get_source_line): Take an additional output line_len
14141 parameter. Re-write using lookup_or_add_file_to_cache_tab and
14142 read_line_num.
14143 * diagnostic.c (diagnostic_finish): Call
14144 diagnostic_file_cache_fini.
14145 (adjust_line): Take an additional input parameter for the length
14146 of the line, rather than calculating it with strlen.
14147 (diagnostic_show_locus): Adjust the use of
14148 location_get_source_line and adjust_line with respect to their new
14149 signature. While displaying a line now, do not stop at the first
14150 null byte. Rather, display the zero byte as a space and keep
14151 going until we reach the size of the line.
14152 * Makefile.in: Add vec.o to OBJS-libcommon
14153
14154 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
14155 Ilya Tocar <ilya.tocar@intel.com>
14156
14157 * config/i386/avx512fintrin.h (_mm512_kmov): New.
14158 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
14159 (__builtin_ia32_kmov16): Ditto.
14160 * config/i386/i386.md (UNSPEC_KMOV): New.
14161 (kmovw): Ditto.
14162
14163 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
14164
14165 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
14166 (_mm512_storeu_si512): Ditto.
14167
14168 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
14169
14170 PR target/52125
14171 * rtl.h (get_referenced_operands): Declare.
14172 * recog.c (get_referenced_operands): New function.
14173 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
14174 operands have been referenced when recording LO_SUM references.
14175
14176 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
14177
14178 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
14179
14180 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
14181
14182 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
14183 Enable for generic and recent AMD targets.
14184
14185 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
14186
14187 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
14188 ARG_SIZE note when adjustment was eliminated.
14189
14190 2014-01-22 Jeff Law <law@redhat.com>
14191
14192 PR tree-optimization/59597
14193 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
14194 in file. Accept new argument REGISTERING and use it to modify
14195 dump output appropriately.
14196 (register_jump_thread): Corresponding changes.
14197 (mark_threaded_blocks): Reinstate code to cancel unprofitable
14198 thread paths involving joiner blocks. Add code to dump cancelled
14199 jump threading paths.
14200
14201 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
14202
14203 PR rtl-optimization/59477
14204 * lra-constraints.c (inherit_in_ebb): Process call for living hard
14205 regs. Update reloads_num and potential_reload_hard_regs for all insns.
14206
14207 2014-01-22 Tom Tromey <tromey@redhat.com>
14208
14209 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
14210 PARAMS.
14211 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
14212
14213 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
14214
14215 PR rtl-optimization/59896
14216 * lra-constraints.c (process_alt_operands): Check unused note for
14217 matched operands of insn with no output reloads.
14218
14219 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
14220
14221 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
14222 (mips_move_from_gpr_cost): Likewise.
14223
14224 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
14225
14226 PR rtl-optimization/59858
14227 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
14228 ira_class_hard_regs_num.
14229 (process_alt_operands): Increase reject for dying matched operand.
14230
14231 2014-01-21 Jakub Jelinek <jakub@redhat.com>
14232
14233 PR target/59003
14234 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
14235 smaller than size, perform several stores or loads and stores
14236 at dst + count - size to store or copy all of size bytes, rather
14237 than just last modesize bytes.
14238
14239 2014-01-20 DJ Delorie <dj@redhat.com>
14240
14241 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
14242 that CLOBBERs are REGs before propogating their values.
14243
14244 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
14245
14246 PR middle-end/59789
14247 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
14248 (cgraph_inline_failed_type): New function.
14249 * cgraph.h (DEFCIFCODE): Add type.
14250 (cgraph_inline_failed_type_t): New enum.
14251 (cgraph_inline_failed_type): New prototype.
14252 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
14253 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
14254 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
14255 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
14256 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
14257 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
14258 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
14259 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
14260 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
14261 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
14262 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
14263 OPTIMIZATION_MISMATCH.
14264 * tree-inline.c (expand_call_inline): Emit errors during
14265 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
14266
14267 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
14268
14269 PR target/59685
14270 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
14271 mode attribute in insn output.
14272
14273 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
14274
14275 * output.h (output_constant): Delete.
14276 * varasm.c (output_constant): Make private.
14277
14278 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
14279
14280 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
14281
14282 2014-01-20 Jakub Jelinek <jakub@redhat.com>
14283
14284 PR middle-end/59860
14285 * tree.h (fold_builtin_strcat): New prototype.
14286 * builtins.c (fold_builtin_strcat): No longer static. Add len
14287 argument, if non-NULL, don't call c_strlen. Optimize
14288 directly into __builtin_memcpy instead of __builtin_strcpy.
14289 (fold_builtin_2): Adjust fold_builtin_strcat caller.
14290 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
14291
14292 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
14293
14294 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
14295 for SImode_address_operand operands, having only a REG argument.
14296
14297 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
14298
14299 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
14300 loader name using mbig-endian.
14301 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
14302
14303 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
14304
14305 * doc/invoke.texi (-march): Clarify documentation for AArch64.
14306 (-mtune): Likewise.
14307 (-mcpu): Likewise.
14308
14309 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
14310
14311 * config/aarch64/aarch64-protos.h
14312 (aarch64_cannot_change_mode_class_ptr): Declare.
14313 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
14314 aarch64_cannot_change_mode_class_ptr): New.
14315 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
14316 backend hook aarch64_cannot_change_mode_class.
14317
14318 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
14319
14320 * common/config/aarch64/aarch64-common.c
14321 (aarch64_handle_option): Don't handle any option order logic here.
14322 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
14323 selected_cpu, warn on architecture version mismatch.
14324 (aarch64_override_options): Fix parsing order for option strings.
14325
14326 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14327 Iain Sandoe <iain@codesourcery.com>
14328
14329 PR bootstrap/59496
14330 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
14331 warning. Amend comment to reflect current functionality.
14332
14333 2014-01-20 Richard Biener <rguenther@suse.de>
14334
14335 PR middle-end/59860
14336 * builtins.c (fold_builtin_strcat): Remove case better handled
14337 by tree-ssa-strlen.c.
14338
14339 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
14340
14341 * config/aarch64/aarch64.opt
14342 (mcpu, march, mtune): Make case-insensitive.
14343
14344 2014-01-20 Jakub Jelinek <jakub@redhat.com>
14345
14346 PR target/59880
14347 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
14348 if operands[1] is a REG or ZERO_EXTEND of a REG.
14349
14350 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
14351
14352 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
14353
14354 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
14355
14356 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
14357 long non-pic millicode calls.
14358
14359 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14360
14361 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
14362
14363 2014-01-19 Kito Cheng <kito@0xlab.org>
14364
14365 * builtins.c (expand_movstr): Check movstr expand done or fail.
14366
14367 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14368 H.J. Lu <hongjiu.lu@intel.com>
14369
14370 PR target/59379
14371 * config/i386/i386.md (*lea<mode>): Zero-extend return register
14372 to DImode for zero-extended addresses.
14373
14374 2014-01-19 Jakub Jelinek <jakub@redhat.com>
14375
14376 PR rtl-optimization/57763
14377 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
14378 on the new indirect jump_insn and increment LABEL_NUSES (label).
14379
14380 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
14381
14382 PR bootstrap/59580
14383 PR bootstrap/59583
14384 * config.gcc (x86_archs): New variable.
14385 (x86_64_archs): Likewise.
14386 (x86_cpus): Likewise.
14387 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
14388 --with-arch/--with-cpu= options.
14389 Support --with-arch=/--with-cpu={nehalem,westmere,
14390 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
14391
14392 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14393
14394 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
14395 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
14396
14397 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
14398
14399 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
14400
14401 2014-01-18 Jakub Jelinek <jakub@redhat.com>
14402
14403 PR target/58944
14404 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
14405 clear cpp_get_options (parse_in)->warn_unused_macros for
14406 ix86_target_macros_internal with cpp_define.
14407
14408 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
14409
14410 * jump.c (delete_related_insns): Keep (use (insn))s.
14411 * reorg.c (redundant_insn): Check for barriers too.
14412
14413 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
14414
14415 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
14416
14417 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
14418
14419 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
14420 call to $$dyncall when TARGET_LONG_CALLS is true.
14421
14422 2014-01-17 Jeff Law <law@redhat.com>
14423
14424 * ree.c (combine_set_extension): Temporarily disable test for
14425 changing number of hard registers.
14426
14427 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
14428
14429 PR middle-end/58125
14430 * ipa-inline-analysis.c (inline_free_summary):
14431 Do not free summary of aliases.
14432
14433 2014-01-17 Jakub Jelinek <jakub@redhat.com>
14434
14435 PR middle-end/59706
14436 * gimplify.c (gimplify_expr): Use create_tmp_var
14437 instead of create_tmp_var_raw. If cond doesn't have
14438 integral type, don't add the IFN_ANNOTATE builtin at all.
14439
14440 2014-01-17 Martin Jambor <mjambor@suse.cz>
14441
14442 PR ipa/59736
14443 * ipa-cp.c (prev_edge_clone): New variable.
14444 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
14445 Also resize prev_edge_clone vector.
14446 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
14447 (ipcp_edge_removal_hook): New function.
14448 (ipcp_driver): Register ipcp_edge_removal_hook.
14449
14450 2014-01-17 Andrew Pinski <apinski@cavium.com>
14451 Steve Ellcey <sellcey@mips.com>
14452
14453 PR target/59462
14454 * config/mips/mips.c (mips_print_operand): Check operand mode instead
14455 of operator mode.
14456
14457 2014-01-17 Jeff Law <law@redhat.com>
14458
14459 PR middle-end/57904
14460 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
14461 so that pass_ccp runs first.
14462
14463 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
14464
14465 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
14466 (ix86_adjust_cost): Use !TARGET_XXX.
14467 (do_reorder_for_imul): Likewise.
14468 (swap_top_of_ready_list): Likewise.
14469 (ix86_sched_reorder): Likewise.
14470
14471 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
14472
14473 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14474 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
14475 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
14476 (intel_memset): New. Duplicate slm_memset.
14477 (intel_cost): New. Duplicate slm_cost.
14478 (m_INTEL): New macro.
14479 (processor_target_table): Add "intel".
14480 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
14481 with PROCESSOR_INTEL for "intel".
14482 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
14483 PROCESSOR_SILVERMONT.
14484 (ix86_issue_rate): Likewise.
14485 (ix86_adjust_cost): Likewise.
14486 (ia32_multipass_dfa_lookahead): Likewise.
14487 (swap_top_of_ready_list): Likewise.
14488 (ix86_sched_reorder): Likewise.
14489 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
14490 instead of TARGET_OPT_AGU.
14491 * config/i386/i386.h (TARGET_INTEL): New.
14492 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
14493 (processor_type): Add PROCESSOR_INTEL.
14494 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
14495 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
14496
14497 2014-01-17 Marek Polacek <polacek@redhat.com>
14498
14499 PR c/58346
14500 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
14501 size is zero.
14502
14503 2014-01-17 Richard Biener <rguenther@suse.de>
14504
14505 PR tree-optimization/46590
14506 * opts.c (default_options_table): Add entries for
14507 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
14508 all enabled at -O1 but not for -Og.
14509 * common.opt (fbranch-count-reg): Remove Init(1).
14510 (fmove-loop-invariants): Likewise.
14511 (ftree-pta): Likewise.
14512
14513 2014-01-17 Jakub Jelinek <jakub@redhat.com>
14514
14515 * config/i386/i386.c (ix86_data_alignment): For compatibility with
14516 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
14517 decls to at least the GCC 4.8 used alignments.
14518
14519 PR fortran/59440
14520 * tree-nested.c (convert_nonlocal_reference_stmt,
14521 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
14522 of GIMPLE_BIND stmts, adjust associated decls.
14523
14524 2014-01-17 Richard Biener <rguenther@suse.de>
14525
14526 PR tree-optimization/46590
14527 * vec.h (vec<>::bseach): New member function implementing
14528 binary search according to C89 bsearch.
14529 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
14530 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
14531 bitmap pointer again. Make accesses_in_loop a flat array.
14532 (mem_ref_obstack): New global.
14533 (outermost_indep_loop): Adjust for mem_ref->stored changes.
14534 (mark_ref_stored): Likewise.
14535 (ref_indep_loop_p_2): Likewise.
14536 (set_ref_stored_in_loop): New helper function.
14537 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
14538 (memref_free): Adjust.
14539 (record_mem_ref_loc): Simplify.
14540 (gather_mem_refs_stmt): Adjust.
14541 (sort_locs_in_loop_postorder_cmp): New function.
14542 (analyze_memory_references): Sort accesses_in_loop after
14543 loop postorder number.
14544 (find_ref_loc_in_loop_cmp): New function.
14545 (for_all_locs_in_loop): Find relevant cluster of locs in
14546 accesses_in_loop and iterate without recursion.
14547 (execute_sm): Avoid uninit warning.
14548 (struct ref_always_accessed): Simplify.
14549 (ref_always_accessed::operator ()): Likewise.
14550 (ref_always_accessed_p): Likewise.
14551 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
14552 loop postorder numbers here.
14553 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
14554 numbers.
14555
14556 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
14557
14558 PR c++/57945
14559 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
14560 on decls for which assemble_alias has been called.
14561
14562 2014-01-17 Nick Clifton <nickc@redhat.com>
14563
14564 * config/msp430/msp430.opt: (mcpu): New option.
14565 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
14566 (msp430_option_override): Parse target_cpu. If the MCU name
14567 matches a generic string, clear target_mcu.
14568 (msp430_attr): Allow numeric interrupt values up to 63.
14569 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
14570 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
14571 option.
14572 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
14573 Add mcpu matches.
14574 * config/msp430/msp430.md (popm): Use %J rather than %I.
14575 (addsi3): Use msp430_nonimmediate_operand for operand 2.
14576 (addhi_cy_i): Use immediate_operand for operand 2.
14577 * doc/invoke.texi: Document -mcpu option.
14578
14579 2014-01-17 Richard Biener <rguenther@suse.de>
14580
14581 PR rtl-optimization/38518
14582 * df.h (df_analyze_loop): Declare.
14583 * df-core.c: Include cfgloop.h.
14584 (df_analyze_1): Split out main part of df_analyze.
14585 (df_analyze): Adjust.
14586 (loop_inverted_post_order_compute): New function.
14587 (loop_post_order_compute): Likewise.
14588 (df_analyze_loop): New function avoiding whole-function
14589 postorder computes.
14590 * loop-invariant.c (find_defs): Use df_analyze_loop.
14591 (find_invariants): Adjust.
14592 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
14593
14594 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
14595
14596 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
14597 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
14598
14599 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
14600
14601 * ipa-ref.c (ipa_remove_stmt_references): Fix references
14602 traversal when removing references.
14603
14604 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
14605
14606 PR ipa/59775
14607 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
14608
14609 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
14610
14611 PR middle-end/56791
14612 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
14613 pushing a reload for an autoinc when we had previously reloaded an
14614 inner part of the address.
14615
14616 2014-01-16 Jakub Jelinek <jakub@redhat.com>
14617
14618 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
14619 field.
14620 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
14621 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
14622 when not giving up or versioning for alias only because of
14623 loop->safelen.
14624 (vect_analyze_data_ref_dependences): Set to true.
14625 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
14626 is a GIMPLE_PHI.
14627 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
14628 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
14629 to the condition.
14630
14631 PR middle-end/58344
14632 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
14633
14634 PR target/59839
14635 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
14636 operand 0 predicate for gathers, use a new pseudo as subtarget.
14637
14638 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
14639
14640 PR middle-end/59609
14641 * lra-constraints.c (process_alt_operands): Add printing debug info.
14642 Check absence of input/output reloads for matched operands too.
14643
14644 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
14645
14646 PR rtl-optimization/59835
14647 * ira.c (ira_init_register_move_cost): Increase cost for
14648 impossible modes.
14649
14650 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
14651
14652 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
14653
14654 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
14655
14656 PR target/59780
14657 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
14658 non-register objects. Use gen_(high/low)part more consistently.
14659 Fix assertions.
14660
14661 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
14662
14663 PR target/59844
14664 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
14665 endian support, remove tests for WORDS_BIG_ENDIAN.
14666 (p8_mfvsrd_3_<mode>): Likewise.
14667 (reload_gpr_from_vsx<mode>): Likewise.
14668 (reload_gpr_from_vsxsf): Likewise.
14669 (p8_mfvsrd_4_disf): Likewise.
14670
14671 2014-01-16 Richard Biener <rguenther@suse.de>
14672
14673 PR rtl-optimization/46590
14674 * lcm.c (compute_antinout_edge): Use postorder iteration.
14675 (compute_laterin): Use inverted postorder iteration.
14676
14677 2014-01-16 Nick Clifton <nickc@redhat.com>
14678
14679 PR middle-end/28865
14680 * varasm.c (output_constant): Return the number of bytes actually
14681 emitted.
14682 (output_constructor_array_range): Update the field size with the
14683 number of bytes emitted by output_constant.
14684 (output_constructor_regular_field): Likewise. Also do not
14685 complain if the total number of bytes emitted is now greater
14686 than the expected fieldpos.
14687 * output.h (output_constant): Update prototype and descriptive comment.
14688
14689 2014-01-16 Marek Polacek <polacek@redhat.com>
14690
14691 PR middle-end/59827
14692 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
14693 it is error_mark_node.
14694
14695 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
14696
14697 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
14698 VALID_AVX256_REG_OR_OI_MODE.
14699
14700 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
14701
14702 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
14703 current procedure should be profiled.
14704
14705 2014-01-15 Andrew Pinski <apinski@cavium.com>
14706
14707 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
14708 of moving from/to the STACK_REG register class.
14709
14710 2014-01-15 Richard Henderson <rth@redhat.com>
14711
14712 PR debug/54694
14713 * reginfo.c (global_regs_decl): Globalize.
14714 * rtl.h (global_regs_decl): Declare.
14715 * ira.c (do_reload): Diagnose frame_pointer_needed and it
14716 reserved via global_regs.
14717
14718 2014-01-15 Teresa Johnson <tejohnson@google.com>
14719
14720 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
14721
14722 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14723
14724 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
14725 and vmulosh rather than call gen_vec_widen_smult_*.
14726 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
14727 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
14728 (vec_widen_smult_even_v16qi): Likewise.
14729 (vec_widen_umult_even_v8hi): Likewise.
14730 (vec_widen_smult_even_v8hi): Likewise.
14731 (vec_widen_umult_odd_v16qi): Likewise.
14732 (vec_widen_smult_odd_v16qi): Likewise.
14733 (vec_widen_umult_odd_v8hi): Likewise.
14734 (vec_widen_smult_odd_v8hi): Likewise.
14735 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
14736 vmuloub rather than call gen_vec_widen_umult_*.
14737 (vec_widen_umult_lo_v16qi): Likewise.
14738 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
14739 vmulosb rather than call gen_vec_widen_smult_*.
14740 (vec_widen_smult_lo_v16qi): Likewise.
14741 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
14742 rather than call gen_vec_widen_umult_*.
14743 (vec_widen_umult_lo_v8hi): Likewise.
14744 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
14745 rather than call gen_vec_widen_smult_*.
14746 (vec_widen_smult_lo_v8hi): Likewise.
14747
14748 2014-01-15 Jeff Law <law@redhat.com>
14749
14750 PR tree-optimization/59747
14751 * ree.c (find_and_remove_re): Properly handle case where a second
14752 eliminated extension requires widening a copy created for elimination
14753 of a prior extension.
14754 (combine_set_extension): Ensure that the number of hard regs needed
14755 for a destination register does not change when we widen it.
14756
14757 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
14758
14759 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
14760 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
14761 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
14762 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
14763 (avr-*-rtems*): Likewise.
14764 (bfin*-rtems*): Likewise.
14765 (moxie-*-rtems*): Likewise.
14766 (h8300-*-rtems*): Likewise.
14767 (i[34567]86-*-rtems*): Likewise.
14768 (lm32-*-rtems*): Likewise.
14769 (m32r-*-rtems*): Likewise.
14770 (m68k-*-rtems*): Likewise.
14771 (microblaze*-*-rtems*): Likewise.
14772 (mips*-*-rtems*): Likewise.
14773 (powerpc-*-rtems*): Likewise.
14774 (sh-*-rtems*): Likewise.
14775 (sparc-*-rtems*): Likewise.
14776 (sparc64-*-rtems*): Likewise.
14777 (v850-*-rtems*): Likewise.
14778 (m32c-*-rtems*): Likewise.
14779
14780 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
14781
14782 PR rtl-optimization/59511
14783 * ira.c (ira_init_register_move_cost): Use memory costs for some
14784 cases of register move cost calculations.
14785 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
14786 instead of BB frequency.
14787 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
14788 * lra-assigns.c (find_hard_regno_for): Ditto.
14789
14790 2014-01-15 Richard Biener <rguenther@suse.de>
14791
14792 PR tree-optimization/59822
14793 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
14794 (vectorizable_load): Use it to hoist defs of uses of invariant
14795 loads out of the loop.
14796
14797 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
14798 Kugan Vivekanandarajah <kuganv@linaro.org>
14799
14800 PR target/59695
14801 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
14802 truncation.
14803
14804 2014-01-15 Richard Biener <rguenther@suse.de>
14805
14806 PR rtl-optimization/59802
14807 * lcm.c (compute_available): Use inverted postorder to seed
14808 the initial worklist.
14809
14810 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14811
14812 PR target/59803
14813 * config/s390/s390.c (s390_preferred_reload_class): Don't return
14814 ADDR_REGS for invalid symrefs in non-PIC code.
14815
14816 2014-01-15 Jakub Jelinek <jakub@redhat.com>
14817
14818 PR other/58712
14819 * builtins.c (determine_block_size): Initialize *probable_max_size
14820 even if len_rtx is CONST_INT.
14821
14822 2014-01-14 Andrew Pinski <apinski@cavium.com>
14823
14824 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
14825 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
14826 (cortexa53_tunings): Likewise.
14827 (aarch64_sched_issue_rate): New function.
14828 (TARGET_SCHED_ISSUE_RATE): Define.
14829
14830 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
14831
14832 * ira-costs.c (find_costs_and_classes): Add missed
14833 ira_init_register_move_cost_if_necessary.
14834
14835 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
14836
14837 PR target/59787
14838 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
14839
14840 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
14841
14842 PR target/59794
14843 * config/i386/i386.c (type_natural_mode): Add a bool parameter
14844 to indicate if type is used for function return value. Warn ABI
14845 change if the vector mode isn't available for function return value.
14846 (ix86_function_arg_advance): Pass false to type_natural_mode.
14847 (ix86_function_arg): Likewise.
14848 (ix86_gimplify_va_arg): Likewise.
14849 (function_arg_32): Don't warn ABI change.
14850 (ix86_function_value): Pass true to type_natural_mode.
14851 (ix86_return_in_memory): Likewise.
14852 (ix86_struct_value_rtx): Removed.
14853 (TARGET_STRUCT_VALUE_RTX): Likewise.
14854
14855 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14856
14857 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
14858 converting a conditional jump into a conditional return.
14859
14860 2014-01-14 Richard Biener <rguenther@suse.de>
14861
14862 PR tree-optimization/58921
14863 PR tree-optimization/59006
14864 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
14865 hoisting invariant stmts.
14866 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
14867 invariant loads on the preheader edge if possible.
14868
14869 2014-01-14 Joey Ye <joey.ye@arm.com>
14870
14871 * doc/plugin.texi (Building GCC plugins): Update to C++.
14872
14873 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
14874
14875 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
14876 (_mm_rcp28_round_ss): Ditto.
14877 (_mm_rsqrt28_round_sd): Ditto.
14878 (_mm_rsqrt28_round_ss): Ditto.
14879 (_mm_rcp28_sd): Ditto.
14880 (_mm_rcp28_ss): Ditto.
14881 (_mm_rsqrt28_sd): Ditto.
14882 (_mm_rsqrt28_ss): Ditto.
14883 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
14884 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
14885 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
14886 (IX86_BUILTIN_RCP28SD): Ditto.
14887 (IX86_BUILTIN_RCP28SS): Ditto.
14888 (IX86_BUILTIN_RSQRT28SD): Ditto.
14889 (IX86_BUILTIN_RSQRT28SS): Ditto.
14890 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
14891 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
14892 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
14893 (ix86_expand_special_args_builtin): Expand new FTYPE.
14894 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
14895 (srcp14<mode>): Make insn unary.
14896 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
14897 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
14898 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
14899 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
14900 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
14901 Fix rounding: make it SAE only.
14902 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
14903 Ditto.
14904 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
14905 Ditto.
14906 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
14907 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
14908 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
14909 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
14910 (round_saeonly_mask_scalar_operand4): Ditto.
14911 (round_saeonly_mask_scalar_op3): Ditto.
14912 (round_saeonly_mask_scalar_op4): Ditto.
14913
14914 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14915
14916 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14917 Implement -maltivec=be for vec_insert and vec_extract.
14918
14919 2014-01-10 DJ Delorie <dj@redhat.com>
14920
14921 * config/msp430/msp430.md (call_internal): Don't allow memory
14922 references with SP as the base register.
14923 (call_value_internal): Likewise.
14924 * config/msp430/constraints.md (Yc): New. For memory references
14925 that don't use SP as a base register.
14926
14927 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
14928 "an integer without a # prefix"
14929 * config/msp430/msp430.md (epilogue_helper): Use it.
14930
14931 2014-01-13 Jakub Jelinek <jakub@redhat.com>
14932
14933 PR target/59617
14934 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
14935 AVX512F gather builtins.
14936 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
14937 on gather decls with INTEGER_TYPE masktype.
14938 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
14939 directly into the builtin rather than hoisting it before loop.
14940
14941 PR tree-optimization/59387
14942 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
14943 (scev_const_prop): If folded_casts and type has undefined overflow,
14944 use force_gimple_operand instead of force_gimple_operand_gsi and
14945 for each added stmt if it is assign with
14946 arith_code_with_undefined_signed_overflow, call
14947 rewrite_to_defined_overflow.
14948 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
14949 gimple-fold.h instead.
14950 (arith_code_with_undefined_signed_overflow,
14951 rewrite_to_defined_overflow): Moved to ...
14952 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
14953 rewrite_to_defined_overflow): ... here. No longer static.
14954 Include gimplify-me.h.
14955 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
14956 rewrite_to_defined_overflow): New prototypes.
14957
14958 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14959
14960 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
14961
14962 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
14963
14964 * builtins.c (get_object_alignment_2): Minor tweak.
14965 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
14966
14967 2014-01-13 Christian Bruel <christian.bruel@st.com>
14968
14969 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
14970 optimized non constant lengths.
14971
14972 2014-01-13 Jakub Jelinek <jakub@redhat.com>
14973
14974 PR libgomp/59194
14975 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
14976 load as __atomic_load_N if possible.
14977
14978 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
14979
14980 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
14981 target parameter.
14982 (rs6000_expand_builtin): Adjust call.
14983
14984 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
14985
14986 PR target/58115
14987 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
14988 * config/rs6000/rs6000.c: Include target-globals.h.
14989 (rs6000_set_current_function): Instead of doing target_reinit
14990 unconditionally, use save_target_globals_default_opts and
14991 restore_target_globals.
14992
14993 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
14994 FPSCR.
14995 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
14996 (rs6000_expand_builtin): Handle mffs and mtfsf.
14997 (rs6000_init_builtins): Define mffs and mtfsf.
14998 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
14999 (rs6000_mffs): New pattern.
15000 (rs6000_mtfsf): New pattern.
15001
15002 2014-01-11 Bin Cheng <bin.cheng@arm.com>
15003
15004 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
15005 Start narrowing with START. Apply candidate-use pair
15006 and check overall cost in narrowing.
15007 (iv_ca_prune): Pass new argument.
15008
15009 2014-01-10 Jeff Law <law@redhat.com>
15010
15011 PR middle-end/59743
15012 * ree.c (combine_reaching_defs): Ensure the defining statement
15013 occurs before the extension when optimizing extensions with
15014 different source and destination hard registers.
15015
15016 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
15017
15018 PR ipa/58585
15019 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
15020 vtables into the type inheritance graph.
15021
15022 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15023
15024 PR rtl-optimization/59754
15025 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
15026 modes in the REGNO != REGNO case.
15027
15028 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15029
15030 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
15031
15032 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15033
15034 PR tree-optimization/59745
15035 * tree-predcom.c (tree_predictive_commoning_loop): Call
15036 free_affine_expand_cache if giving up because components is NULL.
15037
15038 * target-globals.c (save_target_globals): Allocate < 4KB structs using
15039 GC in payload of target_globals struct instead of allocating them on
15040 the heap and the larger structs separately using GC.
15041 * target-globals.h (struct target_globals): Make regs, hard_regs,
15042 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
15043 of GTY((skip)) and change type to void *.
15044 (reset_target_globals): Cast loads from those fields to corresponding
15045 types.
15046
15047 2014-01-10 Steve Ellcey <sellcey@mips.com>
15048
15049 PR plugins/59335
15050 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
15051 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
15052 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
15053
15054 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
15055
15056 PR target/59744
15057 * aarch64-modes.def (CC_Zmode): New flags mode.
15058 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
15059 represents an equality.
15060 (aarch64_get_condition_code): Handle CC_Zmode.
15061 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
15062
15063 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15064
15065 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
15066 extraction in good case.
15067
15068 2014-01-10 Richard Biener <rguenther@suse.de>
15069
15070 PR tree-optimization/59374
15071 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
15072 checking after SLP discovery. Mark stmts not participating
15073 in any SLP instance properly.
15074
15075 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15076
15077 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
15078 when handling a SET rtx.
15079
15080 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15081
15082 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
15083 (cortex-a57): Likewise.
15084 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
15085
15086 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15087
15088 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
15089 non-iwmmxt builtins.
15090
15091 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
15092
15093 PR ipa/58252
15094 PR ipa/59226
15095 * ipa-devirt.c record_target_from_binfo): Take as argument
15096 stack of binfos and lookup matching one for virtual inheritance.
15097 (possible_polymorphic_call_targets_1): Update.
15098
15099 2014-01-10 Huacai Chen <chenhc@lemote.com>
15100
15101 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
15102 kernel strings for Loongson-2E/2F/3A.
15103
15104 2014-01-10 Jakub Jelinek <jakub@redhat.com>
15105
15106 PR middle-end/59670
15107 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
15108 is_gimple_call before calling gimple_call_internal_p.
15109
15110 2014-01-09 Steve Ellcey <sellcey@mips.com>
15111
15112 * Makefile.in (TREE_FLOW_H): Remove.
15113 (TREE_SSA_H): Add file names from tree-flow.h.
15114 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
15115 * tree.h: Remove tree-flow.h reference.
15116 * hash-table.h: Remove tree-flow.h reference.
15117 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
15118 reference with tree-ssa-loop.h.
15119
15120 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15121
15122 * doc/invoke.texi: Add -maltivec={be,le} options, and document
15123 default element-order behavior for -maltivec.
15124 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
15125 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
15126 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
15127 when targeting big endian, at least for now.
15128 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
15129
15130 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15131
15132 PR middle-end/47735
15133 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
15134 var satisfies use_register_for_decl, just take into account type
15135 alignment, rather than decl alignment.
15136
15137 PR tree-optimization/59622
15138 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
15139 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
15140 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
15141 Don't devirtualize for inplace at all. For targets.length () == 1,
15142 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
15143
15144 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
15145
15146 * config/i386/i386.md (cpu): Remove the unused btver1.
15147
15148 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
15149
15150 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
15151
15152 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15153
15154 PR target/58115
15155 * tree-core.h (struct target_globals): New forward declaration.
15156 (struct tree_target_option): Add globals field.
15157 * tree.h (TREE_TARGET_GLOBALS): Define.
15158 (prepare_target_option_nodes_for_pch): New prototype.
15159 * target-globals.h (struct target_globals): Define even if
15160 !SWITCHABLE_TARGET.
15161 * tree.c (prepare_target_option_node_for_pch,
15162 prepare_target_option_nodes_for_pch): New functions.
15163 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
15164 * config/i386/i386.c: Include target-globals.h.
15165 (ix86_set_current_function): Instead of doing target_reinit
15166 unconditionally, use save_target_globals_default_opts and
15167 restore_target_globals.
15168
15169 2014-01-09 Richard Biener <rguenther@suse.de>
15170
15171 PR tree-optimization/59715
15172 * tree-cfg.h (split_critical_edges): Declare.
15173 * tree-cfg.c (split_critical_edges): Export.
15174 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
15175
15176 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
15177
15178 * cfgexpand.c (expand_stack_vars): Optionally disable
15179 asan stack protection.
15180 (expand_used_vars): Likewise.
15181 (partition_stack_vars): Likewise.
15182 * asan.c (asan_emit_stack_protection): Optionally disable
15183 after return stack usage.
15184 (instrument_derefs): Optionally disable memory access instrumentation.
15185 (instrument_builtin_call): Likewise.
15186 (instrument_strlen_call): Likewise.
15187 (asan_protect_global): Optionally disable global variables protection.
15188 * doc/invoke.texi: Added doc for new options.
15189 * params.def: Added new options.
15190 * params.h: Likewise.
15191
15192 2014-01-09 Jakub Jelinek <jakub@redhat.com>
15193
15194 PR rtl-optimization/59724
15195 * ifcvt.c (cond_exec_process_if_block): Don't call
15196 flow_find_head_matching_sequence with 0 longest_match.
15197 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
15198 non-active insns if !stop_after.
15199 (try_head_merge_bb): Revert 2014-01-07 changes.
15200
15201 2014-01-08 Jeff Law <law@redhat.com>
15202
15203 * ree.c (get_sub_rtx): New function, extracted from...
15204 (merge_def_and_ext): Here.
15205 (combine_reaching_defs): Use get_sub_rtx.
15206
15207 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
15208
15209 * cgraph.h (varpool_variable_node): Do not choke on null node.
15210
15211 2014-01-08 Catherine Moore <clm@codesourcery.com>
15212
15213 * config/mips/mips.md (simple_return): Attempt to use JRC
15214 for microMIPS.
15215 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
15216
15217 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
15218
15219 PR rtl-optimization/59137
15220 * reorg.c (steal_delay_list_from_target): Call update_block for
15221 elided insns.
15222 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
15223
15224 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15225
15226 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
15227 two duplicate entries.
15228
15229 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
15230
15231 Revert:
15232 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
15233
15234 * config/mips/mips.c (mips_truncated_op_cost): New function.
15235 (mips_rtx_costs): Adjust test for BADDU.
15236 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
15237
15238 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
15239
15240 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
15241 (*baddu_si): ...this new pattern.
15242
15243 2014-01-08 Jakub Jelinek <jakub@redhat.com>
15244
15245 PR ipa/59722
15246 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
15247
15248 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
15249
15250 PR middle-end/57748
15251 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
15252 inner_reference_p.
15253 (expand_expr, expand_normal): Adjust.
15254 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
15255 inner_reference_p. Use inner_reference_p to expand inner references.
15256 (store_expr): Adjust.
15257 * cfgexpand.c (expand_call_stmt): Adjust.
15258
15259 2014-01-08 Rong Xu <xur@google.com>
15260
15261 * gcov-io.c (gcov_var): Move from gcov-io.h.
15262 (gcov_position): Ditto.
15263 (gcov_is_error): Ditto.
15264 (gcov_rewrite): Ditto.
15265 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
15266 only part to libgcc/libgcov.h.
15267
15268 2014-01-08 Marek Polacek <polacek@redhat.com>
15269
15270 PR middle-end/59669
15271 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
15272
15273 2014-01-08 Marek Polacek <polacek@redhat.com>
15274
15275 PR sanitizer/59667
15276 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
15277
15278 2014-01-08 Jakub Jelinek <jakub@redhat.com>
15279
15280 PR rtl-optimization/59649
15281 * stor-layout.c (get_mode_bounds): For BImode return
15282 0 and STORE_FLAG_VALUE.
15283
15284 2014-01-08 Richard Biener <rguenther@suse.de>
15285
15286 PR middle-end/59630
15287 * gimple.h (is_gimple_builtin_call): Remove.
15288 (gimple_builtin_call_types_compatible_p): New.
15289 (gimple_call_builtin_p): New overload.
15290 * gimple.c (is_gimple_builtin_call): Remove.
15291 (validate_call): Rename to ...
15292 (gimple_builtin_call_types_compatible_p): ... this and export. Also
15293 check return types.
15294 (validate_type): New static function.
15295 (gimple_call_builtin_p): New overload and adjust.
15296 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
15297 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
15298 (gimple_fold_stmt_to_constant_1): Likewise.
15299 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
15300
15301 2014-01-08 Richard Biener <rguenther@suse.de>
15302
15303 PR middle-end/59471
15304 * gimplify.c (gimplify_expr): Gimplify register-register type
15305 VIEW_CONVERT_EXPRs to separate stmts.
15306
15307 2014-01-07 Jeff Law <law@redhat.com>
15308
15309 PR middle-end/53623
15310 * ree.c (combine_set_extension): Handle case where source
15311 and destination registers in an extension insn are different.
15312 (combine_reaching_defs): Allow source and destination registers
15313 in extension to be different under limited circumstances.
15314 (add_removable_extension): Remove restriction that the
15315 source and destination registers in the extension are the same.
15316 (find_and_remove_re): Emit a copy from the extension's
15317 destination to its source after the defining insn if
15318 the source and destination registers are different.
15319
15320 PR middle-end/59285
15321 * ifcvt.c (merge_if_block): If we are merging a block with more than
15322 one successor with a block with no successors, remove any BARRIER
15323 after the second block.
15324
15325 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
15326
15327 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
15328
15329 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
15330
15331 PR target/59652
15332 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
15333 for 14-bit register offsets when INT14_OK_STRICT is false.
15334
15335 2014-01-07 Roland Stigge <stigge@antcom.de>
15336 Michael Meissner <meissner@linux.vnet.ibm.com>
15337
15338 PR 57386/target
15339 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
15340 Only check TFmode for SPE constants. Don't check TImode or TDmode.
15341
15342 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15343
15344 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
15345 -mcpu.
15346
15347 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
15348
15349 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
15350 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
15351 rtx is const0_rtx or not.
15352
15353 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
15354
15355 PR target/58115
15356 * target-globals.c (save_target_globals): Remove this_fn_optab
15357 handling.
15358 * toplev.c: Include optabs.h.
15359 (target_reinit): Temporarily restore the global options if another
15360 set of options are in force.
15361
15362 2014-01-07 Jakub Jelinek <jakub@redhat.com>
15363
15364 PR rtl-optimization/58668
15365 * cfgcleanup.c (flow_find_cross_jump): Don't count
15366 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
15367 to determine what is counted.
15368 (flow_find_head_matching_sequence): Use active_insn_p to determine
15369 what is counted.
15370 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
15371 counting change.
15372 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
15373 determine what is counted.
15374
15375 PR tree-optimization/59643
15376 * tree-predcom.c (split_data_refs_to_components): If one dr is
15377 read and one write, determine_offset fails and the write isn't
15378 in the bad component, just put the read into the bad component.
15379
15380 2014-01-07 Mike Stump <mikestump@comcast.net>
15381 Jakub Jelinek <jakub@redhat.com>
15382
15383 PR pch/59436
15384 * tree-core.h (struct tree_optimization_option): Change optabs
15385 type from unsigned char * to void *.
15386 * optabs.c (init_tree_optimization_optabs): Adjust
15387 TREE_OPTIMIZATION_OPTABS initialization.
15388
15389 2014-01-06 Jakub Jelinek <jakub@redhat.com>
15390
15391 PR target/59644
15392 * config/i386/i386.h (struct machine_function): Add
15393 no_drap_save_restore field.
15394 * config/i386/i386.c (ix86_save_reg): Use
15395 !cfun->machine->no_drap_save_restore instead of
15396 crtl->stack_realign_needed.
15397 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
15398 this function clears frame_pointer_needed. Set
15399 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
15400 and DRAP reg is needed.
15401
15402 2014-01-06 Marek Polacek <polacek@redhat.com>
15403
15404 PR c/57773
15405 * doc/implement-c.texi: Mention that other integer types are
15406 permitted as bit-field types in strictly conforming mode.
15407
15408 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
15409
15410 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
15411 is newly allocated.
15412
15413 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
15414
15415 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
15416
15417 2014-01-06 Martin Jambor <mjambor@suse.cz>
15418
15419 PR ipa/59008
15420 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
15421 to int.
15422 * ipa-prop.c (ipa_print_node_params): Fix indentation.
15423
15424 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
15425
15426 PR debug/59350
15427 PR debug/59510
15428 * var-tracking.c (add_stores): Preserve the value of the source even if
15429 we don't record the store.
15430
15431 2014-01-06 Terry Guo <terry.guo@arm.com>
15432
15433 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
15434
15435 2014-01-05 Iain Sandoe <iain@codesourcery.com>
15436
15437 PR bootstrap/59541
15438 * config/darwin.c (darwin_function_section): Adjust return values to
15439 correspond to optimisation changes made in r206070.
15440
15441 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
15442
15443 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
15444 from prefetch_block tune setting.
15445 (nocona_cost): Correct size of prefetch block to 64.
15446
15447 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
15448
15449 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
15450 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
15451 used to save the static chain register in the computation of the offset
15452 from which the FP registers need to be restored.
15453
15454 2014-01-04 Jakub Jelinek <jakub@redhat.com>
15455
15456 PR tree-optimization/59519
15457 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
15458 ICE if get_current_def (current_new_name) is already non-NULL, as long
15459 as it is a phi result of some other phi in *new_exit_bb that has
15460 the same argument.
15461
15462 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
15463 or vmovdqu* for misaligned_operand.
15464 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
15465 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
15466 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
15467 aligned_mem for AVX512F masked aligned load and store builtins and for
15468 non-temporal moves.
15469
15470 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
15471
15472 PR tree-optimization/59651
15473 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
15474 Address range for negative step should be added by TYPE_SIZE_UNIT.
15475
15476 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
15477
15478 * config/m68k/m68k.c (handle_move_double): Handle pushes with
15479 overlapping registers also for registers other than the stack pointer.
15480
15481 2014-01-03 Marek Polacek <polacek@redhat.com>
15482
15483 PR other/59661
15484 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
15485 __builtin_FILE.
15486
15487 2014-01-03 Jakub Jelinek <jakub@redhat.com>
15488
15489 PR target/59625
15490 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
15491 asm goto as jump.
15492
15493 * config/i386/i386.md (MODE_SIZE): New mode attribute.
15494 (push splitter): Use <P:MODE_SIZE> instead of
15495 GET_MODE_SIZE (<P:MODE>mode).
15496 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
15497 (mov -1, reg peephole2): Likewise.
15498 * config/i386/sse.md (*mov<mode>_internal,
15499 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
15500 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
15501 *<code><mode>3, *andnot<mode>3<mask_name>,
15502 <mask_codefor><code><mode>3<mask_name>): Likewise.
15503 * config/i386/subst.md (mask_mode512bit_condition,
15504 sd_mask_mode512bit_condition): Likewise.
15505
15506 2014-01-02 Xinliang David Li <davidxl@google.com>
15507
15508 PR tree-optimization/59303
15509 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
15510 (dump_predicates): Better output format.
15511 (pred_equal_p): New function.
15512 (is_neq_relop_p): Ditto.
15513 (is_neq_zero_form_p): Ditto.
15514 (pred_expr_equal_p): Ditto.
15515 (pred_neg_p): Ditto.
15516 (simplify_pred): Ditto.
15517 (simplify_preds_2): Ditto.
15518 (simplify_preds_3): Ditto.
15519 (simplify_preds_4): Ditto.
15520 (simplify_preds): Ditto.
15521 (push_pred): Ditto.
15522 (push_to_worklist): Ditto.
15523 (get_pred_info_from_cmp): Ditto.
15524 (is_degenerated_phi): Ditto.
15525 (normalize_one_pred_1): Ditto.
15526 (normalize_one_pred): Ditto.
15527 (normalize_one_pred_chain): Ditto.
15528 (normalize_preds): Ditto.
15529 (normalize_cond_1): Remove function.
15530 (normalize_cond): Ditto.
15531 (is_gcond_subset_of): Ditto.
15532 (is_subset_of_any): Ditto.
15533 (is_or_set_subset_of): Ditto.
15534 (is_and_set_subset_of): Ditto.
15535 (is_norm_cond_subset_of): Ditto.
15536 (pred_chain_length_cmp): Ditto.
15537 (convert_control_dep_chain_into_preds): Type change.
15538 (find_predicates): Ditto.
15539 (find_def_preds): Ditto.
15540 (destroy_predicates_vecs): Ditto.
15541 (find_matching_predicates_in_rest_chains): Ditto.
15542 (use_pred_not_overlap_with_undef_path_pred): Ditto.
15543 (is_pred_expr_subset): Ditto.
15544 (is_pred_chain_subset_of): Ditto.
15545 (is_included_in): Ditto.
15546 (is_superset_of): Ditto.
15547
15548 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15549
15550 Update copyright years.
15551
15552 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15553
15554 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
15555 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
15556 config/arc/arc.md, config/arc/arc.opt,
15557 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
15558 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
15559 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
15560 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
15561 config/linux-protos.h, config/linux.c, config/winnt-c.c,
15562 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
15563 vtable-verify.c, vtable-verify.h: Use the standard form for the
15564 copyright notice.
15565
15566 2014-01-02 Tobias Burnus <burnus@net-b.de>
15567
15568 * gcc.c (process_command): Update copyright notice dates.
15569 * gcov-dump.c: Ditto.
15570 * gcov.c: Ditto.
15571 * doc/cpp.texi: Bump @copying's copyright year.
15572 * doc/cppinternals.texi: Ditto.
15573 * doc/gcc.texi: Ditto.
15574 * doc/gccint.texi: Ditto.
15575 * doc/gcov.texi: Ditto.
15576 * doc/install.texi: Ditto.
15577 * doc/invoke.texi: Ditto.
15578
15579 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15580
15581 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
15582
15583 2014-01-01 Jakub Jelinek <jakub@redhat.com>
15584
15585 * config/i386/sse.md (*mov<mode>_internal): Guard
15586 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
15587
15588 PR rtl-optimization/59647
15589 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
15590 new_rtx into UNSIGNED_FLOAT rtxes.
15591 \f
15592 Copyright (C) 2014 Free Software Foundation, Inc.
15593
15594 Copying and distribution of this file, with or without modification,
15595 are permitted in any medium without royalty provided the copyright
15596 notice and this notice are preserved.