]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
ipa-inline.c (edge_badness): Cap edge->count at max_count for badness calculations.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
0bff3610
PM
12013-10-21 Paulo Matos <pmatos@broadcom.com>
2
3 * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
4 calculations.
5
b5c4ff78
JL
62013-10-21 Jeff Law <law@redhat.com>
7
8 * tree-ssa-threadedge.c (thread_through_normal_block): New argument VISITED.
9 Remove VISISTED as a local variable. When we have a threadable jump, verify
10 the destination of the jump has not been visised.
11 (thread_across_edge): Allocate VISITED bitmap once at function scope and
12 use it throughout. Make sure to set appropriate bits in VISITED for E (start
13 of jump thread path).
14
15 * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading through
16 a joiner if any edge on the path has a recorded jump thread.
17
ce0770fc
ILT
182013-10-21 Ian Lance Taylor <iant@google.com>
19
20 * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
21 don't imply that attributes can solve all problems.
22 (Directory Options): Fix typo.
23
0e7504c8
KT
242013-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25
26 * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
27 extend and extend_add.
28
2445aeac
RB
292013-10-21 Richard Biener <rguenther@suse.de>
30
31 PR tree-optimization/58794
32 * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
33 of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
34
d480e6a5
RB
352013-10-21 Richard Biener <rguenther@suse.de>
36
37 PR middle-end/58742
38 * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
39 to (T) X for sign-changing conversions (or no conversion).
40
54f9aba0
UB
412013-10-20 Uros Bizjak <ubizjak@gmail.com>
42
43 * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
44
d6c6ba3c
JH
452013-10-20 Jan Hubicka <jh@suse.cz>
46
47 * config/i386/i386-tune.def: Add comment; organize into categories
48
d606b917
MZ
492013-10-21 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
50
51 * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
52 argument. Update function comment.
53 (expand_set_or_movmem_via_rep): New function combining
54 expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
55 (expand_movmem_via_rep_mov): Remove.
56 expand_setmem_via_rep_stos): Remove.
57 (expand_movmem_epilogue): Update calls correspondingly.
58 (expand_setmem_epilogue_via_loop): Likewise.
59 (emit_memset): New.
60 (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
61 (expand_set_or_movmem_prologue): New function combining
62 expand_movmem_prologue and expand_setmem_prologue.
63 (expand_movmem_prologue): Remove.
64 (expand_setmem_prologue): Remove.
65 (expand_set_or_movmem_constant_prologue): New function combining
66 expand_constant_movmem_prologue and expand_constant_setmem_prologue.
67 (expand_constant_movmem_prologue): Remove.
68 (expand_constant_setmem_prologue): Remove.
69 (promote_duplicated_reg): Allow vector-const0 value.
70 (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
71 and ix86_expand_setmem.
72 (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
73 (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
74
dd346f1f
BS
752013-10-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
76
77 * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
78 little endian.
79 (vec_unpacku_hi_v8hi): Likewise.
80 (vec_unpacku_lo_v16qi): Likewise.
81 (vec_unpacku_lo_v8hi): Likewise.
82
915e8e6e
JH
832013-10-20 Jan Hubicka <jh@suse.cz>
84
85 * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
86 X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
87 (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
88
0f37323c
RS
892013-10-20 Richard Sandiford <rdsandiford@googlemail.com>
90
91 * config/mips/mips.h (ISA_HAS_WSBH): Define.
92 * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
93 constants.
94 (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
95
84935d25
JDA
962013-10-19 John David Anglin <danglin@gcc.gnu.org>
97
98 PR target/58603
99 * system.h: Undef m_slot.
100
d7d1451a
BS
1012013-10-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
102
103 * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
104 all elements for both endian flavors.
105
6eb793dd
UB
1062013-10-19 Uros Bizjak <ubizjak@gmail.com>
107
108 PR target/58792
109 * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
110 ST1_REG and XMM1_REG for 32bit and 64bit targets. Also add DI_REG
111 and SI_REG for 64bit SYSV ABI targets.
112
c07757e5
UB
1132013-10-19 Uros Bizjak <ubizjak@gmail.com>
114
115 * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
116 to multi_reg_return. Clarify that we are skipping USEs of multiple
117 return registers. Use bool type where appropriate.
118
41ee845b
JH
1192013-10-18 Jan Hubicka <jh@suse.cz>
120
121 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
122 for cold functions.
123 * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
124 (X86_TUNE_PUSH_MEMORY): Likewise.
125 (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
126 X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
c07757e5
UB
127 (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
128 New.
41ee845b
JH
129 * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
130 x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
131 Remove.
132 (ix86_option_override_internal): Update to use tune features instead
133 of variables.
134
6f978a2a
CH
1352013-10-18 Cong Hou <congh@google.com>
136
137 PR tree-optimization/58508
138 * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
139 statement that contains data refs with zero-step.
140
4484a35a
AM
1412013-10-18 Andrew MacLeod <amacleod@redhat.com>
142
c07757e5
UB
143 * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
144 sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
4484a35a
AM
145 * gimple-low.c (gimple_check_call_arg,
146 gimple_check_call_matching_types): Move to cgraph.c.
147 * gimple-low.h: Remove prototype.
148 * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
149 Relocate from gimple-low.c.
150 * cgraph.h: Add prototype. Don't include basic-block.h.
151 * gimplify.c: Add gimple-low to include list.
152 * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
153 * tree-eh.c: Add gimple-low to include list.
154 * tree-nested.c: Likewise.
155 * cfgexpand.c: Add tree-ssa-address.h to include list.
156 * expr.c: Likewise.
157 * gimple-fold.c: Likewise.
158 * gimple-ssa-strength-reduction.c: Likewise.
159 * trans-mem.c: Likewise.
160 * tree-mudflap.c: Likewise.
161 * tree-ssa-loop-ivopts.c: Likewise.
162 * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
163 (degenerate_phi_result): Move to tree-phinodes.c.
164 * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
165 * tree-ssa-threadedge.c: Likewise.
166 * tree-vrp.c: Likewise.
167 * tree-phinodes.c (degenerate_phi_result): Relocate here.
168 * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
169 * tree-phinodes.h (degenerate_phi_result): Add prototype.
170 * tree-ssa-copy.c: Include tree-ssa-dom.h.
171 * tree-ssa-forwprop.c: Likewise.
172 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
173 pass_data_cleanup_cfg_post_optimizing,
174 make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
175 * tree-optimize.c: Delete File.
176 * graphite.c: Include tree-cfgcleanup.h.
177 * passes.c: Likewise.
178 * tree-cfg.c: Likewise.
179 * tree-profile.c: Likewise.
180 * tree-ssa-dse.c: Likewise.
181 * tree-ssa-loop-ivcanon.c: Likewise.
182 * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
183 * tree-outof-ssa.c: Include sbitmap.h.
184 * tree-ssa-live.c: Likewise.
185 * tree-ssa-propagate.c: Likewise.
186 * tree-ssa-structalias.c: Likewise.
187 * tree-stdarg.c: Likewise.
188 * Makefile.in (OBJS): Delete tree-optimize.o.
189 * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
190 * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
191 * varasm.c: Include basic-block.h.
192 * cfgloop.h: Include function.h instead of basic-block.h
193 (bb_loop_depth): Move to cfgloop.c.
194 * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
195
bfaa17c1
TJ
1962013-10-18 Teresa Johnson <tejohnson@google.com>
197
198 * predict.c (probably_never_executed): Compare frequency-based
199 count to number of training runs.
200 * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
201
f58883bd
KT
2022013-10-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
203
204 * config/arm/arm.c (cortexa9_extra_costs): New table.
205 (arm_cortex_a9_tune): Use cortexa9_extra_costs.
206
01e127b1
JL
2072013-10-18 Jeff Law <law@redhat.com>
208
209 * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
210
211 * tree-ssa-threadupdate.c: Include "dbgcnt.h".
c07757e5
UB
212 (register_jump_thread): Add "registered_jump_thread" debug
213 counter support.
01e127b1
JL
214 * dbgcnt.def (registered_jump_thread): New debug counter.
215
f41b8848
AM
2162013-10-18 Andrew MacLeod <amacleod@redhat.com>
217
218 * config/rs6000/rs6000.c: Include cgraph.h.
219
adc7a812
TJ
2202013-10-18 Teresa Johnson <tejohnson@google.com>
221
222 * tree-ssa-tail-merge.c (replace_block_by): Update edge
223 weights during merging.
224
377d9792
AM
2252013-10-18 Andrew MacLeod <amacleod@redhat.com>
226
227 * tree-cfg.h: Rename from tree-flow.h. Remove #includes.
228 * tree-ssa.h: Relocate required #includes from tree-cfg.h.
229 * tree-ssa-operands.h: Remove prototype.
230 * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
231 * gimple.c (virtual_operand_p): Relocate from gimple.c.
232 * gimple.h: Add prototype.
233 * gimple-ssa.h: Include tree-ssa-operands.h.
234 * tree-dump.c: Add tree-cfg.h to include list.
235 * tree-ssa-alias.c: Add ipa-reference.h to include list.
236 * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
237 * config/i386/i386.c: Don't include tree-flow.h.
238 * config/rs6000/rs6000.c: Likewise.
239
8ad8afaf
JBG
2402013-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
241
242 * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
243
c0e081a9
RB
2442013-10-18 Richard Biener <rguenther@suse.de>
245
246 * stor-layout.c (layout_type): Do not change TYPE_PRECISION
247 or TYPE_UNSIGNED of integral types.
248 (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
249 NULL_TREE for zero-precision integral types.
250
054fceb5
JG
2512013-10-18 James Greenhalgh <james.greenhalgh@arm.com>
252
253 * config/aarch64/arm_neon.h
254 (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
255
70e8b89b
ST
2562013-10-17 Sriraman Tallam <tmsriram@google.com>
257
258 * opth-gen.awk: Define target_flags_explicit.
259
3170766c 2602013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
5845f602
MM
261
262 * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
263 fields to the reg_addr array that describes the valid addressing
264 mode for any register, general purpose registers, floating point
265 registers, and Altivec registers.
266 (FIRST_RELOAD_REG_CLASS): Likewise.
267 (LAST_RELOAD_REG_CLASS): Likewise.
268 (struct reload_reg_map_type): Likewise.
269 (reload_reg_map_type): Likewise.
270 (RELOAD_REG_VALID): Likewise.
271 (RELOAD_REG_MULTIPLE): Likewise.
272 (RELOAD_REG_INDEXED): Likewise.
273 (RELOAD_REG_OFFSET): Likewise.
274 (RELOAD_REG_PRE_INCDEC): Likewise.
275 (RELOAD_REG_PRE_MODIFY): Likewise.
276 (reg_addr): Likewise.
277 (mode_supports_pre_incdec_p): New helper functions to say whether
278 a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
279 (mode_supports_pre_modify_p): Likewise.
280 (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
281 print the valid address mode bits for each mode.
282 (rs6000_debug_print_mode): Likewise.
283 (rs6000_debug_reg_global): Likewise.
284 (rs6000_setup_reg_addr_masks): New function to set up the address
285 mask bits for each type.
286 (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
287 Call rs6000_setup_reg_addr_masks to set up the address mask bits.
288 (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
289 mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
290 PRE_MODIFY are supported.
3170766c
MM
291 (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
292 registers, instead of {src,dest}_av_p.
5845f602
MM
293 (rs6000_print_options_internal): Tweak the debug output slightly.
294
82e33890
UB
2952013-10-17 Uros Bizjak <ubizjak@gmail.com>
296
297 * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
298 isa attribute.
299
0645c1a2
AM
3002013-10-17 Andrew MacLeod <amacleod@redhat.com>
301
302 * tree-flow.h (struct omp_region): Move to omp-low.c.
303 Remove omp_ prototypes and variables.
304 * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
305 (copy_var_decl): Relocate prototype from tree-flow.h.
306 * gimple.c (copy_var_decl): Relocate from omp-low.c.
307 * tree.h: Move prototype to omp-low.h.
308 * omp-low.h: New File. Relocate prototypes here.
309 * omp-low.c (struct omp_region): Make local here.
310 (root_omp_region): Make static.
311 (copy_var_decl) Move to gimple.c.
312 (new_omp_region): Make static.
313 (make_gimple_omp_edges): New. Refactored from tree-cfg.c make_edges.
314 * tree-cfg.c: Include omp-low.h.
315 (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
316 * gimplify.c: Include omp-low.h.
317 * tree-parloops.c: Likewise.
318
6f1abb55
UB
3192013-10-17 Uros Bizjak <ubizjak@gmail.com>
320
321 * config/i386/i386.c (ix86_fixup_binary_operands): When both source
322 operands are in memory, prefer to force non-matched operand 1 to
323 the register.
324
1ddbbbc0
MM
3252013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
326
327 PR target/58673
328 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
329 restrict TImode addresses to single indirect registers if both
330 -mquad-memory and -mvsx-timode are used.
331 (rs6000_output_move_128bit): Use quad_load_store_p to determine if
332 we should emit load/store quad. Remove using %y for quad memory
333 addresses.
334
335 * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
336 constraints to allow load/store quad on machines where TImode is
337 not allowed in VSX registers. Use 'n' instead of 'F' constraint
338 for TImode to load integer constants.
339
f541a481
KT
3402013-10-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
341
342 * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
343
51bb310d
MS
3442013-10-17 Marcus Shawcroft <marcus.shawcroft@arm.com>
345
346 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
347 handling of STACK_REG.
348
f4bed77b
RB
3492013-10-17 Richard Biener <rguenther@suse.de>
350
351 PR tree-optimization/58143
352 * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
353 New function.
354 (rewrite_to_defined_overflow): Likewise.
355 (move_computations_dom_walker::before_dom): Rewrite stmts
356 with undefined signed overflow that are not always executed
357 into unsigned arithmetic.
358
d358fb9d
MM
3592013-10-16 Michael Meissner <meissner@linux.vnet.ibm.com>
360
361 PR target/57756
362 * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
363 explicit isa flag to be an options variable, instead of using
364 global_options_set. Remove define from rs6000.h.
365 * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
366
367 * config/rs6000/rs6000.c (rs6000_option_override_internal):
368 Initialize rs6000_isa_flags_explicit.
369 (rs6000_function_specific_save): Add gcc_options* parameter, so
370 that the powerpc builds after the 2013-10-15 changes.
371 (rs6000_function_specific_restore): Likewise.
372
c71aed47
DD
3732013-10-16 DJ Delorie <dj@redhat.com>
374
375 * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
376 op is a REG before checking REGNO.
377 (rl78_alloc_physical_registers): Verify pattern is a SET before
378 checking SET_SRC.
379
90d3bd51
BS
3802013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
381
382 * gcc/config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
383 endianness.
384 (vec_unpacks_lo_v4sf): Likewise.
385 (vec_unpacks_float_hi_v4si): Likewise.
386 (vec_unpacks_float_lo_v4si): Likewise.
387 (vec_unpacku_float_hi_v4si): Likewise.
388 (vec_unpacku_float_lo_v4si): Likewise.
389
de75c876
BS
3902013-10-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
391
392 * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
393 (vsx_concat_v2sf): Likewise.
394
21216998
JG
3952013-10-16 James Greenhalgh <james.greenhalgh@arm.com>
396
397 * config/aarch64/aarch64.md
398 (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
399
1ef88893 4002013-10-16 Andrew MacLeod <amacleod@redhat.com>
7ab4168e 401
1ef88893 402 PR tree-optimization/58697
7ab4168e 403 * cfgloop.c (get_estimated_loop_iterations_int): Rename from
1ef88893
AM
404 estimated_loop_iterations_int.
405 (max_stmt_executions_int): Call get_max_loop_iterations_int.
7ab4168e 406 (get_max_loop_iterations_int): New. HWINT version of
1ef88893
AM
407 get_max_loop_iterations.
408 * cfgloop.h: Add prototypes.
409 * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
7ab4168e 410 * loop-unroll.c (decide_peel_once_rolling): Call
1ef88893
AM
411 get_estimated_loop_iterations_int.
412 * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
413 * tree-ssa-loop-niter.h: Tweak prototypes.
414
c22df64f
DM
4152013-10-16 David Malcolm <dmalcolm@redhat.com>
416
417 * gengtype-parse.c (struct_field_seq): Ignore access-control
418 keywords ("public:" etc).
419
f24bb080
MS
4202013-10-16 Marcus Shawcroft <marcus.shawcroft@arm.com>
421
422 * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
423 FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
424
c281bf26
YR
4252013-10-16 Yvan Roux <yvan.roux@linaro.org>
426
427 * config/arm/arm.opt (mlra): New option.
428 * config/arm/arm.c (arm_lra_p): New function.
429 (TARGET_LRA_P): Define.
430
5806f481
PM
4312013-10-16 Paulo Matos <pmatos@broadcom.com>
432
433 * tree-core.h (tree_code_name): Remove.
434 * tree.h (get_tree_code_name): New prototype.
435 * tree.c (tree_code_name): Make static.
436 (get_tree_code_name): New function.
437 (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
438 tree_class_check_failed, tree_range_check_failed,
439 tree_not_class_check_failed, omp_clause_check_failed,
440 tree_contains_struct_check_failed, tree_operand_check_failed): Use new
441 wrapper get_tree_code_name instead of calling tree_code_name directly.
442 * tree-vrp.c (dump_asserts_for): Likewise.
443 * tree-dump.c (dequeue_and_dump): Likewise.
444 * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
445 * tree-pretty-print.h (pp_unsupported_tree): Likewise.
446 * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
447 * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
448 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
449 dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
450 dump_gimple_omp_for): Likewise.
451 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
452 * tree-ssa-pre.c (print_pre_expr): Likewise.
453 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
454 * print-tree.c (print_node_brief, print_node): Likewise.
455 * gimple.c (gimple_check_failed): Likewise.
456 * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
457 * config/frv/frv.c (frv_init_cumulative_args): Likewise.
458 * config/mep/mep.c (mep_validate_vliw): Likewise.
459 * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
460 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
461
82c9df56
GG
4622013-10-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
463
464 * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
465 for AMD bdver3.
466
b82d0df9
HPN
4672013-10-16 Hans-Peter Nilsson <hp@axis.com>
468
469 * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
470 (MULTILIB_MATCHES): Add multilib for -march=v8.
471
bf7b5747
ST
4722013-10-15 Sriraman Tallam <tmsriram@google.com>
473
474 PR target/57756
475 * optc-save-gen.awk: Add extra parameter to the save and restore
476 target calls.
477 * opth-gen.awk: Generate new TARGET_* macros to accept a parameter.
478 * tree.c (build_optimization_node): New parameter. Add extra parameter
479 to call to cl_optimization_save.
480 (build_target_option_node): New parameter. Add extra parameter
481 to call to cl_target_option_save.
482 * tree.h (build_optimization_node): New parameter.
483 (build_target_option_node): New parameter.
484 * c-family/c-common.c (handle_optimize_attribute): Fix calls to
485 build_optimization_node and build_target_option_node.
486 * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
487 (handle_pragma_push_options): Ditto.
488 * toplev.c (process_options): Ditto.
489 * opts.c (init_options_struct): Check for opts_set non-null.
490 * target.def (target_option.save): New parameter.
491 (target_option.restore): New parameter.
492 * tm.texi: Generate.
493 * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
494 (ix86_pragma_target_parse): Ditto.
495 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
496 parameters.
497 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
498 to build_optimization_node and build_target_option_node.
499 (rs6000_valid_attribute_p): Ditto.
500 (rs6000_pragma_target_parse): Ditto.
501 * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
502 data.
503 * config/i386/i386.h:
504 TARGET_64BIT_P: New Macro
505 TARGET_MMX_P: New Macro.
506 TARGET_3DNOW_P: New Macro.
507 TARGET_3DNOW_A_P: New Macro.
508 TARGET_SSE_P: New Macro.
509 TARGET_SSE2_P: New Macro.
510 TARGET_SSE3_P: New Macro.
511 TARGET_SSSE3_P: New Macro.
512 TARGET_SSE4_1_P: New Macro.
513 TARGET_SSE4_2_P: New Macro.
514 TARGET_AVX_P: New Macro.
515 TARGET_AVX2_P: New Macro.
516 TARGET_AVX512F_P: New Macro.
517 TARGET_AVX512PF_P: New Macro.
518 TARGET_AVX512ER_P: New Macro.
519 TARGET_AVX512CD_P: New Macro.
520 TARGET_FMA_P: New Macro.
521 TARGET_SSE4A_P: New Macro.
522 TARGET_FMA4_P: New Macro.
523 TARGET_XOP_P: New Macro.
524 TARGET_LWP_P: New Macro.
525 TARGET_ABM_P: New Macro.
526 TARGET_BMI_P: New Macro.
527 TARGET_BMI2_P: New Macro.
528 TARGET_LZCNT_P: New Macro.
529 TARGET_TBM_P: New Macro.
530 TARGET_POPCNT_P: New Macro.
531 TARGET_SAHF_P: New Macro.
532 TARGET_MOVBE_P: New Macro.
533 TARGET_CRC32_P: New Macro.
534 TARGET_AES_P: New Macro.
535 TARGET_PCLMUL_P: New Macro.
536 TARGET_CMPXCHG16B_P: New Macro.
537 TARGET_FSGSBASE_P: New Macro.
538 TARGET_RDRND_P: New Macro.
539 TARGET_F16C_P: New Macro.
540 TARGET_RTM_P: New Macro.
541 TARGET_HLE_P: New Macro.
542 TARGET_RDSEED_P: New Macro.
543 TARGET_PRFCHW_P: New Macro.
544 TARGET_ADX_P: New Macro.
545 TARGET_FXSR_P: New Macro.
546 TARGET_XSAVE_P: New Macro.
547 TARGET_XSAVEOPT_P: New Macro.
548 TARGET_LP64_P: New Macro.
549 TARGET_X32_P: New Macro.
550 TARGET_FPMATH_DEFAULT_P: New Macro.
551 TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
552 * config/i386/i386.c (ix86_option_override_internal): New parameters.
553 opts and opts_set.
554 Change ix86_tune_string to access opts->x_ix86_tune_string.
555 Change ix86_isa_flags to access opts->x_ix86_isa_flags.
556 Change ix86_arch_string to access opts->x_ix86_arch_string.
557 Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
558 Change ix86_pmode to access opts->x_ix86_pmode.
559 Change ix86_abi to access opts->x_ix86_abi.
560 Change ix86_cmodel to access opts->x_ix86_cmodel.
561 Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
562 Change ix86_isa_flags_explicit to access
563 opts->x_ix86_isa_flags_explicit.
564 Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
565 Change ix86_regparm to access opts->x_ix86_regparm.
566 Change ix86_branch_cost to access opts->x_ix86_branch_cost.
567 Change ix86_preferred_stack_boundary_arg to access
568 opts->x_ix86_preferred_stack_boundary_arg.
569 Change ix86_force_align_arg_pointer to access
570 opts->x_ix86_force_align_arg_pointer.
571 Change ix86_incoming_stack_boundar_arg to access
572 opts->x_ix86_incoming_stack_boundar_arg.
573 Change ix86_fpmath to access opts->x_ix86_fpmath.
574 Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
575 Change ix86_recip_name to access opts->x_ix86_recip_name.
576 Change ix86_stack_protector_guard to access
577 opts->x_ix86_stack_protector_guard.
578 Change ix86_tune_memcpy_strategy to access
579 opts->x_ix86_tune_memcpy_strategy.
580 Change ix86_tune_memset_strategy to access
581 opts->x_ix86_tune_memset_strategy.
582 Change global_options to access opts.
583 Change global_options_set to access opts_set.
6f1abb55
UB
584 Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
585 Change TARGET_MMX to TARGET_MMX_P (opts->...).
586 Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
587 Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
588 Change TARGET_SSE to TARGET_SSE_P (opts->...).
589 Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
590 Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
591 Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
592 Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
593 Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
594 Change TARGET_AVX to TARGET_AVX_P (opts->...).
595 Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
596 Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
597 Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
598 Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
599 Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
600 Change TARGET_FMA to TARGET_FMA_P (opts->...).
601 Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
602 Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
603 Change TARGET_XOP to TARGET_XOP_P (opts->...).
604 Change TARGET_LWP to TARGET_LWP_P (opts->...).
605 Change TARGET_ABM to TARGET_ABM_P (opts->...).
606 Change TARGET_BMI to TARGET_BMI_P (opts->...).
607 Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
608 Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
609 Change TARGET_TBM to TARGET_TBM_P (opts->...).
610 Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
611 Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
612 Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
613 Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
614 Change TARGET_AES to TARGET_AES_P (opts->...).
615 Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
616 Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
617 Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
618 Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
619 Change TARGET_F16C to TARGET_F16C_P (opts->...).
620 Change TARGET_RTM to TARGET_RTM_P (opts->...).
621 Change TARGET_HLE to TARGET_HLE_P (opts->...).
622 Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
623 Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
624 Change TARGET_ADX to TARGET_ADX_P (opts->...).
625 Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
626 Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
627 Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
628 Change TARGET_LP64 to TARGET_LP64_P (opts->...).
629 Change TARGET_X32 to TARGET_X32_P (opts->...).
630 Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
631 Change TARGET_FLOAT_RETURNS_IN_80387 to
632 TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
bf7b5747
ST
633 (ix86_function_specific_save): New parameter. Use opts-> fields
634 to replace global fields.
635 (ix86_function_specific_restore): Ditto.
636 (ix86_valid_target_attribute_inner_p): New parameters.
637 Fix recursive call.
638 Fix call to ix86_handle_option and set_option.
639 (ix86_valid_target_attribute_tree): New parameters.
640 Change global_options to access opts.
641 Change global_options_set to access opts_set.
642 Fix call to ix86_valid_target_attribute_inner_p.
643 Change ix86_tune_string to access opts->x_ix86_tune_string.
644 Change ix86_arch_string to access opts->x_ix86_arch_string.
645 Change ix86_fpmath to access opts->x_ix86_fpmath
646 Fix call to ix86_option_override_internal.
647 Fix call to ix86_add_new_builtins.
648 Fix calls to build_optimization_node and build_target_option_node.
649 (ix86_valid_target_attribute_p): Remove access to global_options.
650 Use new gcc_options structure func_options.
651 Fix call to ix86_valid_target_attribute_tree.
652 Fix call to build_optimization_node.
653 (get_builtin_code_for_version): Fix call to
654 ix86_valid_target_attribute_tree.
655
459260ec
DM
6562013-10-15 David Malcolm <dmalcolm@redhat.com>
657
658 * Makefile.in (PICFLAG): New.
659 (enable_host_shared): New.
660 (INTERNAL_CFLAGS): Use PICFLAG.
661 (LIBIBERTY): Use pic build of libiberty.a if configured with
662 --enable-host-shared.
663 * configure.ac: Add --enable-host-shared, setting up new
664 PICFLAG variable.
665 * configure: Regenerate.
6f1abb55 666 * doc/install.texi (--enable-shared): Add note contrasting it with ...
459260ec
DM
667 (--enable-host-shared): New option.
668
16022041
RS
6692013-10-15 Richard Biener <rguenther@suse.de>
670
671 * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
672 for built-in functions.
673
b114bfb4
ZC
6742013-10-15 Zhenqiang Chen <zhenqiang.chen@arm.com>
675
676 * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
677 (optimize_range_tests_1): New function,
678 extracted from optimize_range_tests.
679 (optimize_range_tests_xor): Similarly.
680 (optimize_range_tests_diff): New function.
681 (optimize_range_tests): Use optimize_range_tests_1.
682
69b8f2f9
CH
6832013-10-15 Cong Hou <congh@google.com>
684
7ab4168e
MS
685 * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
686 requirement of the reduction pattern so that one operand of the
69b8f2f9
CH
687 reduction operation can come from outside of the loop.
688
8ff5a4e4
JG
6892013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
690
691 * config/arm/neon-schedgen.ml: Remove.
692 * config/arm/cortex-a9-neon.md: Remove comment regarding
693 neon-schedgen.ml.
694
52b69ad2
JG
6952013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
696
697 * config/arm/types: Remove old neon types.
698
e7c6a556
JG
6992013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
700
701 * config/arm/cortex-a7.md
702 (cortex_a7_neon_type): New.
703 (cortex_a7_neon_mul): Update for new types.
704 (cortex_a7_neon_mla): Likewise.
705 (cortex_a7_neon): Likewise.
706
795dd8d5
JG
7072013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
708
709 * config/arm/cortex-a15-neon.md
710 (cortex_a15_neon_type): New,
711
712 (cortex_a15_neon_int_1): Remove.
713 (cortex_a15_neon_int_2): Likewise.
714 (cortex_a15_neon_int_3): Likewise.
715 (cortex_a15_neon_int_4): Likewise.
716 (cortex_a15_neon_int_5): Likewise.
717 (cortex_a15_neon_vqneg_vqabs): Likewise.
718 (cortex_a15_neon_vmov): Likewise.
719 (cortex_a15_neon_vaba): Likewise.
720 (cortex_a15_neon_vaba_qqq): Likewise.
721 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
722 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
723 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
724 Likewise.
725 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
726 (cortex_a15_neon_mla_qqq_8_16): Likewise.
727 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
728 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
729 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
730 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
731 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
732 (cortex_a15_neon_shift_1): Likewise.
733 (cortex_a15_neon_shift_2): Likewise.
734 (cortex_a15_neon_shift_3): Likewise.
735 (cortex_a15_neon_vshl_ddd): Likewise.
736 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
737 (cortex_a15_neon_vsra_vrsra): Likewise.
738 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
739 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
740 (cortex_a15_neon_bp_3cycle): Likewise.
741 (cortex_a15_neon_ldm_2): Likewise.
742 (cortex_a15_neon_stm_2): Likewise.
743 (cortex_a15_neon_mcr): Likewise.
744 (cortex_a15_neon_mrc): Likewise.
745 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
746 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
747 (cortex_a15_neon_fp_vmul_ddd): Likewise.
748 (cortex_a15_neon_fp_vmul_qqd): Likewise.
749 (cortex_a15_neon_fp_vmla_ddd): Likewise.
750 (cortex_a15_neon_fp_vmla_qqq): Likewise.
751 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
752 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
753 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
754 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
755 (cortex_a15_neon_bp_simple): Likewise.
756 (cortex_a15_neon_bp_2cycle): Likewise.
757 (cortex_a15_neon_bp_3cycle): Likewise.
758 (cortex_a15_neon_vld1_1_2_regs): Likewise.
759 (cortex_a15_neon_vld1_3_4_regs): Likewise.
760 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
761 (cortex_a15_neon_vld2_4_regs): Likewise.
762 (cortex_a15_neon_vld3_vld4): Likewise.
763 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
764 (cortex_a15_neon_vst1_3_4_regs): Likewise.
765 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
766 (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
767 (cortex_a15_neon_vst3_vst4): Rename to...
768 (cortex_a15_neon_vst4): This, update for new attributes.
769 (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
770 (cortex_a15_neon_vld3_vld4_lane): Likewise.
771 (cortex_a15_neon_vst1_vst2_lane): Likewise.
772 (cortex_a15_neon_vst3_vst4_lane): Likewise.
773 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
774 (cortex_a15_neon_ldm_2): Likewise.
775 (cortex_a15_neon_stm_2): Likewise.
776 (cortex_a15_neon_mcr): Likewise.
777 (cortex_a15_neon_mcr_2_mcrr): Likewise.
778 (cortex_a15_neon_mrc): Likewise.
779 (cortex_a15_neon_mrrc): Likewise.
780
781 (cortex_a15_neon_abd): New.
782 (cortex_a15_neon_abd_q): Likewise.
783 (cortex_a15_neon_aba): Likewise.
784 (cortex_a15_neon_aba_q): Likewise.
785 (cortex_a15_neon_acc): Likewise.
786 (cortex_a15_neon_acc_q): Likewise.
787 (cortex_a15_neon_arith_basic): Likewise.
788 (cortex_a15_neon_arith_complex): Likewise.
789 (cortex_a15_neon_multiply): Likewise.
790 (cortex_a15_neon_multiply_q): Likewise.
791 (cortex_a15_neon_mla): Likewise.
792 (cortex_a15_neon_mla_q): Likewise.
793 (cortex_a15_neon_sat_mla_long): Likewise.
794 (cortex_a15_neon_shift_acc): Likewise.
795 (cortex_a15_neon_shift_imm_basic): Likewise.
796 (cortex_a15_neon_shift_imm_complex): Likewise.
797 (cortex_a15_neon_shift_reg_basic): Likewise.
798 (cortex_a15_neon_shift_reg_basic_q): Likewise.
799 (cortex_a15_neon_shift_reg_complex): Likewise.
800 (cortex_a15_neon_shift_reg_complex_q): Likewise.
801 (cortex_a15_neon_fp_negabs): Likewise
802 (cortex_a15_neon_fp_arith): Likewise
803 (cortex_a15_neon_fp_arith_q): Likewise
804 (cortex_a15_neon_fp_cvt_int): Likewise
805 (cortex_a15_neon_fp_cvt_int_q): Likewise
806 (cortex_a15_neon_fp_cvt_16): Likewise
807 (cortex_a15_neon_fp_mul): Likewise
808 (cortex_a15_neon_fp_mul_q): Likewise
809 (cortex_a15_neon_fp_mla): Likewise
810 (cortex_a15_neon_fp_mla_q): Likewise
811 (cortex_a15_neon_fp_recps_rsqrte): Likewise.
812 (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
813 (cortex_a15_neon_bitops): Likewise.
814 (cortex_a15_neon_bitops_q): Likewise.
815 (cortex_a15_neon_from_gp): Likewise.
816 (cortex_a15_neon_from_gp_q): Likewise.
817 (cortex_a15_neon_tbl3_tbl4): Likewise.
818 (cortex_a15_neon_zip_q): Likewise.
819 (cortex_a15_neon_to_gp): Likewise.
820 (cortex_a15_neon_load_a): Likewise.
821 (cortex_a15_neon_load_b): Likewise.
822 (cortex_a15_neon_load_c): Likewise.
823 (cortex_a15_neon_load_d): Likewise.
824 (cortex_a15_neon_load_e): Likewise.
825 (cortex_a15_neon_load_f): Likewise.
826 (cortex_a15_neon_store_a): Likewise.
827 (cortex_a15_neon_store_b): Likewise.
828 (cortex_a15_neon_store_c): Likewise.
829 (cortex_a15_neon_store_d): Likewise.
830 (cortex_a15_neon_store_e): Likewise.
831 (cortex_a15_neon_store_f): Likewise.
832 (cortex_a15_neon_store_g): Likewise.
833 (cortex_a15_neon_store_h): Likewise.
834 (cortex_a15_vfp_to_from_gp): Likewise.
835
bc5e57e3
JG
8362013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
837
838 * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
839
840 (cortex_a9_neon_vshl_ddd): Remove.
841 (cortex_a9_neon_vst3_vst4): Likewise.
842 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
843
844 (cortex_a9_neon_bit_ops_q): New.
845
846 (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
847 (cortex_a9_neon_int_2): Likewise.
848 (cortex_a9_neon_int_3): Likewise.
849 (cortex_a9_neon_int_4): Likewise.
850 (cortex_a9_neon_int_5): Likewise.
851 (cortex_a9_neon_vqneg_vqabs): Likewise.
852 (cortex_a9_neon_vmov): Likewise.
853 (cortex_a9_neon_vaba): Likewise.
854 (cortex_a9_neon_vaba_qqq): Likewise.
855 (cortex_a9_neon_shift_1): Likewise.
856 (cortex_a9_neon_shift_2): Likewise.
857 (cortex_a9_neon_shift_3): Likewise.
858 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
859 (cortex_a9_neon_vsra_vrsra): Likewise.
860 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
861 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
862 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
863 Likewise.
864 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
865 (cortex_a9_neon_mla_qqq_8_16): Likewise.
866 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
867 Likewise.
868 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
869 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
870 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
871 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
872 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
873 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
874 (cortex_a9_neon_fp_vsum): Likewise.
875 (cortex_a9_neon_fp_vmul_ddd): Likewise.
876 (cortex_a9_neon_fp_vmul_qqd): Likewise.
877 (cortex_a9_neon_fp_vmla_ddd): Likewise.
878 (cortex_a9_neon_fp_vmla_qqq): Likewise.
879 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
880 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
881 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
882 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
883 (cortex_a9_neon_bp_simple): Likewise.
884 (cortex_a9_neon_bp_2cycle): Likewise.
885 (cortex_a9_neon_bp_3cycle): Likewise.
886 (cortex_a9_neon_ldr): Likewise.
887 (cortex_a9_neon_str): Likewise.
888 (cortex_a9_neon_vld1_1_2_regs): Likewise.
889 (cortex_a9_neon_vld1_3_4_regs): Likewise.
890 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
891 (cortex_a9_neon_vld2_4_regs): Likewise.
892 (cortex_a9_neon_vld3_vld4): Likewise.
893 (cortex_a9_neon_vld1_vld2_lane): Likewise.
894 (cortex_a9_neon_vld3_vld4_lane): Likewise.
895 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
896 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
897 (cortex_a9_neon_vst1_3_4_regs): Likewise.
898 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
899 (cortex_a9_neon_vst1_vst2_lane): Likewise.
900 (cortex_a9_neon_vst3_vst4_lane): Likewise.
901 (cortex_a9_neon_mcr): Likewise.
902 (cortex_a9_neon_mcr_2_mcrr): Likewise.
903 (cortex_a9_neon_mrc): Likewise.
904 (cortex_a9_neon_mrrc): Likewise.
905
9deda8cb
JG
9062013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
907
908 * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
909
910 (cortex_a8_neon_vshl_ddd): Remove.
911 (cortex_a8_neon_vst3_vst4): Likewise.
912 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
913
914 (cortex_a8_neon_bit_ops_q): New.
915
916 (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
917 (cortex_a8_neon_int_2): Likewise..
918 (cortex_a8_neon_int_3): Likewise.
919 (cortex_a8_neon_int_5): Likewise.
920 (cortex_a8_neon_vqneg_vqabs): Likewise.
921 (cortex_a8_neon_int_4): Likewise.
922 (cortex_a8_neon_vaba): Likewise.
923 (cortex_a8_neon_vaba_qqq): Likewise.
924 (cortex_a8_neon_shift_1): Likewise.
925 (cortex_a8_neon_shift_2): Likewise.
926 (cortex_a8_neon_shift_3): Likewise.
927 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
928 (cortex_a8_neon_vsra_vrsra): Likewise.
929 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
930 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
931 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
932 Likewise.
933 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
934 (cortex_a8_neon_mla_qqq_8_16): Likewise.
935 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
936 Likewise.
937 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
938 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
939 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
940 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
941 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
942 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
943 (cortex_a8_neon_fp_vsum): Likewise.
944 (cortex_a8_neon_fp_vmul_ddd): Likewise.
945 (cortex_a8_neon_fp_vmul_qqd): Likewise.
946 (cortex_a8_neon_fp_vmla_ddd): Likewise.
947 (cortex_a8_neon_fp_vmla_qqq): Likewise.
948 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
949 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
950 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
951 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
952 (cortex_a8_neon_bp_simple): Likewise.
953 (cortex_a8_neon_bp_2cycle): Likewise.
954 (cortex_a8_neon_bp_3cycle): Likewise.
955 (cortex_a8_neon_ldr): Likewise.
956 (cortex_a8_neon_str): Likewise.
957 (cortex_a8_neon_vld1_1_2_regs): Likewise.
958 (cortex_a8_neon_vld1_3_4_regs): Likewise.
959 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
960 (cortex_a8_neon_vld2_4_regs): Likewise.
961 (cortex_a8_neon_vld3_vld4): Likewise.
962 (cortex_a8_neon_vld1_vld2_lane): Likewise.
963 (cortex_a8_neon_vld3_vld4_lane): Likewise.
964 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
965 (cortex_a8_neon_vst1_3_4_regs): Likewise.
966 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
967 (cortex_a8_neon_vst1_vst2_lane): Likewise.
968 (cortex_a8_neon_vst3_vst4_lane): Likewise.
969 (cortex_a8_neon_mcr): Likewise.
970 (cortex_a8_neon_mcr_2_mcrr): Likewise.
971 (cortex_a8_neon_mrc): Likewise.
972 (cortex_a8_neon_mrrc): Likewise.
973
0f686aa9
JG
9742013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
975
976 * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
977 (fp): New.
978 * config/aarch64/aarch64-simd.md (neon_type): Remove.
979 (aarch64_simd_dup<mode>): Add "type" attribute.
980 (aarch64_dup_lane<mode>): Likewise.
981 (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
982 (*aarch64_simd_mov<mode>): Likewise.
983 (aarch64_simd_mov_from_<mode>low): Likewise.
984 (aarch64_simd_mov_from_<mode>high): Likewise.
985 (orn<mode>3): Likewise.
986 (bic<mode>3): Likewise.
987 (add<mode>3): Likewise.
988 (sub<mode>3): Likewise.
989 (mul<mode>3): Likewise.
990 (*aarch64_mul3_elt<mode>): Likewise.
991 (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
992 (*aarch64_mul3_elt_to_128df): Likewise.
993 (*aarch64_mul3_elt_to_64v2df): Likewise.
994 (neg<mode>2): Likewise.
995 (abs<mode>2): Likewise.
996 (abd<mode>_3): Likewise.
997 (aba<mode>_3): Likewise.
998 (fabd<mode>_3): Likewise.
999 (*fabd_scalar<mode>3): Likewise.
1000 (and<mode>3): Likewise.
1001 (ior<mode>3): Likewise.
1002 (xor<mode>3): Likewise.
1003 (one_cmpl<mode>2): Likewise.
1004 (aarch64_simd_vec_set<mode>): Likewise.
1005 (aarch64_simd_lshr<mode>): Likewise.
1006 (aarch64_simd_ashr<mode>): Likewise.
1007 (aarch64_simd_imm_shl<mode>): Likewise.
1008 (aarch64_simd_reg_sshl<mode): Likewise.
1009 (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
1010 (aarch64_simd_reg_shl<mode>_signed): Likewise.
1011 (aarch64_simd_vec_setv2di): Likewise.
1012 (aarch64_simd_vec_set<mode>): Likewise.
1013 (aarch64_mla<mode>): Likewise.
1014 (*aarch64_mla_elt<mode>): Likewise.
1015 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
1016 (aarch64_mls<mode>): Likewise.
1017 (*aarch64_mls_elt<mode>): Likewise.
1018 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
1019 (<su><maxmin><mode>3): Likewise.
1020 (move_lo_quad_<mode>): Likewise.
1021 (aarch64_simd_move_hi_quad_<mode>): Likewise.
1022 (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
1023 (vec_pack_trunc_<mode>): Likewise.
1024 (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
1025 (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
1026 (*aarch64_<su>mlal_lo<mode>): Likewise.
1027 (*aarch64_<su>mlal_hi<mode>): Likewise.
1028 (*aarch64_<su>mlsl_lo<mode>): Likewise.
1029 (*aarch64_<su>mlsl_hi<mode>): Likewise.
1030 (*aarch64_<su>mlal<mode>): Likewise.
1031 (*aarch64_<su>mlsl<mode>): Likewise.
1032 (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
1033 (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
1034 (add<mode>3): Likewise.
1035 (sub<mode>3): Likewise.
1036 (mul<mode>3): Likewise.
1037 (div<mode>3): Likewise.
1038 (neg<mode>2): Likewise.
1039 (abs<mode>2): Likewise.
1040 (fma<mode>4): Likewise.
1041 (*aarch64_fma4_elt<mode>): Likewise.
1042 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
1043 (*aarch64_fma4_elt_to_128df): Likewise.
1044 (*aarch64_fma4_elt_to_64v2df): Likewise.
1045 (fnma<mode>4): Likewise.
1046 (*aarch64_fnma4_elt<mode>): Likewise.
1047 (*aarch64_fnma4_elt_<vswap_width_name><mode>
1048 (*aarch64_fnma4_elt_to_128df): Likewise.
1049 (*aarch64_fnma4_elt_to_64v2df): Likewise.
1050 (<frint_pattern><mode>2): Likewise.
1051 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
1052 (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
1053 (vec_unpacks_lo_v4sf): Likewise.
1054 (aarch64_float_extend_lo_v2df): Likewise.
1055 (vec_unpacks_hi_v4sf): Likewise.
1056 (aarch64_float_truncate_lo_v2sf): Likewise.
1057 (aarch64_float_truncate_hi_v4sf): Likewise.
1058 (aarch64_vmls<mode>): Likewise.
1059 (<su><maxmin><mode>3): Likewise.
1060 (<maxmin_uns><mode>3): Likewise.
1061 (reduc_<sur>plus_<mode>): Likewise.
1062 (reduc_<sur>plus_v2di): Likewise.
1063 (reduc_<sur>plus_v2si): Likewise.
1064 (reduc_<sur>plus_<mode>): Likewise.
1065 (aarch64_addpv4sf): Likewise.
1066 (clz<mode>2): Likewise.
1067 (reduc_<maxmin_uns>_<mode>): Likewise.
1068 (reduc_<maxmin_uns>_v2di): Likewise.
1069 (reduc_<maxmin_uns>_v2si): Likewise.
1070 (reduc_<maxmin_uns>_<mode>): Likewise.
1071 (reduc_<maxmin_uns>_v4sf): Likewise.
1072 (aarch64_simd_bsl<mode>_internal): Likewise.
1073 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1074 (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
1075 (aarch64_get_lane<mode>): Likewise.
1076 (*aarch64_combinez<mode>): Likewise.
1077 (aarch64_combine<mode>): Likewise.
1078 (aarch64_simd_combine<mode>): Likewise.
1079 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
1080 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
1081 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
1082 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
1083 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
1084 (aarch64_<sur>h<addsub><mode>): Likewise.
1085 (aarch64_<sur><addsub>hn<mode>): Likewise.
1086 (aarch64_<sur><addsub>hn2<mode>): Likewise.
1087 (aarch64_pmul<mode>): Likewise.
1088 (aarch64_<su_optab><optab><mode>): Likewise.
1089 (aarch64_<sur>qadd<mode>): Likewise.
1090 (aarch64_sqmovun<mode>): Likewise.
1091 (aarch64_<sur>qmovn<mode>): Likewise.
1092 (aarch64_s<optab><mode>): Likewise.
1093 (aarch64_sq<r>dmulh<mode>): Likewise.
1094 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
1095 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
1096 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
1097 (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
1098 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
1099 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
1100 (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
1101 (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
1102 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
1103 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
1104 (aarch64_sqdmull<mode>): Likewise.
1105 (aarch64_sqdmull_lane<mode>_internal): Likewise.
1106 (aarch64_sqdmull_n<mode>): Likewise.
1107 (aarch64_sqdmull2<mode>_internal): Likewise.
1108 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
1109 (aarch64_sqdmull2_n<mode>_internal): Likewise.
1110 (aarch64_<sur>shl<mode>): Likewise.
1111 (aarch64_<sur>q<r>shl<mode>
1112 (aarch64_<sur>shll_n<mode>): Likewise.
1113 (aarch64_<sur>shll2_n<mode>): Likewise.
1114 (aarch64_<sur>shr_n<mode>): Likewise.
1115 (aarch64_<sur>sra_n<mode>): Likewise.
1116 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
1117 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
1118 (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
1119 (aarch64_cm<optab><mode>): Likewise.
1120 (aarch64_cm<optab>di): Likewise.
1121 (aarch64_cm<optab><mode>): Likewise.
1122 (aarch64_cm<optab>di): Likewise.
1123 (aarch64_cmtst<mode>): Likewise.
1124 (aarch64_cmtstdi): Likewise.
1125 (aarch64_cm<optab><mode>): Likewise.
1126 (*aarch64_fac<optab><mode>): Likewise.
1127 (aarch64_addp<mode>): Likewise.
1128 (aarch64_addpdi): Likewise.
1129 (sqrt<mode>2): Likewise.
1130 (vec_load_lanesoi<mode>): Likewise.
1131 (vec_store_lanesoi<mode>): Likewise.
1132 (vec_load_lanesci<mode>): Likewise.
1133 (vec_store_lanesci<mode>): Likewise.
1134 (vec_load_lanesxi<mode>): Likewise.
1135 (vec_store_lanesxi<mode>): Likewise.
1136 (*aarch64_mov<mode>): Likewise.
1137 (aarch64_ld2<mode>_dreg): Likewise.
1138 (aarch64_ld2<mode>_dreg): Likewise.
1139 (aarch64_ld3<mode>_dreg): Likewise.
1140 (aarch64_ld3<mode>_dreg): Likewise.
1141 (aarch64_ld4<mode>_dreg): Likewise.
1142 (aarch64_ld4<mode>_dreg): Likewise.
1143 (aarch64_tbl1<mode>): Likewise.
1144 (aarch64_tbl2v16qi): Likewise.
1145 (aarch64_combinev16qi): Likewise.
1146 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
1147 (aarch64_st2<mode>_dreg): Likewise.
1148 (aarch64_st2<mode>_dreg): Likewise.
1149 (aarch64_st3<mode>_dreg): Likewise.
1150 (aarch64_st3<mode>_dreg): Likewise.
1151 (aarch64_st4<mode>_dreg): Likewise.
1152 (aarch64_st4<mode>_dreg): Likewise.
1153 (*aarch64_simd_ld1r<mode>): Likewise.
1154 (aarch64_frecpe<mode>): Likewise.
1155 (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
1156 (aarch64_frecps<mode>): Likewise.
1157
f7379e5e
JG
11582013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
1159
1160 * config/arm/iterators.md (V_elem_ch): New.
1161 (q): Likewise.
1162 (VQH_type): Likewise.
1163 * config/arm/arm.md (is_neon_type): New.
1164 (conds): Use is_neon_type.
1165 (anddi3_insn): Update type attribute.
1166 (xordi3_insn): Likewise.
1167 (one_cmpldi2): Likewise.
1168 * gcc/config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
1169 * gcc/config/arm/neon.md (neon_mov): Update type attribute.
1170 (*movmisalign<mode>_neon_store): Likewise.
1171 (*movmisalign<mode>_neon_load): Likewise.
1172 (vec_set<mode>_internal): Likewise.
1173 (vec_set<mode>_internal): Likewise.
1174 (vec_setv2di_internal): Likewise.
1175 (vec_extract<mode>): Likewise.
1176 (vec_extract<mode>): Likewise.
1177 (vec_extractv2di): Likewise.
1178 (*add<mode>3_neon): Likewise.
1179 (adddi3_neon): Likewise.
1180 (*sub<mode>3_neon): Likewise.
1181 (subdi3_neon): Likewise.
1182 (fma<VCVTF:mode>4): Likewise.
1183 (fma<VCVTF:mode>4_intrinsic): Likewise.
1184 (*fmsub<VCVTF:mode>4): Likewise.
1185 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
1186 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
1187 (ior<mode>3): Likewise.
1188 (and<mode>3): Likewise.
1189 (orn<mode>3_neon): Likewise.
1190 (orndi3_neon): Likewise.
1191 (bic<mode>3_neon): Likewise.
1192 (bicdi3_neon): Likewise.
1193 (xor<mode>3): Likewise.
1194 (one_cmpl<mode>2): Likewise.
1195 (abs<mode>2): Likewise.
1196 (neg<mode>2): Likewise.
1197 (negdi2_neon): Likewise.
1198 (*umin<mode>3_neon): Likewise.
1199 (*umax<mode>3_neon): Likewise.
1200 (*smin<mode>3_neon): Likewise.
1201 (*smax<mode>3_neon): Likewise.
1202 (vashl<mode>3): Likewise.
1203 (vashr<mode>3_imm): Likewise.
1204 (vlshr<mode>3_imm): Likewise.
1205 (ashl<mode>3_signed): Likewise.
1206 (ashl<mode>3_unsigned): Likewise.
1207 (neon_load_count): Likewise.
1208 (ashldi3_neon_noclobber): Likewise.
1209 (ashldi3_neon): Likewise.
1210 (signed_shift_di3_neon): Likewise.
1211 (unsigned_shift_di3_neon): Likewise.
1212 (ashrdi3_neon_imm_noclobber): Likewise.
1213 (lshrdi3_neon_imm_noclobber): Likewise.
1214 (<shift>di3_neon): Likewise.
1215 (widen_ssum<mode>3): Likewise.
1216 (widen_usum<mode>3): Likewise.
1217 (quad_halves_<code>v4si): Likewise.
1218 (quad_halves_<code>v4sf): Likewise.
1219 (quad_halves_<code>v8hi): Likewise.
1220 (quad_halves_<code>v16qi): Likewise.
1221 (reduc_splus_v2di): Likewise.
1222 (neon_vpadd_internal<mode>): Likewise.
1223 (neon_vpsmin<mode>): Likewise.
1224 (neon_vpsmax<mode>): Likewise.
1225 (neon_vpumin<mode>): Likewise.
1226 (neon_vpumax<mode>): Likewise.
1227 (*ss_add<mode>_neon): Likewise.
1228 (*us_add<mode>_neon): Likewise.
1229 (*ss_sub<mode>_neon): Likewise.
1230 (*us_sub<mode>_neon): Likewise.
1231 (neon_vadd<mode>_unspec): Likewise.
1232 (neon_vaddl<mode>): Likewise.
1233 (neon_vaddw<mode>): Likewise.
1234 (neon_vhadd<mode>): Likewise.
1235 (neon_vqadd<mode>): Likewise.
1236 (neon_vaddhn<mode>): Likewise.
1237 (neon_vmul<mode>): Likewise.
1238 (neon_vfms<VCVTF:mode>): Likewise.
1239 (neon_vmlal<mode>): Likewise.
1240 (neon_vmls<mode>): Likewise.
1241 (neon_vmlsl<mode>): Likewise.
1242 (neon_vqdmulh<mode>): Likewise.
1243 (neon_vqdmlal<mode>): Likewise.
1244 (neon_vqdmlsl<mode>): Likewise.
1245 (neon_vmull<mode>): Likewise.
1246 (neon_vqdmull<mode>): Likewise.
1247 (neon_vsub<mode>_unspec): Likewise.
1248 (neon_vsubl<mode>): Likewise.
1249 (neon_vsubw<mode>): Likewise.
1250 (neon_vqsub<mode>): Likewise.
1251 (neon_vhsub<mode>): Likewise.
1252 (neon_vsubhn<mode>): Likewise.
1253 (neon_vceq<mode>): Likewise.
1254 (neon_vcge<mode>): Likewise.
1255 (neon_vcgeu<mode>): Likewise.
1256 (neon_vcgt<mode>): Likewise.
1257 (neon_vcgtu<mode>): Likewise.
1258 (neon_vcle<mode>): Likewise.
1259 (neon_vclt<mode>): Likewise.
1260 (neon_vcage<mode>): Likewise.
1261 (neon_vcagt<mode>): Likewise.
1262 (neon_vtst<mode>): Likewise.
1263 (neon_vabd<mode>): Likewise.
1264 (neon_vabdl<mode>): Likewise.
1265 (neon_vaba<mode>): Likewise.
1266 (neon_vabal<mode>): Likewise.
1267 (neon_vmax<mode>): Likewise.
1268 (neon_vmin<mode>): Likewise.
1269 (neon_vpaddl<mode>): Likewise.
1270 (neon_vpadal<mode>): Likewise.
1271 (neon_vpmax<mode>): Likewise.
1272 (neon_vpmin<mode>): Likewise.
1273 (neon_vrecps<mode>): Likewise.
1274 (neon_vrsqrts<mode>): Likewise.
1275 (neon_vqabs<mode>): Likewise.
1276 (neon_vqneg<mode>): Likewise.
1277 (neon_vcls<mode>): Likewise.
1278 (clz<mode>2): Likewise.
1279 (popcount<mode>2): Likewise.
1280 (neon_vrecpe<mode>): Likewise.
1281 (neon_vrsqrte<mode>): Likewise.
1282 (neon_vget_lane<mode>_sext_internal): Likewise.
1283 (neon_vget_lane<mode>_zext_internal): Likewise.
1284 (neon_vdup_n<mode>): Likewise.
1285 (neon_vdup_n<mode>): Likewise.
1286 (neon_vdup_nv2di): Likewise.
1287 (neon_vdup_lane<mode>_interal): Likewise.
1288 (*neon_vswp<mode>): Likewise.
1289 (neon_vcombine<mode>): Likewise.
1290 (float<mode><V_cvtto>2): Likewise.
1291 (floatuns<mode><V_cvtto>2): Likewise.
1292 (fix_trunc<mode><V_cvtto>2): Likewise.
1293 (fixuns_trunc<mode><V_cvtto>2
1294 (neon_vcvt<mode>): Likewise.
1295 (neon_vcvt<mode>): Likewise.
1296 (neon_vcvtv4sfv4hf): Likewise.
1297 (neon_vcvtv4hfv4sf): Likewise.
1298 (neon_vcvt_n<mode>): Likewise.
1299 (neon_vcvt_n<mode>): Likewise.
1300 (neon_vmovn<mode>): Likewise.
1301 (neon_vqmovn<mode>): Likewise.
1302 (neon_vqmovun<mode>): Likewise.
1303 (neon_vmovl<mode>): Likewise.
1304 (neon_vmul_lane<mode>): Likewise.
1305 (neon_vmul_lane<mode>): Likewise.
1306 (neon_vmull_lane<mode>): Likewise.
1307 (neon_vqdmull_lane<mode>): Likewise.
1308 (neon_vqdmulh_lane<mode>): Likewise.
1309 (neon_vqdmulh_lane<mode>): Likewise.
1310 (neon_vmla_lane<mode>): Likewise.
1311 (neon_vmla_lane<mode>): Likewise.
1312 (neon_vmlal_lane<mode>): Likewise.
1313 (neon_vqdmlal_lane<mode>): Likewise.
1314 (neon_vmls_lane<mode>): Likewise.
1315 (neon_vmls_lane<mode>): Likewise.
1316 (neon_vmlsl_lane<mode>): Likewise.
1317 (neon_vqdmlsl_lane<mode>): Likewise.
1318 (neon_vext<mode>): Likewise.
1319 (neon_vrev64<mode>): Likewise.
1320 (neon_vrev32<mode>): Likewise.
1321 (neon_vrev16<mode>): Likewise.
1322 (neon_vbsl<mode>_internal): Likewise.
1323 (neon_vshl<mode>): Likewise.
1324 (neon_vqshl<mode>): Likewise.
1325 (neon_vshr_n<mode>): Likewise.
1326 (neon_vshrn_n<mode>): Likewise.
1327 (neon_vqshrn_n<mode>): Likewise.
1328 (neon_vqshrun_n<mode>): Likewise.
1329 (neon_vshl_n<mode>): Likewise.
1330 (neon_vqshl_n<mode>): Likewise.
1331 (neon_vqshlu_n<mode>): Likewise.
1332 (neon_vshll_n<mode>): Likewise.
1333 (neon_vsra_n<mode>): Likewise.
1334 (neon_vsri_n<mode>): Likewise.
1335 (neon_vsli_n<mode>): Likewise.
1336 (neon_vtbl1v8qi): Likewise.
1337 (neon_vtbl2v8qi): Likewise.
1338 (neon_vtbl3v8qi): Likewise.
1339 (neon_vtbl4v8qi): Likewise.
1340 (neon_vtbl1v16qi): Likewise.
1341 (neon_vtbl2v16qi): Likewise.
1342 (neon_vcombinev16qi): Likewise.
1343 (neon_vtbx1v8qi): Likewise.
1344 (neon_vtbx2v8qi): Likewise.
1345 (neon_vtbx3v8qi): Likewise.
1346 (neon_vtbx4v8qi): Likewise.
1347 (*neon_vtrn<mode>_insn): Likewise.
1348 (*neon_vzip<mode>_insn): Likewise.
1349 (*neon_vuzp<mode>_insn): Likewise.
1350 (neon_vld1<mode>): Likewise.
1351 (neon_vld1_lane<mode>): Likewise.
1352 (neon_vld1_lane<mode>): Likewise.
1353 (neon_vld1_dup<mode>): Likewise.
1354 (neon_vld1_dup<mode>): Likewise.
1355 (neon_vld1_dupv2di): Likewise.
1356 (neon_vst1<mode>): Likewise.
1357 (neon_vst1_lane<mode>): Likewise.
1358 (neon_vst1_lane<mode>): Likewise.
1359 (neon_vld2<mode>): Likewise.
1360 (neon_vld2<mode>): Likewise.
1361 (neon_vld2_lane<mode>): Likewise.
1362 (neon_vld2_lane<mode>): Likewise.
1363 (neon_vld2_dup<mode>): Likewise.
1364 (neon_vst2<mode>): Likewise.
1365 (neon_vst2<mode>): Likewise.
1366 (neon_vst2_lane<mode>): Likewise.
1367 (neon_vst2_lane<mode>): Likewise.
1368 (neon_vld3<mode>): Likewise.
1369 (neon_vld3qa<mode>): Likewise.
1370 (neon_vld3qb<mode>): Likewise.
1371 (neon_vld3_lane<mode>): Likewise.
1372 (neon_vld3_lane<mode>): Likewise.
1373 (neon_vld3_dup<mode>): Likewise.
1374 (neon_vst3<mode>): Likewise.
1375 (neon_vst3qa<mode>): Likewise.
1376 (neon_vst3qb<mode>): Likewise.
1377 (neon_vst3_lane<mode>): Likewise.
1378 (neon_vst3_lane<mode>): Likewise.
1379 (neon_vld4<mode>): Likewise.
1380 (neon_vld4qa<mode>): Likewise.
1381 (neon_vld4qb<mode>): Likewise.
1382 (neon_vld4_lane<mode>): Likewise.
1383 (neon_vld4_lane<mode>): Likewise.
1384 (neon_vld4_dup<mode>): Likewise.
1385 (neon_vst4<mode>): Likewise.
1386 (neon_vst4qa<mode>): Likewise.
1387 (neon_vst4qb<mode>): Likewise.
1388 (neon_vst4_lane<mode>): Likewise.
1389 (neon_vst4_lane<mode>): Likewise.
1390 (neon_vec_unpack<US>_lo_<mode>): Likewise.
1391 (neon_vec_unpack<US>_hi_<mode>): Likewise.
1392 (neon_vec_<US>mult_lo_<mode>): Likewise.
1393 (neon_vec_<US>mult_hi_<mode>): Likewise.
1394 (neon_vec_<US>shiftl_<mode>): Likewise.
1395 (neon_unpack<US>_<mode>): Likewise.
1396 (neon_vec_<US>mult_<mode>): Likewise.
1397 (vec_pack_trunc_<mode>): Likewise.
1398 (neon_vec_pack_trunc_<mode>): Likewise.
1399 (neon_vabd<mode>_2): Likewise.
1400 (neon_vabd<mode>_3): Likewise.
1401
a9e66678
JG
14022013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
1403
1404 * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
1405 (load_pair): Update type attribute.
1406 (store_pair): Update type attribute.
1407 * config/aarch64/iterators.md (q): New.
1408
20445ed6
JG
14092013-10-15 James Greenhalgh <james.greenhalgh@arm.com>
1410
1411 * config/arm/types.md: Add new types for Neon insns.
1412
afb4ac68
AI
14132013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1414 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1415 Sergey Lega <sergey.s.lega@intel.com>
1416 Anna Tikhonova <anna.tikhonova@intel.com>
1417 Ilya Tocar <ilya.tocar@intel.com>
1418 Andrey Turetskiy <andrey.turetskiy@intel.com>
1419 Ilya Verbin <ilya.verbin@intel.com>
1420 Kirill Yukhin <kirill.yukhin@intel.com>
1421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1422
1423 * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
1424 UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
1425 UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
1426 (rcp14<mode>): New.
1427 (srcp14<mode>): Ditto.
1428 (rsqrt14<mode>): Ditto.
1429 (rsqrt14<mode>): Ditto.
1430 (avx512f_vmscalef<mode>): Ditto.
1431 (avx512f_scalef<mode>): Ditto.
1432 (avx512f_getexp<mode>): Ditto.
1433 (avx512f_sgetexp<mode>): Ditto.
1434 (avx512f_fixupimm<mode>): Ditto.
1435 (avx512f_sfixupimm<mode>): Ditto.
1436 (avx512f_rndscale<mode>): Ditto.
1437 (*avx512er_exp2<mode>): Ditto.
1438 (*avx512er_rcp28<mode>): Ditto.
1439 (avx512er_rsqrt28<mode>): Ditto.
1440 (avx512f_getmant<mode>): Ditto.
1441 (avx512f_getmant<mode>): Ditto.
1442 (avx512f_rndscale<mode>): Fix formatting.
1443
a1b499a3
JL
14442013-10-15 Martin Jambor <mjambor@suse.cz>
1445
1446 * ipa-utils.h (ipa_edge_within_scc): Declare.
1447 * ipa-cp.c (edge_within_scc): Moved...
1448 * ipa-utils.c (ipa_edge_within_scc): ...here. Updated all callers.
afb4ac68 1449
2e2206fa
AI
14502013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1451 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1452 Sergey Lega <sergey.s.lega@intel.com>
1453 Anna Tikhonova <anna.tikhonova@intel.com>
1454 Ilya Tocar <ilya.tocar@intel.com>
1455 Andrey Turetskiy <andrey.turetskiy@intel.com>
1456 Ilya Verbin <ilya.verbin@intel.com>
1457 Kirill Yukhin <kirill.yukhin@intel.com>
1458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1459
1460 * config/i386/predicates.md (const_8_to_15_operand): New.
1461 (const_16_to_31_operand): Ditto.
1462 * config/i386/sse.md (V8FI): New.
1463 (V16FI): Ditto.
1464 (reduc_splus_v8df): Ditto.
1465 (reduc_splus_v16sf): Ditto.
1466 (avx512f_vextract<shuffletype>32x4_1): Ditto.
1467 (vec_extract_hi_<mode>): Ditto.
1468 (avx512f_vinsert<shuffletype>32x4_1): Ditto.
1469 (vec_set_lo_<mode>): Ditto.
1470 (vec_set_hi_<mode>): Ditto.
1471 (avx512f_shuf_<shuffletype>64x2_1): Ditto.
1472 (avx512f_shuf_<shuffletype>32x4_1): Ditto.
1473 (avx512f_pshufd_1): Ditto.
1474 (avx512f_broadcast<mode>): Ditto.
1475 (avx512f_broadcast<mode>): Ditto.
1476 (define_split): Split vec_extract_lo into move.
1477 (ssequartermode): Ditto.
1478 (ssedoublemode): Extened with wider modes.
1479 (vec_extract_lo_<mode>): Ditto.
1480
0fe65b75
AI
14812013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1482 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1483 Sergey Lega <sergey.s.lega@intel.com>
1484 Anna Tikhonova <anna.tikhonova@intel.com>
1485 Ilya Tocar <ilya.tocar@intel.com>
1486 Andrey Turetskiy <andrey.turetskiy@intel.com>
1487 Ilya Verbin <ilya.verbin@intel.com>
1488 Kirill Yukhin <kirill.yukhin@intel.com>
1489 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1490
1491 * config/i386/predicates.md (register_or_constm1_operand): New.
1492 * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
1493 UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
1494 UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
1495 UNSPEC_SCATTER_PREFETCH
1496 (VI48_512): New.
1497 (avx512f_ucmp<mode>3): Ditto.
1498 (avx512f_vternlog<mode>): Ditto.
1499 (avx512f_align<mode>): Ditto.
1500 (<shift_insn><mode>3): Ditto.
1501 (avx512f_<rotate>v<mode>): Ditto.
1502 (avx512f_<rotate><mode>): Ditto.
1503 (avx512f_eq<mode>3): Ditto.
1504 (avx512f_eq<mode>3_1): Ditto.
1505 (avx512f_gt<mode>3): Ditto.
1506 (avx512f_testm<mode>3): Ditto.
1507 (avx512f_testnm<mode>3): Ditto.
1508 (avx512pf_gatherpf<mode>): Ditto.
1509 (*avx512pf_gatherpf<mode>_mask): Ditto.
1510 (*avx512pf_gatherpf<mode>): Ditto.
1511 (avx512pf_scatterpf<mode>): Ditto.
1512 (*avx512pf_scatterpf<mode>_mask): Ditto.
1513 (*avx512pf_scatterpf<mode>): Ditto.
1514 (avx512f_vec_dup_gpr<mode>): Ditto.
1515 (clz<mode>2): Ditto.
1516 (conflict<mode>): Ditto.
1517 (REDUC_SMINMAX_MODE): Extened with wider modes.
1518 (reduc_<code>_<mode>): Ditto.
1519 (vlshr<mode>3): Ditto.
1520 (vashl<mode>3): Ditto.
1521
ab931c71
AI
15222013-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1523 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1524 Sergey Lega <sergey.s.lega@intel.com>
1525 Anna Tikhonova <anna.tikhonova@intel.com>
1526 Ilya Tocar <ilya.tocar@intel.com>
1527 Andrey Turetskiy <andrey.turetskiy@intel.com>
1528 Ilya Verbin <ilya.verbin@intel.com>
1529 Kirill Yukhin <kirill.yukhin@intel.com>
1530 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1531
1532 * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
1533 UNSPEC_SCATTER.
1534 (VI48F_512): New.
1535 (avx512fmaskmode): Ditto.
1536 (bcstscalarsuff): Ditto.
1537 (avx512f_blendm<mode>): Ditto.
1538 (cmp_imm_predicate): Ditto.
1539 (avx512f_cmp<mode>3): Ditto.
1540 (avx512f_vec_dup<mode>): Ditto.
1541 (avx512f_vec_dup_mem<mode>): Ditto.
1542 (avx512f_vpermi2var<mode>3): Ditto.
1543 (avx512f_vpermt2var<mode>3): Ditto.
1544 (vec_init<mode>): Ditto.
1545 (avx512f_gathersi<mode>): Ditto.
1546 (*avx512f_gathersi<mode>): Ditto.
1547 (*avx512f_gathersi<mode>_2): Ditto.
1548 (avx512f_gatherdi<mode>): Ditto.
1549 (*avx512f_gatherdi<mode>): Ditto.
1550 (*avx512f_gatherdi<mode>_2): Ditto.
1551 (avx512f_scattersi<mode>): Ditto.
1552 (*avx512f_scattersi<mode>): Ditto.
1553 (avx512f_scatterdi<mode>): Ditto.
1554 (*avx512f_scatterdi<mode>): Ditto.
1555 (sseintprefix): Extened with wider modes.
1556 (VEC_GATHER_IDXSI): Ditto.
1557 (VEC_GATHER_IDXDI): Ditto.
1558 (VEC_GATHER_SRCDI): Ditto.
1559
c9acb877
MGD
15602013-10-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1561 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1562
1563 * config/arm/t-aprofile: New file.
1564 * config.gcc: Handle --with-multilib-list option.
1565
ecbda484
BS
15662013-10-15 Bernd Schmidt <bernds@codesourcery.com>
1567
6f1abb55
UB
1568 * reload1.c (reloads_unique_chain_p): Ensure that r1 is
1569 the input for r2.
ecbda484 1570
24f161fd
RB
15712013-10-15 Richard Biener <rguenther@suse.de>
1572
1573 * tree-loop-distribution.c (build_empty_rdg): Inline into
1574 single user.
1575 (rdg_flag_vertex): Inline into single user.
1576 (rdg_flag_vertex_and_dependent): Likewise.
1577 (build_rdg_partition_for_vertex): Remove processed bitmap.
1578 (rdg_build_partitions): Simplify.
1579
5de989ed
RB
15802013-10-15 Richard Biener <rguenther@suse.de>
1581
1582 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1583 Restructure forwarding through conversions and copies to
1584 avoid performing copy-propagation the wrong way. Adjust
1585 recursion invocations.
1586 (forward_propagate_addr_expr): Add argument stating if we
1587 are recursing from a single-use.
1588 (ssa_forward_propagate_and_combine): Adjust.
1589
47e0da37
DM
15902013-10-14 David Malcolm <dmalcolm@redhat.com>
1591
1592 * dumpfile.h (gcc::dump_manager): New class, to hold state
1593 relating to dumpfile management.
1594 (get_dump_file_name): Remove in favor of method of dump_manager.
1595 (dump_initialized_p): Likewise.
1596 (dump_start): Likewise.
1597 (dump_finish): Likewise.
1598 (dump_switch_p): Likewise.
1599 (dump_register): Likewise.
1600 (get_dump_file_info): Likewise.
1601 * context.c (gcc::context::context): Construct the dump_manager
1602 instance.
1603 * context.h (gcc::context::get_dumps): New.
1604 (gcc::context::m_dumps): New.
1605 * coverage.c (coverage_init): Port to dump_manager API.
6f1abb55 1606 * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
47e0da37
DM
1607 (extra_dump_files_in_use): Likewise.
1608 (extra_dump_files_alloced): Likewise.
1609 (gcc::dump_manager::dump_manager): New.
1610 (dump_register): Convert to...
1611 (gcc::dump_manager::dump_register): ...method, replacing
1612 function-static next_dump with m_next_dump field.
1613 (get_dump_file_info): Convert to...
1614 (gcc::dump_manager::get_dump_file_info): ...method.
1615 (get_dump_file_name): Convert to...
1616 (gcc::dump_manager::get_dump_file_name): ...method.
1617 (dump_start): Convert to...
1618 (gcc::dump_manager::dump_start): ...method.
1619 (dump_finish): Convert to...
1620 (gcc::dump_manager::dump_finish): ...method.
1621 (dump_begin): Replace body with...
1622 (gcc::dump_manager::dump_begin): ...new method.
1623 (dump_phase_enabled_p): Convert to...
1624 (gcc::dump_manager::dump_phase_enabled_p): ...method.
1625 (dump_phase_enabled_p): Convert to...
1626 (gcc::dump_manager::dump_phase_enabled_p): ...method.
1627 (dump_initialized_p): Convert to...
1628 (gcc::dump_manager::dump_initialized_p): ...method.
1629 (dump_flag_name): Replace body with...
1630 (gcc::dump_manager::dump_flag_name): ...new method.
1631 (dump_enable_all): Convert to...
1632 (gcc::dump_manager::dump_enable_all): ...new method.
1633 (opt_info_enable_passes): Convert to...
1634 (gcc::dump_manager::opt_info_enable_passes): ...new method.
1635 (dump_switch_p_1): Convert to...
1636 (gcc::dump_manager::dump_switch_p_1): ...new method.
1637 (dump_switch_p): Convert to...
1638 (gcc::dump_manager::dump_switch_p): ...new method.
1639 (opt_info_switch_p): Port to dump_manager API.
1640 (enable_rtl_dump_file): Likewise.
1641 * opts-global.c (handle_common_deferred_options): Port to new
1642 dump_manager API.
1643 * passes.c (pass_manager::finish_optimization_passes): Likewise.
1644 (pass_manager::register_one_dump_file): Likewise.
1645 (pass_manager::register_pass): Likewise.
1646 (pass_init_dump_file): Likewise.
1647 (pass_fini_dump_file): Likewise.
1648 * statistics.c (statistics_early_init): Likewise.
1649
83fd5d11
RB
16502013-10-14 Richard Biener <rguenther@suse.de>
1651
1652 * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
1653 iterative_hash_canonical_type, gimple_canonical_type_hash,
1654 gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
1655 gimple_register_canonical_type, print_gimple_types_stats,
1656 free_gimple_type_tables): Move to lto/lto.c
1657 (gt-gimple.h): Do not include.
1658 * gimple.h (gimple_register_canonical_type,
1659 print_gimple_types_stats, free_gimple_type_tables): Remove.
1660 * Makefile.in (GTFILES): Remove gimple.c.
1661
a6dbd0f7
TS
16622013-10-14 Travis Snoozy <quandary@remstate.com>
1663
1664 PR target/58716
1665 * config/msp430/msp430.c (msp430_option_override): Correct thinko
1666 scanning for msp430x targets.
1667
b5ccb9ed
EB
16682013-10-14 Eric Botcazou <ebotcazou@adacore.com>
1669
1670 PR bootstrap/58509
1671 * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
1672 (registers_ok_for_ldd_peep): Move around.
1673 * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
1674 * config/sparc/sparc.md (widening peepholes): Use it.
1675
fd7e5084
RB
16762013-10-14 Richard Biener <rguenther@suse.de>
1677
1678 PR middle-end/58712
1679 PR middle-end/55358
1680 * gimple.c (iterative_hash_canonical_type): Make sure to
1681 record the hash into the correct hashtable slot.
1682
3246afaa
EB
16832013-10-13 Eric Botcazou <ebotcazou@adacore.com>
1684
1685 PR rtl-optimization/58662
1686 * combine.c (try_combine): Take into account death nodes on I2 when
1687 splitting a PARALLEL of two independent SETs. Fix dump message.
1688
5d30dc5b
OE
16892013-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1690
1691 PR target/51244
1692 * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
1693 * config.gcc (SH extra_objs): Add sh_ifcvt.o.
1694 * config/sh/t-sh (sh_treg_combine.o): New entry.
1695 * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
1696 implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
1697 (register_sh_passes): New function. Register sh_treg_combine pass.
1698 (sh_option_override): Invoke it.
1699 (sh_canonicalize_comparison): Handle op0_preserve_value.
1700 * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
1701 opportunities. Canonicalize branch condition.
1702 (nott): Allow only if pseudos can be created for non-SH2A.
1703
37d1c5db
L
17042013-10-12 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 PR target/58690
1707 * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
1708 (ix86_expand_movmem): Replace copy_addr_to_reg with
1709 ix86_copy_addr_to_reg.
1710 (ix86_expand_setmem): Likewise.
1711
b86a70ff
AM
17122013-10-12 Alexander Monakov <amonakov@ispras.ru>
1713
1714 * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
1715 provided by ix86_fp_compare_mode instead of CCFPUmode.
1716
6e1d5961
JG
17172013-10-12 James Greenhalgh <james.greenhalgh@arm.com>
1718
1719 * config/aarch64/arm_neon.h
1720 (vtbx<1,3>_<psu>8): Fix register constriants.
1721
ef3cfba2
JL
17222013-10-11 Jeff Law <law@redhat.com>
1723
1724 PR tree-optimization/58640
adcfd489
UB
1725 * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
1726 threading paths that cross over two loop entry points.
ef3cfba2 1727
6e8b7d9c
BS
17282013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1729
1730 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
1731 handle vector float as well.
1732 (*vsx_le_perm_load_v4si): Likewise.
1733 (*vsx_le_perm_store_v2di): Likewise.
1734 (*vsx_le_perm_store_v4si): Likewise.
1735
f200869a
BS
17362013-10-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1737
1738 * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
1739 directly to circumvent subtract from splat{31} workaround.
1740 * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
1741 prototype.
1742 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
1743 * config/rs6000/altivec.md (define_c_enum "unspec"): Add
1744 UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
1745 (altivec_vperm_<mode>): Convert to define_insn_and_split to
1746 separate big and little endian logic.
1747 (*altivec_vperm_<mode>_internal): New define_insn.
1748 (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
1749 separate big and little endian logic.
1750 (*altivec_vperm_<mode>_uns_internal): New define_insn.
1751 (vec_permv16qi): Add little endian logic.
1752
8d28e3fc
MG
17532013-10-11 Marc Glisse <marc.glisse@inria.fr>
1754
1755 * doc/extend.texi (returns_nonnull): Remove arguments.
1756
3c87b77b
AI
17572013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1758 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1759 Sergey Lega <sergey.s.lega@intel.com>
1760 Anna Tikhonova <anna.tikhonova@intel.com>
1761 Ilya Tocar <ilya.tocar@intel.com>
1762 Andrey Turetskiy <andrey.turetskiy@intel.com>
1763 Ilya Verbin <ilya.verbin@intel.com>
1764 Kirill Yukhin <kirill.yukhin@intel.com>
1765 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1766
1767 * config/i386/sse.md (VI48F_256_512): New.
1768 (avx2_permvar<mode>): Change to ...
1769 (<avx2_avx512f>_permvar<mode>): This.
1770
50e60d7d
AI
17712013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1772 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1773 Sergey Lega <sergey.s.lega@intel.com>
1774 Anna Tikhonova <anna.tikhonova@intel.com>
1775 Ilya Tocar <ilya.tocar@intel.com>
1776 Andrey Turetskiy <andrey.turetskiy@intel.com>
1777 Ilya Verbin <ilya.verbin@intel.com>
1778 Kirill Yukhin <kirill.yukhin@intel.com>
1779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1780
6f1abb55 1781 * config/i386/i386.c (bdesc_args): Change corresponding pattern for
50e60d7d
AI
1782 __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
1783 * config/i386/sse.md (VI4_AVX): New.
1784 (sf2simodelower): Ditto.
1785 (sse2_cvtps2dq): Change to ...
1786 (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
1787
f62ce24f
AI
17882013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1790 Sergey Lega <sergey.s.lega@intel.com>
1791 Anna Tikhonova <anna.tikhonova@intel.com>
1792 Ilya Tocar <ilya.tocar@intel.com>
1793 Andrey Turetskiy <andrey.turetskiy@intel.com>
1794 Ilya Verbin <ilya.verbin@intel.com>
1795 Kirill Yukhin <kirill.yukhin@intel.com>
1796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1797
1798 * config/i386/sse.md (V_512): New.
1799 (VI_512): Ditto.
1800 (vcond<V_512:mode><VF_512:mode>): Ditto.
1801 (vcond<V_512:mode><VI_512:mode>): Ditto.
1802 (vcondu<V_512:mode><VI_512:mode>): Ditto.
1803
558d9f79
AI
18042013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1805 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1806 Sergey Lega <sergey.s.lega@intel.com>
1807 Anna Tikhonova <anna.tikhonova@intel.com>
1808 Ilya Tocar <ilya.tocar@intel.com>
1809 Andrey Turetskiy <andrey.turetskiy@intel.com>
1810 Ilya Verbin <ilya.verbin@intel.com>
1811 Kirill Yukhin <kirill.yukhin@intel.com>
1812 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1813
1814 * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
1815 * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
1816 (FMAMODE): Ditto.
1817 (fma<mode>4): Removed condition.
1818 (fms<mode>4): Ditto.
1819 (fnma<mode>4): Ditto.
1820 (fnms<mode>4): Ditto.
1821 (fma4i_fmadd_<mode>): Ditto.
1822 (*fma_fmadd_<mode>): Ditto.
1823 (*fma_fmsub_<mode>): Ditto.
1824 (*fma_fnmadd_<mode>): Ditto.
1825 (*fma_fnmsub_<mode>): Ditto.
1826 (fmaddsub_<mode>): Allow for TARGET_AVX512F.
1827 (*fma_fmaddsub_<mode>): Ditto.
1828 (*fma_fmsubadd_<mode>): Ditto.
1829 (*fmai_fmadd_<mode>): Ditto.
1830 (*fmai_fmsub_<mode>): Ditto.
1831 (*fmai_fnmadd_<mode>): Ditto.
1832 (*fmai_fnmsub_<mode>): Ditto.
1833
e8d08206
AI
18342013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1835 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1836 Sergey Lega <sergey.s.lega@intel.com>
1837 Anna Tikhonova <anna.tikhonova@intel.com>
1838 Ilya Tocar <ilya.tocar@intel.com>
1839 Andrey Turetskiy <andrey.turetskiy@intel.com>
1840 Ilya Verbin <ilya.verbin@intel.com>
1841 Kirill Yukhin <kirill.yukhin@intel.com>
1842 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1843
1844 * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
1845 (VI124_256): Changed to ...
1846 (VI124_256_48_512): This.
1847 (ssepackmode): Extended with wider modes.
1848 (<code><mode>3): Changed iterator.
1849 (*avx2_<code><mode>3): Ditto.
1850 (vec_pack_trunc_<mode>): Ditto.
1851
16821545
AI
18522013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1853 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1854 Sergey Lega <sergey.s.lega@intel.com>
1855 Anna Tikhonova <anna.tikhonova@intel.com>
1856 Ilya Tocar <ilya.tocar@intel.com>
1857 Andrey Turetskiy <andrey.turetskiy@intel.com>
1858 Ilya Verbin <ilya.verbin@intel.com>
1859 Kirill Yukhin <kirill.yukhin@intel.com>
1860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1861
1862 * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
1863 (VI8F_256_512): Ditto.
1864 (abs<mode>2): Changed iterator.
1865 (avx2_perm<mode>): Changed to ...
1866 (<avx2_avx512f>_perm<mode>): This.
1867 (avx2_perm<mode>_1): Changed to ...
1868 (<avx2_avx512f>_perm<mode>_1): This.
1869
5348cff8
AI
18702013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1871 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1872 Sergey Lega <sergey.s.lega@intel.com>
1873 Anna Tikhonova <anna.tikhonova@intel.com>
1874 Ilya Tocar <ilya.tocar@intel.com>
1875 Andrey Turetskiy <andrey.turetskiy@intel.com>
1876 Ilya Verbin <ilya.verbin@intel.com>
1877 Kirill Yukhin <kirill.yukhin@intel.com>
1878 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1879
1880 * config/i386/sse.md (VI48_AVX512F): New.
1881 (VI48_AVX2): Changed to ...
1882 (VI48_AVX2_48_AVX512F): This.
1883 (avx2_ashrv<mode>): Changed to ...
1884 (<avx2_avx512f>_ashrv<mode>): This.
1885 (avx2_<shift_insn>v<mode>): Changed to ...
1886 (<avx2_avx512f>_<shift_insn>v<mode>): This.
1887
f5f41d88
AI
18882013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1889 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1890 Sergey Lega <sergey.s.lega@intel.com>
1891 Anna Tikhonova <anna.tikhonova@intel.com>
1892 Ilya Tocar <ilya.tocar@intel.com>
1893 Andrey Turetskiy <andrey.turetskiy@intel.com>
1894 Ilya Verbin <ilya.verbin@intel.com>
1895 Kirill Yukhin <kirill.yukhin@intel.com>
1896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1897
1898 * config/i386/sse.md (VI4_AVX512F): New.
1899 (VI8_AVX2_AVX512F): Ditto.
1900 (mul<mode>3): Extended with wider modes.
1901 (*<sse4_1_avx2>_mul<mode>3): Ditto.
1902 (mul<mode>3): Ditto.
1903 (vec_widen_<s>mult_odd_<mode>): Ditto.
1904
3bdf6340
AI
19052013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1907 Sergey Lega <sergey.s.lega@intel.com>
1908 Anna Tikhonova <anna.tikhonova@intel.com>
1909 Ilya Tocar <ilya.tocar@intel.com>
1910 Andrey Turetskiy <andrey.turetskiy@intel.com>
1911 Ilya Verbin <ilya.verbin@intel.com>
1912 Kirill Yukhin <kirill.yukhin@intel.com>
1913 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1914
1915 * config/i386/sse.md (VI2_AVX512F): New.
1916 (VI124_AVX512F): Ditto.
1917 (sseunpackmode): Extended with wider modes.
1918 (sseunpackfltmode): Ditto.
1919 (vec_unpacks_float_hi_<mode>): Ditto.
1920 (vec_unpacks_float_lo_<mode>): Ditto.
1921 (vec_unpacku_float_hi_<mode>): Ditto.
1922 (vec_unpacku_float_lo_<mode>): Ditto.
1923 (vec_unpacks_lo_<mode>): Ditto.
1924 (vec_unpacks_hi_<mode>): Ditto.
1925 (vec_unpacku_lo_<mode>): Ditto.
1926 (vec_unpacku_hi_<mode>): Ditto.
1927
67f783cb
AI
19282013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1930 Sergey Lega <sergey.s.lega@intel.com>
1931 Anna Tikhonova <anna.tikhonova@intel.com>
1932 Ilya Tocar <ilya.tocar@intel.com>
1933 Andrey Turetskiy <andrey.turetskiy@intel.com>
1934 Ilya Verbin <ilya.verbin@intel.com>
1935 Kirill Yukhin <kirill.yukhin@intel.com>
1936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1937
1938 * config/i386/i386.md (multdiv): New.
1939 (multdiv_mnemonic): Ditto.
1940 * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
1941 (<sse>_vm<multdiv_mnemonic><mode>3): This.
1942 (<sse>_vmdiv<mode>3): Removed.
1943
ec5e777c
AI
19442013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1945 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1946 Sergey Lega <sergey.s.lega@intel.com>
1947 Anna Tikhonova <anna.tikhonova@intel.com>
1948 Ilya Tocar <ilya.tocar@intel.com>
1949 Andrey Turetskiy <andrey.turetskiy@intel.com>
1950 Ilya Verbin <ilya.verbin@intel.com>
1951 Kirill Yukhin <kirill.yukhin@intel.com>
1952 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1953
1954 * config/i386/sse.md (V): Extended with wider modes.
1955 (VF2): Ditto.
1956 (ssehalfvecmode): Ditto.
1957 (i128): Ditto.
1958 (ssepackfltmode): Ditto.
1959 (avx_vec_concat<mode>): Ditto.
1960 (V_256_512): New iterator.
1961 (VF2_512_256): Ditto.
1962 (si2dfmode): New attribute.
1963 (si2dfmodelower): Ditto.
1964 (sf2dfmode): Ditto.
1965 (concat_tg_mode): Ditto.
1966 (floatv4siv4df2): Changed to ...
1967 (float<si2dfmodelower><mode>2): This.
1968 (avx_cvtps2pd256): Changed to ...
1969 (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
1970 (vec_pack_trunc_v4df): Changed to ...
1971 (vec_pack_trunc_<mode>): This.
1972 (avx_vpermil<mode>): Changed to ...
1973 (<sse2_avx_avx512f>_vpermil<mode>): This.
1974 (<fixsuffix>fix_truncv8dfv8si2): New.
1975 (vec_pack_sfix_trunc_v8df): Ditto.
1976 (avx512f_rndscale<mode>): Ditto.
1977 (avx512f_roundpd512): Ditto.
1978 (vec_pack_ufix_trunc_<mode>): Updated iterator.
1979
a9ccbba2
AI
19802013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
1981 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1982 Sergey Lega <sergey.s.lega@intel.com>
1983 Anna Tikhonova <anna.tikhonova@intel.com>
1984 Ilya Tocar <ilya.tocar@intel.com>
1985 Andrey Turetskiy <andrey.turetskiy@intel.com>
1986 Ilya Verbin <ilya.verbin@intel.com>
1987 Kirill Yukhin <kirill.yukhin@intel.com>
1988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1989
1990 * config/i386/i386.md (any_fix): New iterator.
1991 (fixsuffix): New attribute.
1992 * config/i386/sse.md (VF1): Extened with wider modes.
1993 (VI): Ditto.
1994 (VI_AVX2): Ditto.
1995 (VI8): Ditto.
1996 (sseintvecmodelower): Ditto.
1997 (ssescalarmode): Ditto.
1998 (ssescalarnum): Ditto.
1999 (VF1_128_256): New.
2000 (ssexmmmode): Ditto.
2001 (<fixsuffix>fix_truncv16sfv16si2): Ditto.
2002 (<sse>_rcp<mode>2): Change iterator.
2003 (rsqrt<mode>2): Ditto.
2004 (<sse>_rsqrt<mode>2): Ditto.
2005 (avx2_vec_dup<mode>): Ditto.
2006 (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
2007 (round<mode>2_sfix): Ditto.
2008 (avx2_pbroadcast<mode>): Ditto.
2009 (*andnot<mode>3): Handle XI mode.
2010 (*<code><mode>3): Ditto.
2011 (AVXTOSSEMODE): Removed.
2012 (avx_vpermil<mode>): Changed to ...
2013 (<sse2_avx_avx512f>_vpermil<mode>): This.
2014
2b1ebb0c
AI
20152013-10-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
2016 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2017 Sergey Lega <sergey.s.lega@intel.com>
2018 Anna Tikhonova <anna.tikhonova@intel.com>
2019 Ilya Tocar <ilya.tocar@intel.com>
2020 Andrey Turetskiy <andrey.turetskiy@intel.com>
2021 Ilya Verbin <ilya.verbin@intel.com>
2022 Kirill Yukhin <kirill.yukhin@intel.com>
2023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2024
2025 * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
2026 (<sse>_comi): Ditto.
2027 (<sse>_ucomi): Ditto.
2028 (sse_cvtss2siq_2): Ditto.
2029 (sse2_cvtsd2si): Ditto.
2030 (sse2_cvtsd2siq): Ditto.
2031 (sse2_cvttsd2si): Ditto.
2032 (sse2_cvttsd2siq): Ditto.
2033 (<shift_insn><mode>3): Ditto.
2034 (sse2_cvtsi2sdq): Update constraint and prefix.
2035 (sse_cvtsi2ss): Update prefix.
2036 (sse_cvtsi2ssq): Ditto.
2037
d89124ed
JJ
20382013-10-11 Jakub Jelinek <jakub@redhat.com>
2039
2040 * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
2041 ignore internal calls.
2042
e6ad28c3
RB
20432013-10-11 Richard Biener <rguenther@suse.de>
2044
6f1abb55
UB
2045 * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
2046 and (ab) for SSA_NAMEs. Mark INTEGER_CSTs with (OVF) if
2047 TREE_OVERFLOW is set.
e6ad28c3 2048
d1227447
TS
20492013-10-11 Thomas Schwinge <thomas@codesourcery.com>
2050
1ac4b8e4
TS
2051 * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
2052
7d05cebb
TS
2053 * gimple.c: GIMPLE statements have subcodes, not sub-codes.
2054 * gimple.h: Likewise.
2055
adcfd489 2056 * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
6545f0b3 2057
1a79fb8a
TS
2058 * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
2059 macros.
2060
3afd2873
TS
2061 * doc/gimple.texi (is_gimple_omp): Move into the correct section.
2062
adcfd489 2063 * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
d1227447
TS
2064 * configure: Regenerate.
2065
acf0174b
JJ
20662013-10-11 Jakub Jelinek <jakub@redhat.com>
2067
2068 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
2069 and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
2070 formatting fixes, use pp_colon instead of pp_character (..., ':'),
2071 similarly pp_right_paren.
2072 (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
2073 OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
2074 allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
2075 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
2076 clauses.
2077 (omp_declare_simd_clauses_equal,
2078 omp_remove_redundant_declare_simd_attrs): New functions.
2079 (attribute_value_equal): Use omp_declare_simd_clauses_equal.
2080 (walk_tree_1): Handle new OpenMP 4.0 clauses.
2081 * tree.h (OMP_LOOP_CHECK): Define.
2082 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
2083 OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
2084 (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
2085 OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
2086 OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
2087 OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
2088 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
2089 OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
2090 OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
2091 OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
2092 OMP_CLAUSE_SIMDLEN_EXPR): Define.
2093 (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
2094 (omp_remove_redundant_declare_simd_attrs): New prototype.
2095 * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
2096 GIMPLE_OMP_TEAMS): New codes.
2097 (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
2098 * omp-low.c (struct omp_context): Add cancel_label and cancellable
2099 fields.
2100 (target_nesting_level): New variable.
2101 (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
2102 OMP_CLAUSE_DIST_SCHEDULE. Don't fallback to library implementation
2103 for collapse > 1 static schedule unless ordered.
2104 (get_ws_args_for): Add par_stmt argument. Handle combined loops.
2105 (determine_parallel_type): Adjust get_ws_args_for caller.
2106 (install_var_field): Handle mask & 4 for double indirection.
2107 (scan_sharing_clauses): Ignore shared clause on teams construct.
2108 Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
2109 (create_omp_child_function): If inside target or declare target
adcfd489 2110 constructs, set "omp declare target" attribute on the child function.
acf0174b
JJ
2111 (find_combined_for): New function.
2112 (scan_omp_parallel): Handle combined loops.
2113 (scan_omp_target, scan_omp_teams): New functions.
2114 (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
2115 restrictions and set ctx->cancellable for cancellable constructs.
2116 (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
2117 selected builtin calls. Handle GIMPLE_OMP_TASKGROUP,
2118 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
adcfd489 2119 (build_omp_barrier): Add lhs argument, return gimple rather than tree.
acf0174b 2120 (omp_clause_aligned_alignment): New function.
6f1abb55 2121 (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
acf0174b
JJ
2122 (lower_rec_input_clauses): Add FD argument. Ignore shared clauses
2123 on teams constructs. Handle user defined reductions and new
2124 OpenMP 4.0 clauses.
2125 (lower_reduction_clauses): Don't set placeholder to address of ref
2126 if it has already the right type.
2127 (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
2128 (expand_parallel_call): Use the new non-_start suffixed builtins,
2129 handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
2130 and GOMP_parallel_end after the call.
2131 (expand_task_call): Handle OMP_CLAUSE_DEPEND.
2132 (expand_omp_for_init_counts): Handle combined loops.
2133 (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
2134 loops.
2135 (expand_omp_for_generic): Likewise. Use GOMP_loop_end_cancel at the
2136 end of cancellable loops.
2137 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2138 Likewise. Handle collapse > 1 loops.
2139 (expand_omp_simd): Handle combined loops.
2140 (expand_omp_for): Add inner_stmt argument, adjust callers of
2141 expand_omp_for* functions, use expand_omp_for_static*chunk even
2142 for collapse > 1 unless ordered.
2143 (expand_omp_sections): Use GOMP_sections_end_cancel at the end
2144 of cancellable sections.
2145 (expand_omp_single): Remove need_barrier variable, just rely on
2146 gimple_omp_return_nowait_p. Adjust build_omp_barrier caller.
2147 (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
2148 (expand_omp_atomic_load, expand_omp_atomic_store,
2149 expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
2150 (expand_omp_target): New function.
2151 (expand_omp): Handle combined loops. Handle GIMPLE_OMP_TASKGROUP,
2152 GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
2153 (build_omp_regions_1): Immediately close region for
2154 GF_OMP_TARGET_KIND_UPDATE.
2155 (maybe_add_implicit_barrier_cancel): New function.
2156 (lower_omp_sections): Adjust lower_rec_input_clauses caller. Handle
2157 cancellation.
2158 (lower_omp_single): Likewise. Add clobber after the barrier.
2159 (lower_omp_taskgroup): New function.
2160 (lower_omp_for): Handle combined loops. Adjust
2161 lower_rec_input_clauses caller. Handle cancellation.
2162 (lower_depend_clauses): New function.
2163 (lower_omp_taskreg): Lower depend clauses. Adjust
2164 lower_rec_input_clauses caller. Add clobber after the call. Handle
2165 cancellation.
2166 (lower_omp_target, lower_omp_teams): New functions.
2167 (lower_omp_1): Handle cancellation. Handle GIMPLE_OMP_TASKGROUP,
2168 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
2169 and GOMP_cancellation_point calls.
2170 (lower_omp): Fold stmts inside of target region.
2171 (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
2172 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
2173 * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
2174 (BT_FN_VOID_OMPFN_PTR_UINT,
2175 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
2176 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
2177 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
2178 (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
2179 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
2180 BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
2181 BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
2182 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
2183 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
2184 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
2185 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2186 call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
2187 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
2188 BUILT_IN_GOMP_SECTIONS_END_CANCEL. Don't handle
2189 BUILT_IN_GOMP_PARALLEL_END.
2190 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
2191 GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
2192 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
2193 GF_OMP_FOR_KIND_DISTRIBUTE.
2194 (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
2195 (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
2196 (dump_gimple_omp_return): Print lhs if it has any.
2197 (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
2198 gimple_omp_atomic_seq_cst_p.
2199 (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
2200 and GIMPLE_OMP_TEAMS.
2201 * langhooks.c (lhd_omp_mappable_type): New function.
2202 * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
2203 * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
2204 hook.
2205 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
2206 GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
6f1abb55 2207 (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
acf0174b
JJ
2208 (struct gimplify_omp_ctx): Add combined_loop field.
2209 (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
2210 on stmts inside of target region.
2211 (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
2212 (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
2213 ORT_TARGET and ORT_TARGET_DATA.
2214 (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
2215 Handle GOVD_MAP.
2216 (omp_notice_threadprivate_variable): Complain about threadprivate
2217 variables in target region.
2218 (omp_notice_variable): Complain about vars with non-mappable type
2219 in target region. Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
2220 (omp_check_private): Ignore ORT_TARGET* regions.
2221 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
2222 gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
2223 (find_combined_omp_for): New function.
2224 (gimplify_omp_for): Handle gimplification of combined loops.
2225 (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
2226 OMP_TEAMS.
2227 (gimplify_omp_target_update): New function.
2228 (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
2229 (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
2230 OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
2231 (gimplify_body): If fndecl has "omp declare target" attribute, add
2232 implicit ORT_TARGET context around it.
2233 * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
2234 OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
2235 * tree-nested.c (convert_nonlocal_reference_stmt,
2236 convert_local_reference_stmt, convert_gimple_call): Handle
2237 GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2238 * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
2239 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
2240 instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
2241 (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
2242 BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
2243 BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
2244 BUILT_IN_GOMP_LOOP_END_CANCEL,
2245 BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
2246 BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
2247 BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
2248 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
2249 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
2250 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
2251 BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
2252 BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
2253 (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
2254 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
2255 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
2256 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
2257 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
2258 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
2259 * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
2260 Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2261 * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
2262 gimple_build_omp_teams): New functions.
2263 (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
2264 GIMPLE_OMP_TASKGROUP. Walk optional lhs on GIMPLE_OMP_RETURN.
2265 (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
2266 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2267 * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
2268 GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
2269 GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
2270 GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
2271 GF_OMP_ATOMIC_SEQ_CST): New.
2272 (gimple_build_omp_taskgroup, gimple_build_omp_target,
2273 gimple_build_omp_teams): New prototypes.
2274 (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
2275 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2276 (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
2277 GIMPLE_OMP_SINGLE as end of range.
2278 (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
2279 gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
2280 gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
2281 gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
2282 gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
2283 gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
2284 gimple_omp_target_kind, gimple_omp_target_set_kind,
2285 gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
2286 gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
2287 gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
2288 gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
2289 gimple_omp_teams_set_clauses): New inlines.
2290 (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
2291 and GIMPLE_OMP_TASKGROUP.
adcfd489 2292 * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
acf0174b
JJ
2293 (enum omp_clause_depend_kind, enum omp_clause_map_kind,
2294 enum omp_clause_proc_bind_kind): New.
2295 (union omp_clause_subcode): Add depend_kind, map_kind and
2296 proc_bind_kind fields.
2297 * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
2298 GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
2299 * langhooks-def.h (lhd_omp_mappable_type): New prototype.
2300 (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
2301 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
2302
67fa7880
TJ
23032013-10-10 Teresa Johnson <tejohnson@google.com>
2304
2305 * predict.c (tree_estimate_probability): Add new parameter
2306 for estimate_bb_frequencies.
2307 (estimate_bb_frequencies): Add new parameter to force estimation.
2308 (rebuild_frequencies): When max frequency in function is small,
2309 recompute counts from frequencies.
2310 * predict.h (estimate_bb_frequencies): New parameter.
2311
b591a8b7
DM
23122013-10-10 David Malcolm <dmalcolm@redhat.com>
2313
2314 * ipa-inline.c (ipa_inline): Fix leak of "order" when
2315 optimizations are disabled.
2316
782f0db2
DM
23172013-10-10 David Malcolm <dmalcolm@redhat.com>
2318
2319 * coverage.c (coverage_finish): Fix leak of da_file_name.
2320
13ef00fa
JH
23212013-10-10 Jan Hubicka <jh@suse.cz>
2322
2323 * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
2324 for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
2325 Bobcat and generic.
2326
a1d50386
JJ
23272013-10-10 Jakub Jelinek <jakub@redhat.com>
2328
2329 PR middle-end/58670
2330 * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
2331 if any labels are in FALLTHRU_BB, use a special label emitted
2332 immediately after the asm goto insn rather than label_rtx
2333 of the LABEL_DECL.
2334 (expand_asm_stmt): Adjust caller.
2335 * cfgrtl.c (commit_one_edge_insertion): Force splitting of
2336 edge if the last insn in predecessor is a jump with single successor,
2337 but it isn't simplejump_p.
2338
e2c2fde2
RB
23392013-10-10 Richard Biener <rguenther@suse.de>
2340
2341 PR tree-optimization/58656
6f1abb55 2342 * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
e2c2fde2 2343
de6a5608
AM
23442013-10-10 Andrew MacLeod <amacleod@redhat.com>
2345
adcfd489
UB
2346 * gimplify.c: Include expr.h and tm_p.h for targets with special
2347 va-arg padding requirements.
de6a5608 2348
b184c8f1
AM
23492013-10-10 Andrew MacLeod <amacleod@redhat.com>
2350
2351 * tree-flow.h: Move some prototypes to gimple.h.
2352 (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
2353 * gimple.h: Relocate some prototypes from tree-flow.h
2354 * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
2355 Move to gimplify.c.
2356 * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
2357 (build_va_arg_indirect_ref): Relocate and make static.
2358 (std_gimplify_va_arg_expr): Relocate here.
2359 * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
2360 * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
2361
13b72c22
AK
23622013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2363
2364 * doc/md.texi: Document the mnemonic attribute.
2365
5db40447
AK
23662013-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2367
2368 PR target/57377
2369 * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
2370 (set_attr_alternative x ...) when searching for user defined
2371 mnemonic attribute.
2372
ed018d4b
AM
23732013-10-10 Andrew MacLeod <amacleod@redhat.com>
2374
2375 * config/aplha/alpha.c: Add gimple-ssa.h to include list.
2376
4d5b5e9f
ER
23772013-10-09 Easwaran Raman <eraman@google.com>
2378
2379 * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
2380 * cfgexpand.c (defer_stack_allocation): ...use here
2381 * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
2382
c9ef86a1
ZC
23832013-10-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
2384
2385 * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
2386 (operand_equal_for_value_replacement): New function, extracted from
2387 value_replacement and enhanced to catch more cases.
2388 (value_replacement): Use operand_equal_for_value_replacement.
2389
2431114f
AM
23902013-10-09 Andrew MacLeod <amacleod@redhat.com>
2391
adcfd489 2392 * loop-doloop.c (doloop_modify, doloop_optimize): Use
2431114f
AM
2393 get_max_loop_iterations.
2394
1dd2a9a0
KT
23952013-10-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2396
2397 * config/arm/aarch-common.c (arm_early_load_addr_dep):
2398 Place comment above function.
2399
c1bf2a39
AM
24002013-10-09 Andrew MacLeod <amacleod@redhat.com>
2401
2402 * tree-flow.h: Remove all remaining prototypes, enums and structs that
2403 are not related to tree-cfg.c.
2404 * tree-ssa-address.h: New file. Relocate prototypes.
2405 * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
2406 (addr_for_mem_ref): New. Combine call to get_address_description and
2407 return addr_for_mem_ref.
2408 * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
2409 * tree-ssa-live.h: Adjust prototypes.
2410 * passes.c: Include tree-ssa-live.h.
2411 * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
2412 * graphite.c (graphite_transform_loops): Make static.
2413 (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
adcfd489 2414 make_pass_graphite, pass_data_graphite_transforms,
c1bf2a39
AM
2415 make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
2416 * ipa-pure-const.c (warn_function_noreturn): Make static.
2417 (execute_warn_function_noreturn, gate_warn_function_noreturn,
2418 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
2419 Relocate from tree-cfg.c
2420 * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
2421 static.
2422 (execute_warn_function_noreturn, gate_warn_function_noreturn,
2423 class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
2424 Move to ipa-pure-const.c.
adcfd489
UB
2425 (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
2426 Relocate from tree-optimize.c.
c1bf2a39
AM
2427 * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
2428 make_pass_fixup_cfg): Move to tree-cfg.c.
2429 * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
2430 Relocate some prototypes.
2431 * tree-data-ref.h (tree_check_data_deps) Add prototype.
2432 * tree-dump.c (dump_function_to_file): Remove prototype.
2433 Add tree-flow.h to the include file.
2434 * tree-dump.h: Remove prototype.
2435 * tree-parloops.h: New File. Add prototypes.
2436 * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
2437 pass_data_parallelize_loops, make_pass_parallelize_loops): Relocate
2438 from tree-ssa-loop.c.
2439 * tree-predcom.c (run_tree_predictive_commoning,
2440 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
2441 Relocate here from tree-ssa-loop.c.
adcfd489 2442 * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
c1bf2a39
AM
2443 ssa_name_values.release ().
2444 * tree-ssa-threadedge.h: New File. Relocate prototypes here.
2445 (ssa_name_values): Relocate from tree-flow.h.
2446 * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
2447 * tree-ssa-loop.c (run_tree_predictive_commoning,
2448 gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
2449 graphite_transforms, gate_graphite_transforms, pass_data_graphite,
2450 make_pass_graphite, pass_data_graphite_transforms,
2451 make_pass_graphite_transforms, gate_tree_parallelize_loops,
2452 tree_parallelize_loops, pass_data_parallelize_loops,
2453 make_pass_parallelize_loops): Move to other files.
2454 * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
2455 moved here.
2456 * tree.h: Remove prototypes from tree-address.c.
2457
cc524fc7
AM
24582013-10-09 Andrew MacLeod <amacleod@redhat.com>
2459
2460 * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
2461 (struct int_tree_map): Move to tree-hasher.h
2462 (SCALE, LABEL, PERCENT): Move to gimple.h
2463 * tree-flow-inline.h: Delete. Move functions to other files.
2464 (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
2465 * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
2466 (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
2467 * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
2468 inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
2469 (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
2470 * tree-hasher.h: Don't include tree-flow.h.
2471 (struct int_tree_map): Relocate from tree-flow.h.
2472 * tree-sra.c (contains_view_convert_expr_p): Relocate from
2473 tree-flow-inline.h and make static.
adcfd489
UB
2474 * tree-ssa-alias.h (ranges_overlap_p): Relocate from
2475 tree-flow-inline.h.
cc524fc7
AM
2476 * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
2477 tree-flow-inline.h and make static.
2478 * tree.h (is_global_var, may_be_aliased): Relocate from
2479 tree-flow-inline.h.
2480 * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
2481 * value-prof.c: No longer include tree-flow-inline.h.
2482 * tree-switch-conversion.c: No longer include tree-flow-inline.h.
2483
71343877
AM
24842013-10-09 Andrew MacLeod <amacleod@redhat.com>
2485
2486 * tree-flow.h: Move some protoypes. Include new tree-ssa-loop.h.
2487 (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
2488 (enum move_pos): Move to tree-ssa-loop-im.h
2489 * cfgloop.h: Move some prototypes.
2490 (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
2491 * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
2492 * tree-ssa-loop.h: New File. Include other tree-ssa-loop-*.h files.
2493 (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
2494 (loop_containing_stmt): Relocate from tree-flow-inline.h.
2495 * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
2496 * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
2497 (enum move_pos): Relocate here.
2498 (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
2499 tree-ssa-loop.c.
2500 (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
adcfd489
UB
2501 (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
2502 make_pass_lim): Relocate here from tree-ssa-loop.c.
2503 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
71343877
AM
2504 tree-ssa-loop.c.
2505 (loop_edge_to_cancel, unloop_loops): Make static.
2506 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
2507 make_pass_iv_canon): Relocate from tree-ssa-loop.c.
2508 (tree_complete_unroll, gate_tree_complete_unroll,
2509 pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
2510 (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
2511 pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
2512 * tree-ssa-loop-ivopts.c: Remove local prototypes.
2513 (stmt_invariant_in_loop_p): Remove unused function.
2514 * tree-ssa-loop-ivopts.h: New file. Add prototypes.
2515 * tree-ssa-loop-manip.h: New file. Add prototypes.
2516 * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
2517 (gcov_type_to_double_int): Move to cfgloop.h.
2518 (double_int_cmp, bound_index,
2519 estimate_numbers_of_iterations_loop): Make static.
2520 (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
2521 (max_loop_iterations): Factor out get_max_loop_iterations.
2522 (estimated_loop_iterations_int, max_stmt_executions_int): Move to
2523 cfgloop.c.
2524 * tree-ssa-loop-niter.h: New file. Add prototypes.
2525 * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
2526 gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
2527 make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
2528 * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
2529 gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
2530 make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
2531 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
2532 pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
2533 (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
2534 pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
2535 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
2536 make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
2537 pass_data_complete_unroll, make_pass_complete_unroll,
2538 tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
2539 pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
2540 tree-ssa-loop-ivcanon.c.
2541 (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
2542 pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
2543 tree-ssa-loop-prefetch.c.
2544 (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
2545 tree-ssa-loop-im.c.
2546 (get_lsm_tmp_name): Relocate and add suffix parameter.
2547 (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
2548 * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
2549 * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
2550 max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
adcfd489 2551 (get_estimated_loop_iterations): Factor out accessor from
71343877 2552 estimated_loop_iterations in tree-ssa-loop-niter.c.
adcfd489
UB
2553 (get_max_loop_iterations): Factor out accessor from
2554 _max_loop_iterations in tree-ssa-niter.c.
71343877
AM
2555 * loop-unroll.c (decide_unroll_constant_iterations,
2556 decide_unroll_runtime_iterations, decide_peel_simple,
2557 decide_unroll_stupid): Use new get_* accessors.
2558
826cacfe
MG
25592013-10-09 Marc Glisse <marc.glisse@inria.fr>
2560
2561 PR tree-optimization/20318
2562 * doc/extend.texi (returns_nonnull): New function attribute.
2563 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
2564 attribute.
2565 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
2566 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
2567
378f8976
EB
25682013-10-09 Eric Botcazou <ebotcazou@adacore.com>
2569
2570 PR middle-end/58570
2571 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
2572 false if both components are bitfields.
2573
0fe04f5c
AV
25742013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2575
2576 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
2577 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
2578 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
2579 * config/aarch64/aarch64.h
2580 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
2581 * config/aarch64/aarch64-simd-builtins.def
2582 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
2583
bed9bae4
AV
25842013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2585
2586 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
2587
7f3d8b19
AV
25882013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2589
2590 * config/aarch64/arm_neon.h (vdiv_f64): Added.
2591
7df625a6
AV
25922013-10-09 Alex Velenko <Alex.Velenko@arm.com>
2593
2594 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
2595 (vneg_f64): New intrinsic.
2596 (vneg_s8): Asm replaced with C.
2597 (vneg_s16): Likewise.
2598 (vneg_s32): Likewise.
2599 (vneg_s64): New intrinsic.
2600 (vnegq_f32): Asm replaced with C.
2601 (vnegq_f64): Likewise.
2602 (vnegq_s8): Likewise.
2603 (vnegq_s16): Likewise.
2604 (vnegq_s32): Likewise.
2605 (vnegq_s64): Likewise.
2606
2b86fca7
RL
26072013-10-09 Renlin Li <Renlin.Li@arm.com>
2608
2609 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
2610
e179df83
AK
26112013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2612
2613 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
2614 packed stack special handling.
2615 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
2616 back to fixed stack slots for FPRs saved due to stdarg.
2617
74129172
AK
26182013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2619
2620 * config/s390/s390.c (s390_frame_info): Restructure function.
2621
6455a49e
AK
26222013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2623
2624 * config/s390/s390.c (struct s390_frame_layout): New field
2625 gpr_save_slots.
2626 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
2627 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
2628 regs_ever_clobbered to char*.
adcfd489
UB
2629 (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
2630 of cfun->has_nonlocal_label. Ignore frame related restore INSNs.
6455a49e
AK
2631 (s390_register_info): Enable FPR save slots. Move/Copy some
2632 functionality into ...
2633 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
2634 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
2635 function.
2636 (s390_frame_info): Do gpr slot allocation here now. stdarg does
2637 not imply a stack frame.
2638 (s390_init_frame_layout): Remove variable clobbered_regs.
2639 (s390_update_register_info): Remove function.
2640 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
2641 cannot be used for register renaming.
2642 (s390_hard_regno_scratch_ok): New function.
2643 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
2644 (s390_initial_elimination_offset): Change offset calculation of
2645 the return address pointer.
adcfd489 2646 (save_gprs): Deal with only r6 being saved from the call-saved regs.
6455a49e 2647 (restore_gprs): Set frame related flag.
adcfd489 2648 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
6455a49e
AK
2649 (s390_emit_prologue): Call s390_register_info instead of
2650 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
2651 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
2652 (s390_optimize_prologue): Call s390_optimize_register_info.
2653 Try to remove also FPR slot save/restore INSNs. Remove frame
2654 related flags from restore INSNs.
2655
59d96342
DD
26562013-10-08 DJ Delorie <dj@redhat.com>
2657
0dc7adad
DD
2658 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
2659 (movhi): Likewise.
2660
59d96342
DD
2661 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
2662 avoid conflict with the MI use of %c.
2663 * config/rl78/rl78-real.md: change %c to %C throughout.
2664 * config/rl78/rl78-virt.md: Likewise.
2665
a81169d8
JH
26662013-10-08 Jan Hubicka <jh@suse.cz>
2667
2668 * config/i386/i386.c (ix86_option_override_internal): Switch
2669 to SSE math for -ffast-math when target ISA supports SSE2.
2670
481d1b81
AM
26712013-10-08 Andrew MacLeod <amacleod@redhat.com>
2672
2673 * tree-flow.h: Remove some prototypes.
2674 * tree.h: Remove some protypes, add a couple.
2675 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
2676 using_eh_for_cleanups_p): Add interface routines for front ends.
2677 * tree-eh.h: New file. Add protoptyes.
2678 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
2679 (add_stmt_to_eh_lp_fn): Make static.
2680 (lower_try_finally): Use new using_eh_for_cleanups_p.
2681 * emit-rtl.c: Include tree-eh.h.
2682 * gimple.h: Include tree-eh.h.
2683
0e6a0e48
MG
26842013-10-08 Marc Glisse <marc.glisse@inria.fr>
2685
2686 PR tree-optimization/58480
2687 * tree-vrp.c (infer_nonnull_range): New function.
2688 (infer_value_range): Call infer_nonnull_range.
2689
ef6179d1
DC
26902013-10-08 Dehao Chen <dehao@google.com>
2691
2692 PR tree-optimization/58619
2693 * tree-inline.c (copy_phis_for_bb): Combine location data
2694 only if non-null.
2695
07d964d5
ZC
26962013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2697
2698 PR target/58423
2699 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
2700 RTX_FRAME_RELATED_P on INSN.
2701
19e9b2a3
BS
27022013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2703
2704 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
2705 (altivec_expand_vec_perm_const): Call it.
2706
0cf68694
BS
27072013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2708
2709 * config/rs6000/vector.md (mov<mode>): Emit permuted move
2710 sequences for LE VSX loads and stores at expand time.
2711 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
2712 prototype.
2713 * config/rs6000/rs6000.c (rs6000_const_vec): New.
2714 (rs6000_gen_le_vsx_permute): New.
2715 (rs6000_gen_le_vsx_load): New.
2716 (rs6000_gen_le_vsx_store): New.
2717 (rs6000_gen_le_vsx_move): New.
2718 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
2719 (*vsx_le_perm_load_v4si): New.
2720 (*vsx_le_perm_load_v8hi): New.
2721 (*vsx_le_perm_load_v16qi): New.
2722 (*vsx_le_perm_store_v2di): New.
2723 (*vsx_le_perm_store_v4si): New.
2724 (*vsx_le_perm_store_v8hi): New.
2725 (*vsx_le_perm_store_v16qi): New.
2726 (*vsx_xxpermdi2_le_<mode>): New.
2727 (*vsx_xxpermdi4_le_<mode>): New.
2728 (*vsx_xxpermdi8_le_V8HI): New.
2729 (*vsx_xxpermdi16_le_V16QI): New.
2730 (*vsx_lxvd2x2_le_<mode>): New.
2731 (*vsx_lxvd2x4_le_<mode>): New.
2732 (*vsx_lxvd2x8_le_V8HI): New.
2733 (*vsx_lxvd2x16_le_V16QI): New.
2734 (*vsx_stxvd2x2_le_<mode>): New.
2735 (*vsx_stxvd2x4_le_<mode>): New.
2736 (*vsx_stxvd2x8_le_V8HI): New.
2737 (*vsx_stxvd2x16_le_V16QI): New.
2738
9520e1eb
RL
27392013-10-07 Renlin Li <Renlin.Li@arm.com>
2740
2741 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
2742
36c0bd4f
AK
27432013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2744
2745 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
2746 loop to work also for 31bit ABI.
2747 Save the stack pointer for frame_size > 0.
2748
ee163e72
AK
27492013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2750
2751 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
2752 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
2753 constraint letters from expanders.
2754 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
2755 retry count to general_operand.
2756 ("tabort"): Give operand 0 a mode.
2757 ("tabort_1"): Add mode and constraint letter for operand 0.
2758 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
2759
45d99234
JL
27602013-10-04 Jeff Law <law@redhat.com>
2761
2762 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
2763
adcfd489
UB
2764 * tree-ssa-threadedge.c (thread_through_normal_block): Broken
2765 out of ...
45d99234
JL
2766 (thread_across_edge): Here. Call it.
2767
7c327f7b
CC
27682013-10-04 Cary Coutant <ccoutant@google.com>
2769
2770 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
adcfd489 2771 discarding a location list expression (or a piece of one).
7c327f7b 2772
6867e128
JH
27732013-10-03 Jan Hubicka <jh@suse.cz>
2774
65efa7e7
UB
2775 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
2776 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
3700bce3 2777 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
6867e128 2778
c7f36d55
JH
27792013-10-03 Jan Hubicka <jh@suse.cz>
2780
65efa7e7 2781 * config/i386/i386.c (ix86_option_override_internal): Do not enable
c7f36d55
JH
2782 accumulate-outgoing-args when producing unwind info.
2783
4f0bee4c
WM
27842013-10-03 Wei Mi <wmi@google.com>
2785
2786 * lra-constraints.c (insert_move_for_subreg): New function
2787 extracted from simplify_operand_subreg.
2788 (simplify_operand_subreg): Add reload for paradoxical subreg.
2789
111c3f39
RX
27902013-10-03 Rong Xu <xur@google.com>
2791
65efa7e7
UB
2792 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
2793 the candidate of builtin_expect such that we should fix the
2794 size/time estimation.
2795 (estimate_function_body_sizes): Do the acutally size/time fix-up
2796 for builtin_expect.
111c3f39 2797
942df739
RX
27982013-10-03 Rong Xu <xur@google.com>
2799
65efa7e7
UB
2800 * predict.c (tree_predict_by_opcode): Get the probability
2801 for builtin_expect from param builtin_expect_probability.
2802 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
2803 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
2804 * doc/invoke.texi: Add documentation for builtin-expect-probability.
942df739 2805
2284b034
MG
28062013-10-03 Marc Glisse <marc.glisse@inria.fr>
2807
2808 PR c++/19476
2809 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
2810 * calls.c (alloca_call_p): Use get_callee_fndecl.
2811 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
2812 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
2813 Likewise.
2814 (vrp_visit_stmt): Remove duplicated code.
2815
0609bdf2
MM
28162013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2817
2818 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
2819 ceildf2, btruncdf2, instead of vsx_* name.
2820
2821 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
2822 iterators to only do V2DF and V4SF here. Move the DF code to
2823 rs6000.md where it is combined with SF mode. Replace <VSv> with
2824 just 'v' since only vector operations are handled with these insns
2825 after moving the DF support to rs6000.md.
2826 (vsx_sub<mode>3): Likewise.
2827 (vsx_mul<mode>3): Likewise.
2828 (vsx_div<mode>3): Likewise.
2829 (vsx_fre<mode>2): Likewise.
2830 (vsx_neg<mode>2): Likewise.
2831 (vsx_abs<mode>2): Likewise.
2832 (vsx_nabs<mode>2): Likewise.
2833 (vsx_smax<mode>3): Likewise.
2834 (vsx_smin<mode>3): Likewise.
2835 (vsx_sqrt<mode>2): Likewise.
2836 (vsx_rsqrte<mode>2): Likewise.
2837 (vsx_fms<mode>4): Likewise.
2838 (vsx_nfma<mode>4): Likewise.
2839 (vsx_copysign<mode>3): Likewise.
2840 (vsx_btrunc<mode>2): Likewise.
2841 (vsx_floor<mode>2): Likewise.
2842 (vsx_ceil<mode>2): Likewise.
2843 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
2844 (vsx_sminsf3): Likewise.
2845 (vsx_fmadf4): Likewise.
2846 (vsx_fmsdf4): Likewise.
2847 (vsx_nfmadf4): Likewise.
2848 (vsx_nfmsdf4): Likewise.
2849 (vsx_cmpdf_internal1): Likewise.
2850
2851 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
2852 simpler to select whether a target has SPE or traditional floating
2853 point support in iterators.
2854 (TARGET_DF_SPE): Likewise.
2855 (TARGET_SF_FPR): Likewise.
2856 (TARGET_DF_FPR): Likewise.
2857 (TARGET_SF_INSN): Macros to say whether floating point support
2858 exists for a given operation for expanders.
2859 (TARGET_DF_INSN): Likewise.
2860
2861 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
2862 combining of SF/DF mode operations, using both traditional and VSX
2863 registers.
2864 (Fvsx): Likewise.
2865 (Ff): Likewise.
2866 (Fv): Likewise.
2867 (Fs): Likewise.
2868 (Ffre): Likewise.
2869 (FFRE): Likewise.
2870 (abs<mode>2): Combine SF/DF modes using traditional floating point
2871 instructions. Add support for using the upper DF registers with
2872 VSX support, and SF registers with power8-vector support. Update
2873 expanders for operations supported by both the SPE and traditional
2874 floating point units.
2875 (abs<mode>2_fpr): Likewise.
2876 (nabs<mode>2): Likewise.
2877 (nabs<mode>2_fpr): Likewise.
2878 (neg<mode>2): Likewise.
2879 (neg<mode>2_fpr): Likewise.
2880 (add<mode>3): Likewise.
2881 (add<mode>3_fpr): Likewise.
2882 (sub<mode>3): Likewise.
2883 (sub<mode>3_fpr): Likewise.
2884 (mul<mode>3): Likewise.
2885 (mul<mode>3_fpr): Likewise.
2886 (div<mode>3): Likewise.
2887 (div<mode>3_fpr): Likewise.
2888 (sqrt<mode>3): Likewise.
2889 (sqrt<mode>3_fpr): Likewise.
2890 (fre<Fs>): Likewise.
2891 (rsqrt<mode>2): Likewise.
2892 (cmp<mode>_fpr): Likewise.
2893 (smax<mode>3): Likewise.
2894 (smin<mode>3): Likewise.
2895 (smax<mode>3_vsx): Likewise.
2896 (smin<mode>3_vsx): Likewise.
2897 (negsf2): Delete SF operations that are merged with DF.
2898 (abssf2): Likewise.
2899 (addsf3): Likewise.
2900 (subsf3): Likewise.
2901 (mulsf3): Likewise.
2902 (divsf3): Likewise.
2903 (fres): Likewise.
2904 (fmasf4_fpr): Likewise.
2905 (fmssf4_fpr): Likewise.
2906 (nfmasf4_fpr): Likewise.
2907 (nfmssf4_fpr): Likewise.
2908 (sqrtsf2): Likewise.
2909 (rsqrtsf_internal1): Likewise.
2910 (smaxsf3): Likewise.
2911 (sminsf3): Likewise.
2912 (cmpsf_internal1): Likewise.
2913 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
2914 (negdf2): Delete DF operations that are merged with SF.
2915 (absdf2): Likewise.
2916 (nabsdf2): Likewise.
2917 (adddf3): Likewise.
2918 (subdf3): Likewise.
2919 (muldf3): Likewise.
2920 (divdf3): Likewise.
2921 (fred): Likewise.
2922 (rsqrtdf_internal1): Likewise.
2923 (fmadf4_fpr): Likewise.
2924 (fmsdf4_fpr): Likewise.
2925 (nfmadf4_fpr): Likewise.
2926 (nfmsdf4_fpr): Likewise.
2927 (sqrtdf2): Likewise.
2928 (smaxdf3): Likewise.
2929 (smindf3): Likewise.
2930 (cmpdf_internal1): Likewise.
2931 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
2932 (btrunc<mode>2): Delete separate expander, and combine with the
2933 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
2934 (btrunc<mode>2_fpr): Likewise.
2935 (ceil<mode>2): Likewise.
2936 (ceil<mode>2_fpr): Likewise.
2937 (floor<mode>2): Likewise.
2938 (floor<mode>2_fpr): Likewise.
2939 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
2940 Add support for using the upper registers with VSX and
2941 power8-vector. Move insns to be closer to the define_expands. On
2942 VSX systems, prefer the traditional form of FMA over the VSX
2943 version, since the traditional form allows the target not to
2944 overlap with the inputs.
2945 (fms<mode>4_fpr): Likewise.
2946 (nfma<mode>4_fpr): Likewise.
2947 (nfms<mode>4_fpr): Likewise.
2948
5bea0c6c 29492013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65efa7e7 2950 Richard Earnshaw <richard.earnshaw@arm.com>
5bea0c6c
KT
2951
2952 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
2953 (struct mult_cost_table): Likewise.
2954 (struct mem_cost_table): Likewise.
2955 (struct fp_cost_table): Likewise.
2956 (struct vector_cost_table): Likewise.
2957 (cpu_cost_table): Likewise.
2958 * config/arm/arm.opt (mold-rts-costs): New option.
2959 (mnew-generic-costs): Likewise.
2960 * config/arm/arm.c (generic_extra_costs): New table.
2961 (cortexa15_extra_costs): Likewise.
2962 (arm_slowmul_tune): Use NULL as new costs.
2963 (arm_fastmul_tune): Likewise.
2964 (arm_strongarm_tune): Likewise.
2965 (arm_xscale_tune): Likewise.
2966 (arm_9e_tune): Likewise.
2967 (arm_v6t2_tune): Likewise.
2968 (arm_cortex_a5_tune): Likewise.
2969 (arm_cortex_a9_tune): Likewise.
2970 (arm_v6m_tune): Likewise.
2971 (arm_fa726te_tune): Likewise.
2972 (arm_cortex_a15_tune): Use cortex15_extra_costs.
2973 (arm_cortex_tune): Use generict_extra_costs.
2974 (shifter_op_p): New function.
2975 (arm_unspec_cost): Likewise.
2976 (LIBCALL_COST): Define.
2977 (arm_new_rtx_costs): New function.
2978 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
2979 table is available. Use old costs otherwise unless mnew-generic-costs
2980 is specified.
2981 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
2982 (cpu_cost_table): Declare.
2983
24c56925
MS
29842013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
2985
2986 PR target/58460
2987 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
2988 (*subs_mul_imm_<mode>)
2989 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
2990 (*sub_<shift>_<mode>)
2991 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
2992 Remove k constraint.
2993
2ab8f063
IB
29942013-10-03 Ian Bolton <ian.bolton@arm.com>
2995
2996 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
2997 code.
2998 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
2999
79221839
TJ
30002013-10-02 Teresa Johnson <tejohnson@google.com>
3001
3002 * predict.c (probably_never_executed): New function.
3003 (probably_never_executed_bb_p): Invoke probably_never_executed.
3004 (probably_never_executed_edge_p): Ditto.
3005 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3006 Treat profile insanities conservatively.
3007
d441afe0
JDA
30082013-10-02 John David Anglin <danglin@gcc.gnu.org>
3009
3010 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
3011
80f466c4
VM
30122013-10-02 Vladimir Makarov <vmakarov@redhat.com>
3013
3014 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
3015 use it. Use smaller increase for scratch. Don't increase reject
3016 for early clobber scratch.
3017 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
3018 setting eliminated regs except setting fp from hfp.
3019 (lra_eliminate): Check lra_insn_recog_data on NULL.
3020
6e228b4b
MM
30212013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3022
3023 PR target/58587
3024 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
65efa7e7 3025 setting -mvsx-timode by default until the underlying problem is fixed.
6e228b4b
MM
3026 (RS6000_CPU, power7 defaults): Likewise.
3027
11b54a5a
UB
30282013-10-02 Uros Bizjak <ubizjak@gmail.com>
3029
3030 * config/x-linux (host-linux.o): Remove header dependencies.
3031 Use $(COMPILE) and $(POSTCOMPILE).
3032 * config/t-linux-android (linux-android.o): Ditto.
3033
bbc02b69
UB
30342013-10-02 Uros Bizjak <ubizjak@gmail.com>
3035
3036 * Makefile.in (expmed.o-warn): Remove.
3037
440917de
AM
30382013-10-02 Andrew MacLeod <amacleod@redhat.com>
3039
3040 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
3041 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
3042
99206ca9
TJ
30432013-10-02 Teresa Johnson <tejohnson@google.com>
3044
3045 * dojump.c (do_jump_1): Divide probability between
3046 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
3047
56e82b14
TT
30482013-10-02 Tom Tromey <tromey@redhat.com>
3049
3050 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
3051
3d9c733e
AM
30522013-10-02 Andrew MacLeod <amacleod@redhat.com>
3053
3054 * tree-flow.h: Remove some prototypes.
3055 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
3056 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
3057 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
3058 mark_virtual_phi_result_for_renaming): Relocate here.
3059 * tree-into-ssa.h: Add prototypes.
bbc02b69 3060 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
3d9c733e
AM
3061 single_pred_before_succ_order.
3062 (blocks_in_phiopt_order): Rename and move to cfganal.c.
3063 (nonfreeing_call_p) Move to gimple.c.
3064 * cfganal.c (single_pred_before_succ_order): Move and renamed from
3065 tree-ssa-phiopt.c.
3066 * basic-block.h (single_pred_before_succ_order): Add prototype.
3067 * gimple.c (nonfreeing_call_p): Relocate here.
3068 * gimple.h: Add prototype.
3069 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
3070 * tree-ssa-dom.h: New file. Relocate prototypes here.
3071 * tree-ssa.h: Include tree-ssa-dom.h.
3072
78cedfb1
UB
30732013-10-02 Uros Bizjak <ubizjak@gmail.com>
3074
3075 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
3076 Use $(COMPILE) and $(POSTCOMPILE).
3077
3078 * config/alpha/x-alpha (driver-alpha.o): Ditto.
3079
744730a4
AM
30802013-10-02 Andrew MacLeod <amacleod@redhat.com>
3081
3082 * tree-flow.h: Remove some prototypes.
3083 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
3084 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
3085 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
3086 propagate_tree_value*): Move from here to...
3087 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
3088 propagate_tree_value*): Relocate here.
3089 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
3090 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
3091 * gimple-fold.c: Remove gimple-fold.h from include list.
3092 * tree-vrp.c: Remove gimple-fold.h from include list.
3093 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
3094 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
3095 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
3096 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
3097 * sese.c: Add tree-ssa-propagate.h to include list.
3098
826a536d
RB
30992013-10-02 Richard Biener <rguenther@suse.de>
3100
3101 * tree-loop-distribution.c: Include tree-vectorizer.h for
3102 find_loop_location.
3103 (enum partition_kind): Remove PKIND_REDUCTION.
78cedfb1 3104 (struct partition_s): Remove has_writes member, add reduction_p member.
826a536d
RB
3105 (partition_alloc): Adjust.
3106 (partition_builtin_p): Likewise.
3107 (partition_has_writes): Remove.
3108 (partition_reduction_p): New function.
3109 (partition_merge_into): Likewise.
3110 (generate_code_for_partition): Commonize builtin partition
3111 handling tail.
3112 (rdg_cannot_recompute_vertex_p): Remove.
3113 (already_processed_vertex_p): Likewise.
3114 (rdg_flag_vertex): Do not set has_writes.
3115 (classify_partition): Adjust.
3116 (rdg_build_partitions): Do not set has_writes, treat all
3117 partitions as useful.
78cedfb1 3118 (distribute_loop): Record number of library calls generated. Adjust.
826a536d
RB
3119 (tree_loop_distribution): Report number of loops and library
3120 calls generated as opt-info.
3121
4b403ece
AM
31222013-10-02 Andrew MacLeod <amacleod@redhat.com>
3123
3124 * tree-flow.h: Include new .h files. Move prototypes.
3125 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
3126 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
3127 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
3128 * tree-pretty-print.h: Add prototypes from tree-flow.h.
3129 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
3130 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
3131 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
3132 * tree.h (get_ref_base_and_extent): Move prototype out.
78cedfb1 3133 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
4b403ece
AM
3134 tree-dfa.h.
3135 * gimple-low.h: New File. Add prototypes from tree-flow.h.
3136 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
3137 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
3138 * tree-scalar-evolution.c: Include tree.h.
3139 * sese.c: Include tree.h.
3140 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
3141 * dwarf2out.c: Include tree-dfa.h.
3142 * tree-chrec.c: Include tree.h.
3143 * tree-data-ref.c: Include tree.h.
3144
1d2151c6
YZ
31452013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
3146
3147 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
3148 Fix whitespace.
3149
441ad147
RO
31502013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3151
3152 * config/t-sol2 (sol2-c.o): Remove header dependencies.
3153 Use $(COMPILE) and $(POSTCOMPILE).
3154 (sol2-cxx.o): Likewise.
3155 (sol2-stubs.o): Likewise.
3156 (sol2.o): Likewise.
3157 * config/x-solaris (host-solaris.o): Likewise.
3158
3159 * config/sparc/t-sparc (sparc.o): Remove.
3160 (sparc-c.o): Remove header dependencies.
3161 Use $(COMPILE) and $(POSTCOMPILE).
3162 * config/sparc/x-sparc: Likewise.
3163
2deaf8b0
JR
31642013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
3165
3166 * config/arc/arc-opts.h: Add 2013 to Copyright years.
3167 * config/arc/arc700.md: Likewise.
3168 * config/arc/arc-modes.def: Likewise.
3169 * config/arc/arc-simd.h: Likewise.
3170 * config/arc/t-arc-uClibc: Likewise.
3171 * config/arc/t-arc-newlib: Likewise.
3172
f6fe771a
RL
31732013-10-02 Renlin Li <renlin.li@arm.com>
3174
78cedfb1
UB
3175 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
3176 plus_constant.
f6fe771a
RL
3177 (aarch64_expand_epilogue): Likewise.
3178
0916f876
YZ
31792013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3180 Yufeng Zhang <yufeng.zhang@arm.com>
3181
3182 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
3183 declaration.
3184 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
3185 'base_in' represent a conversion and legal_cast_p_1 holds; set
3186 'base_in' with the returned value from get_unwidened.
3187
ebfcd719
KT
31882013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3189
3190 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
3191 plus_constant is not used.
3192
157ca3e9
WM
31932013-10-01 Wei Mi <wmi@google.com>
3194
78cedfb1 3195 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
157ca3e9
WM
3196 * config/i386/i386.md: Add define_peephole2 to
3197 break partial reg stall for cvtss2sd/cvtsd2ss.
3198
cd4dd8f0
JR
31992013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3200
3201 * config/arc/arc.c (pass_arc_ifcvt::clone):
78cedfb1 3202 Update for ctxt_ -> m_ctxt change.
cd4dd8f0 3203
1465e5cf
JL
32042013-10-01 Jeff Law <law@redhat.com>
3205
3206 * tree-ssa-threadupdate.c (struct redirection_data): Delete
3207 outgoing_edge and intermediate_edge fields. Instead store the path.
3208 (redirection_data::hash): Hash on the last edge's destination index.
3209 (redirection_data::equal): Check the entire thread path.
3210 (lookup_redirectio_data): Corresponding changes.
3211 (create_edge_and_update_destination_phis): Likewise.
3212 (thread_single_edge): Likewise.
3213
25c606cb 32142013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 3215 Diego Novillo <dnovillo@google.com>
25c606cb
JR
3216
3217 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
3218 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
3219 (vld32wh_insn, vld32wl_insn): Delete commented-out old
3220 versions of these patterns.
3221
0ccbc132
JR
3222 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
3223 (__builtin_arc_aligned): Likewise.
3224
f55d4a20
JR
3225 * config/arc/arc.md: Expand adc_0 comment stating the intended
3226 purpose and why it isn't ready.
3227 Replace commented out call_value_via_label_mixed with a
3228 plain comment about bl_s.
3229
5719867d 3230 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
3231 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
3232 Remove if (1) condition.
3233 (arc_encode_section_info): Fix comment.
3234
6462fab0
JR
32352013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3236
3237 * config/arc/arc.c (arc_conditional_register_usage):
3238 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
3239 Also set reg_alloc_order for DMA config regs.
3240
5d5f6720
JR
32412013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3242 Jeremy Bennett <jeremy.bennett@embecosm.com>
3243
3244 * doc/install.texi (--with-cpu): Mention ARC.
3245 (arc-*-elf32): New paragraph.
3246 (arc-linux-uclibc): Likewise.
3247 * doc/md.texi (Machine Constraints): Add ARC part.
3248 * doc/invoke.texi: (menu): Add ARC Options.
3249 (Machine Dependent Options) <ARC Options>: Add synopsis.
3250 (node ARC Options): Add.
3251 * doc/extend.texi (long_call / short_call attribute): Add ARC.
3252 (ARC Built-in Functions): New section defining
3253 generic ARC built-in functions.
3254 (ARC SIMD Built-in Functions): New section defining SIMD specific
3255 built-in functions.
3256 (Declaring Attributes of Functions): Extended
3257 description of short_call and long_call attributes for ARC and
3258 added index entries.
3259
526b7aee
SV
32602013-10-01 Saurabh Verma <saurabh.verma@codito.com>
3261 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
3262 Joern Rennecke <joern.rennecke@embecosm.com>
3263 Muhammad Khurram Riaz <khurram.riaz@arc.com>
3264 Brendan Kehoe <brendan@zen.org>
3265 Michael Eager <eager@eagercon.com>
3266 Simon Cook <simon.cook@embecosm.com>
3267 Jeremy Bennett <jeremy.bennett@embecosm.com>
3268
3269 * config/arc, common/config/arc: New directories.
3270
53426f6c
JR
32712013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
3272 Brendan Kehoe <brendan@zen.org>
3273 Simon Cook <simon.cook@embecosm.com>
3274
3275 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
3276
1df9f5a9
AM
32772013-10-01 Andrew MacLeod <amacleod@redhat.com>
3278
3279 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
3280 * tree-ssa-coalesce.h: New. Move prototype to here.
3281 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
3282 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
3283 (gimple_can_coalesce_p): Move to...
3284 * gimple.c (gimple_can_coalesce_p): Here.
3285
80560f95
AM
32862013-10-01 Andrew MacLeod <amacleod@redhat.com>
3287
3288 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
3289 (dump_decl_set): Move to gimple.c.
3290 * gimple.h: Don't include tree-ssa-operands.h.
3291 (dump_decl_set): Add prototype.
3292 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
3293 Move to gimple-ssa.h.
3294 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
3295 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
3296 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
3297 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
3298 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
3299 than PHI_ARG_DEF.
3300 (dump_decl_set): Relocate here.
3301 * gimple-ssa.h: New file.
3302 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
3303 Relocate from gimple.h.
3304 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
3305 * tree-ssa-operands.c (swap_ssa_operands): Rename from
3306 swap_tree_operands and remove non-ssa path.
3307 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
3308 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
3309 swap_ssa_operands.
3310 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
3311 vect_is_simple_reduction_1): Use swap_ssa_operands.
3312 * tree-flow.h: Move various prototypes to tree-phinodes.h.
3313 (enum need_phi_state): Move to tree-into-ssa.c.
3314 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
3315 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
3316 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
3317 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
3318 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
3319 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
3320 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
3321 num_imm_uses): Move to ssa-iterators.h.
3322 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
7ab4168e 3323 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
80560f95
AM
3324 tree-phinodes.h.
3325 (op_iter_done, op_iter_next_def, op_iter_next_tree,
3326 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
3327 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
3328 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
3329 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
3330 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
3331 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
3332 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
3333 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
3334 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
3335 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
3336 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
3337 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
3338 (set_phi_nodes): Move to tree-phinodes.h.
3339 * tree-ssa-operands.h (enum ssa_op_iter_type,
3340 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
3341 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
3342 (dump_decl_set): Remove prototype.
3343 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
3344 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
3345 (set_phi_nodes): Relocate from tree-flow-inline.h.
3346 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
3347 tree-flow-inline.h
3348 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
3349 include list. Temporarily add gimple.h to include list.
3350 * ssa-iterators.h: New file.
3351 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
3352 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
3353 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
3354 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
3355 Relocate from tree-ssa-operands.h.
3356 (delink_imm_use, link_imm_use_to_list, link_imm_use,
3357 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
3358 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
3359 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
3360 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
3361 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
3362 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
3363 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
3364 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
3365 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
3366 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
3367 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
3368 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
3369 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
3370 Relocate from tree-flow-inline.h.
3371 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
3372
8da00d65
VP
33732013-10-01 Vidya Praveen <vidyapraveen@arm.com>
3374
3375 * aarch64-simd.md
3376 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
3377 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
3378 Insert '\t' to output template.
3379 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
3380 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
3381 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
3382 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
3383
e2ebe1c2
UB
33842013-10-01 Uros Bizjak <ubizjak@gmail.com>
3385
3386 * doc/install.texi (Host/target specific installation notes for GCC):
3387 Put @anchor before @heading.
3388 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
3389 Use @email for email addresses.
3390
aee2d611
JL
33912013-10-01 Jeff Law <law@redhat.com>
3392
3393 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
3394 a vec. Only delete the path if we create one without successfully
3395 registering a jump thread.
3396 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
3397 as a pointer.
3398 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
3399 (paths): New vector of jump threading paths.
3400 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
3401 (THREAD_PATH): New accessor macro for the entire thread path.
3402 (lookup_redirection_data): Get intermediate and final outgoing edge
3403 from the thread path.
3404 (create_edge_and_update_destination_phis): Copy the threading path.
3405 (ssa_fix_duplicate_block_edges): Get edges and block types from the
3406 jump threading path.
3407 (ssa_redirect_edges): Get edges and block types from the jump threading
3408 path. Free the path vector.
3409 (thread_block): Get edges from the jump threading path. Look at the
3410 entire path to see if we thread to a loop exit. If we cancel a jump
3411 thread request, then free the path vector.
3412 (thread_single_edge): Get edges and block types from the jump threading
3413 path. Free the path vector.
3414 (thread_through_loop_header): Get edges and block types from the jump
3415 threading path. Free the path vector.
3416 (mark_threaded_blocks): Iterate over the vector of paths and store
3417 the path on the appropriate edge. Get edges and block types from the
3418 jump threading path.
3419 (mark_threaded_blocks): Get edges and block types from the jump
3420 threading path. Free the path vector.
3421 (thread_through_all_blocks): Use the vector of paths rather than
3422 a vector of 3-edge sets.
3423 (register_jump_thread): Accept pointer to a path vector rather
3424 than the path vector itself. Store the path vector for later use.
3425 Simplify.
3426
966f97ac 34272013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 3428 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
3429
3430 PR target/58574
3431 * config/s390/s390.c (s390_split_branches): Modify check for table
3432 jump insns.
3433 (s390_chunkify_start): Rearrange table jump insn check in order to
3434 deal with compare and branch insns correctly.
3435
3a323a38
KV
34362013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
3437
3438 PR target/58578
3439 Revert
3440 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3441 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
3442 define_insn_and_split.
3443 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
3444 (shiftsi3_compare): New pattern.
3445 (rrx): New pattern.
3446 * config/arm/unspecs.md (UNSPEC_RRX): New.
3447
90444831
AM
34482013-10-01 Alan Modra <amodra@gmail.com>
3449
3450 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
3451 casing inout operands.
3452
818625cf
RB
34532013-10-01 Richard Biener <rguenther@suse.de>
3454
3455 PR tree-optimization/58553
3456 * tree-loop-distribution.c (struct partition_s): Add niter member.
3457 (classify_partition): Populate niter member for the partition
3458 and properly identify whether the relevant store happens before
3459 or after the loop exit.
3460 (generate_memset_builtin): Use niter member from the partition.
3461 (generate_memcpy_builtin): Likewise.
3462
30f641cd
RS
34632013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
3464
3465 * vec.h (vec_prefix, vec): Prefix member names with "m_".
3466 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
3467
65d3284b
RS
34682013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
3469
3470 * basic-block.h (edge_list): Prefix member names with "m_".
3471 * context.h (context): Likewise.
3472 * domwalk.h (dom_walker): Likewise.
3473 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
3474 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
3475 * hash-table.h (hash_table): Likewise.
3476 * machmode.h (bit_field_mode_iterator): Likewise.
3477 * pass_manager.h (pass_list): Likewise.
3478 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
3479 * tree-pass.h (pass_data): Likewise.
3480 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
3481 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
3482 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
3483 * asan.c (pass_data_asan): Update accordingly.
3484 * cfganal.c (control_dependences::find_control_dependence): Likewise.
3485 (control_dependences::control_dependences): Likewise.
3486 (control_dependences::~control_dependences): Likewise.
3487 (control_dependences::~control_dependences): Likewise.
3488 (control_dependences::get_edges_dependent_on): Likewise.
3489 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
3490 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
3491 * context.c (gcc::context::context): Likewise.
3492 * cprop.c (pass_rtl_cprop::clone): Likewise.
3493 * domwalk.c (dom_walker::walk): Likewise.
3494 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
3495 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
3496 * mode-switching.c (pass_mode_switching::clone): Likewise.
3497 * passes.c (opt_pass::opt_pass): Likewise.
3498 (pass_manager::pass_manager): Likewise.
3499 * predict.c (pass_strip_predict_hints::clone): Likewise.
3500 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
3501 (pass_split_all_insns::clone): Likewise.
3502 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
3503 Likewise.
3504 (bit_field_mode_iterator::next_mode): Likewise.
3505 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
3506 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
3507 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
3508 * tree-complex.c (pass_lower_complex::clone): Likewise.
3509 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
3510 * tree-object-size.c (pass_object_sizes::clone): Likewise.
3511 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
3512 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
3513 (pass_fold_builtins::clone): Likewise.
3514 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
3515 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
3516 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
3517 (pass_cd_dce::clone): Likewise.
3518 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
3519 (pass_phi_only_cprop::clone): Likewise.
3520 * tree-ssa-dse.c (pass_dse::clone): Likewise.
3521 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
3522 * tree-ssa-loop.c (pass_lim::clone): Likewise.
3523 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
3524 * tree-ssa-pre.c (pass_fre::clone): Likewise.
3525 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
3526 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
3527 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
3528 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
3529 * tree-vrp.c (pass_vrp::clone): Likewise.
3530 * tsan.c (pass_tsan::clone): Likewise.
3531
f66d0891
JJ
35322013-09-30 Jakub Jelinek <jakub@redhat.com>
3533
d2a365a8
JJ
3534 PR middle-end/58564
3535 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
3536 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
3537
f66d0891
JJ
3538 PR middle-end/58564
3539 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
3540 optimization, punt if sign_bit_p looked through any zero extension.
3541
05357ac3
TJ
35422013-09-30 Teresa Johnson <tejohnson@google.com>
3543
3544 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
3545 Update redirected out edge count in joiner case.
3546 (ssa_redirect_edges): Common the joiner and non-joiner cases
3547 so that joiner case gets profile updates.
3548
ca406576
RB
35492013-09-30 Richard Biener <rguenther@suse.de>
3550
3551 PR tree-optimization/58554
e2ebe1c2
UB
3552 * tree-loop-distribution.c (classify_partition): Require
3553 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
3554 (tree_loop_distribution): Calculate dominance info.
3555
92d649c4
VK
35562013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
3557
3558 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
3559 (NO_PROFILE_COUNTERS): Likewise.
3560 (PROFILE_HOOK): Likewise.
3561 (FUNCTION_PROFILER): Likewise.
3562 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
3563
bd9534e2
IS
35642013-09-30 Iain Sandoe <iain@codesourcery.com>
3565
3566 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
3567 calls and defines in TARGET_MACHO conditional.
3568 (load_macho_picbase_di): Likewise.
3569 (reload_macho_picbase): Likewise.
3570 (reload_macho_picbase_si): Likewise.
3571 (reload_macho_picbase_di): Likewise.
3572 (nonlocal_goto_receiver): Likewise.
3573
4494fbc9
NC
35742013-09-30 Nick Clifton <nickc@redhat.com>
3575
3576 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
3577 that use the MSP430X ISA.
3578 (msp430_option_override): Scan -mmcu command line option for any
3579 MCU name that supports the MSP430X ISA.
3580 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
3581 -mmcu options which enable the MSP430X ISA.
3582
791d9044
RB
35832013-09-30 Richard Biener <rguenther@suse.de>
3584
3585 PR middle-end/58532
3586 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
3587 before looking for setjmp-like calls.
3588
e1c5c877
IS
35892013-09-29 Iain Sandoe <iain@codesourcery.com>
3590
3591 PR target/10901
3592 * config/darwin-protos.h (machopic_get_function_picbase): New.
3593 * config/darwin.c (machopic_get_function_picbase): New.
3594 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
3595 label for a new func. (load_macho_picbase_di): Likewise.
3596 (reload_macho_picbase): New expand.
3597 (reload_macho_picbase_si): New insn.
3598 (reload_macho_picbase_di): New insn.
3599 (nonlocal_goto_receiver): New define and split.
3600 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
3601 (unspecv enum): Add UNSPECV_NLGR.
3602
749278c5
IS
36032013-09-29 Iain Sandoe <iain@codesourcery.com>
3604
3605 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
3606 that altivec registers are correctly sized on Darwin.
3607
2c43a51c
IS
36082013-09-29 Iain Sandoe <iain@codesourcery.com>
3609
3610 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
3611 darwin-driver.o): Use COMPILE and POSTCOMPILE.
3612 * config/x-darwin (host-darwin.o): Likewise.
3613 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
3614 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
3615 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
3616
7a5911d3
UB
36172013-09-29 Uros Bizjak <ubizjak@gmail.com>
3618
3619 * doc/invoke.texi: Fix usage of @tie{} command.
3620
3f67a73d
EB
36212013-09-29 Eric Botcazou <ebotcazou@adacore.com>
3622
3623 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
3624
9ac2f538
JH
36252013-09-28 Jan Hubicka <jh@suse.cz>
3626
3627 * config/i386/x86-tune.def: Add documentation for each of the options;
3628 add whitespace.
3629
b0ff06da
JH
36302013-09-28 Jan Hubicka <jh@suse.cz>
3631
7a5911d3
UB
3632 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
3633 generic.
b0ff06da
JH
3634 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
3635 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
3636 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
3637 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
3638 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
3639
c3284718
RS
36402013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
3641
3642 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
3643 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
3644 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
3645 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
3646 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
3647 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
3648 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
3649 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
3650 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
3651 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
3652 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
3653 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
3654 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
3655 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
3656 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
3657 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
3658 gimple.h, godump.c, graphite-clast-to-gimple.c,
3659 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
3660 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
3661 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
3662 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
3663 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
3664 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
3665 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
3666 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
3667 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
3668 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
3669 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
3670 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
3671 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
3672 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
3673 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
3674 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
3675 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
3676 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
3677 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
3678 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
3679 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
3680 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
3681 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
3682 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
3683 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
3684 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3685 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
3686 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
3687 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3688 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
3689 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
3690 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
3691 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
3692 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
3693 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
3694 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
3695 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
3696 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
3697 whitespace before "(".
3698
c6285bd7
SL
36992013-09-28 Sandra Loosemore <sandra@codesourcery.com>
3700
3701 * expr.h (extract_bit_field): Remove packedp parameter.
3702 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
3703 from forward declaration.
3704 (store_split_bit_field): Remove packedp arg from calls to
3705 extract_fixed_bit_field.
3706 (extract_bit_field_1): Remove packedp parameter and packedp
3707 argument from recursive calls and calls to extract_fixed_bit_field.
3708 (extract_bit_field): Remove packedp parameter and corresponding
3709 arg to extract_bit_field_1.
3710 (extract_fixed_bit_field): Remove packedp parameter. Remove code
3711 to issue warnings.
3712 (extract_split_bit_field): Remove packedp arg from call to
3713 extract_fixed_bit_field.
3714 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
3715 (copy_blkmode_from_reg): Likewise.
3716 (copy_blkmode_to_reg): Likewise.
3717 (read_complex_part): Likewise.
3718 (store_field): Likewise.
3719 (expand_expr_real_1): Likewise.
3720 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
3721 to extract_bit_field.
3722 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
3723 call to extract_bit_field.
3724 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
3725 call to extract_bit_field.
3726 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
3727 and special packedp behavior from -fstrict-volatile-bitfields
3728 documentation.
3729
522d4efc
JBG
37302013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3731
3732 * lra-eliminations.c (init_elim_table): Guard value_p.
3733
19cdb489
MM
37342013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
3735
3736 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3737 DFmode, DImode, and SFmode in the upper VSX registers based on the
3738 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
3739 if -mpower8-vector. Combine -mvsx-timode handling with the rest
3740 of the VSX register handling.
3741
3742 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
3743 (f32_sv): Likewise.
3744 (zero_extendsidi2_lfiwzx): Add support for loading into the
3745 Altivec registers with -mpower8-vector. Use wu/wv constraints to
3746 only do VSX memory options on Altivec registers.
3747 (extendsidi2_lfiwax): Likewise.
3748 (extendsfdf2_fpr): Likewise.
3749 (mov<mode>_hardfloat, SF/SD modes): Likewise.
3750 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
3751 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
3752 (movdi_internal64): Likewise.
3753
d6d11272
XDL
37542013-09-27 Xinliang David Li <davidxl@google.com>
3755
3756 * opts.c (finish_options): Adjust parameters
3757 according to vect cost model.
3758 (common_handle_option): Set dynamic vect cost
3759 model for FDO.
3760 targhooks.c (default_add_stmt_cost): Compute stmt cost
3761 unconditionally.
3762 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3763 Use helper function.
3764 * tree-vectorizer.h (unlimited_cost_model): New function.
3765 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
3766 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
3767 function.
3768 (vect_enhance_data_refs_alignment): Ditto.
3769 * flag-types.h: New enum.
3770 * common/config/i386/i386-common.c (ix86_option_init_struct):
3771 No need to initialize vect_cost_model flag.
3772 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
3773 unconditionally.
3774
ac1857a3
DN
37752013-09-27 Diego Novillo <dnovillo@google.com>
3776
3777 * gimple.h (enum ssa_mode): Remove.
3778
0d0e2af6
PM
37792013-09-27 Paulo Matos <pmatos@broadcom.com>
3780
3781 * cfgloop.h (number_of_loops): Fix typo in check for null.
3782
09dc585e
JJ
37832013-09-27 Jakub Jelinek <jakub@redhat.com>
3784
3785 PR middle-end/58551
3786 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
3787 are children of outermost saved_cfun's loop, and set it up to
3788 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
3789 if loop != loop0 and SESE region contains bbs that belong to loop0.
3790
ec5a3504
RS
37912013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3792
3793 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
3794 (binary_scale_code_p, get_base_term, get_index_term): New functions.
3795 (set_address_segment, set_address_base, set_address_index)
3796 (set_address_disp): Accept the argument unconditionally.
3797 (baseness): Remove must_be_base_p and must_be_index_p checks.
3798 (decompose_normal_address): Classify as much as possible in the
3799 main loop.
3800
f91aec98
RS
38012013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
3802
3803 * cse.c (count_reg_usage): Handle INT_LIST.
3804 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
3805 * reginfo.c (reg_scan_mark_refs): Likewise.
3806 * reload1.c (eliminate_regs_1): Likewise.
3807
a9195970
IS
38082013-09-27 Iain Sandoe <iain@codesourcery.com>
3809
3810 PR middle-end/58547
3811 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
3812 signed.
3813
e6f1c509
RB
38142013-09-27 Richard Biener <rguenther@suse.de>
3815
3816 PR tree-optimization/58459
3817 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
3818 restriction not propagating into loops.
3819
84f48495
FW
38202013-09-26 Florian Weimer <fw@deneb.enyo.de>
3821
3822 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
3823 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
3824 * doc/tree-ssa.texi (Walking use-def chains): Delete.
3825
74fc8b8a
RB
38262013-09-26 Richard Biener <rguenther@suse.de>
3827
7a5911d3 3828 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 3829
b4ada065
RB
38302013-09-26 Richard Biener <rguenther@suse.de>
3831
3832 * alias.h (component_uses_parent_alias_set): Rename to ...
3833 (component_uses_parent_alias_set_from): ... this.
3834 * alias.c (component_uses_parent_alias_set): Rename to ...
3835 (component_uses_parent_alias_set_from): ... this and return
3836 the desired parent.
3837 (reference_alias_ptr_type_1): Use the result from
3838 component_uses_parent_alias_set_from instead of stripping
3839 components one at a time.
3840 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
3841
78bca40d
AM
38422013-09-26 Andrew MacLeod <amacleod@redhat.com>
3843
7a5911d3
UB
3844 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
3845 Move prototypes to...
78bca40d
AM
3846 * tree-ssa-ter.h: New File. Move prototypes here.
3847 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
3848 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
3849 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 3850 from is_replaceable_p.
78bca40d
AM
3851 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
3852 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
3853 (process_replaceable): Use ter_is_replaceable_p.
3854 (find_replaceable_in_bb): Use ter_is_replaceable_p.
3855 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
3856 newly refactored ssa_is_replaceable_p.
3857 * cfgexpand.c: Include tree-outof-ssa.h.
3858 * ssaexpand.h: Delete.
3859
ff2a63a7
AM
38602013-09-26 Andrew MacLeod <amacleod@redhat.com>
3861
3862 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
3863 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
3864 tree-ssa.c
3865 (create_gimple_tmp): Delete.
3866 (get_expr_type, build_assign, build_type_cast): Move to...
3867 * gimple-builder.c: New File.
3868 (get_expr_type): Relocate from gimple.c.
3869 (build_assign, build_type_cast): Change to only create ssanames.
3870 * gimple.h: Move prototypes to...
3871 * gimple-builder.h: New File. Here.
3872 * tree-ssa.h: And here.
3873 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
3874 count_uses_and_derefs): Relocate from gimple.c.
3875 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
3876 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
3877 * tree-ssa-math-opts (execute_cse_reciprocals): Use
3878 gimple_replace_ssa_lhs.
3879 * asan.c: Include gimple-builder.h.
3880 * Makefile.in: Add gimple-builder.o.
3881
a2544177
RB
38822013-09-26 Richard Biener <rguenther@suse.de>
3883
3884 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
3885 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
3886 (loe_visit_block): Use gcc_checking_assert.
3887 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
3888 gimple_assign_ssa_name_copy_p.
3889 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
3890 change.
3891
6d1ca9a0
DE
38922013-09-26 David Edelsohn <dje.gcc@gmail.com>
3893
3894 * config/rs6000/t-rs6000 (rs6000.o): Remove.
3895 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
3896
46e950db
RB
38972013-09-26 Richard Biener <rguenther@suse.de>
3898
3899 PR tree-optimization/58539
3900 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
3901 the fact that debug statements are not taking part in loop-closed
3902 SSA construction.
3903
40ada30a
NC
39042013-09-26 Nick Clifton <nickc@redhat.com>
3905
3906 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
3907 time warning message.
3908 (msp430_print_operand_raw): Delete unused letter parameter.
3909 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3910 (msp430_print_operand_address): New function.
3911 (msp430_print_operand): Move address printing code from here to
3912 new function.
3913 * config/msp430/msp430.md (movsipsi2): Add comment in generated
3914 assembler.
3915 (zero_extendpsisi2): Likewise.
3916 (extendpsisi2): New pattern.
3917 (andneghi3): New pattern.
3918
38e8f663
YR
39192013-09-26 Yvan Roux <yvan.roux@linaro.org>
3920
3921 * config/aarch64/aarch64.opt (mlra): New option.
3922 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
3923 (TARGET_LRA_P): Define.
3924
4167e8d4
EB
39252013-09-26 Eric Botcazou <ebotcazou@adacore.com>
3926
3927 * expr.c (expand_assignment): Remove obsolete comment.
3928
5254eac4
JL
39292013-09-25 Jeff Law <law@redhat.com>
3930
3931 * tree-flow.h (thread_through_all_blocks): Prototype moved into
3932 tree-ssa-threadupdate.h.
3933 (register_jump_thread): Similarly.
3934 * tree-ssa-threadupdate.h: New header file.
3935 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
3936 * tree-vrp.c: Likewise.
3937 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
3938 (thread_around_empty_blocks): Change type of path vector argument to
3939 an edge,type pair from just an edge. Initialize both elements when
3940 appending to a jump threading path. Tweak references to elements
3941 appropriately.
3942 (thread_across_edge): Similarly. Release memory for the elements
3943 as needed.
3944 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
3945 (dump_jump_thread_path): New function broken out from
3946 register_jump_thread.
3947 (register_jump_thread): Use dump_jump_thread_path. Change type of
3948 path vector entries. Search the path for NULL edges and dump
3949 the path if one is found. Tweak the conversion of path to 3-edge
3950 form to use the block copy type information embedded in the path.
3951
20f114a3
YR
39522013-09-25 Yvan Roux <yvan.roux@linaro.org>
3953
3954 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
3955
3936bafc
YR
39562013-09-25 Yvan Roux <yvan.roux@linaro.org>
3957 Vladimir Makarov <vmakarov@redhat.com>
3958
3959 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
3960 from the least significant bit.
3961 (strip_address_mutations): Add bitfield operations handling.
3962 (must_be_index_p): Add shifting and rotate operations handling.
3963 (set_address_base): Use must_be_base_p predicate.
4167e8d4 3964 (set_address_index): Use must_be_index_p predicate.
3936bafc 3965
b86f6e9e
AI
39662013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3968 Sergey Lega <sergey.s.lega@intel.com>
3969 Anna Tikhonova <anna.tikhonova@intel.com>
3970 Ilya Tocar <ilya.tocar@intel.com>
3971 Andrey Turetskiy <andrey.turetskiy@intel.com>
3972 Ilya Verbin <ilya.verbin@intel.com>
3973 Kirill Yukhin <kirill.yukhin@intel.com>
3974 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3975
3976 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
3977 Use new names.
3978 (ix86_expand_vector_move_misalign): Support new unaligned load and
3979 stores and use new names.
3980 (CODE_FOR_sse2_storedqu): Rename to ...
3981 (CODE_FOR_sse2_storedquv16qi): ... this.
3982 (CODE_FOR_sse2_loaddqu): Rename to ...
3983 (CODE_FOR_sse2_loaddquv16qi): ... this.
3984 (CODE_FOR_avx_loaddqu256): Rename to ...
3985 (CODE_FOR_avx_loaddquv32qi): ... this.
3986 (CODE_FOR_avx_storedqu256): Rename to ...
3987 (CODE_FOR_avx_storedquv32qi): ... this.
3988 * config/i386/i386.md (fpint_logic): New.
3989 * config/i386/sse.md (VMOVE): Extend for AVX512.
3990 (VF): Ditto.
3991 (VF_128_256): New.
3992 (VF_512): Ditto.
3993 (VI_UNALIGNED_LOADSTORE): Ditto.
3994 (sse2_avx_avx512f): Ditto.
3995 (sse2_avx2): Extend for AVX512.
3996 (sse4_1_avx2): Ditto.
3997 (avx2_avx512f): New.
3998 (sse): Extend for AVX512.
3999 (sse2): Ditto.
4000 (sse4_1): Ditto.
4001 (avxsizesuffix): Ditto.
4002 (sseintvecmode): Ditto.
4003 (ssePSmode): Ditto.
4004 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
4005 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
4006 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
4007 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
4008 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
4009 (<sse2_avx_avx512f>_storedqu<mode): ... this.
4010 (<sse>_movnt<mode>): Replace constraint "x" with "v".
4011 (STORENT_MODE): Extend for AVX512.
4012 (*absneg<mode>2): Replace constraint "x" with "v".
4013 (*mul<mode>3): Ditto.
4014 (*ieee_smin<mode>3): Ditto.
4015 (*ieee_smax<mode>3): Ditto.
4016 (avx_cmp<mode>3): Replace VF with VF_128_256.
4017 (*<sse>_maskcmp<mode>3_comm): Ditto.
4018 (<sse>_maskcmp<mode>3): Ditto.
4019 (<sse>_andnot<mode>3): Extend for AVX512.
4020 (<code><mode>3, anylogic): Replace VF with VF_128_256.
4021 (<code><mode>3, fpint_logic): New.
4022 (*<code><mode>3): Extend for AVX512.
4023 (avx512flogicsuff): New.
4024 (avx512f_<logic><mode>): Ditto.
4025 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
4026 VF_128_256.
4027 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
4028 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
4029 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
4030 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
4031 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
4032 (xop_vpermil2<mode>3): Ditto.
4033 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
4034 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
4035 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
4036 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
4037
4d44d03c
TT
40382013-09-25 Tom Tromey <tromey@redhat.com>
4039
4040 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
4041 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
4042 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
4043 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
4044 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
4045 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
4046 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
4047 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
4048 (GRAPHITE_HTAB_H): Remove.
4049
86aaf68d
TT
40502013-09-25 Tom Tromey <tromey@redhat.com>
4051
4052 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
4053
c987deb8
TT
40542013-09-25 Tom Tromey <tromey@redhat.com>
4055
4056 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
4057
9439747e
TT
40582013-09-25 Tom Tromey <tromey@redhat.com>
4059
4060 * config/i386/t-i386 (i386.o): Remove.
4061 (i386-c.o): Use COMPILE and POSTCOMPILE.
4062
aefc31a1
TT
40632013-09-25 Tom Tromey <tromey@redhat.com>
4064
4065 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
4066
b6541edc
TT
40672013-09-25 Tom Tromey <tromey@redhat.com>
4068
4069 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
4070 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
4071 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
4072 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
4073 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
4074 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
4075 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
4076 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
4077 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
4078 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
4079 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
4080 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
4081 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
4082 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
4083 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
4084 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
4085 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
4086 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
4087 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
4088 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
4089 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
4090 (tree-ssa-pre.o, tree-ssa-sccvn.o)
4091 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
4092 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
4093 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
4094 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
4095 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
4096 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
4097 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
4098 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
4099 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
4100 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
4101 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
4102 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
4103 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
4104 (graphite-clast-to-gimple.o, graphite-dependences.o)
4105 (graphite-interchange.o, graphite-poly.o)
4106 (graphite-scop-detection.o, graphite-sese-to-poly.o)
4107 (graphite-optimize-isl.o, tree-vect-loop.o)
4108 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
4109 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
4110 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
4111 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
4112 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
4113 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
4114 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
4115 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
4116 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
4117 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
4118 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
4119 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
4120 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
4121 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
4122 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
4123 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
4124 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
4125 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
4126 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
4127 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
4128 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
4129 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
4130 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
4131 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
4132 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
4133 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
4134 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
4135 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
4136 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
4137 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
4138 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
4139 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
4140 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
4141 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
4142 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
4143 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
4144 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
4145 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
4146 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
4147 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
4148 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
4149 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
4150 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
4151 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
4152 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
4153 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
4154 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
4155 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
4156 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
4157 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
4158 (gcov-dump.o): Remove.
4159 (default-c.o): Use COMPILE and POSTCOMPILE.
4160 (CFLAGS-gcc.o): New variable.
4161 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
4162
8c796d19
TT
41632013-09-25 Tom Tromey <tromey@redhat.com>
4164
4165 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
4166 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
4167 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
4168 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
4169 (c-family/c-pragma.o, c-family/c-pretty-print.o)
4170 (c-family/c-semantics.o, c-family/c-ada-spec.o)
4171 (c-family/array-notation-common.o, c-family/stub-objc.o)
4172 (c-family/c-ubsan.o): Remove.
4173
0a6c2227
TT
41742013-09-25 Tom Tromey <tromey@redhat.com>
4175
4176 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
4177
f3bc55f0
TT
41782013-09-25 Tom Tromey <tromey@redhat.com>
4179
4180 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
4181 to add -DENABLE_SHARED_LIBGCC.
4182 (gcc.o): Don't use subshell.
4183
c11c795e
TT
41842013-09-25 Tom Tromey <tromey@redhat.com>
4185
4186 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
4187 * configure.ac: Don't invoke AM_PROG_CC_C_O.
4188 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
4189 * configure, config.in: Rebuild.
4190
043378c3
TT
41912013-09-25 Tom Tromey <tromey@redhat.com>
4192
4193 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
4194 (COMPILE, POSTCOMPILE): New variables.
4195 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
4196 (DEPFILES): New variable.
4197 Include ".Po" files.
4198 * configure.ac: Add checks for dependency checking.
4199 * configure, aclocal.m4: Regenerate.
4200
eab34643
TT
42012013-09-25 Tom Tromey <tromey@redhat.com>
4202
4203 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 4204 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 4205
d2db5e91
TT
42062013-09-25 Tom Tromey <tromey@redhat.com>
4207
4208 * Makefile.in (generated_files): Add options.h,
4209 target-hooks-def.h, insn-opinit.h,
4210 common/common-target-hooks-def.h, pass-instances.def,
4211 c-family/c-target-hooks-def.h.
4212
af33629e
JL
42132013-09-25 Jeff Law <law@redhat.com>
4214
4215 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
4216 than foo[foo.length () - 1] to access last member in a vec.
4217 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
4218
ed0d3051
RB
42192013-09-25 Richard Biener <rguenther@suse.de>
4220
4221 PR middle-end/58521
4222 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
4223
123485ca
JH
42242013-09-25 Jan Hubicka <jh@suse.cz>
4225
4226 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
4227 test.
4228
d70b0f1f
MP
42292013-09-25 Marek Polacek <polacek@redhat.com>
4230
4231 PR sanitizer/58420
4232 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
4233 when determining the type name.
4234
e3f02798
OE
42352013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
4236
4237 * config/sh/sh.md: Fix formatting.
4238
7a5911d3 42392013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 4240
7a5911d3
UB
4241 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
4242 max peel iterations parameter.
4f17aa0b
XDL
4243 * param.def: New parameter.
4244 * doc/invoke.texi: Document New parameter.
4245
0498471b
CL
42462013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
4247
4248 * gimple-pretty-print.c: Various whitespace tweaks.
4249 * tree-core.h: Likewise.
4250 * tree-pretty-print.c: Likewise.
4251 * tree-ssa-alias.c: Likewise.
4252 * tree-ssa-copy.c: Likewise.
4253 * tree-ssanames.c: Likewise.
4254 * tree-ssanames.h: Likewise.
4255 * tree-vrp.c: Likewise.
4256
5a8c2b57
AM
42572013-09-24 Alan Modra <amodra@gmail.com>
4258
4259 PR middle-end/57134
4260 PR middle-end/57586
7a5911d3
UB
4261 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
4262 for output operands that disallow regs. Don't use EXPAND_WRITE on
4263 inout operands.
5a8c2b57 4264
f40333af
RB
42652013-09-24 Richard Biener <rguenther@suse.de>
4266
4267 PR middle-end/58513
4268 * tree.c (reference_alias_ptr_type): Move ...
4269 * alias.c (reference_alias_ptr_type): ... here and implement
4270 in terms of the new reference_alias_ptr_type_1.
4271 (ref_all_alias_ptr_type_p): New helper.
4272 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
4273 use ref_all_alias_ptr_type_p.
4274 (get_deref_alias_set): Add flag_strict_aliasing check here.
4275 (reference_alias_ptr_type_1): New function, split out from ...
4276 (get_alias_set): ... here.
4277 (alias_ptr_types_compatible_p): New function.
4278 * alias.h (reference_alias_ptr_type): Declare.
4279 (alias_ptr_types_compatible_p): Likewise.
4280 * tree.h (reference_alias_ptr_type): Remove.
4281 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
4282 to compare MEM_REF alias types.
4283
583e8bf5
RB
42842013-09-24 Richard Biener <rguenther@suse.de>
4285
4286 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
4287
5e8586d7
MM
42882013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4289
19c3e797
MM
4290 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
4291 reload helper function arrays into a single array reg_addr.
4292 (reload_fpr_gpr): Likewise.
4293 (reload_gpr_vsx): Likewise.
4294 (reload_vsx_gpr): Likewise.
4295 (struct rs6000_reg_addr): Likewise.
4296 (reg_addr): Likewise.
4297 (rs6000_debug_reg_global): Change rs6000_vector_reload,
4298 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
4299 (rs6000_init_hard_regno_mode_ok): Likewise.
4300 (rs6000_secondary_reload_direct_move): Likewise.
4301 (rs6000_secondary_reload): Likewise.
4302
5e8586d7
MM
4303 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
4304 constraints: wu, ww, and wy. Repurpose wv constraint added during
4305 power8 changes. Put wg constraint in alphabetical order.
4306
4307 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
4308 for future work to add ISA 2.07 VSX single precision support.
4309 (-mvsx-scalar-double): Change default from -1 to 1, update
4310 documentation comment.
4311 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
4312 (-mupper-regs-df): New debug switch to control whether DF values
4313 can go in the traditional Altivec registers.
4314 (-mupper-regs-sf): New debug switch to control whether SF values
4315 can go in the traditional Altivec registers.
4316
4317 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
4318 and wy constraints.
4319 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
4320 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
4321 Add new constraints, wu/ww/wy. Repurpose wv constraint.
4322 (rs6000_debug_legitimate_address_p): Print if we are running
4323 before, during, or after reload.
4324 (rs6000_secondary_reload): Add a comment.
4325 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
4326
4327 * config/rs6000/constraints.md (wa constraint): Sort w<x>
4328 constraints. Update documentation string.
4329 (wd constraint): Likewise.
4330 (wf constraint): Likewise.
4331 (wg constraint): Likewise.
4332 (wn constraint): Likewise.
4333 (ws constraint): Likewise.
4334 (wt constraint): Likewise.
4335 (wx constraint): Likewise.
4336 (wz constraint): Likewise.
4337 (wu constraint): New constraint for ISA 2.07 SFmode scalar
4338 instructions.
4339 (ww constraint): Likewise.
4340 (wy constraint): Likewise.
358e1993
MM
4341 (wv constraint): Repurpose ISA 2.07 constraint that we did not use
4342 in the previous submissions.
5e8586d7
MM
4343 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
4344
e5af9ddd
RS
43452013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
4346
4347 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
4348 (REG_BR_PROB): Say that the probability is stored in an int_list.
4349 * reg-notes.def: Update commentary to mention INT_LIST.
4350 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
4351 (INT_LIST): New rtx.
4352 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
4353 * rtlanal.c (int_reg_note_p): New function.
4354 (alloc_reg_note): Assert that the note does not have an int argument.
4355 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
4356 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
4357 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
4358 rather than an INSN_LIST. Handle INT_LIST.
4359 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
4360 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
4361 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
4362 Manipulate them as ints rather than rtxes.
4363 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
4364 * regmove.c (copy_src_to_dest): Likewise.
4365 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
4366
4367 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
4368 into the cases that need it.
4369 * config/arm/arm.c (arm_unwind_emit): Likewise.
4370
4371 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
4372 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
4373 * loop-doloop.c (add_test, doloop_modify): Likewise.
4374 * loop-unswitch.c (compare_and_jump_seq): Likewise.
4375 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
4376 * predict.c (combine_predictions_for_insn): Likewise.
4377 * print-rtl.c (print_rtx): Handle INT_LIST.
4378 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
4379 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
4380 * config/arm/arm.c (emit_unlikely_jump): Likewise.
4381 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
4382 (ix86_split_fp_branch, predict_jump): Likewise.
4383 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
4384 * config/sh/sh.c (expand_cbranchsi4): Likewise.
4385 * config/spu/spu.c (ea_load_store_inline): Likewise.
4386
4387 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
4388 value of a REG_BR_PROB note.
4389 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
4390 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
4391 * emit-rtl.c (try_split): Likewise.
4392 * predict.c (br_prob_note_reliable_p): Likewise.
4393 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
4394 * reorg.c (mostly_true_jump): Likewise.
4395 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
4396 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
4397 * config/i386/i386.c (ix86_print_operand): Likewise.
4398 * config/ia64/ia64.c (ia64_print_operand): Likewise.
4399 * config/mmix/mmix.c (mmix_print_operand): Likewise.
4400 * config/rs6000/rs6000.c (output_cbranch): Likewise.
4401 * config/s390/s390.c (s390_expand_tbegin): Likewise.
4402 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
4403 * config/sparc/sparc.c (output_cbranch): Likewise.
4404 * config/spu/spu.c (get_branch_target): Likewise.
4405 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
4406 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
4407
450ad0cd
JH
44082013-09-23 Jan Hubicka <jh@suse.cz>
4409
4410 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
4411 for ipa-devirt.
4412 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
4413 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
4414 of external calls
4415 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
4416 (gimple_fold_call): Dump inconsistent devirtualizations; add
4417 sanity check for type based devirtualizations.
4418 * ipa-prop.c: Include ipa-utils.h
4419 (ipa_intraprocedural_devirtualization): Add sanity check.
4420 (try_make_edge_direct_virtual_call): Likewise.
4421
cefce769
EB
44222013-09-23 Eric Botcazou <ebotcazou@adacore.com>
4423
4424 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
4425 assignment statements.
4426
a895a2b8
KV
44272013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4428
4429 * gimple-pretty-print.c (dump_ssaname_info): New function.
4430 (dump_gimple_phi): Call it.
4431 (pp_gimple_stmt_1): Likewise.
4432 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
4433 (range_info_def): Declare.
4434 * tree-pretty-print.c (pp_double_int): New function.
4435 (dump_generic_node): Call it.
4436 * tree-pretty-print.h (pp_double_int): Declare.
4437 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
4438 * tree-ssanames.h (range_info_def): New structure.
4439 (value_range_type): Move definition here.
4440 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
4441 Declare.
4442 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
4443 initialization.
4444 (set_range_info): New function.
4445 (get_range_info): Likewise.
4446 (duplicate_ssa_name_range_info): Likewise.
4447 (duplicate_ssa_name_fn): Check pointer type and call
4448 duplicate_ssa_name_range_info.
4449 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4450 * tree-vrp.c (value_range_type): Remove definition, now in
4451 tree-ssanames.h.
7a5911d3 4452 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
4453 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
4454 (SSA_NAME_RANGE_INFO): New macro.
4455
984af6ac
RB
44562013-09-23 Richard Biener <rguenther@suse.de>
4457
4458 PR tree-optimization/58464
4459 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 4460 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
4461 (phi_translate_1): Remove recursion detection here.
4462 (phi_translate): Pre-seed the cache with NULL to catch
4463 recursion here in a more generic way.
4464 (bitmap_find_leader): Adjust comment.
4465 (get_representative_for): Dump value-numbers.
4466 (create_expression_by_pieces): Likewise.
4467 (insert_into_preds_of_block): Likewise.
4468
0e26cf79
CB
44692013-09-23 Christian Bruel <christian.bruel@st.com>
4470
4471 PR target/58475
4472 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
4473 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
4474
4d0e5b54
JG
44752013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4476
4477 Revert r202780:
4478 2013-09-20 Renlin Li <renlin.li@arm.com>
4479
7a5911d3
UB
4480 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
4481 plus_constant.
4d0e5b54
JG
4482 (aarch64_expand_epilogue): Likewise.
4483 (aarch64_legitimize_reload_address): Likewise.
4484
ca081cc8
EB
44852013-09-22 Eric Botcazou <ebotcazou@adacore.com>
4486
4487 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
4488 NULL_TREE before pushing them onto the vector. Likewise for labels.
4489
8fc53a5f
EB
44902013-09-21 Eric Botcazou <ebotcazou@adacore.com>
4491
4492 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
4493 comparison operators when -fno-trapping-math is in effect.
4494 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
4495 comparison operators in TFmode and assert that unsupported operators
4496 cannot reach here.
4497 (ia64_print_operand): Likewise.
4498
44992013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
4500
4501 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
4502 (sse_typeless_stores): Enable for core
4503 (sse_load0_by_pxor): Likewise.
4504 (four_jump_limit): Disable for core.
4505 (pad_returns): Likewise.
4506 (avoid_vector_decode): Likewise.
4507 (fuse_cmp_and_branch): Enable for cores.
4508 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
4509
578e51e6
JDA
45102013-09-20 John David Anglin <danglin@gcc.gnu.org>
4511
96ce28a3
JDA
4512 PR middle-end/56791
4513 * config/pa/pa.c (pa_option_override): Disable auto increment and
4514 decrement instructions until reload is completed.
4515
578e51e6
JDA
4516 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
4517 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
4518 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
4519
6fcd3a13 45202013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 4521 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
4522
4523 * config/rl78/rl78.c: Various whitespace and comment tweaks.
4524 (need_to_save): Save bank 0 on interrupts.
4525 (characterize_address): Strip far address wrappers.
4526 (rl78_as_legitimate_address): Likewise.
4527 (transcode_memory_rtx): Likewise.
4528 (rl78_peep_movhi_p): Disable this peephole after devirt.
4529 (rl78_propogate_register_origins): Forget all origins when a
4530 CLOBBER is seen.
4531 * config/rl78/rl78-virt.md: Various whitespace tweaks.
4532 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
4533 peephole2's.
4534 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
4535 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
4536 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
4537 relocating.
4538 * config/rl78/constraints.md: Various whitespace and paren tweaks.
4539
4a08db33
JDA
45402013-09-20 John David Anglin <danglin@gcc.gnu.org>
4541
4542 * config/pa/pa.md: In "scc" insn patterns, change output template to
4543 handle const0_rtx in reg_or_0_operand operands.
4544
7691132c
JBG
45452013-09-20 Martin Husemann <martin@NetBSD.org>
4546
4547 PR target/56875
4548 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
4549 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
4550
a3cc13cc
RB
45512013-09-20 Richard Biener <rguenther@suse.de>
4552
4553 PR middle-end/58484
4554 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
4555 remembering SSA name version and block index.
4556 (new_scev_info_str): Adjust.
4557 (hash_scev_info): Likewise. Also hash the block index.
4558 (eq_scev_info): Adjust.
4559 (find_var_scev_info): Likewise.
4560 (struct instantiate_cache_entry): Remove.
4561 (struct instantiate_cache_type): Use a htab to map name, block
4562 to chrec.
4563 (instantiate_cache_type::~instantiate_cache_type): Adjust.
4564 (get_instantiated_value_entry): Likewise.
4565 (hash_idx_scev_info, eq_idx_scev_info): New functions.
4566 (instantiate_scev_name): Adjust.
4567
925f3871
JL
45682013-09-20 Jeff Law <law@redhat.com>
4569
4570 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
4571
2888c331
YZ
45722013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
4573
4574 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
4575 Call aarch64_simd_expand_args to update op[argc].
4576
0a811e96
BS
45772013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
4578
7a5911d3
UB
4579 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
4580 plugin argument.
0a811e96 4581
0078f462
BS
45822013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
4583
7a5911d3
UB
4584 * gengtype.c (file_rules): Added rule for *.cc files.
4585 (get_output_file_with_visibility): Give fatal message when no
4586 rules found.
0078f462 4587
d20e48b0
RL
45882013-09-20 Renlin Li <renlin.li@arm.com>
4589
4590 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
4591 (aarch64_expand_epilogue): Likewise.
4592 (aarch64_legitimize_reload_address): Likewise.
4593
59bb1544
BE
45942013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4595
4596 PR middle-end/57748
4597 * expr.c (expand_assignment): Remove misalignp code path.
4598
a5430019
MP
45992013-09-20 Marek Polacek <polacek@redhat.com>
4600
4601 PR sanitizer/58413
4602 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
4603 TYPE_PRECISION. Add asserts.
4604
9fed7f3a
RB
46052013-09-20 Richard Biener <rguenther@suse.de>
4606
4607 PR tree-optimization/58453
4608 * tree-loop-distribution.c (distribute_loop): Apply the cost
4609 model for -ftree-loop-distribute-patterns, too.
4610
a820c834
RB
46112013-09-20 Richard Biener <rguenther@suse.de>
4612
4613 PR middle-end/58473
4614 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
4615 make type comparison less strict.
4616
3cbe17f7
AM
46172013-09-20 Alan Modra <amodra@gmail.com>
4618
4619 * configure: Regenerate.
4620 * aclocal.m4: Regenerate.
4621
87fccdbb
MP
46222013-09-20 Marek Polacek <polacek@redhat.com>
4623
4624 PR other/58467
4625 * doc/extend.texi: Document that attribute used is meant to be used
4626 on variables with static storage duration.
4627
8928eff3
JJ
46282013-09-19 Jakub Jelinek <jakub@redhat.com>
4629
4630 PR tree-optimization/58472
4631 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
4632 simd_lane_access set inv_p = false.
4633 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
4634 the simduid magic VAR_DECL.
4635
b7b28c53
JH
46362013-09-19 Jan Hubicka <jh@suse.cz>
4637
4638 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
4639
83ae86f5
JL
46402013-09-17 Jeff Law <law@redhat.com>
4641
4642 * tree-ssa-dom.c (record_temporary_equivalences): New function
4643 split out of dom_opt_dom_walker::after_dom_children.
4644 (dom_opt_dom_walker::thread_across_edge): Move common code
4645 in here from dom_opt_dom_walker::after_dom_children.
4646 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
4647
9d532162
JH
46482013-09-19 Jan Hubicka <jh@suse.cz>
4649
4650 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
4651 (TARGET_GENERIC): Use PROCESOR_GENERIC
4652 (enum processor_type): Unify generic32 and 64.
4653 * i386.md (cpu): Likewise.
4654 * x86-tune.def (use_leave): Enable for generic32.
4655 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
4656 * athlon.md: Change generic64 to generic in all occurences.
4657 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
4658 (ix86_target_macros_internal): Likewise.
4659 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
4660 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
4661 to ..
9d532162
JH
4662 (generic_memcpy, generic_memset, generic_cost): This one.
4663 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
4664 (m_GENERIC32, m_GENERIC64): Remove.
4665 (m_GENERIC): Turn into one flag.
4666 (processor_target): Unify generic tunnings.
4667 (ix86_option_override_internal): Replace generic32/64 by generic.
4668 (ix86_issue_rate): Likewise.
4669 (ix86_adjust_cost): Likewise.
4670
188c7d00
JH
46712013-09-19 Jan Hubicka <jh@suse.cz>
4672
4673 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
4674 of speculative flag.
4675
4befd127
JJ
46762013-09-19 Jakub Jelinek <jakub@redhat.com>
4677
4678 * omp-low.c (expand_omp_sections): Always pass len - 1 to
4679 GOMP_sections_start, even if !exit_reachable.
4680
8a26ad39
VM
46812013-09-18 Vladimir Makarov <vmakarov@redhat.com>
4682
4683 * lra-constraints.c (need_for_all_save_p): Use macro
4684 HARD_REGNO_CALL_PART_CLOBBERED.
4685 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
4686 set up pseudo conflict hard regs.
4687
09487185
MM
46882013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4689
4690 PR target/58452
4691 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
4692 operands.
4693
080cbf9e
VM
46942013-09-18 Vladimir Makarov <vmakarov@redhat.com>
4695
4696 PR rtl-optimization/58438
4697 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
4698 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
4699 from previous subpasses.
4700
a0f70fcb
RE
47012013-09-18 Richard Earnshaw <rearnsha@arm.com>
4702
4703 * arm.c (arm_get_frame_offsets): Validate architecture supports
4704 LDRD/STRD before accepting the tuning preference.
4705 (arm_expand_prologue): Likewise.
4706 (arm_expand_epilogue): Likewise.
4707
0547c9b6
RB
47082013-09-18 Richard Biener <rguenther@suse.de>
4709
4710 PR tree-optimization/58417
4711 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
4712 have chrecs with symbols defined in the loop as operands.
4713 (chrec_fold_multiply): Likewise.
4714 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
4715 parameters before folding binary operations.
4716 (struct instantiate_cache_entry_hasher): Remove.
4717 (struct instantiate_cache_type): Use a pointer-map.
4718 (instantiate_cache_type::instantiate_cache_type): New function.
4719 (instantiate_cache_type::get): Likewise.
4720 (instantiate_cache_type::set): Likewise.
4721 (instantiate_cache_type::~instantiate_cache_type): Adjust.
4722 (get_instantiated_value_entry): Likewise.
4723 (global_cache): New global.
4724 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
4725 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
4726 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
4727 (instantiate_scev_name): Adjust.
4728 (instantiate_scev): Construct global instead of local cache.
4729 (resolve_mixers): Likewise.
4730
309dc1aa
DM
47312013-09-18 Daniel Morris <danielm@ecoscentric.com>
4732 Paolo Carlini <paolo.carlini@oracle.com>
4733
4734 PR c++/58458
4735 * doc/implement-cxx.texi: Fix references to the C++ standards.
4736
995a1b4a
JJ
47372013-09-18 Jakub Jelinek <jakub@redhat.com>
4738
4739 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
4740 * tree-vect-data-refs.c (vect_analyze_data_refs): For
4741 simd_lane_access drs, update also DR_ALIGNED_TO.
4742
ce6923c5
MP
47432013-09-18 Marek Polacek <polacek@redhat.com>
4744
4745 PR sanitizer/58411
4746 * doc/extend.texi: Document no_sanitize_undefined attribute.
4747 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
4748 no_sanitize_undefined attribute.
4749
d30d00a2
NC
47502013-09-18 Nick Clifton <nickc@redhat.com>
4751
4752 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
4753 (ASM_DECLARE_FUNCTION_NAME): Define.
4754
4d9192b5
TS
47552013-09-17 Trevor Saunders <tsaunders@mozilla.com>
4756
4757 * compare-elim.c (find_comparison_dom_walker): New class
4758 (find_comparisons_in_bb): Rename to
4759 find_comparison_dom_walker::before_dom_children
4760 (find_comparisons): Adjust
4761 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
4762 adjust.
4763 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
4764 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
4765 (init_walk_dominator_tree): Remove declaration.
4766 (fini_walk_dominator_tree): Remove declaration.
4767 * fwprop.c (single_def_use_dom_walker): New class
4768 (single_def_use_enter_block): Convert to
4769 single_def_use_dom_walker::before_dom_children.
4770 (single_def_use_leave_block): Convert to
4771 single_def_use_dom_walker::after_dom_children.
4772 (build_single_def_use_links): Adjust.
4773 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
4774 class.
4775 (find_candidates_in_block): Convert to
4776 find_candidates_dom_walker::before_dom_children.
4777 (execute_strength_reduction): Adjust.
4778 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
4779 (sese_dom_walker): New class.
4780 (sese_dom_walker::sese_dom_walker): New constructor.
4781 (sese_dom_walker::~sese_dom_walker): New destructor.
4782 (build_sese_conditions_before): Convert to
4783 sese_dom_walker::before_dom_children.
4784 (build_sese_conditions_after): Convert to
4785 sese_dom_walker::after_dom_children.
4786 (build_poly_scop): Adjust
4787 * tree-into-ssa.c (rewrite_dom_walker): New class
4788 (rewrite_enter_block): Convert to
4789 rewrite_dom_walker::before_dom_children.
4790 (rewrite_leave_block): Convert to
4791 rewrite_dom_walker::after_dom_children.
4792 (rewrite_update_dom_walker): New class.
4793 (rewrite_update_enter_block): Convert to
4794 rewrite_update_dom_walker::before_dom_children.
4795 (rewrite_update_leave_block): Convert to
4796 rewrite_update_dom_walker::after_dom_children.
4797 (rewrite_blocks, rewrite_into_ssa): Adjust.
4798 (mark_def_dom_walker): New class.
4799 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
4800 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
4801 (mark_def_sites_blocks): Convert to
4802 mark_def_dom_walker::before_dom_children.
4803 (mark_def_site_blocks): Remove.
4804 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
4805 (tree_ssa_dominator_optimize): Adjust.
4806 (dom_thread_across_edge): Convert to method
4807 dom_opt_dom_walker::thread_across_edge.
4808 (dom_opt_enter_block): Convert to member function
4809 dom_opt_dom_walker::before_dom_children.
4810 (dom_opt_leave_block): Convert to member function
4811 dom_opt_dom_walker::after_dom_children.
4812 * tree-ssa-dse.c (dse_dom_walker): New class.
4813 (dse_enter_block): Convert to member function
4814 dse_dom_walker::before_dom_children.
4815 (tree_ssa_dse): Adjust.
4816 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
4817 (determine_invariantness_stmt): Convert to method
4818 invariantness_dom_walker::before_dom_children.
4819 (determine_invariantness): Remove
4820 (move_computations_dom_walker): New class.
4821 (move_computations_stmt): Convert to method
4822 move_computations_dom_walker::before_dom_children.
4823 (move_computations, tree_ssa_lim): Adjust.
4824 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
4825 (nt_init_block): Make method
4826 notrappping_dom_walker::before_dom_children.
4827 (nt_fini_block): Make
4828 method nontrapping_dom_walker::after_dom_children.
4829 (get_non_trapping): Adjust.
4830 * tree-ssa-pre.c (eliminate_dom_walker): New class.
4831 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
4832 (eliminate_leave_block): Make method.
4833 eliminate_dom_walker::after_dom_children.
4834 (eliminate): Adjust
4835 * tree-ssa-strlen.c (strlen_dom_walker): New class.
4836 (strlen_enter_block): Make method
4837 strlen_dom_walker::before_dom_children.
4838 (strlen_leave_block): Make
4839 method strlen_dom_walker::after_dom_children.
4840 (tree_ssa_strlen): Adjust.
4841 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
4842 (tree_ssa_uncprop): Adjust.
4843 (uncprop_leave_block): Make method
4844 uncprop_dom_walker::after_dom_children.
4845 (uncprop_leave_block): Make method
4846 uncprop_dom_walker::before_dom_children.
4847
3b3cc26b
BC
48482013-09-18 Bin Cheng <bin.cheng@arm.com>
4849
7a5911d3
UB
4850 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
4851 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 4852
b5ba3a9b
NC
48532013-09-17 Nick Clifton <nickc@redhat.com>
4854
4855 * config/rl78/rl78-real.md (bf): New pattern.
4856 (bt): New pattern.
4857 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
4858 (rl78_print_operand): Do not put a # before a %B.
4859 * config/rl78/rl78.opt: Tweak doc strings.
4860
09d5094b
DD
48612013-09-17 DJ Delorie <dj@redhat.com>
4862
4863 * config/rl78/constraints.md (Wcv): Allow up to $r31.
4864 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
4865 (rl78_option_override): Likewise, if -mallregs.
4866 (is_virtual_register): Likewise.
4867 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
4868 (REGNO_OK_FOR_BASE_P): Likewise.
4869 * config/rl78/rl78.opt (-mallregs): New.
4870
2ba1dca1
NC
48712013-09-17 Nick Clifton <nickc@redhat.com>
4872
4873 * config/rl78/rl78.c (need_to_save): Change return type to bool.
4874 For interrupt functions: save all call clobbered registers if the
4875 interrupt handler is not a leaf function.
4876 (rl78_expand_prologue): Always recompute the frame information.
4877 For interrupt functions: only select bank 0 if one of the bank 0
4878 registers is going to be psuhed.
4879
2e7c3f21
DD
48802013-09-17 DJ Delorie <dj@redhat.com>
4881
4882 * config/rl78/constraints.md: For each W* constraint, rename to C*
4883 and create a W* constraint that checks for an optional ES: prefix
4884 pattern also.
4885 * config/rl78/rl78.md (UNS_ES_ADDR): New.
4886 (es_addr): New. Used to wrap far addresses.
4887 * config/rl78/rl78-protos.h (rl78_es_addr): New.
4888 (rl78_es_base): New.
4889 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
4890 wrapped far addresses.
4891 (rl78_print_operand_1): Unwrap far addresses before processing.
4892 (rl78_lo16): Wrap far addresses in unspecs.
4893 (rl78_es_addr): New.
4894 (rl78_es_base): New.
4895 (insn_ok_now): Check for not-yet-wrapped far addresses.
4896 (transcode_memory_rtx): Properly re-wrap far addresses.
4897
5c26a69a
SH
48982013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4899
4900 * config/sparc/t-rtems: Add leon3 multilibs.
4901
181f5f3e
CH
49022013-09-17 Cong Hou <congh@google.com>
4903
4904 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
4905 when checking the dot production pattern. The type of rhs operand
4906 of multiply is now checked correctly.
4907
8d34e421
JL
49082013-09-17 Jeff Law <law@redhat.com>
4909
4910 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
4911 edge implied equivalences into successor phis.
4912 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
4913 here from tree-ssa-threadedge.c.
4914 (mark_threaded_blocks): When threading through a joiner, if both
4915 successors of the joiner's clone reach the same block, verify the
4916 PHI arguments are equal. If not, cancel the jump threading request.
4917 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
4918 tree-ssa-threadupdate.c
4919 (thread_across_edge): Don't check PHI argument equality when
4920 threading through joiner block here.
7a5911d3 4921
c152901f
AM
49222013-09-17 Andrew MacLeod <amacleod@redhat.com>
4923
4924 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
4925 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
4926 (warn_uninit, warn_uninitialized_vars,
4927 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
4928 Move to tree-ssa-uninit.c.
78cedfb1 4929 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
7a5911d3 4930 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
4931 ssa_undefined_value_p.
4932 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
4933 (warn_uninit, warn_uninitialized_vars,
4934 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
4935 Move from tree-ssa.c.
4936 * tree-ssa.h: Adjust prototypes.
c152901f 4937
b631d45a
JH
49382013-09-17 Jan Hubicka <jh@suse.cz>
4939
4940 PR middle-end/58332
4941 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
4942 * ipa-inline.c (can_inline_edge_p): Do not downgrade
4943 FUNCTION_NOT_OPTIMIZED.
4944 * ipa-inline-analysis.c (compute_inline_parameters): Function
4945 not optimized is not inlinable unless it is alwaysinline.
4946 (inline_analyze_function): Force calls in not optimized
4947 function not inlinable.
4948
5b79657a
JH
49492013-09-17 Jan Hubicka <jh@suse.cz>
4950
4951 PR middle-end/58329
4952 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
4953 to return NULL.
4954 * ipa.c (function_and_variable_visibility): Likewise.
4955 * ipa-profile.c (ipa_profile): Likewise.
4956
27442c24
BE
49572013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
4958
4959 PR ipa/58398
4960 * cgraph.c (cgraph_function_body_availability): Check for ifunc
4961 attribute, and don't inline the resolver in this case.
4962
753b9bc3
TJ
49632013-09-17 Teresa Johnson <tejohnson@google.com>
4964
4965 * coverage.c (get_coverage_counts): Add missing newline.
4966
e3d3cfb4
KT
49672013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4968
4969 PR tree-optimization/58088
4970 * fold-const.c (mask_with_trailing_zeros): New function.
4971 (fold_binary_loc): Make sure we don't recurse infinitely
4972 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
4973 Use mask_with_trailing_zeros where appropriate.
4974
9a0ac98f
YR
49752013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
4976
4977 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
4978 of 'prev' var to get better distance estimation.
4979
78bbd765
EB
49802013-09-17 Eric Botcazou <ebotcazou@adacore.com>
4981
4982 * tree-inline.h (struct copy_body_data): Add transform_parameter.
4983 * tree-inline.c (is_parameter_of): New predicate.
4984 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
4985 a parameter has been remapped.
4986 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
4987 (optimize_inline_calls): Initialize transform_parameter.
4988 (copy_gimple_seq_and_replace_locals): Likewise.
4989 (tree_function_versioning): Likewise.
4990 (maybe_inline_call_in_expr): Likewise.
4991
cad055a4
NC
49922013-09-17 Nick Clifton <nickc@redhat.com>
4993
4994 * config/msp430/msp430-protos.h: Add prototypes for new functions.
4995 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
4996 interrupt handlers.
4997 (is_attr_func): New function.
4998 (msp430_is_interrupt_func): New function.
4999 (is_naked_func): New function.
5000 (is_reentrant_func): New function.
5001 (is_critical_func): New function.
5002 (msp430_start_function): Add annotations for function attributes.
5003 (msp430_attr): New function.
5004 (msp430_attribute_table): New.
5005 (msp430_function_section): New function.
5006 (TARGET_ASM_FUNCTION_SECTION): Define.
5007 (msp430_builtin): New enum.
5008 (msp430_init_builtins): New function.
5009 (msp430_builtin_devl): New function.
5010 (msp430_expand_builtin): New function.
5011 (TARGET_INIT_BUILTINS): Define.
5012 (TARGET_EXPAND_BUILTINS): Define.
5013 (TARGET_BUILTIN_DECL): Define.
5014 (msp430_expand_prologue): Add support for naked, interrupt,
5015 critical and reentrant functions.
5016 (msp430_expand_epilogue): Likewise.
5017 (msp430_print_operand): Handle 'O' character.
5018 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
5019 NO_TRAMPOLINES.
5020 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
5021 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
5022 (pushm): Use a 'n' rather than an 'i' constraint.
5023 (msp_return): Add generation of the interrupt return instruction.
5024 (disable_interrupts): New pattern.
5025 (enable_interrupts): New pattern.
5026 (push_intr_state): New pattern.
5027 (pop_intr_state): New pattern.
5028 (bic_SR): New pattern.
5029 (bis_SR): New pattern.
5030 * doc/extend.texi: Document MSP430 function attributes and builtin
5031 functions.
5032
deb6c11a
RB
50332013-09-17 Richard Biener <rguenther@suse.de>
5034
5035 PR tree-optimization/58432
5036 * tree-loop-distribution.c (tree_loop_distribution): Also
5037 scan PHIs for outside loop uses and seed a partition from them.
5038
c068654b
BC
50392013-09-17 Bin Cheng <bin.cheng@arm.com>
5040
5041 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
5042 (restructure_reference): Call backtrace_base_for_ref.
5043
567969e4
AM
50442013-09-17 Alan Modra <amodra@gmail.com>
5045
5046 PR target/57589
7a5911d3
UB
5047 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
5048 patch.
567969e4 5049
5c0029de
DD
50502013-09-16 DJ Delorie <dj@redhat.com>
5051
5052 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
5053 vregs location for RL78/G10.
5054 (rl78_expand_prologue): Avoid SEL on G10.
5055 (rl78_expand_epilogue): Likewise.
5056 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
5057 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
5058 __RL78_G10__ when appropriate.
5059 (ASM_SPEC): Pass -mg10 along to the assembler.
5060 * config/rl78/rl78.md (sel_rb): Disable for G10.
5061 * config/rl78/rl78.opt: Add -mg10 option.
5062 * config/rl78/t-rl78: Add -mg10 multilib.
5063
ea0f3e87
XDL
50642013-09-16 Xinliang David Li <davidxl@google.com>
5065
5066 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
5067 * omp-low.c (omp_max_vf): Ditto.
5068 (expand_omp_simd): Ditto.
5069 * tree-vectorizer.c (vectorize_loops): Ditto.
5070 (gate_vect_slp): Ditto.
5071 (gate_increase_alignment): Ditto.
5072 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
5073 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
5074 (gate_tree_vectorize): Name change.
5075 (tree_vectorize): Ditto.
5076 (pass_vectorize::gate): Call new function.
5077 (pass_vectorize::execute): Ditto.
7a5911d3 5078 * opts.c: O3 default setting change.
ea0f3e87
XDL
5079 (finish_options): Check new flag.
5080 * doc/invoke.texi: Document new flags.
5081 * common.opt: New flags.
5082
4f3da2e5
AS
50832013-09-16 Andreas Schwab <schwab@linux-m68k.org>
5084
5085 * doc/tm.texi.in (Cond Exec Macros): Remove node.
5086 (Condition Code): Don't reference it.
5087 * doc/tm.texi: Regenerate.
5088
aa940f7c
VM
50892013-09-16 Vladimir Makarov <vmakarov@redhat.com>
5090
5091 PR middle-end/58418
5092 * lra-constraints.c (undo_optional_reloads): Consider all optional
5093 reload even if it did not get a hard reg.
5094
e645e942
TJ
50952013-09-16 Teresa Johnson <tejohnson@google.com>
5096
5097 * dumpfile.c (dump_loc): Remove newline emission.
5098 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
5099 emission to dump_printf_loc calls where missing.
5100 (vect_mark_for_runtime_alias_test): Ditto.
5101 (vect_analyze_data_ref_dependence): Ditto.
5102 (vect_analyze_data_ref_dependences): Ditto.
5103 (vect_slp_analyze_data_ref_dependence): Ditto.
5104 (vect_slp_analyze_data_ref_dependences): Ditto.
5105 (vect_compute_data_ref_alignment): Ditto.
5106 (vect_update_misalignment_for_peel): Ditto.
5107 (vect_verify_datarefs_alignment): Ditto.
5108 (vector_alignment_reachable_p): Ditto.
5109 (vect_get_data_access_cost): Ditto.
5110 (vect_enhance_data_refs_alignment): Ditto.
5111 (vect_find_same_alignment_drs): Ditto.
5112 (vect_analyze_data_refs_alignment): Ditto.
5113 (vect_analyze_group_access): Ditto.
5114 (vect_analyze_data_ref_access): Ditto.
5115 (vect_analyze_data_ref_accesses): Ditto.
5116 (vect_prune_runtime_alias_test_list): Ditto.
5117 (vect_analyze_data_refs): Ditto.
5118 (vect_create_addr_base_for_vector_ref): Ditto.
5119 (vect_create_data_ref_ptr): Ditto.
5120 (vect_grouped_store_supported): Ditto.
5121 (vect_grouped_load_supported): Ditto.
5122 * value-prof.c (check_counter): Ditto.
5123 (check_ic_target): Ditto.
5124 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
5125 (vect_recog_widen_mult_pattern): Ditto.
5126 (vect_recog_widen_sum_pattern): Ditto.
5127 (vect_recog_over_widening_pattern): Ditto.
5128 (vect_recog_widen_shift_pattern): Ditto.
5129 (vect_recog_rotate_pattern): Ditto.
5130 (vect_recog_vector_vector_shift_pattern): Ditto.
5131 (vect_recog_divmod_pattern): Ditto.
5132 (vect_recog_mixed_size_cond_pattern): Ditto.
5133 (vect_recog_bool_pattern): Ditto.
5134 (vect_pattern_recog_1): Ditto.
5135 (vect_pattern_recog): Ditto.
5136 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
5137 (vect_is_simple_iv_evolution): Ditto.
5138 (vect_analyze_scalar_cycles_1): Ditto.
5139 (vect_get_loop_niters): Ditto.
5140 (vect_analyze_loop_1): Ditto.
5141 (vect_analyze_loop_form): Ditto.
5142 (vect_analyze_loop_operations): Ditto.
5143 (vect_analyze_loop_2): Ditto.
5144 (vect_analyze_loop): Ditto.
5145 (report_vect_op): Ditto.
5146 (vect_is_slp_reduction): Ditto.
5147 (vect_is_simple_reduction_1): Ditto.
5148 (vect_get_known_peeling_cost): Ditto.
5149 (vect_estimate_min_profitable_iters): Ditto.
5150 (vect_model_reduction_cost): Ditto.
5151 (vect_model_induction_cost): Ditto.
5152 (get_initial_def_for_induction): Ditto.
5153 (vect_create_epilog_for_reduction): Ditto.
5154 (vectorizable_reduction): Ditto.
5155 (vectorizable_induction): Ditto.
5156 (vectorizable_live_operation): Ditto.
5157 (vect_loop_kill_debug_uses): Ditto.
5158 (vect_transform_loop): Ditto.
5159 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
5160 (vect_stmt_relevant_p): Ditto.
5161 (process_use): Ditto.
5162 (vect_mark_stmts_to_be_vectorized): Ditto.
5163 (vect_model_simple_cost): Ditto.
5164 (vect_model_promotion_demotion_cost): Ditto.
5165 (vect_model_store_cost): Ditto.
5166 (vect_get_store_cost): Ditto.
5167 (vect_model_load_cost): Ditto.
5168 (vect_get_load_cost): Ditto.
5169 (vect_init_vector_1): Ditto.
5170 (vect_get_vec_def_for_operand): Ditto.
5171 (vect_finish_stmt_generation): Ditto.
5172 (vectorizable_call): Ditto.
5173 (vectorizable_conversion): Ditto.
5174 (vectorizable_assignment): Ditto.
5175 (vectorizable_shift): Ditto.
5176 (vectorizable_operation): Ditto.
5177 (vectorizable_store): Ditto.
5178 (vectorizable_load): Ditto.
5179 (vectorizable_condition): Ditto.
5180 (vect_analyze_stmt): Ditto.
5181 (vect_transform_stmt): Ditto.
5182 (vect_is_simple_use): Ditto.
5183 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
5184 (vect_can_advance_ivs_p): Ditto.
5185 (vect_update_ivs_after_vectorizer): Ditto.
5186 (vect_do_peeling_for_loop_bound): Ditto.
5187 (vect_gen_niters_for_prolog_loop): Ditto.
5188 (vect_update_inits_of_drs): Ditto.
5189 (vect_create_cond_for_alias_checks): Ditto.
5190 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
5191 (vect_build_slp_tree_1): Ditto.
5192 (vect_supported_load_permutation_p): Ditto.
5193 (vect_analyze_slp_instance): Ditto.
5194 (vect_analyze_slp): Ditto.
5195 (vect_make_slp_decision): Ditto.
5196 (vect_detect_hybrid_slp): Ditto.
5197 (vect_bb_vectorization_profitable_p): Ditto.
5198 (vect_slp_analyze_bb_1): Ditto.
5199 (vect_update_slp_costs_according_to_vf): Ditto.
5200 (vect_get_mask_element): Ditto.
5201 (vect_transform_slp_perm_load): Ditto.
5202 (vect_schedule_slp_instance): Ditto.
5203 (vect_schedule_slp): Ditto.
5204 (vect_slp_transform_bb): Ditto.
5205 * profile.c (read_profile_edge_counts): Ditto.
5206 (compute_branch_probabilities): Ditto.
5207 * coverage.c (get_coverage_counts): Ditto.
5208
46f851f3
DN
52092013-09-16 Diego Novillo <dnovillo@google.com>
5210
7a5911d3 5211 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 5212
1632a686
JH
52132013-09-16 Jan Hubicka <jh@suse.cz>
5214
5215 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 5216 abstract functions; for static functions check the presence of body.
1632a686 5217
828e70c1
JG
52182013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
5219
5220 * config/aarch64/aarch64-simd-builtins.def (fma): New.
5221 * config/aarch64/aarch64-simd.md
5222 (aarch64_mla_elt<mode>): New.
5223 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
5224 (aarch64_mls_elt<mode>): Likewise.
5225 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
5226 (aarch64_fma4_elt<mode>): Likewise.
5227 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
5228 (aarch64_fma4_elt_to_128v2df): Likewise.
5229 (aarch64_fma4_elt_to_64df): Likewise.
5230 (fnma<mode>4): Likewise.
5231 (aarch64_fnma4_elt<mode>): Likewise.
5232 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
5233 (aarch64_fnma4_elt_to_128v2df): Likewise.
5234 (aarch64_fnma4_elt_to_64df): Likewise.
5235 * config/aarch64/iterators.md (VDQSF): New.
5236 * config/aarch64/arm_neon.h
5237 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
5238 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
5239
779aea46
JG
52402013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
5241
5242 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
5243 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
5244 (aarch64_mul3_elt_to_128df): Likewise.
5245 (aarch64_mul3_elt_to_64v2df): Likewise.
5246 * config/aarch64/iterators.md (VEL): Also handle DFmode.
5247 (VMUL): New.
5248 (VMUL_CHANGE_NLANES) Likewise.
5249 (h_con): Likewise.
5250 (f): Likewise.
5251 * config/aarch64/arm_neon.h
5252 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
5253
a407a750
JG
52542013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
5255
5256 * config/aarch64/arm_neon.h
5257 (vcvtx_high_f32_f64): Fix parameters.
5258
f77e2d2d 52592013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 5260 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 5261
a5bd71fa 5262 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 5263
36875e8f
RB
52642013-09-16 Richard Biener <rguenther@suse.de>
5265
5266 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
5267 (dot_rdg_1): Handle control_dd.
5268 (create_edge_for_control_dependence): New function.
5269 (create_rdg_edges): Add control dependences if asked for.
5270 (build_rdg): Likewise.
5271 (generate_loops_for_partition): If there are not necessary
5272 control stmts remove all their dependencies.
5273 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
5274 (distribute_loop): Pass on control dependences.
5275 (tree_loop_distribution): Compute control dependences and remove
5276 restriction on number of loop nodes.
5277
96e24d49
JJ
52782013-09-16 Jakub Jelinek <jakub@redhat.com>
5279
5280 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
5281 for internal calls.
5282
40dbb05c
RS
52832013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
5284
5285 * cse.c (try_const_anchors): Punt on CC modes.
5286
97191ad0
JBG
52872013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
5288
5289 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
5290
403a3fb7
JDA
52912013-09-14 John David Anglin <danglin@gcc.gnu.org>
5292
5293 PR target/58382
5294 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
5295 calls to word_mode.
5296
fb5610fb
IS
52972013-09-14 Iain Sandoe <iain@codesourcery.com>
5298
5299 PR target/48094
5300 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
5301 seen.
5302 (darwin_objc1_section): Likewise.
fb5610fb
IS
5303 (darwin_file_end): Emit Image Info section when required.
5304
afdec9bd
JH
53052013-09-14 Jan Hubicka <jh@suse.cz>
5306
5307 * tree-into-ssa.c (gate_into_ssa): New.
5308 (pass_data_build_ssa): Use it.
5309 * cgraph.h (expand_thunk): Update prototype.
5310 * cgraphunit.c (analyze_function): Expand thunks early.
5311 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
5312 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
5313 set lowered flag; do not add new function.
5314 (assemble_thunks_and_aliases): Update.
5315 * tree-ssa.c (gate_init_datastructures): New gate.
5316 (pass_data_init_datastructures): Use it.
5317
492d1e0a
IS
53182013-09-14 Iain Sandoe <iain@codesourcery.com>
5319
5320 PR target/58269
f77e2d2d 5321 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
5322 xmm register set described in the psABI.
5323
d13c6b70
EG
53242013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
5325
f77e2d2d
JBG
5326 * dwarf2out.c (should_emit_struct_debug): Add check
5327 for type_decl variable is not NULL.
d13c6b70 5328
88b0e79e
JC
53292013-09-13 Jacek Caban <jacek@codeweavers.com>
5330
5331 * config.gcc: Use new winnt-c.c target hooks
5332 * config/t-winnt: New file
5333 * config/winnt-c.c: New file
5334 * doc/tm.texi.in: Document new hook
5335 * doc/tm.texi: Regenerated
5336
19ba6aab
JH
53372013-09-13 Jan Hubicka <jh@suse.cz>
5338
5339 PR middle-end/58094
5340 * ipa-inline.c (check_callers): New function.
5341 (check_caller_edge): Remove.
5342 (want_inline_function_to_all_callers_p): Also permit alises that are
5343 called dirrectly.
5344 (inline_to_all_callers): Terminate the walk when devirtualization
5345 introduce new calls.
5346
a93c18c8
JH
53472013-09-13 Jan Hubicka <jh@suse.cz>
5348
5349 * ipa-inline-analysis.c (struct growth_data): Add node.
5350 (do_estimate_growth_1): Fix detection of recursion.
5351
f3b331d1
JJ
53522013-09-13 Jakub Jelinek <jakub@redhat.com>
5353
5354 PR tree-optimization/58392
5355 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
5356 to avoid shadowing of outer loop variable. If
5357 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
5358 replace_by_duplicate_decl simduid of loops that have it set and
5359 set dest_cfun->has_simduid_loops and/or
5360 dest_cfun->has_force_vect_loops.
5361 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
5362 instead of maybe_lookup_decl.
5363 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
5364 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
5365 call. Copy over force_vect and copy and remap simduid. Set
5366 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
5367 (copy_cfg_body): Remove blocks_to_copy argument. Use
5368 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
5369 caller. Don't set cfun->has_simduid_loops and/or
5370 cfun->has_force_vect_loops here.
5371 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
5372 caller.
5373 (expand_call_inline, tree_function_versioning): Adjust copy_body
5374 callers.
5375
ae6d0907
MJ
53762013-09-13 Martin Jambor <mjambor@suse.cz>
5377
5378 PR bootstrap/58388
5379 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
5380 the assert if the edge was a speculative one.
5381
2fd5894f
RB
53822013-09-13 Richard Biener <rguenther@suse.de>
5383
5384 * tree-data-ref.h (known_dependences_p): Move here ...
5385 * tree-loop-distribution.c (known_dependences_p): ... from here.
5386 (dump_rdg_component, debug_rdg_component): Remove.
5387 (dump_rdg): Adjust.
5388 (generate_loops_for_partition): Use gimple_uid instead of
5389 relying on matching stmt visit order.
5390 (rdg_build_partitions): Take starting stmt vector.
5391 (ldist_gen): Merge into ...
5392 (distribute_loop): ... this function. Do not compute starting
5393 vertices vector.
5394 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
5395
86eb4bd7
KT
53962013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5397
5398 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
5399 Set type attribute correctly. Set predicable_short_it attribute.
5400 (cmpsi_shiftsi): Remove %? from output template.
5401
83a95546
RB
54022013-09-13 Richard Biener <rguenther@suse.de>
5403
5404 * tree-loop-distribution.c (struct rdg_component,
5405 rdg_defs_used_in_other_loops_p, free_rdg_components,
5406 rdg_build_components): Remove.
5407 (stmts_from_loop): Do not record virtual PHIs.
5408 (generate_loops_for_partition): Skip virtual PHIs.
5409 (build_rdg_partition_for_component): Rename to ...
5410 (build_rdg_partition_for_vertex): ... this and adjust.
5411 (rdg_build_partitions): Take a vector of starting vertices
5412 instead of components. Remove unnecessary leftover handling.
5413 (ldist_gen): Do not build components or record other stores.
5414 (distribute_loop): Do not distribute loops containing stmts
5415 with side-effects.
5416
c0ecf7f1
CB
54172013-09-13 Christian Bruel <christian.bruel@st.com>
5418
5419 PR target/58314
5420 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
5421
34f56efc
KT
54222013-09-13 Kai Tietz <ktietz@redhat.com>
5423
740f2bf3
KT
5424 * config.gcc: Separate cases for mingw and cygwin targets,
5425 and add 64-bit cygwin target case.
5426
34f56efc
KT
5427 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
5428 dll-export inline-functions.
5429 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
5430
5431
54322013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
5433
5434 PR middle-end/58387
5435 Revert:
5436 2013-09-06 Jeff Law <law@redhat.com>
5437
5438 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
5439 edge implied equivalences into successor phis.
5440
aadb52ad
DD
54412013-09-12 DJ Delorie <dj@redhat.com>
5442
5443 * config/rl78/rl78-virt.md: Change from | to \; for asm line
5444 separators.
5445
90ae7019
BM
54462013-09-12 Brooks Moses <bmoses@google.com>
5447
5448 PR driver/42955
5449 * Makefile.in: Do not install driver binaries in $(target)/bin.
5450
17b2557c
DD
54512013-09-12 DJ Delorie <dj@redhat.com>
5452
c5215a9b
DD
5453 * config/rl78/rl78.opt (mrelax): New.
5454 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
5455 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
5456
17b2557c
DD
5457 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
5458 between SP and FP.
5459 (rl78_expand_epilogue): Likewise.
5460
ecafcf05
VM
54612013-09-12 Vladimir Makarov <vmakarov@redhat.com>
5462
5463 PR middle-end/58335
84f6d9fa 5464 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
5465 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
5466 pointer elimination with using remove_reg_equal_offset_note.
5467
8369f38a
DD
54682013-09-12 DJ Delorie <dj@redhat.com>
5469
f6a83b4a
DD
5470 * config/msp430/: New port.
5471 * config.gcc (msp430): Added.
5472 * doc/invoke.texi: Document MSP430 options.
5473 * doc/install.texi: Document msp430-elf
5474 * doc/md.texi: Document msp430-elf
5475 * doc/contrib.texi: Document msp430-elf
5476
8369f38a
DD
5477 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
5478 PSImode.
5479
a854f856
MJ
54802013-09-12 Martin Jambor <mjambor@suse.cz>
5481
5482 PR ipa/58389
5483 * ipa-prop.c (remove_described_reference): Give up if the edge in the
5484 reference descriptor is NULL.
5485 (ipa_edge_removal_hook): If owning a reference descriptor, set its
5486 edge to NULL.
5487
b12ebd96
AM
54882013-09-12 Andrew MacLeod <amacleod@redhat.com>
5489
5490 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
5491 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
5492 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
5493 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
5494 make_temp_ssa_name): move to tree-ssanames.h
5495 * tree-ssa-alias.h: Move prototype.
5496 * tree-ssa.h: Include tree-ssanames.h.
5497 * tree-ssanames.c (FREE_SSANAMES): Move to here.
5498 * tree-ssanames.h: New. Move items from tree-flow*.h
5499 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
5500
e1fb4ad3
RB
55012013-09-12 Richard Biener <rguenther@suse.de>
5502
5503 PR tree-optimization/58404
5504 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
5505 propagate non-invariant addresses into dereferences wrapped
5506 in component references.
5507
154c9188
RB
55082013-09-12 Richard Biener <rguenther@suse.de>
5509
5510 PR tree-optimization/58402
5511 * passes.def: Move pass_late_warn_uninitialized later.
5512
7a300452
AM
55132013-09-12 Andrew MacLeod <amacleod@redhat.com>
5514
5515 * tree-ssa.h: New. Move content from tree-flow.h and
5516 tree-flow-inline.h.
5517 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
5518 Move prototypes belonging to tree-ssa.c.
f77e2d2d 5519 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
5520 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
5521 tree-ssa.h.
5522 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
5523 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
5524 to...
5525 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
5526 * tree.h: Move prototype to tree-ssa.h.
5527 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
5528 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
5529 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
5530 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
5531 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
5532 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
5533 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
5534 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
5535 graphite-blocking.c, graphite-clast-to-gimple.c,
5536 graphite-dependences.c, graphite-interchange.c,
5537 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
5538 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
5539 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
5540 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
5541 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
5542 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
5543 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
5544 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
5545 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
5546 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
5547 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
5548 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
5549 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
5550 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
5551 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
5552 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
5553 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
5554 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
5555 value-prof.c, var-tracking.c,
5556 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
5557
97463b2b
RB
55582013-09-12 Richard Biener <rguenther@suse.de>
5559
5560 PR tree-optimization/58396
5561 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
5562 (build_rdg): Take a loop-nest parameter, fix memleaks.
5563 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
5564
80ecd89d
YR
55652013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
5566
5567 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
5568 for SLM.
5569
893e85fa
CM
55702013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
5571
5572 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
5573 The FMA instruction names should have a 'v' prefix.
5574
174ec470
RB
55752013-09-12 Richard Biener <rguenther@suse.de>
5576
5577 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
5578 (dot_rdg): Use popen instead of system in optional code.
5579 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
5580 (already_processed_vertex_p): Adjust.
5581 (has_anti_or_output_dependence, predecessor_has_mem_write,
5582 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
5583 rdg_flag_uses): Remove.
5584 (rdg_flag_vertex): Simplify.
5585 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
5586 remove recursion.
5587 (build_rdg_partition_for_component): Process the first vertex
5588 of a component only.
5589 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
5590
38c89763
AM
55912013-09-12 Alan Modra <amodra@gmail.com>
5592
5593 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
5594
3e3d9d17
DD
55952013-09-11 DJ Delorie <dj@redhat.com>
5596 Nick Clifton <nickc@redhat.com>
5597
5598 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
5599 (rl78_stack_based_mem): New.
5600 * config/rl78/constraints.md (Iv08): New.
5601 (Iv16): New.
5602 (Iv24): New.
5603 (Is09): New.
5604 (Is17): New.
5605 (Is25): New.
5606 (ISsi): New.
5607 (IShi): New.
5608 (ISqi): New.
5609 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
5610 (movhi): Likewise.
5611 (movsi): Change from expand to insn-and-split.
5612 (ashrsi3): Clobber AX.
5613 (lshrsi3): New.
5614 (ashlsi3): New.
5615 (cbranchsi4): New.
5616 * config/rl78/rl78.md (CC_REG): Fix.
5617 (addsi3): Allow memory and immediate operands.
5618 (addsi3_internal): Split into...
5619 (addsi3_internal_virt): ...new, and ...
5620 (addsi3_internal_real): ...new.
5621 (subsi): New.
5622 (subsi3_internal_virt): New.
5623 (subsi3_internal_real): New.
5624 (mulsi3): Add memory operand.
5625 (mulsi3_rl78): Likewise.
5626 (mulsi3_g13): Likewise.
5627 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
5628 (cbranchqi4_real): Add more constraint options.
5629 (cbranchhi4_real): Expand pattern.
5630 (cbranchhi4_real_signed): New.
5631 (cbranchhi4_real_inverted): New.
5632 (cbranchsi4_real_lt): New.
5633 (cbranchsi4_real_ge): New.
5634 (cbranchsi4_real_signed): New.
5635 (cbranchsi4_real): New.
5636 (peephole2): New.
893e85fa
CM
5637 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
5638 constant shifts.
3e3d9d17
DD
5639 (lshrsi3_virt): Likewise.
5640 (ashlsi3_virt): Likewise.
5641 (cbranchqi4_virt_signed): New.
5642 (cbranchhi4_virt_signed): New.
5643 (cbranchsi4_virt): New.
5644 * config/rl78/rl78.c: Whitespace fixes throughout.
5645 (move_elim_pass): New.
5646 (pass_data_rl78_move_elim): New.
5647 (pass_rl78_move_elim): New.
5648 (make_pass_rl78_move_elim): New.
5649 (rl78_devirt_info): Run devirt earlier.
5650 (rl78_move_elim_info): New.
5651 (rl78_asm_file_start): Register it.
5652 (rl78_split_movsi): New.
5653 (rl78_as_legitimate_address): Allow virtual base registers when
5654 appropriate.
5655 (rl78_addr_space_convert): Remove spurious debug stuff.
5656 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
5657 (rl78_print_operand): More cases for not printing '#'.
5658 (rl78_expand_compare): Remove most of the logic.
5659 (content_memory): New.
5660 (clear_content_memory): New.
5661 (get_content_index): New.
5662 (get_content_name): New.
5663 (display_content_memory): New.
5664 (update_content): New.
5665 (record_content): New.
5666 (already_contains): New.
5667 (insn_ok_now): Re-recog insns with virtual registers.
5668 (add_postponed_content_update): New.
5669 (process_postponed_content_update): New.
5670 (gen_and_emit_move): New.
893e85fa
CM
5671 (transcode_memory_rtx): Record new location content.
5672 Use gen_and_emit_move.
3e3d9d17
DD
5673 (force_into_acc): New.
5674 (move_to_acc): Use gen_and_emit_move.
5675 (move_from_acc): Likewise.
5676 (move_acc_to_reg): Likewise.
5677 (move_to_x): Likewise.
5678 (move_to_hl): Likewise.
5679 (move_to_de): Likewise.
5680 (rl78_alloc_physical_registers_op1): Record location content.
5681 (has_constraint): New.
5682 (rl78_alloc_physical_registers_op2): Record location content.
5683 Optimize use of HL.
5684 (rl78_alloc_physical_registers_ro1): Likewise.
5685 (rl78_alloc_physical_registers_cmp): Likewise.
5686 (rl78_alloc_physical_registers_umul): Likewise.
5687 (rl78_alloc_address_registers_macax): New.
5688 (rl78_alloc_physical_registers): Initialize and set location
5689 content memory as needed.
5690 (rl78_reorg): Make sure split2 is called.
5691 (rl78_rtx_costs): New.
5692
088845a5
RS
56932013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
5694
5695 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
5696 for (not (neg ...)) and (neg (not ...)) cases.
5697
5c2961cf
RB
56982013-09-11 Richard Biener <rguenther@suse.de>
5699
5700 PR middle-end/58377
5701 * passes.def: Split critical edges before late uninit warning passes.
5702 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
5703
427e6a14
JJ
57042013-09-11 Jakub Jelinek <jakub@redhat.com>
5705
5706 PR tree-optimization/58385
5707 * fold-const.c (build_range_check): If both low and high are NULL,
5708 use omit_one_operand_loc to preserve exp side-effects.
5709
df45c0cc
KT
57102013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5711
5712 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
5713
80ab0b19
RB
57142013-09-11 Richard Biener <rguenther@suse.de>
5715
5716 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
5717 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
5718 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
5719 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
5720 stmts_from_loop, known_dependences_p, build_empty_rdg,
5721 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
5722 * tree-loop-distribution.c: ... here.
5723 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
5724 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
5725 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
5726 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
5727 * tree-loop-distribution.c: ... here.
5728 * tree-loop-distribution.c: Include gimple-pretty-print.h.
5729 (struct partition_s): Add loops member.
5730 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
5731 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
5732 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
5733
85a77221
AI
57342013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5735 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5736 Sergey Lega <sergey.s.lega@intel.com>
5737 Anna Tikhonova <anna.tikhonova@intel.com>
5738 Ilya Tocar <ilya.tocar@intel.com>
5739 Andrey Turetskiy <andrey.turetskiy@intel.com>
5740 Ilya Verbin <ilya.verbin@intel.com>
5741 Kirill Yukhin <kirill.yukhin@intel.com>
5742 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5743
5744 * config/i386/constraints.md (k): New.
5745 (Yk): Ditto.
5746 * config/i386/i386.c (const regclass_map): Add new mask registers.
5747 (dbx_register_map): Ditto.
5748 (dbx64_register_map): Ditto.
5749 (svr4_dbx_register_map): Ditto.
5750 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
5751 disabled.
5752 (ix86_preferred_reload_class): Disable constants for mask registers.
5753 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
5754 (ix86_hard_regno_mode_ok): Support new mask registers.
5755 (x86_order_regs_for_local_alloc): Ditto.
5756 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
5757 (FIXED_REGISTERS): Add new mask registers.
5758 (CALL_USED_REGISTERS): Ditto.
5759 (REG_ALLOC_ORDER): Ditto.
5760 (VALID_MASK_REG_MODE): New.
5761 (FIRST_MASK_REG): Ditto.
5762 (LAST_MASK_REG): Ditto.
5763 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
5764 (MAYBE_MASK_CLASS_P): New.
5765 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
5766 (REG_CLASS_CONTENTS): Ditto.
5767 (MASK_REGNO_P): New.
5768 (ANY_MASK_REG_P): Ditto.
5769 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
5770 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
5771 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
5772 mask registers.
85a77221
AI
5773 (attribute "type"): Add mskmov, msklog.
5774 (attribute "length_immediate"): Support them.
5775 (attribute "memory"): Ditto.
5776 (attribute "prefix_0f"): Ditto.
5777 (*movhi_internal): Support new mask registers.
5778 (*movqi_internal): Ditto.
5779 (define_split): Split out clobber pattern is a logic
5780 insn on mask registers.
5781 (*k<logic><mode>): New.
5782 (*andhi_1): Extend to support mask regs.
5783 (*andqi_1): Extend to support mask regs.
5784 (kandn<mode>): New.
5785 (define_split): Split and-not to and and not if operands
5786 are not mask regs.
5787 (*<code><mode>_1): Separate HI mode to new pattern...
5788 (*<code>hi_1): This.
5789 (*<code>qi_1): Extend to support mask regs.
5790 (kxnor<mode>): New.
5791 (kortestzhi): Ditto.
5792 (kortestchi): Ditto.
5793 (kunpckhi): Ditto.
5794 (*one_cmpl<mode>2_1): Remove HImode and handle it...
5795 (*one_cmplhi2_1): ...Here, now with mask registers support.
5796 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
5797 (HI/QImode arithmetics splitter): Don't split if mask registers
5798 are used.
85a77221
AI
5799 (HI/QImode not splitter): Ditto.
5800 * config/i386/predicated.md (mask_reg_operand): New.
5801 (general_reg_operand): Ditto.
5802
7e570821
AI
58032013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5804
5805 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
5806 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
5807
9e1376e9
JL
58082013-09-10 Jeff Law <law@redhat.com>
5809
5810 PR tree-optimization/58380
5811 * tree-ssa-threadupdate.c (thread_block): Recognize another case
5812 of threading through a buried loop header.
5813
5814 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
5815 return value for single successor case.
5816
5bbcb888
JH
58172013-09-10 Jan Hubicka <jh@suse.cz>
5818
5819 * ipa-devirt.c (ipa_devirt): Enable with LTO.
5820
d742ff4b
RE
58212013-09-10 Richard Earnshaw <rearnsha@arm.com>
5822
5823 PR target/58361
5824 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
5825 support conditional execution.
5826 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
5827
b0681c9e
VM
58282013-09-10 Vladimir Makarov <vmakarov@redhat.com>
5829
5830 * lra.c (lra): Clear lra_optional_reload_pseudos before every
5831 constraint pass.
f77e2d2d
JBG
5832 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
5833 Check destination too to check move insn.
b0681c9e 5834 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
5835 changed its allocation and the optional reload was inherited on last
5836 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
5837 (lra_undo_inheritance): Add check that inherited pseudo still in
5838 memory.
5839
c9b1c957
JG
58402013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
5841
5842 * config/aarch64/aarch64.md (generic_sched): New.
5843 * config/aarch64/aarch64-generic.md (load): Make conditional
5844 on generic_sched attribute.
5845 (nonload): Likewise.
5846
82d618d3
JH
58472013-09-10 Jan Hubicka <jh@suse.cz>
5848
5849 * lto-cgraph.c: Include ipa-utils.h.
5850 (compute_ltrans_boundary): Also add possible targets into the boundary.
5851
668b6894
JH
58522013-09-10 Jan Hubicka <jh@suse.cz>
5853
5854 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
5855 VAR_DECL of vtable rather than full expression.
5856
4f90d3e0
JH
58572013-09-10 Jan Hubicka <jh@suse.cz>
5858 Paolo Carlini <paolo.carlini@oracle.com>
5859
5860 * cgraphunit.c (analyze_functions): Save input_location, set it
5861 to UNKNOWN_LOCATION and restore it at the end.
5862
39e87baf
MJ
58632013-09-10 Martin Jambor <mjambor@suse.cz>
5864
5865 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
5866 represented by a thunk.
5867
581aedec
JL
58682013-09-10 Jeff Law <law@redhat.com>
5869
5870 PR tree-optimization/58343
5871 * tree-ssa-threadupdate.c (thread_block): Identify and disable
5872 jump threading requests through loop headers buried in the middle
5873 of a jump threading path.
5874
5875 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
5876 in return value/type.
5877
84cf4ab6
JJ
58782013-09-10 Jakub Jelinek <jakub@redhat.com>
5879
5880 PR rtl-optimization/58365
5881 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
5882 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
5883 it differs.
5884
447dd906
RB
58852013-09-10 Richard Biener <rguenther@suse.de>
5886
5887 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
5888 * tree-data-ref.c (create_rdg_vertices): Collect all data
5889 references, signal failure to the caller, use data-ref API.
893e85fa
CM
5890 (build_rdg): Compute data references only once. Maintain lifetime
5891 of data references and data dependences from within RDG.
447dd906
RB
5892 (free_rdg): Free dependence relations.
5893 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
5894 inventing extra dependences.
5895 (distribute_loop): Update for RDG API changes.
5896
f14a7324
KT
58972013-09-10 Kai Tietz <ktietz@redhat.com>
5898
5899 * doc/invoke.texi (fms-extensions): Document changed
5900 behavior for ms-abi targets.
5901 * config/i386/i386.c (ix86_option_override_internal):
5902 Set default value of option -fms-extension for ms-abi targets.
5903
ff131f26
MZ
59042013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
5905
5906 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
5907
33115a2c
AM
59082013-09-10 Alan Modra <amodra@gmail.com>
5909
5910 PR target/58330
5911 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
5912
b6872a13
AM
59132013-09-10 Alan Modra <amodra@gmail.com>
5914
5915 * config/rs6000/predicates.md (add_cint_operand): New.
5916 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
5917 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
5918 using add_cint_operand.
5919 (largetoc_high_plus_aix): Likewise.
5920
28fd0ba2
JJ
59212013-09-09 Jakub Jelinek <jakub@redhat.com>
5922
5923 PR tree-optimization/58364
5924 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
5925 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
5926 the current range can't be an unconditional true or false.
5927
552d99fe
JG
59282013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5929
5930 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
5931
f43245d1
UB
59322013-09-09 Uros Bizjak <ubizjak@gmail.com>
5933
5934 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
5935
c9b0866a
PC
59362013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
5937
5938 PR c++/43452
5939 * doc/invoke.texi (-Wdelete-incomplete): Document it.
5940
78d8b9f0
IB
59412013-09-09 Ian Bolton <ian.bolton@arm.com>
5942
5943 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
5944 NO_REGS for immediate that can't be moved directly into FP_REGS.
5945
274b2532
KT
59462013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5947
5948 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
5949 comparison with negated operand.
c9b0866a
PC
5950 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
5951 RTL form.
274b2532 5952
467a3558
RB
59532013-09-09 Richard Biener <rguenther@suse.de>
5954
5955 PR middle-end/58326
5956 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
5957 of a subloop record all its block as affecting loop-closed SSA form.
5958
088c5368
RS
59592013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5960
5961 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
5962 of an rtx/bitpos pair.
5963 (store_fixed_bit_field): Update accordingly.
5964
69db2d57
RS
59652013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5966
5967 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
5968 GEN_INT.
5969 * builtins.c (expand_errno_check): Likewise.
5970 * dwarf2cfi.c (init_return_column_size): Likewise.
5971 * except.c (sjlj_mark_call_sites): Likewise.
5972 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
5973 * lra-constraints.c (emit_inc): Likewise.
5974 * ree.c (combine_set_extension): Likewise.
5975 * regmove.c (fixup_match_2): Likewise.
5976 * reload1.c (inc_for_reload): Likewise.
5977
69a59f0f
RS
59782013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5979
5980 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
5981 (force_to_mode, simplify_shift_const_1, simplify_comparison):
5982 Use gen_int_mode with the mode of the associated simplify_* call.
5983 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
5984 * expmed.c (expand_shift_1): Likewise.
5985 * function.c (instantiate_virtual_regs_in_insn): Likewise.
5986 * loop-iv.c (iv_number_of_iterations): Likewise.
5987 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
5988 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5989
2f1cd2eb
RS
59902013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
5991
5992 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
5993 of the associated expand_* call.
5994 (asan_emit_stack_protection): Likewise.
5995 * builtins.c (round_trampoline_addr): Likewise.
5996 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
5997 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
5998 (emit_store_flag): Likewise.
5999 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
6000 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
6001 Likewise.
6002 * function.c (instantiate_virtual_regs_in_insn): Likewise.
6003 * ifcvt.c (noce_try_store_flag_constants): Likewise.
6004 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
6005 * modulo-sched.c (generate_prolog_epilog): Likewise.
6006 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
6007 (expand_ctz, expand_ffs, expand_unop): Likewise.
6008
4789c0ce
RS
60092013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
6010
6011 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
6012 of the associated gen_rtx_* call.
6013 * caller-save.c (init_caller_save): Likewise.
6014 * combine.c (find_split_point, make_extraction): Likewise.
6015 (make_compound_operation): Likewise.
6016 * dwarf2out.c (mem_loc_descriptor): Likewise.
6017 * explow.c (plus_constant, probe_stack_range): Likewise.
6018 * expmed.c (expand_mult_const): Likewise.
6019 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
6020 * reload1.c (init_reload): Likewise.
6021 * valtrack.c (cleanup_auto_inc_dec): Likewise.
6022 * var-tracking.c (adjust_mems): Likewise.
6023 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
6024 rather than gen_rtx_fmt_ee.
6025
a811f7cb
JH
60262013-09-09 Jan Hubicka <jh@suse.cz>
6027
6028 PR middle-end/58294
6029 * value-prof.c (gimple_ic): Copy also abnormal edges.
6030
dcad1dd3
RS
60312013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
6032
6033 * asan.c (asan_shadow_cst): Use gen_int_mode.
6034
daf5c770
JH
60352013-09-08 Jan Hubicka <jh@suse.cz>
6036
6037 * ipa-profile.c: Add toplevel comment.
6038 (ipa_propagate_frequency_1): Be more conservative when profile is read.
6039 (contains_hot_call_p): New function.
6040 (ipa_propagate_frequency): Set frequencies based on counts when
6041 profile is read.
6042 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
6043 profile; do not tamper with profile after inlining if it is read.
6044
a12cd2db
JH
60452013-09-08 Jan Hubicka <jh@suse.cz>
6046
6047 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
6048 speculative edges.
6049
856a1588
JH
60502013-09-08 Jan Hubicka <jh@suse.cz>
6051
6052 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
6053 summary generation.
6054
4f4b0b73
JL
60552013-09-08 Jeff Law <law@redhat.com>
6056
6057 PR bootstrap/58340
6058 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
6059 of 'found'.
6060
cc4029ee
AK
60612013-09-08 Andi Kleen <ak@linux.intel.com>
6062
6063 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
6064
7b395ddd
JH
60652013-09-08 Jan Hubicka <jh@suse.cz>
6066
6067 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
6068
c34c46dd
RS
60692013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
6070
6071 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
6072 for non-debug insns.
6073 * lra.c (new_insn_reg): Take the containing insn as a parameter.
6074 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
6075 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
6076 accordingly.
6077
3462aa02
JH
60782013-09-08 Jan Hubicka <jh@suse.cz>
6079
6080 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
6081 targets and devirtualize to BUILT_IN_UNREACHABLE.
6082 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
6083 * ipa.c (walk_polymorphic_call_targets): New function.
6084 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
6085 functions; use the new timevar.
6086 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
6087 was removed from the program.
6088 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
6089 not consider it in the walk when its vtable is dead.
6090 (possible_polymorphic_call_targets_1): Pass anonymous flag to
6091 record_binfo.
6092 (devirt_variable_node_removal_hook): New function.
6093 (possible_polymorphic_call_targets): Also register
6094 devirt_variable_node_removal_hook.
6095 (ipa_devirt): Do not do non-speculative devirtualization.
6096 (gate_ipa_devirt): One execute if devirtualizing speculatively.
6097
26e5b0fd
JH
60982013-09-08 Jan Hubicka <jh@suse.cz>
6099
6100 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
6101 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
6102 varpool_remove_variable_insertion_hook): Declare.
6103 * varpool.c (varpool_node_hook_list): New structure.
6104 (first_varpool_node_removal_hook,
6105 first_varpool_variable_insertion_hook): New variables.
6106 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
6107 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
6108 varpool_remove_variable_insertion_hook,
6109 varpool_call_variable_insertion_hooks): New functions.
6110 (varpool_remove_node): Use it.
6111
97f1f314 61122013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 6113
97f1f314
PC
6114 PR c++/54941
6115 * diagnostic.c (diagnostic_build_prefix): When s.file is
6116 "<built-in>" don't output line and column numbers.
6df2ca09 6117
bcb650cb
JH
61182013-09-06 Jan Hubicka <jh@suse.cz>
6119
6120 * cgraphunit.c (expand_thunk): Get body before touching arguments.
6121 * lto-streamer-out.c: Stream thunks, too.
6122 * lto-streamer-in.c (input_function): Pop cfun here
6123 (lto_read_body): Instead of here.
6124
87f3fea8
CT
61252013-09-06 Caroline Tice <cmtice@google.com>
6126
6127 * doc/install.texi: Add documentation for the --enable-vtable-verify
6128 and the --disable-libvtv configure options.
6129
5e8d9b45
JL
61302013-09-06 Jeff Law <law@redhat.com>
6131
6132 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
6133 edge implied equivalences into successor phis.
6134
3a001aff
JR
61352013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6136
6137 * resource.c (mark_referenced_resources): Handle COND_EXEC.
6138
61392013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
6140
6141 * resource.c (mark_target_live_regs): Compute resources taking
6142 into account if a call is predicated or not.
6143
2c641f8b
EB
61442013-09-06 Eric Botcazou <ebotcazou@adacore.com>
6145
6146 * toplev.c (output_stack_usage): Be prepared for suffixes created by
6147 the compiler in the function names.
6148
a81b0a3d
JH
61492013-09-06 Jan Hubicka <jh@suse.cz>
6150
6151 PR middle-end/58094
6152 * ipa-inline.c (has_caller_p): New function.
6153 (want_inline_function_to_all_callers_p): Use it.
6154 (sum_callers, inline_to_all_callers): Break out from ...
6155 (ipa_inline): ... here.
6156
68e4ca7e
JH
61572013-09-06 Jan Hubicka <jh@suse.cz>
6158
2c641f8b
EB
6159 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
6160 only when AVX is enabled.
68e4ca7e 6161
3c73e2fe
JG
61622013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6163
6164 * config/aarch64/aarch64.md
6165 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
6166 is fpsimd_<load/store>2.
6167 (load_pair<mode>): Likewise.
6168 (store_pair<mode>): Likewise.
6169
8c48eecd
JG
61702013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6171
6172 * config/arm/types.md (type): Add "mrs" type.
6173 * config/aarch64/aarch64.md
6174 (aarch64_load_tp_hard): Make type "mrs".
6175 * config/arm/arm.md
6176 (load_tp_hard): Make type "mrs".
6177 * config/arm/cortex-a15.md: Update with new attributes.
6178 * config/arm/cortex-a5.md: Update with new attributes.
6179 * config/arm/cortex-a53.md: Update with new attributes.
6180 * config/arm/cortex-a7.md: Update with new attributes.
6181 * config/arm/cortex-a8.md: Update with new attributes.
6182 * config/arm/cortex-a9.md: Update with new attributes.
6183 * config/arm/cortex-m4.md: Update with new attributes.
6184 * config/arm/cortex-r4.md: Update with new attributes.
6185 * config/arm/fa526.md: Update with new attributes.
6186 * config/arm/fa606te.md: Update with new attributes.
6187 * config/arm/fa626te.md: Update with new attributes.
6188 * config/arm/fa726te.md: Update with new attributes.
6189
9ea187a5
JG
61902013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6191
6192 * config/aarch64/aarch64.md
6193 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
6194 (*movtf_aarch64): Likewise.
6195 * config/arm/arm.md
6196 (thumb1_movdi_insn): Use "multiple" for type where more than one
6197 instruction is used for a move.
6198 (*arm32_movhf): Likewise.
6199 (*thumb_movdf_insn): Likewise.
6200
292b89b3
JG
62012013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6202
6203 * config/arm/types.md (type): Rename fcpys to fmov.
6204 * config/arm/vfp.md
6205 (*arm_movsi_vfp): Rename type fcpys as fmov.
6206 (*thumb2_movsi_vfp): Likewise
6207 (*movhf_vfp_neon): Likewise
6208 (*movhf_vfp): Likewise
6209 (*movsf_vfp): Likewise
6210 (*thumb2_movsf_vfp): Likewise
6211 (*movsfcc_vfp): Likewise
6212 (*thumb2_movsfcc_vfp): Likewise
6213 * config/aarch64/aarch64-simd.md
6214 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
6215 * config/aarch64/aarch64.md
6216 (*movsi_aarch64): Replace type mov_reg with fmovs.
6217 (*movdi_aarch64): Likewise
6218 (*movsf_aarch64): Likewise
6219 (*movdf_aarch64): Likewise
6220 * config/arm/arm.c
6221 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
6222 * config/arm/iwmmxt.md
6223 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
6224 * config/arm/arm1020e.md: Update with new attributes.
6225 * config/arm/cortex-a15-neon.md: Update with new attributes.
6226 * config/arm/cortex-a5.md: Update with new attributes.
6227 * config/arm/cortex-a53.md: Update with new attributes.
6228 * config/arm/cortex-a7.md: Update with new attributes.
6229 * config/arm/cortex-a8-neon.md: Update with new attributes.
6230 * config/arm/cortex-a9.md: Update with new attributes.
6231 * config/arm/cortex-m4-fpu.md: Update with new attributes.
6232 * config/arm/cortex-r4f.md: Update with new attributes.
6233 * config/arm/marvell-pj4.md: Update with new attributes.
6234 * config/arm/vfp11.md: Update with new attributes.
6235
6a24a83e
JG
62362013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6237
6238 * config/aarch64/aarch64.md
6239 (*madd<mode>): Fix type attribute.
6240 (*maddsi_uxtw): Likewise.
6241 (*msub<mode>): Likewise.
6242 (*msubsi_uxtw): Likewise.
6243 (<su_optab>maddsidi4): Likewise.
6244 (<su_optab>msubsidi4): Likewise.
6245
b86923f0
JG
62462013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6247
6248 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
6249 * config/arm/arm.md (core_cycles): Remove fdiv.
6250 * config/arm/vfp.md:
6251 (*sqrtsf2_vfp): Update for attribute changes.
6252 (*sqrtdf2_vfp): Likewise.
6253 * config/aarch64/aarch64.md:
6254 (sqrt<mode>2): Update for attribute changes.
6255 * config/arm/arm1020e.md: Update with new attributes.
6256 * config/arm/cortex-a15-neon.md: Update with new attributes.
6257 * config/arm/cortex-a5.md: Update with new attributes.
6258 * config/arm/cortex-a53.md: Update with new attributes.
6259 * config/arm/cortex-a7.md: Update with new attributes.
6260 * config/arm/cortex-a8-neon.md: Update with new attributes.
6261 * config/arm/cortex-a9.md: Update with new attributes.
6262 * config/arm/cortex-m4-fpu.md: Update with new attributes.
6263 * config/arm/cortex-r4f.md: Update with new attributes.
6264 * config/arm/marvell-pj4.md: Update with new attributes.
6265 * config/arm/vfp11.md: Update with new attributes.
6266
7b49c9e1
JG
62672013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6268
6269 * config/arm/types.md
6270 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
6271 * config/aarch64/aarch64.md
6272 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
6273 new attributes.
6274 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
6275 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
6276 (float<GPI:mode><GPF:mode>2): Likewise.
6277 * config/arm/vfp.md
6278 (*truncsisf2_vfp): Update with new attributes.
6279 (*truncsidf2_vfp): Likewise.
6280 (fixuns_truncsfsi2): Likewise.
6281 (fixuns_truncdfsi2): Likewise.
6282 (*floatsisf2_vfp): Likewise.
6283 (*floatsidf2_vfp): Likewise.
6284 (floatunssisf2): Likewise.
6285 (floatunssidf2): Likewise.
6286 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
6287 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
6288 * config/arm/arm1020e.md: Update with new attributes.
6289 * config/arm/cortex-a15-neon.md: Update with new attributes.
6290 * config/arm/cortex-a5.md: Update with new attributes.
6291 * config/arm/cortex-a53.md: Update with new attributes.
6292 * config/arm/cortex-a7.md: Update with new attributes.
6293 * config/arm/cortex-a8-neon.md: Update with new attributes.
6294 * config/arm/cortex-a9.md: Update with new attributes.
6295 * config/arm/cortex-m4-fpu.md: Update with new attributes.
6296 * config/arm/cortex-r4f.md: Update with new attributes.
6297 * config/arm/marvell-pj4.md: Update with new attributes.
6298 * config/arm/vfp11.md: Update with new attributes.
6299
e7df8af8
JG
63002013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6301
6302 * config/aarch64/arm_neon.h
6303 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
6304 (vqtbx<1,2,3,4><q>_s8): Likewise.
6305
594726e4
JG
63062013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6307
f43245d1
UB
6308 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
6309 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
6310 (add<mode>3): Add type attribute.
6311 (add<mode>3): Likewise.
6312 (usadd<mode>3): Likewise.
6313 (ssadd<mode>3): Likewise.
6314 (sub<mode>3): Likewise.
6315 (sub<mode>3): Likewise.
6316 (ussub<mode>3): Likewise.
6317 (sssub<mode>3): Likewise.
6318 (ssmulsa3): Likewise.
6319 (usmulusa3): Likewise.
6320 (arm_usatsihi): Likewise.
6321 * config/arm/vfp.md
6322 (*movdi_vfp): Add types for all instructions.
6323 (*movdi_vfp_cortexa8): Likewise.
6324 (*movhf_vfp_neon): Likewise.
6325 (*movhf_vfp): Likewise.
6326 (*movdf_vfp): Likewise.
6327 (*thumb2_movdf_vfp): Likewise.
6328 (*thumb2_movdfcc_vfp): Likewise.
6329 * config/arm/arm.md: Add type attribute to all insn patterns.
6330 (*thumb1_adddi3): Add type attribute.
6331 (*arm_adddi3): Likewise.
6332 (*adddi_sesidi_di): Likewise.
6333 (*adddi_zesidi_di): Likewise.
6334 (*thumb1_addsi3): Likewise.
6335 (addsi3_compare0): Likewise.
6336 (*addsi3_compare0_scratch): Likewise.
6337 (*compare_negsi_si): Likewise.
6338 (cmpsi2_addneg): Likewise.
6339 (*addsi3_carryin_<optab>): Likewise.
6340 (*addsi3_carryin_alt2_<optab>): Likewise.
6341 (*addsi3_carryin_clobercc_<optab>): Likewise.
6342 (*subsi3_carryin): Likewise.
6343 (*subsi3_carryin_const): Likewise.
6344 (*subsi3_carryin_compare): Likewise.
6345 (*subsi3_carryin_compare_const): Likewise.
6346 (*arm_subdi3): Likewise.
6347 (*thumb_subdi3): Likewise.
6348 (*subdi_di_zesidi): Likewise.
6349 (*subdi_di_sesidi): Likewise.
6350 (*subdi_zesidi_di): Likewise.
6351 (*subdi_sesidi_di): Likewise.
6352 (*subdi_zesidi_ze): Likewise.
6353 (thumb1_subsi3_insn): Likewise.
6354 (*arm_subsi3_insn): Likewise.
6355 (*anddi3_insn): Likewise.
6356 (*anddi_zesidi_di): Likewise.
6357 (*anddi_sesdi_di): Likewise.
6358 (*ne_zeroextracts): Likewise.
6359 (*ne_zeroextracts): Likewise.
6360 (*ite_ne_zeroextr): Likewise.
6361 (*ite_ne_zeroextr): Likewise.
6362 (*anddi_notdi_di): Likewise.
6363 (*anddi_notzesidi): Likewise.
6364 (*anddi_notsesidi): Likewise.
6365 (andsi_notsi_si): Likewise.
6366 (thumb1_bicsi3): Likewise.
6367 (*iordi3_insn): Likewise.
6368 (*iordi_zesidi_di): Likewise.
6369 (*iordi_sesidi_di): Likewise.
6370 (*thumb1_iorsi3_insn): Likewise.
6371 (*xordi3_insn): Likewise.
6372 (*xordi_zesidi_di): Likewise.
6373 (*xordi_sesidi_di): Likewise.
6374 (*arm_xorsi3): Likewise.
6375 (*andsi_iorsi3_no): Likewise.
6376 (*smax_0): Likewise.
6377 (*smax_m1): Likewise.
6378 (*arm_smax_insn): Likewise.
6379 (*smin_0): Likewise.
6380 (*arm_smin_insn): Likewise.
6381 (*arm_umaxsi3): Likewise.
6382 (*arm_uminsi3): Likewise.
6383 (*minmax_arithsi): Likewise.
6384 (*minmax_arithsi_): Likewise.
6385 (*satsi_<SAT:code>): Likewise.
6386 (arm_ashldi3_1bit): Likewise.
6387 (arm_ashrdi3_1bit): Likewise.
6388 (arm_lshrdi3_1bit): Likewise.
6389 (*arm_negdi2): Likewise.
6390 (*thumb1_negdi2): Likewise.
6391 (*arm_negsi2): Likewise.
6392 (*thumb1_negsi2): Likewise.
6393 (*negdi_extendsid): Likewise.
6394 (*negdi_zero_extend): Likewise.
6395 (*arm_abssi2): Likewise.
6396 (*thumb1_abssi2): Likewise.
6397 (*arm_neg_abssi2): Likewise.
6398 (*thumb1_neg_abss): Likewise.
6399 (one_cmpldi2): Likewise.
6400 (extend<mode>di2): Likewise.
6401 (*compareqi_eq0): Likewise.
6402 (*arm_extendhisi2addsi): Likewise.
6403 (*arm_movdi): Likewise.
6404 (*thumb1_movdi_insn): Likewise.
6405 (*arm_movt): Likewise.
6406 (*thumb1_movsi_insn): Likewise.
6407 (pic_add_dot_plus_four): Likewise.
6408 (pic_add_dot_plus_eight): Likewise.
6409 (tls_load_dot_plus_eight): Likewise.
6410 (*thumb1_movhi_insn): Likewise.
6411 (*thumb1_movsf_insn): Likewise.
6412 (*movdf_soft_insn): Likewise.
6413 (*thumb_movdf_insn): Likewise.
6414 (cbranchsi4_insn): Likewise.
6415 (cbranchsi4_scratch): Likewise.
6416 (*negated_cbranchsi4): Likewise.
6417 (*tbit_cbranch): Likewise.
6418 (*tlobits_cbranch): Likewise.
6419 (*tstsi3_cbranch): Likewise.
6420 (*cbranchne_decr1): Likewise.
6421 (*addsi3_cbranch): Likewise.
6422 (*addsi3_cbranch_scratch): Likewise.
6423 (*arm_cmpdi_insn): Likewise.
6424 (*arm_cmpdi_unsig): Likewise.
6425 (*arm_cmpdi_zero): Likewise.
6426 (*thumb_cmpdi_zero): Likewise.
6427 (*deleted_compare): Likewise.
6428 (*mov_scc): Likewise.
6429 (*mov_negscc): Likewise.
6430 (*mov_notscc): Likewise.
6431 (*cstoresi_eq0_thumb1_insn): Likewise.
6432 (cstoresi_nltu_thumb1): Likewise.
6433 (cstoresi_ltu_thu): Likewise.
6434 (thumb1_addsi3_addgeu): Likewise.
6435 (*arm_jump): Likewise.
6436 (*thumb_jump): Likewise.
6437 (*check_arch2): Likewise.
6438 (arm_casesi_internal): Likewise.
6439 (thumb1_casesi_dispatch): Likewise.
6440 (*arm_indirect_jump): Likewise.
6441 (*thumb1_indirect_jump): Likewise.
6442 (nop): Likewise.
6443 (*and_scc): Likewise.
6444 (*ior_scc): Likewise.
6445 (*compare_scc): Likewise.
6446 (*cond_move): Likewise.
6447 (*cond_arith): Likewise.
6448 (*cond_sub): Likewise.
6449 (*cmp_ite0): Likewise.
6450 (*cmp_ite1): Likewise.
6451 (*cmp_and): Likewise.
6452 (*cmp_ior): Likewise.
6453 (*ior_scc_scc): Likewise.
6454 (*ior_scc_scc_cmp): Likewise.
6455 (*and_scc_scc): Likewise.
6456 (*and_scc_scc_cmp): Likewise.
6457 (*and_scc_scc_nod): Likewise.
6458 (*negscc): Likewise.
6459 (movcond_addsi): Likewise.
6460 (movcond): Likewise.
6461 (*ifcompare_plus_move): Likewise.
6462 (*if_plus_move): Likewise.
6463 (*ifcompare_move_plus): Likewise.
6464 (*if_move_plus): Likewise.
6465 (*ifcompare_arith_arith): Likewise.
6466 (*if_arith_arith): Likewise.
6467 (*ifcompare_arith_move): Likewise.
6468 (*if_arith_move): Likewise.
6469 (*ifcompare_move_arith): Likewise.
6470 (*if_move_arith): Likewise.
6471 (*ifcompare_move_not): Likewise.
6472 (*if_move_not): Likewise.
6473 (*ifcompare_not_move): Likewise.
6474 (*if_not_move): Likewise.
6475 (*ifcompare_shift_move): Likewise.
6476 (*if_shift_move): Likewise.
6477 (*ifcompare_move_shift): Likewise.
6478 (*if_move_shift): Likewise.
6479 (*ifcompare_shift_shift): Likewise.
6480 (*ifcompare_not_arith): Likewise.
6481 (*ifcompare_arith_not): Likewise.
6482 (*if_arith_not): Likewise.
6483 (*ifcompare_neg_move): Likewise.
6484 (*if_neg_move): Likewise.
6485 (*ifcompare_move_neg): Likewise.
6486 (*if_move_neg): Likewise.
6487 (prologue_thumb1_interwork): Likewise.
6488 (*cond_move_not): Likewise.
6489 (*sign_extract_onebit): Likewise.
6490 (*not_signextract_onebit): Likewise.
6491 (stack_tie): Likewise.
6492 (align_4): Likewise.
6493 (align_8): Likewise.
6494 (consttable_end): Likewise.
6495 (consttable_1): Likewise.
6496 (consttable_2): Likewise.
6497 (consttable_4): Likewise.
6498 (consttable_8): Likewise.
6499 (consttable_16): Likewise.
6500 (*thumb1_tablejump): Likewise.
6501 (prefetch): Likewise.
6502 (force_register_use): Likewise.
6503 (thumb_eh_return): Likewise.
6504 (load_tp_hard): Likewise.
6505 (load_tp_soft): Likewise.
6506 (tlscall): Likewise.
6507 (*arm_movtas_ze): Likewise.
6508 (*arm_rev): Likewise.
6509 (*arm_revsh): Likewise.
6510 (*arm_rev16): Likewise.
6511 * config/arm/thumb2.md
6512 (*thumb2_smaxsi3): Likewise.
6513 (*thumb2_sminsi3): Likewise.
6514 (*thumb32_umaxsi3): Likewise.
6515 (*thumb2_uminsi3): Likewise.
6516 (*thumb2_negdi2): Likewise.
6517 (*thumb2_abssi2): Likewise.
6518 (*thumb2_neg_abss): Likewise.
6519 (*thumb2_movsi_insn): Likewise.
6520 (tls_load_dot_plus_four): Likewise.
6521 (*thumb2_movhi_insn): Likewise.
6522 (*thumb2_mov_scc): Likewise.
6523 (*thumb2_mov_negs): Likewise.
6524 (*thumb2_mov_negs): Likewise.
6525 (*thumb2_mov_nots): Likewise.
6526 (*thumb2_mov_nots): Likewise.
6527 (*thumb2_movsicc_): Likewise.
6528 (*thumb2_movsfcc_soft_insn): Likewise.
6529 (*thumb2_indirect_jump): Likewise.
6530 (*thumb2_and_scc): Likewise.
6531 (*thumb2_ior_scc): Likewise.
6532 (*thumb2_ior_scc_strict_it): Likewise.
6533 (*thumb2_cond_move): Likewise.
6534 (*thumb2_cond_arith): Likewise.
6535 (*thumb2_cond_ari): Likewise.
6536 (*thumb2_cond_sub): Likewise.
6537 (*thumb2_negscc): Likewise.
6538 (*thumb2_movcond): Likewise.
6539 (thumb2_casesi_internal): Likewise.
6540 (thumb2_casesi_internal_pic): Likewise.
6541 (*thumb2_alusi3_short): Likewise.
6542 (*thumb2_mov<mode>_shortim): Likewise.
6543 (*thumb2_addsi_short): Likewise.
6544 (*thumb2_subsi_short): Likewise.
6545 (thumb2_addsi3_compare0): Likewise.
6546 (*thumb2_cbz): Likewise.
6547 (*thumb2_cbnz): Likewise.
6548 (*thumb2_one_cmplsi2_short): Likewise.
6549 (*thumb2_negsi2_short): Likewise.
6550 (*orsi_notsi_si): Likewise.
6551 * config/arm/arm1020e.md: Update with new attributes.
6552 * config/arm/arm1026ejs.md: Update with new attributes.
6553 * config/arm/arm1136jfs.md: Update with new attributes.
6554 * config/arm/arm926ejs.md: Update with new attributes.
6555 * config/arm/cortex-a15.md: Update with new attributes.
6556 * config/arm/cortex-a5.md: Update with new attributes.
6557 * config/arm/cortex-a53.md: Update with new attributes.
6558 * config/arm/cortex-a7.md: Update with new attributes.
6559 * config/arm/cortex-a8.md: Update with new attributes.
6560 * config/arm/cortex-a9.md: Update with new attributes.
6561 * config/arm/cortex-m4.md: Update with new attributes.
6562 * config/arm/cortex-r4.md: Update with new attributes.
6563 * config/arm/fa526.md: Update with new attributes.
6564 * config/arm/fa606te.md: Update with new attributes.
6565 * config/arm/fa626te.md: Update with new attributes.
6566 * config/arm/fa726te.md: Update with new attributes.
6567
1c83b673
JG
65682013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
6569
6570 * config/aarch64/aarch64-simd.md
6571 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
6572 <vwx> iterator to ensure correct register choice.
6573 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
6574 (aarch64_sqdmull_n<mode>): Likewise.
6575 (aarch64_sqdmull2_n<mode>_internal): Likewise.
6576 * config/aarch64/arm_neon.h
6577 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
6578 (vml<as><q>_n_<su>16): Likewise.
6579 (vml<as>l_high_lane<q>_<su>16): Likewise.
6580 (vml<as>l_high_n_<su>16): Likewise.
6581 (vml<as>l_lane<q>_<su>16): Likewise.
6582 (vml<as>l_n_<su>16): Likewise.
6583 (vmul<q>_lane<q>_<su>16): Likewise.
6584 (vmul<q>_n_<su>16): Likewise.
6585 (vmull_lane<q>_<su>16): Likewise.
6586 (vmull_n_<su>16): Likewise.
6587 (vmull_high_lane<q>_<su>16): Likewise.
6588 (vmull_high_n_<su>16): Likewise.
6589 (vqrdmulh<q>_n_s16): Likewise.
6590
bb1ae543
TB
65912013-09-06 Tejas Belagod <tejas.belagod@arm.com>
6592
6593 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
6594 have the correct lane parameter.
6595
f23c0742
RB
65962013-09-06 Richard Biener <rguenther@suse.de>
6597
6598 * cfganal.c (control_dependences::~control_dependences):
6599 Properly free all of the vector.
6600
c1d49770
KY
66012013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
6602
6603 PR target/58269
6604 * config/i386/i386.c (ix86_conditional_register_usage):
6605 Proper initialize extended SSE registers.
6606
6da47f52
JH
66072013-09-06 Jan Hubicka <jh@suse.cz>
6608
6609 PR tree-optimization/58311
6610 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
6611
66122013-09-06 Jan Hubicka <jh@suse.cz>
6613
6614 * Makefile.in (tree-sra.o): Update dependencies.
6615 * tree-sra.c: Include ipa-utils.h
6616 (scan_function): Use recursive_call_p.
6617 (has_caller_p): New function.
6618 (cgraph_for_node_and_aliases): Count also callers of aliases.
6619
fc11f321
JH
66202013-09-06 Jan Hubicka <jh@suse.cz>
6621
6622 PR middle-end/58094
6623 * cgraph.h (symtab_semantically_equivalent_p): Declare.
6624 * tree-tailcall.c: Include ipa-utils.h.
6625 (find_tail_calls): Use it.
6626 * ipa-pure-const.c (check_call): Likewise.
6627 * ipa-utils.c (recursive_call_p): New function.
6628 * ipa-utils.h (recursive_call_p): Dclare.
6629 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
6630 (symtab_semantically_equivalent_p): New function.
6631 * Makefile.in (tree-tailcall.o): Update dependencies.
6632
9a6af450
EB
66332013-09-06 Eric Botcazou <ebotcazou@adacore.com>
6634
6635 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
6636 non-inlinable part.
6637
35f32ad4
RB
66382013-09-06 Richard Biener <rguenther@suse.de>
6639
6640 * lto-streamer.h (lto_global_var_decls): Remove.
6641 * Makefile.in (OBJS): Remove lto-symtab.o.
6642 (lto-symtab.o): Remove.
6643 (GTFILES): Remove lto-symtab.c
6644 * lto-symtab.c: Move to lto/
6645
d12a76f3
AK
66462013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6647
6648 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
6649 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
6650 (UNSPEC_FPINT_RINT): New constant definitions.
6651 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
6652 definition with 2 attributes.
6653 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
6654 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
6655 definitions.
6656
66572013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6658
f43245d1 6659 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
6660 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
6661 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
6662 attribute to "z196_alone".
6663 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
6664 "zEC12_simple".
6665
c8e9d8c3
RB
66662013-09-06 Richard Biener <rguenther@suse.de>
6667
6668 * basic-block.h (class control_dependences): New.
6669 * tree-ssa-dce.c (control_dependence_map): Remove.
6670 (cd): New global.
6671 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
6672 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
6673 find_pdom, find_control_dependence, find_all_control_dependences):
6674 Move to cfganal.c.
f43245d1
UB
6675 (mark_control_dependent_edges_necessary,
6676 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
6677 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
6678 * cfganal.c (set_control_dependence_map_bit,
6679 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
6680 find_all_control_dependences): Move from tree-ssa-dce.c and
6681 implement as methods of control_dependences class.
6682 (control_dependences::control_dependences): New.
6683 (control_dependences::~control_dependences): Likewise.
6684 (control_dependences::get_edges_dependent_on): Likewise.
6685 (control_dependences::get_edge): Likewise.
6686
7d2ba471
JH
66872013-09-04 Jan Hubicka <jh@suse.cz>
6688
6689 * tree.c (types_same_for_odr): Drop overactive check.
6690 * ipa-devirt.c (hash_type_name): Likewise.
6691
e18412fc
JH
66922013-09-04 Jan Hubicka <jh@suse.cz>
6693
6694 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
6695 (analyze_functions): ... here.
6696
d352b245
JH
66972013-09-04 Jan Hubicka <jh@suse.cz>
6698
6699 PR middle-end/58201
6700 * cgraphunit.c (analyze_functions): Clear AUX fields
6701 after processing; initialize assembler name has.
6702
770da076
JL
67032013-09-05 Jeff Law <law@redhat.com>
6704
6705 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
6706 from thread_around_empty_block. Record threading path into PATH.
6707 Recurse if threading through the initial block is successful.
6708 (thread_across_edge): Corresponding changes to slightly simplify.
6709
fe6f68e2
JG
67102013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6711
6712 * config/aarch64/aarch64.md
6713 (type): Remove frecpe, frecps, frecpx.
6714 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
6715 fix to be a TARGET_SIMD instruction.
6716 (aarch64_frecps): Remove.
6717 * config/aarch64/aarch64-simd.md
6718 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
6719 (aarch64_frecps<mode>): Handle all float/vector of float modes.
6720
6e4150e1
JG
67212013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6722 Sofiane Naci <sofiane.naci@arm.com>
6723
f43245d1 6724 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 6725 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
6726 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
6727 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
6728 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
6729 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
6730 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
6731 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
6732 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 6733 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 6734 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
6735 shift* types.
6736 * config/arm/arm-fixed.md: Update for attribute changes
6737 all occurrences of arlo_* types.
6738 * config/arm/thumb2.md: Update for attribute changes all occurrences
6739 of arlo_* types.
6740 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
6741 (cortexa7_older_only): Likewise.
6742 (cortexa7_younger): Likewise.
6743 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
6744 (1020alu_shift_op): Likewise.
6745 (1020alu_shift_reg_op): Likewise.
6746 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
6747 (alu_shift_op): Likewise.
6748 (alu_shift_reg_op): Likewise.
f43245d1 6749 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
6750 (11_alu_shift_op): Likewise.
6751 (11_alu_shift_reg_op): Likewise.
6752 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
6753 (9_alu_shift_reg_op): Likewise.
6754 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
6755 attribute changes.
6756 (cortex_a15_alu_shift): Likewise.
6757 (cortex_a15_alu_shift_reg): Likewise.
6758 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
6759 attribute changes.
6760 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
6761 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
6762 attribute changes.
6e4150e1 6763 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
6764 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
6765 attribute changes.
6e4150e1
JG
6766 (cortex_a7_alu_reg): Likewise.
6767 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
6768 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
6769 attribute changes.
6e4150e1
JG
6770 (cortex_a8_alu_shift): Likewise.
6771 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 6772 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 6773 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
6774 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
6775 attribute changes.
6e4150e1
JG
6776 * config/arm/cortex-r4.md
6777 (cortex_r4_alu): Update for attribute changes.
6778 (cortex_r4_mov): Likewise.
6779 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 6780 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 6781 (526_alu_shift_op): Likewise.
f43245d1
UB
6782 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
6783 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 6784 (626te_alu_shift_op): Likewise.
f43245d1 6785 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
6786 (726te_alu_shift_op): Likewise.
6787 (726te_alu_shift_reg_op): Likewise.
6788 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
6789 (mp626_alu_shift_op): Likewise.
6790 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
6791 (pj4_alu_conds): Likewise.
6792 (pj4_shift): Likewise.
6793 (pj4_shift_conds): Likewise.
6794 (pj4_alu_shift): Likewise.
6795 (pj4_alu_shift_conds): Likewise.
6796 * config/aarch64/aarch64.md: Update for attribute change
6797 all occurrences of arlo_* and shift* types.
6798
e6523306
MS
67992013-09-05 Mike Stump <mikestump@comcast.net>
6800
6801 * tree.h: Move documentation for tree_function_decl to tree-core.h
6802 with the declaration.
6803
80a18161
PB
68042013-09-05 Peter Bergner <bergner@vnet.ibm.com>
6805
6806 PR target/58139
6807 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
6808 looking for widest mode.
6809
6994430a
EB
68102013-09-05 Eric Botcazou <ebotcazou@adacore.com>
6811
6812 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
6813
e67f39f7
RB
68142013-09-05 Richard Biener <rguenther@suse.de>
6815
6816 PR tree-optimization/58137
6817 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6818 Do not create vectors of pointers.
6819 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
6820 types for the components of the vector initializer.
6821 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
6822 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
6823
568cda29
MJ
68242013-09-05 Martin Jambor <mjambor@suse.cz>
6825
6826 * ipa-prop.c (remove_described_reference): Accept missing references,
6827 return false if that hppens, otherwise return true.
6828 (cgraph_node_for_jfunc): New function.
6829 (try_decrement_rdesc_refcount): Likewise.
6830 (try_make_edge_direct_simple_call): Use them.
6831 (ipa_edge_removal_hook): Remove references from rdescs.
6832 (ipa_edge_duplication_hook): Clone rdescs and their references
6833 when the new edge has the same caller as the old one.
6834 * cgraph.c (cgraph_resolve_speculation): Remove speculative
6835 reference before removing any edges.
6836
5a200acb
RE
68372013-09-05 Richard Earnshaw <rearnsha@arm.com>
6838
6839 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
6840 initial store.
6841 * thumb2.md (thumb2_storewb_parisi): New pattern.
6842
5922847b
YZ
68432013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
6844
6845 * config/aarch64/aarch64-option-extensions.def: Add
6846 AARCH64_OPT_EXTENSION of 'crc'.
6847 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
6848 (AARCH64_ISA_CRC): Ditto.
6849 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
6850 description of the CRC extension.
6851
996746aa
AI
68522013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
6853
6854 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
6855 * config/rs6000/linux.h: Ditto.
6856 * alpha/linux.h: Ditto.
6857 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
6858 no_c99_libc_has_function.
6859 * config/c6x/uclinux-elf.h: Ditto.
6860 * config/lm32/uclinux-elf.h: Ditto.
6861 * config/m68k/uclinux.h: Ditto.
6862 * config/moxie/uclinux.h: Ditto.
6863 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
6864 (crisv32-*-linux*, cris-*-linux*): Ditto.
6865 * config/bfin/bfin.c: Include "tm_p.h".
6866
c370d99f
RB
68672013-09-05 Richard Biener <rguenther@suse.de>
6868
6869 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
6870 check for a definition without a basic-block.
6871
003bb7f3
JG
68722013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6873 Sofiane Naci <sofiane.naci@arm.com>
6874
6875 * config/aarch64/aarch64.md
6876 (*movti_aarch64): Rename r_2_f and f_2_r.
6877 (*movsf_aarch64): Likewise.
6878 (*movdf_aarch64): Likewise.
6879 (*movtf_aarch64): Likewise.
6880 (aarch64_movdi_<mode>low): Likewise.
6881 (aarch64_movdi_<mode>high): Likewise.
6882 (aarch64_mov<mode>high_di): Likewise.
6883 (aarch64_mov<mode>low_di): Likewise.
6884 (aarch64_movtilow_tilow): Likewise.
6885 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
6886 values to config/arm/types.md
6887 (attribute "conds"): Update for attribute change.
6888 (anddi3_insn): Likewise.
6889 (iordi3_insn): Likewise.
6890 (xordi3_insn): Likewise.
6891 (one_cmpldi2): Likewise.
6892 * config/arm/types.md (type): Add Neon types.
6893 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
6894 use "type" attribute.
6895 (movmisalign<mode>_neon_store): Likewise.
6896 (movmisalign<mode>_neon_load): Likewise.
6897 (vec_set<mode>_internal): Likewise.
6898 (vec_setv2di_internal): Likewise.
6899 (vec_extract<mode>): Likewise.
6900 (vec_extractv2di): Likewise.
6901 (add<mode>3_neon): Likewise.
6902 (adddi3_neon): Likewise.
6903 (sub<mode>3_neon): Likewise.
6904 (subdi3_neon): Likewise.
6905 (mul<mode>3_neon): Likewise.
6906 (mul<mode>3add<mode>_neon): Likewise.
6907 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
6908 (fma<VCVTF:mode>4)): Likewise.
6909 (fma<VCVTF:mode>4_intrinsic): Likewise.
6910 (fmsub<VCVTF:mode>4)): Likewise.
6911 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
6912 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
6913 (ior<mode>3): Likewise.
6914 (and<mode>3): Likewise.
6915 (anddi3_neon): Likewise.
6916 (orn<mode>3_neon): Likewise.
6917 (orndi3_neon): Likewise.
6918 (bic<mode>3_neon): Likewise.
6919 (bicdi3_neon): Likewise.
6920 (xor<mode>3): Likewise.
6921 (one_cmpl<mode>2): Likewise.
6922 (abs<mode>2): Likewise.
6923 (neg<mode>2): Likewise.
6924 (umin<mode>3_neon): Likewise.
6925 (umax<mode>3_neon): Likewise.
6926 (smin<mode>3_neon): Likewise.
6927 (smax<mode>3_neon): Likewise.
6928 (vashl<mode>3): Likewise.
6929 (vashr<mode>3_imm): Likewise.
6930 (vlshr<mode>3_imm): Likewise.
6931 (ashl<mode>3_signed): Likewise.
6932 (ashl<mode>3_unsigned): Likewise.
6933 (neon_load_count): Likewise.
6934 (ashldi3_neon_noclobber): Likewise.
6935 (signed_shift_di3_neon): Likewise.
6936 (unsigned_shift_di3_neon): Likewise.
6937 (ashrdi3_neon_imm_noclobber): Likewise.
6938 (lshrdi3_neon_imm_noclobber): Likewise.
6939 (widen_ssum<mode>3): Likewise.
6940 (widen_usum<mode>3): Likewise.
6941 (quad_halves_<code>v4si): Likewise.
6942 (quad_halves_<code>v4sf): Likewise.
6943 (quad_halves_<code>v8hi): Likewise.
6944 (quad_halves_<code>v16qi): Likewise.
6945 (reduc_splus_v2di): Likewise.
6946 (neon_vpadd_internal<mode>): Likewise.
6947 (neon_vpsmin<mode>): Likewise.
6948 (neon_vpsmax<mode>): Likewise.
6949 (neon_vpumin<mode>): Likewise.
6950 (neon_vpumax<mode>): Likewise.
6951 (ss_add<mode>_neon): Likewise.
6952 (us_add<mode>_neon): Likewise.
6953 (ss_sub<mode>_neon): Likewise.
6954 (us_sub<mode>_neon): Likewise.
6955 (neon_vadd<mode>_unspec): Likewise.
6956 (neon_vaddl<mode>): Likewise.
6957 (neon_vaddw<mode>): Likewise.
6958 (neon_vhadd<mode>): Likewise.
6959 (neon_vqadd<mode>): Likewise.
6960 (neon_vaddhn<mode>): Likewise.
6961 (neon_vmul<mode>): Likewise.
6962 (neon_vmla<mode>): Likewise.
6963 (neon_vmlal<mode>): Likewise.
6964 (neon_vmls<mode>): Likewise.
6965 (neon_vmlsl<mode>): Likewise.
6966 (neon_vqdmulh<mode>): Likewise.
6967 (neon_vqdmlal<mode>): Likewise.
6968 (neon_vqdmlsl<mode>): Likewise.
6969 (neon_vmull<mode>): Likewise.
6970 (neon_vqdmull<mode>): Likewise.
6971 (neon_vsub<mode>_unspec): Likewise.
6972 (neon_vsubl<mode>): Likewise.
6973 (neon_vsubw<mode>): Likewise.
6974 (neon_vqsub<mode>): Likewise.
6975 (neon_vhsub<mode>): Likewise.
6976 (neon_vsubhn<mode>): Likewise.
6977 (neon_vceq<mode>): Likewise.
6978 (neon_vcge<mode>): Likewise.
6979 (neon_vcgeu<mode>): Likewise.
6980 (neon_vcgt<mode>): Likewise.
6981 (neon_vcgtu<mode>): Likewise.
6982 (neon_vcle<mode>): Likewise.
6983 (neon_vclt<mode>): Likewise.
6984 (neon_vcage<mode>): Likewise.
6985 (neon_vcagt<mode>): Likewise.
6986 (neon_vtst<mode>): Likewise.
6987 (neon_vabd<mode>): Likewise.
6988 (neon_vabdl<mode>): Likewise.
6989 (neon_vaba<mode>): Likewise.
6990 (neon_vabal<mode>): Likewise.
6991 (neon_vmax<mode>): Likewise.
6992 (neon_vmin<mode>): Likewise.
6993 (neon_vpaddl<mode>): Likewise.
6994 (neon_vpadal<mode>): Likewise.
6995 (neon_vpmax<mode>): Likewise.
6996 (neon_vpmin<mode>): Likewise.
6997 (neon_vrecps<mode>): Likewise.
6998 (neon_vrsqrts<mode>): Likewise.
6999 (neon_vqabs<mode>): Likewise.
7000 (neon_vqneg<mode>): Likewise.
7001 (neon_vcls<mode>): Likewise.
7002 (clz<mode>2): Likewise.
7003 (popcount<mode>2): Likewise.
7004 (neon_vrecpe): Likewise.
7005 (neon_vrsqrte): Likewise.
7006 (neon_vget_lane<mode>_sext_internal): Likewise.
7007 (neon_vget_lane<mode>_zext_internal): Likewise.
7008 (neon_vdup_n<mode>): Likewise.
7009 (neon_vdup_nv2di): Likewise.
7010 (neon_vdpu_lane<mode>_internal): Likewise.
7011 (neon_vswp<mode>): Likewise.
7012 (float<mode><V_cvtto>2): Likewise.
7013 (floatuns<mode><V_cvtto>2): Likewise.
7014 (fix_trunc<mode><V_cvtto>)2): Likewise
7015 (fixuns_trunc<mode><V_cvtto)2): Likewise.
7016 (neon_vcvt<mode>): Likewise.
7017 (neon_vcvtv4sfv4hf): Likewise.
7018 (neon_vcvtv4hfv4sf): Likewise.
7019 (neon_vcvt_n<mode>): Likewise.
7020 (neon_vmovn<mode>): Likewise.
7021 (neon_vqmovn<mode>): Likewise.
7022 (neon_vqmovun<mode>): Likewise.
7023 (neon_vmovl<mode>): Likewise.
7024 (neon_vmul_lane<mode>): Likewise.
7025 (neon_vmull_lane<mode>): Likewise.
7026 (neon_vqdmull_lane<mode>): Likewise.
7027 (neon_vqdmulh_lane<mode>): Likewise.
7028 (neon_vmla_lane<mode>): Likewise.
7029 (neon_vmlal_lane<mode>): Likewise.
7030 (neon_vqdmlal_lane<mode>): Likewise.
7031 (neon_vmls_lane<mode>): Likewise.
7032 (neon_vmlsl_lane<mode>): Likewise.
7033 (neon_vqdmlsl_lane<mode>): Likewise.
7034 (neon_vext<mode>): Likewise.
7035 (neon_vrev64<mode>): Likewise.
7036 (neon_vrev32<mode>): Likewise.
7037 (neon_vrev16<mode>): Likewise.
7038 (neon_vbsl<mode>_internal): Likewise.
7039 (neon_vshl<mode>): Likewise.
7040 (neon_vqshl<mode>): Likewise.
7041 (neon_vshr_n<mode>): Likewise.
7042 (neon_vshrn_n<mode>): Likewise.
7043 (neon_vqshrn_n<mode>): Likewise.
7044 (neon_vqshrun_n<mode>): Likewise.
7045 (neon_vshl_n<mode>): Likewise.
7046 (neon_vqshl_n<mode>): Likewise.
7047 (neon_vqshlu_n<mode>): Likewise.
7048 (neon_vshll_n<mode>): Likewise.
7049 (neon_vsra_n<mode>): Likewise.
7050 (neon_vsri_n<mode>): Likewise.
7051 (neon_vsli_n<mode>): Likewise.
7052 (neon_vtbl1v8qi): Likewise.
7053 (neon_vtbl2v8qi): Likewise.
7054 (neon_vtbl3v8qi): Likewise.
7055 (neon_vtbl4v8qi): Likewise.
7056 (neon_vtbx1v8qi): Likewise.
7057 (neon_vtbx2v8qi): Likewise.
7058 (neon_vtbx3v8qi): Likewise.
7059 (neon_vtbx4v8qi): Likewise.
7060 (neon_vtrn<mode>_internal): Likewise.
7061 (neon_vzip<mode>_internal): Likewise.
7062 (neon_vuzp<mode>_internal): Likewise.
7063 (neon_vld1<mode>): Likewise.
7064 (neon_vld1_lane<mode>): Likewise.
7065 (neon_vld1_dup<mode>): Likewise.
7066 (neon_vld1_dupv2di): Likewise.
7067 (neon_vst1<mode>): Likewise.
7068 (neon_vst1_lane<mode>): Likewise.
7069 (neon_vld2<mode>): Likewise.
7070 (neon_vld2_lane<mode>): Likewise.
7071 (neon_vld2_dup<mode>): Likewise.
7072 (neon_vst2<mode>): Likewise.
7073 (neon_vst2_lane<mode>): Likewise.
7074 (neon_vld3<mode>): Likewise.
7075 (neon_vld3qa<mode>): Likewise.
7076 (neon_vld3qb<mode>): Likewise.
7077 (neon_vld3_lane<mode>): Likewise.
7078 (neon_vld3_dup<mode>): Likewise.
7079 (neon_vst3<mode>): Likewise.
7080 (neon_vst3qa<mode>): Likewise.
7081 (neon_vst3qb<mode>): Likewise.
7082 (neon_vst3_lane<mode>): Likewise.
7083 (neon_vld4<mode>): Likewise.
7084 (neon_vld4qa<mode>): Likewise.
7085 (neon_vld4qb<mode>): Likewise.
7086 (neon_vld4_lane<mode>): Likewise.
7087 (neon_vld4_dup<mode>): Likewise.
7088 (neon_vst4<mode>): Likewise.
7089 (neon_vst4qa<mode>): Likewise.
7090 (neon_vst4qb<mode>): Likewise.
7091 (neon_vst4_lane<mode>): Likewise.
7092 (neon_vec_unpack<US>_lo_<mode>): Likewise.
7093 (neon_vec_unpack<US>_hi_<mode>): Likewise.
7094 (neon_vec_<US>mult_lo_<mode>): Likewise.
7095 (neon_vec_<US>mult_hi_<mode>): Likewise.
7096 (neon_vec_<US>shiftl_<mode>): Likewise.
7097 (neon_unpack<US>_<mode>): Likewise.
7098 (neon_vec_<US>mult_<mode>): Likewise.
7099 (vec_pack_trunc_<mode>): Likewise.
7100 (neon_vec_pack_trunk_<mode>): Likewise.
7101 (neon_vabd<mode>_2): Likewise.
7102 (neon_vabd<mode>_3): Likewise.
7103 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
7104 (thumb2_movsi_vfp): Likewise.
7105 (movdi_vfp): Likewise.
7106 (movdi_vfp_cortexa8): Likewise.
7107 (movhf_vfp_neon): Likewise.
7108 (movhf_vfp): Likewiwse.
7109 (movsf_vfp): Likewiwse.
7110 (thumb2_movsf_vfp): Likewiwse.
7111 (movdf_vfp): Likewise.
7112 (thumb2_movdf_vfp): Likewise.
7113 (movsfcc_vfp): Likewise.
7114 (thumb2_movsfcc_vfp): Likewise.
7115 (movdfcc_vfp): Likewise.
7116 (thumb2_movdfcc_vfp): Likewise.
7117 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
7118 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
7119 (v10_v2c): Likewise.
7120 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
7121 attribute change.
7122 (cortex_a15_neon_int_2): Likewise.
7123 (cortex_a15_neon_int_3): Likewise.
7124 (cortex_a15_neon_int_4): Likewise.
7125 (cortex_a15_neon_int_5): Likewise.
7126 (cortex_a15_neon_vqneg_vqabs): Likewise.
7127 (cortex_a15_neon_vmov): Likewise.
7128 (cortex_a15_neon_vaba): Likewise.
7129 (cortex_a15_neon_vaba_qqq): Likewise.
7130 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7131 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
7132 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
7133 scalar_64_32_long_scalar): Likewise.
7134 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7135 (cortex_a15_neon_mla_qqq_8_16): Likewise.
7136 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
7137 lotype_qdd_64_32_long): Likewise.
7138 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7139 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7140 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
7141 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7142 (cortex_a15_neon_shift_1): Likewise.
7143 (cortex_a15_neon_shift_2): Likewise.
7144 (cortex_a15_neon_shift_3): Likewise.
7145 (cortex_a15_neon_vshl_ddd): Likewise.
7146 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7147 (cortex_a15_neon_vsra_vrsra): Likewise.
7148 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
7149 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
7150 (cortex_a15_neon_fp_vmul_ddd): Likewise.
7151 (cortex_a15_neon_fp_vmul_qqd): Likewise.
7152 (cortex_a15_neon_fp_vmla_ddd): Likewise.
7153 (cortex_a15_neon_fp_vmla_qqq): Likewise.
7154 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
7155 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
7156 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7157 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7158 (cortex_a15_neon_bp_simple): Likewise.
7159 (cortex_a15_neon_bp_2cycle): Likewise.
7160 (cortex_a15_neon_bp_3cycle): Likewise.
7161 (cortex_a15_neon_vld1_1_2_regs): Likewise.
7162 (cortex_a15_neon_vld1_3_4_regs): Likewise.
7163 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7164 (cortex_a15_neon_vld2_4_regs): Likewise.
7165 (cortex_a15_neon_vld3_vld4): Likewise.
7166 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7167 (cortex_a15_neon_vst1_3_4_regs): Likewise.
7168 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
7169 (cortex_a15_neon_vst3_vst4): Likewise.
7170 (cortex_a15_neon_vld1_vld2_lane): Likewise.
7171 (cortex_a15_neon_vld3_vld4_lane" 10
7172 (cortex_a15_neon_vst1_vst2_lane): Likewise.
7173 (cortex_a15_neon_vst3_vst4_lane): Likewise.
7174 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
7175 (cortex_a15_neon_ldm_2): Likewise.0
7176 (cortex_a15_neon_stm_2): Likewise.
7177 (cortex_a15_neon_mcr): Likewise.
7178 (cortex_a15_neon_mcr_2_mcrr): Likewise.
7179 (cortex_a15_neon_mrc): Likewise.
7180 (cortex_a15_neon_mrrc): Likewise.
7181 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
7182 change.
7183 (cortex_a15_alu_shift): Likewise.
7184 (cortex_a15_alu_shift_reg): Likewise.
7185 (cortex_a15_mult32): Likewise.
7186 (cortex_a15_mult64): Likewise.
7187 (cortex_a15_block): Likewise.
7188 (cortex_a15_branch): Likewise.
7189 (cortex_a15_load1): Likewise.
7190 (cortex_a15_load3): Likewise.
7191 (cortex_a15_store1): Likewise.
7192 (cortex_a15_store3): Likewise.
7193 (cortex_a15_call): Likewise.
f43245d1 7194 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
7195 (cortex_a5_f2r): Likewise.
7196 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
7197 change.
7198 (cortex_a53_f2r): Likewise.
7199 * config/arm/cortex-a7.md
7200 (cortex_a7_branch): Update for attribute change.
7201 (cortex_a7_call): Likewise.
7202 (cortex_a7_alu_imm): Likewise.
7203 (cortex_a7_alu_reg): Likewise.
7204 (cortex_a7_alu_shift): Likewise.
7205 (cortex_a7_mul): Likewise.
7206 (cortex_a7_load1): Likewise.
7207 (cortex_a7_store1): Likewise.
7208 (cortex_a7_load2): Likewise.
7209 (cortex_a7_store2): Likewise.
7210 (cortex_a7_load3): Likewise.
7211 (cortex_a7_store3): Likewise.
7212 (cortex_a7_load4): Likewise.
7213 (cortex_a7_store4): Likewise.
7214 (cortex_a7_fpalu): Likewise.
7215 (cortex_a7_fconst): Likewise.
7216 (cortex_a7_fpmuls): Likewise.
7217 (cortex_a7_neon_mul): Likewise.
7218 (cortex_a7_fpmacs): Likewise.
7219 (cortex_a7_neon_mla: Likewise.
7220 (cortex_a7_fpmuld: Likewise.
7221 (cortex_a7_fpmacd: Likewise.
7222 (cortex_a7_fpfmad: Likewise.
7223 (cortex_a7_fdivs: Likewise.
7224 (cortex_a7_fdivd: Likewise.
7225 (cortex_a7_r2f: Likewise.
7226 (cortex_a7_f2r: Likewise.
7227 (cortex_a7_f_flags: Likewise.
7228 (cortex_a7_f_loads: Likewise.
7229 (cortex_a7_f_loadd: Likewise.
7230 (cortex_a7_f_stores: Likewise.
7231 (cortex_a7_f_stored: Likewise.
7232 (cortex_a7_neon): Likewise.
7233 * config/arm/cortex-a8-neon.md
7234 (cortex_a8_neon_mrc): Update for attribute change.
7235 (cortex_a8_neon_mrrc): Likewise.
7236 (cortex_a8_neon_int_1): Likewise.
7237 (cortex_a8_neon_int_2): Likewise.
7238 (cortex_a8_neon_int_3): Likewise.
7239 (cortex_a8_neon_int_4): Likewise.
7240 (cortex_a8_neon_int_5): Likewise.
7241 (cortex_a8_neon_vqneg_vqabs): Likewise.
7242 (cortex_a8_neon_vmov): Likewise.
7243 (cortex_a8_neon_vaba): Likewise.
7244 (cortex_a8_neon_vaba_qqq): Likewise.
7245 (cortex_a8_neon_vsma): Likewise.
7246 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7247 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
7248 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
7249 long_scalar): Likewise.
003bb7f3
JG
7250 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7251 (cortex_a8_neon_mla_qqq_8_16): Likewise.
7252 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
7253 long_scalar_qdd_64_32_long): Likewise.
7254 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7255 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7256 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
7257 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7258 (cortex_a8_neon_shift_1): Likewise.
7259 (cortex_a8_neon_shift_2): Likewise.
7260 (cortex_a8_neon_shift_3): Likewise.
7261 (cortex_a8_neon_vshl_ddd): Likewise.
7262 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7263 (cortex_a8_neon_vsra_vrsra): Likewise.
7264 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
7265 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
7266 (cortex_a8_neon_fp_vsum): Likewise.
7267 (cortex_a8_neon_fp_vmul_ddd): Likewise.
7268 (cortex_a8_neon_fp_vmul_qqd): Likewise.
7269 (cortex_a8_neon_fp_vmla_ddd): Likewise.
7270 (cortex_a8_neon_fp_vmla_qqq): Likewise.
7271 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
7272 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
7273 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7274 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7275 (cortex_a8_neon_bp_simple): Likewise.
7276 (cortex_a8_neon_bp_2cycle): Likewise.
7277 (cortex_a8_neon_bp_3cycle): Likewise.
7278 (cortex_a8_neon_ldr): Likewise.
7279 (cortex_a8_neon_str): Likewise.
7280 (cortex_a8_neon_vld1_1_2_regs): Likewise.
7281 (cortex_a8_neon_vld1_3_4_regs): Likewise.
7282 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7283 (cortex_a8_neon_vld2_4_regs): Likewise.
7284 (cortex_a8_neon_vld3_vld4): Likewise.
7285 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7286 (cortex_a8_neon_vst1_3_4_regs): Likewise.
7287 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
7288 (cortex_a8_neon_vst3_vst4): Likewise.
7289 (cortex_a8_neon_vld1_vld2_lane): Likewise.
7290 (cortex_a8_neon_vld3_vld4_lane): Likewise.
7291 (cortex_a8_neon_vst1_vst2_lane): Likewise.
7292 (cortex_a8_neon_vst3_vst4_lane): Likewise.
7293 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
7294 (cortex_a8_neon_mcr): Likewise.
7295 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 7296 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
7297 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
7298 change.
7299 (ca9_neon_mrrc): Likewise.
7300 (cortex_a9_neon_int_1): Likewise.
7301 (cortex_a9_neon_int_2): Likewise.
7302 (cortex_a9_neon_int_3): Likewise.
7303 (cortex_a9_neon_int_4): Likewise.
7304 (cortex_a9_neon_int_5): Likewise.
7305 (cortex_a9_neon_vqneg_vqabs): Likewise.
7306 (cortex_a9_neon_vmov): Likewise.
7307 (cortex_a9_neon_vaba): Likewise.
7308 (cortex_a9_neon_vaba_qqq): Likewise.
7309 (cortex_a9_neon_vsma): Likewise.
7310 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7311 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
7312 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
7313 long_scalar): Likewise.
003bb7f3
JG
7314 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
7315 (cortex_a9_neon_mla_qqq_8_16): Likewise.
7316 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
7317 long_scalar_qdd_64_32_long): Likewise.
7318 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
7319 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
7320 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
7321 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
7322 (cortex_a9_neon_shift_1): Likewise.
7323 (cortex_a9_neon_shift_2): Likewise.
7324 (cortex_a9_neon_shift_3): Likewise.
7325 (cortex_a9_neon_vshl_ddd): Likewise.
7326 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
7327 (cortex_a9_neon_vsra_vrsra): Likewise.
7328 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
7329 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
7330 (cortex_a9_neon_fp_vsum): Likewise.
7331 (cortex_a9_neon_fp_vmul_ddd): Likewise.
7332 (cortex_a9_neon_fp_vmul_qqd): Likewise.
7333 (cortex_a9_neon_fp_vmla_ddd): Likewise.
7334 (cortex_a9_neon_fp_vmla_qqq): Likewise.
7335 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
7336 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
7337 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
7338 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
7339 (cortex_a9_neon_bp_simple): Likewise.
7340 (cortex_a9_neon_bp_2cycle): Likewise.
7341 (cortex_a9_neon_bp_3cycle): Likewise.
7342 (cortex_a9_neon_ldr): Likewise.
7343 (cortex_a9_neon_str): Likewise.
7344 (cortex_a9_neon_vld1_1_2_regs): Likewise.
7345 (cortex_a9_neon_vld1_3_4_regs): Likewise.
7346 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
7347 (cortex_a9_neon_vld2_4_regs): Likewise.
7348 (cortex_a9_neon_vld3_vld4): Likewise.
7349 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
7350 (cortex_a9_neon_vst1_3_4_regs): Likewise.
7351 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
7352 (cortex_a9_neon_vst3_vst4): Likewise.
7353 (cortex_a9_neon_vld1_vld2_lane): Likewise.
7354 (cortex_a9_neon_vld3_vld4_lane): Likewise.
7355 (cortex_a9_neon_vst1_vst2_lane): Likewise.
7356 (cortex_a9_neon_vst3_vst4_lane): Likewise.
7357 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
7358 (cortex_a9_neon_mcr): Likewise.
7359 (cortex_a9_neon_mcr_2_mcrr): Likewise.
7360 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
7361 (cortex_a9_fps): Likewise.
7362 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
7363 change.
7364 (cortex_m4_fmuls): Likewise.
7365 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
7366 change.
7367 (cortex_r4_mrc): Likewise.
7368 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 7369 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 7370 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
7371 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
7372 attribute change.
003bb7f3
JG
7373 (pj4_core_to_vfp): Likewise.
7374 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
7375 attribute change.
7376 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
7377 (vfp_fstore): Likewise.
7378 * doc/md.texi: Change references to neon_type to refer to type.
7379
fbe0dc78
DS
73802013-09-04 Dodji Seketeli <dodji@redhat.com>
7381
7382 * tree.h (DECL_BUILT_IN): Fix typo in comment.
7383
c167bc5b
DE
73842013-09-04 David Edelsohn <dje.gcc@gmail.com>
7385
7386 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
7387 lglobl if not weak.
7388
035cb59f
ER
73892013-09-04 Easwaran Raman <eraman@google.com>
7390
7391 PR middle-end/57370
7392 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
7393 (build_and_add_sum): Use it.
7394 (appears_later_in_bb): Simplify code.
7395
71191083
TJ
73962013-09-04 Teresa Johnson <tejohnson@google.com>
7397
7398 * dumpfile.c (dump_finish): Don't close stderr/stdout.
7399
0c488213
JG
74002013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
7401
7402 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
7403
61a74079
JH
74042013-09-04 Jan Hubicka <jh@suse.cz>
7405
7406 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
7407 * ipa-devirt.c: Include diganostic.h
7408 (odr_type_d): Add types and types_set.
7409 (hash_type_name): Work for types with vtables during LTO.
7410 (odr_hasher::remove): Fix comment; destroy types_set.
7411 (add_type_duplicate): New function,
7412 (get_odr_type): Use it.
7413 (dump_type_inheritance_graph): Dump type duplicates.
7414 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
7415 graph.
7416 * tree.c (types_same_for_odr): Give exact answers on types with
7417 virtual tables.
7418
24ba8195
DS
74192013-09-04 Dodji Seketeli <dodji@redhat.com>
7420
7421 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 7422 explaining their differences.
24ba8195 7423
0a04869e
SKS
74242013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
7425
7426 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
7427
3b18bc42
JL
74282013-09-03 Jeff Law <law@redhat.com>
7429
7430 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
7431 when not threading through a joiner block. Pass joiner/no joiner
7432 state to register_jump_thread.
7433 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
7434 state from argument rather than implying on path length.
7435 Dump the entire jump thread path into debugging dump.
7436 * tree-flow.h (register_jump_thread): Update prototype.
7437
ae84e151
XDL
74382013-08-29 Xinliang David Li <davidxl@google.com>
7439
7440 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7441 Remove a trivial gcc_assert.
7442
c716e67f
XDL
74432013-08-29 Xinliang David Li <davidxl@google.com>
7444
7445 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
7446 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
7447 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7448 Delay base decl alignment adjustment.
7449 * tree-vectorizer.c (vect_destroy_datarefs): New function.
7450 * tree-vectorizer.h: New data structure.
7451 (set_dr_misalignment): New function.
7452 (dr_misalignment): Ditto.
7453 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
7454 (vectorizable_load): Ditto.
7455 (ensure_base_align): New function.
7456 (vectorize_loops): Add dbg_cnt support.
7457 (execute_vect_slp): Ditto.
7458 * dbgcnt.def: New debug counter.
7459 * Makefile: New dependency.
7460
db8800bc
MI
74612013-09-03 Meador Inge <meadori@codesourcery.com>
7462
7463 Revert:
7464
7465 2013-08-30 Meador Inge <meadori@codesourcery.com>
7466
7467 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
7468
0d9b4f5c
DE
74692013-09-03 David Edelsohn <dje.gcc@gmail.com>
7470
7471 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
7472 function descriptor.
7473
29e810b9
RB
74742013-09-03 Richard Biener <rguenther@suse.de>
7475
7476 * tree-affine.c (add_elt_to_tree): Fix association issue,
7477 avoid useless converts and make sure to always return a
7478 properly typed result.
7479
dbfc2894
RB
74802013-09-03 Richard Biener <rguenther@suse.de>
7481
7482 PR middle-end/57656
7483 * fold-const.c (negate_expr_p): Fix division case.
7484 (negate_expr): Likewise.
7485
fa3bf4ce
RB
74862013-09-03 Richard Biener <rguenther@suse.de>
7487
7488 PR lto/58285
7489 * tree-streamer-out.c: Include tm.h.
7490 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
7491
a64bbb3f
JH
74922013-09-03 Jan Hubicka <jh@suse.cz>
7493
7494 * tree-profile.c (tree_profiling): Cleanup CFG when done.
7495
93ed07e2
AM
74962013-09-03 Alan Modra <amodra@gmail.com>
7497
7498 * config.gcc (powerpc*-*-linux*): Add support for little-endian
7499 multilibs to big-endian target and vice versa.
7500 * config/rs6000/t-linux64: Use := assignment on all vars.
7501 (MULTILIB_EXTRA_OPTS): Remove fPIC.
7502 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
7503 * config/rs6000/t-linux64le: New file.
7504 * config/rs6000/t-linux64bele: New file.
7505 * config/rs6000/t-linux64lebe: New file.
7506
07d6cd64
JH
75072013-09-02 Jan Hubicka <jh@suse.cz>
7508
7509 * ipa-inline-transform.c (inline_transform): Do not
7510 optimize_inline_calls when not optimizing.
7511
8e4c9a10
JH
75122013-09-02 Jan Hubicka <jh@suse.cz>
7513
7514 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
7515 duplicated nodes for assembler names.
7516 * symtab.c (symtab_unregister_node): Do not attempt to unlink
7517 hard registers from assembler name hash.
7518
c91061e6
JH
75192013-09-02 Jan Hubicka <jh@suse.cz>
7520
7521 * ipa-split.c (execute_split_functions): Split externally visible
7522 functions called once.
7523
2fd0985c
MJ
75242013-09-02 Martin Jambor <mjambor@suse.cz>
7525
7526 PR ipa/58106
7527 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
7528 linked list. When finding the correct duplicate, also consider also
7529 the caller in additon to its inlined_to node.
7530
91bd4114
JG
75312013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
7532
7533 * config/aarch64/aarch64-simd-builtins.def
7534 (dup_lane_scalar): Remove.
7535 * config/aarch64/aarch64-simd.md
7536 (aarch64_simd_dup): Add 'w->w' alternative.
7537 (aarch64_dup_lane<mode>): Allow for VALL.
7538 (aarch64_dup_lane_scalar<mode>): Remove.
7539 (aarch64_dup_lane_<vswap_width_name><mode>): New.
7540 (aarch64_get_lane_signed<mode>): Add w->w altenative.
7541 (aarch64_get_lane_unsigned<mode>): Likewise.
7542 (aarch64_get_lane<mode>): Likewise.
7543 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
7544 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
7545 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
7546 (VCON): Change container of V2SF.
7547 (vswap_width_name): Likewise.
7548 * config/aarch64/arm_neon.h
7549 (__aarch64_vdup_lane_any): New.
7550 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
7551 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
7552 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
7553
d617d2d8
EB
75542013-09-02 Eric Botcazou <ebotcazou@adacore.com>
7555
7556 PR middle-end/56382
7557 * expr.c (emit_move_complex): Do not move complex FP values as parts if
7558 the source or the destination is a single hard register.
7559
63fdb7be
RB
75602013-09-02 Richard Biener <rguenther@suse.de>
7561
7562 PR middle-end/57511
7563 * tree-scalar-evolution.c (instantiate_scev_name): Allow
7564 non-linear SCEVs.
7565
78de2333
RB
75662013-09-02 Richard Biener <rguenther@suse.de>
7567
7568 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
7569 arithmetic to sizetype.
7570
85ff4ec6
BC
75712013-09-02 Bin Cheng <bin.cheng@arm.com>
7572
7573 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
7574 Find auto-increment use both before and after candidate.
7575
576016fe
MP
75762013-09-02 Marek Polacek <polacek@redhat.com>
7577
7578 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
7579
08f835dc
JH
75802013-09-01 Jan Hubicka <jh@suse.cz>
7581
7582 * Makefile.in: Add ipa-profile.o
7583 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
7584 * cgraph.c (struct cgraph_propagate_frequency_data,
7585 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
7586 ipa-profile.c; replace cgraph_ by ipa_ prefix.
7587 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
7588 * ipa-inline-analysis.c: Include ipa-utils.h;
7589 drop duplicated cfgloop.h.
08f835dc
JH
7590 (inline_update_callee_summaries): Update.
7591 * ipa-profile.c: New file.
7592 * ipa-utils.h (ipa_propagate_frequency): Declare.
7593 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 7594 data-streamer.h, value-prof.h.
08f835dc
JH
7595 (symtab_remove_unreachable_nodes): Update profile.
7596 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
7597 account_time_size, cmp_counts, dump_histogram,
7598 ipa_profile_generate_summary, ipa_profile_write_summary,
7599 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
7600 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 7601 Move to ipa-profile.c.
08f835dc 7602
cec8583c
JDA
76032013-09-01 John David Anglin <danglin@gcc.gnu.org>
7604
7605 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
7606
bbc9396b
JH
76072013-09-01 Jan Hubicka <jh@suse.cz>
7608
7609 * common.opt (fdevirtualize-speculatively): New function.
7610 * invoke.texi (fdevirtualize-speculatively): Document.
7611 * ipa-devirt.c: Include ipa-inline.h
7612 (likely_target_p): New function.
7613 (ipa_devirt): New function.
7614 (gate_ipa_devirt): New function.
7615 (pass_data_ipa_devirt): New static var.
7616 (pass_ipa_devirt): Likewise.
7617 (make_pass_ipa_devirt): New function.
7618 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
7619 (common_handle_option): Disable devirtualization when
7620 value range profiling is available.
7621 * passes.def (pass_ipa_devirt): Add.
7622 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 7623 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 7624
0cea211e
IS
76252013-09-01 Iain Sandoe <iain@codesourcery.com>
7626
7627 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
7628 include sanitize(undefined).
7629
5e351e96
DN
76302013-08-31 Diego Novillo <dnovillo@google.com>
7631
7632 * Makefile.in (TREE_CORE_H): Define.
7633 (TREE_H): Use.
7634 (GTFILES): Add tree-core.h.
7635 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
7636 size the array.
7637 * tree-core.h: New file.
7638 Move all data structures, enum, typedefs, global
7639 declarations and constants from ...
7640 * tree.h: ... here.
7641
63bf9a90
JH
76422013-08-31 Jan Hubicka <jh@suse.cz>
7643
7644 * bulitins.c (expand_builtin): Do not early exit for gcov
7645 instrumented functions.
7646
5c0abd6a
MP
76472013-08-31 Marek Polacek <polacek@redhat.com>
7648
7649 * ubsan.c: Include tm_p.h.
7650
4843f032
JH
76512013-08-31 Jan Hubicka <jh@suse.cz>
7652
8356c89c
JH
7653 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
7654 warning.
7655
4843f032
JH
7656 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
7657 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 7658 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
7659 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
7660 (ipa_merge_profiles): New function.
7661 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
7662 (lto_input_function_body): Likewise.
5e581212
JH
7663 * ipa-utils.h (ipa_merge_profiles): Declare.
7664 * lto-streamer.h (lto_input_function_body): Update prototype.
7665 (emit_label_in_global_context_p): Remove.
7666 * lto-symtab.c: Include ipa-utils.h
7667 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 7668
57292ce9
JH
76692013-08-31 Jan Hubicka <jh@suse.cz>
7670
7671 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
7672
b9cbfeeb
JH
76732013-08-31 Jan Hubicka <jh@suse.cz>
7674
7675 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
7676
41dedebd
UB
76772013-08-31 Uros Bizjak <ubizjak@gmail.com>
7678
7679 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
7680 "cmp" RTX before signed_comparison_operator check to account
7681 for "code" changes.
7682
06d65050
JH
76832013-08-30 Jan Hubicka <jh@suse.cz>
7684
41dedebd 7685 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
7686 (detect_type_change_1): Rename to ...
7687 (detect_type_change): ... this one; early return on non-polymorphic
7688 types.
41dedebd 7689 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
7690 use of detect_type_change.
7691 (compute_complex_assign_jump_func): Add param_type parameter;
7692 update use of detect_type_change_ssa.
7693 (compute_complex_ancestor_jump_func): Likewise.
7694 (ipa_get_callee_param_type): New function.
7695 (ipa_compute_jump_functions_for_edge): Compute parameter type;
7696 update calls to the jump function computation functions.
7697
600b5b1d
TJ
76982013-08-30 Teresa Johnson <tejohnson@google.com>
7699 Steven Bosscher <steven@gcc.gnu.org>
7700
7701 * cfgrtl.c (fixup_new_cold_bb): New routine.
7702 (commit_edge_insertions): Invoke fixup_partitions.
7703 (find_partition_fixes): New routine.
7704 (fixup_partitions): Ditto.
7705 (verify_hot_cold_block_grouping): Update comments.
7706 (rtl_verify_edges): Invoke find_partition_fixes.
7707 (rtl_verify_bb_pointers): Update comments.
7708 (rtl_verify_bb_layout): Ditto.
7709 * basic-block.h (probably_never_executed_edge_p): Declare.
7710 (fixup_partitions): Ditto.
7711 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
7712 * bb-reorder.c (sanitize_hot_paths): New function.
7713 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
7714 sanitize_hot_paths.
7715 * predict.c (probably_never_executed_edge_p): New routine.
7716 * cfg.c (check_bb_profile): Add partition insanity warnings.
7717
0a6ea5c9
MI
77182013-08-30 Meador Inge <meadori@codesourcery.com>
7719
7720 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
7721
de5a5fa1
MP
77222013-08-30 Marek Polacek <polacek@redhat.com>
7723
7724 * Makefile.in (ubsan.o): Add.
7725 (c-family/c-ubsan.o): Add.
7726 (builtins.o): Add ubsan.h dependency.
7727 * ubsan.h: New file.
7728 * ubsan.c: New file.
7729 * common.opt: Add -fsanitize=undefined option.
7730 (flag_sanitize): Add variable.
7731 (fsanitize=): Add option. Add Driver.
7732 (fsanitize=thread): Remove option.
7733 (fsanitize=address): Likewise.
7734 (static-libubsan): New option.
7735 * doc/invoke.texi: Document the new flag and -static-libubsan.
7736 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
7737 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
7738 * builtin-attrs.def (ATTR_COLD): Define.
7739 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
7740 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
7741 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
7742 * flag-types.h (sanitize_code): New enum.
7743 * opts.c (common_handle_option): Parse command line arguments
7744 of -fsanitize=. Add -fsanitize=unreachable option.
7745 * varasm.c (get_variable_section): Adjust.
7746 (assemble_noswitch_variable): Likewise.
7747 (assemble_variable): Likewise.
7748 (output_constant_def_contents): Likewise.
7749 (categorize_decl_for_section): Likewise.
7750 (place_block_symbol): Likewise.
7751 (output_object_block): Likewise.
7752 * builtins.def: Likewise.
7753 * toplev.c (compile_file): Likewise.
7754 (process_options): Likewise.
7755 * cppbuiltin.c: Likewise.
7756 * tsan.c (tsan_pass): Likewise.
7757 (tsan_gate): Likewise.
7758 (tsan_gate_O0): Likewise.
7759 * cfgexpand.c (partition_stack_vars): Likewise.
7760 (expand_stack_vars): Likewise.
7761 (defer_stack_allocation): Likewise.
7762 (expand_used_vars): Likewise.
7763 * cfgcleanup.c (old_insns_match_p): Likewise.
7764 * asan.c (asan_finish_file): Likewise.
7765 (asan_instrument): Likewise.
7766 (gate_asan): Likewise.
7767 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
7768 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
7769 (asan_global_struct): Use pointer_sized_int_node instead
7770 calling build_nonstandard_integer_type.
7771 (initialize_sanitizer_builtins): Likewise.
7772 (asan_finish_file): Likewise.
7773 * gcc.c: Document %{%:function(args):X}.
7774 (static_spec_functions): Add sanitize.
7775 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
7776 store funcval != NULL there.
7777 (do_spec_1): Adjust handle_spec_function caller.
7778 (handle_braces): Allow %:function(args) as condition.
7779 (sanitize_spec_function): New function.
7780 (ADD_STATIC_LIBUBSAN_LIBS): Define.
7781 (LIBUBSAN_SPEC): Likewise.
7782 (LIBUBSAN_EARLY_SPEC): Likewise.
7783 (SANITIZER_SPEC): Handle libubsan.
7784 (SANITIZER_EARLY_SPEC): Likewise.
7785 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
7786 instead of fsanitize=address.
7787 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
7788 instead of fsanitize=address*.
7789 * builtins.c: Include ubsan.h.
7790 (fold_builtin_0): Instrument __builtin_unreachable.
7791 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
7792 instead of flag_asan.
7793 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
7794 (pointer_sized_int_node): Define.
41dedebd 7795 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 7796
f07f30cf
MS
77972013-08-30 Mike Stump <mikestump@comcast.net>
7798
7799 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
7800 with RE patterns.
7801
8a41354f
JH
78022013-08-29 Jan Hubicka <jh@suse.cz>
7803
7804 * cgraph.c (cgraph_function_body_availability): Handle weakref
7805 correctly.
7806 * passes.def: Remove pass_fixup_cfg.
7807 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
7808 track when we need to remove functions.
7809 (gate_ipa_inline): Execute inlining always; add comment why.
7810 (pass_data_ipa_inline): Remove TODO_remove_functions.
7811 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
7812 do not produce summaries.
7813 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
7814 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
7815 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
7816 constant pool and vtable.
7817
dc8d7a0f
TB
78182013-08-30 Tejas Belagod <tejas.belagod@arm.com>
7819
41dedebd
UB
7820 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
7821 New arm_neon.h's internal macros to specify 64-bit constants.
7822 Avoid using stdint.h's macros.
dc8d7a0f 7823
ac7eacd2
JR
78242013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
7825
7826 * recog.c (verify_changes): Verify that changes[i].old is non-zero
7827 before applying REG_P.
7828
8b29fd4e
JJ
78292013-08-30 Jakub Jelinek <jakub@redhat.com>
7830
7831 PR tree-optimization/58277
7832 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
7833 after seeing too many stmts with vdef in between dombb and current
7834 bb, invalidate everything.
7835
26d75703
RB
78362013-08-30 Richard Biener <rguenther@suse.de>
7837
7838 * fold-const.c (fold_single_bit_test): Fix overflow test.
7839
f7e088e7
EB
78402013-08-30 Eric Botcazou <ebotcazou@adacore.com>
7841
7842 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
7843 and which can live in a register, always retrieve the value on entry.
7844 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
7845 passed by invisible reference specially.
7846 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
7847 (vt_add_function_parameter): Correctly deal with a parameter passed by
7848 invisible reference.
7849
78502013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
7851
7852 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
7853
6e8dad05
RB
78542013-08-30 Richard Biener <rguenther@suse.de>
7855
7856 PR tree-optimization/58228
7857 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
7858 allow invariant loads in nested loop vectorization.
7859
062ef2c8
RB
78602013-08-30 Richard Biener <rguenther@suse.de>
7861
7862 PR tree-optimization/58223
7863 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
7864 (has_anti_or_output_dependence): ... this and adjust to also
7865 look for output dependences.
7866 (mark_nodes_having_upstream_mem_writes): Adjust.
7867 (rdg_flag_uses): Likewise.
7868
7a764c60
RB
78692013-08-30 Richard Biener <rguenther@suse.de>
7870
7871 PR tree-optimization/58010
7872 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7873 assert that we have a loop-closed PHI.
7874
82e9d642
JH
78752013-08-29 Jan Hubicka <jh@suse.cz>
7876
7877 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
7878 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
7879 * lto-section-in.c (lto_free_function_in_decl_state): New function.
7880 (lto_free_function_in_decl_state_for_node): New function.
7881
9cc1fb4b
XDL
78822013-08-29 Xinliang David Li <davidxl@google.com>
7883
41dedebd 7884 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
7885 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
7886 Emit alignment peeling message with default -fopt-info.
7887 (vect_loop_versioning): Emit loop version info message.
41dedebd 7888 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
7889 (execute_vect_slp): Ditto.
7890
440a5082
EB
78912013-08-29 Eric Botcazou <ebotcazou@adacore.com>
7892
7893 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
7894 of the clone from the DECL_NAME of the original function.
7895
3fa3690d
OE
78962013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
7897
7898 * passes.c (register_pass): Add overload.
7899 * tree-pass.h (register_pass): Forward declare it. Add comment.
7900
0170f33c
JH
79012013-08-29 Jan Hubicka <jh@suse.cz>
7902
41dedebd
UB
7903 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
7904 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
7905 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
7906 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
7907 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
7908 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 7909 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
7910 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
7911
103ff0d6
TJ
79122013-08-29 Teresa Johnson <tejohnson@google.com>
7913
7914 * dumpfile.c (dump_loc): Output column number.
7915 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
7916 * doc/invoke.texi: Document optall -fopt-info flag.
7917 * profile.c (read_profile_edge_counts): Use new dump framework.
7918 (compute_branch_probabilities): Ditto.
7919 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
7920 when pass not in any opt group.
7921 * pass_manager.h (pass_manager::get_pass_profile): New method.
7922 * value-prof.c (check_counter): Use new dump framework.
7923 (check_ic_target): Ditto.
7924 * coverage.c (get_coverage_counts): Ditto.
7925 (coverage_init): Setup new dump framework.
7926
301bbc16
RB
79272013-08-29 Richard Biener <rguenther@suse.de>
7928
7929 PR tree-optimization/58246
7930 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
7931 handle the dominance check inside a basic-block.
7932
1b275000
RB
79332013-08-29 Richard Biener <rguenther@suse.de>
7934
7935 PR middle-end/57287
7936 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
7937 of default defs that appear in abnormal PHI nodes.
7938
6b1184ba
RB
79392013-08-29 Richard Biener <rguenther@suse.de>
7940
7941 PR tree-optimization/57685
7942 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
7943 single-use operands to avoid exponential complexity.
7944
1b08b734
DC
79452013-08-28 Dehao Chen <dehao@google.com>
7946
7947 * ipa-inline.c (edge_badness): Fix integer underflow.
7948
48a3fa69
UB
79492013-08-28 Uros Bizjak <ubizjak@gmail.com>
7950
7951 * gtm-builtins.def (_ITM_free): Declare leaf.
7952
215f73e6
JJ
79532013-08-28 Jakub Jelinek <jakub@redhat.com>
7954
7955 PR target/58067
7956 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
7957 (*tls_local_dynamic_base_64_largepic): Likewise.
7958 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
7959 Remove predicate from call operand.
7960 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
7961 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
7962
34554d1a
JL
79632013-08-28 Jeff Law <law@redhat.com>
7964
7965 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
7966 checks for the number of predecessors and successors allowed.
7967 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
7968 which require copying a joiner block if there is a request which
7969 is a subpath that requires no joiner block copying.
7970
c01c111b
JH
79712013-08-28 Jan Hubicka <jh@suse.cz>
7972
7973 * lto-streamer-out.c (DFS_write_tree_body): Drop
7974 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
7975 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
7976 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
7977 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
7978 Do not read DECL_ERROR_ISSUED.
7979 (unpack_ts_decl_with_vis_value_fields): Do not read
7980 DECL_DEFER_OUTPUT.
48a3fa69
UB
7981 (lto_input_ts_binfo_tree_pointers): Do not read
7982 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
7983 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
7984 write DECL_ERROR_ISSUED..
7985 (pack_ts_decl_with_vis_value_fields): Do not write
7986 DECL_DEFER_OUTPUT.
7987 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 7988 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
7989 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
7990 * tree.h (tree_decl_common): Update comment.
7991 (DECL_ERROR_ISSUED): Remove.
7992
4b128ece
JJ
79932013-08-28 Jakub Jelinek <jakub@redhat.com>
7994
7995 PR middle-end/58257
7996 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
7997
12211b99 79982013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
7999
8000 * builtins.def (free): Declare leaf.
8001
8dce4dbc
DM
80022013-08-27 David Malcolm <dmalcolm@redhat.com>
8003
8004 * gdbhooks.py: New.
8005 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
8006 * configure: Regenerate.
8007
b8f6e610
MJ
80082013-08-27 Martin Jambor <mjambor@suse.cz>
8009
8010 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
8011 (ipa_ancestor_jf_data): Likewise.
8012 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
8013 (ipa_get_jf_pass_through_type_preserved): New function.
8014 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
8015 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 8016 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
8017 (ipa_get_jf_ancestor_result): Likewise.
8018 (propagate_vals_accross_pass_through): Use
8019 ipa_get_jf_pass_through_result to do all the value mappings.
8020 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
8021 type_preserved flag.
8022 (ipa_set_jf_cst_copy): New function.
8023 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
8024 (ipa_set_jf_arith_pass_through): Likewise.
8025 (ipa_set_ancestor_jf): Likewise.
8026 (compute_complex_assign_jump_func): Set type_preserved instead of
8027 punting.
8028 (ipa_compute_jump_functions_for_edge): Likewise.
8029 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
8030 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 8031 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
8032 (ipa_write_jump_function): Stream the type_preserved flags.
8033 (ipa_read_jump_function): Likewise.
8034
74bf76ed
JJ
80352013-08-27 Jakub Jelinek <jakub@redhat.com>
8036 Aldy Hernandez <aldyh@redhat.com>
8037
8038 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
8039 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
8040 * function.h (struct function): Add has_force_vect_loops and
8041 has_simduid_loops.
12211b99 8042 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
8043 * gimple.c (gimple_build_omp_critical): Add KIND argument and
8044 handle it.
8045 * gimple.def: Update CLAUSES comments.
8046 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
8047 (gimple_build_omp_for): Add argument to prototype.
8048 (gimple_omp_for_kind): New.
8049 (gimple_omp_for_set_kind): New.
8050 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
8051 GOVD_DATA_SHARE_CLASS.
8052 (enum omp_region_type): Add ORT_SIMD.
8053 (gimple_add_tmp_var): Handle ORT_SIMD.
8054 (gimplify_var_or_parm_decl): Same.
8055 (is_gimple_stmt): Same.
8056 (omp_firstprivatize_variable): Same.
8057 (omp_add_variable): Only use splay_tree_insert if lookup failed.
8058 (omp_notice_variable): Handle ORT_SIMD.
12211b99 8059 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
8060 (omp_check_private): Handle ORT_SIMD.
8061 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
8062 OMP_CLAUSE_SAFELEN.
8063 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
8064 Handle OMP_CLAUSE_LASTPRIVATE.
8065 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
8066 OMP_CLAUSE_SAFELEN.
8067 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
8068 (gimplify_expr): Handle OMP_SIMD.
8069 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
8070 (expand_GOMP_SIMD_VF): New.
8071 (expand_GOMP_SIMD_LAST_LANE): New.
8072 * internal-fn.def (GOMP_SIMD_LANE): New.
8073 (GOMP_SIMD_VF): New.
8074 (GOMP_SIMD_LAST_LANE): New.
8075 * omp-low.c: Include target.h.
8076 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
8077 OMP_CLAUSE_SAFELEN.
8078 (check_omp_nesting_restrictions): Same.
8079 (omp_max_vf): New.
8080 (lower_rec_simd_input_clauses): New.
8081 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
8082 OMP_CLAUSE_LINEAR.
8083 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
8084 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
8085 (expand_omp_build_assign): New.
8086 (expand_omp_for_init_counts): New.
8087 (expand_omp_for_init_vars): New.
8088 (extract_omp_for_update_vars): New.
8089 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
8090 and rewrite accordingly.
8091 (expand_omp_simd): New.
8092 (expand_omp_for): Use expand_omp_simd.
8093 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
8094 (lower_omp_for): Do not lower the body.
8095 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
8096 in their own loops.
8097 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
8098 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
8099 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
8100 (gate_tree_if_conversion): Similarly.
8101 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
8102 gimple_build_omp_for.
8103 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
8104 * tree-parloops (create_parallel_loop): Pass kind argument to
8105 gimple_build_omp_for.
8106 * tree-pretty-print.c (dump_omp_clause): Add cases for
8107 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
8108 OMP_CLAUSE__SIMDUID_.
8109 (dump_generic_node): Handle OMP_SIMD.
8110 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
8111 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
8112 unroll OMP_SIMD loops here.
12211b99 8113 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 8114 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 8115 loop->safelen.
74bf76ed
JJ
8116 (vect_analyze_data_refs): Handle simd loops.
8117 * tree-vect-loop.c (vectorizable_live_operation): Handle
8118 IFN_GOMP_SIMD*.
12211b99 8119 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
8120 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
8121 (vectorizable_load): Same.
12211b99 8122 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
8123 (struct simduid_to_vf): New.
8124 (simduid_to_vf::hash): New.
8125 (simduid_to-vf::equal): New.
8126 (struct simd_array_to_simduid): New.
8127 (simd_array_to_simduid::hash): New.
8128 (simd_array_to_simduid::equal): New.
8129 (adjust_simduid_builtins): New.
8130 (struct note_simd_array_uses_struct): New.
8131 (note_simd_array_uses_cb): New.
8132 (note_simd_array_uses): New.
8133 (vectorize_loops): Handle simd hints and adjust simd builtins
8134 accordingly.
8135 * tree-vectorizer.h (struct _stmt_vec_info): Add
8136 simd_lane_access_p field.
8137 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
8138 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
8139 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
8140 (omp_clause_code_name): Same.
8141 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
8142 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
8143 * tree.def (OMP_SIMD): New entry.
12211b99
UB
8144 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
8145 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
8146 (OMP_CLAUSE_DECL): Adjust range for new clauses.
8147 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
8148 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
8149 (OMP_CLAUSE_LINEAR_STEP): New.
8150 (OMP_CLAUSE_SAFELEN_EXPR): New.
8151 (OMP_CLAUSE__SIMDUID__DECL): New.
8152 (find_omp_clause): New prototype.
8153
d0cf4e84
L
81542013-08-27 H.J. Lu <hongjiu.lu@intel.com>
8155
8156 * config/i386/driver-i386.c (host_detect_local_cpu): Update
8157 Haswell processor detection.
8158
992592ec
CW
81592013-08-27 Christian Widmer <shadow@umbrox.de>
8160
8161 PR target/57927
8162 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
8163 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
8164 AVX2 capable processors.
8165
9116eb22
TB
81662013-08-27 Tejas Belagod <tejas.belagod@arm.com>
8167
8168 * config/aarch64/arm_neon.h: Replace all inline asm implementations
8169 of vget_low_* with implementations in terms of other intrinsics.
8170
1c5abb53
MG
81712013-08-27 Marc Glisse <marc.glisse@inria.fr>
8172
8173 PR middle-end/57219
8174 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
8175 values to -1, 0 and 1.
8176
2e100703
VP
81772013-08-27 Vidya Praveen <vidyapraveen@arm.com>
8178
8179 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
8180 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
8181 (<optab><mode>3_insn): Remove.
8182 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
8183 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
8184 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8185 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
8186 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
8187 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
8188 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
8189 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
8190 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
8191 (ror<mode>3_insn): Likewise.
8192 * config/aarch64/predicates.md (aarch64_simd_register): New.
8193
4ded8276
RB
81942013-08-27 Richard Biener <rguenther@suse.de>
8195
8196 PR tree-optimization/57521
8197 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
8198 one edge is non-critical.
8199 (find_phi_replacement_condition): Make sure to use a non-critical
8200 edge. Cleanup and remove old bug workarounds.
8201 (bb_postdominates_preds): Remove.
8202 (if_convertible_loop_p_1): Do not compute post-dominators.
8203 (combine_blocks): Do not free post-dominators.
8204 (main_tree_if_conversion): Likewise.
8205 (pass_data_if_conversion): Add TODO_verify_ssa.
8206
5aa11061
DD
82072013-08-27 DJ Delorie <dj@redhat.com>
8208
8209 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
8210
fd91cfe3
YZ
82112013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
8212
8213 * function.c (assign_parm_find_data_types): Set passed_mode and
8214 nominal_mode to the TYPE_MODE of nominal_type for the built
8215 pointer type in case of the struct-pass-by-reference.
8216
907555ce
JR
82172013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
8218
8219 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
8220 (UINT16_TYPE): Change default to "unsigned int".
8221
67518c93
JR
8222 * config/avr/avr.opt (mfract-convert-truncate): New option.
8223 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
8224 is set, round negative fractional integers according to n1169
8225 when converting to integer types.
8226
d6d989fc
JH
82272013-08-26 Jan Hubicka <jh@suse.cz>
8228
8229 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
8230 methods can not be called indirectly when their address is not taken.
8231
2aa3da06
JH
82322013-08-26 Jan Hubicka <jh@suse.cz>
8233
12211b99
UB
8234 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
8235 ctor_for_folding.
2aa3da06 8236
0987ffe7
JH
82372013-08-26 Jan Hubicka <jh@suse.cz>
8238
8239 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
8240 can be unshared.
8241
befe8647
JR
82422013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
8243
8244 * reload.c (find_valid_class): Allow classes that do not include
8245 FIRST_PSEUDO_REGISTER - 1.
8246
a21e735e
JH
82472013-08-26 Jan Hubicka <jh@suse.cz>
8248
8249 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
8250 fix edge count/frequency when speculation failed; fix type check
8251 for the direct call.
8252
e067bd43
JH
82532013-08-26 Jan Hubicka <jh@suse.cz>
8254
8255 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
8256
e8aec975
JH
82572013-08-26 Jan Hubicka <jh@suse.cz>
8258
8259 * ipa-inline-transform.c (inline_transform): Be ready for basic block
8260 to be changed by edge redirection.
8261
d0b66480
JH
82622013-08-26 Jan Hubicka <jh@suse.cz>
8263
12211b99
UB
8264 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
8265 formating; add sanity check.
d0b66480
JH
8266 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
8267 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
8268 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
8269 (resolve_noninline_speculation): Update callee keys, too.
8270
0f9aaac7
JH
82712013-08-26 Jan Hubicka <jh@suse.cz>
8272
8273 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
8274 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
8275
4b37444e
JR
82762013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
8277
8278 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
8279 into proper place.
8280
5339fc0c
UB
82812013-08-26 Uros Bizjak <ubizjak@gmail.com>
8282
8283 * config/i386/i386.c (ix86_debug_options): Remove prototype.
8284 (x86_64_elf_select_section): Ditto.
8285 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
8286 arguments.
8287 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
8288 (output_set_got): Ditto.
8289 (ix86_unary_operator_ok): Ditto.
8290 (ix86_expand_builtin): Ditto.
8291
d5c3d3ef
JH
82922013-08-23 Jan Hubicka <jh@suse.cz>
8293
5339fc0c 8294 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 8295
5b1e7435
JH
82962013-08-23 Jan Hubicka <jh@suse.cz>
8297
8298 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
8299 (tree_decl_with_vis): Add FINAL field.
8300
ead69dac
JL
83012013-08-23 Jeff Law <law@redhat.com>
8302
8303 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
8304 the debugging dump when the expression is fully redundant.
8305
025311c4
GDR
83062013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
8307
8308 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
8309 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
8310 * pretty-print.c (pp_formatted_text_data): Likewise.
8311 (pp_write_text_to_stream): Likewise.
8312 (pp_write_text_as_dot_label_to_stream): Likewise.
8313 (pp_append_r): Likewise.
8314 (pp_format): Likewise.
8315 (pp_flush): Likewise.
8316 (pp_clear_output_area): Likewise.
8317 (pp_append_text): Likewise.
8318 (pp_formatted_text): Likewise.
8319 (pp_remaining_character_count_for_line): Likewise.
8320 (pp_newline): Likewise.
8321 (pp_character): Likewise.
8322 (output_buffer::~output_buffer): Define.
8323 (pretty_printer::~pretty_printer): Destruct output buffer.
8324 * pretty-print.h (output_buffer::~output_buffer): Declare.
8325 (pretty_printer::~pretty_printer): Declare virtual.
8326
0cadbfaa
MG
83272013-08-24 Marc Glisse <marc.glisse@inria.fr>
8328
8329 PR other/57324
8330 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
8331 HOST_WIDE_INT_M1U): New macros.
8332 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
8333 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
8334 unsigned -1 for lshift.
8335 * cse.c (cse_insn): Likewise.
8336 * double-int.c (rshift_double, lshift_double): Likewise.
8337 * builtins.c (fold_builtin_bitop): Likewise.
8338 * combine.c (force_to_mode): Likewise.
8339 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
8340 * simplify-rtx.c (simplify_const_unary_operation,
8341 simplify_const_binary_operation): Likewise.
8342 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
8343 check_va_list_escapes): Likewise.
8344 * rtlanal.c (nonzero_bits1): Likewise.
8345 * expmed.c (expand_smod_pow2): Likewise.
8346 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
8347
009e5353
JH
83482013-08-23 Jan Hubicka <jh@suse.cz>
8349
8350 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
8351 as having address taken.
8352
c4be6568
JH
83532013-08-23 Jan Hubicka <jh@suse.cz>
8354
64cbf23d
JH
8355 * ipa-utils.h (method_class_type): Declare.
8356 * ipa-devirt.c (method_class_type): Export.
8357
c4be6568
JH
8358 * cgraphunit.c (analyze_functions): Do basic devirtualization;
8359 do not walk base classes of anonymous types.
8360
97aba8e9
KK
83612013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
8362
8363 PR rtl-optimization/58220
8364 PR regression/58221
8365 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
8366 handle SEQUENCE insns properly.
8367
0fc80001
GDR
83682013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
8369
8370 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
8371 definition.
8372 (pp_newline_and_indent): Likewise.
8373 (pp_separate_with): Likewise.
8374 * pretty-print.c (pp_newline_and_flush): Define.
8375 (pp_newline_and_indent): Likewise.
8376 (pp_separate_with): Likewise.
8377
520a5868
JJ
83782013-08-23 Jakub Jelinek <jakub@redhat.com>
8379
8380 PR target/58218
8381 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
8382 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
8383
e500c62a
KY
83842013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
8385
f43245d1
UB
8386 * config/i386/predicates.md (ext_sse_reg_operand): New.
8387 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
8388 predicate to determine if EVEX is needed.
8389 (*movsi_internal): Ditto.
8390 (*movdf_internal): Ditto.
8391 (*movsf_internal): Ditto.
f43245d1 8392 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 8393
6b00d7dd
JJ
83942013-08-23 Jakub Jelinek <jakub@redhat.com>
8395
8396 PR tree-optimization/58209
8397 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
8398 (find_tail_calls): Give up for pointer result types if m is non-NULL.
8399 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
8400 emit POINTER_PLUS_EXPR.
8401 (create_tailcall_accumulator): For pointer result type accumulate in
8402 sizetype type.
8403
4f2a9f90
PC
84042013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
8405
8406 * configure.ac: Add backslashes missing from the last change.
8407 * configure: Regenerate.
8408
7bf4274e
JH
84092013-08-22 Jan Hubicka <jh@susue.cz>
8410
4f2a9f90
PC
8411 * ipa.c (function_and_variable_visibility): First remember function
8412 was global and then make it local.
7bf4274e 8413
1bea243d
JB
84142013-08-22 Julian Brown <julian@codesourcery.com>
8415
8416 * configure.ac: Add aarch64 to list of arches which use "nop" in
8417 debug_line test.
8418 * configure: Regenerate.
8419
bcba7ecc
AK
84202013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8421
8422 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
8423 gnu_libc_has_function.
8424 * config/s390/tpf.h: Likewise.
8425
4c495b0d
JH
84262013-08-22 Jan Hubicka <jh@susue.cz>
8427
8428 * timevar.c (validate_phases): Add cast.
8429
5e302bca
JH
84302013-08-22 Jan Hubicka <jh@susue.cz>
8431
8432 * timevar.c (validate_phases): Use size_t for memory.
8433 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
8434
da6ca2b5
GDR
84352013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
8436
8437 * pretty-print.h (output_buffer::output_buffer): Declare.
8438 (pretty_printer::pretty_printer): Likewise.
8439 (pp_construct): Remove.
8440 * pretty-print.c (output_buffer::output_buffer): Define.
8441 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
8442 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
8443 (print_gimple_expr): Likewise.
8444 (print_gimple_seq): Likewise.
8445 (gimple_dump_bb): Likewise.
8446 * sched-vis.c (dump_value_slim): Likewise.
8447 (dump_insn_slim): Likewise.
8448 (dump_rtl_slim): Likewise.
8449 (str_pattern_slim): Likewise.
8450 * tree-mudflap.c (mf_varname_tree): Likewise.
8451 * graph.c (print_graph_cfg): Likewise.
8452 (start_graph_dump): Likewise.
8453 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
8454 placement-new.
8455 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
8456 pretty printer initialization.
8457 * coretypes.h (diagnostic_context): Remove superflous type alias
8458 declaration.
8459 (pretty_printer): Likewise. Declare directly as a class.
8460 (pretty_print_info): Remove declaration as class.
8461 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
8462 and pp_clear_output_area.
8463 (asan_add_global): Likewise.
8464
0e1474e5
JH
84652013-08-22 Jan Hubicka <jh@suse.cz>
8466
8467 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
8468 * ipa-utils.h (update_type_inheritance_graph): Declare.
8469 (possible_polymorphic_call_target_p): Declare.
8470 (possible_polymorphic_call_target_p): New.
8471 * ipa-devirt.c: Update toplevel comments.
8472 (cached_polymorphic_call_targets): Move up.
8473 (odr_type_d): Move ID down.
8474 (polymorphic_type_binfo_p): Update comment.
8475 (odr_hasher::remove): Likewise;
8476 (get_odr_type): Set anonymous_namespace.
8477 (dump_odr_type): Dump it.
8478 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
8479 (maybe_record_node): Record node in cached_polymorphic_call_targets.
8480 (record_binfo): Add comment.
5339fc0c
UB
8481 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
8482 built.
0e1474e5
JH
8483 (devirt_node_removal_hook): Do not iCE when cache is freed.
8484 (possible_polymorphic_call_target_p): New predicate.
8485 (update_type_inheritance_graph): New function.
8486
3f97cb0b
AI
84872013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8489 Sergey Lega <sergey.s.lega@intel.com>
8490 Anna Tikhonova <anna.tikhonova@intel.com>
8491 Ilya Tocar <ilya.tocar@intel.com>
8492 Andrey Turetskiy <andrey.turetskiy@intel.com>
8493 Ilya Verbin <ilya.verbin@intel.com>
8494 Kirill Yukhin <kirill.yukhin@intel.com>
8495 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8496
8497 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
8498 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
8499 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
8500 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
8501 (OPTION_MASK_ISA_AVX2_UNSET): Update.
8502 (OPTION_MASK_ISA_AVX512F_UNSET): New.
8503 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
8504 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
8505 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
8506 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
8507 OPT_mavx512pf, OPT_mavx512er cases.
8508 * config/i386/constraints.md (v): New constraint.
8509 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
8510 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
8511 (bit_AVX512CD): New.
8512 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8513 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
8514 * config/i386/i386-c.c (ix86_target_macros_internal):
8515 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
8516 __AVX512PF__.
8517 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
8518 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
8519 * config/i386/i386.c (regclass_map, dbx_register_map)
8520 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
8521 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
8522 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
8523 -mavx512pf options.
8524 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
8525 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
8526 -mavx512pf options. Fix formatting.
8527 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
8528 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
8529 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
8530 -mavx512cd, -mavx512pf options.
8531 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
8532 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
8533 (ix86_preferred_output_reload_class): Replace SSE_REGS with
8534 ALL_SSE_REGS.
8535 (ix86_hard_regno_mode_ok): Support 512-bit registers.
8536 (ix86_set_reg_reg_cost): Ditto.
8537 (x86_order_regs_for_local_alloc): Ditto.
8538 (MAX_VECT_LEN): Extend to 64-byte.
8539 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
8540 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
8541 (TARGET_AVX512ER, TARGET_AVX512CD): New.
8542 (BIGGEST_ALIGNMENT): Extend to 512-bits.
8543 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
8544 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
8545 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
8546 (SSE_REG_MODE_P): Support new modes.
8547 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
8548 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
8549 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
8550 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
8551 (REG_CLASS_CONTENTS): Add new registers.
8552 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
8553 (EXT_REX_SSE_REGNO_P): New.
8554 (HI_REGISTER_NAMES): Add new registers.
8555 * config/i386/i386.md: Define constants for new registers.
8556 (mode): Add new 512-bit modes.
8557 (prefix): Support evex prefix.
8558 (isa): Support avx512f, noavx512f, fma_avx512f.
8559 (ssemodesuffix): Add new 512-bit modes.
8560 (movxi): New.
8561 (*movxi_internal_avx512f): Ditto.
8562 (*movdi_internal): Replace constraint "x" with the new constraint "v".
8563 Support MODE_XI.
8564 (*movsi_internal): Likewise.
8565 (*movdf_internal): Likewise.
8566 (*movsf_internal): Likewise.
8567 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
8568 (<code><mode>3): Likewise.
5339fc0c
UB
8569 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
8570 New.
3f97cb0b
AI
8571 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
8572 with the new constraint "v".
8573 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
8574 modes.
8575 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
8576 with the new constraint "v".
8577 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
8578 (<sse2>_storedqu<avxsizesuffix>): Likewise.
8579 (*<plusminus_insn><mode>3): Likewise.
8580 (<sse>_vm<plusminus_insn><mode>3): Likewise.
8581 (*mul<mode>3): Likewise.
8582 (<sse>_vmmul<mode>3): Likewise.
8583 (<sse>_div<mode>3): Likewise.
8584 (<sse>_vmdiv<mode>3): Likewise.
8585 (<sse>_sqrt<mode>2): Likewise.
8586 (<sse>_vmsqrt<mode>2): Likewise.
8587 (*<code><mode>3_finite): Likewise.
8588 (*<code><mode>3) <smaxmin>: Likewise.
8589 (<sse>_vm<code><mode>3): Likewise.
8590 (*<code><mode>3) <any_logic>: Likewise.
8591 (*fma_fmadd_<mode>): Likewise.
8592 (*fma_fmsub_<mode>): Likewise.
8593 (*fma_fnmadd_<mode>): Likewise.
8594 (*fma_fnmsub_<mode>): Likewise.
8595 (*fma_fmaddsub_<mode>): Likewise.
8596 (*fma_fmsubadd_<mode>): Likewise.
8597 (*fmai_fmadd_<mode>): Likewise.
8598 (*fmai_fmsub_<mode>): Likewise.
8599 (*fmai_fnmadd_<mode>): Likewise.
8600 (*fmai_fnmsub_<mode>): Likewise.
8601 (sse_cvtsi2ss): Likewise.
8602 (sse_cvtsi2ssq): Likewise.
8603 (sse_cvtss2si): Likewise.
8604 (sse_cvtss2si_2): Likewise.
8605 (sse_cvtss2siq): Likewise.
8606 (sse_cvtss2siq_2): Likewise.
8607 (sse_cvttss2si): Likewise.
8608 (sse_cvtss2siq_2): Likewise.
8609 (float<sseintvecmodelower><mode>2): Likewise.
8610 (sse2_cvtsd2si_2): Likewise.
8611 (sse2_cvtsd2siq_2): Likewise.
8612 (*<plusminus_insn><mode>3): Likewise.
8613 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
8614 (*<sse4_1_avx2>_mul<mode>3): Likewise.
8615 (ashr<mode>3): Likewise.
8616 (<shift_insn><mode>3): Likewise.
8617 (avx2_<code><mode>3): Likewise.
8618 (*avx2_<code><mode>3): Likewise.
8619 (*andnot<mode>3): Likewise.
8620 (*<code><mode>3) <any_logic>: Likewise.
8621 (abs<mode>2): Likewise.
8622 (avx2_permvar<mode>): Likewise.
8623 (avx2_perm<mode>_1): Likewise.
8624 (*avx_vpermilp<mode>): Likewise.
8625 (avx_vpermilvar<mode>3): Likewise.
8626 (avx2_ashrv<mode>): Likewise.
8627 (avx2_<shift_insn>v<mode>): Likewise.
8628 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
8629 -mavx512cd.
8630 * doc/rtl.texi: Document XImode.
8631
dd5e8423
JL
86322013-08-21 Jeff Law <law@redhat.com>
8633
b9ebee5d
JL
8634 * tree-flow.h (register_jump_thread): Pass vector of edges
8635 instead of each important edge.
8636 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
8637 thread path into a vector and pass that to register_jump_thread.
8638 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
8639 passed in edge vector to the current 3-edge form.
8640
dd5e8423
JL
8641 Revert:
8642 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
8643
9bb6628e 8644 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
8645 delete_unmarked_insns removed anything.
8646
445dc8df
JR
86472013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
8648
8649 * reload.h (struct reg_equivs): Rename to ..
8650 (struct reg_equivs_s): .. this.
8651
e0df53dd
ML
86522013-08-20 Martin Liska <marxin.liska@gmail.com>
8653
8654 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
8655
e7d1d3eb
RO
86562013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8657
5339fc0c 8658 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 8659
5562e26e
JL
86602013-08-21 Jeff Law <law@redhat.com>
8661
8662 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
8663 simplify assignments too. If the RHS collapses to a singleton
8664 range, then return the value for the range.
8665
c7ecdec6
KY
86662013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
8667
7a5911d3
UB
8668 * config/i386/sse.md (V16): Rename to...
8669 (VMOVE): this.
8670 (mov<mode>): Update iterator name.
8671 (*mov<mode>_internal): Ditto.
8672 (push<mode>1): Ditto.
8673 (movmisalign<mode>): Ditto.
c7ecdec6 8674
bfa3b50a
JH
86752013-08-20 Jan Hubicka <jh@suse.cz>
8676
8677 PR bootstrap/58186
8678 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
8679 entry for direct edges.
8680 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
8681
6cd4d135
DM
86822013-08-20 David Malcolm <dmalcolm@redhat.com>
8683
8684 Revert my last two changes, r201865 and r201864:
8685
8686 Revert r201865:
8687 2013-08-20 David Malcolm <dmalcolm@redhat.com>
8688
8689 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
8690 instances can own GC refs.
8691
8692 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
8693 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
8694 (gcc::context::gt_pch_nx): Likewise.
8695 (gcc::context::gt_pch_nx): Likewise.
8696 * ggc.h (gt_ggc_mx <T>): New.
8697 (gt_pch_nx_with_op <T>): New.
8698 (gt_pch_nx <T>): New.
8699 * passes.c (opt_pass::gt_ggc_mx): New.
8700 (opt_pass::gt_pch_nx): New.
8701 (opt_pass::gt_pch_nx_with_op): New.
8702 (pass_manager::gt_ggc_mx): New.
8703 (pass_manager::gt_pch_nx): New.
8704 (pass_manager::gt_pch_nx_with_op): New.
8705 (pass_manager::operator new): Use
8706 ggc_internal_cleared_alloc_stat rather than xcalloc.
8707 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
8708 (pass_manager::gt_ggc_mx): New.
8709 (pass_manager::gt_pch_nx): New.
8710 (pass_manager::gt_pch_nx_with_op): New.
8711 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
8712 (opt_pass::operator new): New.
8713 (opt_pass::gt_ggc_mx): New.
8714 (opt_pass::gt_pch_nx): New.
8715 (opt_pass::gt_pch_nx_with_op): New.
8716
8717 Revert r201864:
8718 2013-08-20 David Malcolm <dmalcolm@redhat.com>
8719
8720 * Makefile.in (GTFILES): Add context.h.
8721 * context.c (gcc::context::operator new): New.
8722 (gcc::context::gt_ggc_mx): New.
8723 (gcc::context::gt_pch_nx): New.
8724 (gcc::context::gt_pch_nx): New.
8725 * context.h (gcc::context): Add GTY((user)) marking.
8726 (gcc::context::operator new): New.
8727 (gcc::context::gt_ggc_mx): New.
8728 (gcc::context::gt_pch_nx): New.
8729 (gcc::context::gt_pch_nx): New.
8730 (g): Add GTY marking.
8731 (gt_ggc_mx (gcc::context *)): New.
8732 (gt_pch_nx (gcc::context *)): New.
8733 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
8734 void *cookie)): New.
8735 * gengtype.c (open_base_files) <ifiles>: Add context.h.
8736
a046136a
AM
87372013-08-20 Alexey Makhalov <makhaloff@gmail.com>
8738
8739 * dce.c (fini_dce): Call df_analyze again just in case
8740 delete_unmarked_insns removed anything.
8741
67598720
TJ
87422013-08-20 Teresa Johnson <tejohnson@google.com>
8743
8744 PR rtl-optimizations/57451
8745 * final.c (reemit_insn_block_notes): Prevent lexical blocks
8746 from crossing split section boundaries.
8747
f8693faf
MGD
87482013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8749
8750 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
8751 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
8752 with MULTLIB_DEFAULTS.
8753
7d0b9a9c
NC
87542013-08-20 Nick Clifton <nickc@redhat.com>
8755
8756 * target.def (narrow_volatile_bitfield): Note that the default
8757 value is false, not !TARGET_STRICT_ALIGN.
8758 * doc/tm.texi: Regenerate.
8759
8edb8dc8
PC
87602013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
8761
8762 Fix LIB_SPEC for systems without libpthread.
8763
8764 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
8765 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
8766 for Android.
8767 * config/i386/linux-common.h: Likewise.
8768 * config/mips/linux-common.h: Likewise.
8769
12211b99 87702013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
8771
8772 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
8773 checks.
8774
e42c64cb
DM
87752013-08-20 David Malcolm <dmalcolm@redhat.com>
8776
8777 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
8778 instances can own GC refs.
8779
8780 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
8781 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
8782 (gcc::context::gt_pch_nx): Likewise.
8783 (gcc::context::gt_pch_nx): Likewise.
8784 * ggc.h (gt_ggc_mx <T>): New.
8785 (gt_pch_nx_with_op <T>): New.
8786 (gt_pch_nx <T>): New.
8787 * passes.c (opt_pass::gt_ggc_mx): New.
8788 (opt_pass::gt_pch_nx): New.
8789 (opt_pass::gt_pch_nx_with_op): New.
8790 (pass_manager::gt_ggc_mx): New.
8791 (pass_manager::gt_pch_nx): New.
8792 (pass_manager::gt_pch_nx_with_op): New.
8793 (pass_manager::operator new): Use
8794 ggc_internal_cleared_alloc_stat rather than xcalloc.
8795 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
8796 (pass_manager::gt_ggc_mx): New.
8797 (pass_manager::gt_pch_nx): New.
8798 (pass_manager::gt_pch_nx_with_op): New.
8799 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
8800 (opt_pass::operator new): New.
8801 (opt_pass::gt_ggc_mx): New.
8802 (opt_pass::gt_pch_nx): New.
8803 (opt_pass::gt_pch_nx_with_op): New.
8804
910c02a0
DM
88052013-08-20 David Malcolm <dmalcolm@redhat.com>
8806
8807 * Makefile.in (GTFILES): Add context.h.
8808 * context.c (gcc::context::operator new): New.
8809 (gcc::context::gt_ggc_mx): New.
8810 (gcc::context::gt_pch_nx): New.
8811 (gcc::context::gt_pch_nx): New.
8812 * context.h (gcc::context): Add GTY((user)) marking.
8813 (gcc::context::operator new): New.
8814 (gcc::context::gt_ggc_mx): New.
8815 (gcc::context::gt_pch_nx): New.
8816 (gcc::context::gt_pch_nx): New.
8817 (g): Add GTY marking.
8818 (gt_ggc_mx (gcc::context *)): New.
8819 (gt_pch_nx (gcc::context *)): New.
8820 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
8821 void *cookie)): New.
8822 * gengtype.c (open_base_files) <ifiles>: Add context.h.
8823
af4b4236
AM
88242013-08-20 Alan Modra <amodra@gmail.com>
8825
8826 PR target/57865
8827 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
8828 (rs6000_emit_epilogue): Likewise.
8829
12211b99 88302013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
8831
8832 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
8833
e2323f5b
PB
88342013-08-19 Peter Bergner <bergner@vnet.ibm.com>
8835 Jakub Jelinek <jakub@redhat.com>
8836
8837 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
8838 (BUILT_IN_FABSD64): Likewise.
8839 (BUILT_IN_FABSD128): Likewise.
8840 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
8841 (fold_builtin_1): Likewise.
5339fc0c
UB
8842 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
8843 destination and source operands.
e2323f5b
PB
8844 (*abstd2_fpr): Likewise.
8845 (*nabstd2_fpr): Likewise.
8846
cfbf3ee8
RS
88472013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
8848
8849 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
8850 JUMP_P and INSN_P.
8851
d3136aeb
AH
88522013-08-19 Aldy Hernandez <aldyh@redhat.com>
8853
8854 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
8855 incomplete.
8856
d33d9e47
AI
88572013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
8858
8859 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
8860 * builtins.c (default_libc_has_function): New.
8861 (gnu_libc_has_function): Ditto.
8862 (no_c99_libc_has_function): Ditto.
8863 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
8864 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
8865 (fold_builtin_sincos): Likewise.
8866 (fold_builtin_cexp): Likewise.
8867 * builtins.def (DEF_C94_BUILTIN): Likewise.
8868 (DEF_C99_BUILTIN): Likewise.
8869 (DEF_C99_C90RES_BUILTIN): Likewise.
8870 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
8871 definitions to using this define.
8872 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 8873 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
8874 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
8875 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
8876 * config/darwin.h: Ditto.
8877 * config/elfos.h: Ditto.
8878 * config/freebsd.h: Ditto.
8879 * config/i386/cygming.h: Ditto.
8880 * config/i386/djgpp.h: Ditto.
8881 * config/i386/i386-interix.h: Ditto.
8882 * config/microblaze/microblaze.h: Ditto.
8883 * config/mmix/mmix.h: Ditto.
8884 * config/gnu-user.h: Ditto.
8885 * config/ia64/hpux.h: Ditto.
8886 * config/pa/pa-hpux.h: Ditto.
8887 * config/pdp11/pdp11.h: Ditto.
8888 * config/picochip/picochip.h: Ditto.
8889 * config/linux.h: Ditto.
8890 * config/netbsd.h: Ditto.
8891 * config/openbsd.h: Ditto.
8892 * config/rs6000/aix43.h: Ditto.
8893 * config/rs6000/aix51.h: Ditto.
8894 * config/rs6000/aix52.h: Ditto.
8895 * config/rs6000/aix53.h: Ditto.
8896 * config/rs6000/aix61.h: Ditto.
8897 * config/rs6000/darwin.h: Ditto.
8898 * config/rs6000/linux.h: Ditto.
8899 * config/rs6000/linux64.h: Ditto.
8900 * config/s390/tpf.h: Ditto.
8901 * config/sol2-10.h: Ditto.
8902 * config/sol2.h: Ditto.
8903 * config/vms/vms.h: Ditto.
8904 * config/vxworks.h: Ditto.
8905 * config/linux-android.c (linux_android_libc_has_function):
8906 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
8907 * config/linux-protos.h (linux_android_libc_has_function):
8908 New declaration.
8909 * config/i386/i386.c (ix86_libc_has_function): New.
8910 * config/i386/i386-protos.h
8911 (ix86_libc_has_function): New declaration.
8912 * config/i386/i386.md
8913 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
8914 ("isinf<mode>2): Likewise.
8915 * convert.c (convert_to_integer): Using new target hook
8916 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
8917 TARGET_C99_FUNCTIONS.
8918 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
8919 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
8920 * coretypes.h (function_class): New enum for different
8921 classes of functions.
8922 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
8923 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
8924 (TARGET_HAS_SINCOS): Likewise.
8925 (TARGET_LIBC_HAS_FUNCTION): New.
8926 * doc/tm.texi: Regenerated.
8927 * targhooks.h (default_libc_has_function): New declaration.
8928 (no_c99_libc_has_function): Ditto.
8929 (gnu_libc_has_function): Ditto.
8930 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
8931 and TARGET_HAS_SINCOS.
8932
eefe9a99
JH
89332013-08-18 Jan Hubicka <jh@suse.cz>
8934
8935 * Makeifle-in (ipa-devirt.o): New.
8936 (GTFILES): Add ipa-utils.h and ipa-devirt.c
8937 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
8938 (analyze_functions): Look into possible targets of polymorphic call.
8939 * dumpfile.c (dump_files): Add type-inheritance dump.
8940 * dumpfile.h (TDI_inheritance): New.
8941 * ipa-devirt.c: New file.
8942 * ipa-utils.h (odr_type_d): Forward declare.
8943 (odr_type): New type.
8944 (build_type_inheritance_graph): Declare.
8945 (possible_polymorphic_call_targets): Declare and introduce inline
8946 variant when only edge is pased.
8947 (dump_possible_polymorphic_call_targets): Likewise.
8948 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
8949 * tree.c (type_in_anonymous_namespace_p): Break out from ...
8950 (types_same_for_odr): ... here.
8951 * tree.h (type_in_anonymous_namespace_p): Declare.
8952
29b89442
JJ
89532013-08-18 Jakub Jelinek <jakub@redhat.com>
8954
8955 PR tree-optimization/58006
8956 * tree-parloops.c (take_address_of): Don't ICE if get_name
8957 returns NULL.
8958 (eliminate_local_variables_stmt): Remove clobber stmts.
8959
4f219961
EB
89602013-08-18 Eric Botcazou <ebotcazou@adacore.com>
8961
8962 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
8963 error message is issued for an alias to undefined symbol.
8964
1d5755ef
JH
89652013-08-18 Jan Hubicka <jh@suse.cz>
8966
8967 * cgraph.c (cgraph_create_indirect_edge): Discover
8968 polymorphic calls and record basic info into indirect_info.
8969 * gimple-fold.c (gimple_fold_call): When doing BINFO based
8970 devirtualization, ignore objc function calls.
8971 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
8972 call with no parm index info.
8973 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
8974 * tree.c (virtual_method_call_p): New function.
8975 * tree.h (virtual_method_call_p): Declare.
8976
5945bebf
JH
89772013-08-16 Jan Hubicka <jh@suse.cz>
8978
8979 PR middle-end/58179
8980 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
8981
47fa5d23
DE
89822013-08-16 David Edelsohn <dje.gcc@gmail.com>
8983
8984 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
8985 attribute.
8986
c74f54a0
DM
89872013-08-16 David Malcolm <dmalcolm@redhat.com>
8988
8989 * gengtype.c (type_for_name): Add special-case support for
8990 locating types within the "gcc::" namespace.
8991 (open_base_files): Emit a "using namespace gcc" directive.
8992
f758f299
MM
89932013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
8994
8995 PR target/58160
8996 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
8997 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
8998
8999 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
9000 array instead of each individual operand as a separate argument.
9001 (emit_fusion_gpr_load): Likewise.
9002 (expand_fusion_gpr_load): Add new function declaration.
9003
9004 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
9005 signature to have the operands passed as an array, instead of as
9006 separate arguments. Allow ZERO_EXTEND to be in the memory
9007 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
9008 depend on the register live/dead flags when peepholes are run.
9009 (expand_fusion_gpr_load): New function to be called from the
9010 peephole2 pass, to change the register that addis sets to be the
9011 target register.
9012 (emit_fusion_gpr_load): Change the calling signature to have the
9013 operands passed as an array, instead of as separate arguments.
9014 Allow ZERO_EXTEND to be in the memory address, and also
9015 SIGN_EXTEND if -mpower8-fusion-sign.
9016
9017 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
9018 unspec enumeration.
9019 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
9020 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 9021 depend on the register live/dead state when the peephole pass is done.
f758f299 9022
158f4e4f
DM
90232013-08-16 David Malcolm <dmalcolm@redhat.com>
9024
9025 * gengtype.c (create_user_defined_type): Ensure that the kind
9026 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
9027 declaration is seen before the GTY((user)) marking.
9028
22f8cea5
BE
90292013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
9030
9031 PR target/58105
9032 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
9033
c49bdb2e
JH
90342013-08-16 Jan Hubicka <jh@suse.cz>
9035
9036 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
9037 arugment expected_type.
9038 (gimple_fold_call): Use it.
9039 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
9040 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 9041 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
9042 (try_make_edge_direct_virtual_call): Likewise.
9043 * tree.c (obj_type_ref_class): New.
9044 * tree.h (obj_type_ref_class): Use it.
9045
4042dca9
GDR
90462013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
9047
9048 * sched-vis.c (rtl_slim_pp_initialized): Remove.
9049 (rtl_slim_pp): Likewise.
9050 (init_rtl_slim_pretty_print): Likewise.
9051 (dump_value_slim): Don't call it. Use local pretty printer.
9052 (dump_insn_slim): Likewise.
9053 (dump_rtl_slim): Likewise.
9054 (str_pattern_slim): Likewise.
9055 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
9056 Simplify.
9057
7a460594
JJ
90582013-08-16 Jakub Jelinek <jakub@redhat.com>
9059
639dc669
JJ
9060 PR tree-optimization/58164
9061 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
9062 walk gimple_goto_dest of GIMPLE_GOTO.
9063
7a460594
JJ
9064 PR tree-optimization/58165
9065 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
9066 bi_call must be the last stmt in a bb, don't split_block, instead
9067 use fallthru edge from it and give up if there is none.
9068 Release conds vector when returning early.
9069
e3c02cc7
XDL
90702013-08-14 Xinliang David Li <davidxl@google.com>
9071
9072 * config/i386/i386.c (ix86_option_override_internal):
9073 Remove unused variable and field.
9074
6469da2c
BS
90752013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9076
9077 PR target/57949
22f8cea5 9078 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
9079 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
9080 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
9081 and Linux, correct BLKmode alignment when 128-bit alignment is
9082 required and compatibility flag is not set.
22f8cea5
BE
9083 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
9084 for zero-size arguments when compatibility flag is not set.
6469da2c 9085
4ca890e2
JJ
90862013-08-14 Jakub Jelinek <jakub@redhat.com>
9087
9088 PR tree-optimization/58145
9089 * tree-sra.c (build_ref_for_offset): If prev_base has
9090 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
9091
daec1759 90922013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 9093
daec1759 9094 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 9095 Fix uninitialized variable error.
daec1759 9096
3ad20bd4
XDL
90972013-08-14 Xinliang David Li <davidxl@google.com>
9098
9099 * config/i386/i386.opt: Define two new options.
9100 * config/i386/x86-tune.def: Add arch selector field in macros.
9101 * config/i386/i386.h: Adjust macro definition.
9102 * config/i386/i386.c (ix86_option_override_internal):
9103 Refactor the code.
9104 (parse_mtune_ctrl_str): New function.
9105 (set_ix86_tune_features): New function.
9106 (ix86_function_specific_restore): Call the new helper function.
9107
e839e2a9
AB
91082013-08-14 Andrey Belevantsev <abel@ispras.ru>
9109
9110 PR rtl-optimization/57662
9111 * sel-sched.c (code_motion_process_successors): When the current insn
9112 is removed after the recursive traversal, break from the loop.
9113 Add comments and debug printouts.
9114
27ed665f
JJ
91152013-08-14 Jakub Jelinek <jakub@redhat.com>
9116 Alexandre Oliva <aoliva@redhat.com>
9117
9118 PR target/58067
9119 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
9120 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
9121 there also UNSPEC_PLTOFF.
9122
61c1a609
MP
91232013-08-14 Marek Polacek <polacek@redhat.com>
9124
9125 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
9126 NUM_CONDITIONS bit positions.
9127
0e901c67
CC
91282013-08-13 Cary Coutant <ccoutant@google.com>
9129
9130 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
9131 (attr_checksum): Hash vector contents instead of pointer.
9132 (attr_checksum_ordered): Likewise.
9133
061eff6d
UB
91342013-08-13 Uros Bizjak <ubizjak@gmail.com>
9135
9136 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
9137 when Pmode != word_mode. Add length_address attribute.
9138 (sse3_monitor_<mode>): Merge from sse3_monitor and
9139 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
9140 Pmode != word_mode. Update insn length attribute.
9141 * config/i386/i386.c (ix86_option_override_internal): Update
9142 ix86_gen_monitor selection for merged sse3_monitor insn.
9143
8ec9249b
JB
91442013-08-13 Julian Brown <julian@codesourcery.com>
9145
9146 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9147 perform invalid legitimization on greater-than-word-size modes for
9148 TARGET_E500_DOUBLE.
9149
761a8eb7
VM
91502013-08-13 Vladimir Makarov <vmakarov@redhat.com>
9151
9152 * ira.c (setup_class_translate_array): Use aclass instead of cl
9153 for classes not fully covered by allocno classes.
9154
99c2bd54
JJ
91552013-08-13 Jakub Jelinek <jakub@redhat.com>
9156
4029a5e0
JJ
9157 PR tree-optimization/57661
9158 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
9159 * tree-inline.c (tree_function_versioning): Initialize it.
9160 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
9161 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
9162 that is not being copied.
9163
99c2bd54
JJ
9164 PR sanitizer/56417
9165 * asan.c (instrument_strlen_call): Fix typo in comment.
9166 Use char * type even for the lhs of POINTER_PLUS_EXPR.
9167
b5f8f063
SE
91682013-08-13 Steve Ellcey <sellcey@mips.com>
9169
9170 * config/mips/mips.md (prefetch): Use lw instead of ld on
9171 loongson in 32bit mode.
9172
4de80584
NC
91732013-08-13 Nick Clifton <nickc@redhat.com>
9174
9175 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
9176
09ce3660
JH
91772013-08-13 Jan Hubicka <jh@suse.cz>
9178
9179 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
9180 introduced edge; fix typo in sanity check.
9181 (cgraph_resolve_speculation): Export; improve diagnostic.
9182 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
9183 speculation at type mismatch.
9184 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
9185 (cgraph_resolve_speculation): Declare.
9186 (symtab_can_be_discarded): New function.
9187 * value-prof.c (gimple_ic_transform): Remove actual transform code.
9188 * ipa-inline-transform.c (speculation_removed): New global var.
9189 (clone_inlined_nodes): See if speculation can be removed.
9190 (inline_call): If speculations was removed, we growths may not match.
9191 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
9192 (speculation_useful_p): New function.
9193 (resolve_noninline_speculation): New function.
9194 (inline_small_functions): Resolve useless speculations.
9195 * ipa-inline.h (speculation_useful_p): Declare
9196 * ipa.c (can_replace_by_local_alias): Simplify.
9197 (ipa_profile): Produce speculative calls in non-lto, too;
9198 add simple cost model; produce local aliases.
9199
f971dc24
DM
92002013-08-13 David Malcolm <dmalcolm@redhat.com>
9201
9202 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 9203 PASS_MANAGER_H.
f971dc24 9204
2e507b9a
PC
92052013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
9206
9207 * config/i386/i386.c (ix86_function_versions): Use error + inform.
9208
c97fd4b8
UB
92092013-08-12 Uros Bizjak <ubizjak@gmail.com>
9210
9211 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
9212 iterator instead of X87MODEF.
9213
92142013-08-12 Perez Read <netfirewall@gmail.com>
9215
9216 PR target/58132
9217 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
9218 operand 0 for intel asm alternative.
9219 (*movabs<mode>_2): Ditto for operand 1.
9220
f4f4204c
JG
92212013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
9222
9223 * config/aarch64/arm_none.h
9224 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
9225
133b1a8e
NC
92262013-08-12 Nick Clifton <nickc@redhat.com>
9227
9228 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
9229
15dd8b3a
YR
92302013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
9231
9232 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
9233 expand for QI/HImode operand to produce more effictive code for
9234 unsigned char(short) --> float(double) conversion.
9235
94109a6a
AM
92362013-08-12 Alexander Monakov <amonakov@ispras.ru>
9237
9238 * doc/invoke.texi: Mention that -ftls-model does not force the final
9239 model.
9240
4e115102
MP
92412013-08-12 Marek Polacek <polacek@redhat.com>
9242 Marc Glisse <marc.glisse@inria.fr>
9243
9244 PR tree-optimization/57980
9245 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
9246 when creating -1 constant.
9247
748d71f3
JH
92482013-08-10 Jan Hubicka <jh@suse.cz>
9249
1f97e193 9250 Workaround binutils PR14342.
748d71f3
JH
9251 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
9252 (gimple_init_edge_profiler): Likewise.
9253 (gimple_gen_ic_func_profiler): Likewise.
9254
5979aa54
JH
92552013-08-09 Jan Hubicka <jh@suse.cz>
9256
9257 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
9258
ad83025e
XDL
92592013-08-09 Xinliang David Li <davidxl@google.com>
9260
9261 * config/i386/stringop.def: New file.
9262 * config/i386/stringop.opt: New file.
9263 * config/i386/i386-opts.h: Include stringopt.def.
9264 * config/i386/i386.opt: Include stringopt.opt.
9265 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 9266 Override default size based stringop inline strategies with options.
ad83025e
XDL
9267 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
9268 New function.
9269
e59df5fd
JH
92702013-08-09 Jan Hubicka <jh@suse.cz>
9271
c97fd4b8 9272 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 9273
634ab819
JH
92742013-08-09 Jan Hubicka <jh@suse.cz>
9275
9276 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
9277 CGRAPH_FREQ_MAX.
9278 (dump_cgraph_node): Dump profile-id.
9279 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
9280 and common_target_probability.
9281 * lto-cgraph.c (lto_output_edge): Stream common targets.
9282 (lto_output_node): Stream profile ids.
9283 (input_node): Stream profile ids.
9284 (input_edge): Stream common targets.
9285 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
9286 * ipa.c: Include value-prof.h
9287 (ipa_profile_generate_summary): Turn indirect call statement histograms
9288 into common targets.
9289 (ipa_profile): Turn common targets into speculative edges.
9290
2fa3d31b
JH
92912013-08-09 Jan Hubicka <jh@suse.cz>
9292
9293 * cgraph.h (cgraph_node): Add profile_id.
9294 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 9295 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
9296 (del_node_map): Update.
9297 (find_func_by_funcdef_no): Replace by ...
9298 (find_func_by_profile_id): ... this one.
9299 (gimple_ic_transform): Do not remove useful histograms when
9300 speculation is not done; dump info when indirect call removal
9301 can happen at LTO.
9302 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
9303 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
9304 (__gcov_indirect_call_profiler_v2): .. this one.
9305 * profile.h (init_node_map): Update.
9306 * coverage.c (coverage_compute_profile_id): New function.
9307 * coverage.h (coverage_compute_profile_id): Declare.
9308 * tree-profile.c (init_ic_make_global_vars): Make
9309 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
9310 (gimple_init_edge_profiler): Update prototype of
9311 __gcov_indirect_call_profiler.
9312 (gimple_gen_ic_func_profiler): Simplify.
9313 (tree_profiling): Use init_node_map
9314
042ae7d2
JH
93152013-08-09 Jan Hubicka <jh@suse.cz>
9316
c97fd4b8
UB
9317 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
9318 non-speculative refs.
042ae7d2
JH
9319 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
9320 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
9321 (cgraph_set_call_stmt): Likewise.
9322 (cgraph_create_edge_1): Fix release checking compilatoin;
9323 clear lto_stmt_uid.
9324 (cgraph_free_edge): Free indirect info.
9325 (cgraph_turn_edge_to_speculative): New function.
9326 (cgraph_speculative_call_info): New function.
9327 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 9328 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
9329 (dump_cgraph_node): Dump speculation.
9330 (verify_edge_count_and_frequency): Accept speculative edges.
9331 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
9332 (verify_cgraph_node): Handle speculation.
9333 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
9334 (cgraph_set_call_stmt): Update prototype.
9335 (cgraph_make_edge_direct): Update prototype.
9336 (cgraph_speculative_call_info): Declare.
9337 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
9338 to change; update call of ipa_find_references.
9339 * ipa-ref.c (ipa_record_reference): Fix return value; clear
9340 lto_stmt_uid and speculative flags.
9341 (ipa_dump_references): Dump speculation.
9342 (ipa_clone_references): Clone speculative flag.
9343 (ipa_clone_referring): Likewise.
9344 (ipa_clone_ref): New function.
9345 (ipa_find_reference): Look into lto_stmt_uids
9346 (ipa_clear_stmts_in_references): Do not clear speculative calls.
9347 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
9348 (ipa_find_reference): Update declaration.
9349 (ipa_clone_ref): Declare.
9350 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
9351 stream speculative flag.
9352 (lto_output_ref): Stream statements uids and speculation.
9353 (input_ref): Likewise.
9354 (input_edge): Stream speuclation.
9355 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
9356 (cgraph_set_call_stmt_including_clones): Handle speculation.
9357 * ipa-inline.c (heap_edge_removal_hook): New function.
9358 (inline_small_functions): Register it.
9359 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
9360 also initialize refs.
9361 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
9362 edge to change.
9363 (try_make_edge_direct_simple_call): Likewise.
9364 (try_make_edge_direct_simple_call): Likewise.
9365 (update_indirect_edges_after_inlining): Likewise.
9366 (remove_described_reference): Look proper lto_stmt_uid.
9367 (propagate_controlled_uses): Likewise.
9368 (propagate_controlled_uses): Liekwise.
9369 * tree-inline.c (copy_bb): Copy speculative edges.
9370 (redirect_all_calls): New function.
c97fd4b8
UB
9371 (copy_cfg_body): Do redirection after loop info is updated.
9372 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 9373
aa1e10cc
JH
93742013-08-09 Jan Hubicka <jh@suse.cz>
9375
9376 * lto-streamer-out.c (output_function): Renumber PHIs.
9377 * lto-streamer-in.c (input_function): Likewise.
9378
66adb8eb
JG
93792013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
9380
9381 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
9382 (get_lane_unsigned): Likewise.
9383 (dup_lane_scalar): Likewise.
9384 (get_lane): enable for VALL.
9385 * config/aarch64/aarch64-simd.md
9386 (aarch64_dup_lane_scalar<mode>): Remove.
9387 (aarch64_get_lane_signed<mode>): Likewise.
9388 (aarch64_get_lane_unsigned<mode>): Likewise.
9389 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
9390 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
9391 (aarch64_get_lane<mode>): Enable for all vector modes.
9392 (aarch64_get_lanedi): Remove misleading constraints.
9393 * config/aarch64/arm_neon.h
9394 (__aarch64_vget_lane_any): Define.
9395 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
9396 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
9397 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
9398 * config/aarch64/iterators.md (VDQQH): New.
9399 (VDQQHS): Likewise.
9400 (vwcore): Likewise.
9401
1f65ae7a
EB
94022013-08-09 Eric Botcazou <ebotcazou@adacore.com>
9403
9404 * configure.ac: Add GAS check for LEON instructions on SPARC.
9405 * configure: Regenerate.
9406 * config.in: Likewise.
9407 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
9408 sparc*-*-* block.
9409 * config/sparc/sparc.opt (LEON, LEON3): New masks.
9410 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
9411 for LEON or LEON3.
9412 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
9413 (AS_LEON_FLAG): New macro.
9414 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
9415 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
9416 Deal with LEON and LEON3 for the memory model.
23a6cb78 9417 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
9418 (atomic_compare_and_swap<mode>_1): Likewise.
9419 (*atomic_compare_and_swap<mode>_1): Likewise.
9420
ff522f7f
ZC
94212013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9422
9423 * config/arm/neon.md (vcond): Fix floating-point vector
9424 comparisons against 0.
9425
cb1cca12
VM
94262013-08-08 Vladimir Makarov <vmakarov@redhat.com>
9427
9428 * lra-constraints.c (emit_spill_move): Remove assert.
9429 (process_alt_operands): Add more debugging
9430 output. Increase reject for spilling into memory. Decrease
9431 reject for reloading scratch.
9432 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
9433
a3719e31
SE
94342013-08-08 Steve Ellcey <sellcey@mips.com>
9435
9436 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
9437 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
9438 micromips incompatible. Add nan2008.
9439 (MULTILIB_DIRNAMES): Add nan2008.
9440 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
9441 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
9442 and micromips incompatible. Add nan2008.
9443 (MULTILIB_DIRNAMES): Add nan2008.
9444 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
9445
f40423e2
RS
94462013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
9447
9448 PR rtl-optimization/58079
9449 * combine.c (combine_simplify_rtx): Avoid using SUBST if
9450 simplify_comparison has widened a comparison with an integer.
9451
869b9125
KT
94522013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9453
9454 * config/arm/neon.md (movmisalign<mode>): Disable when we
9455 don't allow unaligned accesses.
9456 (*movmisalign<mode>_neon_store): Likewise.
9457 (*movmisalign<mode>_neon_load): Likewise.
9458 (*movmisalign<mode>_neon_store): Likewise.
9459 (*movmisalign<mode>_neon_load): Likewise.
9460
71cafea9
JH
94612013-08-08 Jan Hubicka <jh@suse.cz>
9462
9463 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
9464 (make_pass_rebuild_cgraph_edges): Also clear references.
9465 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
9466 * ipa-inline-transform.c (inline_transform): Remove all references
9467 after inlining.
c97fd4b8
UB
9468 * cgraphunit.c (expand_function): Remove all references after
9469 expansion.
71cafea9
JH
9470 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
9471 (ipa_find_reference): Rewrite to iterator.
9472 (remove_stmt_references): Likewise.
9473 (ipa_clear_stmts_in_references): New function.
9474 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
9475 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
9476 clear references.
71cafea9
JH
9477 * ipa-split.c (split_function): Remove references in split function.
9478
27d2e612
RE
94792013-08-08 Richard Earnshaw <rearnsha@arm.com>
9480
9481 PR target/57431
1f65ae7a 9482 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
9483 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
9484
5efc661c
RE
94852013-08-08 Richard Earnshaw <rearnsha@arm.com>
9486
9487 PR target/56979
1f65ae7a 9488 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
9489 suggested mode for the assignment isn't compatible with the
9490 registers required.
9491
f276d31d
BE
94922013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
9493
9494 PR target/58065
9495 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
9496
4b8bc035
XDL
94972013-08-07 Xinliang David Li <davidxl@google.com>
9498
9499 * config/i386/i386.opt: New option -mtune-ctrl=.
9500 * config/i386/x86-tune.def: New file.
9501 * config/i386/i386.h: include x86-tune.def.
9502 * config/i386/i386.c (ix86_option_override_internal):
9503 Parsing -mtune-ctrl= option and set tune features.
9504
12211b99 95052013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
9506
9507 PR other/12081
03b0ee0a 9508 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
9509 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
9510 to gen_2arg_fn_t.
9511
5cf6635b
EB
95122013-08-07 Eric Botcazou <ebotcazou@adacore.com>
9513
9514 * rtl.h (update_alignments): Declare.
9515 * final.c (grow_label_align): New function extracted from...
9516 (shorten_branches): ...here. Call it.
9517 (update_alignments): New function.
9518 * reorg.c (sibling_labels): New variable.
9519 (get_label_before): Add SIBLING parameter. If it is non-zero, push
9520 the new label along with it onto the sibling_labels vector.
9521 (fill_simple_delay_slots): Adjust call to get_label_before.
9522 (fill_slots_from_thread): Likewise.
9523 (relax_delay_slots): Likewise.
9524 (make_return_insns): Likewise.
9525 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
9526
3c8ca1ab
EB
95272013-08-07 Eric Botcazou <ebotcazou@adacore.com>
9528
9529 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
9530 document its semantics.
9531 (diagnostic_report_diagnostic): Adjust accordingly.
9532
5ee5b32c
DM
95332013-08-07 David Malcolm <dmalcolm@redhat.com>
9534
03b0ee0a 9535 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
9536 (sparc_option_override): ...and port to new C++ pass API.
9537 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
9538
abd566fa
PB
95392013-08-07 Peter Bergner <bergner@vnet.ibm.com>
9540
9541 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
9542
2077db1b
CT
95432013-08-06 Caroline Tice <cmtice@google.com>
9544
9545 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
9546 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
9547 * tree-pass.h: Add pass_vtable_verify.
9548 * varasm.c (assemble_variable): Add code to properly set the comdat
9549 section and name for the .vtable_map_vars section.
9550 (assemble_vtyv_preinit_initializer): New function.
9551 (default_sectin_type_flags): Make sure .vtable_map_vars section has
9552 LINK_ONCE flag.
9553 * output.h: Add function decl for assemble_vtv_preinit_initializer.
9554 * vtable-verify.c: New file.
9555 * vtable-verify.h: New file.
9556 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
9557 initialiation levels.
9558 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
9559 * passes.def: Insert pass_vtable_verify.
9560 * aclocal.m4: Reorder includes.
9561 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
9562 -fvtv-counts options.
9563 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
9564 as appropriate, if -fvtable-verify=... is used.
9565 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
9566 -fvtable-verify=... is used.
9567 * Makefile.in (OBJS): Add vtable-verify.o to list.
9568 (vtable-verify.o): Add new build rule.
9569 (GTFILES): Add vtable-verify.c to list.
9570 * common.opt (fvtable-verify=): New flag.
9571 (vtv_priority): Values for fvtable-verify= flag.
9572 (fvtv-counts): New flag.
9573 (fvtv-debug): New flag.
9574 * tree.h (save_vtable_map_decl): New extern function decl.
9575
03085d1c
DM
95762013-08-07 David Malcolm <dmalcolm@redhat.com>
9577
9578 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
9579 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
9580 (pass_data_rl78_devirt): ...new pass_data instance and...
9581 (make_pass_rl78_devirt): ...new function.
9582 (rl78_asm_file_start): Port pass registration to new C++ API.
9583
05555c4a
DM
95842013-08-07 David Malcolm <dmalcolm@redhat.com>
9585
9586 * coretypes.h (rtl_opt_pass): Add.
9587 (gcc::context): Add.
9588 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
9589 (epiphany_init): Port to new C++ pass API.
9590 (epiphany_optimize_mode_switching): Likewise.
9591 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
9592 (pass_manager::get_pass_mode_switching): New.
9593 (pass_manager::get_pass_peephole2): New.
9594 * mode-switching.c (pass_mode_switching): Add clone method.
9595 * recog.c (pass_peephole2): Add clone method.
9596 (pass_split_all_insns): Add clone method.
9597
c5a12e26
DM
95982013-08-06 David Malcolm <dmalcolm@redhat.com>
9599
03b0ee0a
UB
9600 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
9601 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 9602
a2e2a668
JH
96032013-08-06 Jan Hubicka <jh@suse.cz>
9604
9605 * cgraph.c (cgraph_get_body): New function based on lto.c
9606 implementation.
9607 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
9608 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
9609 LTO paths.
a2e2a668
JH
9610 * cgraphunit.c (expand_function): Get body prior expanding.
9611 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
9612 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
9613 really need.
a2e2a668
JH
9614 * passes.c (do_per_function_toporder): Get body.
9615 * tree-inline.c (expand_call_inline): Get body prior inlining it.
9616 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
9617
15682f24
MJ
96182013-08-06 Martin Jambor <mjambor@suse.cz>
9619
9620 PR fortran/57987
9621 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
9622 is not re-finalized. Rename second parameter to no_collect.
9623
78f6dd68
MJ
96242013-08-06 Martin Jambor <mjambor@suse.cz>
9625
9626 PR middle-end/58041
9627 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
9628 MEM_REF has proper alignment information.
9629
12211b99 96302013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
9631
9632 PR other/12081
9633 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
9634 class insn_gen_fn.
9635 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
9636 rtx (*) (rtx, ...) with insn_gen_fn.
9637 * genoutput.c (output_insn_data): Cast gen_? function pointers to
9638 insn_gen_fn::stored_funcptr. Add initializer braces.
9639
8ac69a6c
DM
96402013-08-05 David Malcolm <dmalcolm@redhat.com>
9641
9642 Rewrite how instances of passes are cloned to remove assumptions
9643 about their sizes (thus allowing pass subclasses to have
9644 additional data fields, albeit non-GC-managed ones at this point).
9645
9646 * passes.c (make_pass_instance): Now that passes have clone
9647 methods, rewrite this function to eliminate XNEW and memcpy
9648 calls that used hardcoded sizes. Since this function no longer
9649 creates pass instances, rename it to...
03b0ee0a
UB
9650 (add_pass_instance): ...this. Document the old way that passes were
9651 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
9652 (next_pass_1): Add an initial_pass argument for use by
9653 add_pass_instance.
9654 (position_pass): When adding multiple instances of a pass, use
9655 the pass's clone method, rather than relying on the XNEW/memcpy
9656 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
9657 (pass_manager::pass_manager): When invoking next_pass_1, also supply
9658 the initial instance of the current pass within the pass manager.
8ac69a6c 9659
27a4cd48
DM
96602013-08-05 David Malcolm <dmalcolm@redhat.com>
9661
9662 This is the automated part of the conversion of passes from C
9663 structs to C++ classes.
9664
9665 Patch autogenerated by refactor_passes.py from
9666 https://github.com/davidmalcolm/gcc-refactoring-scripts
9667 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
9668
9669 * asan.c (pass_asan): Convert from a global struct to a subclass of
9670 gimple_opt_pass along with...
9671 (pass_data_asan): ...new pass_data instance and...
9672 (make_pass_asan): ...new function.
9673 (pass_asan_O0): Convert from a global struct to a subclass of
9674 gimple_opt_pass along with...
9675 (pass_data_asan_O0): ...new pass_data instance and...
9676 (make_pass_asan_O0): ...new function.
9677 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
9678 subclass of rtl_opt_pass along with...
9679 (pass_data_inc_dec): ...new pass_data instance and...
9680 (make_pass_inc_dec): ...new function.
9681 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
9682 a subclass of rtl_opt_pass along with...
9683 (pass_data_reorder_blocks): ...new pass_data instance and...
9684 (make_pass_reorder_blocks): ...new function.
9685 (pass_duplicate_computed_gotos): Convert from a global struct to a
9686 subclass of rtl_opt_pass along with...
9687 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
9688 (make_pass_duplicate_computed_gotos): ...new function.
9689 (pass_partition_blocks): Convert from a global struct to a subclass of
9690 rtl_opt_pass along with...
9691 (pass_data_partition_blocks): ...new pass_data instance and...
9692 (make_pass_partition_blocks): ...new function.
9693 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
9694 struct to a subclass of rtl_opt_pass along with...
9695 (pass_data_branch_target_load_optimize1): ...new pass_data instance
9696 and...
9697 (make_pass_branch_target_load_optimize1): ...new function.
9698 (pass_branch_target_load_optimize2): Convert from a global struct to a
9699 subclass of rtl_opt_pass along with...
9700 (pass_data_branch_target_load_optimize2): ...new pass_data instance
9701 and...
9702 (make_pass_branch_target_load_optimize2): ...new function.
9703 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
9704 of rtl_opt_pass along with...
9705 (pass_data_jump): ...new pass_data instance and...
9706 (make_pass_jump): ...new function.
9707 (pass_jump2): Convert from a global struct to a subclass of
9708 rtl_opt_pass along with...
9709 (pass_data_jump2): ...new pass_data instance and...
9710 (make_pass_jump2): ...new function.
9711 * cfgexpand.c (pass_expand): Convert from a global struct to a
9712 subclass of rtl_opt_pass along with...
9713 (pass_data_expand): ...new pass_data instance and...
9714 (make_pass_expand): ...new function.
9715 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
9716 of rtl_opt_pass along with...
9717 (pass_data_free_cfg): ...new pass_data instance and...
9718 (make_pass_free_cfg): ...new function.
9719 (pass_into_cfg_layout_mode): Convert from a global struct to a
9720 subclass of rtl_opt_pass along with...
9721 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
9722 (make_pass_into_cfg_layout_mode): ...new function.
9723 (pass_outof_cfg_layout_mode): Convert from a global struct to a
9724 subclass of rtl_opt_pass along with...
9725 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
9726 (make_pass_outof_cfg_layout_mode): ...new function.
9727 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
9728 struct to a subclass of gimple_opt_pass along with...
9729 (pass_data_build_cgraph_edges): ...new pass_data instance and...
9730 (make_pass_build_cgraph_edges): ...new function.
9731 (pass_rebuild_cgraph_edges): Convert from a global struct to a
9732 subclass of gimple_opt_pass along with...
9733 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
9734 (make_pass_rebuild_cgraph_edges): ...new function.
9735 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
9736 subclass of gimple_opt_pass along with...
9737 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
9738 and...
9739 (make_pass_remove_cgraph_callee_edges): ...new function.
9740 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
9741 struct to a subclass of rtl_opt_pass along with...
9742 (pass_data_stack_adjustments): ...new pass_data instance and...
9743 (make_pass_stack_adjustments): ...new function.
9744 * combine.c (pass_combine): Convert from a global struct to a subclass
9745 of rtl_opt_pass along with...
9746 (pass_data_combine): ...new pass_data instance and...
9747 (make_pass_combine): ...new function.
9748 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
9749 global struct to a subclass of rtl_opt_pass along with...
9750 (pass_data_compare_elim_after_reload): ...new pass_data instance
9751 and...
9752 (make_pass_compare_elim_after_reload): ...new function.
9753 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
9754 of rtl_opt_pass along with...
9755 (pass_data_rtl_cprop): ...new pass_data instance and...
9756 (make_pass_rtl_cprop): ...new function.
9757 * cse.c (pass_cse): Convert from a global struct to a subclass of
9758 rtl_opt_pass along with...
9759 (pass_data_cse): ...new pass_data instance and...
9760 (make_pass_cse): ...new function.
9761 (pass_cse2): Convert from a global struct to a subclass of
9762 rtl_opt_pass along with...
9763 (pass_data_cse2): ...new pass_data instance and...
9764 (make_pass_cse2): ...new function.
9765 (pass_cse_after_global_opts): Convert from a global struct to a
9766 subclass of rtl_opt_pass along with...
9767 (pass_data_cse_after_global_opts): ...new pass_data instance and...
9768 (make_pass_cse_after_global_opts): ...new function.
9769 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
9770 of rtl_opt_pass along with...
9771 (pass_data_ud_rtl_dce): ...new pass_data instance and...
9772 (make_pass_ud_rtl_dce): ...new function.
9773 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
9774 rtl_opt_pass along with...
9775 (pass_data_fast_rtl_dce): ...new pass_data instance and...
9776 (make_pass_fast_rtl_dce): ...new function.
9777 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
9778 a subclass of rtl_opt_pass along with...
9779 (pass_data_df_initialize_opt): ...new pass_data instance and...
9780 (make_pass_df_initialize_opt): ...new function.
9781 (pass_df_initialize_no_opt): Convert from a global struct to a
9782 subclass of rtl_opt_pass along with...
9783 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
9784 (make_pass_df_initialize_no_opt): ...new function.
9785 (pass_df_finish): Convert from a global struct to a subclass of
9786 rtl_opt_pass along with...
9787 (pass_data_df_finish): ...new pass_data instance and...
9788 (make_pass_df_finish): ...new function.
9789 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
9790 rtl_opt_pass along with...
9791 (pass_data_rtl_dse1): ...new pass_data instance and...
9792 (make_pass_rtl_dse1): ...new function.
9793 (pass_rtl_dse2): Convert from a global struct to a subclass of
9794 rtl_opt_pass along with...
9795 (pass_data_rtl_dse2): ...new pass_data instance and...
9796 (make_pass_rtl_dse2): ...new function.
9797 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
9798 subclass of rtl_opt_pass along with...
9799 (pass_data_dwarf2_frame): ...new pass_data instance and...
9800 (make_pass_dwarf2_frame): ...new function.
9801 * except.c (pass_set_nothrow_function_flags): Convert from a global
9802 struct to a subclass of rtl_opt_pass along with...
9803 (pass_data_set_nothrow_function_flags): ...new pass_data instance
9804 and...
9805 (make_pass_set_nothrow_function_flags): ...new function.
9806 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
9807 subclass of rtl_opt_pass along with...
9808 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
9809 and...
9810 (make_pass_convert_to_eh_region_ranges): ...new function.
9811 * final.c (pass_compute_alignments): Convert from a global struct to a
9812 subclass of rtl_opt_pass along with...
9813 (pass_data_compute_alignments): ...new pass_data instance and...
9814 (make_pass_compute_alignments): ...new function.
9815 (pass_final): Convert from a global struct to a subclass of
9816 rtl_opt_pass along with...
9817 (pass_data_final): ...new pass_data instance and...
9818 (make_pass_final): ...new function.
9819 (pass_shorten_branches): Convert from a global struct to a subclass of
9820 rtl_opt_pass along with...
9821 (pass_data_shorten_branches): ...new pass_data instance and...
9822 (make_pass_shorten_branches): ...new function.
9823 (pass_clean_state): Convert from a global struct to a subclass of
9824 rtl_opt_pass along with...
9825 (pass_data_clean_state): ...new pass_data instance and...
9826 (make_pass_clean_state): ...new function.
9827 * function.c (pass_instantiate_virtual_regs): Convert from a global
9828 struct to a subclass of rtl_opt_pass along with...
9829 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
9830 (make_pass_instantiate_virtual_regs): ...new function.
9831 (pass_leaf_regs): Convert from a global struct to a subclass of
9832 rtl_opt_pass along with...
9833 (pass_data_leaf_regs): ...new pass_data instance and...
9834 (make_pass_leaf_regs): ...new function.
9835 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
9836 subclass of rtl_opt_pass along with...
9837 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
9838 and...
9839 (make_pass_thread_prologue_and_epilogue): ...new function.
9840 (pass_match_asm_constraints): Convert from a global struct to a
9841 subclass of rtl_opt_pass along with...
9842 (pass_data_match_asm_constraints): ...new pass_data instance and...
9843 (make_pass_match_asm_constraints): ...new function.
9844 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
9845 subclass of rtl_opt_pass along with...
9846 (pass_data_rtl_fwprop): ...new pass_data instance and...
9847 (make_pass_rtl_fwprop): ...new function.
9848 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
9849 rtl_opt_pass along with...
9850 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
9851 (make_pass_rtl_fwprop_addr): ...new function.
9852 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
9853 rtl_opt_pass along with...
9854 (pass_data_rtl_pre): ...new pass_data instance and...
9855 (make_pass_rtl_pre): ...new function.
9856 (pass_rtl_hoist): Convert from a global struct to a subclass of
9857 rtl_opt_pass along with...
9858 (pass_data_rtl_hoist): ...new pass_data instance and...
9859 (make_pass_rtl_hoist): ...new function.
9860 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
9861 subclass of gimple_opt_pass along with...
9862 (pass_data_lower_cf): ...new pass_data instance and...
9863 (make_pass_lower_cf): ...new function.
9864 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
9865 from a global struct to a subclass of gimple_opt_pass along with...
9866 (pass_data_strength_reduction): ...new pass_data instance and...
9867 (make_pass_strength_reduction): ...new function.
9868 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
9869 of rtl_opt_pass along with...
9870 (pass_data_rtl_ifcvt): ...new pass_data instance and...
9871 (make_pass_rtl_ifcvt): ...new function.
9872 (pass_if_after_combine): Convert from a global struct to a subclass of
9873 rtl_opt_pass along with...
9874 (pass_data_if_after_combine): ...new pass_data instance and...
9875 (make_pass_if_after_combine): ...new function.
9876 (pass_if_after_reload): Convert from a global struct to a subclass of
9877 rtl_opt_pass along with...
9878 (pass_data_if_after_reload): ...new pass_data instance and...
9879 (make_pass_if_after_reload): ...new function.
9880 * init-regs.c (pass_initialize_regs): Convert from a global struct to
9881 a subclass of rtl_opt_pass along with...
9882 (pass_data_initialize_regs): ...new pass_data instance and...
9883 (make_pass_initialize_regs): ...new function.
9884 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
9885 of ipa_opt_pass_d along with...
9886 (pass_data_ipa_cp): ...new pass_data instance and...
9887 (make_pass_ipa_cp): ...new function.
9888 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
9889 global struct to a subclass of gimple_opt_pass along with...
9890 (pass_data_inline_parameters): ...new pass_data instance and...
9891 (make_pass_inline_parameters): ...new function.
9892 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
9893 subclass of gimple_opt_pass along with...
9894 (pass_data_early_inline): ...new pass_data instance and...
9895 (make_pass_early_inline): ...new function.
9896 (pass_ipa_inline): Convert from a global struct to a subclass of
9897 ipa_opt_pass_d along with...
9898 (pass_data_ipa_inline): ...new pass_data instance and...
9899 (make_pass_ipa_inline): ...new function.
9900 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
9901 struct to a subclass of gimple_opt_pass along with...
9902 (pass_data_local_pure_const): ...new pass_data instance and...
9903 (make_pass_local_pure_const): ...new function.
9904 (pass_ipa_pure_const): Convert from a global struct to a subclass of
9905 ipa_opt_pass_d along with...
9906 (pass_data_ipa_pure_const): ...new pass_data instance and...
9907 (make_pass_ipa_pure_const): ...new function.
9908 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
9909 to a subclass of ipa_opt_pass_d along with...
9910 (pass_data_ipa_reference): ...new pass_data instance and...
9911 (make_pass_ipa_reference): ...new function.
9912 * ipa-split.c (pass_split_functions): Convert from a global struct to
9913 a subclass of gimple_opt_pass along with...
9914 (pass_data_split_functions): ...new pass_data instance and...
9915 (make_pass_split_functions): ...new function.
9916 (pass_feedback_split_functions): Convert from a global struct to a
9917 subclass of gimple_opt_pass along with...
9918 (pass_data_feedback_split_functions): ...new pass_data instance and...
9919 (make_pass_feedback_split_functions): ...new function.
9920 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
9921 global struct to a subclass of simple_ipa_opt_pass along with...
9922 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
9923 instance and...
9924 (make_pass_ipa_function_and_variable_visibility): ...new function.
9925 (pass_ipa_free_inline_summary): Convert from a global struct to a
9926 subclass of simple_ipa_opt_pass along with...
9927 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
9928 (make_pass_ipa_free_inline_summary): ...new function.
9929 (pass_ipa_whole_program_visibility): Convert from a global struct to a
9930 subclass of ipa_opt_pass_d along with...
9931 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
9932 and...
9933 (make_pass_ipa_whole_program_visibility): ...new function.
9934 (pass_ipa_profile): Convert from a global struct to a subclass of
9935 ipa_opt_pass_d along with...
9936 (pass_data_ipa_profile): ...new pass_data instance and...
9937 (make_pass_ipa_profile): ...new function.
9938 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
9939 ipa_opt_pass_d along with...
9940 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
9941 (make_pass_ipa_cdtor_merge): ...new function.
9942 * ira.c (pass_ira): Convert from a global struct to a subclass of
9943 rtl_opt_pass along with...
9944 (pass_data_ira): ...new pass_data instance and...
9945 (make_pass_ira): ...new function.
9946 (pass_reload): Convert from a global struct to a subclass of
9947 rtl_opt_pass along with...
9948 (pass_data_reload): ...new pass_data instance and...
9949 (make_pass_reload): ...new function.
9950 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
9951 subclass of rtl_opt_pass along with...
9952 (pass_data_cleanup_barriers): ...new pass_data instance and...
9953 (make_pass_cleanup_barriers): ...new function.
9954 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
9955 of rtl_opt_pass along with...
9956 (pass_data_loop2): ...new pass_data instance and...
9957 (make_pass_loop2): ...new function.
9958 (pass_rtl_loop_init): Convert from a global struct to a subclass of
9959 rtl_opt_pass along with...
9960 (pass_data_rtl_loop_init): ...new pass_data instance and...
9961 (make_pass_rtl_loop_init): ...new function.
9962 (pass_rtl_loop_done): Convert from a global struct to a subclass of
9963 rtl_opt_pass along with...
9964 (pass_data_rtl_loop_done): ...new pass_data instance and...
9965 (make_pass_rtl_loop_done): ...new function.
9966 (pass_rtl_move_loop_invariants): Convert from a global struct to a
9967 subclass of rtl_opt_pass along with...
9968 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
9969 (make_pass_rtl_move_loop_invariants): ...new function.
9970 (pass_rtl_unswitch): Convert from a global struct to a subclass of
9971 rtl_opt_pass along with...
9972 (pass_data_rtl_unswitch): ...new pass_data instance and...
9973 (make_pass_rtl_unswitch): ...new function.
9974 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
9975 subclass of rtl_opt_pass along with...
9976 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
9977 and...
9978 (make_pass_rtl_unroll_and_peel_loops): ...new function.
9979 (pass_rtl_doloop): Convert from a global struct to a subclass of
9980 rtl_opt_pass along with...
9981 (pass_data_rtl_doloop): ...new pass_data instance and...
9982 (make_pass_rtl_doloop): ...new function.
9983 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
9984 a subclass of rtl_opt_pass along with...
9985 (pass_data_lower_subreg): ...new pass_data instance and...
9986 (make_pass_lower_subreg): ...new function.
9987 (pass_lower_subreg2): Convert from a global struct to a subclass of
9988 rtl_opt_pass along with...
9989 (pass_data_lower_subreg2): ...new pass_data instance and...
9990 (make_pass_lower_subreg2): ...new function.
9991 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
9992 struct to a subclass of ipa_opt_pass_d along with...
9993 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
9994 (make_pass_ipa_lto_gimple_out): ...new function.
9995 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
9996 of ipa_opt_pass_d along with...
9997 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
9998 (make_pass_ipa_lto_finish_out): ...new function.
9999 * mode-switching.c (pass_mode_switching): Convert from a global struct
10000 to a subclass of rtl_opt_pass along with...
10001 (pass_data_mode_switching): ...new pass_data instance and...
10002 (make_pass_mode_switching): ...new function.
10003 * modulo-sched.c (pass_sms): Convert from a global struct to a
10004 subclass of rtl_opt_pass along with...
10005 (pass_data_sms): ...new pass_data instance and...
10006 (make_pass_sms): ...new function.
10007 * omp-low.c (pass_expand_omp): Convert from a global struct to a
10008 subclass of gimple_opt_pass along with...
10009 (pass_data_expand_omp): ...new pass_data instance and...
10010 (make_pass_expand_omp): ...new function.
10011 (pass_lower_omp): Convert from a global struct to a subclass of
10012 gimple_opt_pass along with...
10013 (pass_data_lower_omp): ...new pass_data instance and...
10014 (make_pass_lower_omp): ...new function.
10015 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
10016 of gimple_opt_pass along with...
10017 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
10018 (make_pass_diagnose_omp_blocks): ...new function.
10019 * passes.c (pass_early_local_passes): Convert from a global struct to
10020 a subclass of simple_ipa_opt_pass along with...
10021 (pass_data_early_local_passes): ...new pass_data instance and...
10022 (make_pass_early_local_passes): ...new function.
10023 (pass_all_early_optimizations): Convert from a global struct to a
10024 subclass of gimple_opt_pass along with...
10025 (pass_data_all_early_optimizations): ...new pass_data instance and...
10026 (make_pass_all_early_optimizations): ...new function.
10027 (pass_all_optimizations): Convert from a global struct to a subclass
10028 of gimple_opt_pass along with...
10029 (pass_data_all_optimizations): ...new pass_data instance and...
10030 (make_pass_all_optimizations): ...new function.
10031 (pass_all_optimizations_g): Convert from a global struct to a subclass
10032 of gimple_opt_pass along with...
10033 (pass_data_all_optimizations_g): ...new pass_data instance and...
10034 (make_pass_all_optimizations_g): ...new function.
10035 (pass_rest_of_compilation): Convert from a global struct to a subclass
10036 of rtl_opt_pass along with...
10037 (pass_data_rest_of_compilation): ...new pass_data instance and...
10038 (make_pass_rest_of_compilation): ...new function.
10039 (pass_postreload): Convert from a global struct to a subclass of
10040 rtl_opt_pass along with...
10041 (pass_data_postreload): ...new pass_data instance and...
10042 (make_pass_postreload): ...new function.
10043 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
10044 subclass of rtl_opt_pass along with...
10045 (pass_data_gcse2): ...new pass_data instance and...
10046 (make_pass_gcse2): ...new function.
10047 * postreload.c (pass_postreload_cse): Convert from a global struct to
10048 a subclass of rtl_opt_pass along with...
10049 (pass_data_postreload_cse): ...new pass_data instance and...
10050 (make_pass_postreload_cse): ...new function.
10051 * predict.c (pass_profile): Convert from a global struct to a subclass
10052 of gimple_opt_pass along with...
10053 (pass_data_profile): ...new pass_data instance and...
10054 (make_pass_profile): ...new function.
10055 (pass_strip_predict_hints): Convert from a global struct to a subclass
10056 of gimple_opt_pass along with...
10057 (pass_data_strip_predict_hints): ...new pass_data instance and...
10058 (make_pass_strip_predict_hints): ...new function.
10059 * recog.c (pass_peephole2): Convert from a global struct to a subclass
10060 of rtl_opt_pass along with...
10061 (pass_data_peephole2): ...new pass_data instance and...
10062 (make_pass_peephole2): ...new function.
10063 (pass_split_all_insns): Convert from a global struct to a subclass of
10064 rtl_opt_pass along with...
10065 (pass_data_split_all_insns): ...new pass_data instance and...
10066 (make_pass_split_all_insns): ...new function.
10067 (pass_split_after_reload): Convert from a global struct to a subclass
10068 of rtl_opt_pass along with...
10069 (pass_data_split_after_reload): ...new pass_data instance and...
10070 (make_pass_split_after_reload): ...new function.
10071 (pass_split_before_regstack): Convert from a global struct to a
10072 subclass of rtl_opt_pass along with...
10073 (pass_data_split_before_regstack): ...new pass_data instance and...
10074 (make_pass_split_before_regstack): ...new function.
10075 (pass_split_before_sched2): Convert from a global struct to a subclass
10076 of rtl_opt_pass along with...
10077 (pass_data_split_before_sched2): ...new pass_data instance and...
10078 (make_pass_split_before_sched2): ...new function.
10079 (pass_split_for_shorten_branches): Convert from a global struct to a
10080 subclass of rtl_opt_pass along with...
10081 (pass_data_split_for_shorten_branches): ...new pass_data instance
10082 and...
10083 (make_pass_split_for_shorten_branches): ...new function.
10084 * ree.c (pass_ree): Convert from a global struct to a subclass of
10085 rtl_opt_pass along with...
10086 (pass_data_ree): ...new pass_data instance and...
10087 (make_pass_ree): ...new function.
10088 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
10089 subclass of rtl_opt_pass along with...
10090 (pass_data_stack_regs): ...new pass_data instance and...
10091 (make_pass_stack_regs): ...new function.
10092 (pass_stack_regs_run): Convert from a global struct to a subclass of
10093 rtl_opt_pass along with...
10094 (pass_data_stack_regs_run): ...new pass_data instance and...
10095 (make_pass_stack_regs_run): ...new function.
10096 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
10097 subclass of rtl_opt_pass along with...
10098 (pass_data_cprop_hardreg): ...new pass_data instance and...
10099 (make_pass_cprop_hardreg): ...new function.
10100 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
10101 subclass of rtl_opt_pass along with...
10102 (pass_data_reginfo_init): ...new pass_data instance and...
10103 (make_pass_reginfo_init): ...new function.
10104 * regmove.c (pass_regmove): Convert from a global struct to a subclass
10105 of rtl_opt_pass along with...
10106 (pass_data_regmove): ...new pass_data instance and...
10107 (make_pass_regmove): ...new function.
10108 * regrename.c (pass_regrename): Convert from a global struct to a
10109 subclass of rtl_opt_pass along with...
10110 (pass_data_regrename): ...new pass_data instance and...
10111 (make_pass_regrename): ...new function.
10112 * reorg.c (pass_delay_slots): Convert from a global struct to a
10113 subclass of rtl_opt_pass along with...
10114 (pass_data_delay_slots): ...new pass_data instance and...
10115 (make_pass_delay_slots): ...new function.
10116 (pass_machine_reorg): Convert from a global struct to a subclass of
10117 rtl_opt_pass along with...
10118 (pass_data_machine_reorg): ...new pass_data instance and...
10119 (make_pass_machine_reorg): ...new function.
10120 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
10121 of rtl_opt_pass along with...
10122 (pass_data_sched): ...new pass_data instance and...
10123 (make_pass_sched): ...new function.
10124 (pass_sched2): Convert from a global struct to a subclass of
10125 rtl_opt_pass along with...
10126 (pass_data_sched2): ...new pass_data instance and...
10127 (make_pass_sched2): ...new function.
10128 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
10129 to a subclass of rtl_opt_pass along with...
10130 (pass_data_stack_ptr_mod): ...new pass_data instance and...
10131 (make_pass_stack_ptr_mod): ...new function.
10132 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
10133 to a subclass of rtl_opt_pass along with...
10134 (pass_data_rtl_store_motion): ...new pass_data instance and...
10135 (make_pass_rtl_store_motion): ...new function.
10136 * tracer.c (pass_tracer): Convert from a global struct to a subclass
10137 of gimple_opt_pass along with...
10138 (pass_data_tracer): ...new pass_data instance and...
10139 (make_pass_tracer): ...new function.
10140 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
10141 to a subclass of gimple_opt_pass along with...
10142 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
10143 (make_pass_diagnose_tm_blocks): ...new function.
10144 (pass_lower_tm): Convert from a global struct to a subclass of
10145 gimple_opt_pass along with...
10146 (pass_data_lower_tm): ...new pass_data instance and...
10147 (make_pass_lower_tm): ...new function.
10148 (pass_tm_init): Convert from a global struct to a subclass of
10149 gimple_opt_pass along with...
10150 (pass_data_tm_init): ...new pass_data instance and...
10151 (make_pass_tm_init): ...new function.
10152 (pass_tm_mark): Convert from a global struct to a subclass of
10153 gimple_opt_pass along with...
10154 (pass_data_tm_mark): ...new pass_data instance and...
10155 (make_pass_tm_mark): ...new function.
10156 (pass_tm_edges): Convert from a global struct to a subclass of
10157 gimple_opt_pass along with...
10158 (pass_data_tm_edges): ...new pass_data instance and...
10159 (make_pass_tm_edges): ...new function.
10160 (pass_tm_memopt): Convert from a global struct to a subclass of
10161 gimple_opt_pass along with...
10162 (pass_data_tm_memopt): ...new pass_data instance and...
10163 (make_pass_tm_memopt): ...new function.
10164 (pass_ipa_tm): Convert from a global struct to a subclass of
10165 simple_ipa_opt_pass along with...
10166 (pass_data_ipa_tm): ...new pass_data instance and...
10167 (make_pass_ipa_tm): ...new function.
10168 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
10169 subclass of gimple_opt_pass along with...
10170 (pass_data_call_cdce): ...new pass_data instance and...
10171 (make_pass_call_cdce): ...new function.
10172 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
10173 subclass of gimple_opt_pass along with...
10174 (pass_data_build_cfg): ...new pass_data instance and...
10175 (make_pass_build_cfg): ...new function.
10176 (pass_split_crit_edges): Convert from a global struct to a subclass of
10177 gimple_opt_pass along with...
10178 (pass_data_split_crit_edges): ...new pass_data instance and...
10179 (make_pass_split_crit_edges): ...new function.
10180 (pass_warn_function_return): Convert from a global struct to a
10181 subclass of gimple_opt_pass along with...
10182 (pass_data_warn_function_return): ...new pass_data instance and...
10183 (make_pass_warn_function_return): ...new function.
10184 (pass_warn_function_noreturn): Convert from a global struct to a
10185 subclass of gimple_opt_pass along with...
10186 (pass_data_warn_function_noreturn): ...new pass_data instance and...
10187 (make_pass_warn_function_noreturn): ...new function.
10188 (pass_warn_unused_result): Convert from a global struct to a subclass
10189 of gimple_opt_pass along with...
10190 (pass_data_warn_unused_result): ...new pass_data instance and...
10191 (make_pass_warn_unused_result): ...new function.
10192 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
10193 a subclass of gimple_opt_pass along with...
10194 (pass_data_merge_phi): ...new pass_data instance and...
10195 (make_pass_merge_phi): ...new function.
10196 * tree-complex.c (pass_lower_complex): Convert from a global struct to
10197 a subclass of gimple_opt_pass along with...
10198 (pass_data_lower_complex): ...new pass_data instance and...
10199 (make_pass_lower_complex): ...new function.
10200 (pass_lower_complex_O0): Convert from a global struct to a subclass of
10201 gimple_opt_pass along with...
10202 (pass_data_lower_complex_O0): ...new pass_data instance and...
10203 (make_pass_lower_complex_O0): ...new function.
10204 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
10205 subclass of gimple_opt_pass along with...
10206 (pass_data_lower_eh): ...new pass_data instance and...
10207 (make_pass_lower_eh): ...new function.
10208 (pass_refactor_eh): Convert from a global struct to a subclass of
10209 gimple_opt_pass along with...
10210 (pass_data_refactor_eh): ...new pass_data instance and...
10211 (make_pass_refactor_eh): ...new function.
10212 (pass_lower_resx): Convert from a global struct to a subclass of
10213 gimple_opt_pass along with...
10214 (pass_data_lower_resx): ...new pass_data instance and...
10215 (make_pass_lower_resx): ...new function.
10216 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
10217 of gimple_opt_pass along with...
10218 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
10219 (make_pass_lower_eh_dispatch): ...new function.
10220 (pass_cleanup_eh): Convert from a global struct to a subclass of
10221 gimple_opt_pass along with...
10222 (pass_data_cleanup_eh): ...new pass_data instance and...
10223 (make_pass_cleanup_eh): ...new function.
10224 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
10225 to a subclass of simple_ipa_opt_pass along with...
10226 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
10227 (make_pass_ipa_lower_emutls): ...new function.
10228 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
10229 a subclass of gimple_opt_pass along with...
10230 (pass_data_if_conversion): ...new pass_data instance and...
10231 (make_pass_if_conversion): ...new function.
10232 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
10233 subclass of gimple_opt_pass along with...
10234 (pass_data_build_ssa): ...new pass_data instance and...
10235 (make_pass_build_ssa): ...new function.
10236 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
10237 global struct to a subclass of gimple_opt_pass along with...
10238 (pass_data_loop_distribution): ...new pass_data instance and...
10239 (make_pass_loop_distribution): ...new function.
10240 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
10241 subclass of gimple_opt_pass along with...
10242 (pass_data_mudflap_1): ...new pass_data instance and...
10243 (make_pass_mudflap_1): ...new function.
10244 (pass_mudflap_2): Convert from a global struct to a subclass of
10245 gimple_opt_pass along with...
10246 (pass_data_mudflap_2): ...new pass_data instance and...
10247 (make_pass_mudflap_2): ...new function.
10248 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
10249 subclass of gimple_opt_pass along with...
10250 (pass_data_mudflap_1): ...new pass_data instance and...
10251 (make_pass_mudflap_1): ...new function.
10252 (pass_mudflap_2): Convert from a global struct to a subclass of
10253 gimple_opt_pass along with...
10254 (pass_data_mudflap_2): ...new pass_data instance and...
10255 (make_pass_mudflap_2): ...new function.
10256 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
10257 gimple_opt_pass along with...
10258 (pass_data_nrv): ...new pass_data instance and...
10259 (make_pass_nrv): ...new function.
10260 (pass_return_slot): Convert from a global struct to a subclass of
10261 gimple_opt_pass along with...
10262 (pass_data_return_slot): ...new pass_data instance and...
10263 (make_pass_return_slot): ...new function.
10264 * tree-object-size.c (pass_object_sizes): Convert from a global struct
10265 to a subclass of gimple_opt_pass along with...
10266 (pass_data_object_sizes): ...new pass_data instance and...
10267 (make_pass_object_sizes): ...new function.
10268 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
10269 global struct to a subclass of gimple_opt_pass along with...
10270 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
10271 and...
10272 (make_pass_cleanup_cfg_post_optimizing): ...new function.
10273 (pass_fixup_cfg): Convert from a global struct to a subclass of
10274 gimple_opt_pass along with...
10275 (pass_data_fixup_cfg): ...new pass_data instance and...
10276 (make_pass_fixup_cfg): ...new function.
10277 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
10278 (make_pass_mudflap_1): ...new function.
10279 (pass_mudflap_2): Replace declaration with that of...
10280 (make_pass_mudflap_2): ...new function.
10281 (pass_asan): Replace declaration with that of...
10282 (make_pass_asan): ...new function.
10283 (pass_asan_O0): Replace declaration with that of...
10284 (make_pass_asan_O0): ...new function.
10285 (pass_tsan): Replace declaration with that of...
10286 (make_pass_tsan): ...new function.
10287 (pass_tsan_O0): Replace declaration with that of...
10288 (make_pass_tsan_O0): ...new function.
10289 (pass_lower_cf): Replace declaration with that of...
10290 (make_pass_lower_cf): ...new function.
10291 (pass_refactor_eh): Replace declaration with that of...
10292 (make_pass_refactor_eh): ...new function.
10293 (pass_lower_eh): Replace declaration with that of...
10294 (make_pass_lower_eh): ...new function.
10295 (pass_lower_eh_dispatch): Replace declaration with that of...
10296 (make_pass_lower_eh_dispatch): ...new function.
10297 (pass_lower_resx): Replace declaration with that of...
10298 (make_pass_lower_resx): ...new function.
10299 (pass_build_cfg): Replace declaration with that of...
10300 (make_pass_build_cfg): ...new function.
10301 (pass_early_tree_profile): Replace declaration with that of...
10302 (make_pass_early_tree_profile): ...new function.
10303 (pass_cleanup_eh): Replace declaration with that of...
10304 (make_pass_cleanup_eh): ...new function.
10305 (pass_sra): Replace declaration with that of...
10306 (make_pass_sra): ...new function.
10307 (pass_sra_early): Replace declaration with that of...
10308 (make_pass_sra_early): ...new function.
10309 (pass_early_ipa_sra): Replace declaration with that of...
10310 (make_pass_early_ipa_sra): ...new function.
10311 (pass_tail_recursion): Replace declaration with that of...
10312 (make_pass_tail_recursion): ...new function.
10313 (pass_tail_calls): Replace declaration with that of...
10314 (make_pass_tail_calls): ...new function.
10315 (pass_tree_loop): Replace declaration with that of...
10316 (make_pass_tree_loop): ...new function.
10317 (pass_tree_loop_init): Replace declaration with that of...
10318 (make_pass_tree_loop_init): ...new function.
10319 (pass_lim): Replace declaration with that of...
10320 (make_pass_lim): ...new function.
10321 (pass_tree_unswitch): Replace declaration with that of...
10322 (make_pass_tree_unswitch): ...new function.
10323 (pass_predcom): Replace declaration with that of...
10324 (make_pass_predcom): ...new function.
10325 (pass_iv_canon): Replace declaration with that of...
10326 (make_pass_iv_canon): ...new function.
10327 (pass_scev_cprop): Replace declaration with that of...
10328 (make_pass_scev_cprop): ...new function.
10329 (pass_empty_loop): Replace declaration with that of...
10330 (make_pass_empty_loop): ...new function.
10331 (pass_record_bounds): Replace declaration with that of...
10332 (make_pass_record_bounds): ...new function.
10333 (pass_graphite): Replace declaration with that of...
10334 (make_pass_graphite): ...new function.
10335 (pass_graphite_transforms): Replace declaration with that of...
10336 (make_pass_graphite_transforms): ...new function.
10337 (pass_if_conversion): Replace declaration with that of...
10338 (make_pass_if_conversion): ...new function.
10339 (pass_loop_distribution): Replace declaration with that of...
10340 (make_pass_loop_distribution): ...new function.
10341 (pass_vectorize): Replace declaration with that of...
10342 (make_pass_vectorize): ...new function.
10343 (pass_slp_vectorize): Replace declaration with that of...
10344 (make_pass_slp_vectorize): ...new function.
10345 (pass_complete_unroll): Replace declaration with that of...
10346 (make_pass_complete_unroll): ...new function.
10347 (pass_complete_unrolli): Replace declaration with that of...
10348 (make_pass_complete_unrolli): ...new function.
10349 (pass_parallelize_loops): Replace declaration with that of...
10350 (make_pass_parallelize_loops): ...new function.
10351 (pass_loop_prefetch): Replace declaration with that of...
10352 (make_pass_loop_prefetch): ...new function.
10353 (pass_iv_optimize): Replace declaration with that of...
10354 (make_pass_iv_optimize): ...new function.
10355 (pass_tree_loop_done): Replace declaration with that of...
10356 (make_pass_tree_loop_done): ...new function.
10357 (pass_ch): Replace declaration with that of...
10358 (make_pass_ch): ...new function.
10359 (pass_ccp): Replace declaration with that of...
10360 (make_pass_ccp): ...new function.
10361 (pass_phi_only_cprop): Replace declaration with that of...
10362 (make_pass_phi_only_cprop): ...new function.
10363 (pass_build_ssa): Replace declaration with that of...
10364 (make_pass_build_ssa): ...new function.
10365 (pass_build_alias): Replace declaration with that of...
10366 (make_pass_build_alias): ...new function.
10367 (pass_build_ealias): Replace declaration with that of...
10368 (make_pass_build_ealias): ...new function.
10369 (pass_dominator): Replace declaration with that of...
10370 (make_pass_dominator): ...new function.
10371 (pass_dce): Replace declaration with that of...
10372 (make_pass_dce): ...new function.
10373 (pass_dce_loop): Replace declaration with that of...
10374 (make_pass_dce_loop): ...new function.
10375 (pass_cd_dce): Replace declaration with that of...
10376 (make_pass_cd_dce): ...new function.
10377 (pass_call_cdce): Replace declaration with that of...
10378 (make_pass_call_cdce): ...new function.
10379 (pass_merge_phi): Replace declaration with that of...
10380 (make_pass_merge_phi): ...new function.
10381 (pass_split_crit_edges): Replace declaration with that of...
10382 (make_pass_split_crit_edges): ...new function.
10383 (pass_pre): Replace declaration with that of...
10384 (make_pass_pre): ...new function.
10385 (pass_profile): Replace declaration with that of...
10386 (make_pass_profile): ...new function.
10387 (pass_strip_predict_hints): Replace declaration with that of...
10388 (make_pass_strip_predict_hints): ...new function.
10389 (pass_lower_complex_O0): Replace declaration with that of...
10390 (make_pass_lower_complex_O0): ...new function.
10391 (pass_lower_complex): Replace declaration with that of...
10392 (make_pass_lower_complex): ...new function.
10393 (pass_lower_vector): Replace declaration with that of...
10394 (make_pass_lower_vector): ...new function.
10395 (pass_lower_vector_ssa): Replace declaration with that of...
10396 (make_pass_lower_vector_ssa): ...new function.
10397 (pass_lower_omp): Replace declaration with that of...
10398 (make_pass_lower_omp): ...new function.
10399 (pass_diagnose_omp_blocks): Replace declaration with that of...
10400 (make_pass_diagnose_omp_blocks): ...new function.
10401 (pass_expand_omp): Replace declaration with that of...
10402 (make_pass_expand_omp): ...new function.
10403 (pass_expand_omp_ssa): Replace declaration with that of...
10404 (make_pass_expand_omp_ssa): ...new function.
10405 (pass_object_sizes): Replace declaration with that of...
10406 (make_pass_object_sizes): ...new function.
10407 (pass_strlen): Replace declaration with that of...
10408 (make_pass_strlen): ...new function.
10409 (pass_fold_builtins): Replace declaration with that of...
10410 (make_pass_fold_builtins): ...new function.
10411 (pass_stdarg): Replace declaration with that of...
10412 (make_pass_stdarg): ...new function.
10413 (pass_early_warn_uninitialized): Replace declaration with that of...
10414 (make_pass_early_warn_uninitialized): ...new function.
10415 (pass_late_warn_uninitialized): Replace declaration with that of...
10416 (make_pass_late_warn_uninitialized): ...new function.
10417 (pass_cse_reciprocals): Replace declaration with that of...
10418 (make_pass_cse_reciprocals): ...new function.
10419 (pass_cse_sincos): Replace declaration with that of...
10420 (make_pass_cse_sincos): ...new function.
10421 (pass_optimize_bswap): Replace declaration with that of...
10422 (make_pass_optimize_bswap): ...new function.
10423 (pass_optimize_widening_mul): Replace declaration with that of...
10424 (make_pass_optimize_widening_mul): ...new function.
10425 (pass_warn_function_return): Replace declaration with that of...
10426 (make_pass_warn_function_return): ...new function.
10427 (pass_warn_function_noreturn): Replace declaration with that of...
10428 (make_pass_warn_function_noreturn): ...new function.
10429 (pass_cselim): Replace declaration with that of...
10430 (make_pass_cselim): ...new function.
10431 (pass_phiopt): Replace declaration with that of...
10432 (make_pass_phiopt): ...new function.
10433 (pass_forwprop): Replace declaration with that of...
10434 (make_pass_forwprop): ...new function.
10435 (pass_phiprop): Replace declaration with that of...
10436 (make_pass_phiprop): ...new function.
10437 (pass_tree_ifcombine): Replace declaration with that of...
10438 (make_pass_tree_ifcombine): ...new function.
10439 (pass_dse): Replace declaration with that of...
10440 (make_pass_dse): ...new function.
10441 (pass_nrv): Replace declaration with that of...
10442 (make_pass_nrv): ...new function.
10443 (pass_rename_ssa_copies): Replace declaration with that of...
10444 (make_pass_rename_ssa_copies): ...new function.
10445 (pass_sink_code): Replace declaration with that of...
10446 (make_pass_sink_code): ...new function.
10447 (pass_fre): Replace declaration with that of...
10448 (make_pass_fre): ...new function.
10449 (pass_check_data_deps): Replace declaration with that of...
10450 (make_pass_check_data_deps): ...new function.
10451 (pass_copy_prop): Replace declaration with that of...
10452 (make_pass_copy_prop): ...new function.
10453 (pass_vrp): Replace declaration with that of...
10454 (make_pass_vrp): ...new function.
10455 (pass_uncprop): Replace declaration with that of...
10456 (make_pass_uncprop): ...new function.
10457 (pass_return_slot): Replace declaration with that of...
10458 (make_pass_return_slot): ...new function.
10459 (pass_reassoc): Replace declaration with that of...
10460 (make_pass_reassoc): ...new function.
10461 (pass_rebuild_cgraph_edges): Replace declaration with that of...
10462 (make_pass_rebuild_cgraph_edges): ...new function.
10463 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
10464 (make_pass_remove_cgraph_callee_edges): ...new function.
10465 (pass_build_cgraph_edges): Replace declaration with that of...
10466 (make_pass_build_cgraph_edges): ...new function.
10467 (pass_local_pure_const): Replace declaration with that of...
10468 (make_pass_local_pure_const): ...new function.
10469 (pass_tracer): Replace declaration with that of...
10470 (make_pass_tracer): ...new function.
10471 (pass_warn_unused_result): Replace declaration with that of...
10472 (make_pass_warn_unused_result): ...new function.
10473 (pass_diagnose_tm_blocks): Replace declaration with that of...
10474 (make_pass_diagnose_tm_blocks): ...new function.
10475 (pass_lower_tm): Replace declaration with that of...
10476 (make_pass_lower_tm): ...new function.
10477 (pass_tm_init): Replace declaration with that of...
10478 (make_pass_tm_init): ...new function.
10479 (pass_tm_mark): Replace declaration with that of...
10480 (make_pass_tm_mark): ...new function.
10481 (pass_tm_memopt): Replace declaration with that of...
10482 (make_pass_tm_memopt): ...new function.
10483 (pass_tm_edges): Replace declaration with that of...
10484 (make_pass_tm_edges): ...new function.
10485 (pass_split_functions): Replace declaration with that of...
10486 (make_pass_split_functions): ...new function.
10487 (pass_feedback_split_functions): Replace declaration with that of...
10488 (make_pass_feedback_split_functions): ...new function.
10489 (pass_strength_reduction): Replace declaration with that of...
10490 (make_pass_strength_reduction): ...new function.
10491 (pass_ipa_lower_emutls): Replace declaration with that of...
10492 (make_pass_ipa_lower_emutls): ...new function.
10493 (pass_ipa_function_and_variable_visibility): Replace declaration with
10494 that of...
10495 (make_pass_ipa_function_and_variable_visibility): ...new function.
10496 (pass_ipa_tree_profile): Replace declaration with that of...
10497 (make_pass_ipa_tree_profile): ...new function.
10498 (pass_early_local_passes): Replace declaration with that of...
10499 (make_pass_early_local_passes): ...new function.
10500 (pass_ipa_whole_program_visibility): Replace declaration with that
10501 of...
10502 (make_pass_ipa_whole_program_visibility): ...new function.
10503 (pass_ipa_lto_gimple_out): Replace declaration with that of...
10504 (make_pass_ipa_lto_gimple_out): ...new function.
10505 (pass_ipa_increase_alignment): Replace declaration with that of...
10506 (make_pass_ipa_increase_alignment): ...new function.
10507 (pass_ipa_inline): Replace declaration with that of...
10508 (make_pass_ipa_inline): ...new function.
10509 (pass_ipa_free_lang_data): Replace declaration with that of...
10510 (make_pass_ipa_free_lang_data): ...new function.
10511 (pass_ipa_free_inline_summary): Replace declaration with that of...
10512 (make_pass_ipa_free_inline_summary): ...new function.
10513 (pass_ipa_cp): Replace declaration with that of...
10514 (make_pass_ipa_cp): ...new function.
10515 (pass_ipa_reference): Replace declaration with that of...
10516 (make_pass_ipa_reference): ...new function.
10517 (pass_ipa_pure_const): Replace declaration with that of...
10518 (make_pass_ipa_pure_const): ...new function.
10519 (pass_ipa_pta): Replace declaration with that of...
10520 (make_pass_ipa_pta): ...new function.
10521 (pass_ipa_lto_finish_out): Replace declaration with that of...
10522 (make_pass_ipa_lto_finish_out): ...new function.
10523 (pass_ipa_tm): Replace declaration with that of...
10524 (make_pass_ipa_tm): ...new function.
10525 (pass_ipa_profile): Replace declaration with that of...
10526 (make_pass_ipa_profile): ...new function.
10527 (pass_ipa_cdtor_merge): Replace declaration with that of...
10528 (make_pass_ipa_cdtor_merge): ...new function.
10529 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
10530 of...
10531 (make_pass_cleanup_cfg_post_optimizing): ...new function.
10532 (pass_init_datastructures): Replace declaration with that of...
10533 (make_pass_init_datastructures): ...new function.
10534 (pass_fixup_cfg): Replace declaration with that of...
10535 (make_pass_fixup_cfg): ...new function.
10536 (pass_expand): Replace declaration with that of...
10537 (make_pass_expand): ...new function.
10538 (pass_instantiate_virtual_regs): Replace declaration with that of...
10539 (make_pass_instantiate_virtual_regs): ...new function.
10540 (pass_rtl_fwprop): Replace declaration with that of...
10541 (make_pass_rtl_fwprop): ...new function.
10542 (pass_rtl_fwprop_addr): Replace declaration with that of...
10543 (make_pass_rtl_fwprop_addr): ...new function.
10544 (pass_jump): Replace declaration with that of...
10545 (make_pass_jump): ...new function.
10546 (pass_jump2): Replace declaration with that of...
10547 (make_pass_jump2): ...new function.
10548 (pass_lower_subreg): Replace declaration with that of...
10549 (make_pass_lower_subreg): ...new function.
10550 (pass_cse): Replace declaration with that of...
10551 (make_pass_cse): ...new function.
10552 (pass_fast_rtl_dce): Replace declaration with that of...
10553 (make_pass_fast_rtl_dce): ...new function.
10554 (pass_ud_rtl_dce): Replace declaration with that of...
10555 (make_pass_ud_rtl_dce): ...new function.
10556 (pass_rtl_dce): Replace declaration with that of...
10557 (make_pass_rtl_dce): ...new function.
10558 (pass_rtl_dse1): Replace declaration with that of...
10559 (make_pass_rtl_dse1): ...new function.
10560 (pass_rtl_dse2): Replace declaration with that of...
10561 (make_pass_rtl_dse2): ...new function.
10562 (pass_rtl_dse3): Replace declaration with that of...
10563 (make_pass_rtl_dse3): ...new function.
10564 (pass_rtl_cprop): Replace declaration with that of...
10565 (make_pass_rtl_cprop): ...new function.
10566 (pass_rtl_pre): Replace declaration with that of...
10567 (make_pass_rtl_pre): ...new function.
10568 (pass_rtl_hoist): Replace declaration with that of...
10569 (make_pass_rtl_hoist): ...new function.
10570 (pass_rtl_store_motion): Replace declaration with that of...
10571 (make_pass_rtl_store_motion): ...new function.
10572 (pass_cse_after_global_opts): Replace declaration with that of...
10573 (make_pass_cse_after_global_opts): ...new function.
10574 (pass_rtl_ifcvt): Replace declaration with that of...
10575 (make_pass_rtl_ifcvt): ...new function.
10576 (pass_into_cfg_layout_mode): Replace declaration with that of...
10577 (make_pass_into_cfg_layout_mode): ...new function.
10578 (pass_outof_cfg_layout_mode): Replace declaration with that of...
10579 (make_pass_outof_cfg_layout_mode): ...new function.
10580 (pass_loop2): Replace declaration with that of...
10581 (make_pass_loop2): ...new function.
10582 (pass_rtl_loop_init): Replace declaration with that of...
10583 (make_pass_rtl_loop_init): ...new function.
10584 (pass_rtl_move_loop_invariants): Replace declaration with that of...
10585 (make_pass_rtl_move_loop_invariants): ...new function.
10586 (pass_rtl_unswitch): Replace declaration with that of...
10587 (make_pass_rtl_unswitch): ...new function.
10588 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
10589 (make_pass_rtl_unroll_and_peel_loops): ...new function.
10590 (pass_rtl_doloop): Replace declaration with that of...
10591 (make_pass_rtl_doloop): ...new function.
10592 (pass_rtl_loop_done): Replace declaration with that of...
10593 (make_pass_rtl_loop_done): ...new function.
10594 (pass_web): Replace declaration with that of...
10595 (make_pass_web): ...new function.
10596 (pass_cse2): Replace declaration with that of...
10597 (make_pass_cse2): ...new function.
10598 (pass_df_initialize_opt): Replace declaration with that of...
10599 (make_pass_df_initialize_opt): ...new function.
10600 (pass_df_initialize_no_opt): Replace declaration with that of...
10601 (make_pass_df_initialize_no_opt): ...new function.
10602 (pass_reginfo_init): Replace declaration with that of...
10603 (make_pass_reginfo_init): ...new function.
10604 (pass_inc_dec): Replace declaration with that of...
10605 (make_pass_inc_dec): ...new function.
10606 (pass_stack_ptr_mod): Replace declaration with that of...
10607 (make_pass_stack_ptr_mod): ...new function.
10608 (pass_initialize_regs): Replace declaration with that of...
10609 (make_pass_initialize_regs): ...new function.
10610 (pass_combine): Replace declaration with that of...
10611 (make_pass_combine): ...new function.
10612 (pass_if_after_combine): Replace declaration with that of...
10613 (make_pass_if_after_combine): ...new function.
10614 (pass_ree): Replace declaration with that of...
10615 (make_pass_ree): ...new function.
10616 (pass_partition_blocks): Replace declaration with that of...
10617 (make_pass_partition_blocks): ...new function.
10618 (pass_match_asm_constraints): Replace declaration with that of...
10619 (make_pass_match_asm_constraints): ...new function.
10620 (pass_regmove): Replace declaration with that of...
10621 (make_pass_regmove): ...new function.
10622 (pass_split_all_insns): Replace declaration with that of...
10623 (make_pass_split_all_insns): ...new function.
10624 (pass_fast_rtl_byte_dce): Replace declaration with that of...
10625 (make_pass_fast_rtl_byte_dce): ...new function.
10626 (pass_lower_subreg2): Replace declaration with that of...
10627 (make_pass_lower_subreg2): ...new function.
10628 (pass_mode_switching): Replace declaration with that of...
10629 (make_pass_mode_switching): ...new function.
10630 (pass_sms): Replace declaration with that of...
10631 (make_pass_sms): ...new function.
10632 (pass_sched): Replace declaration with that of...
10633 (make_pass_sched): ...new function.
10634 (pass_ira): Replace declaration with that of...
10635 (make_pass_ira): ...new function.
10636 (pass_reload): Replace declaration with that of...
10637 (make_pass_reload): ...new function.
10638 (pass_clean_state): Replace declaration with that of...
10639 (make_pass_clean_state): ...new function.
10640 (pass_branch_prob): Replace declaration with that of...
10641 (make_pass_branch_prob): ...new function.
10642 (pass_value_profile_transformations): Replace declaration with that
10643 of...
10644 (make_pass_value_profile_transformations): ...new function.
10645 (pass_postreload_cse): Replace declaration with that of...
10646 (make_pass_postreload_cse): ...new function.
10647 (pass_gcse2): Replace declaration with that of...
10648 (make_pass_gcse2): ...new function.
10649 (pass_split_after_reload): Replace declaration with that of...
10650 (make_pass_split_after_reload): ...new function.
10651 (pass_branch_target_load_optimize1): Replace declaration with that
10652 of...
10653 (make_pass_branch_target_load_optimize1): ...new function.
10654 (pass_thread_prologue_and_epilogue): Replace declaration with that
10655 of...
10656 (make_pass_thread_prologue_and_epilogue): ...new function.
10657 (pass_stack_adjustments): Replace declaration with that of...
10658 (make_pass_stack_adjustments): ...new function.
10659 (pass_peephole2): Replace declaration with that of...
10660 (make_pass_peephole2): ...new function.
10661 (pass_if_after_reload): Replace declaration with that of...
10662 (make_pass_if_after_reload): ...new function.
10663 (pass_regrename): Replace declaration with that of...
10664 (make_pass_regrename): ...new function.
10665 (pass_cprop_hardreg): Replace declaration with that of...
10666 (make_pass_cprop_hardreg): ...new function.
10667 (pass_reorder_blocks): Replace declaration with that of...
10668 (make_pass_reorder_blocks): ...new function.
10669 (pass_branch_target_load_optimize2): Replace declaration with that
10670 of...
10671 (make_pass_branch_target_load_optimize2): ...new function.
10672 (pass_leaf_regs): Replace declaration with that of...
10673 (make_pass_leaf_regs): ...new function.
10674 (pass_split_before_sched2): Replace declaration with that of...
10675 (make_pass_split_before_sched2): ...new function.
10676 (pass_compare_elim_after_reload): Replace declaration with that of...
10677 (make_pass_compare_elim_after_reload): ...new function.
10678 (pass_sched2): Replace declaration with that of...
10679 (make_pass_sched2): ...new function.
10680 (pass_stack_regs): Replace declaration with that of...
10681 (make_pass_stack_regs): ...new function.
10682 (pass_stack_regs_run): Replace declaration with that of...
10683 (make_pass_stack_regs_run): ...new function.
10684 (pass_df_finish): Replace declaration with that of...
10685 (make_pass_df_finish): ...new function.
10686 (pass_compute_alignments): Replace declaration with that of...
10687 (make_pass_compute_alignments): ...new function.
10688 (pass_duplicate_computed_gotos): Replace declaration with that of...
10689 (make_pass_duplicate_computed_gotos): ...new function.
10690 (pass_variable_tracking): Replace declaration with that of...
10691 (make_pass_variable_tracking): ...new function.
10692 (pass_free_cfg): Replace declaration with that of...
10693 (make_pass_free_cfg): ...new function.
10694 (pass_machine_reorg): Replace declaration with that of...
10695 (make_pass_machine_reorg): ...new function.
10696 (pass_cleanup_barriers): Replace declaration with that of...
10697 (make_pass_cleanup_barriers): ...new function.
10698 (pass_delay_slots): Replace declaration with that of...
10699 (make_pass_delay_slots): ...new function.
10700 (pass_split_for_shorten_branches): Replace declaration with that of...
10701 (make_pass_split_for_shorten_branches): ...new function.
10702 (pass_split_before_regstack): Replace declaration with that of...
10703 (make_pass_split_before_regstack): ...new function.
10704 (pass_convert_to_eh_region_ranges): Replace declaration with that
10705 of...
10706 (make_pass_convert_to_eh_region_ranges): ...new function.
10707 (pass_shorten_branches): Replace declaration with that of...
10708 (make_pass_shorten_branches): ...new function.
10709 (pass_set_nothrow_function_flags): Replace declaration with that of...
10710 (make_pass_set_nothrow_function_flags): ...new function.
10711 (pass_dwarf2_frame): Replace declaration with that of...
10712 (make_pass_dwarf2_frame): ...new function.
10713 (pass_final): Replace declaration with that of...
10714 (make_pass_final): ...new function.
10715 (pass_rtl_seqabstr): Replace declaration with that of...
10716 (make_pass_rtl_seqabstr): ...new function.
10717 (pass_release_ssa_names): Replace declaration with that of...
10718 (make_pass_release_ssa_names): ...new function.
10719 (pass_early_inline): Replace declaration with that of...
10720 (make_pass_early_inline): ...new function.
10721 (pass_inline_parameters): Replace declaration with that of...
10722 (make_pass_inline_parameters): ...new function.
10723 (pass_update_address_taken): Replace declaration with that of...
10724 (make_pass_update_address_taken): ...new function.
10725 (pass_convert_switch): Replace declaration with that of...
10726 (make_pass_convert_switch): ...new function.
10727 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
10728 to a subclass of simple_ipa_opt_pass along with...
10729 (pass_data_ipa_tree_profile): ...new pass_data instance and...
10730 (make_pass_ipa_tree_profile): ...new function.
10731 * tree-sra.c (pass_sra_early): Convert from a global struct to a
10732 subclass of gimple_opt_pass along with...
10733 (pass_data_sra_early): ...new pass_data instance and...
10734 (make_pass_sra_early): ...new function.
10735 (pass_sra): Convert from a global struct to a subclass of
10736 gimple_opt_pass along with...
10737 (pass_data_sra): ...new pass_data instance and...
10738 (make_pass_sra): ...new function.
10739 (pass_early_ipa_sra): Convert from a global struct to a subclass of
10740 gimple_opt_pass along with...
10741 (pass_data_early_ipa_sra): ...new pass_data instance and...
10742 (make_pass_early_ipa_sra): ...new function.
10743 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
10744 subclass of gimple_opt_pass along with...
10745 (pass_data_ccp): ...new pass_data instance and...
10746 (make_pass_ccp): ...new function.
10747 (pass_fold_builtins): Convert from a global struct to a subclass of
10748 gimple_opt_pass along with...
10749 (pass_data_fold_builtins): ...new pass_data instance and...
10750 (make_pass_fold_builtins): ...new function.
10751 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
10752 subclass of gimple_opt_pass along with...
10753 (pass_data_copy_prop): ...new pass_data instance and...
10754 (make_pass_copy_prop): ...new function.
10755 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
10756 global struct to a subclass of gimple_opt_pass along with...
10757 (pass_data_rename_ssa_copies): ...new pass_data instance and...
10758 (make_pass_rename_ssa_copies): ...new function.
10759 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
10760 subclass of gimple_opt_pass along with...
10761 (pass_data_dce): ...new pass_data instance and...
10762 (make_pass_dce): ...new function.
10763 (pass_dce_loop): Convert from a global struct to a subclass of
10764 gimple_opt_pass along with...
10765 (pass_data_dce_loop): ...new pass_data instance and...
10766 (make_pass_dce_loop): ...new function.
10767 (pass_cd_dce): Convert from a global struct to a subclass of
10768 gimple_opt_pass along with...
10769 (pass_data_cd_dce): ...new pass_data instance and...
10770 (make_pass_cd_dce): ...new function.
10771 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
10772 subclass of gimple_opt_pass along with...
10773 (pass_data_dominator): ...new pass_data instance and...
10774 (make_pass_dominator): ...new function.
10775 (pass_phi_only_cprop): Convert from a global struct to a subclass of
10776 gimple_opt_pass along with...
10777 (pass_data_phi_only_cprop): ...new pass_data instance and...
10778 (make_pass_phi_only_cprop): ...new function.
10779 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
10780 subclass of gimple_opt_pass along with...
10781 (pass_data_dse): ...new pass_data instance and...
10782 (make_pass_dse): ...new function.
10783 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
10784 a subclass of gimple_opt_pass along with...
10785 (pass_data_forwprop): ...new pass_data instance and...
10786 (make_pass_forwprop): ...new function.
10787 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
10788 struct to a subclass of gimple_opt_pass along with...
10789 (pass_data_tree_ifcombine): ...new pass_data instance and...
10790 (make_pass_tree_ifcombine): ...new function.
10791 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
10792 subclass of gimple_opt_pass along with...
10793 (pass_data_ch): ...new pass_data instance and...
10794 (make_pass_ch): ...new function.
10795 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
10796 subclass of gimple_opt_pass along with...
10797 (pass_data_tree_loop): ...new pass_data instance and...
10798 (make_pass_tree_loop): ...new function.
10799 (pass_tree_loop_init): Convert from a global struct to a subclass of
10800 gimple_opt_pass along with...
10801 (pass_data_tree_loop_init): ...new pass_data instance and...
10802 (make_pass_tree_loop_init): ...new function.
10803 (pass_lim): Convert from a global struct to a subclass of
10804 gimple_opt_pass along with...
10805 (pass_data_lim): ...new pass_data instance and...
10806 (make_pass_lim): ...new function.
10807 (pass_tree_unswitch): Convert from a global struct to a subclass of
10808 gimple_opt_pass along with...
10809 (pass_data_tree_unswitch): ...new pass_data instance and...
10810 (make_pass_tree_unswitch): ...new function.
10811 (pass_predcom): Convert from a global struct to a subclass of
10812 gimple_opt_pass along with...
10813 (pass_data_predcom): ...new pass_data instance and...
10814 (make_pass_predcom): ...new function.
10815 (pass_vectorize): Convert from a global struct to a subclass of
10816 gimple_opt_pass along with...
10817 (pass_data_vectorize): ...new pass_data instance and...
10818 (make_pass_vectorize): ...new function.
10819 (pass_graphite): Convert from a global struct to a subclass of
10820 gimple_opt_pass along with...
10821 (pass_data_graphite): ...new pass_data instance and...
10822 (make_pass_graphite): ...new function.
10823 (pass_graphite_transforms): Convert from a global struct to a subclass
10824 of gimple_opt_pass along with...
10825 (pass_data_graphite_transforms): ...new pass_data instance and...
10826 (make_pass_graphite_transforms): ...new function.
10827 (pass_check_data_deps): Convert from a global struct to a subclass of
10828 gimple_opt_pass along with...
10829 (pass_data_check_data_deps): ...new pass_data instance and...
10830 (make_pass_check_data_deps): ...new function.
10831 (pass_iv_canon): Convert from a global struct to a subclass of
10832 gimple_opt_pass along with...
10833 (pass_data_iv_canon): ...new pass_data instance and...
10834 (make_pass_iv_canon): ...new function.
10835 (pass_scev_cprop): Convert from a global struct to a subclass of
10836 gimple_opt_pass along with...
10837 (pass_data_scev_cprop): ...new pass_data instance and...
10838 (make_pass_scev_cprop): ...new function.
10839 (pass_record_bounds): Convert from a global struct to a subclass of
10840 gimple_opt_pass along with...
10841 (pass_data_record_bounds): ...new pass_data instance and...
10842 (make_pass_record_bounds): ...new function.
10843 (pass_complete_unroll): Convert from a global struct to a subclass of
10844 gimple_opt_pass along with...
10845 (pass_data_complete_unroll): ...new pass_data instance and...
10846 (make_pass_complete_unroll): ...new function.
10847 (pass_complete_unrolli): Convert from a global struct to a subclass of
10848 gimple_opt_pass along with...
10849 (pass_data_complete_unrolli): ...new pass_data instance and...
10850 (make_pass_complete_unrolli): ...new function.
10851 (pass_parallelize_loops): Convert from a global struct to a subclass
10852 of gimple_opt_pass along with...
10853 (pass_data_parallelize_loops): ...new pass_data instance and...
10854 (make_pass_parallelize_loops): ...new function.
10855 (pass_loop_prefetch): Convert from a global struct to a subclass of
10856 gimple_opt_pass along with...
10857 (pass_data_loop_prefetch): ...new pass_data instance and...
10858 (make_pass_loop_prefetch): ...new function.
10859 (pass_iv_optimize): Convert from a global struct to a subclass of
10860 gimple_opt_pass along with...
10861 (pass_data_iv_optimize): ...new pass_data instance and...
10862 (make_pass_iv_optimize): ...new function.
10863 (pass_tree_loop_done): Convert from a global struct to a subclass of
10864 gimple_opt_pass along with...
10865 (pass_data_tree_loop_done): ...new pass_data instance and...
10866 (make_pass_tree_loop_done): ...new function.
10867 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
10868 struct to a subclass of gimple_opt_pass along with...
10869 (pass_data_cse_reciprocals): ...new pass_data instance and...
10870 (make_pass_cse_reciprocals): ...new function.
10871 (pass_cse_sincos): Convert from a global struct to a subclass of
10872 gimple_opt_pass along with...
10873 (pass_data_cse_sincos): ...new pass_data instance and...
10874 (make_pass_cse_sincos): ...new function.
10875 (pass_optimize_bswap): Convert from a global struct to a subclass of
10876 gimple_opt_pass along with...
10877 (pass_data_optimize_bswap): ...new pass_data instance and...
10878 (make_pass_optimize_bswap): ...new function.
10879 (pass_optimize_widening_mul): Convert from a global struct to a
10880 subclass of gimple_opt_pass along with...
10881 (pass_data_optimize_widening_mul): ...new pass_data instance and...
10882 (make_pass_optimize_widening_mul): ...new function.
10883 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
10884 subclass of gimple_opt_pass along with...
10885 (pass_data_phiopt): ...new pass_data instance and...
10886 (make_pass_phiopt): ...new function.
10887 (pass_cselim): Convert from a global struct to a subclass of
10888 gimple_opt_pass along with...
10889 (pass_data_cselim): ...new pass_data instance and...
10890 (make_pass_cselim): ...new function.
10891 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
10892 subclass of gimple_opt_pass along with...
10893 (pass_data_phiprop): ...new pass_data instance and...
10894 (make_pass_phiprop): ...new function.
10895 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
10896 subclass of gimple_opt_pass along with...
10897 (pass_data_pre): ...new pass_data instance and...
10898 (make_pass_pre): ...new function.
10899 (pass_fre): Convert from a global struct to a subclass of
10900 gimple_opt_pass along with...
10901 (pass_data_fre): ...new pass_data instance and...
10902 (make_pass_fre): ...new function.
10903 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
10904 subclass of gimple_opt_pass along with...
10905 (pass_data_reassoc): ...new pass_data instance and...
10906 (make_pass_reassoc): ...new function.
10907 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
10908 subclass of gimple_opt_pass along with...
10909 (pass_data_sink_code): ...new pass_data instance and...
10910 (make_pass_sink_code): ...new function.
10911 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
10912 subclass of gimple_opt_pass along with...
10913 (pass_data_strlen): ...new pass_data instance and...
10914 (make_pass_strlen): ...new function.
10915 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
10916 struct to a subclass of gimple_opt_pass along with...
10917 (pass_data_build_alias): ...new pass_data instance and...
10918 (make_pass_build_alias): ...new function.
10919 (pass_build_ealias): Convert from a global struct to a subclass of
10920 gimple_opt_pass along with...
10921 (pass_data_build_ealias): ...new pass_data instance and...
10922 (make_pass_build_ealias): ...new function.
10923 (pass_ipa_pta): Convert from a global struct to a subclass of
10924 simple_ipa_opt_pass along with...
10925 (pass_data_ipa_pta): ...new pass_data instance and...
10926 (make_pass_ipa_pta): ...new function.
10927 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
10928 subclass of gimple_opt_pass along with...
10929 (pass_data_uncprop): ...new pass_data instance and...
10930 (make_pass_uncprop): ...new function.
10931 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
10932 global struct to a subclass of gimple_opt_pass along with...
10933 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
10934 (make_pass_late_warn_uninitialized): ...new function.
10935 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
10936 to a subclass of gimple_opt_pass along with...
10937 (pass_data_init_datastructures): ...new pass_data instance and...
10938 (make_pass_init_datastructures): ...new function.
10939 (pass_early_warn_uninitialized): Convert from a global struct to a
10940 subclass of gimple_opt_pass along with...
10941 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
10942 (make_pass_early_warn_uninitialized): ...new function.
10943 (pass_update_address_taken): Convert from a global struct to a
10944 subclass of gimple_opt_pass along with...
10945 (pass_data_update_address_taken): ...new pass_data instance and...
10946 (make_pass_update_address_taken): ...new function.
10947 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
10948 struct to a subclass of gimple_opt_pass along with...
10949 (pass_data_release_ssa_names): ...new pass_data instance and...
10950 (make_pass_release_ssa_names): ...new function.
10951 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
10952 subclass of gimple_opt_pass along with...
10953 (pass_data_stdarg): ...new pass_data instance and...
10954 (make_pass_stdarg): ...new function.
10955 * tree-switch-conversion.c (pass_convert_switch): Convert from a
10956 global struct to a subclass of gimple_opt_pass along with...
10957 (pass_data_convert_switch): ...new pass_data instance and...
10958 (make_pass_convert_switch): ...new function.
10959 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
10960 to a subclass of gimple_opt_pass along with...
10961 (pass_data_tail_recursion): ...new pass_data instance and...
10962 (make_pass_tail_recursion): ...new function.
10963 (pass_tail_calls): Convert from a global struct to a subclass of
10964 gimple_opt_pass along with...
10965 (pass_data_tail_calls): ...new pass_data instance and...
10966 (make_pass_tail_calls): ...new function.
10967 * tree-vect-generic.c (pass_lower_vector): Convert from a global
10968 struct to a subclass of gimple_opt_pass along with...
10969 (pass_data_lower_vector): ...new pass_data instance and...
10970 (make_pass_lower_vector): ...new function.
10971 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
10972 gimple_opt_pass along with...
10973 (pass_data_lower_vector_ssa): ...new pass_data instance and...
10974 (make_pass_lower_vector_ssa): ...new function.
10975 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
10976 to a subclass of gimple_opt_pass along with...
10977 (pass_data_slp_vectorize): ...new pass_data instance and...
10978 (make_pass_slp_vectorize): ...new function.
10979 (pass_ipa_increase_alignment): Convert from a global struct to a
10980 subclass of simple_ipa_opt_pass along with...
10981 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
10982 (make_pass_ipa_increase_alignment): ...new function.
10983 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
10984 gimple_opt_pass along with...
10985 (pass_data_vrp): ...new pass_data instance and...
10986 (make_pass_vrp): ...new function.
10987 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
10988 subclass of simple_ipa_opt_pass along with...
10989 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
10990 (make_pass_ipa_free_lang_data): ...new function.
10991 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
10992 gimple_opt_pass along with...
10993 (pass_data_tsan): ...new pass_data instance and...
10994 (make_pass_tsan): ...new function.
10995 (pass_tsan_O0): Convert from a global struct to a subclass of
10996 gimple_opt_pass along with...
10997 (pass_data_tsan_O0): ...new pass_data instance and...
10998 (make_pass_tsan_O0): ...new function.
10999 * var-tracking.c (pass_variable_tracking): Convert from a global
11000 struct to a subclass of rtl_opt_pass along with...
11001 (pass_data_variable_tracking): ...new pass_data instance and...
11002 (make_pass_variable_tracking): ...new function.
11003 * web.c (pass_web): Convert from a global struct to a subclass of
11004 rtl_opt_pass along with...
11005 (pass_data_web): ...new pass_data instance and...
11006 (make_pass_web): ...new function.
11007 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
11008 declaration with that of...
11009 (make_pass_mode_switch_use): ...new function.
11010 (pass_resolve_sw_modes): Replace declaration with that of...
11011 (make_pass_resolve_sw_modes): ...new function.
11012 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
11013 from a global struct to a subclass of rtl_opt_pass along with...
11014 (pass_data_mode_switch_use): ...new pass_data instance and...
11015 (make_pass_mode_switch_use): ...new function.
11016 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
11017 from a global struct to a subclass of rtl_opt_pass along with...
11018 (pass_data_resolve_sw_modes): ...new pass_data instance and...
11019 (make_pass_resolve_sw_modes): ...new function.
11020 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
11021 struct to a subclass of rtl_opt_pass along with...
11022 (pass_data_insert_vzeroupper): ...new pass_data instance and...
11023 (make_pass_insert_vzeroupper): ...new function.
11024 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
11025 global struct to a subclass of rtl_opt_pass along with...
11026 (pass_data_work_around_errata): ...new pass_data instance and...
11027 (make_pass_work_around_errata): ...new function.
11028 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
11029 struct to a subclass of rtl_opt_pass along with...
11030 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
11031 (make_pass_mips_machine_reorg2): ...new function.
11032
6a389ed5
DM
110332013-08-05 David Malcolm <dmalcolm@redhat.com>
11034
11035 * passes.c (pass_manager::operator new): New.
11036
f7695dbf
DM
110372013-08-05 David Malcolm <dmalcolm@redhat.com>
11038
11039 Handwritten part of conversion of passes to C++ classes.
11040
11041 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
11042 (toplev.o): Add dep on PASS_MANAGER_H.
11043 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
11044 of early local pases to reflect this moving from a global to a
11045 member of gcc::pass_manager.
11046 (cgraph_add_new_function): Likewise.
11047 * lto-cgraph.c (lto_output_node): Update for conversion of
11048 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
11049 * passes.c (opt_pass::clone): New.
11050 (opt_pass::gate): New.
11051 (opt_pass::execute): New.
11052 (opt_pass::opt_pass): New.
11053 (pass_manager::execute_early_local_passes): New.
11054 (pass_manager::execute_pass_mode_switching): new.
11055 (finish_optimization_passes): Convert to...
11056 (pass_manager::finish_optimization_passes): ...this.
11057 (finish_optimization_passes): Update for conversion of passes to
11058 C++ classes.
11059 (register_dump_files_1): Use has_gate since we cannot portably
11060 check a vtable entry against NULL.
11061 (dump_one_pass): Likewise.
11062 (ipa_write_summaries_2): Likewise.
11063 (ipa_write_optimization_summaries_1): Likewise.
11064 (ipa_read_summaries_1): Likewise.
11065 (ipa_read_optimization_summaries_1): Likewise.
11066 (execute_ipa_stmt_fixups): Likewise.
11067 (pass_manager::pass_manager): Rewrite pass-creation, invoking
11068 pass-creation functions rather than wiring up globals, and
11069 storing the results in fields of pass_manager generated using
11070 pass-instances.def.
11071 (pass_manager::dump_profile_report): Update for conversion of
11072 passes to C++ classes.
11073 (pass_manager::execute_ipa_summary_passes): Likewise.
11074 (execute_one_ipa_transform_pass): Likewise.
11075 (execute_one_pass): Use has_gate and has_execute since we cannot
11076 portably check a vtable entry against NULL.
11077 * pass_manager.h (pass_manager::finish_optimization_passes): New.
11078 (pass_manager): Use pass-instances.def to add fields for the
11079 various pass instances.
11080 * toplev.c (finalize): Update for move of
11081 finish_optimization_passes to a method of gcc::pass_manager.
11082 * toplev.h (finish_optimization_passes): Move to method of class
11083 pass_manager.
11084 * tree-pass.h (struct pass_data): New.
03b0ee0a 11085 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
11086 (opt_pass::gate): Convert to virtual function.
11087 (opt_pass::~opt_pass): New.
11088 (opt_pass::clone): New.
11089 (opt_pass::execute): Convert to virtual function.
11090 (opt_pass::opt_pass): New.
11091 (opt_pass::ctxt_): new.
11092 (gimple_opt_pass): Convert to subclass of opt_pass.
11093 (gimple_opt_pass::gimple_opt_pass): New.
11094 (rtl_opt_pass): Convert to subclass of opt_pass.
11095 (rtl_opt_pass::rtl_opt_pass): New.
11096 (ipa_opt_pass_d): Convert to subclass of opt_pass.
11097 (ipa_opt_pass_d::ipa_opt_pass_d): New.
11098 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
11099 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
11100 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
11101 invocation of pass_mode_switching to reflect this moving from a
11102 global to a member of gcc::pass_manager.
11103 (ix86_option_override): Rework how pass_insert_vzeroupper is
11104 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 11105 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 11106
d0b2f831
RE
111072013-08-05 Richard Earnshaw <rearnsha@arm.com>
11108
11109 PR rtl-optimization/57708
11110 * recog.c (peep2_find_free_register): Validate all regs in a
11111 multi-reg mode.
11112
51a5c0c2
JH
111132013-08-05 Jan Hubicka <jh@suse.cz>
11114
11115 PR lto/57602
03b0ee0a
UB
11116 * cgraph.c (verify_cgraph_node): Accept local flags from other
11117 partitions.
51a5c0c2
JH
11118 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
11119 (function_and_variable_visibility): Likewise.
11120 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
11121
65f0a120
GDR
111222013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11123
11124 * graph.c (init_graph_slim_pretty_print): Remove.
11125 (print_graph_cfg): Do not call it. Use local pretty printer.
11126 (start_graph_dump): Likewise.
11127
b3f80694
GDR
111282013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11129
11130 * gimple-pretty-print.c (buffer): Remove.
11131 (initialized): Likewise.
11132 (maybe_init_pretty_print): Likewise.
11133 (print_gimple_stmt): Do not call it. Use non-static local
11134 pretty_printer variable.
11135 (print_gimple_expr): Likewise.
11136 (print_gimple_seq): Likewise.
11137 (gimple_dump_bb): Likewise.
11138
11a877b3
GDR
111392013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
11140
11141 * asan.c (asan_pp): Remove.
11142 (asan_pp_initialized): Likewise.
11143 (asan_pp_initialize): Likewise.
11144 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
11145 (asan_emit_stack_protection): Tidy. Use local pretty printer.
11146 (asan_add_global): Likewise.
11147
b066401f
GDR
111482013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
11149
11150 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
11151 * diagnostic.h (diagnostic_flush_buffer): Adjust.
11152 * pretty-print.c (pp_formatted_text_data): Likewise.
11153 (pp_indent): Rename from pp_base_indent.
11154 (pp_format): Rename from pp_base_format.
11155 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
11156 (pp_format_verbatim): Rename from pp_base_format_verbatim.
11157 (pp_flush): Rename from pp_base_flush.
11158 (pp_set_line_maximum_length): Rename from
11159 pp_base_set_line_maximum_length.
11160 (pp_clear_output_area): Rename from pp_base_clear_output_area.
11161 (pp_set_prefix): Rename from pp_base_set_prefix.
11162 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
11163 (pp_emit_prefix): Rename from pp_base_emit_prefix.
11164 (pp_append_text): Rename from pp_base_append_text.
11165 (pp_formatted_text): Rename from pp_base_formatted_text.
11166 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
11167 (pp_remaining_character_count_for_line): Rename from
11168 pp_base_remaining_character_count_for_line.
11169 (pp_newline): Rename from pp_base_newline.
11170 (pp_character): Rename from pp_base_character.
11171 (pp_string): Rename from pp_base_string.
11172 (pp_maybe_space): Rename from pp_base_maybe_space.
11173 * asan.c (asan_pp_string): Adjust.
11174 (asan_emit_stack_protection): Likewise.
11175 (asan_add_global): Likewise.
11176 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
11177 * tree-mudflap.c (mf_varname_tree): Likewise.
11178 * tree-pretty-print.c (pp_tree_identifier): Rename from
11179 pp_base_tree_identifier.
11180 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
11181 Declare as function.
11182
137a1a27
GDR
111832013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11184
11185 * pretty-print.h (pp_bar_bar): New.
11186 (pp_ampersand_ampersand): Likewise.
11187 (pp_less_equal): Likewise.
11188 (pp_greater_equal): Likewise.
11189 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
11190 printer functions instead of pp_string or operators and punctuators.
11191 (dump_gimple_call): Likewise.
11192 (dump_gimple_omp_for): Likewise.
11193 (dump_gimple_transaction): Likewise.
11194 (dump_gimple_phi): Likewise.
11195 (pp_gimple_stmt_1): Likewise.
11196 * sched-vis.c (print_insn): Likewise.
11197 * tree-mudflap.c (mf_varname_tree): Likewise.
11198 * tree-pretty-print.c (dump_block_node): Likewise.
11199 (dump_generic_node): Likewise.
11200
815effe1
JH
112012013-08-02 Jan Hubicka <jh@suse.cz>
11202
11203 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
11204 boundaries.
11205 * lto-streamer-out.c (tree_is_indexable): Results decls and
11206 parm decls are not indexable.
11207 (DFS_write_tree_body): Do not follow args and results.
11208 (hash_tree): Likewise.
11209 (output_functions): Rearrange so struct function is needed
11210 only when real body is output; be able to also ouptut abstract
11211 functions; output DECL_ARGUMENTS and DECL_RESULT.
11212 (lto_output): When not in WPA, ale store abstract functions.
11213 (write_symbol): Do not care about RESULT_DECL.
11214 (output_symbol_p): Handle correctly sbtract decls.
11215 * lto-streamer-in.c (input_function): Rearrange so struct
11216 function can be NULL at entry; allow streaming of
11217 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
11218 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
11219 sanity check during LTO.
11220 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
11221 RESULT_DECl and DECL_ARGUMENTS.
11222 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11223 Likewise.
11224
07838b13
GDR
112252013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11226
11227 * pretty-print.h (pp_underscore): New.
11228 (pp_comma): Tidy.
11229 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
11230 printer functions instead of pp_character.
11231 (dump_binary_rhs): Likewise.
11232 (dump_ternary_rhs): Likewise.
11233 (dump_gimple_call_args): Likewise.
11234 (pp_points_to_solution): Likewise.
11235 (dump_gimple_call): Likewise.
11236 (dump_gimple_switch): Likewise.
11237 (dump_gimple_cond): Likewise.
11238 (dump_gimple_bind): Likewise.
11239 (dump_gimple_try): Likewise.
11240 (dump_gimple_omp_for): Likewise.
11241 (dump_gimple_omp_continue): Likewise.
11242 (dump_gimple_omp_single): Likewise.
11243 (dump_gimple_omp_sections): Likewise.
11244 (dump_gimple_omp_block): Likewise.
11245 (dump_gimple_omp_critical): Likewise.
11246 (dump_gimple_transaction): Likewise.
11247 (dump_gimple_asm): Likewise.
11248 (dump_gimple_phi): Likewise.
11249 (dump_gimple_omp_parallel): Likewise.
11250 (dump_gimple_omp_task): Likewise.
11251 (dump_gimple_omp_atomic_load): Likewise.
11252 (dump_gimple_omp_atomic_store): Likewise.
11253 (dump_gimple_mem_ops): Likewise.
11254 (pp_gimple_stmt_1): Likewise.
11255 (pp_cfg_jump): Likewise.
11256 (dump_implicit_edges): Likewise.
11257 (gimple_dump_bb_for_graph): Likewise.
11258 * graph.c (draw_cfg_node): Likewise.
11259 * langhooks.c (lhd_print_error_function): Likewise.
11260 * sched-vis.c (print_exp): Likewise.
11261 (print_value): Likewise.
11262 (print_pattern): Likewise.
11263 (print_insn): Likewise.
11264 (rtl_dump_bb_for_graph): Likewise.
11265 * tree-pretty-print.c (dump_function_declaration): Likewise.
11266 (dump_array_domain): Likewise.
11267 (dump_omp_clause): Likewise.
11268 (dump_location): Likewise.
11269 (dump_generic_node): Likewise.
11270 (print_struct_decl): Likewise.
11271 * diagnostic.c (diagnostic_show_locus): Use pp_space.
11272
bb0d2039
BS
112732013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11274
11275 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
11276 candidate table when replacing a candidate statement.
11277 (replace_rhs_if_not_dup): Likewise.
11278 (replace_one_candidate): Likewise.
11279
bc0ec027 112802013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 11281 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
11282
11283 * cgraphunit.c (add_new_function): Fix logic when adding from
11284 late IPA pass.
11285 (assemble_thunk): Rename to ...
03b0ee0a
UB
11286 (expand_thunk); .. this one; export; get it working with
11287 general functions; make produced gimple valid.
bc0ec027
JH
11288 * cgraph.h (expand_thunk): Declare.
11289
0e8853ee
JH
112902013-08-02 Jan Hubicka <jh@suse.cz>
11291
03b0ee0a
UB
11292 * ipa-cp.c (gather_context_independent_values): Use
11293 ipa_get_param_move_cost.
11294 (get_replacement_map): Remove PARAM; move parameter folding
11295 into tree-inline.c
0e8853ee
JH
11296 (create_specialized_node): Update.
11297 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
11298 assert that we have gimple body; update move_cost.
11299 (count_formal_params): Assert that we have gimple body.
11300 (ipa_dump_param): New function.
11301 (ipa_alloc_node_params): Break out from ...
11302 (ipa_initialize_node_params): ... here.
11303 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
11304 (ipa_write_node_info): Stream move costs.
11305 (ipa_read_node_info): Read move costs.
11306 (ipa_update_after_lto_read): Do not recompute node params.
11307 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
11308 (ipa_get_param): Check we are not in WPA.
11309 (ipa_get_param_move_cost): New.
11310 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
11311 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
11312 parm numbers to be present.
11313
ecee672b
VM
113142013-08-02 Vladimir Makarov <vmakarov@redhat.com>
11315
11316 PR rtl-optimization/58048
11317 * lra-constraints.c (process_alt_operands): Don't check asm
11318 operand on register.
11319
13ec0527
EB
113202013-08-02 Eric Botcazou <ebotcazou@adacore.com>
11321
11322 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
11323 the implied StoreLoad barrier for atomic operations if before.
11324
af15184a
JH
113252013-08-02 Jan Hubicka <jh@suse.cz>
11326 Martin Liska <marxin.liska@gmail.com>
11327
03b0ee0a
UB
11328 * cgraph.c (cgraph_function_body_availability): Do not check
11329 cgraph flags.
af15184a
JH
11330 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
11331 symtab_node_availability): Declare.
11332 * ipa.c (can_replace_by_local_alias): New.
11333 (function_and_variable_visibility): Use it.
03b0ee0a
UB
11334 * symtab.c (symtab_for_node_and_aliases,
11335 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 11336
01e54ef8
VM
113372013-08-02 Vladimir Makarov <vmakarov@redhat.com>
11338
11339 PR rtl-optimization/57963
03b0ee0a 11340 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
11341 (lra_constraints): Use them.
11342
e2fd7ca7
SN
113432013-08-02 Sofiane Naci <sofiane.naci@arm.com>
11344
03b0ee0a
UB
11345 * config/arm/types.md (define_attr "type"): Add "load_acq"
11346 and "store_rel".
e2fd7ca7
SN
11347 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
11348 changes.
11349 (cortex_a53_store1): Likewise.
11350
0dcc26c3
JH
113512013-08-01 Jan Hubicka <jh@suse.cz>
11352
03b0ee0a
UB
11353 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
11354 partitions are not needed.
0dcc26c3 11355
0bd72901
UB
113562013-08-01 Uros Bizjak <ubizjak@gmail.com>
11357
11358 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
11359 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
11360 MAYBE_NON_Q_CLASS_P where appropriate.
11361
12123452
JH
113622013-08-01 Jan Hubicka <jh@suse.cz>
11363
11364 * cgraph.h (release_function_body): Declare.
11365 * tree.c (free_lang_data_in_decl): Free, parameters and return values
11366 of unused delcarations.
11367
ce852f9c
KT
113682013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11369
03b0ee0a
UB
11370 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
11371 RTL form when subtracting a constant.
ce852f9c 11372
c743b246
KT
113732013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11374
11375 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
11376 Generate canonical plus rtx with negated immediate instead of minus
11377 where appropriate.
11378 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
11379
c0c123ef
JH
113802013-08-01 Jan Hubicka <jh@suse.cz>
11381
11382 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
11383 (cgraph_release_function_body): Likewise.
11384 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
11385 * cgraph.h (cgrpah_node): Rename abstract_and_needed
11386 to used_as_abstract_origin.
11387 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
11388 symbols used as abstract origins.
11389 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
11390 * ipa.c (symtab_remove_unreachable_nodes): Recompute
11391 used_as_abstract_origin.
c0c123ef 11392 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
11393 used_as_abstract_origin; be ready for DECL_RESULT and
11394 DECL_ARGUMENTS to be NULL.
c0c123ef 11395
0bd72901
UB
11396 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
11397 for abstract functions.
11398 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
11399 real symbols.
c0c123ef 11400
1f029433
JH
114012013-08-01 Jan Hubicka <jh@suse.cz>
11402
11403 * profile.c (compute_value_histograms): Fix thinko.
11404
c451f4d6
SN
114052013-08-01 Sofiane Naci <sofiane.naci@arm.com>
11406
11407 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
11408 aarch-common-protos.h to extra_headers.
11409 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
11410 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
11411 * config/aarch64/t-aarch64 (aarch-common.o): Define.
11412
34b512f5
SN
114132013-08-01 Sofiane Naci <sofiane.naci@arm.com>
11414
11415 * config/aarch64/aarch64.md (define_attr "type"): Delete.
11416 Include "../arm/types.md". Define "type" attribute for all patterns.
11417 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
11418 attribute changes.
11419
d86e633a
MM
114202013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
11421
11422 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
11423 to support power8 load fusion.
11424 (fusion_gpr_mem_load): Likewise.
11425
11426 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
11427
11428 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
11429 declarations for power8 load fusion.
11430 (emit_fusion_gpr_load): Likewise.
11431
11432 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
11433 tuning for power8, turn on fusion mode by default. Turn on sign
11434 extending fusion mode if normal fusion mode is on, and we are at
11435 -O2 or -O3.
11436 (fusion_gpr_load_p): New function, return true if we can fuse an
11437 addis instruction with a dependent load to a GPR.
11438 (emit_fusion_gpr_load): Emit the instructions for power8 load
11439 fusion to GPRs.
11440
0bd72901 11441 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
11442 (VSX load fusion peepholes): New peepholes to fuse together an
11443 addi instruction with a VSX load instruction.
11444
11445 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
11446 peepholes to fuse an addis instruction with a load to a GPR base
11447 register. If we are supporting sign extending fusions, convert
11448 sign extending loads to zero extending loads and add an explicit
11449 sign extension.
11450
c3f35647
SN
114512013-07-31 Sofiane Naci <sofiane.naci@arm.com>
11452
11453 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
11454 aarch-common-protos.h to extra_headers.
11455 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
11456 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
11457 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
11458 (arm_no_early_alu_shift_dep): Likewise.
11459 (arm_no_early_alu_shift_value_dep): Likewise.
11460 (arm_no_early_mul_dep): Likewise.
11461 (arm_no_early_store_addr_dep): Likewise.
11462 (arm_mac_accumulator_is_mul_result): Likewise.
11463 (arm_mac_accumulator_is_result): Likewise.
c3f35647 11464 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
11465 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
11466 here to ...
c3f35647 11467 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
11468 (arm_no_early_alu_shift_dep): Likewise.
11469 (arm_no_early_alu_shift_value_dep): Likewise.
11470 (arm_no_early_mul_dep): Likewise.
11471 (arm_no_early_store_addr_dep): Likewise.
11472 (arm_mac_accumulator_is_mul_result): Likewise.
11473 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
11474 * config/arm/aarch-common-protos.h: ... here. New file.
11475 * config/arm/t-arm (aarch-common.o): Define.
11476
114772013-07-31 Sofiane Naci <sofiane.naci@arm.com>
11478
11479 * config/arm/arm.md: Include new file "types.md".
11480 (define_attr "type"): Move from here to ...
11481 (define_attr "mul32"): Likewise.
11482 (define_attr "mul64"): Likewise.
11483 * config/arm/types.md: ... here. New file.
11484
228c1313
SH
114852013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
11486
11487 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
11488 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
11489
d6e9046d 114902013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
11491
11492 * gen-pass-instances.awk: Fix offset of substr().
11493
a167b052
DM
114942013-07-31 David Malcolm <dmalcolm@redhat.com>
11495
11496 * Makefile.in (pass-instances.def): New.
11497 (passes.o): Replace dependency on passes.def with one on
11498 pass-instances.def
11499
11500 * gen-pass-instances.awk: New.
11501
11502 * passes.c (pass_manager::pass_manager): Use pass-instances.def
11503 rather than passes.def, updating local definition of NEXT_PASS
11504 macro to add an extra NUM parameter (currently unused).
11505
315f8c0e
DM
115062013-07-30 David Malcolm <dmalcolm@redhat.com>
11507
11508 * Makefile.in (PASS_MANAGER_H): New.
11509 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
11510 (passes.o): Likewise.
11511 (statistics.o): Likewise.
11512 (cgraphunit.o): Likewise.
11513 (context.o): Depend on PASS_MANAGER_H.
11514
11515 * pass_manager.h: New.
11516
11517 * cgraphunit.c (cgraph_add_new_function): Update for moves
11518 of globals to fields of pass_manager.
11519 (analyze_function): Likewise.
11520 (expand_function): Likewise.
11521 (ipa_passes): Likewise.
11522 (compile): Likewise.
11523
11524 * context.c (context::context): New.
11525 * context.h (context::context): New.
11526 (context::get_passes): New.
11527 (context::passes_): New.
11528
11529 * lto-cgraph.c (input_node): Update for moves of globals to
11530 fields of pass_manager.
11531
11532 * passes.c (all_passes): Remove, in favor of a field of the
11533 same name within the new class pass_manager.
11534 (all_small_ipa_passes): Likewise.
11535 (all_lowering_passes): Likewise.
11536 (all_regular_ipa_passes): Likewise.
11537 (all_late_ipa_passes): Likewise.
11538 (all_lto_gen_passes): Likewise.
11539 (passes_by_id): Likewise.
11540 (passes_by_id_size): Likewise.
11541 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
11542 the new class pass_manager.
11543 (set_pass_for_id): Convert to...
11544 (pass_manager::set_pass_for_id): ...method.
11545 (get_pass_for_id): Convert to...
11546 (pass_manager::get_pass_for_id): ...method.
11547 (register_one_dump_file): Move body of implementation into...
11548 (pass_manager::register_one_dump_file): ...here.
11549 (register_dump_files_1): Convert to...
11550 (pass_manager::register_dump_files_1): ...method.
11551 (register_dump_files): Convert to...
11552 (pass_manager::register_dump_files): ...method.
11553 (create_pass_tab): Update for moves of globals to fields of
11554 pass_manager.
11555 (dump_passes): Move body of implementation into...
11556 (pass_manager::dump_passes): ...here.
11557 (register_pass): Move body of implementation into...
11558 (pass_manager::register_pass): ...here.
11559 (init_optimization_passes): Convert into...
11560 (pass_manager::pass_manager): ...constructor for new
11561 pass_manager class, and initialize the pass_lists array.
11562 (check_profile_consistency): Update for moves of globals to
11563 fields of pass_manager.
11564 (dump_profile_report): Move body of implementation into...
11565 (pass_manager::dump_profile_report): ...here.
11566 (ipa_write_summaries_1): Update for moves of pass lists from
11567 being globals to fields of pass_manager.
11568 (ipa_write_optimization_summaries): Likewise.
11569 (ipa_read_summaries): Likewise.
11570 (ipa_read_optimization_summaries): Likewise.
11571 (execute_all_ipa_stmt_fixups): Likewise.
11572
11573 * statistics.c (statistics_fini): Update for moves of globals to
11574 fields of pass_manager.
11575
11576 * toplev.c (general_init): Replace call to
11577 init_optimization_passes with construction of the pass_manager
11578 instance.
11579
11580 * tree-pass.h (all_passes): Remove, in favor of a field of the
11581 same name within the new class pass_manager.
11582 (all_small_ipa_passes): Likewise.
11583 (all_lowering_passes): Likewise.
11584 (all_regular_ipa_passes): Likewise.
11585 (all_lto_gen_passes): Likewise.
11586 (all_late_ipa_passes): Likewise.
11587 (passes_by_id): Likewise.
11588 (passes_by_id_size): Likewise.
11589 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
11590 the new class pass_manager.
11591 (get_pass_for_id): Remove.
11592
02cab1c1
RE
115932013-07-30 Richard Earnshaw <rearnsha@arm.com>
11594
11595 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
11596 configs.
11597
b2d3f886
RE
115982013-07-30 Richard Earnshaw <rearnsha@arm.com>
11599
11600 * arm.md (mulhi3): New expand pattern.
11601
605e86fa
JH
116022013-07-30 Jan Hubicka <jh@suse.cz>
11603 Martin Liska <marxin.liska@gmail.com>
11604
11605 * profile.c (compute_value_histograms): Do not ICE when
11606 there is mismatch only on some counters.
11607
14a87636
ZC
116082013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11609
11610 PR rtl-optimization/57637
11611 * function.c (move_insn_for_shrink_wrap): Also check the
11612 GEN set of the LIVE problem for the liveness analysis
11613 if it exists, otherwise give up.
11614
0100cd3f
BS
116152013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11616
11617 PR tree-optimization/57993
11618 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
11619 replaced statement in the candidate table.
11620 (phi_add_costs): Return infinite cost when the hidden basis does
11621 not dominate all phis on which the candidate is dependent.
11622 (replace_one_candidate): Record replaced statement in the
11623 candidate table.
11624
f0d811f7
JR
116252013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
11626
11627 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
11628 (ashlv2si3): New expander.
11629 (*ashlv2si3_i): New define_insn_and_split.
11630 * predicates.md (float_operation): Allow patterns with three
11631 basic sub-patterns.
11632
bba33211
JR
11633 PR rtl-optimization/58021
11634 * mode-switching.c (create_pre_exit): Always split off preceding
11635 insns if we are not at the basic block head.
11636
ff3f3951
MR
116372013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
11638
11639 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
11640 (UCLIBC_DYNAMIC_LINKER): New macro.
11641 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
11642 `-mnan=2008'.
11643 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
11644 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
11645 `-mnan=2008'.
11646 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
11647 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
11648 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
11649 for SF and DF modes. Use ieee_quad_format for TF mode.
11650 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
11651 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
11652 (mips_option_override): Handle `-mnan=legacy'.
11653 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
11654 `-mabs=2008' and `-mnan=2008'.
11655 (OPTION_DEFAULT_SPECS): Add "nan" default.
11656 (ASM_SPEC): Handle `-mnan='.
11657 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
11658 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
11659 comment accordingly.
11660 (neg<mode>2): Likewise.
11661 * config/mips/mips.opt (mabs, mnan): New options.
11662 * doc/install.texi (Configuration): Document `--with-nan=' option.
11663 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
11664 `-mnan=' options.
11665 (MIPS Options): Document them.
11666 * config.gcc <mips*-*-*>: Handle `--with-nan='.
11667 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
11668 * configure: Regenerate.
11669 * config.in: Regenerate.
11670
576e2f37
UB
116712013-07-29 Uros Bizjak <ubizjak@gmail.com>
11672
11673 * config/i386/i386.md (float post-reload splitters): Do not check
11674 for subregs of SSE registers.
11675
116762013-07-29 Uros Bizjak <ubizjak@gmail.com>
11677 H.J. Lu <hongjiu.lu@intel.com>
11678
11679 PR target/57954
11680 PR target/57988
11681 * config/i386/i386.md (post-reload splitter
11682 to avoid partial SSE reg dependency stalls): New pattern.
11683
a71f0749
DV
116842013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11685
11686 * config/s390/s390.md ("movcc"): Swap load and store instructions.
11687
4c97f1cc
JR
116882013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
11689
11690 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
11691 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
11692
b0c733d8
CC
116932013-07-26 Cary Coutant <ccoutant@google.com>
11694
11695 * dwarf2out.c (die_checksum_ordered): Don't include template
11696 instantiations in signature.
11697 (is_template_parameter): New function.
11698 (is_template_instantiation): New function.
11699 (generate_skeleton_bottom_up): Don't include template instantiations
11700 in type unit DIE.
11701 (generate_skeleton): Likewise.
11702 (break_out_comdat_types): Move recursive call to break out nested
11703 types earlier.
11704 (prune_unused_types_mark_generic_parms_dies): Call
11705 is_template_parameter.
11706
040d8a1c
IB
117072013-07-26 Ian Bolton <ian.bolton@arm.com>
11708
11709 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
11710 uses vector registers.
89fdc743 11711 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 11712
85bd4ac6 117132013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 11714 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
11715
11716 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 11717 where appropriate.
85bd4ac6
KT
11718 * config/arm/arm.md (movcond_addsi): New splitter.
11719
b6051207
SA
117202013-07-25 Sterling Augustine <saugustine@google.com>
11721
11722 * dwarf2out.c (size_of_pubnames): Move code to...
11723 (include_pubname_in_output): ...here. New.
11724 (want_pubnames): Rearrange.
11725 (output_pubnames): Call include_pubname_in_output. Move assertion.
11726
41a7c215
CM
117272013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
11728
11729 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
11730
117312013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
11732
11733 PR target/38836
11734 * doc/extend.texi: Remove obsolete builtins. Fix
11735 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
11736
49bde175
JH
117372013-07-25 Jan Hubicka <jh@suse.cz>
11738
11739 * cgraph.c (release_function_body): Break out from ...
11740 (cgraph_release_function_body): ... this one; also release DECL_RESULT
11741 and DECL_ARGUMENTS.
11742 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
11743 old_tree in the map.
11744 (create_specialized_node): Update.
11745 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
11746 into index.
41a7c215
CM
11747 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
11748 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
11749 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
11750 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
11751 DECL_RESULT.
11752
4870352d
KT
117532013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11754
11755 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
11756 addsi3_carryin_alt2_<optab>): Correct output template.
11757
1d6aee1c
KT
117582013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11759
11760 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
11761 Adjust for arm_restrict_it.
11762 Remove trailing whitespace.
11763
c7cafd75
MK
117642013-07-25  Mark Kettenis  <kettenis@openbsd.org>
11765
017d38f5
MK
11766 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
11767 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
11768
c7cafd75
MK
11769 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
11770
00b7527b
VM
117712013-07-25 Vladimir Makarov <vmakarov@redhat.com>
11772
11773 PR rtl-optimization/57960
11774 * lra-constraints.c (process_alt_operands): Use the right mode
11775 when checking strict_low.
11776
4f63dfc6
JH
117772013-07-25 Jan Hubicka <jh@suse.cz>
11778
11779 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
11780 * cgraph.c (cgraph_remove_node): Do not release function body
11781 when in cgraph streaming.
11782 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
11783 in other partitions are not considered reachable; fix handling of
11784 clones.
4f63dfc6 11785
e6dcfa18
RR
117862013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11787
11788 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
11789
0b93d3b6
RR
117902013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11791
11792 PR target/19599
11793 PR target/57731
bb80c2eb 11794 PR target/57837
e6dcfa18 11795 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 11796 Ss with US. Adjust output for v5 and v4t.
41a7c215 11797 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 11798
0b93d3b6
RR
11799 * config/arm/constraints.md ("Ss"): Rename to US.
11800
690688b3
TG
118012013-07-25 Terry Guo <terry.guo@arm.com>
11802
11803 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
11804 shift_add/shift_sub0/shift_sub1 RTXs.
11805
a4ad093b 118062013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 11807 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
11808
11809 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
11810 (altivec_vpks<VI_char>ss): Likewise.
11811 (altivec_vpks<VI_char>us): Likewise.
11812 (altivec_vpku<VI_char>us): Likewise.
11813 (altivec_vpku<VI_char>um): Likewise.
11814
8c5005ce
DM
118152013-07-24 David Malcolm <dmalcolm@redhat.com>
11816
11817 Introduce context class.
11818
11819 * Makefile.in (CONTEXT_H): New.
11820 (OBJS): Add context.o.
11821 (toplev.o): Add CONTEXT_H to dependencies.
11822 (context.o): New.
11823
41a7c215 11824 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
11825
11826 * context.c: New.
11827
11828 * context.h: New.
11829
ce4a9422
JR
118302013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
11831
11832 PR rtl-optimization/57968
11833 * mode-switching.c (create_pre_exit): Allow instructions that
11834 don't set a return register to need a non-exit mode.
11835
493f4c9e 118362013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 11837 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 11838
b5860fd3
WS
11839 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
11840 operands to vperm for little endian.
11841 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
11842 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 11843
73792b92 118442013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 11845 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
11846
11847 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
11848 two operands for little-endian.
11849
14c21302
SE
118502013-07-23 Steve Ellcey <sellcey@mips.com>
11851
11852 * config/mips/mips.c (mips_case_values_threshold): New.
11853 (TARGET_CASE_VALUES_THRESHOLD): Define.
11854
a6056198 118552013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 11856 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
11857
11858 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
11859 selection of field for vector splat in little endian mode.
11860
dd7a40e1
MM
118612013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
11862
11863 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
11864 expanders to rs6000.md.
11865 (ior<mode>3): Likewise.
11866 (and<mode>3): Likewise.
11867 (one_cmpl<mode>2): Likewise.
11868 (nor<mode>3): Likewise.
11869 (andc<mode>3): Likewise.
11870 (eqv<mode>3): Likewise.
11871 (nand<mode>3): Likewise.
11872 (orc<mode>3): Likewise.
11873
11874 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
11875 declaration.
11876
11877 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
11878 to split multi-word logical operations.
11879 (rs6000_split_logical_di): Likewise.
11880 (rs6000_split_logical): Likewise.
11881
11882 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
11883 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
11884 and allow TImode operations in 32-bit.
11885 (vsx_and<mode>3_64bit): Likewise.
11886 (vsx_ior<mode>3_32bit): Likewise.
11887 (vsx_ior<mode>3_64bit): Likewise.
11888 (vsx_xor<mode>3_32bit): Likewise.
11889 (vsx_xor<mode>3_64bit): Likewise.
11890 (vsx_one_cmpl<mode>2_32bit): Likewise.
11891 (vsx_one_cmpl<mode>2_64bit): Likewise.
11892 (vsx_nor<mode>3_32bit): Likewise.
11893 (vsx_nor<mode>3_64bit): Likewise.
11894 (vsx_andc<mode>3_32bit): Likewise.
11895 (vsx_andc<mode>3_64bit): Likewise.
11896 (vsx_eqv<mode>3_32bit): Likewise.
11897 (vsx_eqv<mode>3_64bit): Likewise.
11898 (vsx_nand<mode>3_32bit): Likewise.
11899 (vsx_nand<mode>3_64bit): Likewise.
11900 (vsx_orc<mode>3_32bit): Likewise.
11901 (vsx_orc<mode>3_64bit): Likewise.
11902
11903 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
11904 logical types in GPRs.
11905
11906 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
11907 logical insns to rs6000.md, and allow TImode operations in
11908 32-bit.
11909 (altivec_ior<mode>3): Likewise.
11910 (altivec_xor<mode>3): Likewise.
11911 (altivec_one_cmpl<mode>2): Likewise.
11912 (altivec_nor<mode>3): Likewise.
11913 (altivec_andc<mode>3): Likewise.
11914
11915 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
11916 attributes for moving the 128-bit logical operations into
11917 rs6000.md.
11918 (BOOL_REGS_OUTPUT): Likewise.
11919 (BOOL_REGS_OP1): Likewise.
11920 (BOOL_REGS_OP2): Likewise.
11921 (BOOL_REGS_UNARY): Likewise.
11922 (BOOL_REGS_AND_CR0): Likewise.
11923 (one_cmpl<mode>2): Add support for DI logical operations on
11924 32-bit, splitting the operations to 32-bit.
11925 (anddi3): Likewise.
11926 (iordi3): Likewise.
11927 (xordi3): Likewise.
11928 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
11929 changes to combine the 32/64-bit code, allow logical operations on
11930 TI mode in 32-bit, and to use similar match_operator patterns like
11931 scalar mode uses. Combine the Altivec and VSX code for logical
11932 operations, and move it here.
11933 (ior<mode>3, 128-bit types): Likewise.
11934 (xor<mode>3, 128-bit types): Likewise.
11935 (one_cmpl<mode>3, 128-bit types): Likewise.
11936 (nor<mode>3, 128-bit types): Likewise.
11937 (andc<mode>3, 128-bit types): Likewise.
11938 (eqv<mode>3, 128-bit types): Likewise.
11939 (nand<mode>3, 128-bit types): Likewise.
11940 (orc<mode>3, 128-bit types): Likewise.
11941 (and<mode>3_internal): Likewise.
11942 (bool<mode>3_internal): Likewise.
11943 (boolc<mode>3_internal1): Likewise.
11944 (boolc<mode>3_internal2): Likewise.
11945 (boolcc<mode>3_internal1): Likewise.
11946 (boolcc<mode>3_internal2): Likewise.
11947 (eqv<mode>3_internal1): Likewise.
11948 (eqv<mode>3_internal2): Likewise.
11949 (one_cmpl1<mode>3_internal): Likewise.
11950
12211b99 119512013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
11952
11953 * config/microblaze/microblaze.c (microblaze_expand_prologue):
11954 Rename flag_stack_usage to flag_stack_usage_info.
11955
12211b99 119562013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 11957
a5f257fd
ME
11958 * config/microblaze/sync.md: New file.
11959 * config/microblaze/microblaze.md: Include sync.md
11960 * config/microblaze/microblaze.c: Add print_operand 'y'.
11961 * config/microblaze/constraints.md: Add memory_contraint
11962 'Q' which is a single register.
450b0ebb 11963
49fba14f
EB
119642013-07-23 Eric Botcazou <ebotcazou@adacore.com>
11965
11966 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
11967
c7b3b99f
PCC
119682013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
11969
11970 * reload.c (find_reloads): Exit loop once we find this operand
11971 cannot be reloaded somehow for this alternative.
11972
11973 * reload.c (find_reloads): Exit loop once we find a hard register.
11974
11975 * rtlanal.c (computed_jump_p): Exit loop once we find label
11976 reference is used.
11977
11978 * i386.c (ix86_pad_returns): Exit loop after setting replace.
11979
11980 * cfgloopmanip.c (remove_path): Exit loop after setting
11981 irred_invalidated.
11982
11983 * gensupport.c (subst_dup): Avoid loop if code is not
11984 MATCH_DUP nor MATCH_OP_DUP.
11985
c8fbf1fa
NBJ
119862013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
11987
11988 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
11989
9259db42
YZ
119902013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11991
11992 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
11993 true for SP_REGNUM if mode == ptr_mode.
11994 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
11995 with value R0_REGNUM + 31.
11996
00edcfbe
YZ
119972013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
11998
11999 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
12000 pad pointer-typed argument downward.
12001
43be9a95
YZ
120022013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
12003
12004 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
12005 and __ILP32__ when the ILP32 model is in use.
12006
28514dda
YZ
120072013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
12008
12009 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
12010 (aarch64_load_symref_appropriately): In the case of
12011 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
12012 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
12013 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
12014 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
12015 if 'mode' doesn't equal to 'ptr_mode'.
12016 (aarch64_output_mi_thunk): Add an assertion on the alignment of
12017 'vcall_offset'; change to call aarch64_emit_move differently depending
12018 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
12019 to calculate the upper bound of 'vcall_offset'.
12020 (aarch64_cannot_force_const_mem): Change to also return true if
12021 mode != ptr_mode.
12022 (aarch64_legitimize_reload_address): In the case of large
12023 displacements, add new local variable 'xmode' and an assertion
12024 based on it; change to use 'xmode' to generate the new rtx and
12025 reload.
12026 (aarch64_asm_trampoline_template): Change to generate the template
12027 differently depending on TARGET_ILP32 or not; change to use
12028 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
12029 (aarch64_trampoline_size): Removed.
12030 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
12031 and replace immediate literals with it. Change to use 'ptr_mode'
12032 instead of 'DImode' and call convert_memory_address if the mode
12033 of 'fnaddr' doesn't equal to 'ptr_mode'.
12034 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
12035 to output symbol.
12036 (aarch64_elf_asm_destructor): Likewise.
12037 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
12038 on TARGET_ILP32 instead of aarch64_trampoline_size.
12039 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
12040 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
12041 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
12042 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
12043 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
12044 (storewb_pair<GPI:mode>_<P:mode>): ... this.
12045 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
12046 depending on the value of 'mode'.
12047 (add_losym_<mode>): New.
12048 (ldr_got_small_<mode>): New, based on ldr_got_small.
12049 (ldr_got_small): Remove.
12050 (ldr_got_small_sidi): New.
12051 * config/aarch64/iterators.md (P): New.
12052 (PTR): Change to 'ptr_mode' in the condition.
12053
17a819cb
YZ
120542013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
12055
12056 * config.gcc (aarch64*-*-*): Support --with-abi.
12057 (aarch64*-*-elf): Support --with-multilib-list.
12058 (aarch64*-*-linux*): Likewise.
12059 (supported_defaults): Add abi to aarch64*-*-*.
12060 * configure.ac: Mention AArch64 for --with-multilib-list.
12061 * configure: Re-generated.
12062 * config/aarch64/biarchilp32.h: New file.
12063 * config/aarch64/biarchlp64.h: New file.
12064 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
12065 (ABI_SPEC): Ditto.
12066 (MULTILIB_DEFAULTS): Ditto.
12067 (DRIVER_SELF_SPECS): Ditto.
12068 (ASM_SPEC): Update to also substitute -mabi.
12069 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
12070 file whose name depends on -mabi= and -mbig-endian.
12071 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
12072 TARGET_ILP32.
12073 (POINTER_SIZE): New define.
12074 (POINTERS_EXTEND_UNSIGNED): Ditto.
12075 (enum aarch64_abi_type): New enumeration tag.
12076 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
12077 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
12078 (TARGET_ILP32): New define.
12079 * config/aarch64/aarch64.opt (mabi): New.
12080 (aarch64_abi): New.
12081 (ilp32, lp64): New values for -mabi.
12082 * config/aarch64/t-aarch64 (comma): New define.
12083 (MULTILIB_OPTIONS): Ditto.
12084 (MULTILIB_DIRNAMES): Ditto.
12085 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
12086 * doc/invoke.texi: Document -mabi for AArch64.
12087
9f9cbdce
GJL
120882013-07-23 Georg-Johann Lay <avr@gjlay.de>
12089
12090 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
12091
7061977b 120922013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 12093 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
12094
12095 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
12096 endianness when selecting field to splat.
12097
75a41878
EC
120982013-07-22 Eric Christopher <echristo@gmail.com>
12099
12100 * dwarf2out.c (die_odr_checksum): New function to use
12101 CHECKSUM_ macros and ULEB128 for DIE tag.
12102 (generate_type_signature): Use.
41a7c215 12103
38ae58ca
EB
121042013-07-22 Eric Botcazou <ebotcazou@adacore.com>
12105
12106 * config.gcc (sparc*-*-*): Accept leon3 processor.
12107 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
12108 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
12109 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
12110 * config/sparc/sparc.opt (enum processor_type): Add leon3.
12111 (mfix-ut699): Adjust comment.
12112 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
12113 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
12114 (CPP_CPU_SPEC): Likewise.
12115 (ASM_CPU_SPEC): Likewise.
12116 * config/sparc/sparc.c (leon3_cost): New constant.
12117 (sparc_option_override): Add leon3 support.
12118 (mem_ref): New function.
12119 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
12120 (sparc_do_work_around_errata): Look into the instruction in the delay
12121 slot and adjust accordingly. Add fix for the data cache nullify issues
12122 of the UT699. Change insertion position for the NOP.
12123 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
12124 (leon3_load): New reservation.
12125 (leon_store): Bump latency to 2.
12126 (grfpu): New automaton.
12127 (grfpu_alu): New unit.
12128 (grfpu_ds): Likewise.
12129 (leon_fp_alu): Adjust.
12130 (leon_fp_mult): Delete.
12131 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
12132 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
12133 * config/sparc/sparc.md (cpu): Add leon3.
12134 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
12135 (swapsi): Likewise.
12136 (atomic_test_and_set): Likewise.
12137 (ldstub): Likewise.
12138
04dfc6df
JU
121392013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
12140
12141 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
12142 default for R5900 targets.
12143 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
12144 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
12145 * config/mips/mips.c (mips_option_override): Report an error for
12146 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
12147 for -march=r5900 -mhard-float.
12148
c7b3b99f 121492013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
12150
12151 * df-problems.c (can_move_insns_across): Exit loop once we
12152 find a non-fixed, non-global register.
12153
12154 * ipa-pure-const.c (propagate_nothrow): Exit loop after
12155 setting can_throw.
12156
12157 * omega.c (omega_eliminate_red): Break after setting red_found.
12158 (omega_problem_has_red_equations): Similarly after setting found.
12159 (omega_query_variable): Similarly after setting coupled.
12160
9b6e6981
MP
121612013-07-22 Marek Polacek <polacek@redhat.com>
12162
12163 * gimplify.c: Don't include gimple.h twice.
12164
5e5f7673
KT
121652013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12166
12167 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
12168 instead of TARGET_THUMB1.
12169 (Pz): New constraint.
12170 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
12171 encodings.
12172 (compare_negsi_si): Likewise.
12173 (compare_addsi2_op0): Likewise.
12174 (compare_addsi2_op1): Likewise.
12175 (addsi3_carryin_<optab>): Likewise.
12176 (addsi3_carryin_alt2_<optab>): Likewise.
12177 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
12178 for arm_restrict_it.
12179 (subsi3_carryin): Likewise.
12180 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
12181 (minmax_arithsi): Disable for arm_restrict_it.
12182 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
12183 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
12184 (satsi_<SAT:code>_shift): Likewise.
12185 (arm_shiftsi3): Add alternative for 16-bit encoding.
12186 (arm32_movhf): Disable for arm_restrict_it.
12187 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
12188 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
12189
859abddd
SN
121902013-07-22 Sofiane Naci <sofiane.naci@arm.com>
12191
12192 * config/arm/arm.md (attribute "insn"): Delete.
12193 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
12194 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
12195 (not_shiftsi): Update for attribute change.
12196 (not_shiftsi_compare0): Likewise.
12197 (not_shiftsi_compare0_scratch): Likewise.
12198 (arm_one_cmplsi2): Likewise.
12199 (thumb1_one_cmplsi2): Likewise.
12200 (notsi_compare0): Likewise.
12201 (notsi_compare0_scratch): Likewise.
12202 (thumb1_movdi_insn): Likewise.
12203 (arm_movsi_insn): Likewise.
12204 (movhi_insn_arch4): Likewise.
12205 (movhi_bytes): Likewise.
12206 (arm_movqi_insn): Likewise.
12207 (thumb1_movqi_insn): Likewise.
12208 (arm32_movhf): Likewise.
12209 (thumb1_movhf): Likewise.
12210 (arm_movsf_soft_insn): Likewise.
12211 (thumb1_movsf_insn): Likewise.
12212 (thumb_movdf_insn): Likewise.
12213 (movsicc_insn): Likewise.
12214 (movsfcc_soft_insn): Likewise.
12215 (and_scc): Likewise.
12216 (cond_move): Likewise.
12217 (if_move_not): Likewise.
12218 (if_not_move): Likewise.
12219 (if_shift_move): Likewise.
12220 (if_move_shift): Likewise.
12221 (if_shift_shift): Likewise.
12222 (if_not_arith): Likewise.
12223 (if_arith_not): Likewise.
12224 (cond_move_not): Likewise.
12225 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
12226 (neon_mov<mode>): Likewise.
12227 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
12228 (thumb2_movsi_vfp): Likewise.
12229 (movsf_vfp): Likewise.
12230 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
12231 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
12232 change.
859abddd
SN
12233 (cortexa7_older_only): Likewise.
12234 (cortexa7_younger): Likewise.
12235 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
12236 (1020alu_shift_op): Likewise.
12237 (1020alu_shift_reg_op): Likewise.
12238 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
12239 (alu_shift_op): Likewise.
12240 (alu_shift_reg_op): Likewise.
12241 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
12242 (11_alu_shift_op): Likewise.
12243 (11_alu_shift_reg_op): Likewise.
12244 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
12245 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
12246 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12247 change.
859abddd
SN
12248 (cortex_a15_alu_shift): Likewise.
12249 (cortex_a15_alu_shift_reg): Likewise.
12250 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
12251 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
12252 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
12253 change.
859abddd 12254 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
12255 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
12256 change.
859abddd
SN
12257 (cortex_a7_alu_reg): Likewise.
12258 (cortex_a7_alu_shift): Likewise.
12259 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12260 (cortex_a8_alu_shift): Likewise.
12261 (cortex_a8_alu_shift_reg): Likewise.
12262 (cortex_a8_mov): Likewise.
12263 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
12264 (cortex_a9_dp_shift): Likewise.
12265 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
12266 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
12267 (cortex_r4_mov): Likewise.
12268 (cortex_r4_alu_shift): Likewise.
12269 (cortex_r4_alu_shift_reg): Likewise.
12270 * config/arm/fa526.md (526_alu_op): Update for attribute change.
12271 (526_alu_shift_op): Likewise.
12272 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
12273 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
12274 (626te_alu_shift_op): Likewise.
12275 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
12276 (726te_alu_op): Likewise.
12277 (726te_alu_shift_op): Likewise.
12278 (726te_alu_shift_reg_op): Likewise.
12279 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
12280 (mp626_alu_shift_op): Likewise.
12281 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
12282 (pj4_alu_e1_conds): Likewise.
12283 (pj4_alu): Likewise.
12284 (pj4_alu_conds): Likewise.
12285 (pj4_shift): Likewise.
12286 (pj4_shift_conds): Likewise.
12287 (pj4_alu_shift): Likewise.
12288 (pj4_alu_shift_conds): Likewise.
12289
95b97fac
KT
122902013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12291
12292 * config/arm/predicates.md (shiftable_operator_strict_it):
12293 New predicate.
12294 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
12295 Disable cond_exec version for arm_restrict_it.
12296 (thumb2_smaxsi3): Convert to generate cond_exec.
12297 (thumb2_sminsi3): Likewise.
12298 (thumb32_umaxsi3): Likewise.
12299 (thumb2_uminsi3): Likewise.
12300 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
12301 (thumb2_neg_abssi2): Likewise.
12302 (thumb2_mov_scc): Add alternative for 16-bit encoding.
12303 (thumb2_movsicc_insn): Adjust alternatives.
12304 (thumb2_mov_negscc): Disable for arm_restrict_it.
12305 (thumb2_mov_negscc_strict_it): New pattern.
12306 (thumb2_mov_notscc_strict_it): New pattern.
12307 (thumb2_mov_notscc): Disable for arm_restrict_it.
12308 (thumb2_ior_scc): Likewise.
12309 (thumb2_ior_scc_strict_it): New pattern.
12310 (thumb2_cond_move): Adjust for arm_restrict_it.
12311 (thumb2_cond_arith): Disable for arm_restrict_it.
12312 (thumb2_cond_arith_strict_it): New pattern.
12313 (thumb2_cond_sub): Adjust for arm_restrict_it.
12314 (thumb2_movcond): Likewise.
12315 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
12316 (thumb2_zero_extendhisi2_v6): Likewise.
12317 (thumb2_zero_extendqisi2_v6): Likewise.
12318 (orsi_notsi_si): Likewise.
12319 (orsi_not_shiftsi_si): Likewise.
12320
d5a6ef82
GJL
123212013-07-22 Georg-Johann Lay <avr@gjlay.de>
12322
12323 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
12324 instruction sequence is 1 byte shorter.
12325
d9e71154
UB
123262013-07-22 Uros Bizjak <ubizjak@gmail.com>
12327
12328 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
12329 it is not needed after split.
12330
8c6381ec
IS
123312013-07-20 Iain Sandoe <iain@codesourcery.com>
12332
12333 PR target/51784
12334 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
12335 second label for nonlocal goto receivers. Don't output pic base labels
12336 unless we're producing PIC; mark that action unreachable().
12337 (ix86_save_reg): If the function contains a nonlocal label, save the
12338 PIC base reg.
12339 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 12340 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
12341 (update_pic_label_number_if_needed): New.
12342 (machopic_output_function_base_name): Adjust for nonlocal receiver
12343 case.
12344 (machopic_should_output_picbase_label): New.
12345 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
12346 (nonlocal_goto_receiver): New insn and split.
12347
d05d0709
JG
123482013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
12349
12350 * config/aarch64/aarch64-builtins.c
12351 (aarch64_fold_builtin): Fold abs in all modes.
12352 * config/aarch64/aarch64-simd-builtins.def
12353 (abs): Enable for all modes.
12354 * config/aarch64/arm_neon.h
12355 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
12356 (vabs_f64): Add missing intrinsic.
12357
ba590e63
IB
123582013-07-19 Ian Bolton <ian.bolton@arm.com>
12359
12360 * config/aarch64/arm_neon.h (vabs_s64): New function
12361
02371798
GJL
123622013-07-19 Georg-Johann Lay <avr@gjlay.de>
12363
12364 PR target/57516
12365 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
12366 * config/avr/avr.md (adjust_len): Add `round'.
12367 * config/avr/avr-protos.h (avr_out_round): New prototype.
12368 (avr_out_plus): Add `out_label' argument.
12369 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
12370 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
12371 Handle the case where `insn' is just a pattern.
12372 (avr_out_bitop): Handle the case where `insn' is just a pattern.
12373 (avr_out_round): New function.
12374 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
12375
12211b99 123762013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
12377
12378 * config/microblaze/microblaze.c (microblaze_expand_prologue):
12379 Add check for flag_stack_usage to handle -fstack-usage support
12380
12211b99 123812013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
12382
12383 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
12384 interaction for new Power8 flags and VSX.
12385
df9dda2d
ST
123862013-07-18 Sriraman Tallam <tmsriram@google.com>
12387
12388 PR middle-end/57698
12389 * tree-inline.c (expand_call_inline): Emit errors during
12390 early_inlining only if optimization is not turned on.
12391
0f9cdef4
DM
123922013-07-18 David Malcolm <dmalcolm@redhat.com>
12393
12394 * passes.def: New.
12395
12396 * passes.c (init_optimization_passes): Move the construction of
12397 the pass hierarchy into a new passes.def file.
12398
12399 * Makefile.in (passes.o): Add dependency on passes.def.
12400
2efa4087
DM
124012013-07-18 David Malcolm <dmalcolm@redhat.com>
12402
12403 * passes.c (init_optimization_passes): Introduce macros for
12404 constructing the tree of passes (INSERT_PASSES_AFTER,
12405 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
12406 TERMINATE_PASS_LIST).
12407
bc404e1b
VM
124082013-07-18 Vladimir Makarov <vmakarov@redhat.com>
12409 Wei Mi <wmi@google.com>
12410
12411 PR rtl-optimization/57878
12412 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
12413 top.
12414 (reload_pseudo_compare_func): Check nregs first for reload
12415 pseudos.
12416
d675843f
DM
124172013-07-18 David Malcolm <dmalcolm@redhat.com>
12418
12419 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
12420
c7b3b99f 124212013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
12422
12423 * read-rtl.c (validate_const_int): Once an invalid character is
12424 seen, quit the loop.
12425
12426 * gengtype.c (write_roots): Similarly once we find the "deletable"
12427 or "if_marked" option.
12428
52fceb44
SN
124292013-07-18 Sofiane Naci <sofiane.naci@arm.com>
12430
12431 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
12432 "xtab" and "sat". Move value "clz" from here to ...
12433 (attriubte "type"): ... here.
12434 (satsi_<SAT:code>): Delete "insn" attribute.
12435 (satsi_<SAT:code>_shift): Likewise.
12436 (arm_zero_extendqisi2addsi): Likewise.
12437 (arm_extendqisi2addsi): Likewise.
12438 (clzsi2): Update for attribute changes.
12439 (rbitsi2): Likewise.
371e77e3
UB
12440 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
12441 attribute.
52fceb44
SN
12442 (arm_usatsihi): Likewise.
12443 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
12444
006bd006
SN
124452013-07-18 Sofiane Naci <sofiane.naci@arm.com>
12446
12447 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
12448 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
12449 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
12450 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
12451 in alphabetical order.
12452 (attribute "core_cycles"): Update for attribute changes.
12453 (arm_addsi3): Likewise.
12454 (addsi3_compare0): Likewise.
12455 (addsi3_compare0_scratch): Likewise.
12456 (addsi3_compare_op1): Likewise.
12457 (addsi3_compare_op2): Likewise.
12458 (compare_addsi2_op0): Likewise.
12459 (compare_addsi2_op1): Likewise.
12460 (addsi3_carryin_shift_<optab>): Likewise.
12461 (subsi3_carryin_shift): Likewise.
12462 (rsbsi3_carryin_shift): Likewise.
12463 (arm_subsi3_insn): Likewise.
12464 (subsi3_compare0): Likewise.
12465 (subsi3_compare): Likewise.
12466 (arm_andsi3_insn): Likewise.
12467 (thumb1_andsi3_insn): Likewise.
12468 (andsi3_compare0): Likewise.
12469 (andsi3_compare0_scratch): Likewise.
12470 (zeroextractsi_compare0_scratch
12471 (andsi_not_shiftsi_si): Likewise.
12472 (iorsi3_insn): Likewise.
12473 (iorsi3_compare0): Likewise.
12474 (iorsi3_compare0_scratch): Likewise.
12475 (arm_xorsi3): Likewise.
12476 (thumb1_xorsi3_insn): Likewise.
12477 (xorsi3_compare0): Likewise.
12478 (xorsi3_compare0_scratch): Likewise.
12479 (satsi_<SAT:code>_shift): Likewise.
12480 (rrx): Likewise.
12481 (arm_shiftsi3): Likewise.
12482 (shiftsi3_compare0): Likewise.
12483 (not_shiftsi): Likewise.
12484 (not_shiftsi_compare0): Likewise.
12485 (not_shiftsi_compare0_scratch): Likewise.
12486 (arm_one_cmplsi2): Likewise.
12487 (thumb_one_complsi2): Likewise.
12488 (notsi_compare0): Likewise.
12489 (notsi_compare0_scratch): Likewise.
12490 (thumb1_zero_extendhisi2): Likewise.
12491 (arm_zero_extendhisi2): Likewise.
12492 (arm_zero_extendhisi2_v6): Likewise.
12493 (arm_zero_extendhisi2addsi): Likewise.
12494 (thumb1_zero_extendqisi2): Likewise.
12495 (thumb1_zero_extendqisi2_v6): Likewise.
12496 (arm_zero_extendqisi2): Likewise.
12497 (arm_zero_extendqisi2_v6): Likewise.
12498 (arm_zero_extendqisi2addsi): Likewise.
12499 (thumb1_extendhisi2): Likewise.
12500 (arm_extendhisi2): Likewise.
12501 (arm_extendhisi2_v6): Likewise.
12502 (arm_extendqisi): Likewise.
12503 (arm_extendqisi_v6): Likewise.
12504 (arm_extendqisi2addsi): Likewise.
12505 (thumb1_extendqisi2): Likewise.
12506 (thumb1_movdi_insn): Likewise.
12507 (arm_movsi_insn): Likewise.
12508 (movsi_compare0): Likewise.
12509 (movhi_insn_arch4): Likewise.
12510 (movhi_bytes): Likewise.
12511 (arm_movqi_insn): Likewise.
12512 (thumb1_movqi_insn): Likewise.
12513 (arm32_movhf): Likewise.
12514 (thumb1_movhf): Likewise.
12515 (arm_movsf_soft_insn): Likewise.
12516 (thumb1_movsf_insn): Likewise.
12517 (movdf_soft_insn): Likewise.
12518 (thumb_movdf_insn): Likewise.
12519 (arm_cmpsi_insn): Likewise.
12520 (cmpsi_shiftsi): Likewise.
12521 (cmpsi_shiftsi_swp): Likewise.
12522 (arm_cmpsi_negshiftsi_si): Likewise.
12523 (movsicc_insn): Likewise.
12524 (movsfcc_soft_insn): Likewise.
12525 (arith_shiftsi): Likewise.
12526 (arith_shiftsi_compare0
12527 (arith_shiftsi_compare0_scratch
12528 (sub_shiftsi): Likewise.
12529 (sub_shiftsi_compare0
12530 (sub_shiftsi_compare0_scratch
12531 (and_scc): Likewise.
12532 (cond_move): Likewise.
12533 (if_plus_move): Likewise.
12534 (if_move_plus): Likewise.
12535 (if_move_not): Likewise.
12536 (if_not_move): Likewise.
12537 (if_shift_move): Likewise.
12538 (if_move_shift): Likewise.
12539 (if_shift_shift): Likewise.
12540 (if_not_arith): Likewise.
12541 (if_arith_not): Likewise.
12542 (cond_move_not): Likewise.
12543 (thumb1_ashlsi3): Set type attribute.
12544 (thumb1_ashrsi3): Likewise.
12545 (thumb1_lshrsi3): Likewise.
12546 (thumb1_rotrsi3): Likewise.
12547 (shiftsi3_compare0_scratch): Likewise.
12548 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
12549 (neon_mov<mode>): Likewise.
371e77e3
UB
12550 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
12551 attribute changes.
006bd006
SN
12552 (thumb2_movsi_insn): Likewise.
12553 (thumb2_cmpsi_neg_shiftsi): Likewise.
12554 (thumb2_extendqisi_v6): Likewise.
12555 (thumb2_zero_extendhisi2_v6): Likewise.
12556 (thumb2_zero_extendqisi2_v6): Likewise.
12557 (thumb2_shiftsi3_short): Likewise.
12558 (thumb2_addsi3_compare0_scratch): Likewise.
12559 (orsi_not_shiftsi_si): Likewise.
12560 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
12561 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
12562 changes.
12563 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
12564 (1020alu_shift_op): Likewise.
12565 (1020alu_shift_reg_op): Likewise.
12566 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
12567 (alu_shift_op): Likewise.
12568 (alu_shift_reg_op): Likewise.
12569 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
12570 (11_alu_shift_op): Likewise.
12571 (11_alu_shift_reg_op): Likewise.
12572 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
12573 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
12574 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
12575 changes.
006bd006
SN
12576 (cortex_a15_alu_shift): Likewise.
12577 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
12578 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
12579 changes.
006bd006
SN
12580 (cortex_a5_alu_shift): Likewise.
12581 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
12582 changes.
12583 (cortex_a53_alu_shift): Likewise.
12584 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
12585 changes.
12586 (cortex_a7_alu_reg): Likewise.
12587 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
12588 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
12589 changes.
006bd006
SN
12590 (cortex_a8_alu_shift): Likewise.
12591 (cortex_a8_alu_shift_reg): Likewise.
12592 (cortex_a8_mov): Likewise.
12593 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
12594 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
12595 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
12596 changes.
12597 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
12598 changes.
006bd006
SN
12599 (cortex_r4_mov): Likewise.
12600 (cortex_r4_alu_shift): Likewise.
12601 (cortex_r4_alu_shift_reg): Likewise.
12602 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
12603 (526_alu_shift_op): Likewise.
12604 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
12605 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
12606 (626te_alu_shift_op): Likewise.
12607 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
12608 (726te_alu_op): Likewise.
12609 (726te_alu_shift_op): Likewise.
12610 (726te_alu_shift_reg_op): Likewise.
12611 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
12612 (mp626_alu_shift_op): Likewise.
12613 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
12614 (pj4_alu_e1_conds): Likewise.
12615 (pj4_alu): Likewise.
12616 (pj4_alu_conds): Likewise.
12617 (pj4_shift): Likewise.
12618 (pj4_shift_conds): Likewise.
12619 (pj4_alu_shift): Likewise.
12620 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
12621 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
12622 changes.
006bd006
SN
12623 (cortexa7_older_only): Likewise.
12624 (cortexa7_younger): Likewise.
12625
651df1b2
DM
126262013-07-18 David Malcolm <dmalcolm@redhat.com>
12627
12628 * ipa-pure-const.c (generate_summary): Rename to...
12629 (pure_const_generate_summary): ... this.
12630
ea717bd7
IS
126312013-07-17 Iain Sandoe <iain@codesourcery.com>
12632
12633 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
12634
a1259a13
YR
126352013-07-17 Yvan Roux <yvan.roux@linaro.org>
12636
12637 PR target/57909
12638 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
12639 usage in HI mode.
12640
167f68ed
AK
126412013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12642
12643 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
12644 enabled without -march=zEC12.
12645 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
12646 flags to be set.
12647
f900a982
MR
126482013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12649
12650 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
12651 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
12652 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
12653 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
12654 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
12655 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
12656 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
12657 ISA_HAS_FP4.
12658 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
12659 and ISA_HAS_NMADD3_NMSUB3.
12660 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
12661 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
12662 (nmsub4<mode>, nmsub3<mode>): Likewise.
12663 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
12664
d4ed27eb
MR
126652013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12666
12667 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
12668 TARGET_MIPS5400 checking.
12669
7a5add18
PB
126702013-07-16 Jakub Jelinek <jakub@redhat.com>
12671 Peter Bergner <bergner@vnet.ibm.com>
12672
12673 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
12674 registers in the comment.
12675 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
12676 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
12677 rather than FIRST_PSEUDO_REGISTERS.
12678
126792013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
12680
12681 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
12682 enable extra ISA flags with TARGET_HTM.
12683
d2ab0929
MR
126842013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
12685
12686 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
12687 Fix comment typos.
12688
839c74bc
CH
126892013-07-15 Cong Hou <congh@google.com>
12690
12691 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
12692 in compare function for sorting.
12693
7a5add18 126942013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
12695
12696 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
12697 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
12698 * config/rs6000/rs6000.opt: Add -mhtm option.
12699 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
12700 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
12701 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12702 __HTM__ if the HTM instructions are available.
12703 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
12704 htm_spr_reg_operand): New define_predicates.
12705 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
12706 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
12707 Include htm.md.
12708 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
12709 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
12710 HTM builtin functions.
12711 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
12712 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
12713 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
12714 (rs6000_builtin_mask_calculate): Likewise.
12715 (rs6000_option_override_internal): Likewise.
12716 (bdesc_htm): Add new HTM builtin support.
12717 (htm_spr_num): New function.
12718 (htm_spr_regno): Likewise.
12719 (rs6000_htm_spr_icode): Likewise.
12720 (htm_expand_builtin): Likewise.
12721 (htm_init_builtins): Likewise.
12722 (rs6000_expand_builtin): Add support for HTM builtin functions.
12723 (rs6000_init_builtins): Likewise.
371e77e3
UB
12724 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
12725 option.
0258b6e4
PB
12726 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
12727 (TARGET_HTM, MASK_HTM): Define macros.
12728 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
12729 (FIXED_REGISTERS): Likewise.
12730 (CALL_USED_REGISTERS): Likewise.
12731 (CALL_REALLY_USED_REGISTERS): Likewise.
12732 (REG_ALLOC_ORDER): Likewise.
12733 (enum reg_class): Likewise.
12734 (REG_CLASS_NAMES): Likewise.
12735 (REG_CLASS_CONTENTS): Likewise.
12736 (REGISTER_NAMES): Likewise.
12737 (ADDITIONAL_REGISTER_NAMES): Likewise.
12738 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
12739 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
12740 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
12741 * config/rs6000/htm.md: New file.
12742 * config/rs6000/htmintrin.h: New file.
12743 * config/rs6000/htmxlintrin.h: New file.
12744
87dd8ab0
MS
127452013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
12746
12747 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
12748 Define SYMBOL_TINY_GOT, update comment.
12749 * config/aarch64/aarch64.c
12750 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
12751 (aarch64_expand_mov_immediate): Likewise.
12752 (aarch64_print_operand): Likewise.
12753 (aarch64_classify_symbol): Likewise.
12754 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
12755 (ldr_got_tiny): Define.
12756
52d676b6
TG
127572013-07-13 Tobias Grosser <tobias@grosser.es>
12758
12759 PR tree-optimization/54094
12760 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
12761 scheduling dimension for the parallelism check from the polyhedral
12762 information in the AST.
12763 * graphite-dependences.c (carries_deps): Do not assume the schedule is
12764 in 2D + 1 form.
12765
286e8fc1
JM
127662013-07-13 Jason Merrill <jason@redhat.com>
12767
12768 * print-tree.c (debug_vec_tree): Use debug_raw.
12769 (debug_raw (vec<tree, va_gc> &)): New.
12770 (debug_raw (vec<tree, va_gc> *)): New.
12771 * tree.h: Declare them.
12772
e43257e8
BC
127732013-07-13 Bin Cheng <bin.cheng@arm.com>
12774
12775 * ifcvt.c (ifcvt_after_combine): New static variable.
12776 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
12777 for size.
12778 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
12779 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
12780 rest_of_handle_if_after_reload): Pass new argument for if_convert.
12781
da582d46
MR
127822013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
12783
12784 * config/mips/mips.c (mips_expand_call): Remove empty statement.
12785
18b0ea8f
MM
127862013-07-12 Michael Matz <matz@suse.de>
12787
12788 PR middle-end/55771
12789 * convert.c (convert_to_real): Reject non-float inner types.
12790
e4f0f84d
TB
127912013-07-12 Tejas Belagod <tejas.belagod@arm.com>
12792
12793 * config/aarch64/aarch64-protos.h
12794 (aarch64_simd_immediate_valid_for_move): Remove.
12795 * config/aarch64/aarch64.c (simd_immediate_info): New member.
12796 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
12797 cases.
12798 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
12799
76500022
SE
128002013-07-11 Steve Ellcey <sellcey@mips.com>
12801
12802 * config/mips/mips.c (mips_conditional_register_usage): Do not
12803 use t[0-7] registers in MIPS16 mode when optimizing for size.
12804
78039734
ST
128052013-07-11 Sriraman Tallam <tmsriram@google.com>
12806
12807 * config/i386/i386.c (dispatch_function_versions): Fix array
12808 indexing of function_version_info to match actual_versions.
12809
7b24b675
TJ
128102013-07-11 Teresa Johnson <tejohnson@google.com>
12811
12812 * vec.h (struct va_gc): Move release out-of-line.
12813 (va_gc::release): Call ggc_free on released vec.
12814
85d4cbb8
UW
128152013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12816
12817 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
12818 Require GOT register as additional operand in UNSPEC.
12819 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
12820 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
12821 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
12822 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
12823 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
12824 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
12825 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
12826
52b3f9e2
GJL
128272013-07-11 Georg-Johann Lay <avr@gjlay.de>
12828
12829 PR target/57631
12830 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
12831 name seen by assembler/linker rather if available.
12832
3f3e266e
AS
128332013-07-11 Andreas Schwab <schwab@suse.de>
12834
12835 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
12836
21231ca6
VM
128372013-07-10 Vladimir Makarov <vmakarov@redhat.com>
12838
371e77e3 12839 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 12840
d331d374
JM
128412013-07-10 Joseph Myers <joseph@codesourcery.com>
12842
673c2f63
JM
12843 * doc/tm.texi.in: Move hook documentation to ....
12844 * target.def: ... here.
12845
d331d374
JM
12846 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
12847 text on @hook line.
12848 * doc/tm.texi: Regenerate.
12849
dfeadaa0
PC
128502013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
12851
12852 PR c++/57869
12853 * doc/invoke.texi: Document -Wconditionally-supported.
12854
bb6f2bac
GJL
128552013-07-10 Georg-Johann Lay <avr@gjlay.de>
12856
12857 PR target/57844
12858 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
12859 of my_fp.
12860
5219b232
GJL
128612013-07-10 Georg-Johann Lay <avr@gjlay.de>
12862
12863 PR target/57506
12864 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
12865 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
12866 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
12867 Remove duplicate devices.
12868 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
12869 * config/avr/t-multilib: Regenerate.
12870 * config/avr/avr-tables.opt: Regenerate.
12871 * doc/avr-mmcu.texi: Regenerate.
12872
283045c0
GJL
128732013-07-10 Georg-Johann Lay <avr@gjlay.de>
12874
12875 PR target/56987
12876 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
12877
ceb2d59f 128782013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 12879
ceb2d59f
GS
12880 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
12881 the cost of MULT when optimizing for size.
12882
055e0a99
JBG
128832013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12884
12885 * config/cr16/cr16-protos.h: Don't include target.h.
12886
ef43e868
JM
128872013-07-09 Joseph Myers <joseph@codesourcery.com>
12888
12889 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
12890 adjust register size for TDmode and TFmode for VSX registers.
12891
4a283fdf
KT
128922013-07-08 Kai Tietz <ktietz@redhat.com>
12893
12894 PR target/56892
12895 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
12896 hook_bool_const_tree_true.
12897
2cf4c39e
AK
128982013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12899
12900 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
12901 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
12902 * config/s390/s390.md: Define FPR*_REGNUM constants.
12903 Fix FPR2_REGNUM constant (18 -> 17).
12904 ("*trunc<BFP:mode><DFP_ALL:mode>2")
12905 ("*trunc<DFP_ALL:mode><BFP:mode>2")
12906 ("trunc<BFP:mode><DFP_ALL:mode>2")
12907 ("trunc<DFP_ALL:mode><BFP:mode>2")
12908 ("*extend<BFP:mode><DFP_ALL:mode>2")
12909 ("*extend<DFP_ALL:mode><BFP:mode>2")
12910 ("extend<BFP:mode><DFP_ALL:mode>2")
12911 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
12912 FPR4_REGNUM.
12913
e6ac0270 129142013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 12915
6a2fa4b2 12916 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 12917
b89b22fc
AK
129182013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12919
12920 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
12921 and cfun_fpr_bit_p to cfun_fpr_save_p.
12922 (s390_frame_area, s390_register_info, s390_frame_info)
12923 (s390_emit_prologue, s390_emit_epilogue)
12924 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
12925 register numbers.
12926 * config/s390/s390.h: Define *_REGNUM macros for floating point
12927 register numbers.
12928
07f398aa
EB
129292013-07-08 Eric Botcazou <ebotcazou@adacore.com>
12930
12931 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
12932
75fefa91
PCC
129332013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
12934
12935 PR rtl-optimization/57786
12936 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
12937 and break out of the loop when it is set to false.
12938
046f1eee
JJ
129392013-07-08 Jakub Jelinek <jakub@redhat.com>
12940
8140c065
JJ
12941 PR target/57819
12942 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
12943 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
12944 (const_int 63)) 0)).
12945 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
12946 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
12947 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
12948
046f1eee
JJ
12949 PR rtl-optimization/57829
12950 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
12951 mask bits outside of mode are just sign-extension from mode to HWI.
12952
930b700b
MZ
129532013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
12954
12955 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
12956 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
12957 adjust_address instead of change_address to keep info about alignment.
12958 (emit_strmov): Remove.
12959 (emit_memmov): New function.
12960 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
12961 (expand_movmem_epilogue): Likewise and return updated rtx for
12962 destination.
12963 (expand_constant_movmem_prologue): Likewise and return updated rtx for
12964 destination and source.
12965 (decide_alignment): Refactor, handle vector_loop.
12966 (ix86_expand_movmem): Likewise.
12967 (ix86_expand_setmem): Likewise.
12968 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
12969
7b9d1bd8
UB
129702013-07-07 Uros Bizjak <ubizjak@gmail.com>
12971
12972 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
12973 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
12974
eabb5f48
UB
129752013-07-06 Uros Bizjak <ubizjak@gmail.com>
12976
12977 * config/i386/sse.md (sse_movlhps): Change alternative 3
12978 of operand 2 to "m".
12979
129802013-07-06 Uros Bizjak <ubizjak@gmail.com>
12981
12982 PR target/57807
12983 * config/i386/sse.md (iptr): New mode attribute.
12984 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
12985 (<sse>_vm<plusminus_insn><mode>3): Ditto.
12986 (<sse>_vmmul<mode>3): Ditto.
12987 (<sse>_vmdiv<mode>3): Ditto.
12988 (sse_vmrcpv4sf2): Ditto.
12989 (<sse>_vmsqrt<mode>2): Ditto.
12990 (sse_vmrsqrtv4sf2): Ditto.
12991 (<sse>_vm<code><mode>3): Ditto.
12992 (avx_vmcmp<mode>3): Ditto.
12993 (<sse>_vmmaskcmp<mode>3): Ditto.
12994 (<sse>_comi): Ditto.
12995 (<sse>_ucomi): Ditto.
12996 (*xop_vmfrcz_<mode>): Ditto.
12997 (*fmai_fmadd_<mode>): Ditto.
12998 (*fmai_fmsub_<mode>): Ditto.
12999 (*fmai_fnmadd_<mode>): Ditto.
13000 (*fmai_fnmsub_<mode>): Ditto.
13001 (*fma4i_vmfmadd_<mode>): Ditto.
13002 (*fma4i_vmfmsub_<mode>): Ditto.
13003 (*fma4i_vmfnmadd_<mode>): Ditto.
13004 (*fma4i_vmfnmsub_<mode>): Ditto.
13005 (*xop_vmfrcz_<mode>): Ditto.
13006 (sse_cvtps2pi): Ditto.
13007 (sse_cvttps2pi): Ditto.
13008 (sse_cvtss2si): Ditto.
13009 (sse_cvtss2si_2): Ditto.
13010 (sse_cvtss2siq_2): Ditto.
13011 (sse_cvttss2si): Ditto.
13012 (sse_cvttss2siq): Ditto.
13013 (sse_cvtsd2si): Ditto.
13014 (sse_cvtsd2si_2): Ditto.
13015 (sse_cvtsd2siq_2): Ditto.
13016 (sse_cvttsd2si): Ditto.
13017 (sse_cvttsd2siq): Ditto.
13018 (sse_cvtsd2ss): Ditto.
13019 (sse_cvtss2sd): Ditto.
13020 (avx2_pbroadcast<mode>): Ditto.
13021 (avx2_pbroadcast<mode>_1): Ditto.
13022 (*avx_vperm_broadcast_v4sf): Ditto.
13023
13024 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
13025 (sse_movlhps): Ditto.
13026 (sse_storehps): Ditto.
13027 (sse_loadhps): Ditto.
13028 (sse_storelps): Ditto.
13029 (sse_loadlps): Ditto.
13030 (*vec_concatv4sf): Ditto.
13031 (*vec_interleave_highv2df): Ditto.
13032 (*vec_interleave_lowv2df): Ditto.
13033 (*vec_extractv2df_1_sse): Ditto.
13034 (*vec_extractv2df_0_sse): Ditto.
13035 (sse2_storelpd): Ditto.
13036 (sse2_loadlpd): Ditto.
13037 (sse2_movsd): Ditto.
13038 (*vec_concatv4si): Ditto.
13039 (vec_concatv2di): Ditto.
13040
13041 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
13042 for Intel asm dialect.
13043 (mmx_punpcklwd): Ditto.
13044 (mmx_punpckldq): Ditto.
13045
13046 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
13047 for intel assembler dialect.
13048
1f6eac90
JJ
130492013-07-06 Jakub Jelinek <jakub@redhat.com>
13050
13051 PR target/29776
13052 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
13053 for BUILT_IN_C{LZ,LRSB}*.
13054 * tree.h (CASE_INT_FN): Add FN##IMAX case.
13055 * tree-vrp.c (extract_range_basic): Handle
13056 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
13057 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
13058 fall thru to code calling set_value*.
13059 * builtins.c (expand_builtin): Remove *IMAX cases.
13060 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
13061 if width is bigger than 2*HWI.
13062
2b778c9d
VM
130632013-07-05 Vladimir Makarov <vmakarov@redhat.com>
13064
13065 PR rtl-optimization/55342
13066 * lra-int.h (lra_subreg_reload_pseudos): New.
13067 * lra.c: Add undoing optional reloads to the block diagram.
13068 (lra_subreg_reload_pseudos): New.
13069 (lra_optional_reload_pseudos): Change comments.
13070 (lra): Init and clear lra_subreg_reload_pseudos. Clear
13071 lra_optional_reload_pseudos after undo transformations.
13072 * lra-assigns.c (pseudo_prefix_title): New.
13073 (lra_setup_reg_renumber): Use it.
13074 (spill_for): Ditto. Check subreg reload pseudos too.
13075 (assign_by_spills): Consider subreg reload pseudos too.
13076 * lra-constraints.c (simplify_operand_subreg): Use
13077 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
13078 (curr_insn_transform): Recognize and do optional reloads.
13079 (undo_optional_reloads): New.
13080 (lra_undo_inheritance): Call undo_optional_reloads.
13081
207156e4
TQ
130822013-07-05 Thomas Quinot <quinot@adacore.com>
13083
13084 * tree-complex.c (expand_complex_operations_1): Fix typo.
13085
8990e73a
TB
130862013-07-04 Tejas Belagod <tejas.belagod@arm.com>
13087
13088 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
13089 (tune_params): New member 'const vec_costs'.
13090 * config/aarch64/aarch64.c (generic_vector_cost): New.
13091 (generic_tunings): New member 'generic_vector_cost'.
13092 (aarch64_builtin_vectorization_cost): New.
13093 (aarch64_add_stmt_cost): New.
13094 (TARGET_VECTORIZE_ADD_STMT_COST): New.
13095 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
13096
f7bc421d
JJ
130972013-07-03 Jakub Jelinek <jakub@redhat.com>
13098
13099 PR target/57777
13100 * config/i386/predicates.md (vsib_address_operand): Disallow
13101 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
13102
e90d1568
HPN
131032013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
13104
13105 PR middle-end/55030
13106 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
13107 expand_builtin_setjmp_receiver.
13108 (expand_label): Adjust, call expand_builtin_setjmp_receiver
13109 with NULL for the label parameter.
13110 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
13111 the frame-pointer. Adjust comments.
13112 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
13113 only if LABEL is non-NULL.
13114
cbd7413b
YZ
131152013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
13116
13117 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
13118 (ARM_ABI_AAPCS64): Ditto.
13119 (arm_abi): Ditto.
13120 (ARM_DEFAULT_ABI): Ditto.
13121
dec11868
JG
131222013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
13123
13124 * config/aarch64/aarch64-builtins.c
13125 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
13126 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
13127 (st1): Likewise.
13128 * config/aarch64/aarch64-simd.md
13129 (aarch64_ld1<VALL:mode>): New.
13130 (aarch64_st1<VALL:mode>): Likewise.
13131 * config/aarch64/arm_neon.h
13132 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
13133
786fb9b6
ST
131342013-07-02 Sriraman Tallam <tmsriram@google.com>
13135
0ba6aff3
UB
13136 * config/i386/i386.c (gate_insert_vzeroupper): Check if
13137 target ISA is AVX.
786fb9b6
ST
13138 (ix86_option_override_internal):Turn on all -mavx target flags by
13139 default as they are dependent on AVX anyway.
13140
4b043553
CC
131412013-07-02 Cary Coutant <ccoutant@google.com>
13142
13143 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
13144 deterministic hash.
13145 (loc_checksum_ordered): Likewise.
13146 (hash_loc_operands): Remove inline keyword.
13147
c4e87a13
JJ
131482013-07-02 Jakub Jelinek <jakub@redhat.com>
13149
13150 PR tree-optimization/57741
13151 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
13152 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
13153 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
13154 Allow REAL_CST step_exprs if flag_associative_math.
13155 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
13156
26366d28
IB
131572013-07-02 Ian Bolton <ian.bolton@arm.com>
13158
0ba6aff3 13159 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 13160
2879bb2b
IB
131612013-07-02 Ian Bolton <ian.bolton@arm.com>
13162
13163 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
13164
afc5e8a6
KT
131652013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13166
13167 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
13168 encoding.
13169 (iorsi3_insn): Likewise.
13170 (arm_xorsi3): Likewise.
13171
31f8442b
SN
131722013-07-01 Sofiane Naci <sofiane.naci@arm.com>
13173
13174 * arm.md (attribute "wtype"): Delete. Move attribute values from here
13175 to ...
13176 (attribute "type"): ... here, and prefix with "wmmx_".
13177 (attribute "core_cycles"): Update for attribute changes.
13178 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
13179 (tbcstv4hi): Likewise.
13180 (tbcstv2si): Likewise.
13181 (iwmmxt_iordi3): Likewise.
13182 (iwmmxt_xordi3): Likewise.
13183 (iwmmxt_anddi3): Likewise.
13184 (iwmmxt_nanddi3): Likewise.
13185 (iwmmxt_arm_movdi): Likewise.
13186 (iwmmxt_movsi_insn): Likewise.
13187 (mov<mode>_internal): Likewise.
13188 (and<mode>3_iwmmxt): Likewise.
13189 (ior<mode>3_iwmmxt): Likewise.
13190 (xor<mode>3_iwmmxt): Likewise.
13191 (add<mode>3_iwmmxt): Likewise.
13192 (ssaddv8qi3): Likewise.
13193 (ssaddv4hi3): Likewise.
13194 (ssaddv2si3): Likewise.
13195 (usaddv8qi3): Likewise.
13196 (usaddv4hi3): Likewise.
13197 (usaddv2si3): Likewise.
13198 (sub<mode>3_iwmmxt): Likewise.
13199 (sssubv8qi3): Likewise.
13200 (sssubv4hi3): Likewise.
13201 (sssubv2si3): Likewise.
13202 (ussubv8qi3): Likewise.
13203 (ussubv4hi3): Likewise.
13204 (ussubv2si3): Likewise.
13205 (mulv4hi3_iwmmxt): Likewise.
13206 (smulv4hi3_highpart): Likewise.
13207 (umulv4hi3_highpart): Likewise.
13208 (iwmmxt_wmacs): Likewise.
13209 (iwmmxt_wmacsz): Likewise.
13210 (iwmmxt_wmacu): Likewise.
13211 (iwmmxt_wmacuz): Likewise.
13212 (iwmmxt_clrdi): Likewise.
13213 (iwmmxt_clrv8qi): Likewise.
13214 (iwmmxt_clr4hi): Likewise.
13215 (iwmmxt_clr2si): Likewise.
13216 (iwmmxt_uavgrndv8qi3): Likewise.
13217 (iwmmxt_uavgrndv4hi3): Likewise.
13218 (iwmmxt_uavgv8qi3): Likewise.
13219 (iwmmxt_uavgv4hi3): Likewise.
13220 (iwmmxt_tinsrb): Likewise.
13221 (iwmmxt_tinsrh): Likewise.
13222 (iwmmxt_tinsrw): Likewise.
13223 (iwmmxt_textrmub): Likewise.
13224 (iwmmxt_textrmsb): Likewise.
13225 (iwmmxt_textrmuh): Likewise.
13226 (iwmmxt_textrmsh): Likewise.
13227 (iwmmxt_textrmw): Likewise.
13228 (iwmxxt_wshufh): Likewise.
13229 (eqv8qi3): Likewise.
13230 (eqv4hi3): Likewise.
13231 (eqv2si3): Likewise.
13232 (gtuv8qi3): Likewise.
13233 (gtuv4hi3): Likewise.
13234 (gtuv2si3): Likewise.
13235 (gtv8qi3): Likewise.
13236 (gtv4hi3): Likewise.
13237 (gtv2si3): Likewise.
13238 (smax<mode>3_iwmmxt): Likewise.
13239 (umax<mode>3_iwmmxt): Likewise.
13240 (smin<mode>3_iwmmxt): Likewise.
13241 (umin<mode>3_iwmmxt): Likewise.
13242 (iwmmxt_wpackhss): Likewise.
13243 (iwmmxt_wpackwss): Likewise.
13244 (iwmmxt_wpackdss): Likewise.
13245 (iwmmxt_wpackhus): Likewise.
13246 (iwmmxt_wpackwus): Likewise.
13247 (iwmmxt_wpackdus): Likewise.
13248 (iwmmxt_wunpckihb): Likewise.
13249 (iwmmxt_wunpckihh): Likewise.
13250 (iwmmxt_wunpckihw): Likewise.
13251 (iwmmxt_wunpckilb): Likewise.
13252 (iwmmxt_wunpckilh): Likewise.
13253 (iwmmxt_wunpckilw): Likewise.
13254 (iwmmxt_wunpckehub): Likewise.
13255 (iwmmxt_wunpckehuh): Likewise.
13256 (iwmmxt_wunpckehuw): Likewise.
13257 (iwmmxt_wunpckehsb): Likewise.
13258 (iwmmxt_wunpckehsh): Likewise.
13259 (iwmmxt_wunpckehsw): Likewise.
13260 (iwmmxt_wunpckelub): Likewise.
13261 (iwmmxt_wunpckeluh): Likewise.
13262 (iwmmxt_wunpckeluw): Likewise.
13263 (iwmmxt_wunpckelsb): Likewise.
13264 (iwmmxt_wunpckelsh): Likewise.
13265 (iwmmxt_wunpckelsw): Likewise.
13266 (ror<mode>3): Likewise.
13267 (ashr<mode>3_iwmmxt): Likewise.
13268 (lshr<mode>3_iwmmxt): Likewise.
13269 (ashl<mode>3_iwmmxt): Likewise.
13270 (ror<mode>3_di): Likewise.
13271 (ashr<mode>3_di): Likewise.
13272 (lshr<mode>3_di): Likewise.
13273 (ashl<mode>3_di): Likewise.
13274 (iwmmxt_wmadds): Likewise.
13275 (iwmmxt_wmaddu): Likewise.
13276 (iwmmxt_tmia): Likewise.
13277 (iwmmxt_tmiaph): Likewise.
13278 (iwmmxt_tmiabb): Likewise.
13279 (iwmmxt_tmiatb): Likewise.
13280 (iwmmxt_tmiabt): Likewise.
13281 (iwmmxt_tmiatt): Likewise.
13282 (iwmmxt_tmovmskb): Likewise.
13283 (iwmmxt_tmovmskh): Likewise.
13284 (iwmmxt_tmovmskw): Likewise.
13285 (iwmmxt_waccb): Likewise.
13286 (iwmmxt_wacch): Likewise.
13287 (iwmmxt_waccw): Likewise.
13288 (iwmmxt_waligni): Likewise.
13289 (iwmmxt_walignr): Likewise.
13290 (iwmmxt_walignr0): Likewise.
13291 (iwmmxt_walignr1): Likewise.
13292 (iwmmxt_walignr2): Likewise.
13293 (iwmmxt_walignr3): Likewise.
13294 (iwmmxt_wsadb): Likewise.
13295 (iwmmxt_wsadh): Likewise.
13296 (iwmmxt_wsadbz): Likewise.
13297 (iwmmxt_wsadhz): Likewise.
13298 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
13299 (iwmmxt_wabsdiffb): Likewise.
13300 (iwmmxt_wabsdiffh): Likewise.
13301 (iwmmxt_wabsdiffw): Likewise.
13302 (iwmmxt_waddsubhx): Likewise
13303 (iwmmxt_wsubaddhx): Likewise.
13304 (addc<mode>3): Likewise.
13305 (iwmmxt_avg4): Likewise.
13306 (iwmmxt_avg4r): Likewise.
13307 (iwmmxt_wmaddsx): Likewise.
13308 (iwmmxt_wmaddux): Likewise.
13309 (iwmmxt_wmaddsn): Likewise.
13310 (iwmmxt_wmaddun): Likewise.
13311 (iwmmxt_wmulwsm): Likewise.
13312 (iwmmxt_wmulwum): Likewise.
13313 (iwmmxt_wmulsmr): Likewise.
13314 (iwmmxt_wmulumr): Likewise.
13315 (iwmmxt_wmulwsmr): Likewise.
13316 (iwmmxt_wmulwumr): Likewise.
13317 (iwmmxt_wmulwl): Likewise.
13318 (iwmmxt_wqmulm): Likewise.
13319 (iwmmxt_wqmulwm): Likewise.
13320 (iwmmxt_wqmulmr): Likewise.
13321 (iwmmxt_wqmulwmr): Likewise.
13322 (iwmmxt_waddbhusm): Likewise.
13323 (iwmmxt_waddbhusl): Likewise.
13324 (iwmmxt_wqmiabb): Likewise.
13325 (iwmmxt_wqmiabt): Likewise.
13326 (iwmmxt_wqmiatb): Likewise.
13327 (iwmmxt_wqmiatt): Likewise.
13328 (iwmmxt_wqmiabbn): Likewise.
13329 (iwmmxt_wqmiabtn): Likewise.
13330 (iwmmxt_wqmiatbn): Likewise.
13331 (iwmmxt_wqmiattn): Likewise.
13332 (iwmmxt_wmiabb): Likewise.
13333 (iwmmxt_wmiabt): Likewise.
13334 (iwmmxt_wmiatb): Likewise.
13335 (iwmmxt_wmiatt): Likewise.
13336 (iwmmxt_wmiabbn): Likewise.
13337 (iwmmxt_wmiabtn): Likewise.
13338 (iwmmxt_wmiatbn): Likewise.
13339 (iwmmxt_wmiattn): Likewise.
13340 (iwmmxt_wmiawbb): Likewise.
13341 (iwmmxt_wmiawbt): Likewise.
13342 (iwmmxt_wmiawtb): Likewise.
13343 (iwmmxt_wmiawtt): Likewise.
13344 (iwmmxt_wmiawbbn): Likewise.
13345 (iwmmxt_wmiawbtn): Likewise.
13346 (iwmmxt_wmiawtbn): Likewise.
13347 (iwmmxt_wmiawttn): Likewise.
13348 (iwmmxt_wmerge): Likewise.
13349 (iwmmxt_tandc<mode>3): Likewise.
13350 (iwmmxt_torc<mode>3): Likewise.
13351 (iwmmxt_torvsc<mode>3): Likewise.
13352 (iwmmxt_textrc<mode>3): Likewise.
13353 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
13354 (wmmxt_pack): Likewise.
13355 (wmmxt_mult_c1): Likewise.
13356 (wmmxt_mult_c2): Likewise.
13357 (wmmxt_alu_c1): Likewise.
13358 (wmmxt_alu_c2): Likewise.
13359 (wmmxt_alu_c3): Likewise.
13360 (wmmxt_transfer_c1): Likewise.
13361 (wmmxt_transfer_c2): Likewise.
13362 (wmmxt_transfer_c3): Likewise.
13363 (marvell_f_iwmmxt_wstr): Likewise.
13364 (marvell_f_iwmmxt_wldr): Likewise.
13365
bdb7bf8a
YZ
133662013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
13367
0ba6aff3 13368 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 13369
e6631d38
VM
133702013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13371
13372 Revert:
13373 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13374 * lra-constraints.c (need_for_split_p): Check call used hard regs
13375 living through calls.
13376
13377 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
13378 call used regs for call insn.
13379
53c1275b
JJ
133802013-06-28 Jakub Jelinek <jakub@redhat.com>
13381
13382 PR target/57736
0ba6aff3
UB
13383 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
13384 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 13385
1141ed3f
BI
133862013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
13387
13388 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 13389
e32e4c4a
VM
133902013-06-28 Vladimir Makarov <vmakarov@redhat.com>
13391
13392 * lra-constraints.c (need_for_split_p): Check call used hard regs
13393 living through calls.
13394
f161bfd3
MM
133952013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
13396
13397 PR target/57744
13398 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
13399 to tie with any other modes. Eliminate Altivec vector mode tests,
13400 since these are a subset of ALTIVEC or VSX vector modes. Simplify
13401 code, to return 0 if testing MODE2 for a condition, if we've
13402 already tested MODE1 for the same condition.
13403
7eda14e1
MS
134042013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13405
13406 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
13407 layout.
13408
c822f852
MS
134092013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13410
13411 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
13412 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
13413
da4f13a4
MS
134142013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
13415
0ba6aff3
UB
13416 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
13417 Define.
da4f13a4
MS
13418 (aarch64_symbolic_constant_p): Remove.
13419 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
13420 static. Fix line length and white space.
13421 (aarch64_symbolic_constant_p): Remove.
13422 * config/aarch64/predicates.md (aarch64_valid_symref):
13423 Use aarch64_classify_symbol_expression.
13424
956a95a5
KT
134252013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13426
13427 * config/arm/constraints.md (Ts): New constraint.
13428 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
13429 16-bit encodings.
13430 (compare_scc): Use "Ts" constraint for operand 0.
13431 (ior_scc_scc): Likewise.
13432 (and_scc_scc): Likewise.
13433 (and_scc_scc_nodom): Likewise.
13434 (ior_scc_scc_cmp): Likewise for operand 7.
13435 (and_scc_scc_cmp): Likewise.
13436 * config/arm/thumb2.md (thumb2_movsi_insn):
13437 Add alternatives for 16-bit encodings.
13438 (thumb2_movhi_insn): Likewise.
13439 (thumb2_movsicc_insn): Likewise.
13440 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
13441 (thumb2_negscc): Use "Ts" constraint.
13442 Move mvn instruction outside cond_exec block.
13443 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
13444 for 16-bit encodings.
13445
31dfce10
KT
134462013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13447
13448 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
13449 encoding.
13450 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
13451 (mulsi3subsi): Likewise.
13452 (mulsidi3adddi): Likewise.
13453 (mulsidi3_v6): Likewise.
13454 (umulsidi3_v6): Likewise.
13455 (umulsidi3adddi_v6): Likewise.
13456 (smulsi3_highpart_v6): Likewise.
13457 (umulsi3_highpart_v6): Likewise.
13458 (mulhisi3tb): Likewise.
13459 (mulhisi3bt): Likewise.
13460 (mulhisi3tt): Likewise.
13461 (maddhisi4): Likewise.
13462 (maddhisi4tb): Likewise.
13463 (maddhisi4tt): Likewise.
13464 (maddhidi4): Likewise.
13465 (maddhidi4tb): Likewise.
13466 (maddhidi4tt): Likewise.
13467 (zeroextractsi_compare0_scratch): Likewise.
13468 (insv_zero): Likewise.
13469 (insv_t2): Likewise.
13470 (anddi_notzesidi_di): Likewise.
13471 (anddi_notsesidi_di): Likewise.
13472 (andsi_notsi_si): Likewise.
13473 (iordi_zesidi_di): Likewise.
13474 (xordi_zesidi_di): Likewise.
13475 (andsi_iorsi3_notsi): Likewise.
13476 (smax_0): Likewise.
13477 (smax_m1): Likewise.
13478 (smin_0): Likewise.
13479 (not_shiftsi): Likewise.
13480 (unaligned_loadsi): Likewise.
13481 (unaligned_loadhis): Likewise.
13482 (unaligned_loadhiu): Likewise.
13483 (unaligned_storesi): Likewise.
13484 (unaligned_storehi): Likewise.
13485 (extv_reg): Likewise.
13486 (extzv_t2): Likewise.
13487 (divsi3): Likewise.
13488 (udivsi3): Likewise.
13489 (arm_zero_extendhisi2addsi): Likewise.
13490 (arm_zero_extendqisi2addsi): Likewise.
13491 (compareqi_eq0): Likewise.
13492 (arm_extendhisi2_v6): Likewise.
13493 (arm_extendqisi2addsi): Likewise.
13494 (arm_movt): Likewise.
13495 (thumb2_ldrd): Likewise.
13496 (thumb2_ldrd_base): Likewise.
13497 (thumb2_ldrd_base_neg): Likewise.
13498 (thumb2_strd): Likewise.
13499 (thumb2_strd_base): Likewise.
13500 (thumb2_strd_base_neg): Likewise.
13501 (arm_negsi2): Add alternative for 16-bit encoding.
13502 (arm_one_cmplsi2): Likewise.
13503
1572e697
KT
135042013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13505
13506 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
13507 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
13508 (movdfcc): Likewise.
13509 * config/arm/vfp.md (*thumb2_movsf_vfp):
13510 Disable predication for arm_restrict_it.
13511 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
13512 (*thumb2_movdfcc_vfp): Likewise.
13513 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
13514 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
13515 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
13516 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
13517 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
13518 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
13519 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
13520 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
13521 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
13522 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
13523 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
13524 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
13525 Disable predication for arm_restrict_it.
13526
ebf8f0ea
KY
135272013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
13528
13529 * config/i386/bmiintrin.h (_bextr_u32): New.
13530 (_bextr_u64): Ditto.
13531
a290fcda
RS
135322013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
13533
13534 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
13535 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
13536 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
13537 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
13538 * config/mips/n32-elf.h: ...this new file.
13539
ea169996
MG
135402013-06-27 Marc Glisse <marc.glisse@inria.fr>
13541
13542 PR target/57224
13543 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
13544 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
13545
12211b99 135462013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
13547
13548 * config/mips/mips-tables.opt: Regenerate.
13549 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 13550 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 13551 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 13552
2444244e
JJ
135532013-06-27 Jakub Jelinek <jakub@redhat.com>
13554
cd06d2a2
JJ
13555 PR target/57623
13556 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
13557 constraints of operand 1 and 2.
13558
2444244e
JJ
13559 PR target/57623
13560 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
13561 to match RTL canonicalization. Swap predicates and
13562 constraints of operand 1 and 2.
13563
2f259720
VM
135642013-06-27 Vladimir Makarov <vmakarov@redhat.com>
13565
0ba6aff3
UB
13566 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
13567 Process OP_INOUT regs for splitting too.
2f259720 13568
fef4d2b3
JJ
135692013-06-27 Jakub Jelinek <jakub@redhat.com>
13570
13571 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
13572 decl before the loop, initialize to NULL.
13573 (vectorizable_load): Initialize ptr_incr to NULL.
13574
79ee9826
MJ
135752013-06-27 Martin Jambor <mjambor@suse.cz>
13576
13577 PR lto/57208
13578 * ipa-ref.h (ipa_maybe_record_reference): Declare.
13579 * ipa-ref.c (ipa_maybe_record_reference): New function.
13580 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
13581 * ipa-cp.c (create_specialized_node): Record potential references from
13582 aggvals.
13583 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
13584
e18b4a81
YZ
135852013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
13586
13587 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
13588 parameter 'mode' of type 'enum machine_mode mode'; change to pass
13589 'mode' to force_reg.
13590 (aarch64_add_offset): Update calls to aarch64_force_temporary.
13591 (aarch64_expand_mov_immediate): Likewise.
13592
9c023bf0
YZ
135932013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
13594
13595 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
13596 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
13597
5a3fe9b6
AK
135982013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13599
13600 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
13601 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
13602 (struct machine_function): Add tbegin_p.
13603 (s390_canonicalize_comparison): Fold CC mode compares to
13604 conditional jump if possible.
13605 (s390_emit_jump): Return the emitted jump.
13606 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
13607 Handle CCRAWmode compares.
13608 (s390_option_override): Default to -mhtm if available.
13609 (s390_reg_clobbered_rtx): Handle floating point regs as well.
13610 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
13611 FPRs instead of df_regs_ever_live_p.
13612 (s390_optimize_nonescaping_tx): New function.
13613 (s390_init_frame_layout): Extend clobbered_regs array to cover
13614 FPRs as well.
13615 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
13616 (s390_expand_tbegin): New function.
13617 (enum s390_builtin): New enum definition.
13618 (code_for_builtin): New array definition.
13619 (s390_init_builtins): New function.
13620 (s390_expand_builtin): New function.
13621 (TARGET_INIT_BUILTINS): Define.
13622 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 13623 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
13624 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
13625 (s390_alc_comparison): Likewise.
13626 * config/s390/s390-modes.def: Add CCRAWmode.
13627 * config/s390/s390.h (processor_flags): Add PF_TX.
13628 (TARGET_CPU_HTM): Define macro.
13629 (TARGET_HTM): Define macro.
13630 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
13631 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
13632 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
13633 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 13634 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
13635 (TBEGIN_MASK, TBEGINC_MASK): New constants.
13636 ("*cc_to_int"): Move up.
13637 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
13638 constants other than 0.
13639 ("*ccraw_to_int"): New insn and splitter definition.
13640 ("tbegin", "tbegin_nofloat", "tbegin_retry")
13641 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
13642 ("tx_assist"): New expander.
13643 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
13644 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
13645 * config/s390/s390.opt: Add -mhtm option.
13646 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
13647 * config/s390/htmxlintrin.h: New file.
13648 * config/s390/htmintrin.h: New file.
13649 * config/s390/s390intrin.h: New file.
13650 * doc/extend.texi: Document htm builtins.
13651 * config.gcc: Add the new header files to extra_headers.
13652
9e216629
TS
136532013-06-26 Thomas Schwinge <thomas@codesourcery.com>
13654
13655 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 13656 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 13657
fd8c65e7 136582013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13659 Pat Haugen <pthaugen@us.ibm.com>
13660 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
13661
13662 * config/rs6000/power8.md: New.
13663 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
13664 setting for power8 entry.
13665 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
13666 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
13667 test for Power4/Power5 only.
13668 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
13669 support.
13670 (force_new_group): Adjust comment.
13671 * config/rs6000/rs6000.md: Include power8.md.
13672
b24a2ce5
GY
136732013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
13674
13675 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
13676 * config/arm/arm-protos.h (arm_max_conditional_execute): New
13677 declaration.
13678 (tune_params): Update comment.
13679 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
13680 (arm_max_conditional_execute): New function.
13681 (thumb2_final_prescan_insn): Use max_insn_skipped and
13682 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
13683
f6fdeb62
JJ
136842013-06-25 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR tree-optimization/57705
13687 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
13688 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 13689 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
13690 (get_initial_def_for_induction): Handle SSA_NAME IV step.
13691
c13bc3d9
MJ
136922013-06-25 Martin Jambor <mjambor@suse.cz>
13693
13694 PR middle-end/57670
13695 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
13696 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
13697 calls in the dump.
13698 (ipa_note_param_call): Initialize member_ptr flag.
13699 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
13700 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
13701 (ipa_write_indirect_edge_info): Stream member_ptr flag.
13702 (ipa_read_indirect_edge_info): Likewise.
13703
8a845901
RB
137042013-06-25 Richard Biener <rguenther@suse.de>
13705
13706 PR middle-end/56977
13707 * passes.c (init_optimization_passes): Move pass_fold_builtins
13708 and pass_dce earlier with -Og.
13709
33be0bec
EB
137102013-06-25 Eric Botcazou <ebotcazou@adacore.com>
13711
13712 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
13713 <BIT_FIELD_REF>: Remove trailing TAB.
13714 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
13715 remove blank line.
13716
5fe8e757
MJ
137172013-06-24 Martin Jambor <mjambor@suse.cz>
13718
13719 PR tree-optimization/57358
13720 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
13721 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
13722 (ipa_analyze_params_uses): Generate pessimistic info when true.
13723
44a60244
MJ
137242013-06-24 Martin Jambor <mjambor@suse.cz>
13725
13726 PR tree-optimization/57539
13727 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
13728 global.inlined_to of the new node to it. All callers changed.
13729 * ipa-inline-transform.c (clone_inlined_nodes): New variable
13730 inlining_into, pass it to cgraph_clone_node.
13731 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
13732 ipa_free_edge_args_substructures.
13733 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
13734 rdesc linked list. Do not assert rdesc edges have inlined caller.
13735 Assert we have found an rdesc in the rdesc list.
13736
7c5848b8
RB
137372013-06-24 Richard Biener <rguenther@suse.de>
13738
0ba6aff3 13739 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
13740 (pointer_set_lookup): Declare.
13741 (class pointer_map): New template class implementing a
13742 generic pointer to T map.
13743 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
13744 pointer_map<T>::contains, pointer_map<T>::insert,
13745 pointer_map<T>::traverse): New functions.
13746 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
13747 (pointer_set_lookup): New function.
13748 (pointer_set_contains): Use pointer_set_lookup.
13749 (pointer_set_insert): Likewise.
13750 (insert_aux): Remove.
13751 (struct pointer_map_t): Embed a pointer_set_t.
13752 (pointer_map_create): Adjust.
13753 (pointer_map_destroy): Likewise.
13754 (pointer_map_contains): Likewise.
13755 (pointer_map_insert): Likewise.
13756 (pointer_map_traverse): Likewise.
13757 * tree-streamer.h (struct streamer_tree_cache_d): Use a
13758 pointer_map<unsigned> instead of a pointer_map_t.
13759 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
13760 (streamer_tree_cache_lookup): Likewise.
13761 (streamer_tree_cache_create): Likewise.
13762 (streamer_tree_cache_delete): Likewise.
13763 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
13764 pointer_map<unsigned> instead of a pointer_map_t.
13765 (lto_init_tree_ref_encoder): Adjust.
13766 (lto_destroy_tree_ref_encoder): Likewise.
13767 * lto-section-out.c (lto_output_decl_index): Likewise.
13768 (lto_record_function_out_decl_state): Likewise.
13769 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
13770
3dbc97a9
RB
137712013-06-24 Richard Biener <rguenther@suse.de>
13772
13773 PR tree-optimization/57488
13774 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
13775
8345965a
AM
137762013-06-24 Alan Modra <amodra@gmail.com>
13777
13778 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
13779 (gen_easy_altivec_constant): Likewise.
13780 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13781 easy_vector_constant_msb): Likewise.
13782
b7df379f
JJ
137832013-06-23 Jakub Jelinek <jakub@redhat.com>
13784
13785 PR target/57688
13786 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
13787 add missing return true.
13788
12211b99 137892013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
13790
13791 PR target/52483
13792 * config/sh/predicates.md (general_extend_operand): Invoke
13793 general_movsrc_operand for memory operands.
13794 (general_movsrc_operand): Allow reg+reg addressing, do not use
13795 general_operand for memory operands.
13796
97db2bf7
ST
137972013-06-23 Sriraman Tallam <tmsriram@google.com>
13798
13799 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
13800 when current target options does not apply.
13801 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
13802 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
13803 * config/i386/bmiintrin.h: Pass appropriate target
13804 attributes to header.
97db2bf7
ST
13805 * config/i386/mmintrin.h: Ditto.
13806 * config/i386/nmmintrin.h: Ditto.
13807 * config/i386/avx2intrin.h: Ditto.
13808 * config/i386/fxsrintrin.h: Ditto.
13809 * config/i386/tbmintrin.h: Ditto.
13810 * config/i386/xsaveintrin.h: Ditto.
13811 * config/i386/f16cintrin.h: Ditto.
13812 * config/i386/xtestintrin.h: Ditto.
13813 * config/i386/xsaveoptintrin.h: Ditto.
13814 * config/i386/bmi2intrin.h: Ditto.
13815 * config/i386/lzcntintrin.h: Ditto.
13816 * config/i386/smmintrin.h: Ditto.
13817 * config/i386/wmmintrin.h: Ditto.
13818 * config/i386/x86intrin.h: Remove all header include guards.
13819 * config/i386/prfchwintrin.h: Ditto.
13820 * config/i386/pmmintrin.h: Ditto.
13821 * config/i386/tmmintrin.h: Ditto.
13822 * config/i386/xmmintrin.h: Ditto.
13823 * config/i386/popcntintrin.h: Ditto.
13824 * config/i386/rdseedintrin.h: Ditto.
13825 * config/i386/ammintrin.h: Ditto.
13826 * config/i386/emmintrin.h: Ditto.
13827 * config/i386/immintrin.h: Remove all header include guards.
13828 * config/i386/fma4intrin.h: Ditto.
13829 * config/i386/lwpintrin.h: Ditto.
13830 * config/i386/xopintrin.h: Ditto.
13831 * config/i386/ia32intrin.h: Ditto.
13832 * config/i386/avxintrin.h: Ditto.
13833 * config/i386/rtmintrin.h: Ditto.
13834 * config/i386/fmaintrin.h: Ditto.
13835 * config/i386/mm3dnow.h: Ditto.
13836
495e6879
ST
138372013-06-22 Sriraman Tallam <tmsriram@google.com>
13838
13839 * common/config/i386/i386-common.c: Handle LZCNT.
13840
11e8f687
AK
138412013-06-22 Andi Kleen <ak@linux.intel.com>
13842
13843 * doc/extend.texi: Use __atomic_store_n instead of
13844 __atomic_store in HLE example.
13845
12211b99 138462013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
13847
13848 * config/sh/sh.c: Remove <cstdlib> workaround.
13849
927f908b
AK
138502013-06-21 Andi Kleen <ak@linux.intel.com>
13851
0ba6aff3 13852 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 13853
cca410b6
AK
138542013-06-21 Andi Kleen <ak@linux.intel.com>
13855
13856 * doc/extend.texi: Document that __atomic_clear and
13857 __atomic_test_and_set should only be used with bool.
13858
d84db1ed
JH
138592013-06-20 Jan Hubicka <jh@suse.cz>
13860
13861 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
13862 types_same_for_odr.
13863 * tree.c (decls_same_for_odr): New function.
13864 (same_for_edr): New function.
13865 (types_same_for_odr): New function.
13866 (get_binfo_at_offset): Use it.
13867 * tree.h (types_same_for_odr): Declare.
13868
12211b99 138692013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
13870 Jason Merrill <jason@redhat.com>
13871
13872 * system.h: Include <cstdlib> as well as <stdlib.h>.
13873
49b4ff63
UB
138742013-06-20 Uros Bizjak <ubizjak@gmail.com>
13875
13876 PR target/57655
13877 * config/i386/i386.c (construct_container): Report error if
13878 long double is used with disabled x87 float returns.
13879
7a89ad00
JH
138802013-06-20 Jan Hubicka <jh@suse.cz>
13881
13882 * lto-cgraph.c (input_symtab): Do not set cgraph state.
13883
12211b99 138842013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
13885
13886 PR rtl-optimization/57425
13887 PR rtl-optimization/57569
13888 * alias.c (write_dependence_p): Remove parameters mem_mode and
13889 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
13890 Changed all callers.
13891 (canon_anti_dependence): Get comments and semantics in sync.
13892 Add parameter mem_canonicalized. Changed all callers.
13893 * rtl.h (canon_anti_dependence): Update prototype.
13894
d16e9a99
RB
138952013-06-20 Richard Biener <rguenther@suse.de>
13896
13897 * data-streamer-in.c (streamer_read_uhwi): Optimize single
13898 byte case, inline streamer_read_uchar and defer section
13899 overrun check.
13900
c3a9b91b
RB
139012013-06-20 Richard Biener <rguenther@suse.de>
13902
13903 PR tree-optimization/57584
13904 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
13905 SSA names into the expanded expression that take part in
13906 abnormal coalescing.
13907
371e77e3 139082013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
13909
13910 * gcov.c (print_usage): Handle new option.
13911 (process_args): Ditto.
13912 (get_gcov_intermediate_filename): New function.
13913 (output_intermediate_file): New function.
13914 (output_gcov_file): New function
13915 (generate_results): Handle new option.
13916 (release_function): Relase demangled name.
13917 (read_graph_file): Handle demangled name.
13918 (output_lines): Ditto.
13919 * doc/gcov.texi: Document gcov intermediate format.
13920
11f5b71a
VM
139212013-06-19 Vladimir Makarov <vmakarov@redhat.com>
13922
13923 PR bootstrap/57604
13924 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
13925 (lra_emit_add): Use the functions. Add comment about Y as an
13926 address segment.
13927
e1f9340b
DE
139282013-06-19 David Edelsohn <dje.gcc@gmail.com>
13929
13930 PR driver/57652
13931 * collect2.c (collect_atexit): New.
13932 (collect_exit): Delete.
13933 (main): Register collect_atexit with atexit.
13934 (collect_wait): Change collect_exit to exit.
13935 (do_wait): Same.
13936 * collect2.h (collect_exit): Delete.
13937 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
13938
e3f9e0ac
WM
139392013-06-19 Wei Mi <wmi@google.com>
13940
13941 PR rtl-optimization/57518
13942 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
13943 if regno is used in paradoxical subreg.
13944 (update_equiv_regs): Check pdx_subregs[regno] before
13945 set a reg to be equivalent with a mem.
13946
a09f1a76
MK
139472013-06-19 Matthias Klose <doko@ubuntu.com>
13948
13949 PR driver/57651
13950 * file-find.h (find_a_file): Add a mode parameter.
13951 * file-find.c (find_a_file): Likewise.
13952 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
13953 with X_OK for the executables.
13954 * collect2.c (main): Call find_a_file with X_OK.
13955
7d18b0ad
SE
139562013-06-19 Steve Ellcey <sellcey@mips.com>
13957
13958 PR target/56942
13959 * config/mips/mips.md (casesi_internal_mips16_<mode>):
13960 Use NEXT_INSN instead of next_real_insn.
13961
6a6dac52
JH
139622013-06-19 Jan Hubicka <jh@suse.cz>
13963
13964 * cgraph.h (const_value_known_p): Replace by ...
13965 (ctor_for_folding): .. this one.
13966 * cgraphunit.c (process_function_and_variable_attributes): Use it.
13967 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
13968 * expr.c (expand_expr_real_1): Likewise.
13969 (string_constant): Likewise.
13970 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
13971 * ipa.c (process_references): Likewise.
13972 (symtab_remove_unreachable_nodes): Likewise.
13973 * ipa-inline-analysis.c (param_change_prob): Likewise.
13974 * gimple-fold.c (canonicalize_constructor_val): Likewise.
13975 (get_base_constructor): Likwise.
13976 * varpool.c (varpool_remove_node): Likewise.
13977 (varpool_remove_initializer): LIkewise.
13978 (dump_varpool_node): LIkwise.
13979 (const_value_known_p): Rewrite to ...
13980 (ctor_for_folding): ... this one.
13981
216c12ab
JJ
139822013-06-19 Jakub Jelinek <jakub@redhat.com>
13983
13984 PR driver/57651
13985 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
13986 PERSONALITY in $PATH derived prefixes.
13987
d53e2f99
JL
139882013-06-19 Jeff Law <law@redhat.com>
13989
ecdbf306
JL
13990 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
13991 in comment.
13992
d53e2f99
JL
13993 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
13994 (simplify_bitwise_binary): Use it to simpify certain binary ops on
13995 booleans.
13996
89e7fc04
SN
139972013-06-19 Sofiane Naci <sofiane.naci@arm.com>
13998
13999 * config/arm/vfp.md: Move VFP instruction classification documentation
14000 to ...
14001 * config/arm/arm.md: ... here. Update instruction classification
14002 documentation.
14003
5e7f6aaa
RE
140042013-06-19 Richard Earnshaw <rearnsha@arm.com>
14005
14006 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
14007 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
14008 pattern. Use more efficient sequences on ARMv5 and Thumb2.
14009
5fdc1e5d
SB
140102013-06-19 Steven Bosscher <steven@gcc.gnu.org>
14011
14012 PR target/57609
14013 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
14014 with NEXT_INSN. Use tablejump_p to check for jump table data
14015 insns.
14016
e952afba
PC
140172013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
14018
14019 PR c++/56544
14020 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
14021 that now in C++ the value is correct per the C++ standards.
14022
3fd0303a
RB
140232013-06-19 Richard Biener <rguenther@suse.de>
14024
14025 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
14026 for global context.
14027
b04e4b08
AK
140282013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14029
14030 Revert:
14031 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14032
14033 PR target/57609
14034 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
14035 with next_active_insn.
14036
bef8491a
ST
140372013-06-18 Sriraman Tallam <tmsriram@google.com>
14038
14039 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
14040 functions are inlined during failures to flag an error.
14041 * tree-inline.c (expand_call_inline): Allow the error to be flagged
14042 in early inline pass.
22fc7d3d 14043
c21b257d
L
140442013-06-18 H.J. Lu <hongjiu.lu@intel.com>
14045
14046 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
14047 in comments.
14048
33255ae3
JB
140492013-06-18 Julian Brown <julian@codesourcery.com>
14050
14051 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
14052 Permit virtual register pre-reload if !strict.
14053 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
14054 change.
14055 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
14056 prototype.
14057 * config/arm/neon.md (movmisalign<mode>): Use
14058 neon_perm_struct_or_reg_operand instead of
14059 neon_struct_or_register_operand.
14060 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
14061 neon_permissive_struct_operand instead of neon_struct_operand.
14062 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
14063 neon_vector_mem_operand.
14064 * config/arm/predicates.md (neon_struct_operand): Adjust call to
14065 neon_vector_mem_operand.
14066 (neon_permissive_struct_operand): New.
14067 (neon_struct_or_register_operand): Rename to...
14068 (neon_perm_struct_or_reg_operand): This. Adjust call to
14069 neon_vector_mem_operand.
14070
d579fcda
RB
140712013-06-18 Richard Biener <rguenther@suse.de>
14072
14073 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
14074 * lto-streamer.h: Include pointer-set.h.
14075 (struct lto_decl_slot): Remove.
14076 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
14077 Remove next_index entry.
14078 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
14079 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
14080 (lto_init_tree_ref_encoder): Adjust.
14081 (lto_destroy_tree_ref_encoder): Likewise.
14082 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
14083 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
14084 (lto_output_decl_index): Adjust.
14085 (lto_new_out_decl_state): Likewise.
14086 (lto_record_function_out_decl_state): Likewise.
14087 * lto-streamer-out.c (copy_function): Likewise.
14088
31ee20ba
RB
140892013-06-18 Richard Biener <rguenther@suse.de>
14090
14091 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
14092 * cgraphunit.c: Include cfgloop.h.
14093 (init_lowered_empty_function): Initialize the loop tree.
14094 (assemble_thunk): Insert new BBs into loops.
14095
ac0511f2
RB
140962013-06-18 Richard Biener <rguenther@suse.de>
14097
14098 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
14099 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
14100 the map from cache entry to cache index optional.
14101 (streamer_tree_cache_replace_tree): Adjust accordingly.
14102 (streamer_tree_cache_append): Likewise.
14103 (streamer_tree_cache_delete): Likewise.
14104 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
14105 streamer cache map from cache entry to cache index.
14106 * lto-streamer-out.c (create_output_block): Adjust.
14107
09485a08
SN
141082013-06-18 Sofiane Naci <sofiane.naci@arm.com>
14109
22fc7d3d
UB
14110 * config/arm/arm.md (attribute "insn"): Move multiplication and
14111 division attributes to...
09485a08
SN
14112 (attribute "type"): ... here. Remove mult.
14113 (attribute "mul32"): New attribute.
14114 (attribute "mul64"): Add umaal.
14115 (*arm_mulsi3): Update attributes.
14116 (*arm_mulsi3_v6): Likewise.
14117 (*thumb_mulsi3): Likewise.
14118 (*thumb_mulsi3_v6): Likewise.
14119 (*mulsi3_compare0): Likewise.
14120 (*mulsi3_compare0_v6): Likewise.
14121 (*mulsi_compare0_scratch): Likewise.
14122 (*mulsi_compare0_scratch_v6): Likewise.
14123 (*mulsi3addsi): Likewise.
14124 (*mulsi3addsi_v6): Likewise.
14125 (*mulsi3addsi_compare0): Likewise.
14126 (*mulsi3addsi_compare0_v6): Likewise.
14127 (*mulsi3addsi_compare0_scratch): Likewise.
14128 (*mulsi3addsi_compare0_scratch_v6): Likewise.
14129 (*mulsi3subsi): Likewise.
14130 (*mulsidi3adddi): Likewise.
14131 (*mulsi3addsi_v6): Likewise.
14132 (*mulsidi3adddi_v6): Likewise.
14133 (*mulsidi3_nov6): Likewise.
14134 (*mulsidi3_v6): Likewise.
14135 (*umulsidi3_nov6): Likewise.
14136 (*umulsidi3_v6): Likewise.
14137 (*umulsidi3adddi): Likewise.
14138 (*umulsidi3adddi_v6): Likewise.
14139 (*smulsi3_highpart_nov6): Likewise.
14140 (*smulsi3_highpart_v6): Likewise.
14141 (*umulsi3_highpart_nov6): Likewise.
14142 (*umulsi3_highpart_v6): Likewise.
14143 (mulhisi3): Likewise.
14144 (*mulhisi3tb): Likewise.
14145 (*mulhisi3bt): Likewise.
14146 (*mulhisi3tt): Likewise.
14147 (maddhisi4): Likewise.
14148 (*maddhisi4tb): Likewise.
14149 (*maddhisi4tt): Likewise.
14150 (maddhidi4): Likewise.
14151 (*maddhidi4tb): Likewise.
14152 (*maddhidi4tt): Likewise.
14153 (divsi3): Likewise.
14154 (udivsi3): Likewise.
14155 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
14156 (thumb2_mulsi_short_compare0): Likewise.
14157 (thumb2_mulsi_short_compare0_scratch): Likewise.
14158 * config/arm/arm1020e.md (1020mult1): Update attribute change.
14159 (1020mult2): Likewise.
14160 (1020mult3): Likewise.
14161 (1020mult4): Likewise.
14162 (1020mult5): Likewise.
14163 (1020mult6): Likewise.
22fc7d3d
UB
14164 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
14165 change.
09485a08
SN
14166 (cortex_a15_mult64): Likewise.
14167 (cortex_a15_sdiv): Likewise.
14168 (cortex_a15_udiv): Likewise.
14169 * config/arm/arm1026ejs.md (mult1): Update attribute change.
14170 (mult2): Likewise.
14171 (mult3): Likewise.
14172 (mult4): Likewise.
14173 (mult5): Likewise.
14174 (mult6): Likewise.
14175 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
14176 (pj4_ir_div): Likewise.
14177 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
14178 (11_mult2): Likewise.
14179 (11_mult3): Likewise.
14180 (11_mult4): Likewise.
14181 (11_mult5): Likewise.
14182 (11_mult6): Likewise.
14183 (11_mult7): Likewise.
14184 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
14185 (cortex_a8_mla): Likewise.
14186 (cortex_a8_mull): Likewise.
14187 (cortex_a8_smulwy): Likewise.
14188 (cortex_a8_smlald): Likewise.
14189 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
14190 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
14191 (cortex_r4_mul_3): Likewise.
14192 (cortex_r4_mla_4): Likewise.
14193 (cortex_r4_mla_3): Likewise.
14194 (cortex_r4_smlald): Likewise.
14195 (cortex_r4_mull): Likewise.
14196 (cortex_r4_sdiv): Likewise.
14197 (cortex_r4_udiv): Likewise.
14198 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
14199 (cortex_a7_idiv): Likewise.
14200 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
14201 (9_mult2): Likewise.
14202 (9_mult3): Likewise.
14203 (9_mult4): Likewise.
14204 (9_mult5): Likewise.
14205 (9_mult6): Likewise.
14206 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
14207 (cortex_a53_sdiv): Likewise.
14208 (cortex_a53_udiv): Likewise.
14209 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
14210 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
14211 (mp626_mult2): Likewise.
14212 (mp626_mult3): Likewise.
14213 (mp626_mult4): Likewise.
14214 * config/arm/fa526.md (526_mult1): Update attribute change.
14215 (526_mult2): Likewise.
14216 * config/arm/arm-generic.md (mult): Update attribute change.
14217 (mult_ldsched_strongarm): Likewise.
14218 (mult_ldsched): Likewise.
14219 (multi_cycle): Likewise.
14220 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
14221 * config/arm/fa606te.md (606te_mult1): Update attribute change.
14222 (606te_mult2): Likewise.
14223 (606te_mult3): Likewise.
14224 (606te_mult4): Likewise.
14225 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
14226 (cortex_a9_mac16): Likewise.
14227 (cortex_a9_multiply): Likewise.
14228 (cortex_a9_mac): Likewise.
14229 (cortex_a9_multiply_long): Likewise.
14230 * config/arm/fa626te.md (626te_mult1): Update attribute change.
14231 (626te_mult2): Likewise.
14232 (626te_mult3): Likewise.
14233 (626te_mult4): Likewise.
14234
8951f345
RB
142352013-06-18 Richard Biener <rguenther@suse.de>
14236
14237 PR lto/57334
14238 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
14239
d8101d05
AK
142402013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14241
14242 PR target/57609
14243 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
14244 with next_active_insn.
14245
69eff9da
AM
142462013-06-18 Alan Modra <amodra@gmail.com>
14247
14248 * config/rs6000/rs6000.h (enum data_align): New.
14249 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
14250 (DATA_ABI_ALIGNMENT): Define.
14251 (CONSTANT_ALIGNMENT): Correct comment.
14252 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
14253 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
14254
8ed00d76
DM
142552013-06-17 David Malcolm <dmalcolm@redhat.com>
14256
14257 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
14258 ATTRIBUTE_UNUSED marking.
14259
3d33d06b
SN
142602013-06-17 Sofiane Naci <sofiane.naci@arm.com>
14261
14262 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
14263 alternative and update.
14264 (aarch64_dup_lanedi): Delete.
14265 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
14266 * config/aarch64/aarch64-simd-builtins.def: Update.
14267
ee03e71d
RB
142682013-06-17 Richard Biener <rguenther@suse.de>
14269
14270 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
14271 (lto_input_scc): Declare.
14272 (lto_input_tree_1): Likewise.
14273 (struct lto_stats_d): Add num_tree_bodies_output and
14274 num_pickle_refs_output.
14275 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
14276 (lto_read_tree_1): Split out from ...
14277 (lto_read_tree): ... this.
14278 (lto_input_scc): New function.
14279 (lto_input_tree_1): Split out from ...
14280 (lto_input_tree): ... this. Handle LTO_tree_scc.
14281 (lto_data_in_create): Create the streamer cache without hashes.
14282 * lto-streamer-out.c (create_output_block): Create the streamer
14283 cache with hashes when not doing WPA.
14284 (lto_write_tree_1): Split out from ...
14285 (lto_write_tree): ... this.
14286 (get_symbol_initial_value): New function.
14287 (lto_output_tree_1): Split out from ...
14288 (lto_output_tree): ... this. Write trees as series of SCCs
14289 using a DFS walk via DFS_write_tree.
14290 (struct sccs, struct scc_entry): New types.
14291 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
14292 (DFS_write_tree_body): New function.
14293 (DFS_write_tree): Likewise.
14294 (hash_tree): Likewise.
14295 (scc_entry_compare): Likewise.
14296 (hash_scc): Likewise.
14297 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
14298 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
14299 TREE_CHAIN as regular reference.
14300 (streamer_read_integer_cst): Remove.
14301 (streamer_get_pickled_tree): Adjust.
14302 * tree-streamer-out.c (streamer_write_chain): Disable streaming
14303 of DECL_EXTERNALs in BLOCK_VARS for now.
14304 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
14305 reference.
14306 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
14307 Add hash value argument and record that if hashes are recorded
14308 in the cache.
14309 (streamer_tree_cache_insert_1): Adjust.
14310 (streamer_tree_cache_insert): Likewise.
14311 (streamer_tree_cache_insert_at): Rename to ...
14312 (streamer_tree_cache_replace_tree): ... this and adjust.
14313 (streamer_tree_cache_append): Adjust.
14314 (record_common_node): Likewise.
14315 (streamer_tree_cache_create): Add argument whether to
14316 record hash values together with trees.
14317 (streamer_tree_cache_delete): Adjust.
14318 * tree-streamer.h (struct streamer_tree_cache_d): Add
14319 vector of hashes.
14320 (streamer_read_integer_cst): Remove.
14321 (streamer_tree_cache_insert): Adjust.
14322 (streamer_tree_cache_append): Likewise.
14323 (streamer_tree_cache_insert_at): Rename to ...
14324 (streamer_tree_cache_replace_tree): ... this and adjust.
14325 (streamer_tree_cache_create): Add argument whether to record hashes.
14326 (streamer_tree_cache_get): Rename to ...
14327 (streamer_tree_cache_get_tree): ... this.
14328 (streamer_tree_cache_get_hash): New function.
14329 * tree.c (cache_integer_cst): New function.
14330 * tree.h (cache_integer_cst): Declare.
14331 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
14332 * lto-symtab.c (lto_varpool_replace_node): Only release
14333 DECL_INITIAL of non-prevailing decls.
14334 * varpool.c (varpool_remove_initializer): Do not release
14335 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
14336
0de86a92
JU
143372013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
14338
14339 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
14340 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
14341 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
14342 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
14343 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
14344 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
14345 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
14346 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
14347 instead of TARGET_64BIT.
14348 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
14349 Require ISA_HAS_<D>DIV.
14350
74240413
RS
143512013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
14352
14353 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
14354 (mips*-*-linux*): Move default with_llsc setting to where other
14355 defaults are set.
14356 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
14357 with_arch block.
14358 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
14359 Likewise. Remove default with_tune setting. Move default float
14360 setting to its own block. Handle with_llsc in the same block as above.
14361
12211b99 143622013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
14363
14364 PR rtl-optimization/57425
14365 PR rtl-optimization/57569
299a5f6a 14366 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
14367 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
14368 Changed all callers.
14369 (canon_anti_dependence): New function.
14370 * cse.c (check_dependence): Use canon_anti_dependence.
14371 * cselib.c (cselib_invalidate_mem): Likewise.
14372 * rtl.h (canon_anti_dependence): Declare.
14373
b259d352
JU
143742013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
14375
14376 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
14377 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
14378 ".set mips3" for 64-bit targets.
14379
4de09b85
DC
143802013-06-15 Dehao Chen <dehao@google.com>
14381
14382 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
14383 * gimple-low.c (gimple_check_call_matching_types): Likewise.
14384 (gimple_check_call_args): Likewise.
14385 * value-prof.c (check_ic_target): Likewise.
14386 * ipa-inline.c (early_inliner): Likewise.
14387 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
14388 * cgraph.c (cgraph_create_edge_1): Likewise.
14389 (cgraph_make_edge_direct): Likewise.
14390
d1aa4a76
MM
143912013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
14392
14393 PR target/57615
14394 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
14395 rs6000_output_move_128bit to handle emitting quad memory
14396 operations. Set attribute length to 8 bytes.
14397
12211b99 143982013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
14399
14400 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
14401 New pattern.
14402 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
14403 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
14404 (aarch64_<su>mlsl<mode>): Likewise.
14405
f5273574
MS
144062013-06-14 Mike Stump <mikestump@comcast.net>
14407
14408 * Makefile.in (TARGET_H): Add insn-codes.h.
14409
ef7e7ab2
AM
144102013-06-14 Alan Modra <amodra@gmail.com>
14411
14412 PR middle-end/57134
14413 PR middle-end/57586
14414 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
14415 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
14416 bitfield expansion when EXPAND_MEMORY.
14417 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
14418
135faab6
MM
144192013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14420
14421 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
14422 test for clearing quad memory on 32-bit later.
14423
948a1fd9
MG
144242013-06-13 Marc Glisse <marc.glisse@inria.fr>
14425
14426 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
14427 (fold_negate_expr): Likewise.
14428 (fold_real_zero_addition_p): Handle vectors.
14429 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
14430
0597fb9c
AM
144312013-06-14 Alan Modra <amodra@gmail.com>
14432
14433 * varasm.c (force_const_mem): Revert 2013-06-07 change.
14434
e5b962d0
JH
144352013-06-13 Jan Hubicka <jh@suse.cz>
14436
14437 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
14438 Local comdats are not externally visible.
14439 * symtab.c (dump_symtab_base): Dump externally visible.
14440 (verify_symtab_base): Verify back links in the symtab hash.
14441
a8355e51
BC
144422013-06-13 Bin Cheng <bin.cheng@arm.com>
14443
14444 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
14445 CONVERT_EXPR as equal nodes.
14446
8f7e6e33
BC
144472013-06-13 Bin Cheng <bin.cheng@arm.com>
14448
22fc7d3d 14449 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 14450
5d418483
MG
144512013-06-13 Marc Glisse <marc.glisse@inria.fr>
14452
14453 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
14454 Generalize to complex and vector.
14455 * tree.c (build_all_ones_cst): New function.
14456 * tree.h (build_all_ones_cst): Declare it.
14457
50751417
AM
144582013-06-13 Alan Modra <amodra@gmail.com>
14459
14460 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
14461 * config/rs6000/rs6000.md (signbittf2): New insn.
14462 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
14463 (abstf2_internal, cmptf_internal2): Likewise.
14464 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
14465
4b02c962 144662013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14467 Pat Haugen <pthaugen@us.ibm.com>
14468 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
14469
14470 * config/rs6000/rs6000.c (emit_load_locked): Add support for
14471 power8 byte, half-word, and quad-word atomic instructions.
14472 (emit_store_conditional): Likewise.
14473 (rs6000_expand_atomic_compare_and_swap): Likewise.
14474 (rs6000_expand_atomic_op): Likewise.
14475
14476 * config/rs6000/sync.md (larx): Add new modes for power8.
14477 (stcx): Likewise.
14478 (AINT): New mode iterator to include TImode as well as normal
14479 integer modes on power8.
14480 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
14481 that VSX registers are not considered. Use AINT mode iterator
14482 instead of INT1 to allow inclusion of quad word atomic operations
14483 on power8.
14484 (load_locked<mode>): Likewise.
14485 (store_conditional<mode>): Likewise.
14486 (atomic_compare_and_swap<mode>): Likewise.
14487 (atomic_exchange<mode>): Likewise.
14488 (atomic_nand<mode>): Likewise.
14489 (atomic_fetch_<fetchop_name><mode>): Likewise.
14490 (atomic_nand_fetch<mode>): Likewise.
14491 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
14492 each type.
14493 (ATOMIC): On power8, add QImode, HImode modes.
14494 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
14495 modes that promote to SImode.
14496 (load_lockedti): Convert TImode arguments to PTImode, so that we
14497 get a guaranteed even/odd register pair.
14498 (load_lockedpti): Likewise.
14499 (store_conditionalti): Likewise.
14500 (store_conditionalpti): Likewise.
14501
14502 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
14503 atomic load/store instructions.
14504 (HSI): Likewise.
14505
710b6cc1
RS
145062013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
14507
14508 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
14509 loads.
14510 (insn_count): New attribute, with most cases extracted from...
14511 (length): ...here. Redefine most cases in terms of insn_count.
14512 (single_insn): Delete.
14513 (can_delay): Use insn_count to check for single instructions.
14514 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
14515 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
14516 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
14517 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
14518 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
14519 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
14520 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
14521 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
14522 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
14523 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
14524 rather than "length".
14525 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
14526 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
14527 Use "insn_count" rather than "length".
14528 * config/mips/mips-dsp.md
14529 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
14530 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
14531 length attributes.
14532
1951f101
MG
145332013-06-12 Marc Glisse <marc.glisse@inria.fr>
14534
14535 PR tree-optimization/57361
14536 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
14537
8b033a8a
SN
145382013-06-12 Sofiane Naci <sofiane.naci@arm.com>
14539
22fc7d3d
UB
14540 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
14541 to split.
8b033a8a
SN
14542 (aarch64_simd_combine<mode>): New instruction expansion.
14543 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
14544 function prototype.
14545 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
14546 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
14547
ca0f62a8
JH
145482013-06-12 Jan Hubicka <jh@suse.cz>
14549
14550 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
14551 decl has when in streaming stage.
14552 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
14553 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
14554
12211b99 145552013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
14556
14557 PR target/57578
14558 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
14559
bfdeda2c
JJ
145602013-06-12 Jakub Jelinek <jakub@redhat.com>
14561
14562 PR tree-optimization/57537
14563 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
14564 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
14565
a4fa02d1
RB
145662013-06-12 Richard Biener <rguenther@suse.de>
14567
14568 * data-streamer.h (streamer_write_char_stream): CSE
14569 obs->current_pointer.
14570 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
14571 streamer_write_char_stream manually and optimize the resulting loop.
14572 (streamer_write_hwi_stream): Likewise.
14573
bbf9ad07
JH
145742013-06-12 Jan Hubicka <jh@suse.cz>
14575
14576 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
14577 * cgraph.h (varpool_create_empty_node): Declare.
14578 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
14579 duplicated nodes.
14580 * symtab.c (symtab_unregister_node): Be lax about missin entries
14581 in node hash.
14582 (symtab_get_node): Update comment.
14583 * varpool.c (varpool_create_empty_node): Break out from ...
14584 (varpool_node_for_decl): ... here.
14585 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
14586
a53f90ad
EB
145872013-06-12 Eric Botcazou <ebotcazou@adacore.com>
14588
14589 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
14590 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
14591 part. Use straight-line flow at the end.
14592 <COMPONENT_REF>: Remove superfluous else.
14593 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
14594
946f9306
JJ
145952013-06-12 Jakub Jelinek <jakub@redhat.com>
14596
14597 PR target/56564
14598 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
14599 target hook even for !TREE_PUBLIC decls. If no resolution info
14600 is available, return false for common and external decls.
14601
a7fca6f0
KP
146022013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14603
14604 * config/rl78/constraints.md (U): New constraint.
14605 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
14606 valloc attribute.
14607
c7d8f446
MM
146082013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
14609
14610 PR target/57589
14611 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
14612 to allow returning address to AT_PLATFORM name.
14613
08346abd
JH
146142013-06-11 Jan Hubicka <jh@suse.cz>
14615
14616 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
14617 * cgraph.h (symtab_node_base): Add weakref flag.
14618 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
14619 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
14620 (output_weakrefs): Use weakref flag.
14621 * fold-const.c (simple_operand_p): Handle WEAK.
14622 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
14623 * ipa.c (varpool_externally_visible_p): Drop weakref.
14624 (function_and_variable_visibility): Update comment; fix weakref
14625 sanity checks; do not clear DECL_WEAK on them.
14626 * lto-cgraph.c (lto_output_node): update.
14627 (lto_output_varpool_node): Update.
14628 (input_overwrite_node): Update.
14629 (input_node): Update.
14630 (input_varpool_node): Update.
14631 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
14632 (lto_symtab_merge_symbols): Add sanity check.
14633 (lto_symtab_prevailing_decl): Do not special case weakrefs.
14634 * passes.c (rest_of_decl_compilation): Set static flag, too.
14635 * symtab.c (dump_symtab_base): Dump weakref.
14636 (verify_symtab_base): Sanity check weakrefs.
14637 (symtab_make_decl_local): Remove duplicated code.
14638 (symtab_alias_ultimate_target): Simplify.
14639 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 14640
2e6a2f88
TV
146412013-06-11 Tom de Vries <tom@codesourcery.com>
14642
14643 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
14644 sequence_vect == NULL.
14645
d9af3652
DD
146462013-06-11 DJ Delorie <dj@redhat.com>
14647
14648 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
14649 (rl78_unwind_word_mode): New.
14650
ffa66012
DM
146512013-06-11 David Malcolm <dmalcolm@redhat.com>
14652
14653 * final.c (debug_prefix_maps): Make static.
14654
783f2d35
DM
146552013-06-11 David Malcolm <dmalcolm@redhat.com>
14656
14657 * function.c (initial_trampoline): Remove stray copy.
14658
7af26def
SN
146592013-06-11 Sofiane Naci <sofiane.naci@arm.com>
14660
14661 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
14662
97756c0e
MJ
146632013-06-11 Martin Jambor <mjambor@suse.cz>
14664
14665 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
14666 within bounds at the beginning of the function.
14667
2c7b8bf6
AM
146682013-06-11 Alan Modra <amodra@gmail.com>
14669
14670 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
14671 reporting.
14672 (get_named_section): Don't NULL !DECL_P decl.
14673
77cea46e
IZ
146742013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
14675
14676 * doc/invoke.texi (core-avx2): Document.
14677 (slm): Likewise.
14678 (atom): Updated with MOVBE.
14679
888f0920
RB
146802013-06-11 Richard Biener <rguenther@suse.de>
14681
22fc7d3d 14682 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 14683
6b438d58
AB
146842013-06-11 Anton Blanchard <anton@samba.org>
14685
14686 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
14687 correct shift value in little-endian mode.
14688
3bc66938
JJ
146892013-06-11 Jakub Jelinek <jakub@redhat.com>
14690
14691 PR target/56564
14692 * varasm.c (get_variable_align): Move #endif to the right place.
14693
a5dc7f88
CC
146942013-06-10 Cary Coutant <ccoutant@google.com>
14695
14696 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
14697 for hash so that hash table traversal order is deterministic.
14698
19be72ab 146992013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14700 Pat Haugen <pthaugen@us.ibm.com>
14701 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
14702
14703 * config/rs6000/vector.md (GPR move splitter): Do not split moves
14704 of vectors in GPRS if they are direct moves or quad word load or
14705 store moves.
14706
14707 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
14708 declaration.
14709 (direct_move_p): Likewise.
14710 (quad_load_store_p): Likewise.
14711
14712 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
14713 classes into bins based on the physical register type.
14714 (reg_class_to_reg_type): Likewise.
14715 (IS_STD_REG_TYPE): Likewise.
14716 (IS_FP_VECT_REG_TYPE): Likewise.
14717 (reload_fpr_gpr): Arrays to determine what insn to use if we can
14718 use direct move instructions.
14719 (reload_gpr_vsx): Likewise.
14720 (reload_vsx_gpr): Likewise.
14721 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
14722 information that is a simplification of register classes. Also
14723 precalculate direct move reload helpers.
14724 (direct_move_p): New function to return true if the operation can
14725 be done as a direct move instruciton.
14726 (quad_load_store_p): New function to return true if the operation
14727 is a quad memory operation.
14728 (rs6000_legitimize_address): If quad memory, only allow register
14729 indirect for TImode addresses.
14730 (rs6000_legitimate_address_p): Likewise.
14731 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
14732 (rs6000_reload_register_type): Likewise.
14733 (register_to_reg_type): Return register type.
14734 (rs6000_secondary_reload_simple_move): New helper function for
14735 secondary reload and secondary memory needed to identify anything
14736 that is a simple move, and does not need reloading.
14737 (rs6000_secondary_reload_direct_move): New helper function for
14738 secondary reload to identify cases that can be done with several
14739 instructions via the direct move instructions.
14740 (rs6000_secondary_reload_move): New helper function for secondary
14741 reload to identify moves between register types that can be done.
14742 (rs6000_secondary_reload): Add support for quad memory operations
14743 and for direct move.
14744 (rs6000_secondary_memory_needed): Likewise.
14745 (rs6000_debug_secondary_memory_needed): Change argument names.
14746 (rs6000_output_move_128bit): New function to return the move to
14747 use for 128-bit moves, including knowing about the various
14748 limitations of quad memory operations.
14749
14750 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
14751 memory operations. call rs6000_output_move_128bit for the actual
14752 instruciton(s) to generate.
14753 (vsx_movti_64bit): Likewise.
14754
14755 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
14756 (UNSPEC_P8V_MTVSRWZ): Likewise.
14757 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
14758 (UNSPEC_P8V_MTVSRD): Likewise.
14759 (UNSPEC_P8V_XXPERMDI): Likewise.
14760 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
14761 (UNSPEC_FUSION_GPR): Likewise.
14762 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 14763 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
14764 (f32_sv): Likewise.
14765 (f32_dm): Likewise.
14766 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
14767 loads and direct move instructions.
14768 (zero_extendsidi2_lfiwzx): Likewise.
14769 (extendsidi2_lfiwax): Likewise.
14770 (extendsidi2_nocell): Likewise.
14771 (floatsi<mode>2_lfiwax): Likewise.
14772 (lfiwax): Likewise.
14773 (floatunssi<mode>2_lfiwzx): Likewise.
14774 (lfiwzx): Likewise.
14775 (fix_trunc<mode>_stfiwx): Likewise.
14776 (fixuns_trunc<mode>_stfiwx): Likewise.
14777 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
14778 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
14779 (parity<mode>2_cmpb): Set length/type attr.
14780 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
14781 for 'mr.' to fast_compare.
14782 (bpermd_<mode>): Change type attr to popcnt.
14783 (p8_fmrgow_<mode>): New insns for power8 direct move support.
14784 (p8_mtvsrwz_1): Likewise.
14785 (p8_mtvsrwz_2): Likewise.
14786 (reload_fpr_from_gpr<mode>): Likewise.
14787 (p8_mtvsrd_1): Likewise.
14788 (p8_mtvsrd_2): Likewise.
14789 (p8_xxpermdi_<mode>): Likewise.
14790 (reload_vsx_from_gpr<mode>): Likewise.
14791 (reload_vsx_from_gprsf): Likewise.
14792 (p8_mfvsrd_3_<mode>): LIkewise.
14793 (reload_gpr_from_vsx<mode>): Likewise.
14794 (reload_gpr_from_vsxsf): Likewise.
14795 (p8_mfvsrd_4_disf): Likewise.
14796 (multi-word GPR splits): Do not split direct moves or quad memory
14797 operations.
14798
16876bdc
DM
147992013-06-10 David Malcolm <dmalcolm@redhat.com>
14800
14801 * tree-into-ssa.c (interesting_blocks): Make static.
14802
df8a1d28
JJ
148032013-06-10 Jakub Jelinek <jakub@redhat.com>
14804
14805 PR target/56564
14806 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
14807 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
14808 Use DATA_ABI_ALIGNMENT for that case instead if defined.
14809 (get_variable_align): New function.
14810 (get_variable_section, emit_bss, emit_common,
14811 assemble_variable_contents, place_block_symbol): Use
14812 get_variable_align instead of DECL_ALIGN.
14813 (assemble_noswitch_variable): Add align argument, use it
14814 instead of DECL_ALIGN.
14815 (assemble_variable): Adjust caller. Use get_variable_align
14816 instead of DECL_ALIGN.
14817 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
14818 caller.
14819 (DATA_ABI_ALIGNMENT): Define.
14820 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
14821 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
14822 opt is false, only return the psABI mandated alignment increase.
14823 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
14824 (DATA_ABI_ALIGNMENT): ... this.
14825 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
14826 (DATA_ABI_ALIGNMENT): ... this.
14827 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
14828 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
14829 (DATA_ABI_ALIGNMENT): ... this.
14830 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
14831 * doc/tm.texi: Regenerated.
14832
57b29ca6
UB
148332013-06-10 Uros Bizjak <ubizjak@gmail.com>
14834
14835 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
14836 cmp_code to construct REG_EQUAL note.
14837
3e56ed50
JJ
148382013-06-09 Jakub Jelinek <jakub@redhat.com>
14839
14840 PR target/57568
14841 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
14842 that operands[2] doesn't overlap with operands[0].
14843
74fe2a1d
DE
148442013-06-09 David Edelsohn <dje.gcc@gmail.com>
14845 Jan Hubicka <jh@suse.cz>
14846
14847 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
14848 hack to mark symbols as used.
14849
ed52a84e
VM
148502013-06-08 Vladimir Makarov <vmakarov@redhat.com>
14851
14852 PR rtl-optimization/57559
14853 * lra-constraints.c (process_alt_operands): Don't discourage
14854 memory with known offset for offsetable memory constraint.
14855 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
14856
299316ed
EB
148572013-06-08 Eric Botcazou <ebotcazou@adacore.com>
14858
14859 * varasm.c (struct oc_local_state): Reorder fields.
14860 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
14861 and adjust accordingly.
14862 (output_constructor): Reorder initialization code and adjust call to
14863 output_constructor_bitfield.
14864
88ac60d3
JH
148652013-06-07 Jan Hubicka <jh@suse.cz>
14866
14867 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
14868
4cdce1a8
DM
148692013-06-07 David Malcolm <dmalcolm@redhat.com>
14870
14871 * tree-object-size.c (unknown): Make const.
14872
b5e0425c
AK
148732013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14874
14875 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
14876 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
14877 for last alternative in the cpu_facility attribute.
14878
79678d04
KT
148792013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14880
14881 PR target/56315
14882 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
14883 (xordi3): Change operand 2 constraint to arm_xordi_operand.
14884 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
14885 * config/arm/constraints.md (Dg): New constraint.
14886 * config/arm/neon.md (xordi3_neon): Remove.
14887 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
14888 * config/arm/predicates.md (arm_xordi_operand): New predicate.
14889
b31ddbdb
KT
148902013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14891
14892 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
14893 Clean up alternatives.
14894
8f90b7d4
AM
148952013-06-07 Alan Modra <amodra@gmail.com>
14896
14897 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
14898 va_list_gpr_size.
14899
961ce119
AM
149002013-06-07 Alan Modra <amodra@gmail.com>
14901
14902 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
14903
33e49835
KT
149042013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14905
14906 * config/arm/constraints.md (Df): New constraint.
14907 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
14908 Correct length attribute for last two alternatives.
14909
acd17ae6
AM
149102013-06-07 Alan Modra <amodra@gmail.com>
14911
14912 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14913 override user -mfp-in-toc.
14914 (offsettable_ok_by_alignment): Consider just the current access
14915 rather than the whole object, unless BLKmode. Handle
14916 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
14917 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
14918 for -mcmodel=medium.
14919 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
14920 override user -mfp-in-toc or -msum-in-toc. Default to
14921 -mno-fp-in-toc for -mcmodel=medium.
14922
73310b0e
DD
149232013-06-06 DJ Delorie <dj@redhat.com>
14924
14925 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
14926 TARGET_VALID_POINTER_MODE.
14927
0bd62dca 149282013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
14929 Pat Haugen <pthaugen@us.ibm.com>
14930 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
14931
14932 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14933 Document new power8 builtins.
14934
14935 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
14936 condition code register, to allow 128-bit logical operations to be
14937 done in the VSX or GPR registers.
14938 (nor<mode>3): Use the canonical form for nor.
14939 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
14940 vclz*, and vpopcnt* vector instructions.
14941 (nand<mode>3): Likewise.
14942 (orc<mode>3): Likewise.
14943 (clz<mode>2): LIkewise.
14944 (popcount<mode>2): Likewise.
14945
14946 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
14947 that only the GPRs are recognized.
14948
14949 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14950 support for new power8 builtins.
14951
14952 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
14953 builtin functions.
14954 (xscvdpspn): Likewise.
14955 (vclz): Likewise.
14956 (vclzb): Likewise.
14957 (vclzh): Likewise.
14958 (vclzw): Likewise.
14959 (vclzd): Likewise.
14960 (vpopcnt): Likewise.
14961 (vpopcntb): Likewise.
14962 (vpopcnth): Likewise.
14963 (vpopcntw): Likewise.
14964 (vpopcntd): Likewise.
14965 (vgbbd): Likewise.
14966 (vmrgew): Likewise.
14967 (vmrgow): Likewise.
14968 (eqv): Likewise.
14969 (eqv_v16qi3): Likewise.
14970 (eqv_v8hi3): Likewise.
14971 (eqv_v4si3): Likewise.
14972 (eqv_v2di3): Likewise.
14973 (eqv_v4sf3): Likewise.
14974 (eqv_v2df3): Likewise.
14975 (nand): Likewise.
14976 (nand_v16qi3): Likewise.
14977 (nand_v8hi3): Likewise.
14978 (nand_v4si3): Likewise.
14979 (nand_v2di3): Likewise.
14980 (nand_v4sf3): Likewise.
14981 (nand_v2df3): Likewise.
14982 (orc): Likewise.
14983 (orc_v16qi3): Likewise.
14984 (orc_v8hi3): Likewise.
14985 (orc_v4si3): Likewise.
14986 (orc_v2di3): Likewise.
14987 (orc_v4sf3): Likewise.
14988 (orc_v2df3): Likewise.
14989
14990 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
14991 allow power8 quad mode in 64-bit.
14992 (rs6000_builtin_vectorized_function): Add support to vectorize
14993 ISA 2.07 count leading zeros, population count builtins.
14994 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
14995 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
14996 (builtin_function_type): Add vgbbd builtin function which takes an
14997 unsigned argument.
14998 (altivec_expand_vec_perm_const): Add support for new power8 merge
14999 instructions.
15000
15001 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
15002 that does not include TImdoe for use with 32-bit.
15003 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
15004 instructions.
15005 (UNSPEC_VSX_CVDPSPN): Likewise.
15006 (vsx_xscvdpspn): Likewise.
15007 (vsx_xscvspdpn): Likewise.
15008 (vsx_xscvdpspn_scalar): Likewise.
15009 (vsx_xscvspdpn_directmove): Likewise.
15010 (vsx_and<mode>3): Split logical operations into 32-bit and
15011 64-bit. Add support to do logical operations on TImode as well as
15012 VSX vector types. Allow logical operations to be done in either
15013 VSX registers or in general purpose registers in 64-bit mode. Add
15014 splitters if GPRs were used. For AND, add clobber of CCmode to
15015 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
15016 encoding.
15017 (vsx_and<mode>3_32bit): Likewise.
15018 (vsx_and<mode>3_64bit): Likewise.
15019 (vsx_ior<mode>3): Likewise.
15020 (vsx_ior<mode>3_32bit): Likewise.
15021 (vsx_ior<mode>3_64bit): Likewise.
15022 (vsx_xor<mode>3): Likewise.
15023 (vsx_xor<mode>3_32bit): Likewise.
15024 (vsx_xor<mode>3_64bit): Likewise.
15025 (vsx_one_cmpl<mode>2): Likewise.
15026 (vsx_one_cmpl<mode>2_32bit): Likewise.
15027 (vsx_one_cmpl<mode>2_64bit): Likewise.
15028 (vsx_nor<mode>3): Likewise.
15029 (vsx_nor<mode>3_32bit): Likewise.
15030 (vsx_nor<mode>3_64bit): Likewise.
15031 (vsx_andc<mode>3): Likewise.
15032 (vsx_andc<mode>3_32bit): Likewise.
15033 (vsx_andc<mode>3_64bit): Likewise.
15034 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
15035 and xxlorc instructions.
15036 (vsx_eqv<mode>3_64bit): Likewise.
15037 (vsx_nand<mode>3_32bit): Likewise.
15038 (vsx_nand<mode>3_64bit): Likewise.
15039 (vsx_orc<mode>3_32bit): Likewise.
15040 (vsx_orc<mode>3_64bit): Likewise.
15041
15042 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
15043
15044 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
15045 instruction.
15046 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
15047 (p8_vmrgow): Likewise.
15048 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
15049 GPRs to be split under VSX.
15050 (p8v_clz<mode>2): Add power8 count leading zero support.
15051 (p8v_popcount<mode>2): Add power8 population count support.
15052 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
15053 support.
15054
15055 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
15056 instruction.
15057
15058 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
15059 builtin functions.
15060 (vec_nand): Likewise.
15061 (vec_vclz): Likewise.
15062 (vec_vclzb): Likewise.
15063 (vec_vclzd): Likewise.
15064 (vec_vclzh): Likewise.
15065 (vec_vclzw): Likewise.
15066 (vec_vgbbd): Likewise.
15067 (vec_vmrgew): Likewise.
15068 (vec_vmrgow): Likewise.
15069 (vec_vpopcnt): Likewise.
15070 (vec_vpopcntb): Likewise.
15071 (vec_vpopcntd): Likewise.
15072 (vec_vpopcnth): Likewise.
15073 (vec_vpopcntw): Likewise.
15074
37684c46
VM
150752013-06-06 Vladimir Makarov <vmakarov@redhat.com>
15076
15077 PR rtl-optimization/57468
15078 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
15079 spilled pseudos.
15080
d89ae27c
VM
150812013-06-06 Vladimir Makarov <vmakarov@redhat.com>
15082
15083 PR rtl-optimization/57459
15084 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
15085 type when setting live regs.
15086
3597e113
VM
150872013-06-06 Vladimir Makarov <vmakarov@redhat.com>
15088
15089 * config/s390/s390.opt (mlra): New option.
15090 * config/s390/s390.c (s390_decompose_address): Check displacement
15091 for all registers for LRA.
15092 (s390_secondary_reload): Don't used secondary reloads for LRA.
15093 (s390_lra_p): New function.
15094 (TARGET_LRA_P): Define.
15095 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
15096 of attribute cpu_facility to zarch for the last alternative.
15097 (*cmpmem_short): Ditto.
15098
01037aeb
EB
150992013-06-06 Eric Botcazou <ebotcazou@adacore.com>
15100
15101 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
15102 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
15103 (arm_expand_prologue): Likewise.
15104
3371a64f
TJ
151052013-06-06 Teresa Johnson <tejohnson@google.com>
15106
15107 PR c++/53743
15108 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
15109 as this is now done by redirect_edge_and_branch_force.
15110 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
15111 barriers, and fix interaction with splitting.
15112 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
15113 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
15114 reflect changes made in the routine.
15115 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
15116 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
15117 since this is called in cfglayout mode, and replace partition fixup
15118 with assert as that is now done by force_nonfallthru_and_redirect.
15119 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
15120 already be marked with region crossing note.
15121 (insert_section_boundary_note): Make non-static, gate on flag
15122 has_bb_partition, rewrite to also check for multiple partitions.
15123 (rest_of_handle_reorder_blocks): Remove call to
15124 insert_section_boundary_note, now done later during free_cfg.
15125 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
15126 * bb-reorder.h (insert_section_boundary_note): Declare.
15127 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
15128 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
15129 invoke insert_section_boundary_note.
15130 (try_redirect_by_replacing_jump): Remove unnecessary
15131 check for region crossing note.
15132 (fixup_partition_crossing): New function.
15133 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
15134 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
15135 in non-cfglayout mode.
15136 (force_nonfallthru_and_redirect): Fixup partition boundaries,
15137 remove old code that tried to do this. Emit barrier correctly
15138 when we are in cfglayout mode.
15139 (last_bb_in_partition): New function.
15140 (rtl_split_edge): Correctly fixup partition boundaries.
15141 (commit_one_edge_insertion): Remove old code that tried to
15142 fixup region crossing edge since this is now handled in
15143 split_block, and set up insertion point correctly since
15144 block may now end in a jump.
15145 (verify_hot_cold_block_grouping): Guard against checking when not in
15146 linearized RTL mode.
15147 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
15148 notes.
15149 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
15150 rtl_verify_flow_info, so not called in cfglayout mode.
15151 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
15152 (fixup_reorder_chain): Remove old code that attempted to fixup region
15153 crossing note as this is now handled in force_nonfallthru_and_redirect.
15154 (duplicate_insn_chain): Don't duplicate switch section notes.
15155 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
15156 note.
15157 * basic-block.h (emit_barrier_after_bb): Declare.
15158
66071e10
KT
151592013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15160
15161 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
15162 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
15163 arm_usatsihi): Adjust alternatives for arm_restrict_it.
15164
0e26bf3d
KT
151652013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15166
15167 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
15168 where appropriate.
15169 * config/arm/ldmstm.md: Regenerate.
15170
12b4e7ef
KT
151712013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15172
15173 * config/arm/sync.md (atomic_loaddi_1):
15174 Disable predication for arm_restrict_it.
15175 (arm_load_exclusive<mode>): Likewise.
15176 (arm_load_exclusivesi): Likewise.
15177 (arm_load_exclusivedi): Likewise.
15178 (arm_load_acquire_exclusive<mode>): Likewise.
15179 (arm_load_acquire_exclusivesi): Likewise.
15180 (arm_load_acquire_exclusivedi): Likewise.
15181 (arm_store_exclusive<mode>): Likewise.
15182 (arm_store_exclusive<mode>): Likewise.
15183 (arm_store_release_exclusivedi): Likewise.
15184 (arm_store_release_exclusive<mode>): Likewise.
15185
15d16c8a
RB
151862013-06-06 Richard Biener <rguenther@suse.de>
15187
15188 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
15189 after LTO_null.
15190 (lto_tag_is_tree_code_p): Adjust.
15191 (lto_tag_is_gimple_code_p): Likewise.
15192 (lto_gimple_code_to_tag): Likewise.
15193 (lto_tag_to_gimple_code): Likewise.
15194 (lto_tree_code_to_tag): Likewise.
15195 (lto_tag_to_tree_code): Likewise.
15196 * data-streamer.h (streamer_write_hwi_in_range): Use
15197 uhwi streaming to stream the normalized range.
15198 (streamer_read_hwi_in_range): Likewise.
15199
17a7fc37
KT
152002013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15201
15202 * config/arm/arm.md (enabled_for_depr_it): New attribute.
15203 (predicable_short_it): Likewise.
15204 (predicated): Likewise.
15205 (enabled): Handle above.
15206 (define_cond_exec): Set predicated attribute to yes.
15207
b57ca59b
MS
152082013-06-05 Mike Stump <mikestump@comcast.net>
15209
15210 * gdbinit.in (__FUNCTION__): Add.
15211
c1e183a9
UB
152122013-06-05 Uros Bizjak <ubizjak@gmail.com>
15213
15214 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
15215 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
15216
0378bddb
JH
152172013-06-05 Jan Hubicka <jh@suse.cz>
15218
15219 * varasm.c (mark_decl_referenced): Revert the removal until targets
15220 are fixed.
15221
8f8a2057
DE
152222013-06-05 David Edelsohn <dje.gcc@gmail.com>
15223
15224 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
15225 instead of mark_decl_referenced.
15226
edb983b2
JH
152272013-06-05 Jan Hubicka <jh@suse.cz>
15228
15229 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
15230 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
15231 and symtab_used_from_object_file_p.
15232 (cgraph_make_node_local_1): Clear forced_by_abi.
15233 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
15234 * cgraph.h (symtab_node_base): Add forced_by_abi.
15235 (decide_is_variable_needed): Remove.
15236 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
15237 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
15238 (decide_is_symbol_needed): ... this one; handle symbols in general;
15239 always analyze virtuals; honnor forced_by_abi.
15240 (cgraph_finalize_function): Update.
15241 (varpool_finalize_decl): Update.
15242 (symbol_defined_and_needed): Remove.
15243 (analyze_functions): Update.
15244 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15245 output_refs, input_overwrite_node): Handle forced_by_abi.
15246 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
15247 (address_taken_from_non_vtable_p): ... this one.
15248 (comdat_can_be_unshared_p_1): New function.
15249 (cgraph_comdat_can_be_unshared_p): Rename to ...
15250 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
15251 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
15252 (function_and_variable_visibility): Clear forced_by_abi as needed.
15253 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
15254 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
15255 * symtab.c (dump_symtab_base): Dump forced_by_abi.
15256 * varpool.c (decide_is_variable_needed): Remove.
15257
9912dbe5
KT
152582013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15259
15260 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
15261 (arm_option_override): Override arm_restrict_it where appropriate.
15262 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
15263 * config/arm/arm.opt (mrestrict-it): New command-line option.
15264 * doc/invoke.texi: Document -mrestrict-it.
15265
34c136b6
DM
152662013-06-05 David Malcolm <dmalcolm@redhat.com>
15267
15268 * tsan.c (tsan_atomic_table): Make const.
15269
a367df53
RB
152702013-06-05 Richard Biener <rguenther@suse.de>
15271
15272 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
15273 index associated with the tree we are supposed to replace.
15274 * tree-streamer-out.c (pack_ts_base_value_fields): Output
15275 TREE_ASM_WRITTEN as zero for everything but SSA names.
15276
70d51a19
DM
152772013-06-05 David Malcolm <dmalcolm@redhat.com>
15278
15279 * tree-ssa-structalias.c (call_stmt_vars): Make static.
15280
b9bd2075
JH
152812013-06-04 Jan Hubicka <jh@suse.cz>
15282
15283 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
15284 (input_node, input_varpool_node): Handle correctly external same
15285 body aliases.
15286 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
15287 nodes at ltrans stage.
15288
aaae719d
JH
152892013-06-04 Jan Hubicka <jh@suse.cz>
15290
15291 * ipa-inline.c (update_caller_keys): Fix availability test.
15292 (update_callee_keys): Likewise.
15293 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
15294 to follow ELF standard.
15295
107eea2c
JU
152962013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
15297
15298 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
15299 (mips64r5900el-*-elf*): New configurations.
15300 * config/mips/mips-cpus.def (r5900): New processor.
15301 * config/mips/mips-tables.opt: Regenerate.
15302 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
15303 (mips_issue_rate): Handle PROCESSOR_R5900.
15304 (mips_reorg_process_insns): Force reorder mode for the R5900.
15305 * config/mips/mips.h (TARGET_MIPS5900): Define.
15306 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
15307 TARGET_MIPS5900.
15308 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
15309 TARGET_MIPS5900.
15310 * config/mips/mips.md (processor): Add r5900.
15311 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
15312
b7342d25
IB
153132013-06-04 Ian Bolton <ian.bolton@arm.com>
15314
15315 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
15316 into function to generate MOVI instruction.
c1e183a9 15317 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
15318 (aarch64_preferred_simd_mode): Turn into wrapper.
15319 (aarch64_output_scalar_simd_mov_immediate): New function.
15320 * config/aarch64/aarch64-protos.h: Add prototype for above.
15321
81c2dfb9
IB
153222013-06-04 Ian Bolton <ian.bolton@arm.com>
15323
15324 * config/aarch64/aarch64.c (simd_immediate_info): Remove
15325 element_char member.
15326 (sizetochar): Return signed char.
15327 (aarch64_simd_valid_immediate): Remove elchar and other
15328 unnecessary variables.
15329 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
15330 Calculate element_char as required.
15331 * config/aarch64/aarch64-protos.h: Update and move prototype
15332 for aarch64_output_simd_mov_immediate.
15333 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
15334 Update arguments.
15335
48063b9d
IB
153362013-06-04 Ian Bolton <ian.bolton@arm.com>
15337
15338 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
15339 information completed by aarch64_simd_valid_immediate.
15340 (aarch64_legitimate_constant_p): Update arguments.
15341 (aarch64_simd_valid_immediate): Work with struct rather than many
15342 pointers.
15343 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
15344 (aarch64_simd_make_constant): Update arguments.
15345 (aarch64_output_simd_mov_immediate): Work with struct rather than
15346 many pointers. Output immediate directly rather than as operand.
15347 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
15348 Update prototype.
15349 * config/aarch64/constraints.md (Dn): Update arguments.
15350
3ea63f60
IB
153512013-06-04 Ian Bolton <ian.bolton@arm.com>
15352
15353 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
15354 longer static.
15355 (aarch64_simd_immediate_valid_for_move): Remove.
15356 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
15357 (aarch64_simd_make_constant): Update call.
15358 (aarch64_output_simd_mov_immediate): Update call.
15359 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
15360 Add prototype.
15361 * config/aarch64/constraints.md (Dn): Update call.
15362
d8edd899
IB
153632013-06-04 Ian Bolton <ian.bolton@arm.com>
15364
15365 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
15366 return type to bool for prototype.
15367 (aarch64_legitimate_constant_p): Check for true instead of not -1.
15368 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
15369 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
15370
44b20bb8
CM
153712013-06-04 Catherine Moore <clm@codesourcery.com>
15372
15373 * config/mips/mips.opt (meva): New.
c1e183a9 15374 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
15375 (ASM_SPEC): Handle -meva.
15376 * doc/invoke.texi (meva): Document.
15377
52befbd8
AM
153782013-06-04 Alan Modra <amodra@gmail.com>
15379
15380 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
15381 constant output.
15382
aadaf24e
KT
153832013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15384
15385 * rtl.def: Add extra fourth optional field to define_cond_exec.
15386 * gensupport.c (process_one_cond_exec): Process attributes from
15387 define_cond_exec.
15388 * doc/md.texi: Document fourth field in define_cond_exec.
15389
0cd9e9ee
EB
153902013-06-04 Eric Botcazou <ebotcazou@adacore.com>
15391
15392 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
15393 out the processing order as in store_bit_field_1.
15394
cb0f665d
JH
153952013-06-04 Jan Hubicka <jh@suse.cz>
15396
15397 PR middle-end/57500
15398 * cgraphunit.c (cgraph_process_same_body_aliases): Create
15399 non-VAR_DECL node if it does not exist yet.
15400
53984b9b
RS
154012013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
15402
15403 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
15404 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
15405 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
15406 target_cpu_default setting.
15407
5d318fd4
TJ
154082013-06-03 Teresa Johnson <tejohnson@google.com>
15409
15410 * dumpfile.c (opt_info_switch_p): Change -fopt-info
15411 default to -fopt-info=optimized instead of all.
15412 * doc/invoke.texi: Ditto.
15413 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
15414 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
15415 (execute_vect_slp): Emit BB vectorization success under
15416 MSG_OPTIMIZED_LOCATIONS.
15417 * tree-vect-slp.c (vect_slp_transform_bb): Change
15418 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
15419 * tree-vect-loop.c (vect_transform_loop): Ditto.
15420
ec3af349
JM
154212013-06-03 Jason Merrill <jason@redhat.com>
15422
15423 PR c++/57415
15424 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15425 Use TARGET_EXPR for C++.
15426
1baf9159
JJ
154272013-06-03 Jakub Jelinek <jakub@redhat.com>
15428
15429 PR rtl-optimization/57268
0cd9e9ee 15430 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
15431 if DEBUG_INSN_P (insn).
15432
15433 Reapply
15434 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
15435
15436 PR rtl-optimization/57268
15437 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15438 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15439
0f1d3965
YR
154402013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15441
15442 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
15443 (ix86_avoid_lea_for_addr): Likewise.
15444 (exact_dependency_1): Likewise.
15445 (ix86_adjust_cost): Likewise.
15446 (swap_top_of_ready_list): Fix formatting and !reload_completed check
15447 removed.
15448 (do_reorder_for_imul): Fix typo, formatting and
15449 !reload_completed check removed.
15450 (ix86_sched_reorder): Fix typo and formatting.
15451 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
15452 list.
15453
3bc30db4
SN
154542013-06-03 Sofiane Naci <sofiane.naci@arm.com>
15455
15456 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
15457
19cc6fac
EB
154582013-06-03 Eric Botcazou <ebotcazou@adacore.com>
15459
15460 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
15461 <STRING_CST>: Likewise.
15462 <VECTOR_CST>: Likewise.
15463
c68a6e08
JW
154642013-06-01 Janus Weil <janus@gcc.gnu.org>
15465 Mikael Morin <mikael@gcc.gnu.org>
15466
15467 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
15468 * config.in: Regenerated.
15469 * configure: Regenerated.
15470
38e55e5c
JH
154712013-06-01 Jan Hubicka <jh@suse.cz>
15472
15473 PR middle-end/57366
15474 * cgraphunit.c (compile): When weakref is not supported,
15475 set up transparent aliases before final output pass.
15476 * varasm.c (assemble_alias): Do not try to do it here.
15477
eb51d2ff
JH
154782013-06-01 Jan Hubicka <jh@suse.cz>
15479
15480 PR middle-end/57467
15481 * passes.c (for_per_function): Skip unanalyzed functions.
15482
40a7fe1e
JH
154832013-06-01 Jan Hubicka <jh@suse.cz>
15484
15485 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
15486 (lto_symtab_merge_symbols_1): ... this one.
15487 (lto_symtab_merge_cgraph_nodes): Rename to ...
15488 (lto_symtab_merge_symbols): ... this one; simplify.
15489 * cgraph.c (same_body_aliases_done): Rename to ...
15490 (cpp_implicit_aliases_done): ... this one.
15491 (cgraph_create_function_alias): Update.
15492 (cgraph_same_body_alias): Update.
c1e183a9 15493 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 15494 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 15495 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
15496 (cgraph_node): Remove same_body_alias.
15497 (varpool_node): Remove alias_of and extra_name_alias.
15498 (same_body_aliases_done): Rename to ..
15499 (cpp_implicit_aliases_done): ... this one.
15500 (symtab_alias_ultimate_target): Add default parameter.
15501 (symtab_resolve_alias): New function.
15502 (fixup_same_cpp_alias_visibility): Declare.
15503 (cgraph_function_node): Add default parameter.
15504 (cgraph_node_asm_name): Likewise.
15505 (cgraph_function_or_thunk_node): Add default parameter; do
15506 not ICE when it is NULL.
15507 (varpool_variable_node): Likewise.
15508 * tree-emutls.c (create_emultls_var): Update.
15509 (ipa_lower_emutls): Update.
15510 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
15511 (cgraph_reset_node): Reset alias info.
15512 (cgraph_finalize_function): Update.
15513 (fixup_same_cpp_alias_visibility): Move to symtab.c.
15514 (analyze_function): Simplify.
15515 (cgraph_process_same_body_aliases): Simplify.
15516 (analyze_functions): Fixup same body aliases.
15517 (handle_alias_pairs): Simplify.
15518 (assemble_thunk): Update.
15519 (assemble_thunks_and_aliases): Update.
15520 (output_weakrefs): Rewrite.
15521 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
15522 (lto_output_varpool_node): Likewise.
15523 (compute_ltrans_boundary): Remve assert.
15524 (get_alias_symbol): New functoin.
15525 (input_node): Rewrite alias handling.
15526 (input_varpool_node): Likewise.
15527 * ipa-pure-const.c (propagate_pure_const): Fix formating.
15528 * ipa.c (process_references): Handle weakrefs correctly.
15529 (symtab_remove_unreachable_nodes): Likewise.
15530 * trans-mem.c (get_cg_data): Update.
15531 (ipa_tm_create_version_alias): Update.
15532 (ipa_tm_execute): Update.
15533 * symtab.c (dump_symtab_base): Dump aliases.
15534 (verify_symtab_base): Verify aliases.
15535 (symtab_node_availability): New function.
15536 (symtab_alias_ultimate_target): Simplify.
15537 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
15538 handle all the fixup cases.
15539 (symtab_resolve_alias): New function.
15540 * passes.c (ipa_write_summaries): Handle weakrefs.
15541 * varpool.c (varpool_analyze_node): Simplify.
15542 (assemble_aliases): Update.
15543 (varpool_create_variable_alias): Simplify.
15544 (varpool_extra_name_alias): Simplify.
15545 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
15546 (lto_symtab_merge_symbols): ... this one.
15547
21759881
DT
155482013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
15549
15550 Revert
15551 PR rtl-optimization/57268
15552 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15553 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15554
daf4e940
TB
155552013-06-01 Tobias Burnus <burnus@net-b.de>
15556
15557 Partially reverted:
15558 2013-05-31 Tobias Burnus <burnus@net-b.de>
15559
15560 PR middle-end/57073
15561 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
15562 further up.
15563
c359d8d0
DT
155642013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
15565
15566 PR rtl-optimization/57268
15567 * sched-deps.c (sched_analyze_2): Flush dependence lists if
15568 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
15569
4172215d
EB
155702013-05-31 Eric Botcazou <ebotcazou@adacore.com>
15571
15572 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
15573 unordered comparison operators when -fno-trapping-math is in effect
15574 on the e500.
15575 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
15576 and implement unordered comparison operators properly on the e500.
15577
a8c50132
EB
155782013-05-31 Eric Botcazou <ebotcazou@adacore.com>
15579
15580 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
15581 for constant scalar integers.
15582 (simplify_relational_operation_1): Likewise.
15583
44626634
SB
155842013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
15585
15586 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
15587 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
15588 Fix comment.
15589
55805e54
YR
155902013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15591 Igor Zamyatin <igor.zamyatin@intel.com>
15592
15593 Silvermont (SLM) architecture performance tuning.
15594 * config/i386/i386.h (enum ix86_tune_indices): Add
15595 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
15596 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
15597
15598 * config/i386/i386.c (initial_ix86_tune_features)
15599 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
15600 (ix86_lea_outperforms): Handle Silvermont tuning.
15601 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
15602 call.
15603 (ix86_use_lea_for_mov): Likewise.
15604 (ix86_avoid_lea_for_addr): Likewise.
15605 (ix86_lea_for_add_ok): Likewise.
15606 (exact_dependency_1): New function.
15607 (exact_store_load_dependency): Likewise.
15608 (ix86_adjust_cost): Handle Silvermont tuning.
15609 (do_reoder_for_imul): Likewise.
15610 (swap_top_of_ready_list): New function.
15611 (ix86_sched_reorder): Changed to handle Silvermont tuning.
15612
15613 * config/i386/i386.md (peepholes that split memory operand in fp
15614 converts): New.
15615
e19c9de2
MS
156162013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
15617
15618 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15619 Remove un-necessary braces.
15620
38e6c9a6
MS
156212013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
15622
15623 * config/aarch64/aarch64.c (aarch64_classify_symbol):
15624 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
15625
e3530904
TB
156262013-05-31 Tobias Burnus <burnus@net-b.de>
15627
15628 PR middle-end/57073
c1e183a9 15629 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 15630
b6af05a9
KT
156312013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15632
15633 PR target/56315
15634 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
15635 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
15636 * config/arm/neon.md (iordi3_neon): Remove.
15637 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
15638 * config/arm/predicates.md (imm_for_neon_logic_operand):
15639 Move to earlier in the file.
15640 (neon_logic_op2): Likewise.
15641 (arm_iordi_operand_neon): New predicate.
15642
f800c166
RB
156432013-05-31 Richard Biener <rguenther@suse.de>
15644
15645 PR tree-optimization/57478
15646 PR tree-optimization/57453
15647 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
15648 are life as well.
15649
e571fa59
KP
156502013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
15651
15652 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
15653 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
15654
0fa6e0ef
TB
156552013-05-30 Tobias Burnus <burnus@net-b.de>
15656 Thomas Koenig <tkoenig@gcc.gnu.org>
15657
15658 PR middle-end/57073
15659 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
15660 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
15661
4688ddf5
SB
156622013-05-30 Steven Bosscher <steven@gcc.gnu.org>
15663
0fa6e0ef 15664 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 15665
3b9ceb4b
VM
156662013-05-30 Vladimir Makarov <vmakarov@redhat.com>
15667
15668 * target.def (register_usage_leveling_p): New hook.
15669 * targhooks.c (default_register_usage_leveling_p): New.
15670 * targhooks.h (default_register_usage_leveling_p): New prototype.
15671 * lra-assigns.c (register_usage_leveling_p): Use the hook.
15672 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
15673 * doc/tm.texi: Update.
15674 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
15675
65f9e789
IB
156762013-05-30 Ian Bolton <ian.bolton@arm.com>
15677
15678 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
15679 (*insv_reg<mode>): New define_insn.
15680
12211b99 156812013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
15682
15683 PR rtl-optimization/57439
15684 * postreload.c (move2add_valid_value_p): Check that we have
15685 a zero subreg_regno_offset when accessing the register in
15686 the requested mode.
15687
0b871ccf
YR
156882013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
15689 Igor Zamyatin <igor.zamyatin@intel.com>
15690
15691 Silvermont (SLM) architecture pipeline model, tuning and
15692 insn selection.
15693 * config.gcc: Add slm config options and target.
15694
15695 * config/i386/slm.md: New.
15696
15697 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15698
f43245d1 15699 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
15700 PROCESSOR_SLM.
15701 (ix86_target_macros_internal): Likewise.
15702
f43245d1 15703 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
15704 (m_SLM): New macro flag.
15705 (initial_ix86_tune_features): Set m_SLM.
15706 (x86_accumulate_outgoing_args): Likewise.
15707 (x86_arch_always_fancy_math_387): Likewise.
15708 (processor_target_table): Add slm cost.
15709 (cpu_names): Add slm cpu name.
15710 (x86_option_override_internal): Set SLM ISA.
15711 (ix86_issue_rate): New case PROCESSOR_SLM.
15712 (ia32_multipass_dfa_lookahead): Likewise.
15713 (fold_builtin_cpu): Add slm.
15714
15715 * config/i386/i386.h (TARGET_SLM): New target macro.
15716 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
15717 (processor_type): Add PROCESSOR_SLM.
15718
15719 * config/i386/i386.md (cpu): Add new value "slm".
15720 (slm.md): Include slm.md.
15721
24d5b097
XG
157222013-05-30 Bernd Schmidt <bernds@codesourcery.com>
15723 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15724
15725 * config/arm/arm-protos.h: Add and update function protos.
15726 * config/arm/arm.c (use_simple_return_p): New added.
15727 (thumb2_expand_return): Check simple_return flag.
15728 * config/arm/arm.md: Add simple_return and conditional simple_return.
15729 * config/arm/iterators.md: Add iterator for return and simple_return.
15730
c1cccc15
ZC
157312013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15732
15733 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
15734 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
15735 (arm_emit_vfp_multi_reg_pop): Likewise.
15736 (thumb2_emit_ldrd_pop): Likewise.
15737 (arm_expand_epilogue): Add misc REG_CFA notes.
15738 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
15739
3a4f280b
LC
157402013-05-29 Lawrence Crowl <crowl@google.com>
15741
15742 * config/arm/t-arm: Update for below.
15743
15744 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
15745 Change type to hash_table. Update dependent calls and types.
15746
15747 * config/i386/t-cygming: Update for below.
15748
15749 * config/i386/t-interix: Update for below.
15750
15751 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
15752 Change type to hash_table. Update dependent calls and types.
15753 (i386_find_on_wrapper_list::wrappers): Likewise.
15754
15755 * config/ia64/t-ia64: Update for below.
15756
15757 * config/ia64/ia64.c (bundle_state_table):
15758 Change type to hash_table. Update dependent calls and types.
15759
15760 * config/mips/mips.c (mips_reorg_process_insns::htab):
15761 Change type to hash_table. Update dependent calls and types.
15762
15763 * config/sol2.c (solaris_comdat_htab):
15764 Change type to hash_table. Update dependent calls and types.
15765
15766 * config/t-sol2: Update for above.
15767
1388a0e3
TJ
157682013-05-29 Teresa Johnson <tejohnson@google.com>
15769
15770 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
15771 functions are not yet marked as defined.
15772
a5965b52 157732013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
15774 Pat Haugen <pthaugen@us.ibm.com>
15775 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
15776
15777 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
15778 instructions.
15779 (VEC_A): Likewise.
15780 (VEC_C): Likewise.
15781 (vrotl<mode>3): Likewise.
15782 (vashl<mode>3): Likewise.
15783 (vlshr<mode>3): Likewise.
15784 (vashr<mode>3): Likewise.
15785
15786 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15787 support for power8 V2DI builtins.
15788
15789 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
15790 power8 V2DI builtins.
15791 (vupkhsw): Likewise.
15792 (vupklsw): Likewise.
15793 (vaddudm): Likewise.
15794 (vminsd): Likewise.
15795 (vmaxsd): Likewise.
15796 (vminud): Likewise.
15797 (vmaxud): Likewise.
15798 (vpkudum): Likewise.
15799 (vpksdss): Likewise.
15800 (vpkudus): Likewise.
15801 (vpksdus): Likewise.
15802 (vrld): Likewise.
15803 (vsld): Likewise.
15804 (vsrd): Likewise.
15805 (vsrad): Likewise.
15806 (vsubudm): Likewise.
15807 (vcmpequd): Likewise.
15808 (vcmpgtsd): Likewise.
15809 (vcmpgtud): Likewise.
15810 (vcmpequd_p): Likewise.
15811 (vcmpgtsd_p): Likewise.
15812 (vcmpgtud_p): Likewise.
15813 (vupkhsw): Likewise.
15814 (vupklsw): Likewise.
15815 (vaddudm): Likewise.
15816 (vmaxsd): Likewise.
15817 (vmaxud): Likewise.
15818 (vminsd): Likewise.
15819 (vminud): Likewise.
15820 (vpksdss): Likewise.
15821 (vpksdus): Likewise.
15822 (vpkudum): Likewise.
15823 (vpkudus): Likewise.
15824 (vrld): Likewise.
15825 (vsld): Likewise.
15826 (vsrad): Likewise.
15827 (vsrd): Likewise.
15828 (vsubudm): Likewise.
15829
15830 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
15831 support for power8 V2DI instructions.
15832
15833 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
15834 power8 V2DI instructions. Combine pack and unpack insns to use an
15835 iterator for each mode. Check whether a particular mode supports
15836 Altivec instructions instead of just checking TARGET_ALTIVEC.
15837 (UNSPEC_VPKUWUM): Likewise.
15838 (UNSPEC_VPKSHSS): Likewise.
15839 (UNSPEC_VPKSWSS): Likewise.
15840 (UNSPEC_VPKUHUS): Likewise.
15841 (UNSPEC_VPKSHUS): Likewise.
15842 (UNSPEC_VPKUWUS): Likewise.
15843 (UNSPEC_VPKSWUS): Likewise.
15844 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
15845 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
15846 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
15847 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
15848 (UNSPEC_VUPKHSB): Likewise.
15849 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
15850 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
15851 (UNSPEC_VUPKHSH): Likewise.
15852 (UNSPEC_VUPKLSB): Likewise.
15853 (UNSPEC_VUPKLSH): Likewise.
15854 (VI2): Likewise.
15855 (VI_char): Likewise.
15856 (VI_scalar): Likewise.
15857 (VI_unit): Likewise.
15858 (VP): Likewise.
15859 (VP_small): Likewise.
15860 (VP_small_lc): Likewise.
15861 (VU_char): Likewise.
15862 (add<mode>3): Likewise.
15863 (altivec_vaddcuw): Likewise.
15864 (altivec_vaddu<VI_char>s): Likewise.
15865 (altivec_vadds<VI_char>s): Likewise.
15866 (sub<mode>3): Likewise.
15867 (altivec_vsubcuw): Likewise.
15868 (altivec_vsubu<VI_char>s): Likewise.
15869 (altivec_vsubs<VI_char>s): Likewise.
15870 (altivec_vavgs<VI_char>): Likewise.
15871 (altivec_vcmpbfp): Likewise.
15872 (altivec_eq<mode>): Likewise.
15873 (altivec_gt<mode>): Likewise.
15874 (altivec_gtu<mode>): Likewise.
15875 (umax<mode>3): Likewise.
15876 (smax<mode>3): Likewise.
15877 (umin<mode>3): Likewise.
15878 (smin<mode>3): Likewise.
15879 (altivec_vpkuhum): Likewise.
15880 (altivec_vpkuwum): Likewise.
15881 (altivec_vpkshss): Likewise.
15882 (altivec_vpkswss): Likewise.
15883 (altivec_vpkuhus): Likewise.
15884 (altivec_vpkshus): Likewise.
15885 (altivec_vpkuwus): Likewise.
15886 (altivec_vpkswus): Likewise.
15887 (altivec_vpks<VI_char>ss): Likewise.
15888 (altivec_vpks<VI_char>us): Likewise.
15889 (altivec_vpku<VI_char>us): Likewise.
15890 (altivec_vpku<VI_char>um): Likewise.
15891 (altivec_vrl<VI_char>): Likewise.
15892 (altivec_vsl<VI_char>): Likewise.
15893 (altivec_vsr<VI_char>): Likewise.
15894 (altivec_vsra<VI_char>): Likewise.
15895 (altivec_vsldoi_<mode>): Likewise.
15896 (altivec_vupkhsb): Likewise.
15897 (altivec_vupkhs<VU_char>): Likewise.
15898 (altivec_vupkls<VU_char>): Likewise.
15899 (altivec_vupkhsh): Likewise.
15900 (altivec_vupklsb): Likewise.
15901 (altivec_vupklsh): Likewise.
15902 (altivec_vcmpequ<VI_char>_p): Likewise.
15903 (altivec_vcmpgts<VI_char>_p): Likewise.
15904 (altivec_vcmpgtu<VI_char>_p): Likewise.
15905 (abs<mode>2): Likewise.
15906 (vec_unpacks_hi_v16qi): Likewise.
15907 (vec_unpacks_hi_v8hi): Likewise.
15908 (vec_unpacks_lo_v16qi): Likewise.
15909 (vec_unpacks_hi_<VP_small_lc>): Likewise.
15910 (vec_unpacks_lo_v8hi): Likewise.
15911 (vec_unpacks_lo_<VP_small_lc>): Likewise.
15912 (vec_pack_trunc_v8h): Likewise.
15913 (vec_pack_trunc_v4si): Likewise.
15914 (vec_pack_trunc_<mode>): Likewise.
15915
15916 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
15917 V2DI builtins.
15918 (vec_vmaxsd): Likewise.
15919 (vec_vmaxud): Likewise.
15920 (vec_vminsd): Likewise.
15921 (vec_vminud): Likewise.
15922 (vec_vpksdss): Likewise.
15923 (vec_vpksdus): Likewise.
15924 (vec_vpkudum): Likewise.
15925 (vec_vpkudus): Likewise.
15926 (vec_vrld): Likewise.
15927 (vec_vsld): Likewise.
15928 (vec_vsrad): Likewise.
15929 (vec_vsrd): Likewise.
15930 (vec_vsubudm): Likewise.
15931 (vec_vupkhsw): Likewise.
15932 (vec_vupklsw): Likewise.
15933
e70670cf
JH
159342013-05-29 Jan Hubicka <jh@suse.cz>
15935
15936 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
15937 flags; reorder rest of fields in more consistent way.
15938 (varpool_node): Remove analyzed, finalized and alias.
15939 (cgraph_ndoe): Likewise.
15940 (symtab_alias_ultimate_target): New function.
15941 (cgraph_function_node): Move offline.
15942 (cgraph_reset_node): Declare.
15943 (cgraph_comdat_can_be_unshared_p): Remove.
15944 (varpool_remove_initializer): Declare.
15945 (varpool_first_defined_variable, varpool_next_defined_variable
15946 cgraph_first_defined_function, cgraph_next_defined_function): Update.
15947 (cgraph_function_with_gimple_body_p): Update.
15948 (varpool_all_refs_explicit_p): Update.
15949 (symtab_alias_target): New function.
15950 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
15951 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
15952 (cgraph_function_or_thunk_node): Simplify using
15953 symtab_alias_ultimate_target.
e70670cf
JH
15954 (varpool_variable_node): Likewise.
15955 * cgraph.c (cgraph_create_function_alias): Update.
15956 (cgraph_add_thunk): Update.
15957 (cgraph_remove_node): Update.
15958 (dump_cgraph_node): Do not dump removed flags.
15959 (cgraph_function_body_availability): Update.
15960 (cgraph_propagate_frequency): Update.
15961 (verify_cgraph_node): Check sanity of local flag.
15962 (cgraph_function_node): Move here from cgraph.h; revamp for
15963 cgraph_function_or_thunk_node.
15964 * lto-symtab.c (lto_varpool_replace_node): Update.
15965 (lto_symtab_resolve_can_prevail_p): Update.
15966 (lto_symtab_merge_cgraph_nodes): Update.
15967 * ipa-cp.c (determine_versionability, initialize_node_lattices,
15968 propagate_constants_accross_call, devirtualization_time_bonus,
15969 ipcp_propagate_stage): Update.
15970 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
15971 * ipa-inline-transform.c (clone_inlined_nodes,
15972 preserve_function_body_p): Update.
e70670cf
JH
15973 * ipa-reference.c (propagate): Update.
15974 (write_node_summary_p): Update.
15975 * toplev.c (wrapup_global_declaration_2): Update.
15976 * cgraphunit.c (cgraph_analyze_function): Rename to ...
15977 (analyze_function) ... this one.
15978 (cgraph_process_new_functions): Update.
15979 (cgraph_reset_node): Export.
15980 (cgraph_finalize_function): Update.
15981 (cgraph_add_new_function): Update.
15982 (process_function_and_variable_attributes): Update.
15983 (varpool_finalize_decl): Update.
15984 (symbol_finalized): Remove.
15985 (symbol_finalized_and_needed): Rename to ...
15986 (symbol_defined_and_needed): ... update.
15987 (cgraph_analyze_functions): Update.
15988 (handle_alias_pairs): Update.
15989 (mark_functions_to_output): Update.
15990 (assemble_thunk): Update.
15991 (output_in_order): Update.
15992 (output_weakrefs): Update.
15993 (finalize_compilation_unit): Update.
15994 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
15995 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
15996 input_node, input_varpool_node): Update.
15997 * dbxout.c (dbxout_expand_expr): Update.
15998 * cgraphclones.c (cgraph_clone_node): Update.
15999 (cgraph_copy_node_for_versioning): Update.
16000 (cgraph_materialize_clone): Update.
16001 (cgraph_materialize_all_clones): Update.
16002 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
16003 propagate_pure_const, propagate_nothrow): Update.
16004 * lto-streamer-out.c (lto_output, write_symbol): Update.
16005 * ipa-utils.c (ipa_reverse_postorder): Update.
16006 * ipa-inline.c (can_inline_edge_p): Update.
16007 (update_caller_keys, ipa_inline): Update.
16008 * dwarf2out.c (reference_to_unused,
16009 premark_types_used_by_global_vars_helper): Update.
16010 * tree-eh.c (tree_could_trap_p): Update.
16011 * ipa-split.c (consider_split, execute_split_functions): Update.
16012 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
16013 has_addr_references_p): Update; move ahead in file for better
16014 readability.
e70670cf
JH
16015 (process_references): Simplify.
16016 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
16017 bodies are removed.
16018 (cgraph_comdat_can_be_unshared_p): Make static.
16019 (cgraph_externally_visible_p): Update.
16020 (varpool_externally_visible_p): Update.
16021 (function_and_variable_visibility): Update.
16022 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
16023 ipa_tm_mark_force_output_node): Update.
16024 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
16025 estimate_edge_devirt_benefit, inline_generate_summary,
16026 inline_write_summary): Update.
16027 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
16028 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
16029 (ipa_print_node_params, ipa_prop_read_section,
16030 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
16031 * varasm.c (mark_decl_referenced): Update.
16032 (assemble_alias, dump_tm_clone_pairs): Update.
16033 * tree-inline.c (copy_bb): Update.
16034 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
16035 Update.
16036 * symtab.c (dump_symtab_base): Print new flags.
16037 (verify_symtab_base): Verify new flags.
16038 (symtab_alias_ultimate_target): New function.
16039 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
16040 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
16041 Update.
c1e183a9
UB
16042 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
16043 Update.
e70670cf
JH
16044 * i386.c (ix86_get_function_versions_dispatcher,
16045 ix86_generate_version_dispatcher_body): Update.
16046 (fold_builtin_cpu): Use varpool_add_new_variable.
16047 * varpool.c (varpool_remove_initializer): Break out from ...
16048 (varpool_remove_node): ... this one.
16049 (dump_varpool_node, varpool_node_for_asm,
16050 cgraph_variable_initializer_availability, varpool_analyze_node,
16051 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
16052 varpool_finalize_named_section_flags, varpool_create_variable_alias):
16053 Update.
e70670cf 16054
182802ad
JH
160552013-05-29 Jan Hubicka <jh@suse.cz>
16056
16057 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
16058
8190b609
ER
160592013-05-29 Easwaran Raman <eraman@google.com>
16060
16061 PR tree-optimization/57442
16062 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
16063 when control exits the main loop.
16064
69f5aa9b
SKS
160652013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
16066
16067 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
16068 and RX600.
c1e183a9 16069 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
16070 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
16071 * rx/t-rx: Add rx100 under multi library matches option for nofpu
16072 option.
16073
4b847da9
BS
160742013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16075
16076 PR tree-optimization/57441
16077 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
16078 Don't limit size of incr_vec to number of candidates.
16079
4fc43c39
SE
160802013-05-29 Steve Ellcey <sellcey@imgtec.com>
16081
16082 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
16083 and mips16 directories.
c1e183a9 16084 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
16085 (MULTILIB_DIRNAMES): Ditto.
16086 (MULTILIB_EXCEPTIONS): Add new exceptions.
16087 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
16088 (MULTILIB_DIRNAMES): Ditto.
16089 (MULTILIB_EXCEPTIONS): Add new exceptions.
16090
12211b99 160912012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
16092 Marcus Shawcroft <marcus.shawcroft@arm.com>
16093
16094 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16095 SYMBOL_TINY_ABSOLUTE.
16096 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
16097 SYMBOL_TINY_ABSOLUTE.
16098 (aarch64_expand_mov_immediate): Likewise.
16099 (aarch64_classify_symbol): Likewise.
16100 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
16101 Permit SYMBOL_TINY_ABSOLUTE.
16102 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
16103
12211b99 161042013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
16105 Marcus Shawcroft <marcus.shawcroft@arm.com>
16106
16107 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
16108 Refactor if/switch. Replace gcc_assert with if.
16109
c0186656
GG
161102013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16111
16112 * config/i386/i386.c (initial_ix86_tune_features): Enable
16113 FP Reassociation for AMD bdver1 and bdver2.
16114
d20188f3
MJ
161152013-05-29 Martin Jambor <mjambor@suse.cz>
16116
16117 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
16118 and IMAGPART_EXPR do not occur within other handled_components.
16119
292cba13
RB
161202013-05-29 Richard Biener <rguenther@suse.de>
16121
16122 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
16123 access on whether the use is in the BB we currently try to
16124 vectorize.
16125 (vect_bb_vectorization_profitable_p): Pass the BB we currently
16126 vectorize to vect_bb_slp_scalar_cost.
16127
6eddf228
RB
161282013-05-29 Richard Biener <rguenther@suse.de>
16129
16130 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
16131 computing scalar cost offsetted by stmts that are kept live
16132 by scalar uses.
16133 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
16134 for computation of scalar cost.
16135
7df36117
SE
161362013-05-28 Steve Ellcey <sellcey@mips.com>
16137
16138 * config/mips/mips-cpus.def (mips32r2): Change processor type.
16139
36536d79
BI
161402013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
16141
16142 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
16143 array notation built-in reduction functions.
16144 * doc/passes.texi (Passes): Added documentation about changes done
16145 for Cilk Plus.
16146 * doc/invoke.texi (C Dialect Options): Added documentation about
16147 the -fcilkplus flag.
16148 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
16149 (BUILTINS_DEF): Depend on cilkplus.def.
16150 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
16151 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
16152 * cilkplus.def: New file.
16153
12211b99 161542013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
16155
16156 PR rtl-optimization/57439
16157 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
16158
9daf6dbb
ER
161592013-05-28 Easwaran Raman <eraman@google.com>
16160
16161 PR tree-optimization/57337
16162 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
16163 (find_insert_point): Correctly identify the insertion point
16164 when two statements with the same UID is compared.
16165
fbd7e877
RB
161662013-05-28 Richard Biener <rguenther@suse.de>
16167
16168 PR tree-optimization/56787
16169 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
16170 from the list of data references.
16171 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
16172 clobbers.
16173 (vect_analyze_loop_operations): Likewise.
16174 (vect_transform_loop): Remove clobbers.
16175
bbba1117
MJ
161762013-05-28 Martin Jambor <mjambor@suse.cz>
16177
16178 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
16179 and REALPART_EXPRs have scalar type.
16180
bd388c2a
RB
161812013-05-28 Richard Biener <rguenther@suse.de>
16182
16183 PR tree-optimization/57411
16184 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
16185 virtual operands.
16186 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
16187 virtual operand propagation.
16188
2f56a311
EB
161892013-05-28 Eric Botcazou <ebotcazou@adacore.com>
16190
16191 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
16192 destination register for bmasksi_vis.
16193 (vector_init_bshuffle): Likewise.
16194 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
16195
5c3eacbb
EB
161962013-05-28 Eric Botcazou <ebotcazou@adacore.com>
16197
16198 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
16199 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
16200 mode if the instruction isn't available in the original mode.
16201 * config/sparc/sparc.opt (mfix-ut699): New option.
16202 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
16203 (divdf3): Turn into expander.
16204 (divdf3_nofix): New insn.
16205 (divdf3_fix): Likewise.
16206 (divsf3): Disable if -mfix-ut699.
16207 (sqrtdf2): Turn into expander.
16208 (sqrtdf2_nofix): New insn.
16209 (sqrtdf2_fix): Likewise.
16210 (sqrtsf2): Disable if -mfix-ut699.
16211
a1756c0a
RB
162122013-05-27 Richard Biener <rguenther@suse.de>
16213
16214 PR middle-end/57412
16215 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
16216 block for the new loop.
16217
5a892248
RB
162182013-05-27 Richard Biener <rguenther@suse.de>
16219
16220 PR tree-optimization/57343
16221 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
16222 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
16223 (number_of_iterations_cond): Do not build the folded tree.
16224
d1de852b
RB
162252013-05-27 Richard Biener <rguenther@suse.de>
16226
16227 Revert
16228 PR middle-end/57381
16229 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
16230 OEP_CONSTANT_ADDRESS_OF retained.
16231
16232 PR tree-optimization/57417
16233 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
16234 for unchanged base.
16235 (set_ssa_val_to): Compare addresses using
16236 get_addr_base_and_unit_offset.
16237
12211b99 162382013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
16239
16240 PR rtl-optimization/56833
16241 * postreload.c (move2add_record_mode): New function.
16242 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
16243 (move2add_use_add2_insn): Use move2add_record_sym_value.
16244 (move2add_use_add3_insn): Likewise.
16245 (reload_cse_move2add): Use move2add_valid_value_p and
16246 move2add_record_mode. Invalidate call-clobbered and REG_INC
16247 affected regs by setting reg_mode to VOIDmode.
16248 (move2add_note_store): Don't pretend the inside of a SUBREG is
16249 the actual destination. Invalidate single/leading registers by
16250 setting reg_mode to VOIDmode.
16251 Use move2add_record_sym_value, move2add_valid_value_p and
16252 move2add_record_mode.
16253
b03be25f
RB
162542013-05-27 Richard Biener <rguenther@suse.de>
16255
16256 PR tree-optimization/57396
16257 * tree-affine.c (double_int_constant_multiple_p): Properly
16258 return false for val == 0 and div != 0.
16259
44e88db2
RS
162602013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16261
16262 * config/mips/mips.h: Use #elif in preprocessor conditions.
16263
3b859704
RS
162642013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16265
16266 PR target/53916
16267 * config/mips/constraints.md (kl): New constraint.
16268 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
16269 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
16270 constraint for operand 0. Split after CSE for MIPS16. Emit a move
16271 from LO for MIPS16.
16272 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
16273
c979d5f5
RS
162742013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
16275
16276 PR target/55777
16277 * config/mips/mips.c (mips_can_inline_p): New function.
16278 (TARGET_CAN_INLINE_P): Define.
16279
8e90de43
SB
162802013-05-25 Steven Bosscher <steven@gcc.gnu.org>
16281
16282 * sched-int.h (ds_t, dw_t): Make unsigned int.
16283 Fix documentation that describes how all the ds_t bits are used.
16284 Reserve the last bit for delayed-branch scheduling.
16285 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
16286 (BITS_PER_DEP_WEAK): Fix definition and documentation.
16287 (gen_dep_weak_1): Remove prototype.
16288 * sched-deps.c (get_dep_weak_1): Make static.
16289 * target.def (speculate_insn, needs_block_p, gen_spec_check,
16290 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
16291 * doc/tm.texi: Regenerate.
16292 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
16293
cb5cb194
SB
162942013-05-24 Steven Bosscher <steven@gcc.gnu.org>
16295
16296 PR debug/56950
16297 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
16298
5bd93ff6
NS
162992013-05-24 Nathan Sidwell <nathan@codesourcery.com>
16300 Sandra Loosemore <sandra@codesourcery.com>
16301
16302 * config.gcc (powerpc-*): Allow native for with-cpu.
16303
2343af65
JL
163042013-05-24 Jeff Law <law@redhat.com>
16305
16306 PR tree-optimization/57124
16307 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
16308 conversion feeding a condition if the range has an overflow
16309 if -fstrict-overflow. Add warnings for when we do make the
16310 transformation.
16311
3ad695b9
DC
163122013-05-24 Dehao Chen <dehao@google.com>
16313
04960246 16314 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
16315 (locus_discrim_hasher): Likewise.
16316 (locus_discrim_hasher::hash): Likewise.
16317 (locus_discrim_hasher::equal): Likewise.
16318
82338059
MJ
163192013-05-24 Martin Jambor <mjambor@suse.cz>
16320
16321 PR tree-optimization/57294
16322 * cgraph.h (ipa_record_stmt_references): Declare.
16323 * cgraphbuild.c (ipa_record_stmt_references): New function.
16324 (build_cgraph_edges): Use ipa_record_stmt_references.
16325 (rebuild_cgraph_edges): Likewise.
16326 (cgraph_rebuild_references): Likewise.
16327 * ipa-prop.c (ipa_modify_call_arguments): Discard references
16328 associated with the old statement and build references from the
16329 newly built statements.
16330 * ipa-ref.c (ipa_remove_stmt_references): New function.
16331 * ipa-ref.h (ipa_remove_stmt_references): Declare.
16332
1ccd4874
VM
163332013-05-24 Vladimir Makarov <vmakarov@redhat.com>
16334
55805e54 16335 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 16336 mem-mem moves.
55805e54 16337 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 16338 too.
55805e54 16339 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
16340 secondary memory moves.
16341 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
16342 reg set up in the current insn.
16343
25e25c73
DC
163442013-05-24 Dehao Chen <dehao@google.com>
16345
04960246 16346 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
16347 hash function.
16348 (locus_descrim_hasher::equal): Likewise.
04960246 16349 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
16350 (make_edges): Likewise.
16351 (next_discriminator_for_locus): Likewise.
16352 (same_line_p): Likewise.
16353 (assign_discriminators): Likewise.
16354 (make_cond_expr_edges): Likewise.
16355 (make_gimple_switch_edges): Likewise.
16356 (make_goto_expr_edges): Likewise.
16357 (make_gimple_asm_edges): Likewise.
16358
50d38551
IB
163592013-05-24 Ian Bolton <ian.bolton@arm.com>
16360
16361 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
16362 X format specifier to only display bottom 16 bits.
16363 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
16364 immediate to match for operand 2, since it will be masked.
16365
aea0101d
RB
163662013-05-24 Richard Biener <rguenther@suse.de>
16367
16368 PR tree-optimization/57287
16369 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
16370 all SSA names that occur in abnormal PHIs.
16371
634e03d3
AI
163722013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
16373
16374 PR tree-ssa/57385
16375 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
16376 that index is not negative.
16377
b17c024f
EB
163782013-05-24 Eric Botcazou <ebotcazou@adacore.com>
16379
16380 PR rtl-optimization/55177
16381 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
16382 (simplify_byte_swapping_operation): New.
16383 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
16384 (simplify_relational_operation_1): Deal with BSWAP.
16385
46aeac1b
RH
163862013-05-23 Richard Henderson <rth@redhat.com>
16387
16388 PR target/56742
16389 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
16390 (ix86_reorg): Call it.
16391
70cc1536
UB
163922013-05-23 Uros Bizjak <ubizjak@gmail.com>
16393
16394 PR target/57379
16395 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
16396 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
16397 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
16398
b3851501
CB
163992013-05-23 Christian Bruel <christian.bruel@st.com>
16400
16401 PR debug/57351
16402 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
16403
12211b99 164042013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
16405 Marcus Shawcroft <marcus.shawcroft@arm.com>
16406
16407 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
16408 * config/aarch64/constraints.md (Usa): Remove.
16409 * doc/md.texi (AArch64 Usa): Remove.
16410
12211b99 164112013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
16412 Marcus Shawcroft <marcus.shawcroft@arm.com>
16413
16414 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
16415 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
16416 * config/aarch64/predicates.md (aarch64_const_address): Remove.
16417 (aarch64_mov_operand): Use aarch64_mov_operand_p.
16418
12211b99 164192013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
16420
16421 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
16422 instruction (AdvSIMD).
16423 * config/aarch64/aarch64-builtins.c
16424 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
16425 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
16426
76c36cb1 164272013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
16428
16429 PR middle-end/57347
16430 * tree.h (contains_bitfld_component_ref_p): Declare.
16431 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
16432 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
16433 caller.
7d2fb524
MJ
16434 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
16435 not access a bit-field. Assert all final offsets are byte-aligned.
16436
ce521ae6
RB
164372013-05-23 Richard Biener <rguenther@suse.de>
16438
16439 PR tree-optimization/57380
16440 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
16441 least one invariant or re-used load.
16442 * passes.c (init_optimization_passes): Move pass_phiprop before
16443 pass_forwprop.
16444
75c7257f
JG
164452013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
16446
16447 * config/aarch64/aarch64-simd.md
16448 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
16449
af6d44b5
RB
164502013-05-23 Richard Biener <rguenther@suse.de>
16451
16452 PR middle-end/57381
16453 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
16454 OEP_CONSTANT_ADDRESS_OF retained.
16455
bd3647bf
JJ
164562013-05-23 Jakub Jelinek <jakub@redhat.com>
16457
16458 PR middle-end/57344
70cc1536
UB
16459 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
16460 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 16461
a55757ea
RB
164622013-05-23 Richard Biener <rguenther@suse.de>
16463
16464 PR rtl-optimization/57341
16465 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
16466 instead of true_dependence.
16467
cfb00b41
DM
164682013-05-22 David Malcolm <dmalcolm@redhat.com>
16469
dd1c676f
DM
16470 * bb-reorder.c (branch_threshold): Make const.
16471 (exec_threshold): Ditto.
cfb00b41 16472
f62511da 164732013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
16474 Pat Haugen <pthaugen@us.ibm.com>
16475 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
16476
16477 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
16478 documentation for the power8 crypto builtins.
16479
16480 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
16481
16482 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
16483 macros for defining power8 builtin functions.
16484 (BU_P8V_AV_2): Likewise.
16485 (BU_P8V_AV_P): Likewise.
16486 (BU_P8V_VSX_1): Likewise.
16487 (BU_P8V_OVERLOAD_1): Likewise.
16488 (BU_P8V_OVERLOAD_2): Likewise.
16489 (BU_CRYPTO_1): Likewise.
16490 (BU_CRYPTO_2): Likewise.
16491 (BU_CRYPTO_3): Likewise.
16492 (BU_CRYPTO_OVERLOAD_1): Likewise.
16493 (BU_CRYPTO_OVERLOAD_2): Likewise.
16494 (XSCVSPDP): Fix typo, point to the correct instruction.
16495 (VCIPHER): Add power8 crypto builtins.
16496 (VCIPHERLAST): Likewise.
16497 (VNCIPHER): Likewise.
16498 (VNCIPHERLAST): Likewise.
16499 (VPMSUMB): Likewise.
16500 (VPMSUMH): Likewise.
16501 (VPMSUMW): Likewise.
16502 (VPERMXOR_V2DI): Likewise.
16503 (VPERMXOR_V4SI: Likewise.
16504 (VPERMXOR_V8HI: Likewise.
16505 (VPERMXOR_V16QI: Likewise.
16506 (VSHASIGMAW): Likewise.
16507 (VSHASIGMAD): Likewise.
16508 (VPMSUM): Likewise.
16509 (VPERMXOR): Likewise.
16510 (VSHASIGMA): Likewise.
16511
16512 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
16513 __CRYPTO__ if the crypto instructions are available.
16514 (altivec_overloaded_builtins): Add support for overloaded power8
16515 builtins.
16516
16517 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
16518 support for power8 crypto builtins.
16519 (builtin_function_type): Likewise.
16520 (altivec_init_builtins): Add support for builtins that take vector
16521 long long (V2DI) arguments.
16522
16523 * config/rs6000/crypto.md: New file, define power8 crypto
16524 instructions.
16525
165262013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
16527 Pat Haugen <pthaugen@us.ibm.com>
16528 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
16529
16530 * doc/invoke.texi (Option Summary): Add power8 options.
16531 (RS/6000 and PowerPC Options): Likewise.
16532
16533 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
16534 constraints.md instead of rs6000.h. Reorder w* constraints. Add
16535 wm, wn, wr documentation.
16536
f43245d1 16537 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
16538 registers if direct move instructions are enabled.
16539 (wn): New constraint for no registers.
16540 (wq): New constraint for quad word even GPR registers.
16541 (wr): New constraint if 64-bit instructions are enabled.
16542 (wv): New constraint if power8 vector instructions are enabled.
16543 (wQ): New constraint for quad word memory locations.
16544
f43245d1 16545 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
16546 constraint for 0..15 for crypto instructions.
16547 (gpc_reg_operand): If VSX allow registers in VSX registers as well
16548 as GPR and floating point registers.
16549 (int_reg_operand): New predicate to match only GPR registers.
16550 (base_reg_operand): New predicate to match base registers.
16551 (quad_int_reg_operand): New predicate to match even GPR registers
16552 for quad memory operations.
16553 (vsx_reg_or_cint_operand): New predicate to allow vector logical
16554 operations in both GPR and VSX registers.
16555 (quad_memory_operand): New predicate for quad memory operations.
16556 (reg_or_indexed_operand): New predicate for direct move support.
16557
f43245d1 16558 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
16559 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
16560 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
16561 (POWERPC_MASKS): Add power8 options.
16562 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
16563 various options.
16564
f43245d1 16565 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
16566 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
16567
f43245d1 16568 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
16569 (-mpower8-fusion): New power8 options.
16570 (-mpower8-fusion-sign): Likewise.
16571 (-mpower8-vector): Likewise.
16572 (-mcrypto): Likewise.
16573 (-mdirect-move): Likewise.
16574 (-mquad-memory): Likewise.
16575
f43245d1 16576 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
16577 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
16578 registers.
70cc1536 16579 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
16580 (rs6000_debug_vector_unit): Add p8_vector.
16581 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
16582 definitions. Also print fusion state.
16583 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
16584 (rs6000_builtin_mask_calculate): Add power8 builtin support.
16585 (rs6000_option_override_internal): Add support for power8.
16586 (rs6000_common_init_builtins): Add debugging for skipped builtins
16587 if -mdebug=builtin.
16588 (rs6000_adjust_cost): Add power8 support.
16589 (rs6000_issue_rate): Likewise.
16590 (insn_must_be_first_in_group): Likewise.
16591 (insn_must_be_last_in_group): Likewise.
16592 (force_new_group): Likewise.
16593 (rs6000_register_move_cost): Likewise.
16594 (rs6000_opt_masks): Likewise.
16595
16596 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
16597 power8 capable assembler, default to power7 options.
16598 (TARGET_DIRECT_MOVE): Likewise.
16599 (TARGET_CRYPTO): Likewise.
16600 (TARGET_P8_VECTOR): Likewise.
16601 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
16602 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
16603 (VECTOR_MEM_P8_VECTOR_P): Likewise.
16604 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
16605 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
16606 (TARGET_XSCVDPSPN): Likewise.
16607 (TARGET_XSCVSPDPN): Likewsie.
16608 (TARGET_SYNC_HI_QI): Likewise.
16609 (TARGET_SYNC_TI): Likewise.
16610 (MASK_CRYPTO): Likewise.
16611 (MASK_DIRECT_MOVE): Likewise.
16612 (MASK_P8_FUSION): Likewise.
16613 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
16614 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
16615 temporary used by some of the direct move instructions to get two FP
16616 temporary registers does not force creation of a stack frame.
f62511da
MM
16617 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
16618 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
16619 that any VSX registers are tieable, even if they are also an
16620 Altivec vector mode.
16621 (r6000_reg_class_enum): Add wm, wr, wv constraints.
16622 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
16623 (RS6000_BTM_CRYPTO): Likewise.
16624 (RS6000_BTM_COMMON): Likewise.
16625
16626 * config/rs6000/rs6000.md (cpu attribute): Add power8.
16627 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
16628 (enum rs6000_vector): Add power8 vector support.
16629
73a1a707
RR
166302013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16631
16632 PR target/19599
16633 PR target/57340
16634 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
16635 (any_sibcall_could_use_r3): this and handle indirect calls.
16636 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
16637
d28073d4
BS
166382013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16639
16640 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
16641
bee0b10c
RB
166422013-05-22 Richard Biener <rguenther@suse.de>
16643
16644 PR middle-end/57349
16645 * profile.c (branch_prob): Do not split blocks that are
16646 abnormally receiving from ECF_RETURNS_TWICE functions.
16647
98409b51
RS
166482013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16649
16650 * recog.c (offsettable_address_addr_space_p): Fix calculation of
16651 address mode. Move pointer mode initialization to the same place.
16652
c0602ab8
MZ
166532013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16654
16655 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
16656 while it has any effect.
16657
4f7a634e
ER
166582013-05-21 Easwaran Raman <eraman@google.com>
16659
16660 PR tree-optimization/57322
9daf6dbb
ER
16661 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
16662 UID of the statement added to the BB to be 1.
4f7a634e 16663
a4ce1258
JJ
166642013-05-21 Jakub Jelinek <jakub@redhat.com>
16665
16666 PR tree-optimization/57331
70cc1536
UB
16667 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
16668 of conversion from pointer type to integral type with integer.
a4ce1258 16669
1b14621a
MJ
166702013-05-21 Martin Jambor <mjambor@suse.cz>
16671
16672 PR lto/57289
16673 * ipa-prop.c (ipa_read_node_info): Process param_used and
16674 controlled_uses in the same order as when writing.
16675
e60661f0
MG
166762013-05-21 Magnus Granberg <baldrick@free.fr>
16677
16678 PR plugins/56754
ee49aa34 16679 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 16680
4a61be9a
RB
166812013-05-21 Richard Biener <rguenther@suse.de>
16682
16683 PR tree-optimization/57318
16684 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
16685 estimate stmts with side-effects as likely eliminated.
16686
c52da5f7
RB
166872013-05-21 Richard Biener <rguenther@suse.de>
16688
16689 PR tree-optimization/57330
16690 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
16691 preserve the call stmts fntype.
16692
7ec67e2a
RB
166932013-05-21 Richard Biener <rguenther@suse.de>
16694
16695 PR tree-optimization/57303
16696 * tree-ssa-sink.c (statement_sink_location): Improve killing
16697 stmt detection and properly handle self-assignments.
16698
b112d513
CB
166992013-05-21 Christian Bruel <christian.bruel@st.com>
16700
55805e54
YR
16701 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
16702 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
16703 registers. Set register size out of the PARALLEL loop.
16704
14c2ec26
OE
167052013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
16706
16707 PR target/56547
16708 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
16709 (*fmasf4, *fmasf4_media): New insns.
16710
da734fa1
RS
167112013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16712
16713 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
16714 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
16715 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
16716 (mips_idiv_insns): Update the comments to say that the returned
16717 instruction counts are in units of BASE_INSN_LENGTH.
16718 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
16719 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
16720 using 2 rather than 4 as the length of indirect MIPS16 and
16721 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
16722 length of a NOP. Don't divide MIPS16 lengths by 2.
16723 (mips16_split_long_branches): Assume a branch is long if the
16724 length is greater than 4 rather than 8.
16725 * config/mips/mips.md (length): Give MIPS16 lengths directly,
16726 rather than multiplying them by 2. Multiply instruction counts
16727 by BASE_INSN_LENGTH rather than 4.
16728 (*jump_mips16, tls_get_tp_mips16_<mode>)
16729 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
16730
13719e8b
RS
167312013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16732
16733 * config/mips/mips.md (extended_mips16): Remove branch case.
16734 (length): Remove duplicated extended_mips16 test.
16735
c3850d14
RS
167362013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16737
16738 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
16739
8da2e059
RS
167402013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
16741
16742 * recog.h (Recog_data): Rename to...
16743 (recog_data_d): ...this.
16744 (recog_data): Update accordingly.
16745 * recog.c (recog_data): Likewise.
16746 * reload.c (save_recog_data): Likewise.
16747 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
16748 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
16749
2df013f3
JB
167502013-05-17 Julian Brown <julian@codesourcery.com>
16751
16752 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
16753 found in a REG_EQUAL note, invalidate it.
16754
371e77e3 167552013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
16756
16757 * tree-ssa-reassoc.c (find_insert_point): New function.
16758 (insert_stmt_after): Likewise.
16759 (get_def_stmt): Likewise.
16760 (ensure_ops_are_available): Likewise.
16761 (not_dominated_by): Likewise.
16762 (rewrite_expr_tree): Do not move statements beyond what is
16763 necessary. Remove call to swap_ops_for_binary_stmt...
16764 (reassociate_bb): ... and move it here.
16765 (build_and_add_sum): Assign UIDs for new statements.
16766 (linearize_expr): Likewise.
16767 (do_reassoc): Renumber gimple statement UIDs.
16768
e01c7cca
JH
167692013-05-17 Jan Hubicka <jh@suse.cz>
16770
16771 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
16772 weakrefs.
16773 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
16774 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
16775 weakrefs.
e01c7cca
JH
16776 (output_weakrefs): Update.
16777
c3272a92
PCC
167782013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
16779 Martin Jambor <mjambor@suse.cz>
16780
16781 PR middle-end/57276
16782 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
16783 value that corresponds to the given aggval is found in values vector.
16784
11c2aa39
UB
167852013-05-17 Uros Bizjak <ubizjak@gmail.com>
16786
16787 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
16788 sse, sse2, sse3, ssse3 and sse4a flags to options.
16789
abecc8c6
DM
167902013-05-17 David Malcolm <dmalcolm@redhat.com>
16791
16792 * gengtype-state.c: (s_expr_writer): New class, to handle
16793 prettifying of output layout of s-expressions.
16794 (state_writer): New class, to write out gtype.state.
16795 (state_written_type_count): Move this variable into member data of
16796 state_writer.
16797 (s_expr_writer::s_expr_writer): New code: constructor for new class
16798 (state_writer::state_writer(): ditto
16799 (s_expr_writer::write_new_line): New function
16800 (s_expr_writer::write_any_indent): ditto
16801 (s_expr_writer::begin_s_expr): ditto
16802 (s_expr_writer::end_s_expr): ditto
16803 (write_state_fileloc): convert to method of state_writer...
16804 (state_writer:: write_state_fileloc): ...and use methods of
16805 s_expr_writer to write indentation into the gtype.state output file
16806 to visually represent the hierarchical structure of the list
16807 structures
16808 (write_state_fields): ditto, renaming to...
16809 (state_writer::write_state_fields)
16810 (write_state_a_string): ditto, renaming to...
16811 (state_writer::write_state_a_string)
16812 (write_state_string_option): ditto, renaming to...
16813 (state_writer::write_state_string_option)
16814 (write_state_type_option): ditto, renaming to...
16815 (state_writer::write_state_type_option)
16816 (write_state_nested_option): ditto, renaming to...
16817 (state_writer::write_state_nested_option)
16818 (write_state_option): ditto, renaming to...
16819 (state_writer::write_state_option)
16820 (write_state_options): ditto, renaming to...
16821 (state_writer::write_state_options)
16822 (write_state_lang_bitmap): ditto, renaming to...
16823 (state_writer::write_state_lang_bitmap)
16824 (write_state_version): ditto, renaming to...
16825 (state_writer::write_state_version)
16826 (write_state_scalar_type): ditto, renaming to...
16827 (state_writer::write_state_scalar_type)
16828 (write_state_string_type): ditto, renaming to...
16829 (state_writer::write_state_string_type)
16830 (write_state_undefined_type): ditto, renaming to...
16831 (state_writer::write_state_undefined_type)
16832 (write_state_struct_union_type): ditto, renaming to...
16833 (state_writer::write_state_struct_union_type)
16834 (write_state_struct_type): ditto, renaming to...
16835 (state_writer::write_state_struct_type)
16836 (write_state_user_struct_type): ditto, renaming to...
16837 (state_writer::write_state_user_struct_type)
16838 (write_state_lang_struct_type): ditto, renaming to...
16839 (state_writer::write_state_lang_struct_type)
16840 (write_state_param_struct_type): ditto, renaming to...
16841 (state_writer::write_state_param_struct_type)
16842 (write_state_pointer_type): ditto, renaming to...
16843 (state_writer::write_state_pointer_type)
16844 (write_state_array_type): ditto, renaming to...
16845 (state_writer::write_state_array_type)
16846 (write_state_gc_used): ditto, renaming to...
16847 (state_writer::write_state_gc_used)
16848 (write_state_common_type_content): ditto, renaming to...
16849 (state_writer::write_state_common_type_content)
16850 (write_state_type): ditto, renaming to...
16851 (state_writer::write_state_type)
16852 (write_state_pair_list): ditto, renaming to...
16853 (state_writer::write_state_pair_list)
16854 (write_state_pair): ditto, renaming to...
16855 (state_writer::write_state_pair)
16856 (write_state_typedefs): ditto, renaming to...
16857 (state_writer::write_state_typedefs)
16858 (write_state_structures): ditto, renaming to...
16859 (state_writer::write_state_structures)
16860 (write_state_param_structs): ditto, renaming to...
16861 (state_writer::write_state_param_structs)
16862 (write_state_variables): ditto, renaming to...
16863 (state_writer::write_state_variables)
16864 (write_state_srcdir): ditto, renaming to...
16865 (state_writer::write_state_srcdir)
16866 (write_state_files_list): ditto, renaming to...
16867 (state_writer::write_state_files_list)
16868 (write_state_languages): ditto, renaming to...
16869 (state_writer::write_state_languages)
16870 (write_state): create a state_writer instance and use it when
16871 writing out the state file
16872
d6545f29
MS
168732013-05-17 Mike Stump <mikestump@comcast.net>
16874
816a3f73 16875 PR rtl-optimization/57304
d6545f29
MS
16876 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
16877 accessing DF_REF_REAL_LOC.
16878
38c821cf
JJ
168792013-05-17 Jakub Jelinek <jakub@redhat.com>
16880
16881 PR rtl-optimization/57281
16882 PR rtl-optimization/57300
16883 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
16884 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
16885 what the other splitter did if the registers are dead.
16886
2a293391
RB
168872013-05-17 Richard Biener <rguenther@suse.de>
16888
16889 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
16890 MEM_REF offsets.
16891
17042d2b
JJ
168922013-05-17 Jakub Jelinek <jakub@redhat.com>
16893
16894 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
16895 linking.
16896
5b115c1f
MP
168972013-05-17 Marek Polacek <polacek@redhat.com>
16898
11c2aa39
UB
16899 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
16900 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 16901
52d84413
JJ
169022013-05-17 Jakub Jelinek <jakub@redhat.com>
16903
68119618
JJ
16904 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
16905 vect_external_def oprnd1 with loop_vinfo, try to emit
16906 optional cast, negation and and stmts on the loop preheader
16907 edge instead of into the pattern def seq.
16908
52d84413
JJ
16909 PR tree-optimization/57051
16910 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
16911 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
16912
17b962bd
NC
169132013-05-16 Nick Clifton <nickc@redhat.com>
16914
16915 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
16916 (rl78_is_naked_func): New function.
56aefbf7
UB
16917 (rl78_expand_prologue): Skip prologue generation for naked functions.
16918 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
16919 * doc/extend.texi (naked): Add RL78 to the list of processors
16920 that supports this attribute.
16921
b1a0f84e
JL
169222013-05-16 Jeff Law <law@redhat.com>
16923
16924 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
16925
af0e415b
UB
169262013-05-16 Uros Bizjak <ubizjak@gmail.com>
16927
16928 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
16929 cache parameters using detect_caches_amd also for CYRIX,
16930 NSC and TM2 signatures.
16931
19db293a
UB
169322013-05-16 Uros Bizjak <ubizjak@gmail.com>
16933 Dzianis Kahanovich <mahatma@eu.by>
16934
16935 PR target/45359
16936 PR target/46396
16937 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16938 VIA/Centaur processors and determine their cache parameters
16939 using detect_caches_amd.
16940
251a41b9
TJ
169412013-05-16 Teresa Johnson <tejohnson@google.com>
16942
16943 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
16944 (rtl_verify_edges): New function.
16945 (rtl_verify_bb_insns): Ditto.
16946 (rtl_verify_bb_pointers): Ditto.
16947 (rtl_verify_bb_insn_chain): Ditto.
16948 (rtl_verify_fallthru): Ditto.
16949 (rtl_verify_bb_layout): Ditto.
16950 (rtl_verify_flow_info_1): Outline checks into new functions.
16951 (rtl_verify_flow_info): Ditto.
16952
f14540b6
SE
169532013-05-16 Steve Ellcey <sellcey@imgtec.com>
16954
16955 * cfghooks.c (copy_bbs): Add update_dominance argument.
16956 * cfghooks.h (copy_bbs): Update prototype.
16957 * tree-cfg.c (gimple_duplicate_sese_region):
16958 Add update_dominance argument.
16959 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
16960 * tree-ssa-loop-ch.c (copy_loop_headers): Update
16961 gimple_duplicate_sese_region call.
16962 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
16963 Update copy_bbs call.
16964 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
16965 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
16966
7e9a3abb
JJ
169672013-05-16 Jakub Jelinek <jakub@redhat.com>
16968
16969 * tree-vectorizer.h (NUM_PATTERNS): Increment.
16970 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
16971 vect_recog_rotate_pattern.
16972 (vect_recog_rotate_pattern): New function.
16973
427b248d
JM
169742013-05-16 Jason Merrill <jason@redhat.com>
16975
16976 * Makefile.in (LLINKER): New variable.
16977 (mostlyclean): Remove link mutex.
16978 * configure.ac: Handle --enable-link-mutex.
16979 * lock-and-run.sh: New script.
16980
b871e3d2
RR
169812013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16982
16983 PR target/19599
16984 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
16985 for NULL decl.
16986
ce858126
RO
169872013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16988
16989 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
16990
798d3d04
GY
169912013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
16992
16993 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
16994 * config/arm/arm.c (next_consecutive_mem): New function.
16995 (gen_movmem_ldrd_strd): Likewise.
16996 * config/arm/arm.md (movmemqi): Update condition and code.
16997 (unaligned_loaddi, unaligned_storedi): New patterns.
16998
0baddc45
RO
169992013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17000
17001 * config.gcc: Obsolete *-*-solaris2.9*.
17002 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17003
aa9d5bcf
RB
170042013-05-16 Richard Biener <rguenther@suse.de>
17005
17006 * passes.c (init_optimization_passes): Move pass_parallelize_loops
17007 earlier, after GRAPHITE transforms and IV canonicalization.
17008
5a0f4dd3
JJ
170092013-05-16 Jakub Jelinek <jakub@redhat.com>
17010
17011 * omp-low.c (extract_omp_for_data): For collapsed loops,
17012 if at least one of the loops is known at compile time to
17013 iterate zero times, set count to 0.
17014 (expand_omp_regimplify_p): New function.
17015 (expand_omp_for_generic): For collapsed loops, if at least
17016 one of the loops isn't known to iterate at least once,
17017 add runtime check with setting count to 0.
17018 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
17019 For unsigned types if it isn't known at compile time that
17020 the loop will iterate at least once, add runtime check to bypass
17021 the whole loop if initial condition isn't true.
17022
e3753785
NS
170232013-05-16 Nathan Sidwell <nathan@codesourcery.com>
17024
17025 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
17026
43bb4dd1
MG
170272013-05-16 Marc Glisse <marc.glisse@inria.fr>
17028
17029 PR middle-end/57286
17030 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
17031 transformations to avoid an infinite loop.
17032
3571dde6
MP
170332013-05-16 Marek Polacek <polacek@redhat.com>
17034
17035 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
17036
b8b3f0ca
LE
170372013-05-15 Leif Ekblad <leif@rdos.net>
17038
17039 * config/i386/i386.c (ix86_decompose_address): Use
17040 DEFAULT_TLS_SEG_REG to access TLS segment register.
17041 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
17042 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
17043 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
17044
e299a383
RS
170452013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
17046
17047 PR target/57260
17048 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
17049 sibling calls to functions that would normally be lazily bound,
17050 unless $gp is call-clobbered.
17051
e7208ea3
UB
170522013-05-15 Uros Bizjak <ubizjak@gmail.com>
17053
19db293a 17054 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 17055 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
17056 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
17057 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
17058 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
17059 of TARGET_3DNOW.
17060 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
17061
e7413f3d
AS
170622013-05-15 Andreas Schwab <schwab@suse.de>
17063
17064 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
17065 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
17066 third operand.
17067
ad4db775
TJ
170682013-05-15 Teresa Johnson <tejohnson@google.com>
17069
17070 * loop-unroll.c (report_unroll_peel): Check decision before
17071 emitting unroll/peel message.
17072
af205f67
TJ
170732013-05-15 Teresa Johnson <tejohnson@google.com>
17074
17075 * function.h (has_bb_partition): New rtl_data flag.
17076 (bb_reorder_complete): Ditto.
17077 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
17078 instead of flag_reorder_blocks_and_partition.
17079 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
17080 with some enhancements.
17081 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
17082 * bb-reorder.c (connect_traces): Check for has_bb_partition
17083 instead of flag_reorder_blocks_and_partition.
17084 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
17085 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
17086 verify_hot_cold_block_grouping.
17087 (partition_hot_cold_basic_blocks): Set has_bb_partition.
17088
9adcfa3c
RR
170892013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17090
17091 PR target/19599
17092 * config/arm/predicates.md (call_insn_operand): New predicate.
17093 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
17094 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
17095 if insn is not a tail call.
17096 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
17097 registers.
17098 * config/arm/arm.h (enum reg_class): New caller save register class.
17099 (REG_CLASS_NAMES): Likewise.
17100 (REG_CLASS_CONTENTS): Likewise.
17101 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
17102 without decls.
17103
ccb3ad87
RB
171042013-05-15 Richard Biener <rguenther@suse.de>
17105
17106 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
17107 of MSG_OPTIMIZED_LOCATIONS.
17108 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
17109 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
17110 message.
17111 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
17112 of MSG_OPTIMIZED_LOCATIONS.
17113 (execute_vect_slp): Likewise.
17114 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17115 (vect_create_cond_for_alias_checks): Likewise.
17116 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
17117 (vect_recog_widen_mult_pattern): Likewise.
17118 (vect_recog_widen_sum_pattern): Likewise.
17119 (vect_recog_over_widening_pattern): Likewise.
17120 (vect_recog_widen_shift_pattern): Likewise.
17121 (vect_recog_vector_vector_shift_pattern): Likewise.
17122 (vect_recog_divmod_pattern): Likewise.
17123 (vect_recog_mixed_size_cond_pattern): Likewise.
17124 (vect_recog_bool_pattern): Likewise.
17125 (vect_pattern_recog_1): Likewise.
17126
48b1474e
MJ
171272013-05-15 Martin Jambor <mjambor@suse.cz>
17128
17129 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
17130 non-functions to builtin_unreachable.
17131 * ipa-inline-transform.c (inline_call): Do not assert estimates were
17132 correct when new direct edges were discovered.
17133
9de04252
MJ
171342013-05-15 Martin Jambor <mjambor@suse.cz>
17135
17136 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
17137 header, print symbol order instead of node uid, print more information
17138 about indirect edge targets.
17139 (ipa_make_edge_direct_to_target): Print symbol order instead of node
17140 uids.
17141 (ipa_make_edge_direct_to_target): Likewise.
17142 (remove_described_reference): Likewise.
17143 (propagate_controlled_uses): Likewise.
17144 (ipa_print_node_params): Also print symbol order.
17145 (ipcp_transform_function): Print symbol order instead of node uids.
17146 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
17147 (cgraph_get_create_real_symbol_node): Likewise.
17148 * ipa-cp.c (print_lattice): Likewise.
17149 (print_all_lattices): Likewise.
17150 (determine_versionability): Likewise.
17151 (initialize_node_lattices): Likewise.
17152 (estimate_local_effects): Likewise.
17153 (update_profiling_info): Likewise.
17154 (create_specialized_node): Likewise.
17155 (perhaps_add_new_callers): Likewise.
17156 (decide_about_value): Likewise.
17157 (decide_whether_version_node): Likewise.
17158 (identify_dead_nodes): Likewise.
17159 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
17160 (dump_inline_summary): Likewise.
17161 (estimate_node_size_and_time): Likewise.
17162 (inline_analyze_function): Likewise.
17163 * ipa-inline.c (report_inline_failed_reason): Likewise.
17164 (want_early_inline_function_p): Likewise.
17165 (edge_badness): Likewise.
17166 (update_edge_key): Likewise.
17167 (inline_small_functions): Likewise. Add dumping of order to two other
17168 dumps.
17169 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
17170 instead of node uids.
17171 (propagate_pure_const): Likewise.
17172 (propagate_pure_const): Likewise.
17173 * ipa-utils.c (dump_cgraph_node_set): Likewise.
17174 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
17175 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
17176 of node uids.
17177 * tree-pretty-print.c (dump_function_header): Likewise.
17178 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
17179 Print symbol order instead of node uids.
17180
1dd03b91
AK
171812013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17182
17183 * config/s390/s390.c (s390_register_move_cost): Don't impose the
17184 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
17185
fdf6a7b9
RB
171862013-05-15 Richard Biener <rguenther@suse.de>
17187
17188 PR tree-optimization/57275
17189 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
17190 return value for fail to do runtime alias checks for gather loads.
17191
2d6e4603
JH
171922013-05-15 Jan Hubicka <jh@suse.cz>
17193
17194 PR lto/57038
17195 PR lto/47375
e7208ea3
UB
17196 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
17197 weakrefs are not external.
17198 (lto_symtab_merge_decls): Fix thinko when dealing with
17199 non-lto_symtab decls.
2d6e4603
JH
17200 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
17201 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
17202 * varpool.c (dump_varpool_node): Dump more flags.
17203
83f44b39
GG
172042013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17205
17206 * config/i386/i386.c (processor_alias_table): Add instruction
17207 FSGSBASE for AMD bdver3 architecture.
17208
2e55d062
JJ
172092013-05-14 Jakub Jelinek <jakub@redhat.com>
17210
17211 * tree.c (warn_deprecated_use): Print file:line using locus color.
17212 * diagnostic.c (diagnostic_report_current_module): Print file:line
17213 and file:line:column using locus color.
17214
0bfdb81e
MS
172152013-05-14 Mike Stump <mikestump@comcast.net>
17216
17217 * gdbinit.in: Add __null.
17218
a508ef22
MS
172192013-05-14 Mike Stump <mikestump@comcast.net>
17220
17221 * recog.h: Rename struct recog_data to Recog_data.
17222 * recog.c: Likewise.
17223 * reload.c (can_reload_into): Likewise.
17224 * config/picochip/picochip.c: Likewise.
17225
e7180acb
MS
172262013-05-14 Mike Stump <mikestump@comcast.net>
17227
17228 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
17229
61216c26
SB
172302013-05-14 Steven Bosscher <steven@gcc.gnu.org>
17231
fd6beed4
SB
17232 * resource.h (struct resources): Remove unch_memory member.
17233 (CLEAR_RESOURCE): Don't clear unch_memory.
17234 * resource.c (mark_referenced_resources): Don't set it.
17235 (mark_set_resources): Likewise.
17236 (mark_target_live_regs): Don't clear it.
17237 (init_resource_info): Likewise.
17238 * reorg.c (resource_conflicts_p): Don't compare it.
17239 (redundant_insn): Don't set it.
17240
61216c26
SB
17241 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
17242 Remove prototypes.
17243 * emit-rtl.c (next_label): Remove unused function.
17244 (skip_consecutive_labels, link_cc0_insns): Move to ...
17245 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
17246 only place where these functions are used, and make them static.
17247
418d1b87
MG
172482013-05-14 Marc Glisse <marc.glisse@inria.fr>
17249
17250 * fold-const.c (fold_negate_expr): Handle vectors.
17251 (fold_truth_not_expr): Make it static.
17252 (fold_invert_truthvalue): New static function.
17253 (invert_truthvalue_loc): Handle vectors. Do not call
17254 fold_truth_not_expr directly.
17255 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
17256 <TRUTH_NOT_EXPR>: Do not cast to boolean.
17257 (fold_comparison): Handle vector constants.
17258 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
17259 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
17260 * tree.h (fold_truth_not_expr): Remove declaration.
17261
fc21784d
JG
172622013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
17263
17264 * config/aarch64/aarch64-simd.md
17265 (aarch64_vcond_internal<mode>): Rename to...
17266 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
17267 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
17268 float modes. Clarify all iterator modes.
17269 (vcond<mode><mode>): Use new name for vcond expanders.
17270 (vcond<v_cmp_result><mode>): Likewise.
17271 (vcondu<mode><mode>: Likewise.
17272 * config/aarch64/iterators.md (VDQF_COND): New.
17273
d4c52634
MG
172742013-05-14 Marc Glisse <marc.glisse@inria.fr>
17275
17276 PR bootstrap/57266
17277 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
17278 variable for the shift amount. Check that we shift by non-negative
17279 amounts.
17280
2b261262
CLT
172812013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
17282
17283 PR target/42017
17284 * config/arm/arm.h (EPILOGUE_USES): Only return true
17285 for LR_REGNUM after epilogue_completed.
17286
12211b99 172872013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
17288
17289 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 17290 is error_mark_node.
6e022d7b 17291
56cf7859
RO
172922013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17293
17294 PR target/57261
17295 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
17296 and Solaris 11+/x86 with gld.
17297 * configure: Regenerate.
17298
75776c6d
JJ
172992013-05-14 Jakub Jelinek <jakub@redhat.com>
17300
17301 * expmed.c (expand_shift_1): Canonicalize rotates by
17302 constant bitsize / 2 to bitsize - 1.
7f998021 17303 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
17304 case ROTATERT>: Likewise.
17305
17306 Revert:
17307 2013-05-10 Jakub Jelinek <jakub@redhat.com>
17308
17309 * config/i386/i386.md (rotateinv): New code attr.
17310 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
17311 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
17312 roll $31, %eax, etc.
17313
df35498a
RB
173142013-05-14 Richard Biener <rguenther@suse.de>
17315
17316 PR middle-end/57235
17317 * tree-eh.c (sink_clobbers): Give up for successors with
17318 multiple predecessors and no virtual uses.
17319
cc6e7ece
EB
173202013-05-14 Eric Botcazou <ebotcazou@adacore.com>
17321
17322 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
17323 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
17324
f778dd4d
JJ
173252013-05-14 Jakub Jelinek <jakub@redhat.com>
17326
17327 PR middle-end/57251
17328 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
17329 the case when both op0 and op1 have VOIDmode.
17330
bad4df9b
KP
173312013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
17332
17333 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
17334 in multiply-accumulate mode.
17335
56f3e9ac
GW
173362013-05-13 Guozhi Wei <carrot@google.com>
17337
17338 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
17339
a3d7ab92
KT
173402013-05-13 Kai Tietz <ktietz@redhat.com>
17341
17342 PR target/56975
17343 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 17344 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 17345 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 17346 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
17347 (ix86_expand_prologue): Likewise.
17348 (ix86_expand_split_stack_prologue): Likewise.
17349 (legitimate_pic_address_disp_p): Likewise.
17350 (legitimize_pic_address): Likewise.
17351 (legitimize_tls_address): Likewise.
17352 (legitimize_pe_coff_symbol): Likewise.
17353 (output_pic_addr_const): Likewise.
17354 (construct_plt_address): Likewise.
17355 (ix86_expand_call): Likewise.
17356 (x86_output_mi_thunk): Likewise.
17357 (x86_function_profiler): Likewise.
17358
c59b7e28
SN
173592013-05-13 Sofiane Naci <sofiane.naci@arm.com>
17360
17361 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
17362 similar switch cases.
17363 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
17364 (aarch64_simd_mov_to_<mode>low): Delete.
17365 (aarch64_simd_mov_to_<mode>high): Delete.
17366 (move_lo_quad_<mode>): Add w<-r alternative.
17367 (aarch64_simd_move_hi_quad_<mode>): Likewise.
17368 (aarch64_simd_mov_from_*): Update type attribute.
17369 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
17370 statement.
17371
5f28524a
JH
173722013-05-13 Jan Hubicka <jh@suse.cz>
17373
17374 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
17375 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
17376 ix86_expand_epilogue, emit_i387_cw_initialization,
17377 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
17378 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 17379
ae6fa899
JJ
173802013-05-13 Jakub Jelinek <jakub@redhat.com>
17381
17382 PR tree-optimization/45216
17383 PR tree-optimization/57157
17384 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
17385 the (-Y) & (B - 1) variant if OP is |.
17386 * expmed.c (expand_shift_1): For rotations by const0_rtx just
17387 return shifted. Use (-op1) & (prec - 1) as other_amount
17388 instead of prec - op1.
17389
4502fe8d
MJ
173902013-05-13 Martin Jambor <mjambor@suse.cz>
17391
17392 PR middle-end/42371
17393 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
17394 (ipa_constant_data): New type.
17395 (ipa_jump_func): Use ipa_constant_data to hold information about
17396 constant jump functions.
17397 (ipa_get_jf_constant): Adjust to jump function type changes.
17398 (ipa_get_jf_constant_rdesc): New function.
17399 (ipa_param_descriptor): New field controlled_uses.
17400 (ipa_get_controlled_uses): New function.
17401 (ipa_set_controlled_uses): Likewise.
17402 * ipa-ref.h (ipa_find_reference): Declare.
17403 * ipa-prop.c (ipa_cst_ref_desc): New type.
17404 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
17405 changes.
17406 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
17407 New parameter cs. Adjust all callers.
17408 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
17409 (remove_described_reference): New function.
17410 (jfunc_rdesc_usable): Likewise.
17411 (try_make_edge_direct_simple_call): Decrement controlled use count,
17412 attempt to remove reference if it hits zero.
17413 (combine_controlled_uses_counters): New function.
17414 (propagate_controlled_uses): Likewise.
17415 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
17416 (ipa_edge_duplication_hook): Duplicate reference descriptions.
17417 (ipa_print_node_params): Print described use counter.
17418 (ipa_write_jump_function): Adjust to jump function type changes.
17419 (ipa_read_jump_function): New parameter CS, pass it to
17420 ipa_set_jf_constant. Adjust caller.
17421 (ipa_write_node_info): Stream controlled use count
17422 (ipa_read_node_info): Likewise.
17423 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
17424 asserting.
17425 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
17426 count. Remove cloning-added reference if it reaches zero.
17427 * ipa-ref.c (ipa_find_reference): New function.
17428
0864bfc2
GG
174292013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17430
e7208ea3 17431 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
17432 alignment values for AMD BD and BT architectures.
17433
640bfeb2
MG
174342013-05-13 Marc Glisse <marc.glisse@inria.fr>
17435
17436 * tree-vect-generic.c (uniform_vector_p): Move ...
17437 * tree.c (uniform_vector_p): ... here.
17438 * tree.h (uniform_vector_p): Declare it.
17439 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
17440 into a scalar.
17441
3a60f32b
JJ
174422013-05-13 Jakub Jelinek <jakub@redhat.com>
17443
198fe1bf
JJ
17444 PR tree-optimization/57230
17445 * tree-ssa-strlen.c (handle_char_store): Record length for
17446 array store from STRING_CST.
17447
3a60f32b
JJ
17448 PR tree-optimization/57230
17449 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
17450 check.
17451
566be57c
JR
174522013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
17453
17454 * config/epiphany/epiphany.c (epiphany_init): Check size of
17455 NUM_MODES_FOR_MODE_SWITCHING.
17456 (epiphany_expand_prologue):
17457 Remove CONFIG_REGNUM initial value handling code.
17458 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
17459 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 17460 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
17461 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
17462 Don't return 1 for FP_MODE_NONE.
17463 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
17464 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
17465 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
17466 * config/epiphany/epiphany.md (save_config): New pattern.
17467
0f2c2331
UB
174682013-05-12 Uros Bizjak <ubizjak@gmail.com>
17469
17470 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
17471
5b3f93c7
UB
174722013-05-10 Uros Bizjak <ubizjak@gmail.com>
17473
17474 * config/i386/i386.md (memory): Handle sseishft1.
17475 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
17476 (*vec_extractv2di_1): Ditto.
17477
1f873f0e
VM
174782013-05-10 Vladimir Makarov <vmakarov@redhat.com>
17479
17480 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
17481 saved registers.
17482
341427fa 174832013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
17484
17485 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
17486 Add mthumb/march=armv7-a multilib.
17487 Add mthumb/march=armv7-r multilib.
17488 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
17489
9e69bdde
RC
174902013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
17491
17492 * config/v850/t-rtems: Add more multilibs.
17493
9ff09a22
RB
174942013-05-10 Richard Biener <rguenther@suse.de>
17495
17496 PR tree-optimization/57214
17497 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
17498 not propagate from SSA names that occur in abnormal PHI nodes.
17499
a5e0cd1d
MG
175002013-05-10 Marc Glisse <marc.glisse@inria.fr>
17501
17502 * stor-layout.c (element_precision): New function.
17503 * machmode.h (element_precision): Declare it.
17504 * tree.c (build_minus_one_cst): New function.
17505 (element_precision): Likewise.
17506 * tree.h (build_minus_one_cst): Declare new function.
17507 (element_precision): Likewise.
17508 * fold-const.c (operand_equal_p): Use element_precision.
17509 (fold_binary_loc): Handle vector types.
17510 * convert.c (convert_to_integer): Use element_precision.
17511 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
17512 separately.
17513
cb2558bc
RS
175142013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
17515
17516 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
17517 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
17518 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
17519 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
17520 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
17521 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
17522 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
17523 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
17524 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
17525 (Uuw8): New constraints.
17526 (Usb4): Move into alphabetical order.
17527 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
17528 (sd8_operand, ub8_operand, uw8_operand): New predicates.
17529 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
17530 previously unnamed patterns.
17531 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
17532 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
17533 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
17534 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
17535 of set_attr_alternative/if_then_else. Use extended_mips16 instead
17536 of specific lengths.
17537
cb3b8d33
JJ
175382013-05-10 Jakub Jelinek <jakub@redhat.com>
17539
6f93c008
JJ
17540 * config/i386/i386.md (rotateinv): New code attr.
17541 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
17542 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
17543 roll $31, %eax, etc.
17544
cb3b8d33
JJ
17545 PR tree-optimization/45216
17546 PR tree-optimization/57157
17547 * tree-ssa-forwprop.c (simplify_rotate): New function.
17548 (ssa_forward_propagate_and_combine): Call it.
17549
afb119be
RB
175502013-05-10 Richard Biener <rguenther@suse.de>
17551
17552 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
17553 disable peeling when we version for aliasing.
17554 (vector_alignment_reachable_p): Honor explicit user alignment.
17555 (vect_supportable_dr_alignment): Likewise.
17556 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
17557 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
17558 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
17559 then peeling to arrange for the cost-model check to come first.
17560
01ae4861
AM
175612013-05-10 Alan Modra <amodra@gmail.com>
17562
17563 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
17564 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
17565 * configure: Regenerate.
17566
ebc9a431
AM
175672013-05-10 Alan Modra <amodra@gmail.com>
17568
17569 PR target/55033
17570 * varasm.c (default_elf_select_section): Move !DECL_P check..
17571 (get_named_section): ..to here before calling get_section_name.
17572 Adjust assertion.
17573 (default_section_type_flags): Add DECL_P check.
17574 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
17575 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
17576
d4bca93c
JR
175772013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
17578
17579 * config/epiphany/epiphany.c (epiphany_expand_prologue):
17580 When using gen_stack_adjust_str with a register offset, add a
17581 REG_FRAME_RELATED_EXPR note.
17582
60ca9a65
UB
175832013-05-09 Uros Bizjak <ubizjak@gmail.com>
17584
17585 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
17586 (*vec_extractv4si_zext_mem): Ditto.
17587 (*vec_extractv2di): Add 0->x and x->x alternatives.
17588 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
17589 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
17590
a3409c02
JM
175912013-05-09 Jason Merrill <jason@redhat.com>
17592
0138d6b2
JM
17593 N3639 C++1y VLA support
17594 * gimplify.c (gimplify_vla_decl): Don't touch an existing
17595 DECL_VALUE_EXPR.
17596
a3409c02
JM
17597 * tree.c (build_constructor_va): New.
17598 * tree.h: Declare it.
17599
66e6b990
MJ
176002013-05-09 Martin Jambor <mjambor@suse.cz>
17601
17602 PR lto/57084
17603 * gimple-fold.c (canonicalize_constructor_val): Call
17604 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
17605
64cfa6c0
JH
176062013-05-09 Jan Hubicka <jh@suse.cz>
17607 Richard Biener <rguenther@suse.de>
17608
17609 PR lto/54095
17610 * symtab.c (symtab_make_decl_local): Do not add private names.
17611
c3167b00
JH
176122013-05-09 Jan Hubicka <jh@suse.cz>
17613
17614 PR lto/54095
17615 * symtab.c (insert_to_assembler_name_hash): Handle clones.
17616 (unlink_from_assembler_name_hash): Likewise.
17617 (symtab_prevail_in_asm_name_hash, symtab_register_node,
17618 symtab_unregister_node, symtab_initialize_asm_name_hash,
17619 change_decl_assembler_name): Update.
17620
12dc6974
SN
176212013-05-09 Sofiane Naci <sofiane.naci@arm.com>
17622
17623 * config/aarch64/aarch64.md: New movtf split.
17624 (*movtf_aarch64): Update.
17625 (aarch64_movdi_tilow): Handle TF modes and rename to
17626 aarch64_movdi_<mode>low.
17627 (aarch64_movdi_tihigh): Handle TF modes and rename to
17628 aarch64_movdi_<mode>high
17629 (aarch64_movtihigh_di): Handle TF modes and rename to
17630 aarch64_mov<mode>high_di
17631 (aarch64_movtilow_di): Handle TF modes and rename to
17632 aarch64_mov<mode>low_di
17633 (aarch64_movtilow_tilow): Remove spurious whitespace.
17634 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
17635 splits.
17636 (aarch64_print_operand): Update.
17637
227eb343
AM
176382013-05-09 Alan Modra <amodra@gmail.com>
17639
17640 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
17641 powerpc64le.
17642 * configure: Regenerate.
17643
0b013847
UB
176442013-05-08 Uros Bizjak <ubizjak@gmail.com>
17645
17646 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
17647 splitter preparation statements.
17648 * config/i386/sse.md (*vec_extract* splitters): Ditto.
17649 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
17650 adjust_address_nv.
17651
1dc3d6e9
BS
176522013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17653
17654 * gimple-ssa-strength-reduction.c (count_candidates): Change
17655 return value to int.
17656 (analyze_candidates_and_replace): Change type of length to int.
17657
e61e7d28
UB
176582013-05-08 Uros Bizjak <ubizjak@gmail.com>
17659
17660 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
17661 (*vec_extract<mode>): Use VI12_128 mode iterator.
17662 (*vec_extract<mode>_mem): Ditto.
17663 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
17664 attribute.
17665
4fbfcf44
DN
176662013-05-08 Diego Novillo <dnovillo@google.com>
17667
17668 PR bootstrap/54659
17669
17670 Revert:
4fbfcf44
DN
17671 2012-08-17 Diego Novillo <dnovillo@google.com>
17672
e61e7d28
UB
17673 PR bootstrap/54281
17674 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
17675 * config.in: Regenerate.
17676 * configure: Regenerate.
17677 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 17678
702d8703
JH
176792013-05-08 Jan Hubicka <jh@suse.cz>
17680
17681 PR lto/54095
17682 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
17683 * cgraph.h (symtab_node_base): Add unique_name.
17684 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
17685 input_overwrite_node, input_varpool_node): Stream unique_name.
17686 * cgraphclones.c (cgraph_create_virtual_clone,
17687 cgraph_function_versioning): Set unique_name.
17688 * ipa.c (function_and_variable_visibility): Set unique_name.
17689
8b28cf47
BS
176902013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17691
17692 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
17693 (alloc_cand_and_find_basis): Restrict conditional candidate
17694 processing to CAND_MULTs.
17695
e86074fd
JH
176962013-05-08 Jan Hubicka <jh@suse.cz>
17697
17698 PR lto/54095
17699 lto-symtab.c (lto_symtab_symbol_p): New function.
17700 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
17701 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
17702 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
17703 Skip static symbols.
17704
44398cbe
PC
177052013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
17706
17707 PR tree-optimization/57200
17708 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
17709 Only call inform if the preceding warning_at returns true.
17710
f6bc1c4a
HS
177112013-05-07 Han Shen <shenhan@google.com>
17712
17713 * cfgexpand.c (record_or_union_type_has_array_p): New function.
17714 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
17715 * common.opt (fstack-protector-strong): New option.
17716 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
17717 * doc/invoke.texi (Optimization Options): Document
17718 "-fstack-protector-strong".
17719 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
17720
4ffecb1f
SB
177212013-05-06 Steven Bosscher <steven@gcc.gnu.org>
17722
17723 * config/mips/mips.c (mips_machine_reorg2): Return 0.
17724
5a107a0f
VM
177252013-05-07 Vladimir Makarov <vmakarov@redhat.com>
17726
17727 * ira.c (update_equiv_regs): Add insn having equiv memory even if
17728 it is not lhs of the insn.
17729 (setup_reg_equiv): Remove insn having equiv memory which it is not
17730 lhs of the insn.
17731 * lra-constraints.c (process_address): Try to improve generation
17732 code for address base + disp.
17733 (lra_constraints): Make correct the code for checking insn setting
17734 up backward equivalence. Remove insn only if it is in the init
17735 insn list.
17736 * lra-eliminations.c (update_reg_eliminate): Change return value.
17737 (lra_eliminate): Use the result.
17738
3f5783ea
UB
177392013-05-07 Uros Bizjak <ubizjak@gmail.com>
17740
17741 * config/i386/sse.md (ssescalarnummask): New mode attribute.
17742 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
17743 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
17744 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
17745 register target operands.
17746 (*vec_extractv8hi_sse2): New pattern.
17747 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
17748 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
17749 (*vec_extract<mode>_mem): New insn and split pattern.
17750
8a5800b8
CL
177512013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
17752
17753 * config/arm/arm.c (arm_asan_shadow_offset): New function.
17754 (TARGET_ASAN_SHADOW_OFFSET): Define.
17755 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
17756 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
17757
7bf55a70
BS
177582013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17759
17760 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
17761 (incr_vec_index): Return -1 if increment not found.
17762 (create_add_on_incoming_edge): Assert if increment not found.
17763 (record_increment): Limit number of increments recorded.
17764 (all_phi_incrs_profitable): Return false if an increment not found.
17765 (replace_profitable_candidates): Don't process increments that were
17766 not recorded.
17767 (analyze_candidates_and_replace): Limit size of incr_vec.
17768
3f8825c0
RB
177692013-05-07 Richard Biener <rguenther@suse.de>
17770
17771 * calls.c (special_function_p): setjmp-like functions are leaf.
17772 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
17773 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
17774
fd4842cd
SN
177752013-05-07 Sofiane Naci <sofiane.naci@arm.com>
17776
17777 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
17778 (aarch64_simd_mov<mode>): New expander.
17779 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
17780 (aarch64_simd_mov_to_<mode>high): Likewise.
17781 (aarch64_simd_mov_from_<mode>low): Likewise.
17782 (aarch64_simd_mov_from_<mode>high): Likewise.
17783 (aarch64_dup_lane<mode>): Update.
17784 (aarch64_dup_lanedi): New instruction pattern.
17785 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
17786 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
17787
a7a7d10e
BS
177882013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17789
17790 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
17791 (replace_mult_candidate): Remove unnecessary argument; remove
17792 unnecessary parameter from call to introduce_cast_before_cand.
17793 (replace_unconditional_candidate): Remove unnecessary parameter
17794 from call to replace_mult_candidate.
17795 (replace_conditional_candidate): Likewise.
17796 (insert_initializers): Use make_temp_ssa_name.
17797 (introduce_cast_before_cand): Remove unnecessary argument; use
17798 make_temp_ssa_name.
17799 (replace_one_candidate): Remove unnecessary argument; remove
17800 unnecessary parameter from calls to introduce_cast_before_cand.
17801 (replace_profitable_candidates): Remove unnecessary parameters
17802 from calls to replace_one_candidate.
17803
29105868
BS
178042013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17805
17806 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
17807 phi def as possibly hiding a basis for a CAND_ADD whose operands
17808 have been commuted in the analysis.
17809 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
17810
4095f9fa
N
178112013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17812
17813 * config/aarch64/aarch64.md
17814 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
17815 shift value between 0-4.
17816
39e843e8
RB
178172013-05-07 Richard Biener <rguenther@suse.de>
17818
17819 * double-int.h (rshift): New overload.
17820 * double-int.c (rshift): New function.
17821 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
17822 (create_reference_ops_from_ref): Remove.
17823 (vn_reference_insert): Use shared ops for constructing the
17824 reference and copy it.
17825
0a1a83cb
RB
178262013-05-07 Richard Biener <rguenther@suse.de>
17827
17828 PR middle-end/57190
17829 * tree-eh.c (sink_clobbers): Properly propagate
17830 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17831
43303d6f
JJ
178322013-05-07 Jakub Jelinek <jakub@redhat.com>
17833
ba7e83f8
JJ
17834 PR tree-optimization/57149
17835 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
17836 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
17837 collect_phi_def_edges, execute_late_warn_uninitialized): Use
17838 uninit_undefined_value_p instead of ssa_undefined_value_p.
17839
43303d6f
JJ
17840 PR debug/57184
17841 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
17842 for modifier == EXPAND_INITIALIZER.
17843
14523c25
AB
178442013-05-07 Anton Blanchard <anton@samba.org>
17845
17846 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
17847 for powerpc64 little endian.
17848 * configure: Regenerate.
17849
cb7c8be9
GS
178502013-05-06 Graham Stott <grahams@btinternet.com>
17851
17852 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
17853 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
17854 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
17855 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
17856
178572013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
17858
17859 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
17860 codes which allow non-lvalues.
17861
9a0ee7b0
MG
178622013-05-06 Marc Glisse <marc.glisse@inria.fr>
17863
17864 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
17865 components are all 1s.
17866 (integer_minus_onep): New function.
17867 * tree.h (integer_minus_onep): Declare it.
17868 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
17869 integer_minus_onep instead of integer_all_onesp.
17870
f2c17ea9
OE
178712013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17872
17873 PR target/52933
17874 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
17875 variations of these patterns.
17876
f75e6a51
UB
178772013-05-06 Uros Bizjak <ubizjak@gmail.com>
17878
17879 * config/i386/i386.md (isa): Add x64_sse4 member.
17880 (enabled): Handle x64_sse4.
17881 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
17882 instruction for 64bit SSE4_1 targets. Update insn attributes.
17883 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
17884 instruction for SSE4_1 targets. Update insn attributes.
17885 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
17886 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
17887 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
17888 const_1 selector.
17889 (*vec_extractv4si): Rename from *sse4_1_pextrd.
17890 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
17891 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
17892
a986d468
OE
178932013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17894
17895 PR target/57108
17896 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
17897
382522cb
MK
178982013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
17899
17900 * final.c (do_assembler_dialects): Don't handle curly braces and
17901 vertical bar escaped by % as dialect delimiters.
17902 (output_asm_insn): Print curly braces and vertical bar if escaped
17903 by % and ASSEMBLER_DIALECT defined.
17904 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
17905 * doc/tm.texi: Regenerated.
17906
fb0d5c60
SB
179072013-05-06 Steven Bosscher <steven@gcc.gnu.org>
17908
fb0d5c60
SB
17909 * config/mips/mips.c: Include tree-pass.h.
17910 (mips_reorg): Split in pre- and post-dbr_schedule parts.
17911 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
17912 (pass_mips_machine_reorg2): New machine specific pass.
17913 (insert_pass_mips_machine_reorg2): New pass plugin definition.
17914 (mips_option_override): Register the new pass.
17915 * rtl.h (cleanup_barriers): Remove prototype.
17916 (dbr_schedule): Likewise.
17917 * jump.c (cleanup_barriers): Make static.
17918 * reorg.c (dbr_schedule): Likewise.
17919
aa06a978
RB
179202013-05-06 Richard Biener <rguenther@suse.de>
17921
17922 PR tree-optimization/57185
17923 * tree-parloops.c (add_field_for_reduction): Handle anonymous
17924 SSA names properly.
17925
0b953bec
UB
179262013-05-06 Uros Bizjak <ubizjak@gmail.com>
17927
17928 PR target/57106
17929 * config/i386/i386.c (add_parameter_dependencies): Add dependence
17930 between "first_arg" and "insn", not "last" and "insn".
17931
28708525
WS
179322013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17933
17934 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
17935 (find_candidates_in_block): Re-enable slsr_process_phi.
17936 (create_phi_basis): Fix double counting of candidate adjustment.
17937
0107dca2
RB
179382013-05-06 Richard Biener <rguenther@suse.de>
17939
17940 PR middle-end/57147
17941 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
17942 the edge is also fallthru, preserve it and just clear the
17943 abnormal flag.
17944 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
17945 also complex, preserve that and just clear the fallthru flag.
17946 * tree-inline.c (update_ssa_across_abnormal_edges): Also
17947 update virtual operands.
17948
470d4d13
AM
179492013-05-06 Alan Modra <amodra@gmail.com>
17950
17951 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
17952 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
17953 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
17954 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
17955 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
17956 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
17957
8f1dbf8d
AM
179582013-05-06 Alan Modra <amodra@gmail.com>
17959
17960 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
17961 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
17962 (DEFAULT_ASM_ENDIAN): Define.
17963 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
17964 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
17965 Update -K PIC clause from sysv4.h.
17966 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
17967 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
17968
54890767
AM
179692013-05-06 Alan Modra <amodra@gmail.com>
17970
17971 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
17972 twice for little-endian.
17973 (ashrdi3_no_power, ashrdi3): Support little-endian.
17974
2353515d
OE
179752013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
17976
17977 PR target/55303
17978 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
17979 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
17980 related expanders.
17981 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
17982 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
17983 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
17984 New predicates.
17985
33e67557
SB
179862013-05-05 Steven Bosscher <steven@gcc.gnu.org>
17987 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17988
17989 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
17990 * config/pa/pa.opt: Make mbig-switch a no-op.
17991 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
17992 (CASE_VECTOR_MODE): Always return SImode.
17993 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
17994 for the !TARGET_BIG_SWITCH case.
17995 * config/pa/pa-linux.h: Likewise.
17996 * config/pa/pa-openbsd.h: Likewise.
17997 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
17998 * config/pa/pa.md (short_jump): Remove define_insn.
17999 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
18000 (casesi0): Remove define_insn.
18001 (type): Remove btable_branch.
18002 (pa_combine_type): Likewise.
18003 (in_nullified_branch_delay): Likewise.
18004 (in_call_delay): Likewise.
18005 (define_delay): Likewise.
18006 (define_insn_reservation "Z3"): Likewise.
18007 (define_insn_reservation "Z4"): Likewise.
18008 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
18009 (pa_adjust_insn_length): Remove adjustment for btable branches.
18010 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
18011 and mno-big-switch
18012
3095685e
UB
180132013-05-05 Uros Bizjak <ubizjak@gmail.com>
18014
18015 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
18016 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
18017 Add m->r,x alternatives.
18018 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
18019 splitters using SWI48x mode iterator.
18020 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
18021 TARGET_64BIT. Add m->x alternative.
18022 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
18023 Add o->x alternative. Enable for TARGET_SSE.
18024 (sse_storeq): Remove expander.
18025 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
18026 with memory input operand.
18027 (*vec_extractv2di_1 splitter): New.
18028 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
18029 * config/i386/i386.md (ssevecmodelower): New mode attribute.
18030
4b36ae28
SB
180312013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18032
18033 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
18034 (INT_LOWPART): Delete.
18035 (extract_MB): Adjust.
18036 (extract_ME): Adjust.
18037 (print_operand): Adjust.
18038
da226db2
SB
180392013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
18040
18041 * config/rs6000/predicates.md (reg_or_add_cint_operand,
18042 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
18043 (reg_or_logical_cint_operand, easy_fp_constant,
18044 logical_const_operand): Delete "CONST_DOUBLE" case.
18045 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
18046 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 18047 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
18048 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
18049 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
18050 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
18051 test.
18052 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
18053 CONST_DOUBLE DImode/VOIDmode case.
18054 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
18055 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
18056 CONST_DOUBLE VOIDmode case.
18057 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
18058 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
18059 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
18060 Delete CONST_DOUBLE case.
18061 (splitters for mov FMOVE64 const_double): Delete
18062 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
18063 "HOST_BITS_PER_WIDE_INT >= 64" test.
18064 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
18065 case.
18066 (mov DI const_double): Delete.
18067
40de22d6
JJ
180682013-05-04 Jakub Jelinek <jakub@redhat.com>
18069
18070 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
18071 on op shows all bits zero in mode of a lowpart subreg, return zero.
18072
5ec6aff2
MM
180732013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18074
18075 PR target/57150
18076 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
18077 to save TFmode registers and DImode to save TImode registers for
18078 caller save operations.
18079 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
18080 mark being partially clobbered since they only use the first
18081 double word.
18082
18083 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
18084 and TDmode only use the upper 64-bits of each VSX register.
18085
2cefad90
BS
180862013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18087
18088 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
18089 (find_candidates_in_block): Disable slsr_process_phi.
18090
d6d7eee1
GW
180912013-05-03 Guozhi Wei <carrot@google.com>
18092
18093 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
18094 constructor to ...
18095 (build_init_ctor): ... here.
d6d7eee1 18096
9b92d12b
BS
180972013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18098
18099 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
18100 (slsr_cand_d): Redefine def_phi.
18101 (stride_status, phi_adjust_status, count_phis_status): New enums.
18102 (find_phi_def): New.
18103 (find_basis_for_base_expr): New.
18104 (find_basis_for_candidate): Handle hidden bases.
18105 (alloc_cand_and_find_basis): Handle phi candidates.
18106 (slsr_process_phi): New.
18107 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
18108 (create_mul_imm_cand): Likewise.
18109 (create_add_ssa_cand): Exclude phi base candidates.
18110 (create_add_imm_cand): Likewise.
18111 (slsr_process_cast): Likewise.
18112 (slsr_process_copy): Likewise.
18113 (find_candidates_in_block): Handle phi candidates.
18114 (dump_candidate): Likewise.
18115 (unconditional_cands): Delete.
18116 (unconditional_cands_with_known_stride_p): Delete.
18117 (phi_dependent_cand_p): New.
18118 (cand_increment): Handle phi-dependent candidates.
18119 (replace_dependent): Delete.
18120 (replace_mult_candidate): New.
18121 (replace_unconditional_candidate): New.
18122 (incr_vec_index): Move to avoid forward reference.
18123 (create_add_on_incoming_edge): New.
18124 (create_phi_basis): New.
18125 (replace_dependents): Delete.
18126 (replace_conditional_candidate): New.
18127 (phi_add_costs): New.
18128 (replace_uncond_cands_and_profitable_phis): New.
18129 (record_increment): Handle phi adjustments.
18130 (record_phi_increments): New.
18131 (record_increments): Handle phi adjustments.
18132 (phi_incr_cost): New.
18133 (lowest_cost_path): Handle phis.
18134 (total_savings): Likewise.
18135 (analyze_increments): Likewise.
18136 (ncd_with_phi): New.
18137 (ncd_of_cand_and_phis): New.
18138 (nearest_common_dominator_for_cands): Handle phi increments.
18139 (all_phi_incrs_profitable): New.
18140 (replace_profitable_candidates): Handle phi-dependent candidates.
18141 (analyze_candidates_and_replace): Likewise.
18142
68f073d4
TJ
181432013-05-03 Teresa Johnson <tejohnson@google.com>
18144
18145 PR bootstrap/57154
18146 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
18147 do not exceed REG_BR_PROB_BASE.
18148
a4ee7cb9
JL
181492013-05-03 Jeff Law <law@redhat.com>
18150
ade67f70 18151 PR tree-optimization/57144
a4ee7cb9
JL
18152 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
18153 operand of the condition will bit into the new type when eliminating
18154 a cast feeding a condition.
18155
47954c4e
JJ
181562013-05-03 Jakub Jelinek <jakub@redhat.com>
18157
18158 PR rtl-optimization/57130
3095685e
UB
18159 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
18160 of COMPARE as in_code to the recursive call if needed.
47954c4e 18161
3c21604f
UB
181622013-05-03 Uros Bizjak <ubizjak@gmail.com>
18163
18164 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
18165 (enabled): Handle new members.
18166 * config/i386/sse.md (*vec_concatv2si): Merge from
18167 *vec_concatv2si_sse2 and vec_concatv2si_sse.
18168 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
18169
12211b99 181702013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
18171
18172 PR tree-optimization/57027
18173 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
18174 for fnms opportunity, check we got the prerequisite kind
18175 of tree / gimple before using accessor functions.
18176
07bfc9ec
RB
181772013-05-03 Richard Biener <rguenther@suse.de>
18178
18179 * double-int.h (lshift): New overload without precision
18180 and arith argument.
18181 (operator *=, operator +=, operator -=): Move ...
18182 * double-int.c (operator *=, operator +=, operator -=): ... here
18183 and implement more efficiently.
18184 (mul_double_with_sign): Remove.
18185 (lshift_double): Adjust to take unsinged shift argument, push
18186 dispatching code to callers.
18187 (mul_double_wide_with_sign): Add early out for callers that
18188 are not interested in high parts or overflow.
18189 (lshift): New function.
18190 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
18191 dispatch code here.
18192 (lrotate, rrotate): Use logical shifts.
18193 * expr.c (get_inner_reference): Use lshift.
18194 * fixed-value.c (do_fixed_divide): Likewise.
18195 * tree-dfa.c (get_ref_base_and_extent): Likewise.
18196 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18197 (indirect_refs_may_alias_p): Likewise.
18198 (stmt_kills_ref_p_1): Likewise.
18199
7769bb64
VP
182002013-05-03 Vidya Praveen <vidyapraveen@arm.com>
18201
18202 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
18203
1d0c8e5c
VP
182042013-05-03 Vidya Praveen <vidyapraveen@arm.com>
18205
18206 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
18207 scalar form of FABD instruction.
18208
f15feaf9
VM
182092013-05-02 Vladimir Makarov <vmakarov@redhat.com>
18210
18211 * lra-constraints.c (process_alt_operands): Add checking alt
18212 number to choose the best alternative.
18213
d90e76d4
RB
182142013-05-02 Richard Biener <rguenther@suse.de>
18215
18216 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
18217 bitmap and its handling.
18218 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
18219
9f8e7a96
RB
182202013-05-02 Richard Biener <rguenther@suse.de>
18221
18222 PR middle-end/57140
18223 * tree-inline.c (copy_loops): Properly handle removed loops.
18224 (copy_cfg_body): Mark destination loops for fixup if source
18225 loops needed fixup.
18226
f3a81b39
GY
182272013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
18228
18229 PR target/56732
18230 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
18231 generating simple_return for naked functions.
18232
7b920a9a
MJ
182332013-05-02 Martin Jambor <mjambor@suse.cz>
18234
18235 PR middle-end/56988
18236 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
18237 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
18238 flags match.
18239 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
18240 ipa_agg_replacement_value structures.
18241 (known_aggs_to_agg_replacement_list): Likewise.
18242 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
18243 (read_agg_replacement_chain): Likewise.
18244 (ipcp_transform_function): Also check that by_ref flags match.
18245
2c41c19d
RB
182462013-05-02 Richard Biener <rguenther@suse.de>
18247
18248 * graphds.h (struct graph): Add obstack member.
18249 * graphds.c (new_graph): Initialize obstack and allocate
18250 vertices from it.
18251 (add_edge): Allocate edge from the obstack.
3c21604f 18252 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 18253
8b47039c
TJ
182542013-05-02 Teresa Johnson <tejohnson@google.com>
18255
18256 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
18257 divides.
18258 * cfg.c (update_bb_profile_for_threading): Ditto.
18259 * tree-inline.c (copy_bb): Ditto.
18260 (copy_edges_for_bb): Ditto.
18261 (initialize_cfun): Ditto.
18262 (copy_cfg_body): Ditto.
18263 (expand_call_inline): Ditto.
18264 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
18265 (estimate_node_size_and_time): Ditto.
18266 (inline_merge_summary): Ditto.
18267 * cgraphclones.c (cgraph_clone_edge): Ditto.
18268 (cgraph_clone_node): Ditto.
18269 * sched-rgn.c (compute_dom_prob_ps): Ditto.
18270 (compute_trg_info): Ditto.
18271
da65928c
IB
182722013-05-02 Ian Bolton <ian.bolton@arm.com>
18273
18274 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
18275 S reg when fp attribute set.
18276 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
18277
add3c965
IB
182782013-05-02 Ian Bolton <ian.bolton@arm.com>
18279
18280 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
18281 New pattern.
18282 (*and_one_cmplsi3_compare0_uxtw): Likewise.
18283 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
18284 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
18285
fdd43ac4
RB
182862013-05-02 Richard Biener <rguenther@suse.de>
18287
18288 * tree-scalar-evolution.c (scev_info_hasher): Remove.
18289 (struct instantiate_cache_entry): New type.
18290 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
18291 (struct instantiate_cache_type): New type.
18292 (set_instantiated_value, get_instantiated_value): Remove.
18293 (get_instantiated_value_entry): New function.
18294 (instantiate_scev_name): Use the new cache and adjust.
18295 (instantiate_scev_poly): Adjust.
18296 (instantiate_scev_binary): Likewise.
18297 (instantiate_array_ref): Likewise.
18298 (instantiate_scev_convert): Likewise.
18299 (instantiate_scev_not): Likewise.
18300 (instantiate_scev_3): Likewise.
18301 (instantiate_scev_2): Likewise.
18302 (instantiate_scev_r): Likewise.
18303 (instantiate_scev): Likewise.
18304 (resolve_mixers): Likewise.
18305
36ff9dfb
VM
183062013-05-01 Vladimir Makarov <vmakarov@redhat.com>
18307
18308 PR target/57091
18309 * lra-constraints.c (best_small_class_operands_num): Remove.
18310 (process_alt_operands): Remove small_class_operands_num. Take
18311 small classes operands into losers and only if the operand is not
18312 matched. Modify debugging output.
18313 (curr_insn_transform): Remove best_small_class_operands_num.
18314 Print insn name.
18315
36054fab
JG
183162013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18317
18318 * config/aarch64/aarch64-builtins.c
18319 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
18320 * config/aarch64/aarch64-simd-builtins.def
18321 (reduc_splus_): Add new modes.
18322 (reduc_uplus_): New.
18323 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
18324 (reduc_uplus_v4sf): Likewise.
18325 (reduc_splus_v4sf): Likewise.
18326 (aarch64_addv<mode>): Likewise.
18327 (reduc_uplus_<mode>): Likewise.
18328 (reduc_splus_<mode>): Likewise.
18329 (aarch64_addvv2di): Likewise.
18330 (reduc_uplus_v2di): Likewise.
18331 (reduc_splus_v2di): Likewise.
18332 (aarch64_addvv2si): Likewise.
18333 (reduc_uplus_v2si): Likewise.
18334 (reduc_splus_v2si): Likewise.
18335 (reduc_<sur>plus_<mode>): New.
18336 (reduc_<sur>plus_v2di): Likewise.
18337 (reduc_<sur>plus_v2si): Likewise.
18338 (reduc_<sur>plus_v4sf): Likewise.
18339 (aarch64_addpv4sf): Likewise.
18340 * config/aarch64/arm_neon.h
18341 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
18342 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
18343 add UNSPEC_SADDV, UNSPEC_UADDV.
18344 (SUADDV): New.
18345 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
18346
6dce23a8
JG
183472013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18348
18349 * config/aarch64/arm_neon.h
18350 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
18351
1598945b
JG
183522013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18353
18354 * config/aarch64/aarch64-builtins
18355 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
18356
998eaf97
JG
183572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18358
18359 * config/aarch64/aarch64-simd-builtins.def
18360 (reduc_smax_): New.
18361 (reduc_smin_): Likewise.
18362 (reduc_umax_): Likewise.
18363 (reduc_umin_): Likewise.
18364 (reduc_smax_nan_): Likewise.
18365 (reduc_smin_nan_): Likewise.
18366 (fmax): Remove.
18367 (fmin): Likewise.
18368 (smax): Update for V2SF, V4SF and V2DF modes.
18369 (smin): Likewise.
18370 (smax_nan): New.
18371 (smin_nan): Likewise.
18372 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
18373 (<su><maxmin><mode>3): ...This, refactor.
18374 (s<maxmin><mode>3): New.
18375 (<maxmin_uns><mode>3): Likewise.
18376 (reduc_<maxmin_uns>_<mode>): Refactor.
18377 (reduc_<maxmin_uns>_v4sf): Likewise.
18378 (reduc_<maxmin_uns>_v2si): Likewise.
18379 (aarch64_<fmaxmin><mode>: Remove.
18380 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
18381 new builtin names.
18382 (vmin<q>_f<32,64>): Likewise.
18383 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
18384 (FMAXMIN): New.
18385 (su): Add mappings for smax, smin, umax, umin.
18386 (maxmin): New.
18387 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
18388 (FMAXMIN): Rename as...
18389 (FMAXMIN_UNS): ...This.
18390 (maxminv): Remove.
18391 (fmaxminv): Likewise.
18392 (fmaxmin): Likewise.
18393 (maxmin_uns): New.
18394 (maxmin_uns_op): Likewise.
18395
bd11644e
JG
183962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18397
18398 * config/aarch64/arm_neon.h
18399 (vac<ge, gt><sd>_f<32, 64>): Rename to...
18400 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
18401 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
18402
75dd5ace
JG
184032013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18404
18405 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
18406 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
18407
7c19979f
JG
184082013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18409
18410 * config/aarch64/aarch64-simd.md
18411 (vcond<mode>_internal): Handle special cases for constant masks.
18412 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
18413 (vcondu<mode><mode>): Likewise.
18414 (vcond<v_cmp_result><mode>): New.
18415
bb60efd9
JG
184162013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18417
18418 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
18419 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
18420 * config/aarch64/aarch64-simd-builtins.def
18421 (cmeq): Update to BUILTIN_VALLDI.
18422 (cmgt): Likewise.
18423 (cmge): Likewise.
18424 (cmle): Likewise.
18425 (cmlt): Likewise.
18426 * config/aarch64/arm_neon.h
18427 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
18428 to builtins or C as appropriate.
18429
889b9412
JG
184302013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
18431
18432 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
18433 (cmgeu): ...This.
18434 (cmhi): Rename to...
18435 (cmgtu): ...This.
18436 * config/aarch64/aarch64-simd.md
18437 (simd_mode): Add SF.
18438 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
18439 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
18440 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
18441 (cstore<mode>_neg): ...This.
18442 * config/aarch64/iterators.md
18443 (VALLF): new.
18444 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
18445 (COMPARISONS): New.
18446 (UCOMPARISONS): Likewise.
18447 (optab): Add missing comparisons.
18448 (n_optab): New.
18449 (cmp_1): Likewise.
18450 (cmp_2): Likewise.
18451 (CMP): Likewise.
18452 (cmp): Remove.
18453 (VCMP_S): Likewise.
18454 (VCMP_U): Likewise.
18455 (V_cmp_result): Add DF, SF modes.
18456 (v_cmp_result): Likewise.
18457 (v): Likewise.
18458 (vmtype): Likewise.
18459 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
18460
0a7dbb76
GY
184612013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
18462
18463 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
18464 define_insn to define_insn_and_split.
18465 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
18466 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
18467 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
18468 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
18469 (thumb2_negscc): Likewise.
18470
fb614ca6
GY
184712013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
18472
18473 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
18474
9e64a0bf
GY
184752013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
18476
18477 * config/arm/thumb2.md: Remove trailing whitespaces.
18478
d6b28156
RS
184792013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18480
18481 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
18482 Use gen_int_mode rather than GEN_INT.
18483
f91674c3
L
184842013-04-30 H.J. Lu <hongjiu.lu@intel.com>
18485
b0dec607 18486 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
18487 debug_gimple_stmt.
18488
3551257c
RB
184892013-04-30 Richard Biener <rguenther@suse.de>
18490
18491 PR middle-end/57122
3c21604f 18492 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 18493
4c1aff1c
RB
184942013-04-30 Richard Biener <rguenther@suse.de>
18495
18496 PR middle-end/57107
18497 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
18498
54b8379a
AB
184992013-04-30 Andrey Belevantsev <abel@ispras.ru>
18500
18501 PR rtl-optimization/56957
18502 PR rtl-optimization/57105
54b8379a
AB
18503 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
18504 variable. Use just INSN_UID for determining whether an insn
18505 should be only disconnected from the insn stream.
18506 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
18507
abc27962
JJ
185082013-04-30 Jakub Jelinek <jakub@redhat.com>
18509
18510 PR tree-optimization/57104
18511 * tsan.c (instrument_expr): Don't instrument accesses to
18512 DECL_HARD_REGISTER VAR_DECLs.
18513
0fc822d0
RB
185142013-04-30 Richard Biener <rguenther@suse.de>
18515
18516 * function.h (loops_for_fn): New inline function.
18517 (set_loops_for_fn): Likewise.
18518 * cfgloop.h (place_new_loop): Add struct function parameter.
18519 (get_loop): Likewise.
18520 (get_loops): Likewise.
18521 (number_of_loops): Likewise.
18522 (fel_next): Adjust.
18523 (fel_init): Likewise.
18524 * cfg.c (get_loop_copy): Adjust.
18525 * cfgloop.c (flow_loops_dump): Likewise.
18526 (record_loop_exits): Likewise.
18527 (verify_loop_structure): Likewise.
18528 * cfgloopanal.c (mark_irreducible_loops): Likewise.
18529 (estimate_reg_pressure_cost): Likewise.
18530 (mark_loop_exit_edges): Likewise.
18531 * cfgloopmanip.c (place_new_loop): Likewise.
18532 (add_loop): Likewise.
18533 (duplicate_loop): Likewise.
18534 * graph.c (draw_cfg_nodes): Likewise.
18535 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
18536 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
18537 (extract_affine_chrec): Likewise.
18538 (build_scop_iteration_domain): Likewise.
18539 * graphite.c (graphite_initialize): Likewise.
18540 * ira-build.c (create_loop_tree_nodes): Likewise.
18541 (more_one_region_p): Likewise.
18542 (rebuild_regno_allocno_maps): Likewise.
18543 (mark_loops_for_removal): Likewise.
18544 (mark_all_loops_for_removal): Likewise.
18545 (remove_unnecessary_regions): Likewise.
18546 (ira_build): Likewise.
18547 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
18548 * loop-init.c (fix_loop_structure): Likewise.
18549 (gate_rtl_move_loop_invariants): Likewise.
18550 (gate_rtl_unswitch): Likewise.
18551 (gate_rtl_unroll_and_peel_loops): Likewise.
18552 (rtl_doloop): Likewise.
18553 * lto-streamer-in.c (input_cfg): Likewise.
18554 * lto-streamer-out.c (output_cfg): Likewise.
18555 * modulo-sched.c (sms_schedule): Likewise.
18556 * predict.c (tree_estimate_probability): Likewise.
18557 (tree_estimate_probability_driver): Likewise.
18558 (estimate_loops): Likewise.
18559 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
18560 (move_sese_region_to_fn): Likewise.
18561 (debug_loop_num): Likewise.
18562 * tree-chrec.c (chrec_evaluate): Likewise.
18563 (hide_evolution_in_other_loops_than_loop): Likewise.
18564 (chrec_component_in_loop_num): Likewise.
18565 (reset_evolution_in_loop): Likewise.
18566 (evolution_function_is_invariant_rec_p): Likewise.
18567 * tree-if-conv.c (main_tree_if_conversion): Likewise.
18568 * tree-inline.c (copy_loops): Likewise.
18569 (copy_cfg_body): Likewise.
18570 (tree_function_versioning): Likewise.
18571 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
18572 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18573 Likewise.
18574 (add_to_evolution_1): Likewise.
18575 (scev_const_prop): Likewise.
18576 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
18577 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
18578 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
18579 (tree_ssa_lim_initialize): Likewise.
18580 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
18581 (verify_loop_closed_ssa): Likewise.
18582 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
18583 (tree_ssa_loop_im): Likewise.
18584 (tree_ssa_loop_unswitch): Likewise.
18585 (tree_vectorize): Likewise.
18586 (check_data_deps): Likewise.
18587 (tree_ssa_loop_ivcanon): Likewise.
18588 (tree_ssa_loop_bounds): Likewise.
18589 (tree_complete_unroll): Likewise.
18590 (tree_complete_unroll_inner): Likewise.
18591 (tree_parallelize_loops): Likewise.
18592 (tree_ssa_loop_prefetch): Likewise.
18593 (tree_ssa_loop_ivopts): Likewise.
18594 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
18595 * tree-vectorizer.c (vectorize_loops): Likewise.
18596
37953bd3
MF
185972013-04-29 Mike Frysinger <vapier@gentoo.org>
18598
18599 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
18600 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
18601 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
18602 with EABI_LINK_SPEC.
18603
f9ed28db
UB
186042013-04-29 Uros Bizjak <ubizjak@gmail.com>
18605
18606 PR target/44578
18607 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
18608 alternative.
18609
deca73f5
VM
186102013-04-29 Vladimir Makarov <vmakarov@redhat.com>
18611
18612 PR target/57097
37953bd3 18613 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
18614 using memory for pseudos. Print cost dump for alternatives.
18615 Modify cost values for conflicts with early clobbers.
18616 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
18617
fdca7d03
UB
186182013-04-29 Uros Bizjak <ubizjak@gmail.com>
18619
18620 PR target/57098
18621 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
18622
0b064172
IB
186232013-04-29 Ian Bolton <ian.bolton@arm.com>
18624
18625 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
18626 from/to S register.
18627 (movdi_aarch64): Support LDR/STR from/to D register.
18628
473cec55
IB
186292013-04-29 Ian Bolton <ian.bolton@arm.com>
18630
18631 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
18632 or higher by default.
18633
a6f30e66
RB
186342013-04-29 Richard Biener <rguenther@suse.de>
18635
18636 PR middle-end/57075
18637 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
18638 even if not adding abnormal edges for calls that can make
18639 abnormal gotos.
18640
0c2b2040
RB
186412013-04-29 Richard Biener <rguenther@suse.de>
18642
18643 PR middle-end/57103
18644 * tree-cfg.c (move_stmt_op): Fix condition under which to update
18645 TREE_BLOCK.
18646 (move_stmt_r): Remove redundant checking.
18647
f41f80f9
TJ
186482013-04-29 Teresa Johnson <tejohnson@google.com>
18649
18650 PR bootstrap/57077
18651 * basic-block.h (apply_scale): New function.
18652 (apply_probability): Use apply_scale.
18653 * gimple-streamer-in.c (input_bb): Ditto.
18654 * lto-streamer-in.c (input_cfg): Ditto.
18655 * lto-cgraph.c (merge_profile_summaries): Ditto.
18656 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 18657 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
18658 (copy_edges_for_bb): Ditto.
18659 (copy_cfg_body): Ditto.
18660
315bbd2e
TV
186612013-04-29 Tom de Vries <tom@codesourcery.com>
18662
18663 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
18664 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
18665 (tail_merge_optimize): Handle current_loops == NULL.
18666
ebbd90d8
JL
186672013-04-26 Jeff Law <law@redhat.com>
18668
18669 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
18670 (simplify_cond_using_ranges): Generalize code to simplify
18671 COND_EXPRs where one argument is a constant and the other
18672 is an SSA_NAME created by an integral type conversion.
18673
8b9b57eb
KT
186742013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18675
18676 * config/arm/arm.md (store_minmaxsi): Use only when
18677 optimize_insn_for_size_p.
18678
9498e5dc
CB
186792013-04-29 Christian Bruel <christian.bruel@st.com>
18680
18681 PR target/57108
18682 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
18683
6093bc06
RB
186842013-04-29 Richard Biener <rguenther@suse.de>
18685
18686 PR middle-end/57089
fdca7d03
UB
18687 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
18688 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
18689 (expand_omp_for_generic): Properly add loops.
18690 (expand_omp_for_static_nochunk): Likewise.
18691 (expand_omp_for_static_chunk): Likewise.
18692 (expand_omp_for): For the degenerate case fixup loops.
18693 (expand_omp_sections): Fix default bb placement in loops.
18694 (expand_omp_atomic_pipeline): Properly add loops.
18695
84aacbfd
KT
186962013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18697
18698 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
18699
8dee4479
TV
187002013-04-29 Tom de Vries <tom@codesourcery.com>
18701
18702 * tree-ssa-tail-merge.c: Update header comment.
18703
47934dc4
JG
187042013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18705
18706 * config/aarch64/arm_neon.h
18707 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
18708 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
18709 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
18710 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
18711 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
18712 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
18713 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
18714 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
18715
384be29f
JG
187162013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18717
18718 * config/aarch64/aarch64-simd.md
18719 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
18720 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
18721 fix_trunc, fixuns_trunc.
18722 (ftrunc<VDQF:mode>2): New.
18723 * config/aarch64/iterators.md (optab): Add fix, fixuns.
18724 (fix_trunc_optab): New.
18725
0386b123
JG
187262013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18727
18728 * config/aarch64/aarch64-builtins.c
18729 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
18730 iceilf, lround, iroundf.
18731
00fcb892
UB
187322013-04-29 Uros Bizjak <ubizjak@gmail.com>
18733
18734 PR target/54349
18735 * config/i386/i386.h (enum ix86_tune_indices)
18736 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
18737 New, split from X86_TUNE_INTER_UNIT_MOVES.
18738 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
18739 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
18740 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
18741 (TARGET_INTER_UNIT_MOVES): Remove.
18742 * config/i386/i386.c (initial_ix86_tune_features): Update.
18743 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
18744 (ix86_expand_convert_uns_didf_sse): Use
18745 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
18746 (ix86_expand_vector_init_one_nonzero): Ditto.
18747 (ix86_expand_vector_init_interleave): Ditto.
18748 (inline_secondary_memory_needed): Return true for moves from SSE class
18749 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
18750 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
18751 * config/i386/constraints.md (Yi, Ym): Depend on
18752 TARGET_INTER_UNIT_MOVES_TO_VEC.
18753 (Yj, Yn): New constraints.
18754 * config/i386/i386.md (*movdi_internal): Change constraints of
18755 operand 1 from Yi to Yj and from Ym to Yn.
18756 (*movsi_internal): Ditto.
18757 (*movdf_internal): Ditto.
18758 (*movsf_internal): Ditto.
18759 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
18760 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
18761 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
18762 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
18763 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
18764 * config/i386/sse.md (movdi_to_sse): Ditto.
18765 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
18766 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
18767 TARGET_INTER_UNIT_MOVES.
18768 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
18769 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
18770 instead of TARGET_INTER_UNIT_MOVES.
18771 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
18772 operand 1 from Yi to Yj and from Ym to Yn.
18773
4c871069
JG
187742013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18775
18776 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
18777 (float_truncate_hi_): Likewise.
18778 (float_extend_lo_): Likewise.
18779 (float_truncate_lo_): Likewise.
18780 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
18781 (aarch64_float_extend_lo_v2df): Likewise.
18782 (vec_unpacks_hi_v4sf): Likewise.
18783 (aarch64_float_truncate_lo_v2sf): Likewise.
18784 (aarch64_float_truncate_hi_v4sf): Likewise.
18785 (vec_pack_trunc_v2df): Likewise.
18786 (vec_pack_trunc_df): Likewise.
18787
1709ff9b
JG
187882013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18789
18790 * config/aarch64/aarch64-builtins.c
18791 (aarch64_fold_builtin): Fold float conversions.
18792 * config/aarch64/aarch64-simd-builtins.def
18793 (floatv2si, floatv4si, floatv2di): New.
18794 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
18795 * config/aarch64/aarch64-simd.md
18796 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
18797 * config/aarch64/iterators.md (FLOATUORS): New.
18798 (optab): Add float, floatuns.
18799 (su_optab): Likewise.
18800
ce966824
JG
188012013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18802
18803 * config/aarch64/aarch64-builtins.c
18804 (aarch64_builtin_vectorized_function): Use new names for
18805 fcvt builtins.
18806 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
18807 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
18808 (fcvtzu): Split as...
18809 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
18810 (fcvtas): Split as...
18811 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
18812 (fcvtau): Split as...
18813 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
18814 (fcvtps): Split as...
18815 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
18816 (fcvtpu): Split as...
18817 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
18818 (fcvtms): Split as...
18819 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
18820 (fcvtmu): Split as...
18821 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
18822 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
18823 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
18824 (lfrintnusf, lfrintnudf): Likewise.
18825 * config/aarch64/aarch64-simd.md
18826 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
18827 define_insn.
18828 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
18829 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
18830 (fcvt_pattern): Likewise.
18831
b9de24fe
JG
188322013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18833
18834 * config/aarch64/aarch64-simd.md
18835 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
18836 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
18837
77a205be
JG
188382013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18839
18840 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
18841 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
18842 (vrnd<a,m,n,p>_f32): Implement using builtins.
18843 (vrnd<i,x><q>_f<32, 64>): New.
18844
0659ce6f
JG
188452013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18846
18847 * config/aarch64/aarch64-builtins.c
18848 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
18849 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
18850 (frintz): Rename to...
18851 (btrunc): ...this.
18852 (frintp): Rename to...
18853 (ceil): ...this.
18854 (frintm): Rename to...
18855 (floor): ...this.
18856 (frinti): Rename to...
18857 (nearbyint): ...this.
18858 (frintx): Rename to...
18859 (rint): ...this.
18860 (frinta): Rename to...
18861 (round): ...this.
18862 * config/aarch64/aarch64-simd.md
18863 (aarch64_frint<frint_suffix><mode>): Delete.
18864 (<frint_pattern><mode>2): Convert to insn.
18865 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
18866 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
18867 (frint_pattern): Likewise.
18868 (frint_suffix): Likewise.
18869
ea78906a
RB
188702013-04-29 Richard Biener <rguenther@suse.de>
18871
18872 PR tree-optimization/57081
18873 * loop-init.c: Include tree-flow.h.
18874 (loop_optimizer_finalize): Free number of iteration estimates.
18875 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
18876
baee1763
JJ
188772013-04-29 Jakub Jelinek <jakub@redhat.com>
18878
94dc5332
JJ
18879 PR tree-optimization/57083
18880 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
18881 non-singleton shift count range, zero extend low_bound for uns case.
18882
baee1763
JJ
18883 * config/i386/predicates.md (general_vector_operand): New predicate.
18884 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
18885 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
18886 if they aren't nonimmediate operands. If their original values
18887 satisfy const_vector_equal_evenodd_p, don't shift them.
18888 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
18889 predicates. For the SSE4.1 case force operands[{1,2}] into registers
18890 if not nonimmediate_operand.
18891 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
18892 instead of register_operand.
18893 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
18894
a9073727 188952013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
18896
18897 * stor-layout.c (finalize_size_functions): Allocate a structure and
18898 reset cfun before dumping the functions.
18899
ba8011e6
JJ
189002013-04-27 Jakub Jelinek <jakub@redhat.com>
18901
d6fde69e
JJ
18902 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
18903
ba8011e6
JJ
18904 PR target/56866
18905 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
18906 use xop_pmacsdqh if uns_p.
18907 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
18908 the immediate rotate count.
18909
2c62cbaa
VM
189102013-04-26 Vladimir Makarov <vmakarov@redhat.com>
18911
18912 * rtl.h (struct rtx_def): Add comment for field jump.
18913 (LRA_SUBREG_P): New macro.
18914 * recog.c (register_operand): Check LRA_SUBREG_P.
18915 * lra.c (lra): Add note at the end of RTL code. Align non-empty
18916 stack frame.
18917 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
18918 (lra_final_code_change): Skip subreg change for operators.
18919 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
18920 if there are no operand changes.
18921 * lra-constraints.c (curr_insn_set): New.
18922 (match_reload): Set LRA_SUBREG_P.
18923 (emit_spill_move): Ditto.
18924 (check_and_process_move): Use curr_insn_set. Process only single
18925 set insns. Don't initialize sec_mem_p and change_p.
18926 (simplify_operand_subreg): Use LRA_SUBREG_P.
18927 (reg_in_class_p): New function.
18928 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
18929 of #ifdef. Add code to remove cycling.
18930 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
18931 non-null disp. Reload inner instead of disp when base and index
18932 are null. Try to put lo_sum into register.
18933 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
18934 (check_and_process_move): Move code for move cost check to
18935 simple_move_p. Remove equiv_substitution.
18936 (simple_move_p): New function.
18937 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
18938 curr_insn_set. Call check_and_process_move only for single set
18939 insns. Use the new function. Move call of check_and_process_move
18940 after operand equiv substitution and address process.
18941
e7d764f3
JJ
189422013-04-26 Jakub Jelinek <jakub@redhat.com>
18943
18944 PR go/57045
18945 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
18946 with nonlocal goto receivers or returns twice calls, ignore
18947 unininitialized values from abnormal edges to nl goto receiver
18948 or returns twice call.
18949
41e10689
JJ
189502013-04-26 Jakub Jelinek <jakub@redhat.com>
18951
18952 PR tree-optimization/57051
18953 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
18954 and VEC_RSHIFT_EXPR if shift count is a multiple of element
18955 bitsize.
18956
d7ed20db
RB
189572013-04-26 Richard Biener <rguenther@suse.de>
18958
18959 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
18960 (expand_omp_taskreg): Likewise. Mark loops for fixup.
18961 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
18962 (fixup_loop_arrays_after_move): New function.
18963 (move_sese_region_to_fn): Properly outline the loop tree parts
18964 of the SESE region.
18965
df93505e
UB
189662013-04-26 Uros Bizjak <ubizjak@gmail.com>
18967
18968 * config/i386/i386.md (type, unit): Fix long lines.
18969
dd366ec3
RB
189702013-04-26 Richard Biener <rguenther@suse.de>
18971
18972 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
18973 (lto-streamer-out.o): Likewise.
18974 * cfgloop.c (init_loops_structure): Export, add struct function
18975 argument and adjust.
18976 (flow_loops_find): Adjust.
18977 * cfgloop.h (enum loop_estimation): Add EST_LAST.
18978 (init_loops_structure): Declare.
18979 * lto-streamer-in.c: Include cfgloop.h.
18980 (input_cfg): Input the loop tree.
18981 * lto-streamer-out.c: Include cfgloop.h.
18982 (output_cfg): Output the loop tree.
18983 (output_struct_function_base): Do not drop PROP_loops.
18984
a9e0d843
RB
189852013-03-26 Richard Biener <rguenther@suse.de>
18986
18987 * tree-cfg.c (execute_build_cfg): Build the loop tree.
18988 (pass_build_cfg): Provide PROP_loops.
18989 (move_sese_region_to_fn): Remove loops that are outlined into fn
18990 for now.
18991 * tree-inline.c: Include cfgloop.h.
18992 (initialize_cfun): Do not drop PROP_loops.
18993 (copy_loops): New function.
18994 (copy_cfg_body): Copy loop structure.
18995 (tree_function_versioning): Initialize destination loop tree.
18996 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
18997 (pass_parallelize_loops): Do IL verification.
18998 * loop-init.c (loop_optimizer_init): Fixup loops if required.
18999 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
19000 the CFG make sure we fixup loops as well.
19001 * tree-ssa-tail-merge.c: Include cfgloop.h.
19002 (replace_block_by): When merging loop latches mark loops for fixup.
19003 * lto-streamer-out.c (output_struct_function_base): Drop
19004 PROP_loops for now.
19005 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
19006 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
19007 * ipa-split.c: Include cfgloop.h.
19008 (split_function): Add the new return block to the loop tree root.
19009 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
19010 whether we have removed the forwarder block.
19011 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
19012 * cfgloop.h (place_new_loop): Declare.
19013 * cfgloopmanip.c (place_new_loop): Export.
19014 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
19015 (tree-switch-conversion.o): Likewise.
19016 (tree-complex.o): Likewise.
19017 (tree-inline.o): Likewise.
19018 (tree-ssa-tailmerge.o): Likewise.
19019 (ipa-split.o): Likewise.
19020 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
19021 (tree-ssa-copy.o): Likewise.
19022 * tree-switch-conversion.c: Include cfgloop.h
19023 (process_switch): If we emit a bit-test cascade, schedule loops
19024 for fixup.
19025 * tree-complex.c: Include cfgloop.h.
19026 (expand_complex_div_wide): Properly add new basic-blocks to loops.
19027 * asan.c: Include cfgloop.h.
19028 (create_cond_insert_point): Properly add new basic-blocks to
19029 loops, schedule loop fixup.
19030 * cfgloop.c (verify_loop_structure): Check that looks are not
19031 marked for fixup.
19032 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
19033 to loops.
19034 (expand_omp_for_generic): Likewise.
19035 (expand_omp_sections): Likewise.
19036 (expand_omp_atomic_pipeline): Schedule loops for fixup.
19037 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
19038 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
19039 is initialized, not when loops are present.
19040 * tree-parloops.c (parallelize_loops): Remove checking here.
19041 * passes.c (init_optimization_passes): Schedule a copy-propagation
19042 pass before complete unrolling of inner loops.
19043
e78e8a0b
JJ
190442013-04-26 Jakub Jelinek <jakub@redhat.com>
19045
a2e836b2
JJ
19046 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
19047 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
19048 (colorize_init): Add argument to _WIN32 version.
19049 * toplev.c: Include diagnostic-color.h.
19050 (process_options): Default to -fdiagnostics-color=auto if
19051 GCC_COLORS env var is in the environment.
19052 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
19053 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
19054 env var is in the environment, the default is auto rather than never.
a2e836b2 19055
e78e8a0b
JJ
19056 * diagnostic.h (file_name_as_prefix): Add context argument.
19057 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
19058 the string as locus.
19059 * langhooks.c (lhd_print_error_function): Adjust caller.
19060
013e5ef9
LC
190612013-04-25 Lawrence Crowl <crowl@google.com>
19062
19063 * var-tracking.c (shared_hash_def::htab):
19064 Change type to hash_table. Update dependent calls and types.
19065
4a8fb1a1
LC
190662013-04-25 Lawrence Crowl <crowl@google.com>
19067
19068 * Makefile.in: Update as needed below.
19069
19070 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
19071 Move declaration to after the type's method definitons.
19072
19073 * attribs.c (htab_t scoped_attributes::attribute_hash):
19074 Change type to hash_table. Update dependent calls and types.
19075
19076 * bitmap.c (htab_t bitmap_desc_hash):
19077 Change type to hash_table. Update dependent calls and types.
19078
19079 * cselib.c (htab_t cselib_hash_table):
19080 Change type to hash_table. Update dependent calls and types.
19081
19082 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
19083 (hash_string_slot_node): Move implementation into lto-streamer.h
19084 struct string_slot_hasher.
19085 (eq_string_slot_node): Likewise.
19086
19087 * data-streamer-out.c: Update output_block::string_hash_table
19088 dependent calls and types.
19089
19090 * dwarf2cfi.c (htab_t trace_index):
19091 Change type to hash_table. Update dependent calls and types.
19092
19093 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
19094 Change type to hash_table. Update dependent calls and types.
19095 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
19096 (htab_t optimize_external_refs::map): Likewise.
19097 (htab_t output_comp_unit::extern_map): Likewise.
19098 (htab_t output_comdat_type_unit::extern_map): Likewise.
19099 (htab_t output_macinfo::macinfo_htab): Likewise.
19100 (htab_t optimize_location_lists::htab): Likewise.
19101 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
19102
19103 * except.c (htab_t ehspec_hash_type):
19104 Change type to hash_table. Update dependent calls and types.
19105 (assign_filter_values::ttypes): Likewise.
19106 (assign_filter_values::ehspec): Likewise.
19107 (sjlj_assign_call_site_values::ar_hash): Likewise.
19108 (convert_to_eh_region_ranges::ar_hash): Likewise.
19109
19110 * gcse.c (htab_t pre_ldst_table):
19111 Change type to hash_table. Update dependent calls and types.
19112
19113 * ggc-common.c (htab_t saving_htab):
19114 Change type to hash_table. Update dependent calls and types.
19115 (htab_t loc_hash): Likewise.
19116 (htab_t ptr_hash): Likewise.
19117 (call_count): Rename ggc_call_count.
19118 (call_alloc): Rename ggc_call_alloc.
19119 (loc_descriptor): Rename make_loc_descriptor.
19120 (add_statistics): Rename ggc_add_statistics.
19121
19122 * ggc-common.c (saving_htab):
19123 Change type to hash_table. Update dependent calls and types.
19124
19125 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
19126 (push_gimplify_context): Likewise.
19127 (pop_gimplify_context): Likewise.
19128 (struct gimple_temp_hash_elt): Added.
19129 (struct gimplify_hasher): Likewise.
19130 (struct gimplify_ctx.temp_htab):
19131 Change type to hash_table. Update dependent calls and types.
19132
19133 * gimple-fold.c: Include gimplify-ctx.h.
19134
19135 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
19136 Change type to hash_table. Update dependent calls and types.
19137 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
19138 avoid potential global name collision.
19139
19140 * gimplify.c: Include gimplify-ctx.h.
19141 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
19142 (htab_t gimplify_ctx::temp_htab):
19143 Update dependent calls and types for new type hash_table.
19144 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
19145 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
19146
19147 * gimplify-ctx.h: New.
19148 (struct gimple_temp_hash_elt): Move from gimplify.c.
19149 (class gimplify_hasher): New.
19150 (struct gimplify_ctx): Move from gimple.h.
19151 (htab_t gimplify_ctx::temp_htab):
19152 Change type to hash_table. Update dependent calls and types.
19153
19154 * graphite-clast-to-gimple.c: Include graphite-htab.h.
19155 (htab_t ivs_params::newivs_index):
19156 Change type to hash_table. Update dependent calls and types.
19157 (htab_t ivs_params::params_index): Likewise.
19158 (htab_t print_generated_program::params_index): Likewise.
19159 (htab_t gloog::newivs_index): Likewise.
19160 (htab_t gloog::params_index): Likewise.
19161
19162 * graphite.c: Include graphite-htab.h.
19163 4htab_t graphite_transform_loops::bb_pbb_mapping):
19164 Change type to hash_table. Update dependent calls and types.
19165
19166 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
19167 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
19168 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
19169
19170 * graphite-dependences.c: Include graphite-htab.h.
19171 (loop_is_parallel_p): Change hash table type of parameter.
19172
19173 * graphite-htab.h: New.
19174 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
19175 (extern find_pbb_via_hash): Move from graphite-poly.h.
19176 (extern loop_is_parallel_p): Move from graphite-poly.h.
19177 (extern get_loop_body_pbbs): Move from graphite-poly.h.
19178
19179 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
19180 (extern loop_is_parallel_p): Move to graphite-htab.h.
19181 (extern get_loop_body_pbbs): Move to graphite-htab.h.
19182
19183 * haifa-sched.c (htab_t delay_htab):
19184 Change type to hash_table. Update dependent calls and types.
19185 (htab_t delay_htab_i2): Likewise.
19186
19187 * ira-color.c (htab_t allocno_hard_regs_htab):
19188 Change type to hash_table. Update dependent calls and types.
19189
19190 * ira-costs.c (htab_t cost_classes_htab):
19191 Change type to hash_table. Update dependent calls and types.
19192
19193 * loop-invariant.c (htab_t merge_identical_invariants::eq):
19194 Change type to hash_table. Update dependent calls and types.
19195
19196 * loop-iv.c (htab_t bivs):
19197 Change type to hash_table. Update dependent calls and types.
19198
19199 * loop-unroll.c (htab_t opt_info::insns_to_split):
19200 Change type to hash_table. Update dependent calls and types.
19201 (htab_t opt_info::insns_with_var_to_expand): Likewise.
19202
19203 * lto-streamer.h (struct string_slot): Move from data-streamer.h
19204 (struct string_slot_hasher): New.
19205 (htab_t output_block::string_hash_table):
19206 Change type to hash_table. Update dependent calls and types.
19207
19208 * lto-streamer-in.c (freeing_string_slot_hasher): New.
19209 (htab_t file_name_hash_table):
19210 Change type to hash_table. Update dependent calls and types.
19211
19212 * lto-streamer-out.c: Update output_block::string_hash_table dependent
19213 calls and types.
19214
19215 * lto-streamer.c (htab_t tree_htab):
19216 Change type to hash_table. Update dependent calls and types.
19217
19218 * omp-low.c: Include gimplify-ctx.h.
19219
19220 * passes.c (htab_t name_to_pass_map):
19221 Change type to hash_table. Update dependent calls and types.
19222 (pass_traverse): Rename to passes_pass_traverse.
19223
19224 * plugin.c (htab_t event_tab):
19225 Change type to hash_table. Update dependent calls and types.
19226
19227 * postreload-gcse.c (htab_t expr_table):
19228 Change type to hash_table. Update dependent calls and types.
19229 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
19230
19231 * sese.c (debug_rename_map_1): Make extern.
19232 (htab_t copy_bb_and_scalar_dependences::rename_map):
19233 Change type to hash_table. Update dependent calls and types.
19234
19235 * sese.h (extern debug_rename_map): Move to .c file.
19236
19237 * store-motion.c (htab_t store_motion_mems_table):
19238 Change type to hash_table. Update dependent calls and types.
19239
19240 * trans-mem.c (htab_t tm_new_mem_hash):
19241 Change type to hash_table. Update dependent calls and types.
19242
19243 * tree-browser.c (htab_t TB_up_ht):
19244 Change type to hash_table. Update dependent calls and types.
19245
19246 * tree-cfg.c (htab_t discriminator_per_locus):
19247 Change type to hash_table. Update dependent calls and types.
19248
19249 * tree-complex.c: Include tree-hasher.h
19250 (htab_t complex_variable_components):
19251 Change type to hash_table. Update dependent calls and types.
19252
19253 * tree-eh.c (htab_t finally_tree):
19254 Change type to hash_table. Update dependent calls and types.
19255
19256 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
19257 struct int_tree_hasher.
19258 (extern int_tree_map_eq): Likewise.
19259 (uid_decl_map_hash): Removed.
19260 (extern decl_tree_map_eq): Likewise.
19261
19262 * tree-hasher.h: New.
19263 (struct int_tree_hasher): New.
19264 (typedef int_tree_htab_type): New.
19265
19266 * tree-inline.c: Include gimplify-ctx.h.
19267
19268 * tree-mudflap.c: Include gimplify-ctx.h.
19269
19270 * tree-parloops.c: Include tree-hasher.h.
19271 (htab_t eliminate_local_variables_stmt::decl_address):
19272 Change type to hash_table. Update dependent calls and types.
19273 (htab_t separate_decls_in_region::decl_copies): Likewise.
19274
19275 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
19276 Change type to hash_table. Update dependent calls and types.
19277
19278 * tree-sra.c (candidates):
19279 Change type to hash_table. Update dependent calls and types.
19280
19281 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
19282 in tree-flow.h.
19283 (int_tree_map_hash): Likewise.
19284
19285 * tree-ssa-dom.c (htab_t avail_exprs):
19286 Change type to hash_table. Update dependent calls and types.
19287
19288 * tree-ssa-live.c (var_map_base_init::tree_to_index):
19289 Change type to hash_table. Update dependent calls and types.
19290
19291 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
19292 Change type to hash_table. Update dependent calls and types.
19293
19294 * tree-ssa-phiopt.c (seen_ssa_names):
19295 Change type to hash_table. Update dependent calls and types.
19296
19297 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
19298 Change type to hash_table. Update dependent calls and types.
19299
19300 * tree-ssa-uncprop.c (equiv):
19301 Change type to hash_table. Update dependent calls and types.
19302
c5a44004
JJ
193032013-04-25 Jakub Jelinek <jakub@redhat.com>
19304
19305 PR rtl-optimization/57003
19306 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
19307 call note_stores with kill_clobbered_value callback again after
19308 killing regs_invalidated_by_call.
19309
09962a4a
JG
193102013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19311
19312 * config/aarch64/aarch64-simd.md
19313 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
19314 (aarch64_simd_bsl<mode>): Likewise.
19315 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
19316
ea28bb0b
MP
193172013-04-25 Marek Polacek <polacek@redhat.com>
19318
19319 PR tree-optimization/57066
3c21604f 19320 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 19321
96659611
JG
193222013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
19323
19324 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
19325
9697e620
JG
193262013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19327
19328 * config/aarch64/aarch64-builtins.c
19329 (aarch64_fold_builtin): New.
19330 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
19331 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
19332 * config/aarch64/aarch64-simd-builtins.def (abs): New.
19333 * config/aarch64/arm_neon.h
19334 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
19335
0ac198d3
JG
193362013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19337 Tejas Belagod <tejas.belagod@arm.com>
19338
19339 * config/aarch64/aarch64-builtins.c
19340 (aarch64_gimple_fold_builtin): New.
19341 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
19342 * config/aarch64/aarch64-simd-builtins.def (addv): New.
19343 * config/aarch64/aarch64-simd.md (addpv4sf): New.
19344 (addvv4sf): Update.
19345 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
19346
58cff58c
N
193472013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19348
df93505e 19349 * config/aarch64/aarch64.md
58cff58c
N
19350 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
19351
7e0228bf
N
193522013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19353
19354 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
19355 (*ngcsi_uxtw): New pattern.
19356
5819f96f 193572013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 19358 Julian Brown <julian@codesourcery.com>
5819f96f
KT
19359
19360 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
19361 (TB_DREG): Add T_V4HF.
19362 (v4hf_UP): New macro.
19363 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 19364 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
19365 Handle initialisation of V4HF. Adjust initialisation of reinterpret
19366 built-ins.
df93505e 19367 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
19368 (arm_vector_mode_supported_p): Handle V4HF.
19369 (arm_mangle_map): Handle V4HFmode.
19370 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
19371 * config/arm/arm_neon_builtins.def: Add entries for
19372 vcvtv4hfv4sf, vcvtv4sfv4hf.
19373 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
19374 (neon_vcvtv4hfv4sf): Likewise.
19375 * config/arm/neon-gen.ml: Handle half-precision floating point
19376 features.
19377 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
19378 * config/arm/arm_neon.h: Regenerate.
19379 * config/arm/neon.ml (type elts): Add F16.
19380 (type vectype): Add T_float16x4, T_floatHF.
19381 (type vecmode): Add V4HF.
19382 (type features): Add Requires_FP_bit feature.
19383 (elt_width): Handle F16.
19384 (elt_class): Likewise.
19385 (elt_of_class_width): Likewise.
19386 (mode_of_elt): Refactor.
19387 (type_for_elt): Handle F16, fix error messages.
19388 (vectype_size): Handle T_float16x4.
19389 (vcvt_sh): New function.
19390 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
19391 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
19392 (string_of_mode): Handle V4HF.
19393 * doc/arm-neon-intrinsics.texi: Regenerate.
19394
1ef395e4
JG
193952013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
19396
19397 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
19398 format specifier in 'X' case.
19399
41c34e94
AM
194002013-04-25 Alan Modra <amodra@gmail.com>
19401
19402 PR target/57052
19403 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
19404 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
19405 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
19406 Repeat for many other rotate/shift and mask patterns using subregs.
19407 Name lshiftrt insns.
19408 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
19409 on WORDS_BIG_ENDIAN.
19410
b9a7eb5d
AM
194112013-04-25 Alan Modra <amodra@gmail.com>
19412
19413 * config.gcc: Support little-endian powerpc-linux targets.
19414 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
19415 (LINK_OS_LINUX_SPEC): Define.
19416 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
19417 Preserve MASK_LITTLE_ENDIAN.
19418 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
19419 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
19420 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
19421 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
19422 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
19423 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
19424 Correct fp word order for little-endian. Don't shift toc entries
19425 smaller than a word for little-endian.
19426 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
19427 (bswapdi2 splits): Correct low-part subreg for little-endian.
19428 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
19429 low/high where such is correct only for be.
19430 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
19431 little-endian for -mcall-aixdesc.
19432
87f73374
AM
194332013-04-25 Alan Modra <amodra@gmail.com>
19434
19435 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
19436 replace_equiv_address_nv.
19437
cabf91cd
AM
194382013-04-25 Alan Modra <amodra@gmail.com>
19439
19440 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
19441
0ae24cc8
VM
194422013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19443
19444 Revert:
19445 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19446 * rtl.h (struct rtx_def): ...
cabf91cd 19447
77bce07c
VM
194482013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19449
19450 PR rtl-optimizations/57046
19451 * lra-constraints (split_reg): Set up lra_risky_transformations_p
19452 for multi-reg splits.
19453
0db63e7f
L
194542013-04-24 H.J. Lu <hongjiu.lu@intel.com>
19455
19456 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
19457
3362b6b6
SA
194582013-04-24 Sterling Augustine <saugustine@google.com>
19459
19460 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
19461 (comp_dir_string, debug_str_dwo_section): New.
19462 (DEBUG_STR_DWO_SECTION): Rename to ...
19463 (DEBUG_DWO_STR_SECTION): ... this.
19464 (DEBUG_NORM_STR_SECTION): Delete.
19465 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
19466 (DEBUG_STR_DWO_SECTION_FLAGS): New.
19467 (find_AT_string): Move most logic to ...
19468 (find_AT_string_in_table): ... here. New.
19469 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
19470 add_skeleton_AT_string. Delete logic.
19471 (output_skeleton_debug_sections): Remove call to
19472 add_top_level_skeleton_die_attrs.
19473 (add_comp_dir_attribute): Move logic to comp_dir_string.
19474 (dwarf2out_init): Initialize debug_str_dwo_section.
19475 (output_indirect_string): Call find_string_form.
19476 (output_indirect_strings): Rewrite.
19477 (prune_unused_types): Empty skeleton_debug_str_hash.
19478 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
19479 (dwarf2out_finish): Call output_indirect_strings.
19480
e93e18e9
PC
194812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19482
19483 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
19484
f6ce35ac
VM
194852013-04-24 Vladimir Makarov <vmakarov@redhat.com>
19486
cabf91cd 19487 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
19488 (LRA_SUBREG_P): New macro.
19489 * recog.c (register_operand): Check LRA_SUBREG_P.
19490 * lra.c (lra): Add note at the end of RTL code. Align non-empty
19491 stack frame.
19492 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
19493 (lra_final_code_change): Skip subreg change for operators.
19494 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
19495 if there are no operand changes.
19496 * lra-constraints.c (curr_insn_set): New.
19497 (match_reload): Set LRA_SUBREG_P.
19498 (emit_spill_move): Ditto.
19499 (check_and_process_move): Use curr_insn_set. Process only single
19500 set insns. Don't initialize sec_mem_p and change_p.
19501 (simplify_operand_subreg): Use LRA_SUBREG_P.
19502 (reg_in_class_p): New function.
19503 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
19504 of #ifdef. Add code to remove cycling.
19505 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
19506 non-null disp. Reload inner instead of disp when base and index
19507 are null. Try to put lo_sum into register.
19508 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 19509 (check_and_process_move): Move code for move cost check to
f6ce35ac 19510 simple_move_p. Remove equiv_substitution.
cabf91cd 19511 (simple_move_p): New function.
f6ce35ac
VM
19512 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
19513 curr_insn_set. Call check_and_process_move only for single set
19514 insns. Use the new function. Move call of check_and_process_move
19515 after operand equiv substitution and address process.
19516
38047d90
JG
195172013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
19518
19519 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
19520 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
19521 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
19522
13f39b2e
PC
195232013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
19524
19525 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
19526
97c116dc
MP
195272013-04-24 Marek Polacek <polacek@redhat.com>
19528
19529 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
19530 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
19531 (select_loops_exit_conditions): Likewise.
19532 (number_of_iterations_for_all_loops): Likewise.
19533 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
19534 (scev_analysis): Likewise.
19535
83082391 195362013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 19537 Chao-ying Fu <fu@mips.com>
83082391 19538
cabf91cd
AM
19539 * config/mips/micromips.md (jraddiusp): New pattern.
19540 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
19541 instruction if possible.
83082391 19542
19e34aa2
AM
195432013-04-24 Alan Modra <amodra@gmail.com>
19544
19545 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
19546
fdb6603c
JB
195472013-04-24 Julian Brown <julian@codesourcery.com>
19548 Chung-Lin Tang <cltang@codesourcery.com>
19549
19550 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
19551 dependency behavior in enumeration type DIE generation. Add TODO note
19552 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 19553
bf190e8d
LC
195542013-04-23 Lawrence Crowl <crowl@google.com>
19555
19556 * Makefile.in: Update as needed below.
19557
19558 * hash-table.h (class hash_table):
19559 Correct many methods with parameter types compare_type to the correct
19560 value_type. (Correct code was unlikely to notice the change.)
19561 (hash_table::elements_with_deleted) New.
19562 (class hashtable::iterator): New.
19563 (hashtable::begin()): New.
19564 (hashtable::end()): New.
19565 (FOR_EACH_HASH_TABLE_ELEMENT): New.
19566
19567 * statistics.c (statistics_hashes):
19568 Change type to hash_table. Update dependent calls and types.
19569
19570 * tree-into-ssa.c (var_infos):
19571 Change type to hash_table. Update dependent calls and types.
19572
19573 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
19574 Change type to hash_table. Update dependent calls and types.
19575
19576 * tree-ssa-loop-im.c (struct mem_ref.refs):
19577 Change type to hash_table. Update dependent calls and types.
19578
19579 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
19580 Change type to hash_table. Update dependent calls and types.
19581
19582 * tree-ssa-sccvn.c (vn_tables_s::nary):
19583 Change type to hash_table. Update dependent calls and types.
19584 (vn_tables_s::phis): Likewise.
19585 (vn_tables_s::references): Likewise.
19586
19587 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
19588 (vn_reference_eq): Update parameter and return types.
19589
19590 * tree-ssa-structalias.c (pointer_equiv_class_table):
19591 Change type to hash_table. Update dependent calls and types.
19592 (location_equiv_class_table): Likewise.
19593
19594 * tree-vect-data-refs.c: Consequential changes for making
19595 peeling a hash_table.
19596
19597 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
19598 (destroy_loop_vec_info): Dependent hash_table update.
19599
19600 * tree-vectorizer.h (peeling_htab):
19601 Change type to hash_table. Update dependent calls and types.
19602
d70a81dd
SC
196032013-04-23 Shiva Chen <shiva0217@gmail.com>
19604
cabf91cd
AM
19605 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
19606 to check the register content is equal or not.
19607 * lra-constraints.c (match_reload): Use lra_assign_reg_val
19608 to assign register content record.
19609 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 19610 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
19611 * lra-int.h (struct lra_reg): Add offset member.
19612 (lra_reg_val_equal_p): New static inline function.
19613 (lra_update_reg_val_offset): New static inline function.
19614 (lra_assign_reg_val): New static inline function.
19615 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
19616 to assign register content record.
19617 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 19618
b894a1f3
CM
196192013-04-23 Catherine Moore <clm@codesourcery.com>
19620
19621 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
19622 operands. Record compression.
19623
ecd14de9
XDL
196242013-04-23 Xinliang David Li <davidxl@google.com>
19625
19626 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
19627
92e776e9
RB
196282013-04-23 Richard Biener <rguenther@suse.de>
19629
19630 PR middle-end/57036
19631 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
19632 parameter, only add abnormal goto edges from the copied body
19633 if the call could perform abnormal gotos.
19634 (copy_cfg_body): Adjust.
19635
a15ee567
SN
196362013-04-23 Sofiane Naci <sofiane.naci@arm.com>
19637
19638 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
19639
08c52234
AS
196402013-04-23 Andreas Schwab <schwab@linux-m68k.org>
19641
19642 * coretypes.h (gimple_stmt_iterator): Add struct to make
19643 compatible with C.
19644
999c1171
RB
196452013-04-23 Richard Biener <rguenther@suse.de>
19646
19647 PR tree-optimization/57026
19648 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
19649 from SSA names occuring in abnormal PHI nodes.
19650
53669259
AK
196512013-04-22 Andi Kleen <ak@linux.intel.com>
19652
19653 * lto/lto.c (print_lto_report_1): Fix LTO report names.
19654
1a0ad150
AK
196552013-04-22 Andi Kleen <ak@linux.intel.com>
19656
19657 * lto/lto.c (print_lto_report_1): Declare early.
19658 (read_cgraph_and_symbols): Call print_lto_report_1 early.
19659
057f8f20
AK
196602013-04-22 Andi Kleen <ak@linux.intel.com>
19661
19662 * common.opt (-flto-report-wpa): Add.
19663 * doc/invoke.texi (-flto-report-wpa): Add.
19664 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
19665 (lto_main): dito.
19666
473b1e05
XDL
196672013-04-22 Xinliang David Li <davidxl@google.com>
19668
19669 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
19670 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
19671 * Makefile.in: New dependency
19672
cabf91cd 19673 David Daney <ddaney.cavm@gmail.com>
b1485a33 19674
cabf91cd
AM
19675 * configure.ac (gcc_cv_as_micromips_support): Use the
19676 --fatal-warnings option.
19677 * configure: Regenerate.
b1485a33 19678
829d0168
MP
196792013-04-22 Marek Polacek <polacek@redhat.com>
19680
19681 PR sanitizer/56990
19682 * tsan.c (instrument_expr): Don't instrument expression
19683 in case its size is zero.
19684
6d9b7208
UB
196852013-04-22 Uros Bizjak <ubizjak@gmail.com>
19686
19687 PR target/57032
19688 Revert:
19689 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
19690
19691 * config/alpha/alpha.c (TARGET_LRA_P): New define.
19692
ea679d55
JG
196932013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19694
19695 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
19696 (gimple_stmt_iterator): New typedef.
19697 * gimple.h (gimple_stmt_iterator): Rename to...
19698 (gimple_stmt_iterator_d): ... This.
19699 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
19700 trees be valid for GIMPLE and GENERIC.
19701 (TARGET_GIMPLE_FOLD_BUILTIN): New.
19702 * gimple-fold.c (gimple_fold_call): Call target hook
19703 gimple_fold_builtin.
19704 * hooks.c (hook_bool_gsiptr_false): New.
19705 * hooks.h (hook_bool_gsiptr_false): New.
19706 * target.def (fold_stmt): New.
19707 * doc/tm.texi: Regenerate.
19708
88a581da
VM
197092013-04-22 Vladimir Makarov <vmakarov@redhat.com>
19710
19711 PR target/57018
19712 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
19713 a set sp if no stack realignment.
19714
92be22dc
NC
197152013-04-22 Nick Clifton <nickc@redhat.com>
19716
19717 * config.gcc (tilegx-linux): Extend extra_objs rather than
19718 overwriting it.
19719 (tilepro-linux): Likewise.
19720
0ddec79f
JG
197212013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19722
19723 * config/aarch64/aarch64-builtins.c
19724 (CF): Remove.
19725 (CF0, CF1, CF2, CF3, CF4, CF10): New.
19726 (VAR<1-12>): Add MAP parameter.
19727 (BUILTIN_*): Likewise.
19728 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
19729 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
19730 (aarch64_ushl_n<mode>): Likewise.
19731 (aarch64_sshr_n<mode>): Likewise.
19732 (aarch64_ushr_n<mode>): Likewise.
19733 (aarch64_<maxmin><mode>): Likewise.
19734 (aarch64_sqrt<mode>): Likewise.
19735 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
19736 (vshr<q>_n_*): Likewise.
19737
0050faf8
JG
197382013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19739
19740 * config/aarch64/aarch64-builtins.c
19741 (aarch64_simd_builtin_type_mode): Handle SF types.
19742 (sf_UP): Define.
19743 (BUILTIN_GPF): Define.
19744 (aarch64_init_simd_builtins): Handle SF types.
19745 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
19746 (frecps): Likewise.
19747 (frecpx): Likewise.
19748 * config/aarch64/aarch64-simd.md
19749 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
19750 (aarch64_frecpe<mode>): New.
19751 (aarch64_frecps<mode>): Likewise.
19752 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
19753 (v8type): Add frecp<esx>.
19754 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
19755 (aarch64_frecps<mode>): Likewise.
19756 * config/aarch64/iterators.md (FRECP): New.
19757 (frecp_suffix): Likewise.
19758 * config/aarch64/arm_neon.h
19759 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
19760
0fad3dbc 197612013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
19762
19763 PR target/56995
19764 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
19765 (REG_CLASS_NAMES): Idem.
19766 (REG_CLASS_CONTENTS): Idem.
19767 (REGCLASS_HAS_FP_REG): Idem.
19768 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
19769 (sh_conditional_register_usage): Idem.
19770
3e8a33f9
JL
197712013-04-21 Jeff Law <law@redhat.com>
19772
19773 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
19774 (ssa_forward_propagate_and_combine): Use it.
19775
f38e1b0a
VM
197762013-04-19 Vladimir Makarov <vmakarov@redhat.com>
19777
19778 * lra.c: Update the flow chart diagram.
19779
682303da
VM
197802013-04-19 Vladimir Makarov <vmakarov@redhat.com>
19781
19782 PR rtl-optimization/56847
19783 * lra-constraints.c (process_alt_operands): Discourage alternative
19784 with non-matche doffsettable memory constraint fro memory with
19785 known offset.
19786
f6b64c35
RB
197872013-04-19 Richard Biener <rguenther@suse.de>
19788
19789 PR tree-optimization/56982
19790 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
19791 function.
19792 * gimplify.c (gimplify_call_expr): Notice special calls.
19793 (gimplify_modify_expr): Likewise.
19794 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
19795 abnormal control flow receivers.
19796 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
19797 in the same way as cfun->has_nonlocal_labels.
19798 (gimple_purge_dead_abnormal_call_edges): Likewise.
19799 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
19800 receivers start a basic-block.
19801
01d8bf07
RB
198022013-04-19 Richard Biener <rguenther@suse.de>
19803
19804 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
19805 member ...
19806 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
19807 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
19808 (SLP_TREE_LOAD_PERMUTATION): Add.
19809 (vect_transform_slp_perm_load): Adjust prototype.
19810 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
19811 (vect_free_slp_instance): Likewise.
19812 (vect_create_new_slp_node): Likewise.
19813 (vect_supported_slp_permutation_p): Remove.
19814 (vect_slp_rearrange_stmts): Adjust.
19815 (vect_supported_load_permutation_p): Likewise. Inline
19816 vect_supported_slp_permutation_p here.
19817 (vect_analyze_slp_instance): Compute load permutations per
19818 slp node instead of per instance.
19819 (vect_get_slp_defs): Adjust.
19820 (vect_transform_slp_perm_load): Likewise.
19821 (vect_schedule_slp_instance): Remove redundant code.
19822 (vect_schedule_slp): Remove hack for PR56270, add it ...
19823 * tree-vect-stmts.c (vectorizable_load): ... here, do not
19824 CSE loads for SLP. Adjust.
19825
ede22fc3
GY
198262013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
19827
19828 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
19829 spelling in two comments.
19830
67bc84fb
GY
198312013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
19832
19833 PR target/56797
19834 * config/arm/arm.c (load_multiple_sequence): Require SP
19835 as base register for loads if SP is in the register list.
19836
e248d83f
MJ
198372013-04-19 Martin Jambor <mjambor@suse.cz>
19838
19839 PR tree-optimization/56718
19840 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
19841 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
19842 and made public. Adjusted all callers.
19843 (ipa_intraprocedural_devirtualization): New function.
19844 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
19845 (ipa_intraprocedural_devirtualization): Likewise.
19846 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
19847
4891e8f8
RB
198482013-04-19 Richard Biener <rguenther@suse.de>
19849
19850 PR tree-optimization/57000
19851 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
19852
dad89f7c
TG
198532013-04-19 Terry Guo <terry.guo@arm.com>
19854
19855 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
19856 Replace with ...
19857 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
19858 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
19859 (cortex_m4_fmacs): Use new reservations.
19860 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
19861
72ea0d47
VM
198622013-04-18 Vladimir Makarov <vmakarov@redhat.com>
19863
f1e6512c 19864 PR rtl-optimization/56999
72ea0d47
VM
19865 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
19866 related code.
19867 (lra_coalesce): Remove split_origin_bitmap and related code.
19868 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
19869 ranges if necessary.
19870
780a5b71
UB
198712013-04-18 Uros Bizjak <ubizjak@gmail.com>
19872
19873 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
19874 New array.
19875 (ix86_expand_call): Remove clobbered_registers array and use
19876 x86_64_ms_sysv_extra_clobbered_registers instead.
19877 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
19878 Declare here.
19879 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
19880 predicate.
19881 * config/i386/i386.md (*call_rex64_ms_sysv): Use
19882 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
19883 (*call_value_rex64_ms_sysv): Ditto.
19884
6f5a366a
CC
198852013-04-18 Cary Coutant <ccoutant@google.com>
19886
19887 * dwarf2out.c (output_pubnames): Check die_perennial_p of
19888 parent instead of die_mark.
19889
475b8f37
DN
198902013-04-18 Diego Novillo <dnovillo@google.com>
19891
19892 * gimple.c (create_gimple_tmp): New.
19893 (get_expr_type): New.
19894 (build_assign): New.
19895 (build_type_cast): New.
19896 * gimple.h (enum ssa_mode): Define.
19897 (gimple_seq_set_location): New.
19898 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 19899 to use build_assign and build_type_cast.
475b8f37 19900
08940f33
RB
199012013-04-18 Richard Biener <rguenther@suse.de>
19902
19903 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19904 handle negative step. Remove redundant checks.
19905 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
19906 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
19907 for negative step and grouped loads fail to vectorize.
19908
0e0f87d4
SB
199092013-04-18 Steven Bosscher <steven@gcc.gnu.org>
19910
19911 * emit-rtl.c (reset_insn_used_flags): New function.
19912 (reset_all_used_flags): Use it.
19913 (verify_insn_sharing): New function.
19914 (verify_rtl_sharing): Fix verification for SEQUENCEs.
19915
4c445590
JJ
199162013-04-18 Jakub Jelinek <jakub@redhat.com>
19917
19918 PR tree-optimization/56984
19919 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
19920 and (x >> M) >= N don't register any assertion if N << M is the
19921 minimum value.
19922
6873ecab
SB
199232013-04-18 Steven Bosscher <steven@gcc.gnu.org>
19924
19925 * lower-subreg.c (resolve_simple_move): If called self-recursive,
19926 do not delete_insn insns that have not yet been emitted, only
19927 unlink them with remove_insn.
19928 * df-scan.c (df_insn_delete): Revert r197492.
19929
3ccb989e
SB
199302013-04-17 Steven Bosscher <steven@gcc.gnu.org>
19931
19932 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
19933 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
19934
199352013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
19936
19937 * config/arm/arm.md (movsicc_insn): Convert define_insn into
19938 define_insn_and_split.
19939 (and_scc,ior_scc,negscc): Likewise.
19940 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
19941
3ccb989e 199422013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
19943
19944 * config/arm/arm.c (use_return_insn): Return 0 for targets that
19945 can benefit from using a sequence of LDRD instructions in epilogue
19946 instead of a single LDM instruction.
19947
6d10a203
MLI
199482013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
19949
19950 PR 45688
19951 * doc/extend.texi: Fix typo.
19952
6983e6b5
RB
199532013-04-17 Richard Biener <rguenther@suse.de>
19954
19955 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
19956 (vect_build_slp_tree): ... here.
19957 (vect_build_slp_tree_1): Compute which stmts of the SLP group
19958 match. Remove special-casing of mismatched complex loads.
19959 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
19960 re-try the match with swapped commutative operands.
19961 (vect_supported_load_permutation_p): Remove special-casing of
19962 mismatched complex loads.
19963 (vect_analyze_slp_instance): Adjust.
19964
ef23e6a2
RB
199652013-04-17 Richard Biener <rguenther@suse.de>
19966
19967 PR rtl-optimization/56921
19968 * cfgloop.h (struct loop): Add simple_loop_desc member.
19969 (struct niter_desc): Mark with GTY(()).
19970 (simple_loop_desc): Do not use aux field but simple_loop_desc.
19971 * loop-iv.c (get_simple_loop_desc): Likewise.
19972 (free_simple_loop_desc): Likewise.
19973
19974 Revert
19975 2013-04-16 Richard Biener <rguenther@suse.de>
19976
19977 PR rtl-optimization/56921
19978 * loop-init.c (pass_rtl_move_loop_invariants): Add
19979 TODO_do_not_ggc_collect to todo_flags_finish.
19980 (pass_rtl_unswitch): Same.
19981 (pass_rtl_unroll_and_peel_loops): Same.
19982 (pass_rtl_doloop): Same.
19983
fc6f94f5
EB
199842013-04-17 Eric Botcazou <ebotcazou@adacore.com>
19985
19986 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
19987 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
19988 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
19989 references.
19990 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
19991 * tree-streamer.c (record_common_node): Adjust reference in comment.
19992
10a88311
TG
199932013-04-17 Terry Guo <terry.guo@arm.com>
19994
19995 * config/arm/cortex-m4.md: Add a new bypass.
19996
6d9b7208 199972013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
19998
19999 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
20000 New pattern.
20001 (*subs_<optab><mode>_multp2): New pattern.
20002 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
20003 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
20004
6d9b7208 200052013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
20006
20007 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
20008 (*subs_mul_imm_<mode>): New pattern.
20009
18a6701e
DE
200102013-04-16 David Edelsohn <dje.gcc@gmail.com>
20011
20012 PR target/56948
20013 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
20014 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
20015 (vsx_movti_32bit): Change j->wa to O->wa.
20016
07c37b2f
RB
200172013-04-16 Richard Biener <rguenther@suse.de>
20018
20019 PR rtl-optimization/56921
20020 * loop-init.c (pass_rtl_move_loop_invariants): Add
20021 TODO_do_not_ggc_collect to todo_flags_finish.
20022 (pass_rtl_unswitch): Same.
20023 (pass_rtl_unroll_and_peel_loops): Same.
20024 (pass_rtl_doloop): Same.
20025
0e0f87d4 200262013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
20027
20028 * config/arm/arm.c (emit_multi_reg_push): New declaration
20029 for an existing function.
20030 (arm_emit_strd_push): New function.
20031 (arm_expand_prologue): Used here.
20032 (arm_emit_ldrd_pop): New function.
20033 (arm_expand_epilogue): Used here.
20034 (arm_get_frame_offsets): Update condition.
20035 (arm_emit_multi_reg_pop): Add a special case for load of a single
20036 register with writeback.
20037
5e8e2af4
UB
200382013-04-16 Uros Bizjak <ubizjak@gmail.com>
20039
20040 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
20041 description.
20042
9fd9ccf7
RB
200432013-04-16 Richard Biener <rguenther@suse.de>
20044
20045 PR tree-optimization/56756
20046 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
20047 (first_mem_ref_loc): New.
20048 (execute_sm): Place the load temporarily before a previous
20049 access instead of in the latch edge to ensure its SSA dependencies
20050 are defined at points dominating the load.
20051
96fba521
SB
200522013-04-16 Steven Bosscher <steven@gcc.gnu.org>
20053
4c8af858
SB
20054 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
20055 correct fix by moving header and footer insn to the footer of
20056 the merged basic block. Clear BB_END of the merged-away block.
20057
96fba521
SB
20058 PR middle-end/43631
20059 * emit-rtl.c (make_note_raw): New function.
20060 (link_insn_into_chain): New static inline function.
20061 (add_insn): Use it.
20062 (add_insn_before, add_insn_after): Factor insn chain linking code...
20063 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
20064 using link_insn_into_chain.
20065 (note_outside_basic_block_p): New helper function for emit_note_after
20066 and emit_note_before.
20067 (emit_note_after): Use nobb variant of add_insn_after if the note
20068 should not be contained in a basic block.
20069 (emit_note_before): Use nobb variant of add_insn_before if the note
20070 should not be contained in a basic block.
20071 (emit_note_copy): Use make_note_raw.
20072 (emit_note): Likewise.
20073 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
20074 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
20075 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
20076 the moved barrier the tail of the basic block it follows.
20077 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
20078
7b8265ba
JJ
200792013-04-15 Jakub Jelinek <jakub@redhat.com>
20080
20081 PR tree-optimization/56962
20082 * gimple-ssa-strength-reduction.c (record_increment): Only set
20083 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
20084 either rhs1 or rhs2 is equal to c->base_expr.
20085
5185d248
RB
200862013-04-15 Richard Biener <rguenther@suse.de>
20087
20088 PR tree-optimization/56933
20089 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
20090 member.
20091 (GROUP_READ_WRITE_DEPENDENCE): Remove.
20092 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
20093 * tree-vect-data-refs.c (vect_analyze_group_access): Move
20094 dependence check ...
20095 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
20096 ... here.
20097 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
20098 GROUP_READ_WRITE_DEPENDENCE.
20099
a24243a0
AK
201002013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20101
20102 * emit-rtl.c (reset_all_used_flags): New function.
20103 (verify_rtl_sharing): Call reset_all_used_flags before and after
20104 performing the checks.
20105
1c50eada
KT
201062013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20107
20108 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
20109 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
20110 * config/arm/constraints.md (De): New constraint.
20111 * config/arm/neon.md (anddi3_neon): Delete.
20112 (neon_vand<mode>): Expand to standard anddi3 pattern.
20113 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
20114 Move earlier in the file.
20115 (neon_inv_logic_op2): Likewise.
20116 (arm_anddi_operand_neon): New predicate.
20117
e927b6ad
RO
201182013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20119
20120 * configure.ac (gcc_cv_ld_as_needed): Set
20121 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
20122 Use -z ignore, -z record on *-*-solaris2*.
20123 (HAVE_LD_AS_NEEDED): Update comment.
20124 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
20125 * configure: Regenerate.
20126 * config.in: Regenerate.
20127 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
20128 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
20129 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
20130 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
20131 equivalents. Fix markup.
20132 * doc/tm.texi: Regenerate.
20133
e0ea8797
AH
201342013-04-15 Andrew Hsieh <andrewhsieh.google.com>
20135
20136 * config/i386/i386.opt: New option mstack-protector-guard=.
20137 * config/i386/i386-opts.h: Add enum stack_protector_guard.
20138 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
20139 TARGET_SSP_TLS_GUARD.
20140 * config/i386/i386.c (ix86_option_override_internal): Set
20141 ix86_stack_protector_guard.
20142 * config/i386/i386.md (stack_protect_set): Enable for
20143 TARGET_SSP_TLS_GUARD only.
20144 (stack_protect_set_<mode>): Ditto.
20145 (stack_protect_test): Ditto.
20146 (stack_protect_test_<mode>): Ditto.
20147 * doc/invoke.texi (i386 Option): Document.
20148
811b72f9
EB
201492013-04-15 Eric Botcazou <ebotcazou@adacore.com>
20150
20151 PR target/56890
20152 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
20153 (S_MODES): Set H_MODE bit.
20154 (SF_MODES): Set only S_MODE and SF_MODE bits.
20155 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
20156 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
20157 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
20158 <MODE_FLOAT>: Likewise.
20159
5529fdd6
JY
201602013-04-15 Joey Ye <joey.ye@arm.com>
20161
20162 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
20163
517b1da2
JY
201642013-04-15 Joey Ye <joey.ye@arm.com>
20165
20166 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
20167 for real far jump.
20168 (thumb_far_jump_used_p): Count instruction size and set
20169 far_jump_used.
20170
01007ae0
EB
201712013-04-14 Eric Botcazou <ebotcazou@adacore.com>
20172
20173 * reorg.c (fill_simple_delay_slots): Reindent block of code.
20174 * resource.c (mark_target_live_regs): Reformat conditional block.
20175
c46f6580
SB
201762013-04-13 Steven Bosscher <steven@gcc.gnu.org>
20177
20178 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
20179 notes, they are emitted only just before final.
20180 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
20181
1f397f45
SB
201822013-04-13 Steven Bosscher <steven@gcc.gnu.org>
20183
20184 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
20185 * cfgrtl.c (delete_insn): Call it here instead.
20186 * lra-spills.c (lra_final_code_change): Use delete_insn.
20187 * haifa-sched.c (sched_remove_insn): Likewise.
20188 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
20189 returning to the nop pool.
20190 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
20191 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
20192
58a51369
SB
201932013-04-12 Steven Bosscher <steven@gcc.gnu.org>
20194
20195 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
20196 * doc/tm.texi: Regenerated.
20197
33159866
UB
201982013-04-12 Uros Bizjak <ubizjak@gmail.com>
20199
20200 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
20201 QImode checks.
20202
226e378f
SB
202032013-04-12 Steven Bosscher <steven@gcc.gnu.org>
20204
20205 * df-core.c (df_find_def): Compare register numbers.
20206 (df_find_use): Likewise.
20207
fafb9b18
VM
202082013-04-12 Vladimir Makarov <vmakarov@redhat.com>
20209
20210 PR target/56903
20211 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
20212 lra_in_progress for return.
20213
9a946fd6
GY
202142013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
20215
20216 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
20217 define_insn into define_insn_and_split and emit movsicc patterns.
20218
41b83758
GY
202192013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
20220
20221 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
20222
d3afd9aa
RB
202232013-04-12 Richard Biener <rguenther@suse.de>
20224
20225 * tree-pass.h (TODO_do_not_ggc_collect): New.
20226 * passes.c (execute_one_ipa_transform_pass): Honor
20227 TODO_do_not_ggc_collect.
20228 (execute_one_pass): Likewise.
20229
20230 Revert
20231 2013-04-10 Richard Biener <rguenther@suse.de>
20232
20233 * passes.c (init_optimization_passes): Remove reload pass.
20234 * ira.c (do_reload): Merge into ...
20235 (ira): ... this.
20236 (rest_of_handle_reload): Remove.
20237 (pass_reload): Likewise.
20238 * config/i386/i386.c (ix86_option_override): Refer to ira instead
20239 of reload for vzeroupper pass placement.
20240
06f9b387
JJ
202412013-04-12 Jakub Jelinek <jakub@redhat.com>
20242
20243 PR tree-optimization/56918
20244 PR tree-optimization/56920
20245 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
20246 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
20247 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
20248 use wide_mul_with_sign method.
20249
953094d2
RB
202502013-04-12 Richard Biener <rguenther@suse.de>
20251
20252 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
20253 not be considered a gimple constant.
20254
bb506982
MG
202552013-04-12 Marc Glisse <marc.glisse@inria.fr>
20256
20257 * fold-const.c (const_binop): Handle vector shifts by a scalar.
20258 (fold_binary_loc): Call const_binop also for mixed vector-scalar
20259 operations.
20260
4b84d650
JJ
202612013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
20262 Jakub Jelinek <jakub@redhat.com>
20263
20264 * opts.c: Include diagnostic-color.h.
20265 (common_handle_option): Handle OPT_fdiagnostics_color_.
20266 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
20267 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
20268 (diagnostic-color.o): New.
20269 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
20270 (diagnostic_color_rule): New enum.
20271 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
20272 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
20273 the location string.
20274 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
20275 either NULL, or color kind.
20276 * diagnostic-color.c: New file.
20277 * diagnostic-color.h: New file.
20278 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
20279 arguments.
20280 * doc/invoke.texi (-fdiagnostics-color): Document.
20281 * pretty-print.h (pp_show_color): Define.
20282 (struct pretty_print_info): Add show_color field.
20283 * diagnostic.c: Include diagnostic-color.h.
20284 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
20285 macros. Colorize error:, warning: etc. strings and also the location
20286 string.
20287 (diagnostic_show_locus): Colorize the caret line.
20288 * pretty-print.c: Include diagnostic-color.h.
20289 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
20290 inside of %< %> quotes or quoted through q format modifier.
20291
067a1e71
AK
202922013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20293
33159866 20294 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 20295
33159866 202962013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
20297
20298 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
20299 code in CC_NZ mode.
20300 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
20301 pattern.
20302
7b55f98f
MP
203032013-04-11 Marek Polacek <polacek@redhat.com>
20304
20305 PR tree-optimization/48184
33159866 20306 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 20307
966b587e
EB
203082013-04-11 Eric Botcazou <ebotcazou@adacore.com>
20309
20310 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
20311 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
20312 (skip_simple_arithmetic): Tidy up.
20313 * tree.h (skip_simple_constant_arithmetic): Declare.
20314
33159866 203152013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
20316
20317 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
20318
1d42c1ec
RB
203192013-04-11 Richard Biener <rguenther@suse.de>
20320
20321 * tree-vect-loop.c (get_initial_def_for_induction): Properly
20322 generate vector constants.
20323
4ba5ea11
RB
203242013-04-11 Richard Biener <rguenther@suse.de>
20325
20326 PR tree-optimization/56878
20327 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
20328 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
20329 New function.
20330 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20331 Prefer to align the DR with the most invariant base address.
20332
f0defe58
SKS
203332013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20334
20335 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
20336 comment.
20337
d07458be
JG
203382013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
20339
20340 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
20341 floating-point vector comparisons against 0.
20342
146b8692
JJ
203432013-04-11 Jakub Jelinek <jakub@redhat.com>
20344
20345 PR tree-optimization/56899
20346 * fold-const.c (extract_muldiv_1): Apply distributive law
20347 only if TYPE_OVERFLOW_WRAPS (ctype).
20348
b8578ff7
BC
203492013-04-11 Bin Cheng <bin.cheng@arm.com>
20350
20351 PR target/56124
20352 * ira-costs.c (scan_one_insn): Check whether the source rtx of
20353 loading has side effect.
20354
0ea8a6f9
SB
203552013-04-10 Steven Bosscher <steven@gcc.gnu.org>
20356
20357 * config/sparc/sparc.c: Include tree-pass.h.
20358 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
20359 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
20360 head of file. Change return type. Split off gate function.
20361 (sparc_gate_work_around_errata): New function.
20362 (pass_work_around_errata): New pass definition.
20363 (insert_pass_work_around_errata) New pass insert definition to
20364 insert pass_work_around_errata just after delayed-branch scheduling.
20365 (sparc_option_override): Insert the pass.
20366 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
20367
42e37616
DM
203682013-04-10 David S. Miller <davem@davemloft.net>
20369
89deeb3b
DM
20370 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
20371 or -mcpu=hypersparc.
20372
42e37616
DM
20373 * target.def (cstore_mode): New hook.
20374 * target.h: Include insn-codes.h
20375 * targhooks.c: Likewise.
20376 (default_cstore_mode): New function.
20377 * targhooks.h: Declare it.
20378 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
20379 * doc/tm.texi: Rebuild.
20380 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
20381 target hook, rather than inspecting the insn_data.
20382 * config/sparc/sparc.c (sparc_cstore_mode): New function.
20383 (TARGET_CSTORE_MODE): Redefine.
20384 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
20385 result patterns.
20386 * config/sparc/predicates.md (cstore_result_operand): New special
20387 predicate.
20388 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
20389 Use it for operand 0.
20390 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
20391 (*snesi_special): Likewise.
20392 (*snesi_zero): Likewise.
20393 (*seqsi_zero): Likewise.
20394 (*sltu_insn): Likewise.
20395 (*sgeu_insn): Likewise.
20396 (*seqdi_special): Make operand 0 and comparison operation be of
20397 DImode.
20398 (*snedi_special): Likewise.
20399 (*snedi_special_vis3): Likewise.
20400 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
20401 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
20402 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
20403 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
20404 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
20405 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
20406 (*sltu_extend_sp64): Likewise.
20407 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
20408 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
20409 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
20410 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
20411 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
20412
95ca411e
YZ
204132013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
20414
20415 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
20416 (aarch64_start_file): Use the new function.
20417
6782438d 204182013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 20419 Jason Merrill <jason@redhat.com>
6782438d
SKS
20420
20421 * common.opt: Add -gdwarf.
20422 * opts.c (common_handle_option): Handle it.
20423 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
20424
bb313b93
RB
204252013-04-10 Richard Biener <rguenther@suse.de>
20426
20427 * passes.c (execute_todo): Do not call ggc_collect conditional here.
20428 (execute_one_ipa_transform_pass): But unconditionally here.
20429 (execute_one_pass): And here.
20430 (init_optimization_passes): Remove reload pass.
20431 * tree-pass.h (TODO_ggc_collect): Remove.
20432 (pass_reload): Likewise.
20433 * ira.c (do_reload): Merge into ...
20434 (ira): ... this.
20435 (rest_of_handle_reload): Remove.
20436 (pass_reload): Likewise.
20437 * config/i386/i386.c (ix86_option_override): Refer to ira instead
20438 of reload for vzeroupper pass placement.
20439 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
20440 and todo_flags_finish of all passes.
20441
793d9a16
RB
204422013-04-10 Richard Biener <rguenther@suse.de>
20443
20444 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
20445 first_const_oprnd field, rename first_def_type to first_op_type.
20446 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
20447 (vect_get_and_check_slp_defs): Always use the type of the
20448 operand. Allow mixed vect_external_def, vect_constant_def types.
20449 (vect_get_constant_vectors): Handle mixed vect_external_def,
20450 vect_constant_def types.
20451
12211b99 204522013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
20453
20454 PR tree-optimization/55524
20455 * tree-ssa-math-opts.c
20456 (convert_mult_to_fma): Don't use an fms construct
20457 when we don't have an fms operation, but fnma, and it looks
20458 likely that we'll be able to use the latter.
20459
12211b99 204602013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
20461
20462 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
20463 function.
20464 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
20465 inline fail caused by overwritable functions.
20466
34ab4a5b
CJW
204672013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
20468
20469 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
20470 unnecessary bits in the constant power of two case.
20471
abf9bfbc
RB
204722013-04-10 Richard Biener <rguenther@suse.de>
20473
20474 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
20475 broken code swapping operands.
20476 (vect_build_slp_tree): Do not compute load permutations here.
20477 (vect_analyze_slp_instance): Compute load permutations here,
20478 after building the SLP tree.
20479
f408477e
CB
204802013-04-09 Christian Bruel <christian.bruel@st.com>
20481
20482 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
20483 of next/prev_real_insn.
20484
5ac42672
JH
204852013-04-09 Jan Hubicka <jh@suse.cz>
20486
abf9bfbc
RB
20487 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
20488 Drop aliased parameter.
5ac42672
JH
20489 (function_and_variable_visibility): Do not handle alias pairs.
20490 * cgraph.c (varpool_externally_visible_p): Update prototype.
20491 * varpool.c (varpool_add_new_variable): Update.
20492
5017f1d2
KT
204932013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20494
20495 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
20496
48eecbee
SB
204972013-04-09 Steven Bosscher <steven@gcc.gnu.org>
20498
a949cf1c
SB
20499 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
20500
48eecbee
SB
20501 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
20502
75ef8e3d
MP
205032013-04-09 Marek Polacek <polacek@redhat.com>
20504
20505 PR tree-optimization/48762
33159866 20506 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 20507
23847df4
RB
205082013-04-09 Richard Biener <rguenther@suse.de>
20509
20510 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
20511 dealing with cost.
20512 (vect_build_slp_tree): Likewise.
20513 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
20514 calculating the cost of a SLP instance.
20515 (vect_analyze_slp_instance): Use it from here, after building
20516 the SLP tree.
20517
ea3a0fde
JJ
205182013-04-09 Jakub Jelinek <jakub@redhat.com>
20519
20520 PR middle-end/56883
20521 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
20522 expand_omp_for_static_chunk): Use simple_p = true in
20523 force_gimple_operand_gsi calls when assigning to addressable decls.
20524
a32dfe9d
JL
205252013-04-09 Jeff Law <law@redhat.com>
20526
20527 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
20528 when the boolean was created by converting a wider object which
20529 had a boolean range.
20530
d755c7ef
RB
205312013-04-09 Richard Biener <rguenther@suse.de>
20532
20533 * tree-vectorizer.h (slp_void_p): Remove.
20534 (slp_tree): Typedef before _slp_tree declaration.
20535 (struct _slp_tree): Use a vector of slp_tree as children.
20536 (vect_get_place_in_interleaving_chain): Remove.
20537 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
20538 Move ...
20539 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
20540 and make static.
20541 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
20542 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
20543 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
20544 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
20545 Use slp_node instead of slp_void_p and adjust.
20546
3d741091
RB
205472013-04-09 Richard Biener <rguenther@suse.de>
20548
20549 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
20550 work that is not necessary.
20551
39307ba7
JJ
205522013-04-09 Jakub Jelinek <jakub@redhat.com>
20553
20554 PR tree-optimization/56854
20555 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
20556 forward into clobber stmts if it would change MEM_REF lhs into
20557 non-MEM_REF.
20558
343881fd
MK
205592013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
20560
20561 * tree.c (type_hash_lookup, type_hash_add): Make static.
20562 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
20563
3922658a
RB
205642013-04-09 Richard Biener <rguenther@suse.de>
20565
20566 * tree.h (unsave_expr_now): Remove.
20567 * tree-inline.c (mark_local_for_remap_r): Remove.
20568 (unsave_expr_1): Likewise.
20569 (unsave_r): Likewise.
20570 (unsave_expr_now): Likewise.
20571 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
20572 (propagate_tree_value): Likewise.
20573
9fb6b620
SB
205742013-04-08 Steven Bosscher <steven@gcc.gnu.org>
20575
20576 * doc/rtl.texi (sequence): Rewrite documentation to match the
20577 current use of SEQUENCE rtl objects.
20578 * rtl.def (SEQUENCE): Likewise.
20579
20580 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
20581 Update documentation.
20582 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
20583 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
20584
20585 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
20586
8ddb5a29
TJ
205872013-04-08 Teresa Johnson <tejohnson@google.com>
20588
20589 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
20590 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 20591 methods.
8ddb5a29
TJ
20592 (estimate_edge_size_and_time): Add comment to suggest using rounding
20593 methods.
20594 (estimate_node_size_and_time): Ditto.
20595 (remap_edge_change_prob): Use helper rounding divide methods.
20596 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
20597 (gimple_mod_pow2_value_transform): Ditto.
20598 (gimple_mod_subtract_transform): Ditto.
20599 (gimple_ic_transform): Ditto.
20600 (gimple_stringops_transform): Ditto.
20601 * stmt.c (conditional_probability): Ditto.
20602 (emit_case_dispatch_table): Ditto.
20603 * lto-cgraph.c (merge_profile_summaries): Ditto.
20604 * tree-optimize.c (execute_fixup_cfg): Ditto.
20605 * cfgcleanup.c (try_forward_edges): Ditto.
20606 * cfgloopmanip.c (scale_loop_profile): Ditto.
20607 (loopify): Ditto.
20608 (duplicate_loop_to_header_edge): Ditto.
20609 (lv_adjust_loop_entry_edge): Ditto.
20610 * tree-vect-loop.c (vect_transform_loop): Ditto.
20611 * profile.c (compute_branch_probabilities): Ditto.
20612 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
20613 * lto-streamer-in.c (input_cfg): Ditto.
20614 * gimple-streamer-in.c (input_bb): Ditto.
20615 * ipa-cp.c (update_profiling_info): Ditto.
20616 (update_specialized_profile): Ditto.
20617 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
20618 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 20619 rounding methods.
8ddb5a29
TJ
20620 * sched-rgn.c (compute_dom_prob_ps): Ditto.
20621 (compute_trg_info): Ditto.
20622 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
20623 (purge_dead_edges): Ditto.
20624 * loop-unswitch.c (unswitch_loop): Ditto.
20625 * cgraphclones.c (cgraph_clone_edge): Ditto.
20626 (cgraph_clone_node): Ditto.
20627 * tree-inline.c (copy_bb): Ditto.
20628 (copy_edges_for_bb): Ditto.
20629 (initialize_cfun): Ditto.
20630 (copy_cfg_body): Ditto.
20631 (expand_call_inline): Ditto.
20632
661e6bd7
KT
206332013-04-08 Kai Tietz <ktietz@redhat.com>
20634
20635 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
20636 TARGET_CYGWIN64 by TARGET_64BIT.
20637
105766f3
JR
206382013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
20639
20640 * config/epiphany/epiphany.md (GPR_1): New constant.
20641 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
20642 * config/epiphany/epiphany.c (gen_compare_reg):
20643 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
20644 is already in place.
20645 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
20646 Don't require being called during rtl expansion; If y operlaps r0,
20647 return 0.
20648 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
20649 (epiphany_expand_epilogue): Likewise.
20650
8afab237
JR
20651 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
20652 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 20653 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 20654
fa7707d6
JR
20655 * config/epiphany/constraints.md (CnL): New constraint.
20656 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
20657 * config/epiphany/predicates.md (add_operand): Allow 1024.
20658
5138e18d
JR
20659 * config/epiphany/epiphany.md (logical_op): New code iterator.
20660 (op_mnc): New code attribute.
20661 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
20662 (mov_f+1, mov_f+2): New peephole2 patterns.
20663
2ccc703d
JR
20664 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
20665 (cstoresi4): Also allow re-use of zero result when doing a NE
20666 comparison to a non-zero operand.
aefb0819 20667 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 20668
093ac0a5
JR
20669 * config/epiphany/epiphany.md (<insn_opname>v2si3):
20670 Use gen_addsi3_i / gen_subsi3_i.
20671
f223bb13
JJ
206722013-04-08 Jakub Jelinek <jakub@redhat.com>
20673
20674 PR c++/34949
20675 PR c++/50243
20676 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
20677 contain anything but clobbers, at most one __builtin_stack_restore,
20678 optionally debug stmts and final resx, and if it has at least one
20679 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
20680 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
20681 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
20682 which isn't defaut definition, remove them.
20683 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
20684 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
20685 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
20686 with MEM_REF LHS with SSA_NAME address.
20687
4481581f
JL
206882013-04-08 Jeff Law <law@redhat.com>
20689
20690 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 20691
451dabda
RB
206922013-04-08 Richard Biener <rguenther@suse.de>
20693
20694 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
20695 extra newline.
20696 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
20697 determined vector type.
20698 (vect_analyze_data_refs): Likewise.
20699 (vect_get_new_vect_var): Adjust.
20700 (vect_create_destination_var): Preserve SSA name versions.
20701 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
20702 not dump anything here.
20703
3b088b47
JR
207042013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
20705
20706 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
20707 Add member lr_slot_known.
20708 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
20709 if necessary.
20710 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20711 Remove code that sets lr_slot_offset according to what a previous
20712 version of epiphany_emit_save_restore used to do.
20713 (epiphany_emit_save_restore): When doing an lr save or restore,
20714 set/verify lr_slot_known and lr_slot_offset.
20715
d8484d41
XQ
207162013-04-08 Xinyu Qi <xyqi@marvell.com>
20717
33159866
UB
20718 PR target/54338
20719 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
20720 in ALL_REGS.
20721
481be1c4
RB
207222013-04-08 Richard Biener <rguenther@suse.de>
20723
20724 * alias.c (find_base_term): Fix thinko in previous change.
20725
401f3a81
JJ
207262013-04-08 Jakub Jelinek <jakub@redhat.com>
20727
20728 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
20729 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
20730 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
20731 if possible to compute val.
20732 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
20733 For QImode integers don't require anything about precision. Use
20734 const_with_all_bytes_same to find out if the constant doesn't have
20735 repeated bytes in it.
20736
03ed99a8
AK
207372013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20738
20739 * config/s390/s390.c (s390_expand_insv): Only accept insertions
20740 within mode size.
20741
781b2e62
MP
207422013-04-08 Marek Polacek <polacek@redhat.com>
20743
20744 PR rtl-optimization/48182
20745 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
20746 value to 1.
20747
27e430a2
JDA
207482013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20749
20750 PR target/55487
20751 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
20752 nuses, make sure we have a label.
20753
4902aa64
BS
207542013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20755
20756 PR target/56843
20757 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
20758 (rs6000_emit_swdiv_low_precision): Remove.
20759 (rs6000_emit_swdiv): Rewrite to handle between one and four
20760 iterations of Newton-Raphson generally; modify required number of
20761 iterations for some cases.
20762 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
20763
7bca81dc
SB
207642013-04-05 Steven Bosscher <steven@gcc.gnu.org>
20765
20766 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
20767 set-but-unused variable.
20768
20769 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
20770 basic blocks of released function bodies garbage-collectable.
20771
20772 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
20773 (struct rtl_opt_pass): Add TODO_df_finish.
20774
20775 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
20776
4542a38a
GY
207772013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20778
20779 * config/arm/constraints.md (q): New constraint.
20780 * config/arm/ldrdstrd.md: New file.
20781 * config/arm/arm.md (ldrdstrd.md) New include.
20782 (arm_movdi): Use "q" instead of "r" constraint
20783 for double-word memory access.
20784 (movdf_soft_insn): Likewise.
20785 * config/arm/vfp.md (movdi_vfp): Likewise.
20786 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 20787 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
20788 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
20789 (mem_ok_for_ldrd_strd): Likewise.
20790 (output_move_double): Update assertion.
20791
2385b218
GY
207922013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20793
20794 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
20795
75fe1cb5
GY
207962013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20797
20798 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
20799 define_insn_and_split.
20800 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
20801
dd660e8e
GY
208022013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20803
20804 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
20805 define_insn_and_split.
33159866 20806 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
20807 (shiftsi3_compare): New pattern.
20808 (rrx): New pattern.
20809 * config/arm/unspecs.md (UNSPEC_RRX): New.
20810
045e472c
GY
208112013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20812
20813 * config/arm/arm.md (negdi_extendsidi): New pattern.
20814 (negdi_zero_extendsidi): Likewise.
20815
3f3bf1a8
GY
208162013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20817
20818 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
20819 define_insn_and_split.
20820 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
20821 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
20822
b0b49556
GY
208232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20824
20825 * config/arm/arm.md (arm_subdi3): Convert define_insn into
20826 define_insn_and_split.
20827 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
20828 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
20829
d633dd84
GY
208302013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20831
20832 * config/arm/arm.md (subsi3_carryin): New pattern.
20833 (subsi3_carryin_const): Likewise.
20834 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
20835 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
20836
f4499066
GY
208372013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20838
20839 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
20840
ceef6fd9
GY
208412013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
20842
20843 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 20844 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 20845
ddbdd8a7
KT
208462013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20847
20848 * config/arm/arm.c (arm_expand_builtin): Change fcode
20849 type to unsigned int.
20850
8456d78a
RR
208512013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20852
20853 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
20854
526c230f
ILT
208552013-04-04 Ian Lance Taylor <iant@google.com>
20856
33159866
UB
20857 * doc/standards.texi (Standards): The Go frontend supports the Go 1
20858 language standard.
526c230f 20859
3cfbe04d
SB
208602013-04-04 Steven Bosscher <steven@gcc.gnu.org>
20861
20862 PR middle-end/56729
20863 * df-scan.c (df_insn_delete): Disable failing assert.
20864
dfa3f8d0
KT
208652013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20866
20867 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
20868 New function prototype.
20869 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
20870 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
20871 (arm_builtin_vectorized_function): New function.
20872
f7837758
KT
208732013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20874
20875 * config/arm/arm_neon_builtins.def: New file.
20876 * config/arm/arm.c (neon_builtin_data): Move contents to
20877 arm_neon_builtins.def.
20878 (enum arm_builtins): Include neon builtin definitions.
20879 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 20880 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 20881
39c1b6db
MP
208822013-04-04 Marek Polacek <polacek@redhat.com>
20883
20884 PR tree-optimization/48186
20885 * predict.c (maybe_hot_frequency_p): Return false if
20886 HOT_BB_FREQUENCY_FRACTION is 0.
20887 (cgraph_maybe_hot_edge_p): Likewise.
20888
314f64eb
RB
208892013-04-04 Richard Biener <rguenther@suse.de>
20890
20891 PR tree-optimization/56826
20892 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
20893 more accurately.
20894
51a905b2
RB
208952013-04-04 Richard Biener <rguenther@suse.de>
20896
20897 PR tree-optimization/56213
20898 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 20899 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 20900
f1bf4f3a
RB
209012013-04-04 Richard Biener <rguenther@suse.de>
20902
20903 PR tree-optimization/56837
20904 * tree-loop-distribution.c (classify_partition): For non-zero
20905 values require that the value has the same precision as its
20906 mode to be useful as memset value.
20907
0bca7ded
NC
209082013-04-03 Nick Clifton <nickc@redhat.com>
20909
33159866 20910 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
20911 (fmssf4): Use fmsf.s on E3V5 architectures.
20912 (fnmasf4): Use fnmaf.s on E3V5 architectures.
20913 (fnmssf4): Use fnmsf.s on E3V5 architectures.
20914
b4019227
JL
209152013-04-03 Jeff Law <law@redhat.com>
20916
20917 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
20918 (lra-eliminations.o): Likewise.
20919
f57ddb5b
TJ
209202013-04-03 Teresa Johnson <tejohnson@google.com>
20921
20922 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 20923 compute_working_sets here from profile.c.
f57ddb5b 20924 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
20925 (gcov_working_set_t): Moved typedef here from basic-block.h
20926 (compute_working_set): Declare.
f57ddb5b
TJ
20927 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
20928 (get_working_sets): Renamed from compute_working_set,
33159866 20929 replace most of body with call to new compute_working_sets.
f57ddb5b 20930 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
20931 to get_working_sets.
20932 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 20933 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 20934 to get_working_sets.
f57ddb5b
TJ
20935 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
20936 * gcov-dump.c (dump_working_sets): New function.
20937
12211b99 209382013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
20939
20940 * hwint.c (sext_hwi, zext_hwi): New functions.
20941 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
20942 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
20943 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
20944 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
20945 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
20946 (sext_hwi, zext_hwi): New functions.
0bca7ded 20947
be672e08
JL
209482013-04-03 Jeff Law <law@redhat.com>
20949
20950 PR tree-optimization/56799
33159866
UB
20951 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
20952 back test for widening conversion erroneously dropped in prior change.
be672e08 20953
9d821fa5
KT
209542013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20955
20956 PR target/56809
20957 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
20958 instead of next_real_insn.
20959
71c581e7
MP
209602013-04-03 Marek Polacek <polacek@redhat.com>
20961
20962 PR sanitizer/55702
33159866 20963 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 20964
4a32ef80
KT
209652013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20966
20967 PR target/56809
20968 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
20969 next_real_insn.
20970 (thumb1_output_casesi): Likewise.
20971 (thumb2_output_casesi): Likewise.
20972
1b2253d4
RB
209732013-04-03 Richard Biener <rguenther@suse.de>
20974
20975 PR tree-optimization/56817
20976 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
20977 Split out ...
20978 (tree_unroll_loops_completely_1): ... new function to manually
20979 walk the loop tree, properly defering outer loops of unrolled
20980 loops to later iterations.
20981
38000232
MG
209822013-04-03 Marc Glisse <marc.glisse@inria.fr>
20983
20984 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
20985 (vectorizable_load): Likewise.
20986 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
20987 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
20988
3fa35298
MG
209892013-04-03 Marc Glisse <marc.glisse@inria.fr>
20990
20991 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
20992 BIT_FIELD_REF.
20993
b3d45ff0
UW
209942013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20995
20996 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
20997
ec9202a8
BC
209982013-04-03 Bin Cheng <bin.cheng@arm.com>
20999
21000 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
21001
6805bd36
MG
210022013-04-03 Marc Glisse <marc.glisse@inria.fr>
21003
21004 PR tree-optimization/56790
33159866
UB
21005 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
21006 folding.
6805bd36 21007
da694a77
MG
210082013-04-03 Marc Glisse <marc.glisse@inria.fr>
21009
21010 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
21011 Handle VEC_MERGE.
21012 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
21013 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
21014 equal arguments.
21015
4e7d7b3d
JJ
210162013-04-03 Jakub Jelinek <jakub@redhat.com>
21017
21018 PR c/19449
21019 * tree.h (force_folding_builtin_constant_p): New decl.
21020 * builtins.c (force_folding_builtin_constant_p): New variable.
21021 (fold_builtin_constant_p): Fold immediately also if
21022 force_folding_builtin_constant_p.
21023
e6c9d234
RB
210242013-04-03 Richard Biener <rguenther@suse.de>
21025
21026 PR tree-optimization/56812
21027 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
21028 DRs of the same interleaving chain are independent.
21029
984d07dd
JM
210302013-04-02 Jason Merrill <jason@redhat.com>
21031
21032 * gdbinit.in (pbb): Use debug fn.
21033
622849c9
LC
210342013-04-02 Lawrence Crowl <crowl@google.com>
21035
21036 * sese.h (struct ivtype_map_elt_s): Remove unused.
21037 (extern debug_ivtype_map): Remove unused.
21038 (extern eq_ivtype_map_elts): Remove unused.
21039 * sese.c (debug_ivtype_map): Removed unused.
21040 (debug_ivtype_map_1): Removed unused.
21041 (debug_ivtype_elt): Remove unused.
21042 (eq_ivtype_map_elts): Remove unused.
21043
21044
82c0e1a0
KT
210452013-04-02 Kai Tietz <ktietz@redhat.com>
21046
21047 PR target/52790
21048 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
21049 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
21050 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
21051 function.
82c0e1a0
KT
21052 (legitimize_pe_coff_symbol): Likewise.
21053 (is_imported_p): New helper-function.
21054 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
21055 for Windows x64 targets.
21056 (ix86_expand_prologue): Optimize for pe-coff targets.
21057 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
21058 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
21059 medium/large code-model.
21060 (legitimize_pic_address): Likewise.
21061 (legitimize_tls_address): Likewise.
21062 (ix86_expand_call): Likewise.
21063 (x86_output_mi_thunk): Likewise.
21064 (get_dllimport_decl): Add new beimport argument.
21065 (construct_plt_address): Don't assert for x64 pe-coff targets.
21066 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
21067 targets.
21068 (SYMBOL_FLAG_STUBVAR): New macro.
21069 (SYMBOL_REF_STUBVAR_P): Likewise.
21070 * config/i386/winnt.c (stub_list): New structure.
21071 (stub_head): New local variable.
21072 (i386_pe_record_stub): New function.
21073 (i386_pe_file_end): Emit refptr-stubs.
21074
5d751b0c
JJ
210752013-04-02 Jakub Jelinek <jakub@redhat.com>
21076
09bb4c99
JJ
21077 PR rtl-optimization/56745
21078 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
21079 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
21080
a1d8947a
JJ
21081 PR c++/34949
21082 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
21083 and both of them are MEM_REFs, just compare first argument for
21084 equality and attempt to deal even with differing offsets.
21085
5d751b0c
JJ
21086 PR c++/34949
21087 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
21088 of gimple_clobber_p to be MEM_REF.
21089 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
21090 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
21091 after gimplification.
21092 * asan.c (get_mem_ref_of_assignment): Don't instrument
21093 gimple_clobber_p stmts.
21094 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
21095 gimple_clobber_p stmt if they have MEM_REF lhs and
21096 are dead because of another gimple_clobber_p stmt.
21097 * tree-ssa-live.c (clear_unused_block_pointer): Treat
21098 gimple_clobber_p stmts like debug stmts.
21099 (remove_unused_locals): Remove clobbers with MEM_REF lhs
21100 that refer to unused VAR_DECLs or uninitialized values.
21101 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
21102 gimple_clobber_p stmts if they refer to removed parameters.
21103 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
21104 formatting.
21105
e594716a
UB
211062013-04-02 Uros Bizjak <ubizjak@gmail.com>
21107
21108 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
21109 using SWI48 mode attribute.
21110
7a80735b
WM
211112013-04-02 Wei Mi <wmi@google.com>
21112
21113 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
21114 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
21115 *<rotate_insn><mode>3_mask in i386.md.
21116
f423a9e4
AI
211172013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
21118
21119 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
21120
90eb75f2
RB
211212013-04-02 Richard Biener <rguenther@suse.de>
21122
21123 PR tree-optimization/56778
21124 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21125 Runtime alias tests are not supported for gather loads.
21126 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
21127 stmts referenced from SSA operands before updating SSA form.
21128
d8c69a92
IC
211292013-04-02 Ian Caulfield <ian.caulfield@arm.com>
21130 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21131
21132 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
21133 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
21134 * config/arm/cortex-a53.md: New file.
21135 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
21136 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
21137 * config/arm/arm.c (arm_issue_rate): Likewise.
21138 * config/arm/arm-tune.md: Regenerate
21139 * config/arm/arm-tables.opt: Regenerate.
21140 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 21141
239eb04c
ZC
211422013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
21143
21144 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
21145 non-static link.
21146
c902d3c8
SN
211472013-04-02 Sofiane Naci <sofiane.naci@arm.com>
21148
d8c69a92
IC
21149 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
21150 scalar load/store operations using B/H registers.
c902d3c8
SN
21151 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
21152
051d0e2f
SN
211532013-04-02 Sofiane Naci <sofiane.naci@arm.com>
21154
21155 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
21156 scalar move.
21157 * config/aarch64/aarch64.c
21158 (aarch64_simd_scalar_immediate_valid_for_move): New.
21159 * config/aarch64/aarch64-protos.h
21160 (aarch64_simd_scalar_immediate_valid_for_move): New.
21161 * config/aarch64/constraints.md (Dh, Dq): New.
21162 * config/aarch64/iterators.md (hq): New.
21163
0ee1e3d9
EB
211642013-04-02 Eric Botcazou <ebotcazou@adacore.com>
21165
21166 * reorg.c (get_branch_condition): Deal with conditional returns.
21167 (fill_simple_delay_slots): Remove dead code dealing with jumps.
21168
136fb3f7
WM
211692013-04-01 Wei Mi <wmi@google.com>
21170
21171 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
21172 Truncate operand 2 using %b asm operand modifier.
21173 (*<shift_insn><mode>3_mask): Ditto.
21174 (*<rotate_insn><mode>3_mask): Ditto.
21175
6388c738
SB
211762013-04-01 Steven Bosscher <steven@gcc.gnu.org>
21177
21178 PR middle-end/56798
21179 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
21180
f7a4d826
KK
211812013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
21182
21183 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
21184 of next_real_insn.
21185 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
21186
4b943a49
LC
211872013-03-30 Lawrence Crowl <crowl@google.com>
21188
21189 * dse.c (clear_alias_sets): Remove never set.
21190 (disqualified_clear_alias_sets): Remove never set.
21191 (clear_alias_mode_pool): Remove never set.
21192 (dse_step0): Remove condition that is never true.
21193 (canon_address): Remove condition that is never true.
21194 (dse_step7): Remove condition that is never true.
21195 (rest_of_handle_dse): Remove condition that is never true.
21196 (rest_of_handle_dse::did_global): Remove never read from above.
21197 (dse_step2_spill): Remove never called from above.
21198 (dse_step5_spill): Remove never called from above.
21199
39718607
SB
212002013-03-30 Steven Bosscher <steven@gcc.gnu.org>
21201
da5c6bde
SB
21202 * doc/md.texi (Standard Names) <casesi>: Update documentation for
21203 JUMP_TABLE_DATA changes.
21204 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
21205 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
21206 (Insns) <jump_table_data>: New entry.
21207 * doc/tm.texi: Regenerate.
21208
39718607
SB
21209 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
21210
21211 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
21212 for table jump at the end of a basic block using tablejump_p.
21213 * targhooks.c (default_invalid_within_doloop): Likewise.
21214 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
21215 target hook implementation that is identical to the default hook.
21216 (rs6000_invalid_within_doloop): Remove.
21217
21218 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
21219 unused variable from tablejump_p call.
21220
21221 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
21222 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
21223 (INSN_DELETED_P): Likewise.
21224 (emit_jump_table_data): New prototype.
21225 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
21226 after 4th as unused.
21227 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
21228 * sched-vis.c (print_insn): Likewise.
21229 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
21230 insn for compatibility with back ends that use next_active_insn to
21231 identify jump table data.
21232 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
21233 (remove_insn): Likewise.
21234 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
21235 to be emitted.
21236 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
21237 (emit_jump_table_data): New function.
21238
21239 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
21240 basic block, a JUMP_TABLE_DATA never is.
21241 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
21242 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
21243 off from code handling real insns.
21244 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
21245 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
21246 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
21247 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
21248 is not a NONDEBUG_INSN_P.
21249 * ira-costs.c (scan_one_insn): Likewise.
21250 * jump.c (mark_all_labels): Likewise.
21251 (mark_jump_label_1): Likewise.
21252 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21253 * lra.c (get_insn_freq): Expect all insns reaching here to be in
21254 a basic block.
21255 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
21256 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
21257 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
21258 JUMP_TABLE_DATA_P insns.
21259 (calculate_elim_costs_all_insns): Likewise.
21260 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
21261 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
21262 (delete_output_reload): Code style fixups.
21263 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
21264 insn flags on this non-insn.
21265 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
21266 as scheduling barriers, for pre-change compatibility.
21267 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
21268 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
21269
21270 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
21271 redundant JUMP_TABLE_DATA_P test.
21272 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
21273 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
21274 (frv_for_each_packet): Likewise.
21275 * config/i386/i386.c (min_insn_size): Likewise.
21276 (ix86_avoid_jump_mispredicts): Likewise.
21277 * config/m32r/m32r.c (m32r_is_insn): Likewise.
21278 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
21279 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
21280 (mips16_insn_length): Robustify.
21281 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
21282 (mips16_split_long_branches): Likewise.
21283 * config/pa/pa.c (pa_combine_instructions): Likewise.
21284 * config/rs6000/rs6000.c (get_next_active_insn): Treat
21285 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
21286 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
21287 as contributing to pool range lengths.
21288 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
21289 Remove redundant JUMP_TABLE_DATA_P test.
21290 (sh_loop_align): Likewise.
21291 (split_branches): Likewise.
21292 (sh_insn_length_adjustment): Likewise.
21293 * config/spu/spu.c (get_branch_target): Likewise.
21294
0208f7da
JH
212952013-03-29 Jan Hubicka <jh@suse.cz>
21296
21297 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
21298 gcov streaming; stream hot bb threshold to ltrans.
21299 * predict.c (get_hot_bb_threshold): Break out from ....
21300 (maybe_hot_count_p): ... here.
21301 (set_hot_bb_threshold): New function.
21302 * lto-section-in.c (lto_section_name): Add profile.
21303 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
21304 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
21305 and data-streamer.h
21306 (histogram_entry): New structure.
21307 (histogram, histogram_pool): New global vars.
21308 (histogram_hash): New structure.
21309 (histogram_hash::hash): New method.
21310 (histogram_hash::equal): Likewise.
21311 (account_time_size): New function.
21312 (cmp_counts): New function.
21313 (dump_histogram): New function.
21314 (ipa_profile_generate_summary): New function.
21315 (ipa_profile_write_summary): New function.
21316 (ipa_profile_read_summary): New function.
21317 (ipa_profile): Decide on threshold.
e594716a
UB
21318 (pass_ipa_profile): Add ipa_profile_write_summary and
21319 ipa_profile_read_summary.
0208f7da
JH
21320 * Makefile.in (ipa.o): Update dependencies.
21321 * lto-streamer.h (LTO_section_ipa_profile): New section.
21322
5a6ccc94
GDR
213232013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
21324
21325 * tree.h (VAR_P): New.
21326
39385fa6
PC
213272013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
21328
21329 PR lto/56777
21330 * doc/invoke.texi ([-fwhole-program]): Fix typo.
21331
34f0d87a
SB
213322013-03-29 Steven Bosscher <steven@gcc.gnu.org>
21333
21334 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
21335 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
21336 (control_flow_insn_p): Likewise.
21337 * cfgrtl.c (duplicate_insn_chain): Likewise.
21338 * final.c (get_attr_length_1): Likewise.
21339 (shorten_branches): Likewise.
21340 (final_scan_insn): Likewise.
21341 * function.c (instantiate_virtual_regs): Likewise.
21342 * gcse.c (insert_insn_end_basic_block): Likewise.
21343 * ira-costs.c (scan_one_insn): Likewise.
21344 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21345 * lra.c (check_rtl): Likewise.
21346 * reload1.c (elimination_costs_in_insn): Likewise.
21347 * reorg.c (follow_jumps): Likewise.
21348
21349 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
21350 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
21351 (thumb_far_jump_used_p): Likewise.
21352 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
21353 (workaround_speculation): Likewise.
21354 (add_sched_insns_for_speculation): Likewise.
21355 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
21356 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
21357 (frv_for_each_packet): Likewise.
21358 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
21359 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
21360 (final_emit_insn_group_barriers): Likewise.
21361 * config/m32r/m32r.c (m32r_is_insn): Likewise.
21362 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
21363 (mips16_insn_length): Likewise.
21364 * config/pa/pa.c (pa_reorg): Likewise.
21365 (pa_combine_instructions): Likewise.
21366 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
21367 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
21368 (sh_reorg): Likewise.
21369 (split_branches): Likewise.
21370 * config/spu/spu.c (get_branch_target): Likewise.
21371
21372 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
21373 JUMP_TABLE_DATA_P.
21374
4ac761b0
KY
213752013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
21376
39385fa6 21377 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
21378 Fix declaration name.
21379
58a49189
LC
213802013-03-28 Lawrence Crowl <crowl@google.com>
21381
21382 * graphds.h (struct graph.indicies): Remove unused.
21383 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
21384 (SCOP_ORIGINAL_PDDRS): Remove unused.
21385 * sese.h (extern insert_loop_close_phis): Removed unused.
21386 (extern insert_guard_phis): Removed unused.
21387 (extern ivtype_map_elt_info): Removed unused.
21388 (new_ivtype_map_elt): Removed unused.
21389 * sese.c (ivtype_map_elt_info): Removed unused.
21390
7b3b6ae4
LC
213912013-03-28 Lawrence Crowl <crowl@google.com>
21392
21393 * Makefile.in: Add several missing include dependences.
21394 (DUMPFILE_H): New.
21395 (test-dump.o): New. This object is not added to any executable,
21396 but is present for ad-hoc testing.
21397 * bitmap.c
21398 (debug (const bitmap_head_def &)): New.
21399 (debug (const bitmap_head_def *)): New.
21400 * bitmap.h
21401 (extern debug (const bitmap_head_def &)): New.
21402 (extern debug (const bitmap_head_def *)): New.
21403 * cfg.c
21404 (debug (edge_def &)): New.
21405 (debug (edge_def *)): New.
21406 * cfghooks.c
21407 (debug (basic_block_def &)): New.
21408 (debug (basic_block_def *)): New.
21409 * dumpfile.h
21410 (dump_node (const_tree, int, FILE *)): Correct source file.
21411 * dwarf2out.c
21412 (debug (die_struct &)): New.
21413 (debug (die_struct *)): New.
21414 * dwarf2out.h
21415 (extern debug (die_struct &)): New.
21416 (extern debug (die_struct *)): New.
21417 * gimple-pretty-print.c
21418 (debug (gimple_statement_d &)): New.
21419 (debug (gimple_statement_d *)): New.
21420 * gimple-pretty-print.h
21421 (extern debug (gimple_statement_d &)): New.
21422 (extern debug (gimple_statement_d *)): New.
21423 * ira-build.c
21424 (debug (ira_allocno_copy &)): New.
21425 (debug (ira_allocno_copy *)): New.
21426 (debug (ira_allocno &)): New.
21427 (debug (ira_allocno *)): New.
21428 * ira-int.h
21429 (extern debug (ira_allocno_copy &)): New.
21430 (extern debug (ira_allocno_copy *)): New.
21431 (extern debug (ira_allocno &)): New.
21432 (extern debug (ira_allocno *)): New.
21433 * ira-lives.c
21434 (debug (live_range &)): New.
21435 (debug (live_range *)): New.
21436 * lra-int.h
21437 (debug (lra_live_range &)): New.
21438 (debug (lra_live_range *)): New.
21439 * lra-lives.c
21440 (debug (lra_live_range &)): New.
21441 (debug (lra_live_range *)): New.
21442 * omega.c
21443 (debug (omega_pb_d &)): New.
21444 (debug (omega_pb_d *)): New.
21445 * omega.h
21446 (extern debug (omega_pb_d &)): New.
21447 (extern debug (omega_pb_d *)): New.
21448 * print-rtl.c
21449 (debug (const rtx_def &)): New.
21450 (debug (const rtx_def *)): New.
21451 * print-tree.c
21452 (debug_tree (tree): Move within file.
21453 (debug_raw (const tree_node &)): New.
21454 (debug_raw (const tree_node *)): New.
21455 (dump_tree_via_hooks (const tree_node *, int)): New.
21456 (debug (const tree_node &)): New.
21457 (debug (const tree_node *)): New.
21458 (debug_verbose (const tree_node &)): New.
21459 (debug_verbose (const tree_node *)): New.
21460 (debug_head (const tree_node &)): New.
21461 (debug_head (const tree_node *)): New.
21462 (debug_body (const tree_node &)): New.
21463 (debug_body (const tree_node *)): New.
21464 (debug_vec_tree (tree): Move and reimplement in terms of dump.
21465 (debug (vec<tree, va_gc> &)): New.
21466 (debug (vec<tree, va_gc> *)): New.
21467 * rtl.h
21468 (extern debug (const rtx_def &)): New.
21469 (extern debug (const rtx_def *)): New.
21470 * sbitmap.c
21471 (debug_raw (simple_bitmap_def &)): New.
21472 (debug_raw (simple_bitmap_def *)): New.
21473 (debug (simple_bitmap_def &)): New.
21474 (debug (simple_bitmap_def *)): New.
21475 * sbitmap.h
21476 (extern debug (simple_bitmap_def &)): New.
21477 (extern debug (simple_bitmap_def *)): New.
21478 (extern debug_raw (simple_bitmap_def &)): New.
21479 (extern debug_raw (simple_bitmap_def *)): New.
21480 * sel-sched-dump.c
21481 (debug (vinsn_def &)): New.
21482 (debug (vinsn_def *)): New.
21483 (debug_verbose (vinsn_def &)): New.
21484 (debug_verbose (vinsn_def *)): New.
21485 (debug (expr_def &)): New.
21486 (debug (expr_def *)): New.
21487 (debug_verbose (expr_def &)): New.
21488 (debug_verbose (expr_def *)): New.
21489 (debug (vec<rtx> &)): New.
21490 (debug (vec<rtx> *)): New.
21491 * sel-sched-dump.h
21492 (extern debug (vinsn_def &)): New.
21493 (extern debug (vinsn_def *)): New.
21494 (extern debug_verbose (vinsn_def &)): New.
21495 (extern debug_verbose (vinsn_def *)): New.
21496 (extern debug (expr_def &)): New.
21497 (extern debug (expr_def *)): New.
21498 (extern debug_verbose (expr_def &)): New.
21499 (extern debug_verbose (expr_def *)): New.
21500 (extern debug (vec<rtx> &)): New.
21501 (extern debug (vec<rtx> *)): New.
21502 * sel-sched-ir.h
21503 (_list_iter_cond_expr): Make inline instead of static.
21504 * sreal.c
21505 (debug (sreal &)): New.
21506 (debug (sreal *)): New.
21507 * sreal.h
21508 (extern debug (sreal &)): New.
21509 (extern debug (sreal *)): New.
21510 * tree.h
21511 (extern debug_raw (const tree_node &)): New.
21512 (extern debug_raw (const tree_node *)): New.
21513 (extern debug (const tree_node &)): New.
21514 (extern debug (const tree_node *)): New.
21515 (extern debug_verbose (const tree_node &)): New.
21516 (extern debug_verbose (const tree_node *)): New.
21517 (extern debug_head (const tree_node &)): New.
21518 (extern debug_head (const tree_node *)): New.
21519 (extern debug_body (const tree_node &)): New.
21520 (extern debug_body (const tree_node *)): New.
21521 (extern debug (vec<tree, va_gc> &)): New.
21522 (extern debug (vec<tree, va_gc> *)): New.
21523 * tree-cfg.c
21524 (debug (struct loop &)): New.
21525 (debug (struct loop *)): New.
21526 (debug_verbose (struct loop &)): New.
21527 (debug_verbose (struct loop *)): New.
21528 * tree-dump.c: Add header dependence.
21529 * tree-flow.h
21530 (extern debug (struct loop &)): New.
21531 (extern debug (struct loop *)): New.
21532 (extern debug_verbose (struct loop &)): New.
21533 (extern debug_verbose (struct loop *)): New.
21534 * tree-data-ref.c
21535 (debug (data_reference &)): New.
21536 (debug (data_reference *)): New.
21537 (debug (vec<data_reference_p> &)): New.
21538 (debug (vec<data_reference_p> *)): New.
21539 (debug (vec<ddr_p> &)): New.
21540 (debug (vec<ddr_p> *)): New.
21541 * tree-data-ref.h
21542 (extern debug (data_reference &)): New.
21543 (extern debug (data_reference *)): New.
21544 (extern debug (vec<data_reference_p> &)): New.
21545 (extern debug (vec<data_reference_p> *)): New.
21546 (extern debug (vec<ddr_p> &)): New.
21547 (extern debug (vec<ddr_p> *)): New.
21548 * tree-ssa-alias.c
21549 (debug (pt_solution &)): New.
21550 (debug (pt_solution *)): New.
21551 * tree-ssa-alias.h
21552 (extern debug (pt_solution &)): New.
21553 (extern debug (pt_solution *)): New.
21554 * tree-ssa-alias.c
21555 (debug (_var_map &)): New.
21556 (debug (_var_map *)): New.
21557 (debug (tree_live_info_d &)): New.
21558 (debug (tree_live_info_d *)): New.
21559 * tree-ssa-alias.h
21560 (extern debug (_var_map &)): New.
21561 (extern debug (_var_map *)): New.
21562 (extern debug (tree_live_info_d &)): New.
21563 (extern debug (tree_live_info_d *)): New.
21564
be77e1e5
JH
215652013-03-28 Jan Hubicka <jh@suse.cz>
21566
21567 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
21568
777e6976
IB
215692013-03-28 Ian Bolton <ian.bolton@arm.com>
21570
21571 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
21572 record only when desired or required.
21573
9cd347ae
UB
215742013-03-28 Uros Bizjak <ubizjak@gmail.com>
21575
21576 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
21577 *vec_extractv2di_1_rex64. Use x64 isa attribute.
21578
33159866 215792013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
21580
21581 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
21582 (*andsi3_compare0_uxtw): New pattern.
21583 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
21584 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
21585
89ab31c1
JH
215862013-03-28 Jan Hubicka <jh@suse.cz>
21587
21588 * data-streamer-in.c (streamer_read_gcov_count): New function.
21589 * gimple-streamer-out.c: Include value-prof.h.
21590 (output_gimple_stmt): Output histogram.
21591 (output_bb): Use streamer_write_gcov_count.
21592 * value-prof.c: Include data-streamer.h
21593 (dump_histogram_value): Add HIST_TYPE_MAX.
21594 (stream_out_histogram_value): New function.
21595 (stream_in_histogram_value): New function.
21596 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
21597 (stream_out_histogram_value, stream_in_histogram_value): Declare.
21598 * data-streamer-out.c (streamer_write_gcov_count): New function.
21599 (streamer_write_gcov_count_stream): New function.
21600 * lto-cgraph.c (lto_output_edge): Update counter streaming.
21601 (lto_output_node): Likewise.
21602 (input_node, input_edge): Likewise.
21603 * lto-streamer-out.c (output_cfg): Update streaming.
21604 * lto-streamer-in.c (input_cfg): Likewise.
21605 * data-streamer.h (streamer_write_gcov_count,
21606 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
21607 * gimple-streamer-in.c: Include value-prof.h
21608 (input_gimple_stmt): Input histograms.
21609 (input_bb): Update profile streaming.
21610
e594716a 216112013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 21612
33159866 21613 * genmodes.c (emit_max_int): New function.
8697be17 21614 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
21615 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
21616 Added doc.
8697be17 21617 * machmode.def: Fixed comment.
89ab31c1 21618
e594716a 216192013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
21620
21621 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
21622 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
21623
74946978
MP
216242013-03-28 Marek Polacek <polacek@redhat.com>
21625 Richard Biener <rguenther@suse.de>
21626
21627 PR tree-optimization/56695
21628 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
21629 build signed result of a vector comparison.
21630 * tree-cfg.c (verify_gimple_comparison): Check that a result
21631 of a vector comparison has signed type.
21632
a64b9c26
RB
216332013-03-28 Richard Biener <rguenther@suse.de>
21634
21635 PR tree-optimization/37021
21636 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
21637 do not restrict gaps between groups.
21638 * tree-vect-stmts.c (vectorizable_load): Properly account for
21639 a gap between groups.
21640
a9dc2a2f
EB
216412013-03-28 Eric Botcazou <ebotcazou@adacore.com>
21642
21643 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
21644 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
21645 is not enabled.
21646
53cb97f9
GP
216472013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
21648
21649 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
21650 * doc/extend.texi (Named Address Spaces): Ditto.
21651 (Variable Attributes): Ditto.
21652
b802ae5c
KT
216532013-03-27 Kai Tietz <ktietz@redhat.com>
21654
eddae10a
KT
21655 * config.build: Add support for cygwin x64 target.
21656 * config.gcc: Likewise.
21657 * config.host: Likewise.
21658 * configure.ac: Likewise
21659 * configure: Regenerated.
b802ae5c 21660
371e77e3 216612013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
21662
21663 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
21664 * config/i386/t-cygwin-w64: New file.
21665 * config/i386/cygwin-w64.h: New file.
21666 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
21667 and add support for x64-cygwin target.
21668 (CPP_SPEC): Likewise.
21669 (CXX_WRAP_SPEC_LIST): Undefine before define.
21670 (LIBGCJ_SONAME): Use 15 as version.
21671
f49b33cb
RB
216722013-03-27 Richard Biener <rguenther@suse.de>
21673
21674 PR tree-optimization/56716
21675 * tree-ssa-structalias.c (perform_var_substitution): Adjust
21676 dumping for ref nodes.
21677
b37a6ce5
MJ
216782013-03-27 Martin Jambor <mjambor@suse.cz>
21679
21680 PR tree-optimization/55334
21681 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
21682 restricted pointers to arrays.
21683
9469b9b2
GDR
216842013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
21685
21686 * Makefile.in (.SUFFIXES): Add .cc.
21687 (.c.o): Apply same recipe for implicit rule .cc.o.
21688
7d24f650
RB
216892013-03-27 Richard Biener <rguenther@suse.de>
21690
21691 PR tree-optimization/37021
21692 * tree-vect-data-refs.c (vect_check_strided_load): Allow
21693 REALPART/IMAGPART_EXPRs around the supported refs.
21694 * tree-ssa-structalias.c (find_func_aliases): Assume that
21695 floating-point values are not used to transfer pointers.
21696
2f251a05
AI
216972013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
21698
f43245d1
UB
21699 * target.def (TARGET_HAS_IFUNC_P): New target hook.
21700 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
21701 * doc/tm.texi: Regenerate.
21702 * targhooks.h (default_has_ifunc_p): New.
21703 * targhooks.c (default_has_ifunc_p): Ditto.
21704 * config/linux-protos.h: New file.
21705 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
21706 hook for linux which disables support of indirect functions in android.
21707 * config/linux-android.c: New file.
21708 * config/t-linux-android.c: Ditto.
21709 * config.gcc: Added new object file linux-android.o.
21710 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 21711 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 21712 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
21713 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
21714 doesn't support indirect functions.
21715 * configure: Regenerate.
21716
78b4e425
BC
217172013-03-27 Bin Cheng <bin.cheng@arm.com>
21718
21719 PR target/56102
21720 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
21721 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
21722 mult-word mode.
21723
a5ba7b92
AK
217242013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21725
21726 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
21727
be624986
TG
217282013-03-27 Terry Guo <terry.guo@arm.com>
21729
21730 * config/arm/arm-cores.def: Added core cortex-r7.
21731 * config/arm/arm-tune.md: Regenerated.
21732 * config/arm/arm-tables.opt: Regenerated.
21733 * doc/invoke.texi: Added entry for core cortex-r7.
21734
0a514f47
WL
217352013-03-27 Walter Lee <walt@tilera.com>
21736
21737 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
21738 double-decrement of next_scratch_regno.
21739
9332b0d2
WL
217402013-03-27 Walter Lee <walt@tilera.com>
21741
801d9b2a 21742 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
21743 input operands.
21744 (insn_v1mulus): Ditto.
21745 (insn_v2muls): Ditto.
21746
f54ea5dd
WL
217472013-03-27 Walter Lee <walt@tilera.com>
21748
e594716a 21749 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
21750 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
21751
bf60f4ca
WL
217522013-03-27 Walter Lee <walt@tilera.com>
21753
e594716a 21754 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
21755 (*sibcall_value): Ditto.
21756
e3b51eeb
WL
217572013-03-27 Walter Lee <walt@tilera.com>
21758
21759 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
21760 (insn_mnz_v8qi): ... this ...
21761 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
21762 vector equivalent.
21763 (insn_v<n>mnz): Replaced by ...
21764 (insn_v1mnz): ... this ...
21765 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
21766 equivalent.
21767 (insn_mz_<mode>): Replaced by ...
21768 (insn_mz_v8qi): ... this ...
21769 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
21770 vector equivalent.
21771 (insn_v<n>mz): Replaced by ...
21772 (insn_v1mz): ... this ...
21773 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
21774 equivalent.
21775
4fc7b145
EB
217762013-03-26 Eric Botcazou <ebotcazou@adacore.com>
21777
21778 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
21779
6f33817e
RM
217802013-03-26 Roland McGrath <mcgrathr@google.com>
21781
21782 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
21783 than fprintf with a non-constant, non-format string.
21784
93a4145b
UB
217852013-03-26 Uros Bizjak <ubizjak@gmail.com>
21786
21787 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
21788 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
21789 operand 0 predicate.
21790 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
21791 attribute. Use general_x64nomem_operand as operand 1 predicate.
21792 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
21793 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
21794 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
21795 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
21796 (mov<mode>_insv_1): Remove expander. Merge insn with
21797 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
21798 Use general_x64nomem_operand as operand 1 predicate.
21799 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
21800 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
21801 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
21802 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
21803 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
21804 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
21805 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
21806 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
21807 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
21808 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
21809 (general_x64nomem_operand): Ditto.
21810
c6a9ed5a 218112013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
21812
21813 * config/rtems.opt: Add -pthread option.
21814
31b0a960
RB
218152013-03-26 Richard Biener <rguenther@suse.de>
21816
93a4145b
UB
21817 * alias.c (find_base_term): Avoid redundant and not used recursion.
21818 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
21819 (true_dependence_1): Compute and pass base terms to base_alias_check.
21820 (write_dependence_p): Likewise.
21821 (may_alias_p): Likewise.
21822
79517551
SN
218232013-03-26 Sofiane Naci <sofiane.naci@arm.com>
21824
21825 * config/aarch64/aarch64.c (aarch64_classify_address): Support
21826 PC-relative load in SI modes and above only.
21827
a76213b9
XQ
218282013-03-26 Xinyu Qi <xyqi@marvell.com>
21829
21830 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
21831 * config/arm/iwmmxt.md (WCGR0): Update.
21832 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 21833
37ff9355
UB
218342013-03-26 Uros Bizjak <ubizjak@gmail.com>
21835
21836 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
21837 Use x64 and nox64 isa attributes.
21838
30b0317c
RB
218392013-03-26 Richard Biener <rguenther@suse.de>
21840
21841 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
21842 alignment computations and rely on get_object_alignment_1
21843 for the !TYPE_P case.
21844 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
21845
cbcdb140
WL
218462013-03-26 Walter Lee <walt@tilera.com>
21847
21848 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
21849 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
21850
dd884525 218512013-03-25 Jeff Law <law@redhat.com>
be672e08 21852
33159866
UB
21853 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
21854 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
21855 wrong version of prior patch.
21856
0051d3ec
WL
218572013-03-25 Walter Lee <walt@tilera.com>
21858
21859 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
21860 TILEGX_INSN_SHUFFLEBYTES1.
21861 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
21862 shufflebytes1.
21863 (tilegx_builtins): Ditto.
21864 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
21865
065a3605
WL
218662013-03-25 Walter Lee <walt@tilera.com>
21867
21868 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
21869 (floatunssisf2): New pattern.
21870 (floatsidf2): New pattern.
21871 (floatunssidf2): New pattern.
065a3605 21872
5b2a3c82
WL
218732013-03-25 Walter Lee <walt@tilera.com>
21874
21875 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
21876 tests for constraint J, K, N, P.
21877
192ea533
WL
218782013-03-25 Walter Lee <walt@tilera.com>
21879
21880 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
21881 Use indirect/pcrel encoding.
21882 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
21883 Ditto.
21884
855e0d0b
SE
218852013-03-25 Steve Ellcey <sellcey@mips.com>
21886
21887 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
21888 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
21889 * config/mips/mips.c (mips_option_override): Set IMADD default.
21890 * config/mips/mips.h (PTF_AVOID_IMADD): New.
21891 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
21892 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
21893 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
21894 * doc/invoke.texi (-mimadd/-mno-imadd): New.
21895
39e45653
JL
218962013-03-25 Jeff Law <law@redhat.com>
21897
21898 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
21899 slightly to avoid creating and folding useless trees. Simplify
21900 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
21901
7482c470
UB
219022013-03-25 Uros Bizjak <ubizjak@gmail.com>
21903
21904 * config/i386/i386.md (*zero_extendsidi2): Merge with
21905 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
21906 * config/i386/predicates.md (x86_64_zext_operand): Rename from
21907 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
21908 targets. Clarify comment.
21909
4a53743e
MJ
219102013-03-25 Martin Jambor <mjambor@suse.cz>
21911
21912 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
21913 pass-through jump functions differently.
21914 (ipa_read_jump_function): Likewise. Also use setter functions to set
21915 up jump functions.
21916
162712de
MJ
219172013-03-25 Martin Jambor <mjambor@suse.cz>
21918
21919 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
21920 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
21921 process it.
21922 (ipa_get_indirect_edge_target): New function.
21923 (devirtualization_time_bonus): New parameter known_aggs, pass it to
21924 ipa_get_indirect_edge_target. Update all callers.
21925 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
21926 ipa_get_indirect_edge_target_1 instead of calling
21927 ipa_get_indirect_edge_target.
21928 (create_specialized_node): Pass aggvlas to
21929 ipcp_discover_new_direct_edges.
21930
a5a4c20a
KT
219312013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21932
21933 * config/arm/arm.md (f_sels, f_seld): New types.
21934 (*cmov<mode>): New pattern.
21935 * config/arm/predicates.md (arm_vsel_comparison_operator): New
21936 predicate.
21937
f992b9fc
KT
219382013-03-25 Kai Tietz <ktietz@redhat.com>
21939
21940 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
21941 POSIX-printf for mingw-hosted builds.
21942
c16fd676
RB
219432013-03-25 Richard Biener <rguenther@suse.de>
21944
21945 PR middle-end/56694
21946 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
21947 must-not-throw stmt location.
21948
5ad29f12
KT
219492013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21950
21951 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
21952 Emit load-acquire versions when acq is true.
21953 (arm_emit_store_exclusive): Add rel parameter.
21954 Emit store-release versions when rel is true.
21955 (arm_split_compare_and_swap): Use acquire-release instructions
21956 instead.
21957 of barriers when appropriate.
21958 (arm_split_atomic_op): Likewise.
21959 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
21960 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
21961 (VUNSPEC_SLX): Likewise.
21962 (VUNSPEC_LDA): Likewise.
21963 (VUNSPEC_STL): Likewise.
21964 * config/arm/sync.md (atomic_load<mode>): New pattern.
21965 (atomic_store<mode>): Likewise.
21966 (arm_load_acquire_exclusive<mode>): Likewise.
21967 (arm_load_acquire_exclusivesi): Likewise.
21968 (arm_load_acquire_exclusivedi): Likewise.
21969 (arm_store_release_exclusive<mode>): Likewise.
21970
03a7dddb
CM
219712013-03-25 Catherine Moore <clm@codesourcery.com>
21972
21973 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
21974 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
21975 * config/mip/predicates.md (lwsp_swsp_operand,
21976 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
21977 sb16_operand, db4_operand, db7_operand, ib3_operand,
21978 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
21979 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
21980 andi16_operand): New predicates.
21981 * config/mips/mips.md (compression): New attribute.
21982 (enabled): New attribute.
21983 (length): Consider compression in computing length.
21984 (shift_compression): New code attribute.
21985 (*add<mode>3): New operands. Record compression.
21986 (sub<mode>3): Likewise.
21987 (one_cmpl<mode>2): Likewise.
21988 (*and<mode>3): Likewise.
21989 (*ior<mode>3): Likewise.
21990 (unnamed pattern for xor): Likewise.
21991 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
21992 (*<optab><mode>3): Likewise.
21993 (*mov<mode>_internal: Likewise.
21994 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
21995 (mips_unsigned_immediate_p): New.
21996 (umips_lwsp_swsp_address_p): New.
21997 (m16_based_address_p): New.
21998 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
21999 (mips_unsigned_immediate_p): New prototype.
22000 (lwsp_swsp_address_p): New prototype.
22001 (m16_based_address_p): New prototype.
22002 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
22003 (mips_signed_immediate_p): New function.
22004 (m16_based_address_p): New function.
22005 (lwsp_swsp_address_p): New function.
22006 (mips_print_operand_punctuation): Recognize short delay slot insns
22007 for microMIPS.add<mode>3"
22008
f35c297f 220092013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 22010
f35c297f
KT
22011 PR target/56720
22012 * config/arm/iterators.md (v_cmp_result): New mode attribute.
22013 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
22014
051b9446
RB
220152013-03-25 Richard Biener <rguenther@suse.de>
22016
22017 PR tree-optimization/56689
22018 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
22019 any edge.
22020
374001cb
RB
220212013-03-25 Richard Biener <rguenther@suse.de>
22022
22023 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
22024 of bitmap.
22025 (memory_references): Likewise.
22026 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
22027 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
22028 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
22029 (gather_mem_refs_in_loops): Fold into ...
22030 (analyze_memory_references): ... this. Move initialization
22031 to tree_ssa_lim_initialize.
22032 (fill_always_executed_in): Rename to ...
22033 (fill_always_executed_in_1): ... this.
22034 (fill_always_executed_in): Move contains_call computation to
22035 this new function from ...
22036 (tree_ssa_lim_initialize): ... here.
22037 (tree_ssa_lim): Call fill_always_executed_in.
22038
57895947
EB
220392013-03-25 Eric Botcazou <ebotcazou@adacore.com>
22040
22041 * postreload.c (reload_combine): Fix code detecting returns.
22042
1e1b18c1
EB
220432013-03-25 Eric Botcazou <ebotcazou@adacore.com>
22044
22045 * function.c (emit_use_return_register_into_block): On cc0 targets,
22046 do not emit the sequence between cc0 setter and user.
22047
9216baf1
KT
220482013-03-25 Kai Tietz <ktietz@redhat.com>
22049
1e1b18c1
EB
22050 * config/i386/predicates.md (local_symbolic_operand): Interpret
22051 dll-imported symbols as none-local.
9216baf1 22052
76421b44
RB
220532013-03-25 Richard Biener <rguenther@suse.de>
22054
22055 * tree-ssa-loop-im.c (struct depend): Remove.
22056 (struct lim_aux_data): Make depends a vec of gimples.
22057 (free_lim_aux_data): Adjust.
22058 (add_dependency): Likewise.
22059 (set_level): Likewise.
22060
d154bfa2
RB
220612013-03-25 Richard Biener <rguenther@suse.de>
22062
22063 PR middle-end/56434
22064 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
22065 the pointer returned by calls with ECF_MALLOC set.
22066
2cd9804e
UB
220672013-03-24 Uros Bizjak <ubizjak@gmail.com>
22068
acef5fe0
UB
22069 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
22070
220712013-03-24 Uros Bizjak <ubizjak@gmail.com>
22072
22073 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
22074 using MMXMODE mode iterator.
22075 (*move<mode>_internal): Merge with *movv2sf_internal and
22076 *movv2sf_internal_rex64 using MMXMODE mode iterator.
22077
225ccc68
SB
220782013-03-23 Steven Bosscher <steven@gcc.gnu.org>
22079
85c0f02d
SB
22080 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
22081 (record_last_mem_set_info): Likewise.
22082
225ccc68
SB
22083 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
22084 of XNEWVEC followed by memset.
22085 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
22086
b64925dc
SB
220872013-03-23 Steven Bosscher <steven@gcc.gnu.org>
22088
22089 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
22090 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
22091 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
22092 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
22093 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
22094 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
22095 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
22096 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
22097 BARRIER_P instead of GET_CODE.
22098
b9aaf52e
EB
220992013-03-23 Eric Botcazou <ebotcazou@adacore.com>
22100
22101 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
22102 inaccuracy in the probing code.
22103
22104 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
22105 (ctrapdi4): Likewise.
22106
66de4d7c
EB
221072013-03-23 Eric Botcazou <ebotcazou@adacore.com>
22108
22109 * calls.c (expand_call): Add missing guard to code handling return
22110 of non-BLKmode structures in MSB.
22111 * function.c (expand_function_end): Likewise.
22112
4f25c8fb
EB
221132013-03-23 Eric Botcazou <ebotcazou@adacore.com>
22114
22115 * combine.c (try_combine): Adjust comment. Do not add the set of
22116 insn #0 if the destination indirectly is set or dies in insn #2.
22117 Tidy up code to distribute a new note.
22118
23b7850d
UB
221192013-03-22 Uros Bizjak <ubizjak@gmail.com>
22120
22121 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
22122 also for alternatives 16 and 17.
22123
bed852cf
UB
221242013-03-22 Uros Bizjak <ubizjak@gmail.com>
22125
22126 * config/i386/sse.md (*mov<mode>_internal): Merge with
22127 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
22128 Emit insn template depending on type attribute. Use
22129 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
22130 movd instead of movq mnemonic for interunit moves. Rewrite mode
22131 attribute calculation. Remove unit attribute calculation.
22132 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
22133 Set prefix_data16 attribute for DImode ssemov types.
22134 Use Ym instead of y for SSE-MMX conversion alternatives.
22135 Reorder operand constraints.
22136
1e8a7937
SB
221372013-03-22 Steven Bosscher <steven@gcc.gnu.org>
22138
22139 * df.h (df_insn_delete): Adjust prototype.
22140 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
22141 and let it decide whether mark the basic block dirty.
22142 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
22143 * df-scan.c (df_insn_info_delete): New helper function, split
22144 off from df_insn_delete.
22145 (df_scan_free_bb_info): Use it.
22146 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
22147 Likewise.
22148 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
22149 that the insn is actually an insn and it has a non-NULL basic block.
22150 Do not mark basic block dirty if only deleting a DEBUG_INSN.
22151
e14d094c
RB
221522013-03-22 Richard Biener <rguenther@suse.de>
22153
22154 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
22155 dep_ref members.
22156 (mem_ref_alloc): Do not allocate them.
22157 (refs_independent_p): Do not query or maintain a cache.
22158
e9cf7316
RB
221592013-03-22 Richard Biener <rguenther@suse.de>
22160
22161 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
22162 (gather_mem_refs_in_loops): Do not compute it.
22163 (analyze_memory_references): Do not allocate it.
22164 (tree_ssa_lim_finalize): Do not free it.
22165 (for_all_locs_in_loop): Do not query all_refs_in_loop.
22166
f046e81b
RB
221672013-03-22 Richard Biener <rguenther@suse.de>
22168
22169 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 22170
a05c0ddf
IB
221712013-03-22 Ian Bolton <ian.bolton@arm.com>
22172
22173 * config/aarch64/aarch64.c (aarch64_print_operand): New
22174 format specifier for printing a constant in hex.
22175 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
22176 format specifier for printing second operand.
22177
c00217fc
RB
221782013-03-22 Richard Biener <rguenther@suse.de>
22179
22180 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
22181 bitmaps.
22182 (gather_mem_refs_in_loops): Perform store accumulation here.
22183 (create_vop_ref_mapping_loop): Remove.
22184 (create_vop_ref_mapping): Likewise.
22185 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 22186 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
22187 (record_indep_loop): Remove.
22188 (record_dep_loop): New function.
22189 (ref_indep_loop_p_1): Adjust to only walk over references
22190 in the loop, not its subloops.
22191 (ref_indep_loop_p): Rename to ...
22192 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
22193 maintaining a more fine-grained cache.
22194 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
22195 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
22196
15d19bf8
RB
221972013-03-22 Richard Biener <rguenther@suse.de>
22198
22199 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
22200 (struct mem_ref): Make accesses_in_loop a vec of a vec of
22201 aggregate mem_ref_loc.
22202 (free_mem_ref_locs): Inline into ...
22203 (memref_free): ... this and adjust.
22204 (mem_ref_alloc): Adjust.
22205 (mem_ref_locs_alloc): Remove.
22206 (record_mem_ref_loc): Adjust.
22207 (get_all_locs_in_loop): Rewrite into ...
22208 (for_all_locs_in_loop): ... this iterator.
22209 (rewrite_mem_ref_loc): New functor.
22210 (rewrite_mem_refs): Use for_all_locs_in_loop.
22211 (sm_set_flag_if_changed): New functor.
22212 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
22213 (ref_always_accessed): New functor.
22214 (ref_always_accessed_p): Use for_all_locs_in_loop.
22215
6f37411d
MG
222162013-03-21 Marc Glisse <marc.glisse@inria.fr>
22217
22218 * tree-pass.h (PROP_gimple_lvec): New.
22219 * passes.c (dump_properties): Handle PROP_gimple_lvec.
22220 (init_optimization_passes): Move pass_lower_vector.
22221 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
22222 PROP_gimple_lvec.
22223 (pass_lower_vector): Provide PROP_gimple_lvec.
22224 (pass_lower_vector_ssa): Likewise.
22225 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
22226
511ef689
MW
222272013-03-21 Mark Wielaard <mjw@redhat.com>
22228
22229 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
22230
cc1df30b
UB
222312013-03-21 Uros Bizjak <ubizjak@gmail.com>
22232
22233 * config/i386/i386.md (*movdi_internal): Disparage slightly
22234 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
22235 conversion alternatives.
22236
c845cfe1
JJ
222372013-03-21 Jakub Jelinek <jakub@redhat.com>
22238
37e99116
JJ
22239 PR middle-end/48087
22240 * diagnostic.def (DK_WERROR): New kind.
22241 * diagnostic.h (werrorcount): Define.
22242 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
22243 promoted to DK_ERROR, increment DK_WERROR counter instead of
22244 DK_ERROR counter.
22245 * toplev.c (toplev_main): Call print_ignored_options even if
22246 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
22247 even if just werrorcount is non-zero.
22248
c845cfe1
JJ
22249 PR debug/55608
22250 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
22251 on failure.
22252 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
22253 (string_cst_pool_decl): New function.
22254 (optimize_one_addr_into_implicit_ptr): New function.
22255 (resolve_addr_in_expr): Optimize DWARF location expression
22256 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
22257 which doesn't live in memory, but has DW_AT_location or
22258 DW_AT_const_value, or refers to a string literal, into
22259 DW_OP_GNU_implicit_pointer.
22260 (optimize_location_into_implicit_ptr): New function.
22261 (resolve_addr): If removing DW_AT_location of a variable because
22262 it was DW_OP_addr of address of the variable, but the variable doesn't
22263 live in memory, try to emit const value attribute for the initializer.
22264
08e0cda6
MG
222652013-03-21 Marc Glisse <marc.glisse@inria.fr>
22266
22267 * tree.h (VECTOR_TYPE_P): New macro.
22268 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
22269 TYPE_MODE): Use it.
22270 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
22271 VEC_COND_EXPR cannot be lvalues.
22272 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
22273
d08633b4
MG
222742013-03-21 Marc Glisse <marc.glisse@inria.fr>
22275
22276 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
22277 Restrict the transformation to equal modes.
22278
e6647190
RB
222792013-03-21 Richard Biener <rguenther@suse.de>
22280
22281 PR tree-optimization/39326
22282 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
22283 (MEM_ANALYZABLE): Adjust.
22284 (record_mem_ref_loc): Move bitmap ops ...
22285 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
22286 unanalyzable refs, do not record locations for it.
22287 (analyze_memory_references): Allocate ref zero as shared
22288 unanalyzable ref.
22289 (refs_independent_p): Do not test for unanalyzed mems here.
22290 (ref_indep_loop_p_1): Special-case disambiguation against
22291 the unanalyzed ref.
cc1df30b 22292 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 22293
65074f54
CL
222942013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
22295
22296 * config/arm/arm-protos.h (tune_params): Add
22297 prefer_neon_for_64bits field.
22298 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
22299 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
22300 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
22301 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
22302 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
22303 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
22304 (arm_option_override): Handle -mneon-for-64bits new option.
22305 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
22306 (prefer_neon_for_64bits): Declare new variable.
22307 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 22308 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
22309 (arch_enabled): Handle new arch types. Remove support for onlya8
22310 and nota8.
22311 (one_cmpldi2): Use new arch names.
bc5faa5b 22312 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
22313 * config/arm/arm.opt (mneon-for-64bits): Add option.
22314 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
22315 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
22316 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
22317 of onlya8.
22318 * doc/invoke.texi (-mneon-for-64bits): Document.
22319
5a2d2a79
RB
223202013-03-21 Richard Biener <rguenther@suse.de>
22321
22322 PR tree-optimization/39326
22323 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
22324 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 22325 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 22326
5abe1e05
RB
223272013-03-21 Richard Biener <rguenther@suse.de>
22328
22329 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
22330 (vect_insert_into_interleaving_chain): Likewise.
22331 (vect_drs_dependent_in_basic_block): Inline ...
22332 (vect_slp_analyze_data_ref_dependence): ... here. New function,
22333 split out from ...
22334 (vect_analyze_data_ref_dependence): ... here. Simplify.
22335 (vect_check_interleaving): Simplify.
22336 (vect_analyze_data_ref_dependences): Likewise. Split out ...
22337 (vect_slp_analyze_data_ref_dependences): ... this new function.
22338 (dr_group_sort_cmp): New function.
22339 (vect_analyze_data_ref_accesses): Compute data-reference groups
22340 here instead of in vect_analyze_data_ref_dependence. Use
22341 a more efficient algorithm.
22342 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
22343 vect_slp_analyze_data_ref_dependences. Call
22344 vect_analyze_data_ref_accesses earlier.
22345 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
22346 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
22347 (vect_slp_analyze_data_ref_dependences): New prototype.
22348
cad1735b
RB
223492013-03-21 Richard Biener <rguenther@suse.de>
22350
22351 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
22352 ref is stored in the loop.
22353 (find_refs_for_sm): Walk only over all stores.
22354 (store_motion_loop): Allocate from lim_bitmap_obstack.
22355 (store_motion): Likewise.
22356
141310ef
RB
223572013-03-21 Richard Biener <rguenther@suse.de>
22358
22359 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
22360 Update virtual SSA form.
22361
5022315a
RO
223622013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22363
22364 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
22365 * configure: Regenerate.
22366 * config.in: Regenerate.
22367 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
22368 if !HAVE_LD_EH_FRAME_CIEV3.
22369
50d4421c
RB
223702013-03-21 Richard Biener <rguenther@suse.de>
22371
22372 * tree-cfg.c (verify_expr_no_block): New function.
22373 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
22374 nor DECL_VALUE_EXPR have locations with associated blocks.
22375 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
22376 (clear_unused_block_pointer): Remove code dealing with
22377 blocks in DECL_DEBUG_EXPR locations.
22378
839b422f
RB
223792013-03-21 Richard Biener <rguenther@suse.de>
22380
22381 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
22382 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
22383 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
22384 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
22385 instead of DECL_DEBUG_EXPR_IS_FROM.
22386 * gimplify.c (gimplify_modify_expr): Likewise.
22387 * tree-cfg.c (verify_expr_location_1): Likewise.
22388 * tree-complex.c (create_one_component_var): Likewise.
22389 * tree-sra.c (create_access_replacement): Likewise.
22390 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
22391 (clear_unused_block_pointer): Likewise.
22392 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
22393 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
22394 * var-tracking.c (var_debug_decl): Likewise.
22395 (track_expr_p): Likewise.
22396 * tree-inline.c (add_local_variables): Likewise. Set
22397 DECL_HAS_DEBUG_EXPR_P after copying it.
22398 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
22399 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
22400
fe04878d
UB
224012013-03-21 Uros Bizjak <ubizjak@gmail.com>
22402
22403 PR bootstrap/56656
22404 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
22405 * configure: Regenerate.
22406 * config.in: Regenerate.
22407 * config/i386/i386.md (*movdf_internal): Use
22408 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
22409 movd instead of movq mnemonic for interunit moves.
22410 (*movdi_internal): Ditto.
22411
bd059b26 224122013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
22413
22414 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
22415 (abd<mode>_3): New pattern.
22416 (aba<mode>_3): New pattern.
22417 (fabd<mode>_3): New pattern.
22418
bd059b26 224192013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
22420
22421 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
22422 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
22423 occurrence of REGISTER_PREFIX as its empty string.
22424
4f1f78b9
JL
224252013-03-20 Jeff Law <law@redhat.com>
22426
22427 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
22428 addititional equivalences for equality comparisons between an SSA_NAME
22429 and a constant where the SSA_NAME was set from a widening conversion.
22430
327a1118
WL
224312013-03-20 Walter Lee <walt@tilera.com>
22432
22433 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
22434
813e0036
UB
224352013-03-20 Uros Bizjak <ubizjak@gmail.com>
22436
22437 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
22438 depending on type attribute.
22439 (*movti_internal): Ditto.
22440 (*movtf_internal): Ditto.
22441 (*movxf_internal): Ditto.
22442 (*movdf_internal): Ditto.
22443 (*movsf_internal): Ditto.
22444
7cf34aae
UB
224452013-03-20 Uros Bizjak <ubizjak@gmail.com>
22446
22447 * config/i386/i386.md (*movti_internal): Set prefix attribute to
22448 maybe_vex for sselog1 and ssemov types.
22449 (*movdi_internal): Reorder operand constraints.
22450 (*movsi_internal): Ditto. Set prefix attribute to
22451 maybe_vex for sselog1 and ssemov types.
22452 (*movtf_internal): Set prefix attribute to maybe_vex
22453 for sselog1 and ssemov types.
22454 (*movdf_internal): Ditto. Set prefix_data16 attribute for
22455 DImode ssemov types. Reorder operand constraints.
22456 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
22457 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
22458 attribute for SImode ssemov types. Reorder operand constraints.
22459
19321415
MJ
224602013-03-20 Martin Jambor <mjambor@suse.cz>
22461
22462 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
22463 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
22464
12211b99 224652013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
22466
22467 * config/rs6000/predicates.md (indexed_address, update_address_mem
22468 update_indexed_address_mem): New predicates.
22469 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
22470 attribute for load/store instructions.
22471 * config/rs6000/dfp.md (movsd_store): Likewise.
22472 (movsd_load): Likewise.
22473 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
22474 (unnamed HI->DI extend define_insn): Likewise.
22475 (unnamed SI->DI extend define_insn): Likewise.
22476 (unnamed QI->SI extend define_insn): Likewise.
22477 (unnamed QI->HI extend define_insn): Likewise.
22478 (unnamed HI->SI extend define_insn): Likewise.
22479 (unnamed HI->SI extend define_insn): Likewise.
22480 (extendsfdf2_fpr): Likewise.
22481 (movsi_internal1): Likewise.
22482 (movsi_internal1_single): Likewise.
22483 (movhi_internal): Likewise.
22484 (movqi_internal): Likewise.
22485 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
22486 attribute for load/store instructions.
22487 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
22488 instructions.
22489 (mov<mode>_softfloat): Likewise.
22490 (mov<mode>_hardfloat32): Likewise.
22491 (mov<mode>_hardfloat64): Likewise.
22492 (mov<mode>_softfloat64): Likewise.
22493 (movdi_internal32): Likewise.
22494 (movdi_internal64): Likewise.
22495 (probe_stack_<mode>): Likewise.
22496
224972013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
22498
22499 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
22500 floating point, and decimal floating point to reload iterator.
22501
22502 * config/rs6000/constraints.md (wl constraint): New constraints to
22503 return FLOAT_REGS if certain options are used to reduce the number
22504 of separate patterns that exist in the file.
22505 (wx constraint): Likewise.
22506 (wz constraint): Likewise.
22507
22508 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22509 -mdebug=reg, print wg, wl, wx, and wz constraints.
22510 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
22511 Initialize the reload functions for 64-bit binary/decimal floating
22512 point types.
22513 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
22514 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
22515 create the buffer on the stack to overcome not having a 32-bit
22516 load and store.
22517 (rs6000_emit_move): Likewise.
22518 (rs6000_secondary_memory_needed_rtx): Likewise.
22519 (rs6000_alloc_sdmode_stack_slot): Likewise.
22520 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
22521 via xxlxor, just like DFmode 0.0.
22522
22523 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
22524 define as 1 if we are running on a power7 or newer.
22525 (enum r6000_reg_class_enum): Add new constraints.
22526
22527 * config/rs6000/dfp.md (movsd): Delete, combine with binary
22528 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
22529 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 22530 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
22531 (movsd splitter): Likewise.
22532 (movsd_hardfloat): Likewise.
22533 (movsd_softfloat): Likewise.
22534
22535 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
22536 binary and decimal floating point moves.
22537 (fmove_ok): New attributes to combine binary and decimal floating
22538 point moves, and to combine power6x (mfpgpr) moves along normal
22539 floating moves.
22540 (real_value_to_target): Likewise.
22541 (f32_lr): Likewise.
22542 (f32_lm): Likewise.
22543 (f32_li): Likewise.
22544 (f32_sr): Likewise.
22545 (f32_sm): Likewise.
22546 (f32_si): Likewise.
22547 (movsf): Combine binary and decimal floating point moves. Combine
22548 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 22549 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
22550 (mov<mode> for SFmode/SDmode); Likewise.
22551 (SFmode/SDmode splitters): Likewise.
22552 (movsf_hardfloat): Likewise.
22553 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
22554 (movsf_softfloat): Likewise.
22555 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
22556
22557 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
22558 wx and wz constraints.
22559
22560 * config/rs6000/constraints.md (wg constraint): New constraint to
22561 return FLOAT_REGS if -mmfpgpr (power6x) was used.
22562
22563 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
22564 constraint.
22565
22566 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
22567 -mdebug=reg, print wg, wl, wx, and wz constraints.
22568 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
22569 Initialize the reload functions for 64-bit binary/decimal floating
22570 point types.
22571 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
22572 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
22573 create the buffer on the stack to overcome not having a 32-bit
22574 load and store.
22575 (rs6000_emit_move): Likewise.
22576 (rs6000_secondary_memory_needed_rtx): Likewise.
22577 (rs6000_alloc_sdmode_stack_slot): Likewise.
22578 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
22579 via xxlxor, just like DFmode 0.0.
22580
c6d5ff83
MM
22581 * config/rs6000/dfp.md (movdd): Delete, combine with binary
22582 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
22583 with other moves by using conditional constraits (wg). Use LFIWZX
22584 and STFIWX for loading SDmode on power7.
22585 (movdd splitters): Likewise.
22586 (movdd_hardfloat32): Likewise.
22587 (movdd_softfloat32): Likewise.
22588 (movdd_hardfloat64_mfpgpr): Likewise.
22589 (movdd_hardfloat64): Likewise.
22590 (movdd_softfloat64): Likewise.
22591
22592 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
22593 64-bit binary and decimal floating point moves.
22594 (FMOVE64X): Likewise.
22595 (movdf): Combine 64-bit binary and decimal floating point moves.
22596 Combine power6x (mfpgpr) moves with other moves by using
22597 conditional constraits (wg).
22598 (mov<mode> for DFmode/DDmode): Likewise.
22599 (DFmode/DDmode splitters): Likewise.
22600 (movdf_hardfloat32): Likewise.
22601 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
22602 (movdf_softfloat32): Likewise.
22603 (movdf_hardfloat64_mfpgpr): Likewise.
22604 (movdf_hardfloat64): Likewise.
22605 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
22606 (movdf_softfloat64): Likewise.
22607 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
22608 (reload_<mode>_load): Move to later in the file so they aren't in
22609 the middle of the floating point move insns.
22610 (reload_<mode>_store): Likewise.
22611
22612 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
22613 constraint.
22614
22615 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
22616 constraint if -mdebug=reg.
bd059b26
UB
22617 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
22618 Enable using dd reload support if needed.
c6d5ff83
MM
22619
22620 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
22621 binary and decimal floating point moves in rs6000.md.
22622 (movtd_internal): Likewise.
22623
22624 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
22625 decimal floating point moves.
22626 (movtf): Likewise.
22627 (movtf_internal): Likewise.
22628 (mov<mode>_internal, TDmode/TFmode): Likewise.
22629 (movtf_softfloat): Likewise.
22630 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
22631
22632 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
22633 movdi_internal64, using wg constraint for move direct operations.
22634 (movdi_internal64): Likewise.
22635
22636 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
22637 MODES_TIEABLE_P for selected modes. Print the numerical value of
22638 the various virtual registers. Use GPR/FPR first/last values,
22639 instead of hard coding the register numbers. Print which modes
22640 have reload functions registered.
bd059b26
UB
22641 (rs6000_option_override_internal): If -mdebug=reg, trace the options
22642 settings before/after setting cpu, target and subtarget settings.
22643 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
22644 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
22645 (rs6000_secondary_reload_fail): Likewise.
22646 (rs6000_secondary_reload_inner): Likewise.
22647
22648 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
22649 macros for first/last GPR and FPR registers.
22650 (LAST_GPR_REGNO): Likewise.
22651 (FIRST_FPR_REGNO): Likewise.
22652 (LAST_FPR_REGNO): Likewise.
22653
22654 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
22655 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
22656 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
22657 (vcond<mode><mode>): Likewise.
22658 (vcondu<mode><mode>): Likewise.
22659 (vector_gtu<mode>): Likewise.
22660 (vector_gte<mode>): Likewise.
22661 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 22662 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
22663 (ior<mode>3): Likewise.
22664 (and<mode>3): Likewise.
22665 (one_cmpl<mode>2): Likewise.
22666 (nor<mode>3): Likewise.
22667 (andc<mode>3): Likewise.
22668
22669 * config/rs6000/constraints.md (wt constraint): New constraint
22670 that returns VSX_REGS if TImode is allowed in VSX registers.
22671
22672 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
22673 constant under VSX.
22674
22675 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
22676 similar to TImode, but it is restricted to being in the GPRs.
22677
22678 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
22679 TImode to occupy a single VSX register.
22680
22681 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
22682 -mvsx-timode for power7/power8.
22683 (power7 cpu): Likewise.
22684 (power8 cpu): Likewise.
22685
22686 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
22687 sure that TFmode/TDmode take up two registers if they are ever
22688 allowed in the upper VSX registers.
22689 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
22690 registers.
22691 (rs6000_init_hard_regno_mode_ok): Likewise.
22692 (rs6000_debug_reg_global): Add debugging for PTImode and wt
22693 constraint. Print if LRA is turned on.
22694 (rs6000_option_override_internal): Give an error if -mvsx-timode
22695 and VSX is not enabled.
22696 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
22697 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
22698 to reg+offset addressing. Use PTImode when checking offset
22699 addresses for validity.
22700 (reg_offset_addressing_ok_p): Likewise.
22701 (rs6000_legitimate_offset_address_p): Likewise.
22702 (rs6000_legitimize_address): Likewise.
22703 (rs6000_legitimize_reload_address): Likewise.
22704 (rs6000_legitimate_address_p): Likewise.
22705 (rs6000_eliminate_indexed_memrefs): Likewise.
22706 (rs6000_emit_move): Likewise.
22707 (rs6000_secondary_reload): Likewise.
22708 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
22709 reloads to fpr registers to continue to use reg+offset addressing,
22710 but 64-bit reloads to altivec registers need reg+reg addressing.
22711 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
22712 it. Treat LO_SUM like a PLUS operation.
22713 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 22714 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
22715 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
22716 registers to share a register with a smaller sized type, since VSX
22717 puts scalars in the upper 64-bits.
22718 (print_operand): Add support for PTImode.
22719 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
22720 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
22721 registers, but don't have arithmetic support.
22722 (rs6000_memory_move_cost): Add test for VSX.
22723 (rs6000_opt_masks): Add -mvsx-timode.
22724
22725 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
22726 for TImode.
22727 (VSs): Likewise.
22728 (VSr): Use wt constraint for TImode.
22729 (VSv): Drop TImode support.
22730 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
22731 (vsx_movti_64bit): Likewise.
22732 (vsx_movti_32bit): Likewise.
22733 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
22734 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
22735 one '?' on the appropriate output constraint. Do not allow TImode
22736 logical operations on 32-bit systems.
22737 (vsx_ior<mode>3): Likewise.
22738 (vsx_xor<mode>3): Likewise.
22739 (vsx_one_cmpl<mode>2): Likewise.
22740 (vsx_nor<mode>3): Likewise.
22741 (vsx_andc<mode>3): Likewise.
22742 (vsx_concat_<mode>): Likewise.
22743 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
22744
22745 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
22746 OPTION_MASK_VSX_TIMODE.
22747 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
22748 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
22749
22750 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
22751 (TI2 iterator): New iterator for TImode, PTImode.
22752 (wd mode attribute): Add values for vector types.
bd059b26
UB
22753 (movti_string): Replace TI move operations with operations for TImode
22754 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
22755 (mov<mode>_string, TImode/PTImode): Likewise.
22756 (movti_ppc64): Likewise.
22757 (mov<mode>_ppc64, TImode/PTImode): Likewise.
22758 (TI mode splitters): Likewise.
22759
22760 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
22761 constraint.
22762
1fc5eced
MG
227632013-03-20 Marc Glisse <marc.glisse@inria.fr>
22764
22765 PR tree-optimization/56355
22766 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
22767 Also handle integers with undefined overflow.
22768
22c4c869
CM
227692013-03-20 Catherine Moore <clm@codesourcery.com>
22770 Maciej W. Rozycki <macro@codesourcery.com>
22771 Tom de Vries <tom@codesourcery.com>
12211b99 22772 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
22773 Iain Sandoe <iain@codesourcery.com>
22774 Nathan Froyd <froydnj@codesourcery.com>
12211b99 22775 Chao-ying Fu <fu@mips.com>
22c4c869
CM
22776
22777 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 22778 Document new function attributes.
22c4c869
CM
22779 * doc/invoke.texi (minterlink-compressed, mmicromips,
22780 m14k, m14ke, m14kec): Document new options.
22781 (minterlink-mips16): Update documentation.
22782 * doc/md.texi (ZC, ZD): Document new constraints.
22783 * configure.ac (gcc_cv_as_micromips): Check if linker
22784 supports the .set micromips directive.
22785 * configure: Regenerate.
22786 * config.in: Regenerate.
22787 * config/mips/mips-tables.opt: Regenerate.
22788 * config/mips/micromips.md: New file.
22789 * constraints.md (ZC, ZD): New constraints.
22790 * config/mips/predicates.md (movep_src_register): New predicate.
22791 (movep_src_operand): New predicate.
22792 (non_volatile_mem_operand): New predicate.
22793 * config/mips/mips.md (multimem): New type.
22794 (length): Differentiate between 17-bit and 18-bit branch offsets.
22795 (MOVEP1, MOVEP2): New mode iterator.
33159866 22796 (mov_<load>l): Use ZC constraint.
22c4c869
CM
22797 (mov_<load>r): Likewise.
22798 (mov_<store>l): Likewise.
22799 (mov_<store>r): Likewise.
22800 (*branch_equality<mode>_inverted): Add microMIPS support.
22801 (*branch_equality<mode>): Likewise.
22802 (*jump_absolute): Likewise.
22803 (indirect_jump_<mode>): Likewise.
22804 (tablejump_<mode>): Likewise.
22805 (<optab>_internal): Likewise.
22806 (sibcall_internal): Likewise.
22807 (sibcall_value_internal): Likewise.
22808 (prefetch): Use constraint ZD.
22809 * config/mips/mips.opt (minterlink-compressed): New option.
22810 (minterlink-mips16): Now an alias for minterlink-compressed.
22811 (mmicromips): New option.
22812 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
22813 (compare_and_swap_12): Likewise.
22814 (sync_add<mode>): Likewise.
22815 (sync_<optab>_12): Likewise.
22816 (sync_old_<optab>_12): Likewise.
22817 (sync_new_<optab>_12): Likewise.
22818 (sync_nand_12): Likewise.
22819 (sync_old_nand_12): Likewise.
22820 (sync_new_nand_12): Likewise.
22821 (sync_sub<mode>): Likewise.
22822 (sync_old_add<mode>): Likewise.
22823 (sync_old_sub<mode>): Likewise.
22824 (sync_new_add<mode>): Likewise.
22825 (sync_new_sub<mode>): Likewise.
22826 (sync_<optab><mode>): Likewise.
22827 (sync_old_<optab><mode>): Likewise.
22828 (sync_new_<optab><mode>): Likewise.
22829 (sync_nand<mode>): Likewise.
22830 (sync_old_nand<mode>): Likewise.
22831 (sync_new_nand<mode>): Likewise.
22832 (sync_lock_test_and_set<mode>): Likewise.
22833 (test_and_set_12): Likewise.
22834 (atomic_compare_and_swap<mode>): Likewise.
22835 (atomic_exchange<mode>_llsc): Likewise.
22836 (atomic_fetch_add<mode>_llsc): Likewise.
22837 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
22838 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
22839 (umips_save_restore_pattern_p): Likewise.
22840 (umips_load_store_pair_p): Likewise.
22841 (umips_output_load_store_pair): Likewise.
22842 (umips_movep_target_p): Likewise.
22843 (umips_12bit_offset_address_p): Likewise.
22844 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
22845 (mips_base_mips16): Rename this...
22846 (mips_base_compression_flags): ...to this. Update all uses.
22847 (mips_attribute_table): Add micromips, nomicromips and nocompression.
22848 (mips_mips16_decl_p): Delete.
22849 (mips_nomips16_decl_p): Delete.
33159866 22850 (mips_get_compress_on_flags): New function.
22c4c869
CM
22851 (mips_get_compress_off_flags): New function.
22852 (mips_get_compress_mode): New function.
22853 (mips_get_compress_on_name): New function.
22854 (mips_get_compress_off_name): New function.
22855 (mips_insert_attributes): Support multiple compression types.
22856 (mips_merge_decl_attributes): Likewise.
22857 (umips_12bit_offset_address_p): New function.
22858 (mips_start_function_definition): Emit .set micromips directive.
22859 (mips_call_may_need_jalx_p): New function.
22860 (mips_function_ok_for_sibcall): Add microMIPS support.
22861 (mips_print_operand_punctuation): Support short delay slots and
22862 compact jumps.
22863 (umips_swm_mask, umips_swm_encoding): New.
22864 (umips_build_save_restore): New function.
22865 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
22866 (was_mips16_p): Remove.
22867 (old_compression_mode): New.
22868 (mips_set_compression_mode): New function.
22869 (mips_set_current_function): Add microMIPS support.
22870 (mips_option_override): Likewise.
22871 (umips_save_restore_pattern_p): New function.
22872 (umips_output_save_restore): New function.
22873 (umips_load_store_pair_p_1): New function.
22874 (umips_load_store_pair_p): New function.
22875 (umips_output_load_store_pair_1): New function.
22876 (umips_output_load_store_pair): New function.
22877 (umips_movep_target_p) New function.
22878 (mips_prepare_pch_save): Add microMIPS support.
22879 * config/mips/mips.h (TARGET_COMPRESSION): New.
22880 (TARGET_CPU_CPP_BUILTINS): Update macro
22881 to use new compression flags and to support microMIPS.
22882 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
22883 (MIPS_ARCH_FLOAT_SPEC): Likewise.
22884 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
22885 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
22886 (ASM_SPEC): Support mmicromips and mno-micromips.
22887 (M16STORE_REG_P): New macro.
22888 (MIPS_CALL): Support TARGET_MICROMIPS.
22889 (MICROMIPS_J): New macro.
22890 (mips_base_mips16): Rename this...
22891 (mips_base_compression_flags): ...to this.
22892 (UMIPS_12BIT_OFFSET_P): New macro.
22893 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
22894 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
228952013-03-20 Richard Biener <rguenther@suse.de>
22896
22897 PR tree-optimization/56661
22898 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
22899 the result does not have to be distinct.
22900
54714c68
RB
229012013-03-20 Richard Biener <rguenther@suse.de>
22902
22903 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
22904 remap_gimple_op_r.
22905
cca1130d 229062013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 22907 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
22908
22909 PR rtl-optimization/56605
22910 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
22911
2a930377
UB
229122013-03-20 Uros Bizjak <ubizjak@gmail.com>
22913
22914 PR bootstrap/56656
22915 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
22916 that require movd instead of movq.
22917
d6d305fe
RB
229182013-03-20 Richard Biener <rguenther@suse.de>
22919
22920 * tree-ssa-structalias.c (struct variable_info): Add pointer
22921 to the first field of an aggregate with sub-vars. Make
22922 this and the pointer to the next subfield its ID.
22923 (vi_next): New function.
22924 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
22925 storedanything_id, integer_id): Increment by one.
22926 (new_var_info, get_call_vi, lookup_call_clobber_vi,
22927 get_call_clobber_vi): Adjust.
22928 (solution_set_expand): Simplify and speedup.
22929 (solution_set_add): Inline into ...
22930 (set_union_with_increment): ... this. Adjust accordingly.
22931 (do_sd_constraint): Likewise.
22932 (do_ds_constraint): Likewise.
22933 (do_complex_constraint): Simplify.
22934 (build_pred_graph): Adjust.
22935 (solve_graph): Likewise. Simplify and speedup.
22936 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
22937 get_constraint_for_component_ref, get_constraint_for_1,
22938 first_vi_for_offset, first_or_preceding_vi_for_offset,
22939 create_function_info_for, create_variable_info_for_1,
22940 create_variable_info_for, intra_create_variable_infos): Adjust.
22941 (init_base_vars): Push NULL for ID zero.
22942 (compute_points_to_sets): Adjust.
22943
a271b42d
RB
229442013-03-20 Richard Biener <rguenther@suse.de>
22945
22946 * cfgloop.c (verify_loop_structure): Streamline and avoid
22947 ICEing on corrupt loop tree.
22948 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
22949 loop tree.
22950
ebd65954
RB
229512013-03-20 Richard Biener <rguenther@suse.de>
22952
22953 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
22954 check whether an SSA update is needed.
22955
4547b7ee
RS
229562013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
22957
22958 * config/mips/constraints.md (T): Rename to...
22959 (Yf): ...this.
22960 (U): Rename to...
22961 (Yd): ...this.
22962 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
22963 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
22964
0b8cdc58
IB
229652013-03-19 Ian Bolton <ian.bolton@arm.com>
22966
22967 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
22968 (*subsi3_carryin_uxtw): Likewise.
22969
5977a10d
IB
229702013-03-19 Ian Bolton <ian.bolton@arm.com>
22971
22972 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
22973 (*rorsi3_insn_uxtw): Likewise.
22974
bd83ff2c
IB
229752013-03-19 Ian Bolton <ian.bolton@arm.com>
22976
22977 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
22978 (*extrsi5_insn_uxtw): Likewise.
22979
ba65123c
RB
229802013-03-19 Richard Biener <rguenther@suse.de>
22981
22982 PR tree-optimization/56273
22983 * passes.c (init_optimization_passes): Move second VRP after DOM.
22984
2eac0476
UB
229852013-03-19 Uros Bizjak <ubizjak@gmail.com>
22986
22987 * config/i386/i386.md (*movti_internal): Merge from
22988 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
22989 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
22990 nox64 isa attributes.
22991
6e55eda7
RB
229922013-03-18 Richard Biener <rguenther@suse.de>
22993
22994 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
22995 (unite): Likewise.
22996 (merge_node_constraints): Likewise.
22997 (build_succ_graph): Likewise.
22998 (valid_graph_edge): Inline into single caller.
22999 (unify_nodes): Likewise. Use bitmap_set_bit return value
23000 and cache varinfo.
23001 (scc_visit): Fix formatting and variable use.
23002 (do_sd_constraint): Use gcc_checking_assert.
23003 (do_ds_constraint): Likewise.
23004 (do_complex_constraint): Likewise.
23005 (condense_visit): Likewise. Cleanup.
23006 (dump_pred_graph): New function.
23007 (perform_var_substitution): Dump the pred-graph before
23008 variable substitution.
23009 (find_equivalent_node): Use gcc_checking_assert.
23010 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
23011
4bdd44c4
RB
230122013-03-18 Richard Biener <rguenther@suse.de>
23013
23014 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
23015 Remove cond_expr_stmt_list argument and do not gimplify the
23016 built expression.
23017 (vect_loop_versioning): Adjust.
23018 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23019 Cleanup to use less temporaries.
23020 (vect_create_data_ref_ptr): Cleanup.
23021
38c56a5b
JJ
230222013-03-18 Jakub Jelinek <jakub@redhat.com>
23023
23024 PR tree-optimization/56635
23025 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
23026 require types_compatible_p types.
23027
20b2e6a0
NC
230282013-03-18 Nick Clifton <nickc@redhat.com>
23029
a6178a25
NC
23030 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
23031 spurious backslash.
23032
20b2e6a0
NC
23033 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
23034 Add missing line to comment describing function.
23035
92608d0e
RB
230362013-03-18 Richard Biener <rguenther@suse.de>
23037
23038 PR tree-optimization/56210
23039 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23040 Handle string / character search functions.
23041 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23042
31348d52
RB
230432013-03-18 Richard Biener <rguenther@suse.de>
23044
23045 PR middle-end/56483
23046 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
23047 and implement properly.
23048 * gimple.h (gimple_cond_single_var_p): Remove.
23049
fcac74a1
RB
230502013-03-18 Richard Biener <rguenther@suse.de>
23051
23052 * tree-data-ref.h (find_data_references_in_loop): Declare.
23053 * tree-data-ref.c (get_references_in_stmt): Use a stack
23054 vector pre-allocated in the callers.
23055 (find_data_references_in_stmt): Adjust.
23056 (graphite_find_data_references_in_stmt): Likewise.
23057 (create_rdg_vertices): Likewise.
23058 (find_data_references_in_loop): Export.
23059 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
23060 Compute dependences here...
23061 (vect_analyze_data_refs): ...not here. When we encounter
23062 a non-vectorizable data reference in basic-block vectorization
23063 truncate the data reference vector. Do not bother to
23064 fixup data-dependence information for gather loads.
23065 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
23066 of data references, as reported.
23067
0d5a1b56
RB
230682013-03-18 Richard Biener <rguenther@suse.de>
23069
23070 PR tree-optimization/3713
23071 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
23072 has_constants and expr.
23073 (stmt_has_constants): Properly valueize SSA names when deciding
23074 whether the stmt has constants.
23075
789c34e3
RB
230762013-03-18 Richard Biener <rguenther@suse.de>
23077
23078 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
23079 whole function when there is nothing to do.
23080 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
23081 * tree-vectorizer.c (vectorize_loops): Update virtual and
23082 loop-closed SSA once.
23083 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
23084
076b4605
RB
230852013-03-18 Richard Biener <rguenther@suse.de>
23086
23087 PR middle-end/56113
23088 * domwalk.c (bb_postorder): New global static.
23089 (cmp_bb_postorder): New function.
23090 (walk_dominator_tree): Replace scheme imposing an order for
23091 visiting dominator sons by one sorting them at the time they
23092 are pushed on the stack.
23093
bdb01696
RB
230942013-03-18 Richard Biener <rguenther@suse.de>
23095
23096 PR tree-optimization/39326
23097 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
23098 (struct mem_ref): Replace mem member with ao_ref typed member.
23099 (MEM_ANALYZABLE): Adjust.
23100 (memref_eq): Likewise.
23101 (mem_ref_alloc): Likewise.
23102 (gather_mem_refs_stmt): Likewise.
23103 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
23104 (execute_sm_if_changed_flag_set): Adjust.
23105 (execute_sm): Likewise.
23106 (ref_always_accessed_p): Likewise.
23107 (refs_independent_p): Likewise.
23108 (can_sm_ref_p): Likewise.
23109
12d2dc5e
JJ
231102013-03-18 Jakub Jelinek <jakub@redhat.com>
23111
23112 PR c/56566
23113 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
23114 return 1 even for !unsignedp.
23115
286fb677
UB
231162013-03-17 Uros Bizjak <ubizjak@gmail.com>
23117
23118 * config/i386/i386.md (isa): Add x64 and nox64.
23119 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
23120 (*pushtf): Enable *roF alternative for x64 isa only.
23121 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
23122 mode attribute of integer alternatives to DImode for TARGET_64BIT.
23123 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
23124 (*movtf_internal): Merge from *movtf_internal_rex64 and
23125 *movtf_internal_sse. Use x64 and nox64 isa attributes.
23126 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
23127 nox64 isa attributes.
23128 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
23129 nox64 isa attributes.
23130 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
23131
88b97037
UB
231322013-03-17 Uros Bizjak <ubizjak@gmail.com>
23133
23134 * config/alpha/alpha.c (TARGET_LRA_P): New define.
23135
9f4f1735
JJ
231362013-03-17 Jakub Jelinek <jakub@redhat.com>
23137
23138 PR target/56640
23139 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
23140 class names. Remove trailing comma after "ALL_REGS".
23141
48f4a6fa
JH
231422013-03-16 Jan Hubicka <jh@suse.cz>
23143
23144 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
23145 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
23146 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
23147 of cgraph_get_create_node.
23148 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
23149
98e81123
JM
231502013-03-16 Jason Merrill <jason@redhat.com>
23151
23152 PR debug/49090
23153 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
23154 with DW_AT_default_value.
23155
8a298c04
JJ
231562013-03-16 Jakub Jelinek <jakub@redhat.com>
23157
23158 * BASE-VER: Set to 4.9.0.
23159
4323afa0
AK
231602013-03-14 Andi Kleen <ak@linux.intel.com>
23161
23162 PR target/56619
23163 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
23164 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
23165 Document _x* TSX intrinsics.
23166
b3c0d469
JJ
231672013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23168 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
23169
23170 * configure.ac: Add MicroBlaze TLS support detection.
23171 * configure: Regenerate.
88b97037
UB
23172 * config/microblaze/microblaze-protos.h
23173 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
23174 symbol_mentioned_p, label_mentioned_p): Add prototypes.
23175 * config/microblaze/microblaze.c (microblaze_address_type): Add
23176 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
23177 (microblaze_address_info): Add tls_reloc.
23178 (TARGET_HAVE_TLS): Define.
23179 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
23180 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
23181 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
23182 load_tls_operand, microblaze_call_tls_get_addr,
23183 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
23184 (microblaze_classify_unspec): Handle UNSPEC_TLS.
23185 (get_base_reg): Use microblaze_tls_symbol_p.
23186 (microblaze_classify_address): Handle TLS.
88b97037
UB
23187 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
23188 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
23189 (microblaze_legitimize_address): Handle TLS.
23190 (microblaze_address_insns): Handle ADDRESS_TLS.
23191 (pic_address_needs_scratch): Handle TLS.
23192 (print_operand_address): Handle TLS.
23193 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
23194 (microblaze_expand_move): Handle TLS.
88b97037
UB
23195 (microblaze_legitimate_constant_p): Check
23196 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
23197 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
23198 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
23199 (PIC_OFFSET_TABLE_REGNUM): Set.
23200 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
23201 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
23202 (addsi3, movsi_internal2, movdf_internal): Update constraints
23203 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
23204 (move_operand): Redefine as move_src_operand,
23205 check microblaze_tls_referenced_p.
8cc9a5a5 23206
d803a491
IB
232072013-03-14 Ian Bolton <ian.bolton@arm.com>
23208
23209 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
23210 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
23211
a8504f22
IB
232122013-03-14 Ian Bolton <ian.bolton@arm.com>
23213
23214 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
23215 CC mode for AND.
23216
df2dfaea
JJ
232172013-03-14 Jakub Jelinek <jakub@redhat.com>
23218
fbd28bc3
JJ
23219 PR tree-optimization/53265
23220 * common.opt (Waggressive-loop-optimizations): New option.
23221 * tree-ssa-loop-niter.c: Include tree-pass.h.
23222 (do_warn_aggressive_loop_optimizations): New function.
23223 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
23224 if number_of_latch_executions returned constant.
23225 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
23226 early. If number_of_latch_executions returned constant, set
23227 nb_iterations_upper_bound back to it.
23228 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
23229 field.
23230 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
23231 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
23232
df2dfaea
JJ
23233 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
23234 (MULTILIB_OSDIRNAMES): Set.
23235 * genmultilib: If defaultosdirname doesn't start with :: , set
23236 defaultosdirname2 instead, clear it and emit two . multilib_raw
23237 entries instead of just one.
23238
ee0d2b68
KK
232392013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
23240
23241 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
23242 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
23243 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
23244 (SUBTARGET_OVERRIDE_OPTIONS): New.
23245
decc676e
OE
232462013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
23247
23248 PR target/49880
23249 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
23250 (musermode): Convert to Var(TARGET_USERMODE).
23251 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
23252 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
23253 * config/sh/sh.c (sh_option_override): Use
23254 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
23255 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
23256 condition.
23257 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
23258 TARGET_SH4.
23259 (udivsi3_i4_single, divsi3_i4_single): Use
23260 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
23261
f4b719c7
DK
232622013-03-13 Dave Korn <dave.korn.cygwin@....>
23263
23264 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
23265 default setting.
23266
c40eced0
RB
232672013-03-13 Richard Biener <rguenther@suse.de>
23268
23269 PR tree-optimization/56608
23270 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
23271 calls when vectorizing basic-blocks.
23272
1bfa5973
JJ
232732013-03-13 Jakub Jelinek <jakub@redhat.com>
23274
23275 PR plugins/45078
23276 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
23277 tm_file.
23278
6fcf5434
JJ
232792013-03-12 Jakub Jelinek <jakub@redhat.com>
23280
23281 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
23282
4f38fa8c
JH
232832013-03-11 Jan Hubicka <jh@suse.cz>
23284
23285 PR lto/56557
23286 * lto-streamer-out.c (output_symbol_p): Skip references from
23287 constructors of external variables.
23288
c5c5ba89
JH
232892013-03-11 Jan Hubicka <jh@suse.cz>
23290
23291 PR middle-end/56571
23292 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
23293 from pseudos.
23294 * emit-rtl.c (verify_rtx_sharing): Likewise.
23295 (copy_insn_1): Likewise.
23296 * rtl.c (copy_rtx): Likewise.
23297
c2a939b1
GJL
232982013-03-11 Georg-Johann Lay <avr@gjlay.de>
23299
23300 PR target/56591
23301 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
23302 output_operand_lossage message.
88b97037 23303
3c3279fb
RE
233042013-03-11 Richard Earnshaw <rearnsha@arm.com>
23305
23306 PR target/56470
23307 * arm.c (shift_op): Validate RTL pattern on the fly.
23308 (arm_print_operand, case 'S'): Don't use shift_operator to validate
23309 the RTL.
23310
aef5ef9d
JDA
233112013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23312
23313 PR target/56347
23314 * config/pa/pa.md (call_value): Check for calls to powf and direct to
23315 new call patterns that clobber %fr12.
23316 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
23317 split and postreload patterns.
23318 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
23319 registers %fr12 and %fr12R as call used.
23320
456610d3
SB
233212013-03-09 Steven Bosscher <steven@gcc.gnu.org>
23322
23323 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
23324 (canon_address, record_store, replace_read, check_mem_read_rtx,
23325 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
23326 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
23327 rest_of_handle_dse): Likewise.
23328
4b1baac8
RS
233292013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
23330
23331 PR middle-end/56524
23332 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
23333 Add base_optabs.
23334 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
23335 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
23336 (save_optabs_if_changed): Replace with...
23337 (init_tree_optimization_optabs): ...this.
23338 * optabs.c (save_optabs_if_changed): Rename to...
23339 (init_tree_optimization_optabs): ...this. Take the optimization node
23340 as argument. Do nothing if the base optabs are already correct.
23341 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
23342 to recompute optabs.
23343 * function.h (function): Remove optabs field.
23344 * function.c (invoke_set_current_function_hook): Call
23345 init_tree_optimization_optabs. Use the result to initialize
23346 this_fn_optabs.
23347
b7a78683
AH
233482013-02-27 Aldy Hernandez <aldyh@redhat.com>
23349
23350 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
23351 if GTMA_HAS_NO_INSTRUMENTATION.
23352 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
23353 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
23354 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
23355 * gimple-pretty-print.c (dump_gimple_transaction): Handle
23356 GTMA_HAS_NO_INSTRUMENTATION.
23357
6384c29b
JJ
233582013-03-08 Jakub Jelinek <jakub@redhat.com>
23359
23360 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
23361 libasan_preinit.o.
23362
ecd4f20a
MP
233632013-03-08 Marek Polacek <polacek@redhat.com>
23364 Jakub Jelinek <jakub@redhat.com>
23365
23366 PR tree-optimization/56478
23367 * predict.c (is_comparison_with_loop_invariant_p): Change the
23368 type of loop_step to tree.
23369 (predict_loops): Adjust.
23370 (predict_iv_comparison): Perform the computations on double_ints.
23371
64366d35
RB
233722013-03-08 Richard Biener <rguenther@suse.de>
23373
23374 PR tree-optimization/56570
23375 * tree-cfg.c (verify_expr_location_1): Verify locations for
23376 DECL_DEBUG_EXPR.
23377 * tree-sra.c (create_access_replacement): Strip locations
23378 from DECL_DEBUG_EXPRs.
23379
a9d5a059
RB
233802013-03-08 Richard Biener <rguenther@suse.de>
23381
23382 * tree-inline.c (expand_call_inline): Do not associate
23383 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
23384 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
23385
b7aa4e9a
RB
233862013-03-08 Richard Biener <rguenther@suse.de>
23387
23388 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
23389 or block changes with -Og. Fix for location / block encoding
23390 changes and PHI arguments with locations.
23391
c4c2f9fa
SB
233922013-03-07 Steven Bosscher <steven@gcc.gnu.org>
23393
23394 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
23395 for all counters.
23396 (struct output_info): Likewise.
23397 (register_overhead): Remove bad gcc_assert.
23398 (bitmap_find_bit): If there is only a single bitmap element, do not
23399 count a miss as a search.
23400 (print_statistics): Update for counter type changes.
23401 (dump_bitmap_statistics): Likewise. Print headers such that they
23402 are properly lined up with the printed counters.
23403
5bf6606a
JJ
234042013-03-07 Jakub Jelinek <jakub@redhat.com>
23405
23406 PR tree-optimization/56559
23407 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
23408 check that it has only a single use.
23409
2c653d46
RB
234102013-03-07 Richard Biener <rguenther@suse.de>
23411
23412 * doc/invoke.texi (fwhole-program): Discourage use in combination
23413 with -flto.
23414
a72d8780
JJ
234152013-03-06 Jakub Jelinek <jakub@redhat.com>
23416
01a454df
JJ
23417 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
23418
c1781047
JJ
23419 PR tree-optimization/56539
23420 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
23421 instead of GSI_CONTINUE_LINKING as last argument to
23422 force_gimple_operand_gsi. Adjust function comment.
23423
9772c47a
JJ
23424 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
23425 aarch64-cores.def.
23426
a72d8780
JJ
23427 PR middle-end/56548
23428 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
23429 promoted mode, convert the result back to the original mode.
23430
fa5556de
RB
234312013-03-06 Richard Biener <rguenther@suse.de>
23432
23433 PR middle-end/56294
23434 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
23435 (insert_updated_phi_nodes_compare_uids): New function.
23436 (update_ssa): Sort symbols_to_rename after UID before
23437 traversing it to insert PHI nodes.
23438
010403d1
RB
234392013-03-06 Richard Biener <rguenther@suse.de>
23440
23441 PR middle-end/50494
23442 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
23443 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
23444
23445 Revert
23446 2013-02-13 Richard Biener <rguenther@suse.de>
23447
23448 PR lto/50494
23449 * varasm.c (output_constant_def_1): Get the decl representing
23450 the constant as argument.
23451 (output_constant_def): Wrap output_constant_def_1.
23452 (make_decl_rtl): Use output_constant_def_1 with the decl
23453 representing the constant.
23454 (build_constant_desc): Optionally re-use a decl already
23455 representing the constant.
23456 (tree_output_constant_def): Adjust.
23457
3c27ce4c
JY
234582013-03-06 Joey Ye <joey.ye@arm.com>
23459
23460 PR lto/50293
23461 * gcc.c (convert_white_space): New function.
23462 (main): Handles white space in function name.
23463
8f6d1c86
OE
234642013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
23465
23466 PR target/56529
23467 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
23468 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
23469 to SH_DIV_CALL_TABLE for TARGET_SH2.
23470 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
23471 list.
23472 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
23473 call-table options.
23474
798a209f
SA
234752013-03-05 Sterling Augustine <saugustine@google.com>
23476 Cary Coutant <ccoutant@google.com>
23477
23478 PR debug/55364
23479 * dwarf2out.c (resolve_addr): Don't call
23480 remove_loc_list_addr_table_entries a second time for the same
23481 expression.
23482
6cfa417f 234832013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 23484
6cfa417f
JJ
23485 PR debug/56510
23486 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
23487 (avoid_complex_debug_insns): New function.
23488 (expand_debug_locations): Call it.
23489
23490 PR rtl-optimization/56484
23491 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
23492 lifetimes of hard registers on small register class machines.
23493
234942013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
23495
23496 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 23497 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 23498 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
23499 fast_interrupt.
23500 (microblaze_fast_interrupt_function_p): New function.
23501 (microblaze_is_interrupt_handler): Rename to
23502 microblaze_is_interrupt_variant and add fast_interrupt check.
23503 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
23504 (save_restore_insns): Likewise.
23505 (compute_frame_size): Likewise.
23506 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
23507 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
23508 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
23509 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
23510 microblaze_is_interrupt_variant.
23511
731aefac
KT
235122013-03-05 Kai Tietz <ktietz@redhat.com>
23513
23514 * sdbout.c (sdbout_one_type): Switch to current function's section
23515 supporting cold/hot.
23516
a72d8780 235172013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
23518
23519 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
23520 -mxl-reorder.
23521
334e71e8
JJ
235222013-03-05 Jakub Jelinek <jakub@redhat.com>
23523
0b50e654
JJ
23524 PR middle-end/56461
23525 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
23526 if VALGRIND_GET_VBITS is defined, temporarily make object
23527 memory all defined, and restore previous valgrind addressability
23528 and definability afterwards. Free this_object at the end.
23529
4ccf8f43
JJ
23530 PR middle-end/56461
23531 * lra.c (lra): Call lra_clear_live_ranges if live_p,
23532 right before calling lra_create_live_ranges, also call it
23533 when clearing live_p. Only call lra_clear_live_ranges
23534 at the end if live_p.
23535
334e71e8
JJ
23536 PR middle-end/56461
23537 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
23538
9ca966ca
RB
235392013-03-05 Richard Biener <rguenther@suse.de>
23540
23541 PR tree-optimization/56521
23542 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
23543 value-id.
23544
d273b176
SB
235452013-03-05 Steven Bosscher <steven@gcc.gnu.org>
23546
23547 PR c++/55135
23548 * except.h (remove_unreachable_eh_regions): New prototype.
23549 * except.c (remove_eh_handler_splicer): New function, split out
23550 of remove_eh_handler.
23551 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
23552 warning about running it on many EH regions one at a time.
23553 (remove_unreachable_eh_regions_worker): New function, walk the
23554 EH tree in depth-first order and remove non-marked regions.
23555 (remove_unreachable_eh_regions): New function.
23556 * tree-eh.c (mark_reachable_handlers): New function, split out
23557 from remove_unreachable_handlers.
23558 (remove_unreachable_handlers): Use mark_reachable_handlers and
23559 remove_unreachable_eh_regions.
23560 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
23561 and remove_unreachable_eh_regions.
23562
5e7f1aef
RB
235632013-03-05 Richard Biener <rguenther@suse.de>
23564
23565 PR middle-end/56525
23566 * loop-init.c (fix_loop_structure): Remove loops in two stages,
23567 not freeing them until the end.
23568
f276b762
AK
235692013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23570
23571 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
23572
12a43ab8
RB
235732013-03-05 Richard Biener <rguenther@suse.de>
23574
23575 PR tree-optimization/56270
23576 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
23577 of loads after scheduling an SLP instance.
23578
93675444
JJ
235792013-03-05 Jakub Jelinek <jakub@redhat.com>
23580
db4138e3
JJ
23581 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
23582 tic6x.exp.
23583 (check_gcc_parallelize): Run guality.exp as a separate job from
23584 vect.exp with unsorted.exp and $(dg_target_exps) separately from
23585 struct-layout-1.exp with stackalign.exp.
23586
dd3d1ec0
JJ
23587 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
23588
b8d381a3
JJ
23589 PR middle-end/56461
23590 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
23591 load_index sbitmap even if some bit in it isn't set.
23592
b4f9786b
JJ
23593 PR middle-end/56461
23594 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
23595 (discover_iteration_bound_by_body_walk): Change queues to
23596 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
23597 spelling in comment. Call safe_push on queues[bound_index] directly.
23598 Release queues[queue_index] in every iteration unconditionally.
23599 Release bounds vector.
23600
93675444
JJ
23601 PR middle-end/56461
23602 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
23603 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
23604 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
23605 inner_phis vector.
23606
3e492e9c
RB
236072013-03-05 Richard Biener <rguenther@suse.de>
23608
23609 PR lto/56515
23610 * tree-inline.c (remap_blocks_to_null): New function.
23611 (expand_call_inline): When expanding a call stmt without
23612 an associated block inline remap all callee blocks to NULL.
23613
a5d1569a
JJ
236142013-03-05 Jakub Jelinek <jakub@redhat.com>
23615
86efb5cd
JJ
23616 PR rtl-optimization/56494
23617 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
23618 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
23619 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
23620
85f5dbea
JJ
23621 PR middle-end/56461
23622 * sel-sched-ir.c (free_sched_pools): Release
23623 succs_info_pool.stack[succs_info_pool.max_top] vectors too
23624 if succs_info_pool.max_top isn't -1.
23625
a5d1569a
JJ
23626 PR bootstrap/56509
23627 * opts.c (opts_obstack, opts_concat): Moved to...
23628 * opts-common.c (opts_obstack, opts_concat): ... here.
23629
4432aa6c
JJ
236302013-03-04 Jakub Jelinek <jakub@redhat.com>
23631
23632 PR middle-end/56461
23633 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
23634
f3a1fb91
MJ
236352013-03-04 Martin Jambor <mjambor@suse.cz>
23636
23637 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
23638 all appropriate places.
23639
22110e6c
EB
236402013-01-04 Eric Botcazou <ebotcazou@adacore.com>
23641
23642 PR tree-optimization/56424
23643 * ipa-split.c (split_function): Do not set the RSO flag if result is
23644 not by reference and its type is a register type.
23645
a72d8780 236462013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 23647
88b97037 23648 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 23649 (microblaze_legitimate_pic_operand): Likewise
88b97037 23650 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
23651 new function microblaze_legitimate_pic_operand
23652 * config/microblaze/microblaze-protos.h
23653 (microblaze_legitimate_pic_operand): Declare.
23654
a72d8780 236552013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 23656
a72d8780 23657 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 23658 New predicate for supported rtx code types.
a72d8780 23659 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
23660 call_insn_simple_operand predicate.
23661
541d9ac8
JJ
236622013-03-04 Jakub Jelinek <jakub@redhat.com>
23663
5eb010bc
JJ
23664 PR middle-end/56461
23665 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
23666 partitions.ordered_remove.
23667
30862efc
JJ
23668 PR middle-end/56461
23669 * tree-vect-stmts.c (vectorizable_conversion): Don't call
23670 vec_oprnds0.create (1) for modifier == NONE.
23671
8930f723
JJ
23672 PR middle-end/56461
23673 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
23674 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
23675 vec_oprnds1 right before pushing anything to it for
23676 scalar_shift_arg.
23677
541d9ac8
JJ
23678 PR middle-end/56461
23679 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
23680 set nbbs to 0 instead of having separate code path.
23681 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
23682 instead of false as last argument if returning NULL.
23683
7aa7f2e3
SL
236842013-03-03 Sandra Loosemore <sandra@codesourcery.com>
23685
23686 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
23687 the attribute is now called "target" instead of "option".
23688 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
23689 * doc/tm.texi.in (Target Attributes): Likewise document the correct
23690 attribute/pragma name for TARGET_OPTION_VALID_P and
23691 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
23692 * doc/tm.texi: Regenerated.
23693
8930f723 236942013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 23695
8930f723 23696 * config/microblaze/microblaze.c:
cb8a1637 23697 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
23698 * config/microblaze/microblaze.h: Add -mxl-reorder to
23699 DRIVER_SELF_SPECS.
23700 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
23701 instructions emitted if TARGET_REORDER.
88b97037
UB
23702 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
23703 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 23704 separately.
cb8a1637 23705
4dc1d68c
XDL
237062013-03-01 Xinliang David Li <davidxl@google.com>
23707
23708 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
23709 walk length.
23710
689eaba3
JJ
237112013-03-01 Jakub Jelinek <jakub@redhat.com>
23712
9d676bf6
JJ
23713 PR middle-end/56461
23714 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
23715 vector even when returning true. Fix up function comment formatting.
23716
caff7edf
JJ
23717 PR middle-end/56461
23718 * ira-build.c (ira_loop_nodes_count): New variable.
23719 (create_loop_tree_nodes): Initialize it.
23720 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
23721
b6b9227d
JJ
23722 PR middle-end/56461
23723 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
23724 method on dr_chain and result_chain.
23725 * tree-vect-stmts.c (vectorizable_store): Only call
23726 result_chain.create if j == 0.
23727
689eaba3
JJ
23728 PR middle-end/56461
23729 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
23730 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
23731 before overwriting it.
23732
40bf31ed
TB
237332013-03-01 Tobias Burnus <burnus@net-b.de>
23734
23735 * doc/extended.texi (C Extensions): Change order in @menu
23736 to match @node.
23737 (Other MIPS Built-in Functions): Move last MIPS entry before
23738 "picoChip Built-in Functions".
23739 (SH Built-in Functions): Move after RX Built-in Functions.
23740 * doc/gcc.texi (Introduction): Change order in @menu
23741 to match @node.
23742 * doc/md.texi (Constraints): Ditto.
23743 * gty.texi (Type Information): Ditto.
23744 (User-provided marking routines for template types): Make
23745 subsection.
23746 * doc/invoke.texi (AArch64 Options): Move before
23747 "Adapteva Epiphany Options".
23748
e664c61c
KS
237492013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
23750 Jakub Jelinek <jakub@redhat.com>
23751
23752 PR sanitizer/56454
23753 * asan.c (gate_asan): Lookup no_sanitize_address instead of
23754 no_address_safety_analysis attribute.
23755 * doc/extend.texi (no_address_safety_attribute): Rename to
23756 no_sanitize_address attribute, mention no_address_safety_analysis
23757 attribute as deprecated alias.
23758
37b5ec8f
JJ
237592013-02-28 Jakub Jelinek <jakub@redhat.com>
23760
23761 PR middle-end/56461
23762 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
23763 type to vec<vec<tree> > *.
23764 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
23765 to be vec<tree> instead of vec<tree> *, set vec_defs
23766 to vNULL and call vec_defs.create (number_of_vects), adjust other
23767 uses of vec_defs.
23768 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
23769 vectorizable_condition): Adjust vect_get_slp_defs callers.
23770
ba96cdfb
JG
237712013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23772
23773 * config/aarch64/aarch64.c
23774 (aarch64_float_const_representable): Remove unused variable.
23775
6f549691
JG
237762013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23777
23778 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
23779
af55e82d
JG
237802013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23781
23782 * config/aarch64/aarch64-builtins.c
23783 (aarch64_init_simd_builtins): Make static.
23784
1df3f464
JG
237852013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
23786
23787 * config/aarch64/aarch64.c
23788 (aarch64_simd_make_constant): Make static.
23789
f8f42513
MJ
237902013-02-28 Martin Jambor <mjambor@suse.cz>
23791
23792 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
23793 with no initialization to the RHS of debug statements.
23794
b48b3fc4
MJ
237952013-02-28 Martin Jambor <mjambor@suse.cz>
23796
23797 PR tree-optimization/56294
23798 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
23799 Adjust dumping.
23800 (get_access_replacement): Do not call create_access_replacement.
23801 Assert a replacement exists.
23802 (get_repl_default_def_ssa_name): Create the replacement declaration
23803 itself.
23804
c3ae224c
RR
238052013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23806
23807 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
23808 final_end_function.
23809
45fa0eef
MP
238102013-02-28 Marek Polacek <polacek@redhat.com>
23811
23812 PR rtl-optimization/56466
23813 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
23814 if we're changing a loop.
23815 (peel_loops_completely): Likewise.
23816
502c067d
PC
238172013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23818
23819 PR c++/55813
23820 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
23821
ff24afc8
GJL
238222013-02-28 Georg-Johann Lay <avr@gjlay.de>
23823
23824 PR target/56445
23825 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
23826 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
23827 INTX_FTYPE_FX, FX_FTYPE_INTX.
23828 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
23829
c7b1fc1b
GJL
238302013-02-28 Georg-Johann Lay <avr@gjlay.de>
23831
23832 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
23833 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
23834 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
23835 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
23836 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
23837 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
23838 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
23839 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
23840 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
23841 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
23842 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
23843 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
23844 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
23845 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
23846 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
23847 (avrxmega6): Increase max flash segments from 5 to 6.
23848 * config/avr/t-multilib: Regenerate.
23849 * config/avr/avr-tables.opt: Regenerate.
23850 * doc/avr-mmcu.texi: Regenerate.
23851
4a0e3cfe
GJL
238522013-02-28 Georg-Johann Lay <avr@gjlay.de>
23853
23854 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
23855 (avr_device_to_arch): Rename to avr_device_to_ld.
23856 (avr_device_to_as): New prototype.
23857 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
23858 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
23859 * config/avr/driver-avr.c (avr_device_to_as): New.
23860 (avr_device_to_arch): Rename to avr_device_to_ld.
23861
97785e52
JJ
238622013-02-27 Jakub Jelinek <jakub@redhat.com>
23863
3f292312
JJ
23864 PR middle-end/56461
23865 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
23866 method on dr_chain and result_chain.
23867
a344216b
JJ
23868 PR middle-end/56461
23869 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
23870 pointer_set_destroy on not_executed_last_iteration.
23871
f121ad02 23872 PR middle-end/56461
88b97037 23873 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 23874
307f83a3
JJ
23875 PR middle-end/56461
23876 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
23877 FOR_EACH_DEFINED_FUNCTION when freeing state.
23878
e19624ee
JJ
23879 PR middle-end/56461
23880 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
23881 pool_free.
23882 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
23883 overwriting it.
23884
90e709fd
JJ
23885 PR middle-end/56461
23886 * ipa-cp.c (decide_whether_version_node): Call vec_free on
23887 known_aggs[i].items and release known_aggs vector.
23888
97785e52
JJ
23889 PR middle-end/56461
23890 * ipa-reference.c (propagate): Free node_info even for alias nodes.
23891
238922013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 23893
97785e52
JJ
23894 * config/microblaze/microblaze.c (microblaze_emit_compare):
23895 Use xor for EQ/NE comparisions.
23896 * config/microblaze/microblaze.md (cstoresf4): Add constraints
23897 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 23898
6fa5e0ed
JJ
238992013-02-27 Jakub Jelinek <jakub@redhat.com>
23900
23901 PR middle-end/56461
23902 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
23903 vector.
23904 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
23905 vec_safe_push, always update *slot.
23906 (redirect_edge_var_map_clear): Use vec_free.
23907 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
23908 (free_var_map_entry): Use vec_free.
23909 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
23910 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
23911
436a956a
AB
239122013-02-27 Andrey Belevantsev <abel@ispras.ru>
23913
23914 PR middle-end/45472
436a956a
AB
23915 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
23916 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
23917 Reorder tests for speculativeness in the logical and operator.
23918
f5c2caca
JJ
239192013-02-27 Jakub Jelinek <jakub@redhat.com>
23920
0fcb564b
JJ
23921 * incpath.c (add_standard_paths): Use reconcat instead of concat
23922 where appropriate and avoid leaking memory.
23923
dc357798
JJ
23924 * opts.h: Include obstack.h.
23925 (opts_concat): New prototype.
23926 (opts_obstack): New declaration.
23927 * opts.c (opts_concat): New function.
23928 (opts_obstack): New variable.
23929 (init_options_struct): Call gcc_init_obstack on opts_obstack.
23930 (finish_options): Use opts_concat instead of concat
23931 and XOBNEWVEC instead of XNEWVEC.
23932 * opts-common.c (generate_canonical_option, decode_cmdline_option,
23933 generate_option): Likewise.
23934 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
23935 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
23936
f5c2caca
JJ
23937 PR target/56455
23938 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
23939 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
23940
d0163673
JJ
239412013-02-26 Jakub Jelinek <jakub@redhat.com>
23942
23943 PR middle-end/56461
23944 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
23945
b5ad2b8e
JR
239462013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
23947
23948 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
23949 (arm_block_move_unaligned_straight): Likewise.
23950 (arm_adjust_block_mem): Likewise.
23951
9b639e2c
JR
239522013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
23953
23954 PR target/48901
23955 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
23956 temp, cond and label.
23957 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
23958
e13a0ccb
JR
23959 PR target/52500
23960 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
23961 * config/c6x/c6x.h (dbx_register_map): Update declaration.
23962
fbe4f171
JR
23963 PR target/52501
23964 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
23965 of prologue/epilogue functions.
23966
ae006543
JR
23967 PR target/52550
23968 * config/tilegx/tilegx.c (tilegx_expand_prologue):
23969 Remove unused variable cfa_offset.
23970 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
23971
c81369fa
JR
23972 PR target/54639
23973 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
23974 type promotion to unsigned.
23975
f8a8fea7
JR
23976 PR target/54640
23977 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
23978 for HOST_WIDE_INT of 32 bit / same size as int.
23979 (arm_block_move_unaligned_straight): Likewise.
23980 (arm_adjust_block_mem): Likewise.
23981
f8be5169
JR
23982 PR target/54662
23983 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
23984 ALL_CFLAGS.
23985
f1ad3354
MP
239862013-02-26 Marek Polacek <polacek@redhat.com>
23987
23988 PR tree-optimization/56426
88b97037 23989 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 23990
a6af0f42
RB
239912013-02-26 Richard Biener <rguenther@suse.de>
23992
23993 PR target/56444
23994 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
23995 unused variable loops.
23996
aca43c6c
JJ
239972013-02-26 Jakub Jelinek <jakub@redhat.com>
23998
cecbe5d9
JJ
23999 PR tree-optimization/56448
24000 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
24001 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
24002 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
24003 later operands of the references, or even first operand for
24004 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
24005
aca43c6c
JJ
24006 PR tree-optimization/56443
24007 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
24008 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
24009 to type_for_mode langhook.
24010
53e2e141
MT
240112013-02-25 Matt Turner <mattst88@gmail.com>
24012
24013 * doc/invoke.texi: Document r4700.
24014
259ee451
RB
240152013-02-25 Richard Biener <rguenther@suse.de>
24016
24017 PR tree-optimization/56175
24018 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
24019 split out from ...
24020 (simplify_bitwise_binary): ... here. Also guard the conversion
24021 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
24022
6d65e8f1
CM
240232013-02-25 Catherine Moore <clm@codesourcery.com>
24024
24025 Revert:
24026 2013-02-24 Catherine Moore <clm@codesourcery.com>
24027 Maciej W. Rozycki <macro@codesourcery.com>
24028 Tom de Vries <tom@codesourcery.com>
a72d8780 24029 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
24030 Iain Sandoe <iain@codesourcery.com>
24031 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 24032 Chao-ying Fu <fu@mips.com>
88b97037 24033
6d65e8f1 24034 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 24035 Document new function attributes.
6d65e8f1
CM
24036 * doc/invoke.texi (minterlink-compressed, mmicromips,
24037 m14k, m14ke, m14kec): Document new options.
24038 (minterlink-mips16): Update documentation.
24039 * doc/md.texi (ZC, ZD): Document new constraints.
24040 * configure.ac (gcc_cv_as_micromips): Check if linker
24041 supports the .set micromips directive.
24042 * configure: Regenerate.
24043 * config.in: Regenerate.
24044 * config/mips/mips-tables.opt: Regenerate.
24045 * config/mips/micromips.md: New file.
24046 * constraints.md (ZC, AD): New constraints.
24047 * config/mips/predicates.md (movep_src_register): New predicate.
24048 (movep_src_operand): New predicate.
24049 (non_volatile_mem_operand): New predicate.
24050 * config/mips/mips.md (multimem): New type.
24051 (length): Differentiate between 17-bit and 18-bit branch offsets.
24052 (MOVEP1, MOVEP2): New mode iterator.
24053 (mov_<load>l): Use ZC constraint.
24054 (mov_<load>r): Likewise.
24055 (mov_<store>l): Likewise.
24056 (mov_<store>r): Likewise.
24057 (*branch_equality<mode>_inverted): Add microMIPS support.
24058 (*branch_equality<mode>): Likewise.
24059 (*jump_absolute): Likewise.
24060 (indirect_jump_<mode>): Likewise.
24061 (tablejump_<mode>): Likewise.
24062 (<optab>_internal): Likewise.
24063 (sibcall_internal): Likewise.
24064 (sibcall_value_internal): Likewise.
24065 (prefetch): Use constraint ZD.
24066 * config/mips/mips.opt (minterlink-compressed): New option.
24067 (minterlink-mips16): Now an alias for minterlink-compressed.
24068 (mmicromips): New option.
24069 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
24070 (compare_and_swap_12): Likewise.
24071 (sync_add<mode>): Likewise.
24072 (sync_<optab>_12): Likewise.
24073 (sync_old_<optab>_12): Likewise.
24074 (sync_new_<optab>_12): Likewise.
24075 (sync_nand_12): Likewise.
24076 (sync_old_nand_12): Likewise.
24077 (sync_new_nand_12): Likewise.
24078 (sync_sub<mode>): Likewise.
24079 (sync_old_add<mode>): Likewise.
24080 (sync_old_sub<mode>): Likewise.
24081 (sync_new_add<mode>): Likewise.
24082 (sync_new_sub<mode>): Likewise.
24083 (sync_<optab><mode>): Likewise.
24084 (sync_old_<optab><mode>): Likewise.
24085 (sync_new_<optab><mode>): Likewise.
24086 (sync_nand<mode>): Likewise.
24087 (sync_old_nand<mode>): Likewise.
24088 (sync_new_nand<mode>): Likewise.
24089 (sync_lock_test_and_set<mode>): Likewise.
24090 (test_and_set_12): Likewise.
24091 (atomic_compare_and_swap<mode>): Likewise.
24092 (atomic_exchange<mode>_llsc): Likewise.
24093 (atomic_fetch_add<mode>_llsc): Likewise.
24094 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
24095 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
24096 (umips_save_restore_pattern_p): Likewise.
24097 (umips_load_store_pair_p): Likewise.
24098 (umips_output_load_store_pair): Likewise.
24099 (umips_movep_target_p): Likewise.
24100 (umips_12bit_offset_address_p): Likewise.
24101 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
24102 (mips_base_mips16): Rename this...
24103 (mips_base_compression_flags): ...to this. Update all uses.
24104 (mips_attribute_table): Add micromips, nomicromips and nocompression.
24105 (mips_mips16_decl_p): Delete.
24106 (mips_nomips16_decl_p): Delete.
24107 (mips_get_compress_on_flags): New function.
24108 (mips_get_compress_off_flags): New function.
24109 (mips_get_compress_mode): New function.
24110 (mips_get_compress_on_name): New function.
24111 (mips_get_compress_off_name): New function.
24112 (mips_insert_attributes): Support multiple compression types.
24113 (mips_merge_decl_attributes): Likewise.
24114 (umips_12bit_offset_address_p): New function.
24115 (mips_start_function_definition): Emit .set micromips directive.
24116 (mips_call_may_need_jalx_p): New function.
24117 (mips_function_ok_for_sibcall): Add microMIPS support.
24118 (mips_print_operand_punctuation): Support short delay slots and
24119 compact jumps.
24120 (umips_swm_mask, umips_swm_encoding): New.
24121 (umips_build_save_restore): New function.
24122 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
24123 (was_mips16_p): Remove.
24124 (old_compression_mode): New.
24125 (mips_set_compression_mode): New function.
24126 (mips_set_current_function): Add microMIPS support.
24127 (mips_option_override): Likewise.
24128 (umips_save_restore_pattern_p): New function.
24129 (umips_output_save_restore): New function.
24130 (umips_load_store_pair_p_1): New function.
24131 (umips_load_store_pair_p): New function.
24132 (umips_output_load_store_pair_1): New function.
24133 (umips_output_load_store_pair): New function.
24134 (umips_movep_target_p) New function.
24135 (mips_prepare_pch_save): Add microMIPS support.
24136 * config/mips/mips.h (TARGET_COMPRESSION): New.
24137 (TARGET_CPU_CPP_BUILTINS): Update macro
24138 to use new compression flags and to support microMIPS.
24139 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
24140 (MIPS_ARCH_FLOAT_SPEC): Likewise.
24141 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
24142 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
24143 (ASM_SPEC): Support mmicromips and mno-micromips.
24144 (M16STORE_REG_P): New macro.
24145 (MIPS_CALL): Support TARGET_MICROMIPS.
24146 (MICROMIPS_J): New macro.
24147 (mips_base_mips16): Rename this...
24148 (mips_base_compression_flags): ...to this.
24149 (UMIPS_12BIT_OFFSET_P): New macro.
24150 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
24151 (MULTILIB_DIRNAMES): Likewise.
24152
5e5df392
TV
241532013-02-25 Tom de Vries <tom@codesourcery.com>
24154
24155 PR rtl-optimization/56131
24156 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
24157 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
24158 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
24159
3fdb53c1
TB
241602013-02-25 Tobias Burnus <burnus@net-b.de>
24161
24162 * doc/invoke.texi (-fsanitize=): Move from optimization
24163 to debugging options.
24164
ed358aea
AB
241652013-02-25 Andrey Belevantsev <abel@ispras.ru>
24166
24167 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
24168
f45e9053
AB
241692013-02-25 Andrey Belevantsev <abel@ispras.ru>
24170 Alexander Monakov <amonakov@ispras.ru>
24171
24172 PR middle-end/56077
24173 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
24174 flush pending lists also on non-jumps. Adjust comment.
24175
6941b508
CM
241762013-02-24 Catherine Moore <clm@codesourcery.com>
24177 Maciej W. Rozycki <macro@codesourcery.com>
24178 Tom de Vries <tom@codesourcery.com>
a72d8780 24179 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
24180 Iain Sandoe <iain@codesourcery.com>
24181 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 24182 Chao-ying Fu <fu@mips.com>
6941b508
CM
24183
24184 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 24185 Document new function attributes.
6941b508
CM
24186 * doc/invoke.texi (minterlink-compressed, mmicromips,
24187 m14k, m14ke, m14kec): Document new options.
24188 (minterlink-mips16): Update documentation.
24189 * doc/md.texi (ZC, ZD): Document new constraints.
24190 * configure.ac (gcc_cv_as_micromips): Check if linker
24191 supports the .set micromips directive.
24192 * configure: Regenerate.
24193 * config.in: Regenerate.
24194 * config/mips/mips-tables.opt: Regenerate.
24195 * config/mips/micromips.md: New file.
24196 * constraints.md (ZC, AD): New constraints.
24197 * config/mips/predicates.md (movep_src_register): New predicate.
24198 (movep_src_operand): New predicate.
24199 (non_volatile_mem_operand): New predicate.
24200 * config/mips/mips.md (multimem): New type.
24201 (length): Differentiate between 17-bit and 18-bit branch offsets.
24202 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 24203 (mov_<load>l): Use ZC constraint.
6941b508
CM
24204 (mov_<load>r): Likewise.
24205 (mov_<store>l): Likewise.
24206 (mov_<store>r): Likewise.
24207 (*branch_equality<mode>_inverted): Add microMIPS support.
24208 (*branch_equality<mode>): Likewise.
24209 (*jump_absolute): Likewise.
24210 (indirect_jump_<mode>): Likewise.
24211 (tablejump_<mode>): Likewise.
24212 (<optab>_internal): Likewise.
24213 (sibcall_internal): Likewise.
24214 (sibcall_value_internal): Likewise.
24215 (prefetch): Use constraint ZD.
24216 * config/mips/mips.opt (minterlink-compressed): New option.
24217 (minterlink-mips16): Now an alias for minterlink-compressed.
24218 (mmicromips): New option.
24219 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
24220 (compare_and_swap_12): Likewise.
24221 (sync_add<mode>): Likewise.
24222 (sync_<optab>_12): Likewise.
24223 (sync_old_<optab>_12): Likewise.
24224 (sync_new_<optab>_12): Likewise.
24225 (sync_nand_12): Likewise.
24226 (sync_old_nand_12): Likewise.
24227 (sync_new_nand_12): Likewise.
24228 (sync_sub<mode>): Likewise.
24229 (sync_old_add<mode>): Likewise.
24230 (sync_old_sub<mode>): Likewise.
24231 (sync_new_add<mode>): Likewise.
24232 (sync_new_sub<mode>): Likewise.
24233 (sync_<optab><mode>): Likewise.
24234 (sync_old_<optab><mode>): Likewise.
24235 (sync_new_<optab><mode>): Likewise.
24236 (sync_nand<mode>): Likewise.
24237 (sync_old_nand<mode>): Likewise.
24238 (sync_new_nand<mode>): Likewise.
24239 (sync_lock_test_and_set<mode>): Likewise.
24240 (test_and_set_12): Likewise.
24241 (atomic_compare_and_swap<mode>): Likewise.
24242 (atomic_exchange<mode>_llsc): Likewise.
24243 (atomic_fetch_add<mode>_llsc): Likewise.
24244 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
24245 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
24246 (umips_save_restore_pattern_p): Likewise.
24247 (umips_load_store_pair_p): Likewise.
24248 (umips_output_load_store_pair): Likewise.
24249 (umips_movep_target_p): Likewise.
24250 (umips_12bit_offset_address_p): Likewise.
24251 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
24252 (mips_base_mips16): Rename this...
24253 (mips_base_compression_flags): ...to this. Update all uses.
24254 (mips_attribute_table): Add micromips, nomicromips and nocompression.
24255 (mips_mips16_decl_p): Delete.
24256 (mips_nomips16_decl_p): Delete.
3fdb53c1 24257 (mips_get_compress_on_flags): New function.
6941b508
CM
24258 (mips_get_compress_off_flags): New function.
24259 (mips_get_compress_mode): New function.
24260 (mips_get_compress_on_name): New function.
24261 (mips_get_compress_off_name): New function.
24262 (mips_insert_attributes): Support multiple compression types.
24263 (mips_merge_decl_attributes): Likewise.
24264 (umips_12bit_offset_address_p): New function.
24265 (mips_start_function_definition): Emit .set micromips directive.
24266 (mips_call_may_need_jalx_p): New function.
24267 (mips_function_ok_for_sibcall): Add microMIPS support.
24268 (mips_print_operand_punctuation): Support short delay slots and
24269 compact jumps.
24270 (umips_swm_mask, umips_swm_encoding): New.
24271 (umips_build_save_restore): New function.
24272 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
24273 (was_mips16_p): Remove.
24274 (old_compression_mode): New.
24275 (mips_set_compression_mode): New function.
24276 (mips_set_current_function): Add microMIPS support.
24277 (mips_option_override): Likewise.
24278 (umips_save_restore_pattern_p): New function.
24279 (umips_output_save_restore): New function.
24280 (umips_load_store_pair_p_1): New function.
24281 (umips_load_store_pair_p): New function.
24282 (umips_output_load_store_pair_1): New function.
24283 (umips_output_load_store_pair): New function.
24284 (umips_movep_target_p) New function.
24285 (mips_prepare_pch_save): Add microMIPS support.
24286 * config/mips/mips.h (TARGET_COMPRESSION): New.
24287 (TARGET_CPU_CPP_BUILTINS): Update macro
24288 to use new compression flags and to support microMIPS.
24289 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
24290 (MIPS_ARCH_FLOAT_SPEC): Likewise.
24291 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
24292 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
24293 (ASM_SPEC): Support mmicromips and mno-micromips.
24294 (M16STORE_REG_P): New macro.
24295 (MIPS_CALL): Support TARGET_MICROMIPS.
24296 (MICROMIPS_J): New macro.
24297 (mips_base_mips16): Rename this...
24298 (mips_base_compression_flags): ...to this.
24299 (UMIPS_12BIT_OFFSET_P): New macro.
24300 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
24301 (MULTILIB_DIRNAMES): Likewise.
24302
cdebbc6d
JJ
243032013-02-24 Jakub Jelinek <jakub@redhat.com>
24304
24305 PR target/52555
24306 * target-globals.c (save_target_globals): For init_reg_sets and
24307 target_reinit remporarily set this_fn_optabs to this_target_optabs.
24308
18c63565
JG
243092013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
24310
24311 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
24312 * config/aarch64/t-aarch64
24313 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
24314
2194f7a2
VM
243152013-02-22 Vladimir Makarov <vmakarov@redhat.com>
24316
24317 PR inline-asm/56148
24318 * lra-constraints.c (process_alt_operands): Reload operand
24319 conflicting with earlier clobber only if no more other conflicting
24320 operands.
24321
7d613735
JJ
243222013-02-22 Jakub Jelinek <jakub@redhat.com>
24323
24324 PR sanitizer/56393
24325 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
24326 if not linking a shared library.
24327
ac8d93a7
SL
243282013-02-22 Seth LaForge <sethml@google.com>
24329
24330 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
24331
e0237780
GY
243322013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
24333
3fdb53c1
TB
24334 * config/arm/arm.md (split for extendsidi): Update condition.
24335 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
24336 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
24337 (qhs_zextenddi_cstr): Likewise.
e0237780 24338
d7fde18c
JJ
243392013-02-21 Jakub Jelinek <jakub@redhat.com>
24340
be63b77d
JJ
24341 PR middle-end/56420
24342 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
24343 avoid signed wrapping.
24344 (expand_mult): Handle properly multiplication by
24345 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
24346 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
24347 in the compiler if coeff is HOST_WIDE_INT_MIN.
24348 (expand_divmod): Don't make ext_op1 static, change it's type to
24349 uhwi. Avoid undefined behavior in -INTVAL (op1).
24350
d7fde18c
JJ
24351 PR rtl-optimization/50339
24352 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
24353 field.
24354 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
24355 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
24356 into splitting_ashiftrt field.
24357 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
24358 ASHIFTRT.
24359 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
24360 choices.
24361
6aad4455
AH
243622013-02-20 Aldy Hernandez <aldyh@redhat.com>
24363
24364 PR middle-end/56108
24365 * trans-mem.c (execute_tm_mark): Do not expand transactions that
24366 are sure to go irrevocable.
24367
38fe784d
HPN
243682013-02-21 Hans-Peter Nilsson <hp@axis.com>
24369
24370 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
24371 scalars are valid operands.
24372
0fd44da3
MJ
243732013-02-21 Martin Jambor <mjambor@suse.cz>
24374
24375 PR tree-optimization/56310
24376 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
24377 only matching indices and non-negative final offsets.
24378 (intersect_aggregates_with_edge): Pass src_idx to
24379 agg_replacements_to_vector. Pass src_idx insstead of index to
24380 intersect_with_agg_replacements.
24381
7a92038b
MJ
243822013-02-21 Martin Jambor <mjambor@suse.cz>
24383
24384 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
24385 instead of hard-wired defaults.
24386
c0da9c37
MR
243872013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
24388
24389 * doc/invoke.texi (MIPS Options): Update documentation of the
24390 floating-point multiply-accumulate instruction restrictions.
24391
d247ea0c 243922013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
24393
24394 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
24395 asan_shadow_offset on x86_64 linux.
24396
22deefcb
RB
243972013-02-21 Richard Biener <rguenther@suse.de>
24398
24399 PR tree-optimization/56415
24400 Revert
24401 2013-02-11 Richard Biener <rguenther@suse.de>
24402
24403 PR tree-optimization/56273
24404 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
24405 first VRP run.
24406
7bcc6e75
JJ
244072013-02-21 Jakub Jelinek <jakub@redhat.com>
24408
a0ad148f
JJ
24409 PR bootstrap/56258
24410 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
24411 instead of @itemx.
24412
7bcc6e75
JJ
24413 PR inline-asm/56405
24414 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
24415 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
24416
a0a7b611
JH
244172013-02-20 Jan Hubicka <jh@suse.cz>
24418
24419 PR tree-optimization/56265
88b97037
UB
24420 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
24421 when target is referenced for first time.
a0a7b611 24422
c0e50f72
RB
244232013-02-20 Richard Biener <rguenther@suse.de>
24424
24425 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
24426 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
24427 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
24428 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
24429 not return anything.
24430 (rename_ssa_copies): Do not remove unused locals.
24431 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 24432 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
24433 * passes.c (execute_function_todo): Do not schedule unused locals
24434 removal if cleanup_tree_cfg did something.
24435 * tree-ssa-live.c (remove_unused_locals): Dump statistics
24436 about the number of removed locals.
24437
a52ca739
RB
244382013-02-20 Richard Biener <rguenther@suse.de>
24439
24440 PR tree-optimization/56398
88b97037 24441 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 24442
ec9c9d1b
MJ
244432013-02-20 Martin Jambor <mjambor@suse.cz>
24444
24445 PR tree-optimization/55334
24446 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
24447 restricted pointers to arrays.
24448
e91c8ed6 244492013-02-20 Richard Biener <rguenther@suse.de>
88b97037 24450 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
24451
24452 PR tree-optimization/56396
24453 * tree-ssa-ccp.c (n_const_val): New static variable.
24454 (get_value): Return NULL for SSA names we don't have a lattice
24455 entry for.
24456 (ccp_initialize): Initialize n_const_val.
24457 * tree-ssa-copy.c (n_copy_of): New static variable.
24458 (init_copy_prop): Initialize n_copy_of.
24459 (get_value): Return NULL_TREE for SSA names we don't have a
24460 lattice entry for.
24461
3d916479
MJ
244622013-02-20 Martin Jambor <mjambor@suse.cz>
24463
24464 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
24465
71a86758
RB
244662013-02-20 Richard Biener <rguenther@suse.de>
24467
24468 * genpreds.c (write_lookup_constraint): Do not compare first
24469 letter of the constraint again.
24470
79836a12
RB
244712013-02-20 Richard Biener <rguenther@suse.de>
24472
24473 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
24474 and ceil_log2.
24475 (get_use_iv_cost): Terminate hashtable walk when coming across
24476 an empty entry.
24477
bbe4fb2c
IZ
244782013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
24479
24480 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
24481 reassociation for avx2 targets.
24482
a72d8780 244832012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 24484
c77f83d5
EI
24485 * config/microblaze/microblaze.c: microblaze_has_clz = 0
24486 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 24487 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
24488 version and TARGET_PATTERN_COMPARE check
24489 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 24490
a72d8780 244912012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 24492
a72d8780 24493 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
24494 function before branching.
24495
242387fa
AB
244962012-02-19 Andrey Belevantsev <abel@ispras.ru>
24497
24498 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
24499 DUMP_INSN_RTX_UID.
24500 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
24501
b4979ab9
AB
245022012-02-19 Andrey Belevantsev <abel@ispras.ru>
24503
24504 PR middle-end/55889
b4979ab9
AB
24505 * sel-sched.c: Include ira.h.
24506 (implicit_clobber_conflict_p): New function.
24507 (moveup_expr): Use it.
88b97037 24508 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 24509
24d63016
RB
245102013-02-19 Richard Biener <rguenther@suse.de>
24511
24512 PR tree-optimization/56384
24513 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
24514 (vn_hash_type): Split out from ...
24515 (vn_hash_constant_with_type): ... here.
24516 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
24517 (vn_phi_eq): Compare types from vn_phi_s structure.
24518 (vn_phi_lookup): Populate vn_phi_s type.
24519 (vn_phi_insert): Likewise.
24520
a475fd3d
JJ
245212013-02-19 Jakub Jelinek <jakub@redhat.com>
24522
47cc28f5
JJ
24523 PR tree-optimization/56350
24524 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
24525 if haven't found reduction or nested cycle operand, rather than
24526 asserting we must find it.
24527
a475fd3d
JJ
24528 PR tree-optimization/56381
24529 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
24530 to fold_build3.
24531
245322013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
24533 Jakub Jelinek <jakub@redhat.com>
24534
24535 PR target/52555
24536 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
24537 (swap_optab_enable): Same.
24538 (init_all_optabs): Use argument instead of global.
88b97037 24539 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
24540 * expr.h (init_all_optabs): Add argument to prototype.
24541 (TREE_OPTIMIZATION_OPTABS): New.
24542 (save_optabs_if_changed): Protoize.
24543 * optabs.h: Declare this_fn_optabs.
24544 * optabs.c (save_optabs_if_changed): New.
24545 Declare this_fn_optabs.
24546 (init_optabs): Add argument to init_all_optabs() call.
24547 * function.c (invoke_set_current_function_hook): Handle per
24548 function optabs.
24549 * function.h (struct function): New field optabs.
24550 * config/mips/mips.c (mips_set_mips16_mode): Handle when
24551 optimization_current_node has changed.
24552 * target-globals.h (save_target_globals_default_opts): Protoize.
24553 * target-globals.c (save_target_globals_default_opts): New.
24554
3f587ca3
JDA
245552013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24556
24557 PR target/56347
24558 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
24559 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
24560
24561 PR target/56214
24562 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
24563 and HImode, require all displacements to be an integer multiple of
24564 their mode size.
ceaca33e
JDA
24565 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
24566 only allow QImode and HImode when reload is in progress and strict is
24567 true. Likewise for symbolic addresses. Use base14_operand to check
24568 displacements in REG+BASE addresses.
24569
fe0b4796
RB
245702013-02-18 Richard Biener <rguenther@suse.de>
24571
24572 PR tree-optimization/56366
24573 * tree-vect-loop.c (get_initial_def_for_induction): Properly
24574 handle sign-conversion of outer-loop initial induction value.
24575
6aaf596b
RB
245762013-02-18 Richard Biener <rguenther@suse.de>
24577
73db8ff1 24578 PR middle-end/56349
6aaf596b
RB
24579 * cfghooks.c (merge_blocks): If we merge a latch into another
24580 block adjust references to it.
24581 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
24582 (verify_loop_structure): Verify that a recorded latch is in fact
24583 a latch.
24584
5e97dfb6
RB
245852013-02-18 Richard Biener <rguenther@suse.de>
24586
24587 PR tree-optimization/56321
24588 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
24589 order SSA name release and virtual operand unlinking.
24590
825527e8
EI
245912013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24592
24593 * config/microblaze/microblaze.md (save_stack_block): Define.
24594 (restore_stack_block): Likewise.
24595
debd11d9
EI
245962013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24597
24598 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
24599 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
24600 * config/microblaze/microblaze.c (microblaze_option_override):
24601 Bail out early for PIC modes when target does not support PIC.
24602
8ec77be0
EI
246032013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24604
88b97037 24605 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
24606 Replace with a microblaze version.
24607 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 24608 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
24609 microblaze.
24610
b41288b3
JJ
246112013-02-16 Jakub Jelinek <jakub@redhat.com>
24612 Dodji Seketeli <dodji@redhat.com>
24613
24614 PR asan/56330
88b97037 24615 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
24616 (instrument_mem_region_access): Do not forget to always put
24617 instrumentation of the of 'base' and 'base + len' in a "if (len !=
24618 0) statement, even for cases where either 'base' or 'base + len'
24619 are not instrumented -- because they have been previously
24620 instrumented. Simplify the logic by putting all the statements
24621 instrument 'base + len' inside a sequence, and then insert that
24622 sequence right before the current insertion point. Then, to
24623 instrument 'base + len', just get an iterator on that statement.
24624 And do not forget to update the pointer to iterator the function
24625 received as argument.
24626
47918951
VM
246272013-02-15 Vladimir Makarov <vmakarov@redhat.com>
24628
24629 PR rtl-optimization/56348
24630 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
24631
3fb7c699
SB
246322013-02-15 Steven Bosscher <steven@gcc.gnu.org>
24633
24634 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
24635 (clean_graph_dump_file): Pass base to start_graph_dump.
24636
576fe41a
RH
246372013-02-14 Richard Henderson <rth@redhat.com>
24638
24639 PR target/55941
24640 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
24641
bb3accfa
SB
246422013-02-14 Steven Bosscher <steven@gcc.gnu.org>
24643
24644 * collect2-aix.h: Define F_LOADONLY.
24645
03143140
RB
246462013-02-14 Richard Biener <rguenther@suse.de>
24647
24648 PR lto/50494
24649 * varasm.c (output_constant_def_1): Get the decl representing
24650 the constant as argument.
24651 (output_constant_def): Wrap output_constant_def_1.
24652 (make_decl_rtl): Use output_constant_def_1 with the decl
24653 representing the constant.
24654 (build_constant_desc): Optionally re-use a decl already
24655 representing the constant.
24656 (tree_output_constant_def): Adjust.
24657
8fb06726
DS
246582013-02-14 Dodji Seketeli <dodji@redhat.com>
24659
24660 Fix an asan crash
24661 * asan.c (instrument_builtin_call): Really put the length of the
24662 second source argument into src1_len.
24663
c4bfe8bf
JJ
246642013-02-13 Jakub Jelinek <jakub@redhat.com>
24665
24666 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
24667 argument. If it is false, don't create edge from then_bb to
24668 fallthru_bb.
24669 (insert_if_then_before_iter): Pass true to it.
24670 (build_check_stmt): Pass false to it.
24671 (transform_statements): Flush hash table only on extended basic
24672 block boundaries, rather than at the beginning of every bb.
24673 Don't flush hash table on nonfreeing_call_p calls.
24674 * tree-flow.h (nonfreeing_call_p): New prototype.
24675 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
24676
7afe2801
DM
246772013-02-13 David S. Miller <davem@davemloft.net>
24678
24679 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
24680
70cc3288
VM
246812013-02-13 Vladimir Makarov <vmakarov@redhat.com>
24682
24683 PR target/56184
24684 * ira.c (max_regno_before_ira): Move from ...
24685 (ira): ... here.
24686 (fix_reg_equiv_init): Use max_regno_before_ira instead of
24687 vec_safe_length.
24688
6422242b
JJ
246892013-02-13 Jakub Jelinek <jakub@redhat.com>
24690
24691 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
24692
976a81ee
RB
246932013-02-13 Richard Biener <rguenther@suse.de>
24694
24695 PR lto/56295
24696 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
24697 globals in MEM_REFs.
24698
c1874a87
RB
246992013-02-13 Richard Biener <rguenther@suse.de>
24700
24701 * loop-init.c (loop_optimizer_init): Clear loop state when
24702 re-initializing preserved loops.
24703 * loop-unswitch.c (unswitch_single_loop): Return whether
24704 we unswitched the loop. Do not verify loop state here.
88b97037 24705 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 24706
b4ab7d34
KS
247072013-02-13 Kostya Serebryany <kcc@google.com>
24708
88b97037
UB
24709 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
24710 on x86_64 linux.
b4ab7d34
KS
24711 * sanitizer.def: Rename __asan_init to __asan_init_v1.
24712
bdcbe80c
DS
247132013-02-12 Dodji Seketeli <dodji@redhat.com>
24714
24715 Avoid instrumenting duplicated memory access in the same basic block
24716 * Makefile.in (asan.o): Add new dependency on hash-table.h
24717 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
24718 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
24719 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
24720 (free_mem_ref_resources, has_mem_ref_been_instrumented)
24721 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
24722 (get_mem_ref_of_assignment): New functions.
24723 (get_mem_refs_of_builtin_call): Extract from
24724 instrument_builtin_call and tweak a little bit to make it fit with
24725 the new signature.
24726 (instrument_builtin_call): Use the new
24727 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
24728 of is_gimple_builtin_call.
24729 (instrument_derefs, instrument_mem_region_access): Insert the
24730 instrumented memory reference into the hash table.
24731 (maybe_instrument_assignment): Renamed instrument_assignment into
24732 this, and change it to advance the iterator when instrumentation
24733 actually happened and return true in that case. This makes it
24734 homogeneous with maybe_instrument_assignment, and thus give a
24735 chance to callers to be more 'regular'.
24736 (transform_statements): Clear the memory reference hash table
24737 whenever we enter a new BB, when we cross a function call, or when
24738 we are done transforming statements. Use
24739 maybe_instrument_assignment instead of instrumentation. No more
24740 need to special case maybe_instrument_assignment and advance the
24741 iterator after calling it; it's now handled just like
24742 maybe_instrument_call. Update comment.
24743
4861a1f7
RB
247442013-02-13 Richard Biener <rguenther@suse.de>
24745
24746 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
24747 Fix loop discovery code.
24748
1c86bd80
VM
247492013-02-12 Vladimir Makarov <vmakarov@redhat.com>
24750
24751 PR inline-asm/56148
24752 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 24753 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
24754 the operand is not reloaded. Prefer to reload conflicting operand
24755 if earlyclobber and matching operands are the same.
24756
7cbda518
RB
247572013-02-12 Richard Biener <rguenther@suse.de>
24758
24759 PR lto/56297
24760 * lto-streamer-out.c (write_symbol): Do not output symbols
24761 for hard register variables.
24762
e68a4ef6
GJL
247632013-02-12 Georg-Johann Lay <avr@gjlay.de>
24764
24765 PR target/54222
24766 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
24767 (umulsidi3_insn, mulsidi3_insn): New insns.
24768
a72d8780 247692013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
24770
24771 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
24772 (struct tune_params): Add vec_costs field.
24773 * config/arm/arm.c (arm_builtin_vectorization_cost)
24774 (arm_add_stmt_cost): New functions.
24775 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
24776 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
24777 (arm_default_vec_cost): New struct of type cpu_vec_costs.
24778 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
24779 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
24780 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
24781 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
24782
43320568
RB
247832013-02-12 Richard Biener <rguenther@suse.de>
24784
24785 PR lto/56295
24786 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
24787 decls again if possible.
24788
a011aa39
RB
247892013-02-12 Richard Biener <rguenther@suse.de>
24790
24791 PR middle-end/56288
24792 * tree-ssa.c (verify_ssa_name): Fix check, move
24793 SSA_NAME_IN_FREE_LIST check up.
24794
6da26889
JJ
247952013-02-12 Jakub Jelinek <jakub@redhat.com>
24796 Steven Bosscher <steven@gcc.gnu.org>
24797
24798 PR rtl-optimization/56151
24799 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
24800 equal to op0 or op1, and last_insn pattern is CODE operation
24801 with MEM dest and one of the operands matches that MEM.
24802
f80e0faf
ST
248032013-02-11 Sriraman Tallam <tmsriramgoogle.com>
24804
24805 * doc/extend.texi: Document Function Multiversioning and "default"
24806 parameter string to target attribute.
24807 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
24808 target attribute parameter is "default".
24809 (ix86_compare_version_priority): Remove checks for target attribute.
24810 (ix86_mangle_function_version_assembler_name): Change error to sorry.
24811 Remove check for target attribute equal to NULL. Add assert.
24812 (ix86_generate_version_dispatcher_body): Change error to sorry.
24813
6c59ffd1
IS
248142013-02-11 Iain Sandoe <iain@codesourcery.com>
24815 Jack Howarth <howarth@bromo.med.uc.edu>
24816 Patrick Marlier <patrick.marlier@gmail.com>
24817
24818 PR libitm/55693
24819 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
24820 define ENDFILE_SPEC as TM_DESTRUCTOR.
24821 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
24822
a72d8780 248232013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
24824 Jack Howarth <howarth@bromo.med.uc.edu>
24825 Jakub Jelinek <jakub@redhat.com>
24826
24827 PR sanitizer/55617
24828 * config/darwin.c (cdtor_record): Rename ctor_record.
24829 (sort_cdtor_records): Rename sort_ctor_records.
24830 (finalize_dtors): New routine to sort destructors by
24831 priority before use in assemble_integer.
24832 (machopic_asm_out_destructor): Use finalize_dtors if needed.
24833
b63fe007
UB
248342013-02-11 Uros Bizjak <ubizjak@gmail.com>
24835
24836 PR rtl-optimization/56275
24837 * simplify-rtx.c (avoid_constant_pool_reference): Check that
24838 offset is non-negative and less than cmode size before
24839 calling simplify_subreg.
24840
8e89b5b5
RB
248412013-02-11 Richard Biener <rguenther@suse.de>
24842
24843 PR tree-optimization/56264
24844 * cfgloop.h (fix_loop_structure): Adjust prototype.
24845 * loop-init.c (fix_loop_structure): Return the number of
24846 newly discovered loops.
24847 * tree-cfgcleanup.c (repair_loop_structures): When new loops
24848 are discovered, do a full loop-closed SSA rewrite.
24849
b4a4b56d
RB
248502013-02-11 Richard Biener <rguenther@suse.de>
24851
24852 PR tree-optimization/56273
24853 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
24854 first VRP run.
24855 (check_array_ref): Fix missing newline in dumps.
24856 (search_for_addr_array): Likewise.
24857
0c885229
DE
248582013-02-09 David Edelsohn <dje.gcc@gmail.com>
24859
24860 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
24861
59ac9a55
JJ
248622013-02-09 Jakub Jelinek <jakub@redhat.com>
24863
24864 PR target/56256
24865 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
24866
25bb0bb5
VM
248672013-02-08 Vladimir Makarov <vmakarov@redhat.com>
24868
24869 PR rtl-optimization/56246
0c885229 24870 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
24871 reload pseudo.
24872 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
24873 constraints are satisfied.
24874
a698cc03
JL
248752013-02-08 Jeff Law <law@redhat.com>
24876
24877 PR debug/53948
24878 * emit-rtl.c (reg_is_parm_p): New function.
24879 * regs.h (reg_is_parm_p): New prototype.
24880 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
24881 callee-clobbered registers.
24882
e1122ddd
MM
248832013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24884
24885 PR target/56043
24886 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
24887 If there is no implicit builtin declaration, just return NULL.
24888
19c5f6e6
UB
248892013-02-08 Uros Bizjak <ubizjak@gmail.com>
24890
24891 * config/i386/sse.md (FMAMODEM): New mode iterator.
24892 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
24893 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
24894
2480f2ca 248952013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 24896
2480f2ca
UB
24897 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
24898 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
24899 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
24900
249012013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
24902
24903 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
24904 (microblaze*-*-elf): Likewise.
24905 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
24906 LINK_SPEC.
24907 * config/microblaze/microblaze-c.c: Add builtin defines for
24908 _LITTLE_ENDIAN and _BIG_ENDIAN.
24909 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
24910 add to TARGET_DEFAULT flags.
76ef61fb 24911 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
24912 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
24913 * config/microblaze/microblaze.md: Update extendsidi2 and
24914 movdi_internal instructions to use low-order / high-order reg
24915 print_operands.
24916 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
24917 options and inversemask / mask of LITTLE_ENDIAN.
24918 * config/microblaze/t-microblaze: Expand multilib options to
24919 include mlittle-endian (le) and update exceptions patterns.
24920
600a5961
JJ
249212013-02-08 Jakub Jelinek <jakub@redhat.com>
24922
5df81313
JJ
24923 PR rtl-optimization/56195
24924 * lra-constraints.c (get_reload_reg): Don't reuse regs
24925 if they have smaller mode than requested, if they have
24926 wider mode than requested, try to return a SUBREG.
24927
600a5961
JJ
24928 PR tree-optimization/56250
24929 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
24930 if type is unsigned and code isn't MULT_EXPR.
24931
ff544649
GJL
249322013-02-08 Georg-Johann Lay <avr@gjlay.de>
24933
24934 PR tree-optimization/56064
24935 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
24936 bits according to mode.
24937 * fixed-value.h (fixed_from_double_int)
24938 (const_fixed_from_double_int): Adjust comments.
24939
e45cde98
RB
249402013-02-08 Richard Biener <rguenther@suse.de>
24941
24942 PR lto/56231
24943 * lto-streamer.h (struct data_in): Remove current_file, current_line
24944 and current_col members.
24945 * lto-streamer-out.c (lto_output_location): Stream changed bits
24946 en-block for efficiency.
24947 * lto-streamer-in.c (clear_line_info): Remove.
24948 (lto_input_location): Cache current file, line and column
24949 globally via local statics. Read changed bits en-block.
24950 (input_function): Do not call clear_line_info.
24951 (lto_read_body): Likewise.
24952 (lto_input_toplevel_asms): Likewise.
24953
c1ca73d8
MM
249542013-02-08 Michael Matz <matz@suse.de>
24955
24956 PR tree-optimization/52448
24957 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
24958 (nt_call_phase): New static.
24959 (add_or_mark_expr): Only mark accesses with newer phase than any
24960 call seen.
24961 (nonfreeing_call_p): New.
24962 (nt_init_block): Update nt_call_phase, mark blocks as visited.
24963 (nt_fini_block): Keep blocks marked as visited.
24964 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
24965
57548aa2
RB
249662013-02-08 Richard Biener <rguenther@suse.de>
24967
24968 * ira.c (ira): Free broken dominator information.
24969
8e10366f
UB
249702013-02-08 Uros Bizjak <ubizjak@gmail.com>
24971
24972 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
24973
f64fb0fa
MP
249742013-02-08 Marek Polacek <polacek@redhat.com>
24975
8e10366f 24976 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 24977
0375167b
RB
249782013-02-08 Richard Biener <rguenther@suse.de>
24979
24980 PR middle-end/56181
24981 * cfgloop.h (flow_loops_find): Adjust.
24982 (bb_loop_header_p): Declare.
24983 * cfgloop.c (bb_loop_header_p): New function split out from ...
24984 (flow_loops_find): ... here. Adjust function signature,
24985 support incremental loop structure update.
24986 (verify_loop_structure): Cleanup. Verify a loop is a loop.
24987 * cfgloopmanip.c (fix_loop_structure): Move ...
24988 * loop-init.c (fix_loop_structure): ... here.
24989 (apply_loop_flags): Split out from ...
24990 (loop_optimizer_init): ... here.
24991 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
24992 in incremental mode, only remove dead loops here.
24993
85d768f3
GJL
249942013-02-08 Georg-Johann Lay <avr@gjlay.de>
24995
24996 PR target/54222
24997 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
24998 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
24999 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
25000 (*round<mode>3.libgcc): New insns for fixed-modes.
25001 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
25002 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
25003 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
25004 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
25005 implementations. Define to __builtin_avr_absFX,
25006 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
25007 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
25008 __builtin_avr_countlsFX, respectively.
25009 * config/avr/avr-c.c (target.h): Include it.
25010 (enum avr_builtin_id): New enum.
25011 (avr_resolve_overloaded_builtin): New static function.
25012 (avr_register_target_pragmas): Use it to set
25013 targetm.resolve_overloaded_builtin.
25014 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
25015 tree nodes used by DEF_BUILTIN.
25016 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
25017 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
25018 <AVR_BUILTIN_xxBITS>: Same.
25019
661bc682
RB
250202013-02-08 Richard Biener <rguenther@suse.de>
25021
25022 * cfgloop.c (verify_loop_structure): Properly handle
25023 a loop exiting to another loop header.
25024 * ira-int.h (ira_loops): Remove.
25025 * ira.c (ira_loops): Remove.
25026 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
25027 (do_reload): Use loop_optimizer_finalize.
25028 * ira-build.c (create_loop_tree_nodes): Use get_loops and
25029 number_of_loops to access the loop tree.
25030 (more_one_region_p): Likewise.
25031 (finish_loop_tree_nodes): Likewise.
25032 (rebuild_regno_allocno_maps): Likewise.
25033 (mark_loops_for_removal): Likewise.
25034 (mark_all_loops_for_removal): Likewise.
25035 (remove_unnecessary_regions): Likewise.
25036 (ira_build): Likewise.
25037 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
25038
0d5049b2
RB
250392013-02-08 Richard Biener <rguenther@suse.de>
25040
25041 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
25042 * ipa-pure-const.c (analyze_function): Avoid calling
25043 mark_irreducible_loops twice.
8e10366f 25044 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 25045
499f32e8
DM
250462013-02-07 David S. Miller <davem@davemloft.net>
25047
25048 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
25049 on 'reg'.
25050 * var-tracking.c (vt_add_function_parameter): Test the presence of
25051 HAVE_window_save properly and do not remap argument registers when
25052 we have a leaf function.
25053
6edc3e32
UB
250542013-02-07 Uros Bizjak <ubizjak@gmail.com>
25055
25056 PR bootstrap/56227
25057 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
25058 instead of "ll".
25059 * config/i386/i386.c (ix86_print_operand): Ditto.
25060
5306401f
VM
250612013-02-07 Vladimir Makarov <vmakarov@redhat.com>
25062
6edc3e32 25063 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 25064
027ece11
VM
250652013-02-07 Vladimir Makarov <vmakarov@redhat.com>
25066
25067 PR rtl-optimization/56225
25068 * lra-constraints.c (process_alt_operands): Check that reload hard
25069 reg can hold value for strict_low_part.
25070
f980dfdb
JJ
250712013-02-07 Jakub Jelinek <jakub@redhat.com>
25072
25073 PR debug/56154
25074 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
25075 dwarf2out_end_function.
25076 (in_first_function_p, maybe_at_text_label_p,
25077 first_loclabel_num_not_at_text_label): New variables.
25078 (dwarf2out_var_location): In the first function find out
6edc3e32 25079 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
25080 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
25081 functions.
25082
73dd3123
EB
250832013-02-07 Eric Botcazou <ebotcazou@adacore.com>
25084
25085 PR rtl-optimization/56178
25086 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
25087 SUBREG of a register. Tidy up related block of code.
25088 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
25089 note if the source is a register or a SUBREG of a register.
25090
e3936f47
JJ
250912013-02-07 Jakub Jelinek <jakub@redhat.com>
25092
25093 PR target/56228
25094 * config/rs6000/rs6000.md (ptrm): New mode attr.
25095 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
25096 call_value_indirect_aix<pttrsize>,
25097 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
25098 m in constraints.
25099
d96d674b
MH
251002013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25101
25102 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
25103 if -bnortl. Convert to strcmp and strncmp.
25104
921f2dee
AM
251052013-02-07 Alan Modra <amodra@gmail.com>
25106
25107 PR target/54009
25108 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
25109 addresses won't wrap when offsetting.
25110 (rs6000_secondary_reload): Provide secondary reloads needed for
25111 wrapping LO_SUM addresses.
25112
d09c7dba
TS
251132013-02-06 Thomas Schwinge <thomas@codesourcery.com>
25114
25115 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
25116 MACH, just __MACH__.
25117
a44bbd48
RB
251182013-02-06 Richard Biener <rguenther@suse.de>
25119
25120 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
25121 instead of calling fix_loop_structure.
25122
6d840d99
JJ
251232013-02-06 Jakub Jelinek <jakub@redhat.com>
25124
25125 PR middle-end/56217
25126 * omp-low.c (use_pointer_for_field): Return false if
25127 lower_send_shared_vars doesn't generate any copy-out code.
25128
0f33baa9
TV
251292013-02-06 Tom de Vries <tom@codesourcery.com>
25130
25131 PR rtl-optimization/56131
25132 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
25133 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
25134 of the label is NULL. Add comment.
25135
11f1e3ab
JJ
251362013-02-05 Jakub Jelinek <jakub@redhat.com>
25137
31502f9f
JJ
25138 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
25139
a74db9bd
JJ
25140 PR sanitizer/55374
25141 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
25142 (STATIC_LIBTSAN_LIBS): Likewise.
25143 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
25144 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
25145 is defined, don't add anything else beyond that.
25146 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
25147 (LINK_COMMAND_SPEC): Use them.
25148
11f1e3ab
JJ
25149 PR tree-optimization/56205
25150 * tree-stdarg.c (check_all_va_list_escapes): Return true if
25151 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
25152 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
25153
14ac6aa2
RB
251542013-02-05 Richard Biener <rguenther@suse.de>
25155
25156 PR tree-optimization/53342
25157 PR tree-optimization/53185
25158 * tree-vectorizer.h (vect_check_strided_load): Remove.
25159 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
25160 not disallow peeling for vectorized strided loads.
25161 (vect_check_strided_load): Make static and simplify.
25162 (vect_analyze_data_refs): Adjust.
25163 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
25164 correctly when vectorizing strided loads.
25165
6f22445a
RB
251662013-02-05 Richard Biener <rguenther@suse.de>
25167
25168 * doc/install.texi: Refer to ISL, not PPL.
25169
39f9719e
JH
251702013-02-05 Jan Hubicka <jh@suse.cz>
25171
ec4224ac
JH
25172 PR tree-optimization/55789
25173 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
25174
251752013-02-05 Jan Hubicka <jh@suse.cz>
25176
25177 PR tree-optimization/55789
39f9719e
JH
25178 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
25179 the dead call anyway.
25180
956d3b33
EB
251812013-02-05 Eric Botcazou <ebotcazou@adacore.com>
25182
25183 PR sanitizer/55374
25184 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
25185
251862013-02-04 Alexander Potapenko <glider@google.com>
25187 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
25188 Jakub Jelinek <jakub@redhat.com>
25189
25190 PR sanitizer/55617
25191 * config/darwin.c (sort_ctor_records): Stabilized qsort
25192 on constructor priority by using original position.
25193 (finalize_ctors): New routine to sort constructors by
25194 priority before use in assemble_integer.
25195 (machopic_asm_out_constructor): Use finalize_ctors if needed.
25196
7ac3af38
JJ
251972013-02-04 Jakub Jelinek <jakub@redhat.com>
25198
25199 PR libstdc++/54314
25200 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
25201 about visibility on artificial decls.
25202 * config/sol2.c (solaris_assemble_visibility): Likewise.
25203
152689dc
KT
252042013-02-04 Kai Tietz <ktietz@redhat.com>
25205
25206 PR target/56186
25207 * config/i386/i386.c (function_value_ms_64): Add additional valtype
25208 argument and improve checking of return-argument types for 16-byte
25209 modes.
25210 (ix86_function_value_1): Add additional valtype argument on call
25211 of function_value_64.
25212 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
25213 handling infunction_value_64 function.
25214
2b5987b5
MGD
252152013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25216
7ac3af38 25217 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 25218
14597080
RB
252192013-02-04 Richard Biener <rguenther@suse.de>
25220
25221 PR tree-optimization/56188
25222 * tree-ssa-structalias.c (label_visit): Consider case with
25223 initially non-empty points-to set.
25224 (perform_var_substitution): Dump node mapping and clean up.
25225
ed73881e
RG
252262013-02-04 Richard Guenther <rguenther@suse.de>
25227
25228 PR lto/56168
25229 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
25230 node prevail as last resort.
25231 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 25232 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 25233
139a0707
RB
252342013-02-04 Richard Biener <rguenther@suse.de>
25235
25236 PR tree-optimization/56113
25237 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
25238 Merge into ...
25239 (equiv_class_lookup_or_add): ... this.
25240 (label_visit): Adjust and fix error in previous patch.
25241 (perform_var_substitution): Adjust.
25242
50fe8924
OE
252432013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
25244
25245 * config/sh/divtab.c: Fix formatting and comments throughout the file.
25246 * config/sh/sh4-300.md: Likewise.
25247 * config/sh/sh4a.md: Likewise.
25248 * config/sh/constraints.md: Likewise.
25249 * config/sh/sh.md: Likewise.
25250 * config/sh/netbsd-elf.h: Likewise.
25251 * config/sh/predicates.md: Likewise.
25252 * config/sh/sh-protos.h: Likewise.
25253 * config/sh/ushmedia.h: Likewise.
25254 * config/sh/linux.h: Likewise.
25255 * config/sh/sh.c: Likewise.
25256 * config/sh/superh.h: Likewise.
25257 * config/sh/elf.h: Likewise.
25258 * config/sh/sh4.md: Likewise.
25259 * config/sh/sh.h: Likewise.
25260
1a04ac2b
JDA
252612013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25262
25263 * config/pa/constraints.md: Adjust unused letters. Change "T"
25264 constraint to match_test floating_point_store_memory_operand().
25265 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
25266 (base14_operand): New.
25267 (floating_point_store_memory_operand): New.
25268 (integer_store_memory_operand): Revise to use base14_operand and
25269 reg_plus_base_memory_operand.
25270 (move_dest_operand): Allow symbolic_memory_operands.
25271 (symbolic_memory_operand): Check for LO_SOM.
25272 (symbolic_operand): Change default case to break.
25273 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
25274 CONST_DOUBLE values to be reloaded by putting them into memory when
25275 the destination is a floating point register.
25276 (movdf): Remove code to handle CONST_DOUBLE.
25277 (movsf): Likewise.
25278 (reload_indf_r1): New.
25279 (reload_insf_r1): New.
25280 Consistently use "Q" and "T" constraints with integer and floating
25281 point move instructions, respectively.
25282 (movdi): Remove FAIL.
25283 Change predicate for source operand unamed DImode move from
25284 general_operand to move_src_operand.
25285 (umulsidi3): Change predicate for destination operand to
25286 register_operand.
25287 Likewise for similar unamed patterns.
25288 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
25289 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
25290 (hppa_legitimize_address): Simplify mask calculation.
25291 (pa_emit_move_sequence): Revised handling of secondary reloads from
25292 REG+D addresses for floating point loads and stores. Directly handle
25293 loading CONST0_RTX (mode) to a floating point register.
25294 (pa_secondary_reload): Handle reloading DF and SFmode constant values
25295 to floating point registers. Don't restrict secondary reloads to
25296 floating point registers to integer modes. Revise some comments and
25297 cleanup some code.
25298 (TARGET_LEGITIMATE_ADDRESS_P): Define.
25299 (pa_legitimate_address_p): New.
25300 (pa_legitimize_reload_address): New.
25301 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
25302 (STRICT_REG_OK_FOR_BASE_P): New.
25303 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
25304 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
25305
3bf65591
DE
253062013-02-03 David Edelsohn <dje.gcc@gmail.com>
25307 Andrew Dixie <andrewd@gentrack.com>
25308
25309 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
25310 flag set.
25311
c0a8a3e6
RS
253122013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
25313
25314 * expmed.c (extract_bit_field_1): Pass the full width of the
25315 structure to get_best_reg_extraction_insn.
25316
99113dff
DE
253172013-02-01 David Edelsohn <dje.gcc@gmail.com>
25318
25319 PR target/54601
25320 * configure.ac (use_cxa_atexit): Add AIX.
25321 * configure: Regenerate.
25322
25323 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
25324
ddd84654
JJ
253252013-02-01 Jakub Jelinek <jakub@redhat.com>
25326
25327 PR debug/54793
25328 * final.c (need_profile_function): New variable.
25329 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
25330 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
25331 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
25332 notes, targetm.asm_out.function_prologue doesn't emit anything,
25333 HAVE_prologue and profiler should be emitted before prologue,
25334 set need_profile_function instead of emitting it.
25335 (final_scan_insn): If need_profile_function, emit
25336 profile_function on the first NOTE_INSN_BASIC_BLOCK or
25337 NOTE_INSN_FUNCTION_BEG note.
25338
253392013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
25340
25341 * config/rs6000/rs6000.md (smulditi3): New.
25342 (umulditi3): New.
25343
ff2a9d88
RH
25344 * config/alpha/alpha.md (umulditi3): New.
25345
14d52b90
DE
253462013-02-01 David Edelsohn <dje.gcc@gmail.com>
25347
25348 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
25349 (ASM_OUTPUT_ALIGNED_LOCAL): New.
25350
8c7ca45c
RB
253512013-02-01 Richard Biener <rguenther@suse.de>
25352
25353 PR tree-optimization/56113
25354 * tree-ssa-structalias.c (label_visit): Reduce work for
25355 single-predecessor nodes.
25356
9f419393
EB
253572013-02-01 Eric Botcazou <ebotcazou@adacore.com>
25358
25359 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
25360 range isn't testing for zero.
25361
c5f4be84
SB
253622013-01-31 Steven Bosscher <steven@gcc.gnu.org>
25363
25364 PR middle-end/56113
25365 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
25366
dbdbd982
NC
253672013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
25368 Nick Clifton <nickc@redhat.com>
25369
25370 * config/v850/constraints.md (Q): Define as a memory constraint.
25371 * config/v850/predicates.md (label_ref_operand): New predicate.
25372 (e3v5_shift_operand): New predicate.
25373 (ior_operator): New predicate.
25374 * config/v850/t-v850: Add e3v5 multilib.
25375 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
25376 (v850_gen_movdi): Prototype.
25377 * config/v850/v850.c: Add support for e3v5 architecture.
25378 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
25379 TARGET_V850E_UP.
25380 (construct_save_jarl): Add e3v5 long JARL support.
25381 (v850_adjust_insn_length): New function. Adjust length of call
25382 insns when using e3v5 instructions.
25383 (v850_gen_movdi): New function: Generate instructions to move a
25384 DImode value.
25385 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
25386 (CPP_SPEC): Define __v850e3v5__ as appropriate.
25387 (TARGET_USE_FPU): Enable for e3v5.
25388 (CONST_OK_FOR_W): New macro.
25389 (ADJUST_INSN_LENGTH): Define.
25390 * config/v850/v850.md (UNSPEC_LOOP): Define.
25391 (attr cpu): Add v850e3v5.
25392 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
25393 (movdi): New pattern.
25394 (movdi_internal): New pattern.
25395 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
25396 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
25397 (cstoresf4): Likewise.
25398 (cstoredf4): Likewise.
25399 (insv): New pattern.
25400 (rotlso3_a): New pattern.
25401 (rotlsi3_b): New pattern
25402 (rotlsi3_v850e3v5): New pattern.
25403 (doloop_begin): New pattern.
25404 (fix_loop_counter): New pattern.
25405 (doloop_end): New pattern.
25406 (branch_normal): Add e3v5 long branch support.
25407 (branch_invert): Likewise.
25408 (branch_z_normal): Likewise.
25409 (branch_z_invert): Likewise.
25410 (branch_nz_normal): Likewise.
25411 (branch_nz_invert): Likewise.
25412 (call_internal_short): Add e3v5 register-indirect JARL support.
25413 (call_internal_long): Likewise.
25414 (call_value_internal_short): Likewise.
25415 (call_value_internal_long): Likewise.
25416 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
25417 (mloop): New option.
25418 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 25419 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 25420
73861a41
PK
254212013-01-31 Paul Koning <ni1d@arrl.net>
25422
25423 PR debug/55059
25424 PR debug/54508
25425 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
25426 children if parent is a class.
25427 (prune_unused_types_prune): Don't add DW_AT_declaration.
25428
e44978dc
RB
254292013-01-31 Richard Biener <rguenther@suse.de>
25430
25431 PR tree-optimization/56157
25432 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
25433 match up operand with SLP child.
25434
90b10dec
JM
254352013-01-31 Jason Merrill <jason@redhat.com>
25436
04d2dadd 25437 PR debug/54410
90b10dec
JM
25438 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
25439 parameters the first time.
25440 (gen_scheduled_generic_parms_dies): Check completeness here.
25441
6e616110
RB
254422013-01-31 Richard Biener <rguenther@suse.de>
25443
25444 PR middle-end/53073
25445 * common.opt (faggressive-loop-optimizations): New flag,
25446 enabled by default.
25447 * doc/invoke.texi (faggressive-loop-optimizations): Document.
25448 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
25449 infer_loop_bounds_from_undefined by it.
25450
636f59cf
RB
254512013-01-31 Richard Biener <rguenther@suse.de>
25452
25453 PR tree-optimization/56150
25454 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
25455 visit virtual operands.
25456 (find_uses_to_rename_bb): Likewise.
25457
254582013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
25459
25460 PR tree-optimization/56150
25461 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
25462 mixed store non-store stmts.
25463
32887460
JJ
254642013-01-30 Jakub Jelinek <jakub@redhat.com>
25465
e60e09a0
JJ
25466 PR sanitizer/55374
25467 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
25468 LIBASAN_EARLY_SPEC is defined.
25469 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
25470 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
25471 before %o.
25472 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
25473
32887460
JJ
25474 PR c++/55742
25475 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
25476 invalid args instead of ICEing on it.
25477 (ix86_valid_target_attribute_tree): Return error_mark_node if
25478 ix86_valid_target_attribute_inner_p failed.
25479 (ix86_valid_target_attribute_p): Return false only if
25480 ix86_valid_target_attribute_tree returned error_mark_node. Allow
25481 target("default") attribute.
25482 (sorted_attr_string): Change argument from const char * to tree,
25483 merge in all target attribute arguments rather than just one.
25484 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
25485 instead of free. Avoid using strcat.
25486 (ix86_mangle_function_version_assembler_name): Mangle
25487 target("default") as if no target attribute is present. Adjust
25488 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
25489 instead of xmalloc and XDELETEVEC instead of free.
25490 (ix86_function_versions): Don't return true if one of the decls
25491 doesn't have target attribute. If they don't and one of the decls
25492 is DECL_FUNCTION_VERSIONED, report an error. Adjust
25493 sorted_attr_string caller. Use XDELETEVEC instead of free.
25494 (ix86_supports_function_versions): Remove.
25495 (make_name): Fix up formatting.
25496 (make_dispatcher_decl): Remove resolver_name and its initialization.
25497 Avoid leaking memory.
25498 (is_function_default_version): Return true if there is
25499 target("default") attribute rather than no target attribute at all.
25500 (make_resolver_func): Avoid leaking memory.
25501 (ix86_generate_version_dispatcher_body): Likewise.
25502 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
25503 * target.def (supports_function_versions): Remove.
25504 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
25505 * doc/tm.texi: Regenerated.
25506
73cca0cc
VM
255072013-01-30 Vladimir Makarov <vmakarov@redhat.com>
25508
25509 PR rtl-optimization/56144
25510 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
25511 for values with side effects.
25512
11452e7b
RB
255132013-01-30 Richard Biener <rguenther@suse.de>
25514
25515 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
25516 (sparseset_pop): Likewise.
25517 * cfganal.c (compute_idf): Likewise. Increase work-stack size
25518 to be able to use quick_push in the worker loop.
25519
01cb1ef5
MP
255202013-01-30 Marek Polacek <polacek@redhat.com>
25521
25522 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
25523
e892936e
RB
255242013-01-30 Richard Biener <rguenther@suse.de>
25525
25526 PR lto/56147
6edc3e32 25527 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 25528
cc06c01d
GJL
255292013-01-30 Georg-Johann Lay <avr@gjlay.de>
25530
25531 PR tree-optimization/56064
25532 * fixed-value.c (fixed_from_double_int): New function.
25533 * fixed-value.h (fixed_from_double_int): New prototype.
25534 (const_fixed_from_double_int): New static inline function.
25535 * fold-const.c (native_interpret_fixed): New static function.
25536 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
25537 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
25538 (native_encode_fixed): New static function.
25539 (native_encode_expr) <FIXED_CST>: Use it.
25540 (native_interpret_int): Move double_int worker code to...
25541 * double-int.c (double_int::from_buffer): ...this new static method.
25542 * double-int.h (double_int::from_buffer): Prototype it.
25543
d394a308
RB
255442013-01-30 Richard Biener <rguenther@suse.de>
25545
25546 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
25547 New pointer-map and obstack.
25548 (init_alias_vars): Allocate pointer-map and obstack.
25549 (delete_points_to_sets): Free them.
25550 (find_what_var_points_to): Cache result.
25551 (find_what_p_points_to): Adjust for changed interface of
25552 find_what_var_points_to.
25553 (compute_points_to_sets): Likewise.
25554 (ipa_pta_execute): Likewise.
25555
20804d96
RO
255562013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25557
25558 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
25559 * configure: Regenerate.
25560 * config.in: Regenerate.
25561 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
25562 #nobits/#progbits if supported.
25563
a7ad88a2
OE
255642013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
25565
25566 PR target/56121
25567 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
25568 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
25569 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
25570
7af79f92
GY
255712013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25572
91bfca59
OE
25573 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
25574 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 25575
753bcf7b
GY
255762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25577
91bfca59
OE
25578 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
25579 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 25580
8cbc2ea8
GY
255812013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25582
91bfca59
OE
25583 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
25584 declaration.
25585 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
25586 * config/arm/cortex-a7.md: New bypasses using
25587 arm_mac_accumulator_is_result.
8cbc2ea8 25588
697a3325
GY
255892013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25590
91bfca59 25591 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 25592 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
25593 (cortex_a7_fpfmad): New reservation.
25594 (cortex_a7_fpmacs): Use ffmas and update required units.
25595 (cortex_a7_fpmuld): Update required units and latency.
25596 (cortex_a7_fpmacd): Likewise.
25597 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
25598 (cortex_a7_neon). Likewise.
25599 (bypass) Update participating units.
697a3325 25600
29637783
GY
256012013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
25602
91bfca59
OE
25603 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
25604 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
25605 from fmac to ffma.
25606 * config/arm/vfp11.md (vfp_farith): Use ffmas.
25607 (vfp_fmul): Use ffmad.
25608 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
25609 (cortex_r4_fmacd): Use ffmad.
25610 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
25611 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
25612 (cortex_a9_fmacd): Use ffmad.
25613 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
25614 (cortex_a8_vfp_macd): Use ffmad.
25615 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
25616 (cortex_a5_fpmacd): Use ffmad.
25617 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
25618 (cortex_a15_vfp_macd): Use ffmad.
25619 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 25620
2ee8a2d5
JM
256212013-01-29 Jason Merrill <jason@redhat.com>
25622
25623 PR libstdc++/54314
25624 * varasm.c (default_assemble_visibility): Don't warn about
25625 visibility on artificial decls.
25626
78d087bc
RB
256272013-01-29 Richard Biener <rguenther@suse.de>
25628
25629 PR tree-optimization/56113
25630 * tree-ssa-structalias.c (equiv_class_lookup): Also return
25631 the bitmap leader.
25632 (label_visit): Free duplicate bitmaps and record the leader instead.
25633 (perform_var_substitution): Adjust.
25634
83ba4d6f
RB
256352013-01-29 Richard Biener <rguenther@suse.de>
25636
25637 PR tree-optimization/55270
25638 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
25639 the CFG, schedule loops for fixup.
25640
66dfe13f
NC
256412013-01-29 Nick Clifton <nickc@redhat.com>
25642
25643 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
25644 SP_REG.
25645
5a579c3b
LE
256462013-01-28 Leif Ekblad <leif@rdos.net>
25647
25648 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
25649 * config/i386/i386.h (TARGET_RDOS): New macro.
25650 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
25651 * config/i386/i386.c (ix86_option_override_internal): For 64bit
25652 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
25653 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
25654 DEFAULT_LARGE_SECTION_THRESHOLD.
25655 * config/i386/i386.md (R14_REG, R15_REG): New constants.
25656 * config/i386/rdos.h: New file.
25657 * config/i386/rdos64.h: New file.
25658
51e44392
BS
256592013-01-28 Bernd Schmidt <bernds@codesourcery.com>
25660
25661 PR other/54814
25662 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
25663 TEST_HARD_REG_BIT.
25664
db1fb332
JJ
256652013-01-28 Jakub Jelinek <jakub@redhat.com>
25666
25667 PR rtl-optimization/56117
25668 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
25669 call cselib_lookup_from_insn on the MEM before calling
25670 add_insn_mem_dependence.
25671
16917761
RB
256722013-01-28 Richard Biener <rguenther@suse.de>
25673
25674 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
25675 to a stmt that didn't have one.
25676 (copy_phis_for_bb): Likewise for PHI arguments.
25677 (copy_debug_stmt): Likewise for debug stmts.
25678
b9fc0497
RB
256792013-01-28 Richard Biener <rguenther@suse.de>
25680
25681 PR tree-optimization/56034
6edc3e32 25682 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
25683 (partition_builtin_p): Adjust.
25684 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
25685 it is the last partition.
25686 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
25687 up the vertex for the definition.
25688 (classify_partition): Classify whether a partition is a
25689 PKIND_REDUCTION, thus has uses outside of the loop.
25690 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
25691 Merge all PKIND_REDUCTION partitions into the last partition.
25692 (tree_loop_distribution): Seed partitions from reductions as well.
25693
aa710d25
JJ
256942013-01-28 Jakub Jelinek <jakub@redhat.com>
25695
0bfbca58
JJ
25696 PR tree-optimization/56125
25697 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
25698 pow(x,c) into sqrt(x) * powi(x, n/2) or
25699 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
25700 optimizing for size.
25701 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
25702 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
25703 integer.
25704
aa710d25
JJ
25705 PR tree-optimization/56094
25706 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
25707 to UNKNOWN_LOCATION while gimplifying expr.
25708
77dc5297
UB
257092013-01-27 Uros Bizjak <ubizjak@gmail.com>
25710
25711 PR target/56114
25712 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
25713 operand 0 in movabs insn template for -masm=intel asm alternative.
25714 (*movabs<mode>_2): Ditto for operand 1.
25715
0bfbca58 257162013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
25717
25718 PR target/54663
25719 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
25720 of microblaze-c.o
25721
0bfbca58 257222013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
25723
25724 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
25725 tm_file.
25726
0bfbca58 257272013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
25728
25729 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
25730 Undef to avoid warning.
25731
478f60f9
MH
257322013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25733
25734 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
25735 * configure: Regenerate.
25736
d7fa6ee2
JJ
257372013-01-25 Jakub Jelinek <jakub@redhat.com>
25738
25739 PR tree-optimization/56098
25740 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
25741 for stmts with volatile ops.
25742 (cond_store_replacement): Don't optimize if assign has volatile ops.
25743 (cond_if_else_store_replacement_1): Don't optimize if either
25744 then_assign or else_assign have volatile ops.
25745 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
25746 volatile ops.
25747
f8fe87bd
GJL
257482013-01-25 Georg-Johann Lay <avr@gjlay.de>
25749
25750 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
25751
28398d0d
GJL
257522013-01-25 Georg-Johann Lay <avr@gjlay.de>
25753
25754 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
25755 missing ':' in asm example.
25756
b7d7d917
TB
257572013-01-25 Tejas Belagod <tejas.belagod@arm.com>
25758
25759 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
25760 entries into lane and laneq entries.
77dc5297
UB
25761 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
25762 Remove AdvSIMD scalar modes.
b7d7d917
TB
25763 (aarch64_sq<r>dmulh_laneq<mode>): New.
25764 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
25765 modes.
25766 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
25767 builtin implementations to relfect changes in RTL in aarch64-simd.md.
25768 * config/aarch64/iterators.md (VCOND): New.
25769 (VCONQ): New.
25770
556f9906
GJL
257712013-01-25 Georg-Johann Lay <avr@gjlay.de>
25772
25773 PR target/54222
25774 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
25775 Add NULL LIBNAME argument to existing definitions.
25776 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
25777 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
25778 * config/avr/avr.c (DEF_BUILTIN): Same.
25779 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
25780 (avr_expand_builtin): Expand to a vanilla call if a libgcc
25781 implementation is available (DECL_ASSEMBLER_NAME is set).
25782 (avr_fold_absfx): New static function.
25783 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
25784 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
25785 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
25786 AVR_BUILTIN_ABSLLK.
25787 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
25788 (abshk, absk, abslk, absllk): Provide as static inline functions.
25789
1f546bbb
MP
257902013-01-25 Marek Polacek <polacek@redhat.com>
25791
25792 PR tree-optimization/56035
25793 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
25794
7e184bd7
UB
257952012-01-24 Uros Bizjak <ubizjak@gmail.com>
25796
25797 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
25798 (*movtf_internal_rex64): Add (!o,C) alternative
25799 (*movxf_internal_rex64): Ditto.
25800 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
25801
f5ba49ac
SM
258022013-01-24 Shenghou Ma <minux.ma@gmail.com>
25803
25804 * doc/invoke.texi: fix typo.
25805 * doc/objc.texi: fix typo.
25806
a6343728
RS
258072013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
25808
25809 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
25810 for the first two alternatives.
25811
cd030c07
DN
258122013-01-24 Diego Novillo <dnovillo@google.com>
25813
77dc5297 25814 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
25815 (ggc-zone.o): Remove.
25816 * configure.ac: Remove option --with-gc.
25817 * configure: Re-generate.
25818 * doc/install.texi: Remove documentation for --with-gc.
25819 * gengtype.c (write_enum_defn): Remove. Update all users.
25820 (write_Types_process_field): Remove generation of gt_e_* argument.
25821 (output_type_enum): Remove. Update all users.
25822 (write_enum_defn): Remove. Update all users.
25823 (enum alloc_zone): Remove. Update all users.
77dc5297 25824 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
25825 * ggc-common.c (ggc_splay_alloc): Remove first argument.
25826 Update all callers.
25827 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 25828 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
25829 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
25830 Update all users.
aaf1e810 25831 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
25832 (struct alloc_zone): Remove.
25833 (ggc_internal_alloc_zone_stat): Remove.
25834 (ggc_internal_cleared_alloc_zone_stat): Remove.
25835 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
25836 (ggc_pch_count_object): Remove last argument. Update all users.
25837 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
25838 (struct alloc_zone): Remove.
25839 * ggc-zone.c: Remove.
77dc5297 25840 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
25841 (struct alloc_zone): Remove.
25842 (ggc_alloc_typed_stat): Remove.
25843 (ggc_alloc_typed): Remove.
25844 (ggc_splay_alloc): Remove first argument.
25845 (rtl_zone): Remove. Update all users.
25846 (tree_zone): Remove. Update all users.
25847 (tree_id_zone): Remove. Update all users.
25848 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 25849 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 25850 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 25851 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 25852
a861ffa4
GJL
258532013-01-24 Georg-Johann Lay <avr@gjlay.de>
25854
25855 * config/avr/avr.c (avr_out_fract): Make register numbers that
25856 might be outside of source operand signed.
25857
593c0ddd
UB
258582013-01-24 Uros Bizjak <ubizjak@gmail.com>
25859
25860 * config/i386/constraints.md (Yf): New constraint.
25861 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
25862 of f constraint to conditionaly disable x87 register preferences.
25863 (*movdf_internal): Ditto.
25864 (*movsf_internal): Ditto.
25865
e86c0101
SB
258662013-01-24 Steven Bosscher <steven@gcc.gnu.org>
25867
25868 PR inline-asm/55934
25869 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
25870 that have operands with impossible constraints.
25871 Add a FIXME for a speed-up opportunity.
25872 * lra-constraints.c (process_alt_operands): Verify that a class
25873 selected from constraints on asms is valid for the operand mode.
25874 (curr_insn_transform): Remove incorrect comment.
25875
f6fee35f
DE
258762013-01-23 David Edelsohn <dje.gcc@gmail.com>
25877
25878 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
25879 TOC operand is a valid symbol ref in the constant pool.
25880
258812013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 25882
aaf1e810 25883 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 25884
dc62d7d1
GJL
258852013-01-23 Georg-Johann Lay <avr@gjlay.de>
25886
25887 PR target/54222
25888 * config/avr/stdfix.h: New file.
25889 * t-avr (stdfix-gcc.h): New rule to build it.
25890 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
25891
2660d12d
KS
258922013-01-23 Kostya Serebryany <kcc@google.com>
25893
77dc5297
UB
25894 * config/darwin.h: remove dependency on
25895 CoreFoundation (asan on Mac OS).
2660d12d 25896
a70418fc
JJ
258972013-01-23 Jakub Jelinek <jakub@redhat.com>
25898
25899 PR target/49069
25900 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
25901 instead of cmpdi_operand for first comparison operand.
25902 Don't assert that comparison operands aren't both constants.
25903
47876a2a
JW
259042013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
25905
25906 * doc/install.texi (Downloading the Source): Update references to
25907 downloading separate components.
25908
259092013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
25910
25911 * doc/extend.texi (__int128): Improve grammar.
25912
47876a2a 259132013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
25914
25915 PR target/56028
25916 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
25917 alternative to (o,r).
25918 (*movdi_internal_rex64): Remove (!o,n) alternative.
25919 (DImode immediate->memory splitter): Remove.
25920 (DImode immediate->memory peephole2): Remove.
25921 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
25922 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
25923 alternative to (!o,*r).
25924 (*movtf_internal_sse): New pattern.
25925 (*movxf_internal_rex64): New pattern.
25926 (*movxf_internal): Disable for TARGET_64BIT.
25927 (*movdf_internal_rex64): Remove (!o,F) alternative.
25928
3a984f10
JJ
259292013-01-22 Jakub Jelinek <jakub@redhat.com>
25930
502498d5
JJ
25931 PR middle-end/56074
25932 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
25933 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
25934 * tree-vect-loop-manip.c (find_loop_location): Also ignore
25935 stmt locations where LOCATION_LOCUS of the stmt location is
25936 UNKNOWN_LOCATION or BUILTINS_LOCATION.
25937
3a984f10
JJ
25938 PR target/55686
25939 * config/i386/i386.md (UNSPEC_STOS): New.
25940 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
25941 *strsetqi_1): Add UNSPEC_STOS.
25942
fa817f7f
PC
259432013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
25944
25945 PR c++/56067
25946 * doc/invoke.texi: Remove left over -Wsynth example.
25947
8f498c1b
JJ
259482013-01-21 Jakub Jelinek <jakub@redhat.com>
25949
25950 PR tree-optimization/56051
25951 * fold-const.c (fold_binary_loc): Don't fold
25952 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
25953 a narrowing conversion, or widening conversion from signed
25954 to unsigned.
25955
47876a2a 259562013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
25957
25958 PR rtl-optimization/56023
25959 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
25960 dependent on debug instruction.
25961
5b9db1bc
MJ
259622013-01-21 Martin Jambor <mjambor@suse.cz>
25963
25964 PR middle-end/56022
25965 * function.c (allocate_struct_function): Call
25966 invoke_set_current_function_hook earlier.
25967
e8bb7d68
JJ
259682013-01-21 Jakub Jelinek <jakub@redhat.com>
25969
25970 * reload1.c (init_reload): Only initialize reload_obstack
25971 during the first call.
25972
616a4e32
MP
259732013-01-21 Marek Polacek <polacek@redhat.com>
25974
25975 * cfgloop.c (verify_loop_structure): Fix up grammar.
25976
4401981b
YHH
259772013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
25978
25979 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
25980 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
25981
8e87740b
RR
259822013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25983
25984 PR target/56058
25985 * config/arm/marvell-pj4.md: Update copyright year.
25986 Fix up use of alu to alu_reg and simple_alu_imm.
25987
47876a2a 259882013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
25989
25990 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
25991
89d56d79
VM
259922013-01-20 Vladimir Makarov <vmakarov@redhat.com>
25993
25994 PR target/55433
25995 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 25996 insn for secondary memory move when memory mode should be different.
89d56d79 25997
fe603553
JDA
259982013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25999
26000 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
26001 atomic_storedi_1): New patterns.
26002
01284895
VK
260032013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26004
26005 btver2 pipeline descriptions.
26006 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
26007 descriptions.
26008 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 26009 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
26010 type attributes.
26011 * config/i386/btver2.md: New file describing btver2 pipelines.
26012
5630e3e1
JL
260132013-01-19 Andrew Pinski <apinski@cavium.com>
26014
26015 PR tree-optimization/52631
26016 * tree-ssa-sccvn (visit_use): Before looking up the original
26017 statement, try looking up the simplified expression.
26018
650ae806
AG
260192013-01-19 Anthony Green <green@moxielogic.com>
26020
26021 * config/moxie/moxie.c (moxie_expand_prologue): Set
26022 current_function_static_stack_size.
26023
e300ec2d
JJ
260242013-01-18 Jakub Jelinek <jakub@redhat.com>
26025
26026 PR tree-optimization/56029
26027 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
26028 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
26029
a3d7af04
SS
260302013-01-18 Sharad Singhai <singhai@google.com>
26031
26032 PR tree-optimization/55995
26033 * dumpfile.c (dump_loc): Print location only if available.
26034 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
26035
66aa7879
VM
260362013-01-18 Vladimir Makarov <vmakarov@redhat.com>
26037
26038 PR target/55433
26039 * lra-constraints.c (curr_insn_transform): Reuse original insn for
26040 secondary memory move.
26041 (inherit_reload_reg): Use rclass instead of cl for
26042 check_secondary_memory_needed_p.
26043
3f0fee7b
JJ
260442013-01-18 Jakub Jelinek <jakub@redhat.com>
26045
26046 PR middle-end/56015
26047 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 26048 the case where writing real complex part of target modifies op1.
3f0fee7b 26049
70c67693
JG
260502013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
26051
26052 * config/aarch64/aarch64-simd.md
26053 (aarch64_vcond_internal<mode>): Handle unordered cases.
26054 * config/aarch64/iterators.md (v_cmp_result): New.
26055
df8de9b3
YHH
260562013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
26057 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26058
26059 * config/arm/marvell-pj4.md: New file.
26060 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
26061 * config/arm/arm.md (generic_sched): Add marvell_pj4.
26062 (generic_vfp): Likewise.
26063 * config/arm/arm-cores.def: Add marvell-pj4.
26064 * config/arm/arm-tune.md: Regenerate.
26065 * config/arm/arm-tables.opt: Regenerate.
26066 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
26067 * doc/invoke.texi: Document marvell-pj4.
26068
be30c356
TB
260692013-01-18 Tejas Belagod <tejas.belagod@arm.com>
26070
26071 * config/aarch64/arm_neon.h: Map scalar types to standard types.
26072
0bfbca58 260732013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
26074
26075 PR debug/54114
26076 PR debug/54402
26077 PR debug/49888
26078 * var-tracking.c (negative_power_of_two_p): New.
26079 (global_get_addr_cache, local_get_addr_cache): New.
26080 (get_addr_from_global_cache, get_addr_from_local_cache): New.
26081 (vt_canonicalize_addr): Rewrite using the above. Adjust the
26082 heading comment.
26083 (vt_stack_offset_p): Remove.
26084 (vt_canon_true_dep): Always canonicalize loc's address.
26085 (clobber_overlapping_mems): Make sure we have a MEM.
26086 (local_get_addr_clear_given_value): New.
26087 (val_reset): Clear local cached entries.
26088 (compute_bb_dataflow): Create and release the local cache.
26089 Disable duplicate MEMs clobbering.
26090 (emit_notes_in_bb): Clobber MEMs likewise.
26091 (vt_emit_notes): Create and release the local cache.
26092 (vt_initialize, vt_finalize): Create and release the global
26093 cache, respectively.
1f6bc337 26094 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 26095
0bfbca58 260962013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
26097
26098 PR libmudflap/53359
26099 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
26100 not found in the symtab.
26101
0bfbca58 261022013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 26103
c350ba53 26104 PR debug/56006
3aa03517
AO
26105 PR rtl-optimization/55547
26106 PR rtl-optimization/53827
26107 PR debug/53671
26108 PR debug/49888
26109 * alias.c (offset_overlap_p): New, factored out of...
26110 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
26111 the conservative special case for symbolic constants. Don't
26112 adjust zero sizes on alignment.
26113
c664546f
JL
261142013-01-18 Bernd Schmidt <bernds@codesourcery.com>
26115
26116 PR rtl-optimization/52573
26117 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
26118 REG_UNUSED for the same register.
26119
1bd3f750
MP
261202013-01-17 Richard Biener <rguenther@suse.de>
26121 Marek Polacek <polacek@redhat.com>
26122
26123 PR rtl-optimization/55833
26124 * loop-unswitch.c (unswitch_loops): Move loop verification...
26125 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
26126 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
26127 Set it to true when we're removing a loop from hierarchy tree in
26128 an irreducible region.
26129 (fix_bb_placements): Adjust caller.
26130 (fix_loop_placements): Likewise.
26131
e52a8b71
GJL
261322013-01-17 Georg-Johann Lay <avr@gjlay.de>
26133
26134 * config/avr/builtins.def (DEF_BUILTIN): Factor out
26135 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
26136 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
26137 Remove ID. Adjust comments.
26138 * config/avr/avr-c.c (avr_builtin_name): Remove.
26139 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
26140 * config/avr/avr.c (avr_tolower): New static function.
26141 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
26142 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
26143 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
26144 default expansion.
26145
8386a7ea
JH
261462013-01-17 Jan Hubicka <jh@suse.cz>
26147
610fb637 26148 PR tree-optimization/55273
8386a7ea
JH
26149 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
26150
47876a2a 261512013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
26152
26153 PR target/55981
26154 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
26155 store through atomic_store<mode>_1.
26156 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
26157
8222c37e
MJ
261582013-01-17 Martin Jambor <mjambor@suse.cz>
26159
26160 PR tree-optimizations/55264
26161 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
26162 for virtual methods.
26163 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
26164 virtual methods before inlining is over.
26165 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
26166 virtual functions.
26167 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
26168 non-virtual.
26169
79f01c76
VM
261702013-01-16 Vladimir Makarov <vmakarov@redhat.com>
26171
26172 PR rtl-optimization/56005
26173 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
26174 pending reads for prefetch.
26175
d0b6bb1b
IB
261762013-01-16 Ian Bolton <ian.bolton@arm.com>
26177
aaf1e810 26178 * config/aarch64/aarch64.md
d0b6bb1b
IB
26179 (*cstoresi_neg_uxtw): New pattern.
26180 (*cmovsi_insn_uxtw): New pattern.
26181 (*<optab>si3_uxtw): New pattern.
26182 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
26183 (*<optab>si3_insn_uxtw): New pattern.
26184 (*bswapsi2_uxtw): New pattern.
26185
cb9cf03b
RB
261862013-01-16 Richard Biener <rguenther@suse.de>
26187
26188 * tree-inline.c (tree_function_versioning): Remove set but
26189 never used variable.
26190
2cfc56b9
RB
261912013-01-16 Richard Biener <rguenther@suse.de>
26192
26193 PR tree-optimization/55964
26194 * tree-flow.h (rename_variables_in_loop): Remove.
26195 (rename_variables_in_bb): Likewise.
26196 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
26197 (copy_loop_before): Adjust and delete update-ssa status.
26198 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 26199 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
26200 (rename_variables_in_loop): Remove.
26201 (slpeel_update_phis_for_duplicate_loop): Likewise.
26202 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
26203 use available cfg machinery instead of duplicating it.
26204 Update PHI nodes and perform poor-mans SSA update here.
26205 (slpeel_tree_peel_loop_to_edge): Adjust.
26206
c25a0c60
RB
262072013-01-16 Richard Biener <rguenther@suse.de>
26208
26209 PR tree-optimization/54767
26210 PR tree-optimization/53465
26211 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
26212 (vrp_visit_phi_node): For PHI arguments coming via backedges
26213 drop all symbolical range information.
26214 (execute_vrp): Compute backedges.
26215
04b535af
RB
262162013-01-16 Richard Biener <rguenther@suse.de>
26217
26218 * doc/install.texi: Update CLooG and ISL requirements to
26219 0.18.0 and 0.11.1.
26220
8b0a1e0b
CB
262212013-01-16 Christian Bruel <christian.bruel@st.com>
26222
26223 PR target/55301
26224 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
26225 (broken_move): Handle UNSPECV_SP_SWITCH_B.
26226 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
26227
262282013-01-16 DJ Delorie <dj@redhat.com>
26229
26230 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
26231 (UNSPECV_SP_SWITCH_E): New.
26232 (sp_switch_1): Change to an unspec.
26233 (sp_switch_2): Change to an unspec. Don't use post-inc when we
26234 replace $r15.
26235
262362013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
26237
26238 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
26239 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
26240 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
26241 (expand_mem_thread_fence): Ditto.
26242 (expand_mem_signal_fence): Ditto.
26243 (expand_atomic_load): Ditto.
26244 (expand_atomic_store): Ditto.
26245
0bfbca58 262462013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
26247
26248 PR rtl-optimization/55547
26249 PR rtl-optimization/53827
26250 PR debug/53671
26251 PR debug/49888
26252 * alias.c (memrefs_conflict_p): Set sizes to negative after
26253 AND adjustments.
26254
305e3ac1
JJ
262552013-01-15 Jakub Jelinek <jakub@redhat.com>
26256
26257 PR target/55940
26258 * function.c (thread_prologue_and_epilogue_insns): Always
26259 add crtl->drap_reg to set_up_by_prologue.set, even if
26260 stack_realign_drap is false.
26261
f78ac4f2
JBG
262622013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26263
26264 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
26265 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
26266 *call): Fix indention.
26267
a78a8cc4
TV
262682013-01-15 Tom de Vries <tom@codesourcery.com>
26269
26270 PR target/55876
26271 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
26272 Update comment.
26273
0e80383f
VM
262742013-01-15 Vladimir Makarov <vmakarov@redhat.com>
26275
305e3ac1 26276 PR rtl-optimization/55153
0e80383f
VM
26277 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
26278
207b5956
MJ
262792013-01-15 Martin Jambor <mjambor@suse.cz>
26280
26281 PR tree-optimization/55920
26282 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
26283 accesses as grp_to_be_debug_replaced.
26284
a7818b54
JJ
262852013-01-15 Jakub Jelinek <jakub@redhat.com>
26286
26287 PR tree-optimization/55920
26288 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
26289 there is non-useless type conversion needed from debug rhs to lhs,
26290 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
26291
b0fe107e
JM
262922013-01-15 Joseph Myers <joseph@codesourcery.com>
26293 Mikael Pettersson <mikpe@it.uu.se>
26294
26295 PR target/43961
26296 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
26297 Thumb.
26298 (ASM_OUTPUT_CASE_LABEL): Remove.
26299 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
26300 * final.c (shorten_branches): Update alignment of labels before
26301 jump tables if CASE_VECTOR_SHORTEN_MODE.
26302
34ab62ee
RB
263032013-01-15 Richard Biener <rguenther@suse.de>
26304
26305 PR bootstrap/55961
26306 * system.h: Do not include gmp.h for building host tools.
26307
783a3a05
RB
263082013-01-15 Richard Biener <rguenther@suse.de>
26309
26310 PR middle-end/55882
26311 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
26312 account for bitpos when computing alignment.
26313
3a579e09
VY
263142013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
26315
26316 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
26317 (ix86_target_macros_internal): Likewise.
26318
26319 * config/i386/i386.c (m_CORE2I7): Removed.
26320 (m_CORE_HASWELL): New macro.
26321 (m_CORE_ALL): Likewise.
26322 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
26323 (initial_ix86_arch_features): Likewise.
26324 (processor_target_table): Initializations for Core avx2.
26325 (cpu_names): New names "core-avx2".
26326 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
26327 PROCESSOR_CORE_HASWELL.
26328 (ix86_issue_rate): New case.
26329 (ia32_multipass_dfa_lookahead): Likewise.
26330 (ix86_sched_init_global): Likewise.
26331
26332 * config/i386/i386.h (TARGET_HASWELL): New macro.
26333 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
26334 (processor_type): New PROCESSOR_HASWELL.
26335
955f5a07
JJ
263362013-01-15 Jakub Jelinek <jakub@redhat.com>
26337
ff784829
JJ
26338 PR tree-optimization/55955
26339 * tree-vect-loop.c (vectorizable_reduction): Give up early on
26340 *SHIFT_EXPR and *ROTATE_EXPR codes.
26341
955f5a07
JJ
26342 PR tree-optimization/48766
26343 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
26344 -ftrapv disable -fwrapv.
26345
aeb8b4e9
GJL
263462013-01-14 Georg-Johann Lay <avr@gjlay.de>
26347
26348 PR target/55974
26349 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
26350 etc. to 1 and not to __flash.
26351 Use LL suffix for __INT24_MAX__ with -mint8.
26352 Use ULL suffix for __UINT24_MAX__ with -mint8.
26353
1c494c6a
GJL
263542013-01-14 Georg-Johann Lay <avr@gjlay.de>
26355
26356 * config/avr/avr-arch.h
26357 (struct base_arch_s): Use typedef avr_arch_t instead.
26358 (struct arch_info_s): Use typedef avr_arch_info_t instead.
26359 (struct mcu_type_s): Use typedef avr_mcu_t instead.
26360 * config/avr/avr.c: Same.
26361 * config/avr/avr-devices.c: Same.
26362 * config/avr/driver-avr.c: Same.
26363 * config/avr/gen-avr-mmcu-texi.c: Same.
26364 * config/avr/avr-mcus.def: Adjust comment.
26365
a50344cb
TB
263662013-01-14 Tejas Belagod <tejas.belagod@arm.com>
26367
88e784e6
UB
26368 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
26369 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 26370
47876a2a 263712013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
26372 Andi Kleen <ak@linux.intel.com>
26373
26374 PR target/55948
26375 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
26376 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
26377 memmodel flag.
26378
00892272
GJL
263792013-01-14 Georg-Johann Lay <avr@gjlay.de>
26380
26381 * config/avr/avr-stdint.h: Remove trailing blanks.
26382 * config/avr/avr-log.h: Same.
26383 * config/avr/avr-arch.h: Same.
26384 * config/avr/avr-devices.c: Same.
26385 * config/avr/avr-dimode.md: Same.
26386 * config/avr/predicates.md: Same.
26387 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 26388
00892272
GJL
26389 * config/avr/avr-protos.h: Same. And:
26390 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
26391 (init_cumulative_args): Rename to avr_init_cumulative_args.
26392 (expand_prologue): Rename to avr_expand_prologue.
26393 (expand_epilogue): Rename to avr_expand_epilogue.
26394 (adjust_insn_length): Rename to avr_adjust_insn_length.
26395 (notice_update_cc): Rename to avr_notice_update_cc.
26396 (final_prescan_insn): Rename to avr_final_prescan_insn.
26397 * config/avr/avr.c: Same.
26398 * config/avr/avr.h: Same.
26399 * config/avr/avr.md: Remove trailing blanks.
26400 (prologue): Use avr_expand_prologue.
26401 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
26402
7bb01996
RB
264032013-01-14 Richard Biener <rguenther@suse.de>
26404
26405 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
26406 verify_location, collect_subblocks): New functions.
26407 (verify_gimple_in_cfg): Verify that locations only reference
26408 BLOCKs in the functions BLOCK tree.
26409
2724573f
RB
264102013-01-14 Richard Biener <rguenther@suse.de>
26411
26412 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
26413 PHI argument.
26414 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
26415 unshare reference.
26416 (insert_out_of_ssa_copy_on_edge): Likewise.
26417 (rewrite_close_phi_out_of_ssa): Likewise.
26418 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
26419 debug expressions.
26420 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
26421 propagated constants.
26422 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
26423 can not be shared.
26424
9a0bbab6
GJL
264252013-01-14 Georg-Johann Lay <avr@gjlay.de>
26426
26427 * config/avr/avr-modes.def: Add GPL copyright notice.
26428
45805f17
UB
264292013-01-13 Uros Bizjak <ubizjak@gmail.com>
26430
26431 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
26432 MEMMODEL_MASK to determine memory model.
26433 (atomic_store<mode>): Ditto from operands[2].
26434 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
26435
9d60be38
JJ
264362013-01-13 Jakub Jelinek <jakub@redhat.com>
26437
26438 PR fortran/55935
45805f17 26439 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
26440 (fold_gimple_assign): Don't call unshare_expr here.
26441 (fold_ctor_reference): Call unshare_expr.
26442
e7f49d92
TG
264432013-01-13 Terry Guo <terry.guo@arm.com>
26444
aaf1e810
EB
26445 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
26446 * doc/fragments.texi: Document MULTILIB_REUSE.
26447 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 26448 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 26449 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
26450 (tmpmultilib4): Ditto.
26451 (multilib_reuse): New multilib argument.
26452
fbd03a27
RS
264532013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
26454
26455 * Makefile.in: Update copyright.
26456
b3681f13
TV
264572013-01-12 Tom de Vries <tom@codesourcery.com>
26458
26459 PR middle-end/55890
26460 * calls.c (expand_call): Check if arg_nr is valid.
26461
3f287e4b
MM
264622013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
26463
26464 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
26465 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
26466 documentation. Add missing '__' in front of
26467 __builtin_ia32_packssdw256.
3f287e4b 26468
1abcd5eb
AK
264692013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26470
26471 PR target/55719
26472 * config/s390/s390.c (s390_preferred_reload_class): Do not return
26473 NO_REGS for larl operands.
26474 (s390_reload_larl_operand): Use s390_load_address instead of
26475 emit_move_insn.
26476
980d0812
RB
264772013-01-11 Richard Biener <rguenther@suse.de>
26478
26479 * tree-cfg.c (verify_node_sharing_1): Split out from ...
26480 (verify_node_sharing): ... here.
26481 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
26482
7cb9fd07
EB
264832013-01-11 Eric Botcazou <ebotcazou@adacore.com>
26484
26485 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
26486 Substitute TREECHECKING.
26487 * configure: Regenerate.
26488 * Makefile.in (TREECHECKING): New.
26489
47876a2a 264902013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
26491
26492 PR tree-optimization/44061
26493 * tree-vrp.c (extract_range_basic): Compute zero as
26494 value-range for __builtin_constant_p of function parameters.
26495
d1e082c2
RS
264962013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
26497
45805f17 26498 Update copyright years.
d1e082c2 26499
f85021b0
VM
265002013-01-10 Vladimir Makarov <vmakarov@redhat.com>
26501
9d60be38 26502 PR rtl-optimization/55672
0160442c
VM
26503 * lra-eliminations.c (mark_not_eliminable): Permit addition with
26504 const to be eliminable.
f85021b0 26505
7a8b1ec4
DE
265062013-01-10 David Edelsohn <dje.gcc@gmail.com>
26507
26508 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
26509 * configure: Regenerate.
26510
ad2e5b71
RB
265112013-01-10 Richard Biener <rguenther@suse.de>
26512
ddf9322d 26513 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 26514
ffc5b2bb
RB
265152013-01-10 Richard Biener <rguenther@suse.de>
26516
26517 PR bootstrap/55792
26518 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
26519 locations for virtual PHI arguments.
26520 (rewrite_update_phi_arguments): Likewise.
26521
e1f674e4
JS
265222013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
26523
26524 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
26525 on to assembler.
26526
a57fc743
JJ
265272013-01-10 Jakub Jelinek <jakub@redhat.com>
26528
26529 PR tree-optimization/55921
26530 * tree-complex.c (expand_complex_asm): New function.
26531 (expand_complex_operations_1): Call it for GIMPLE_ASM.
26532
0ff4390d
AK
265332013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26534
26535 PR target/55718
26536 * config/s390/s390.c (s390_symref_operand_p)
26537 (s390_loadrelative_operand_p): Merge the two functions.
26538 (s390_check_qrst_address, print_operand_address): Add parameters
26539 to s390_loadrelative_operand_p invokation.
26540 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
26541 (s390_reload_larl_operand, s390_secondary_reload): Use
26542 s390_loadrelative_operand_p instead of s390_symref_operand_p.
26543 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
26544
6f557e0e
MS
265452013-01-09 Mike Stump <mikestump@comcast.net>
26546
26547 * dse.c (record_store): Remove unnecessary assert.
26548
7770c9e9
JH
265492013-01-09 Jan Hubicka <jh@suse.cz>
26550
26551 PR tree-optimization/55569
26552 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
26553 * cfgloop.h (scale_loop_profile): Likewise.
26554
a19b1432
JH
265552013-01-09 Jan Hubicka <jh@suse.cz>
26556
26557 PR lto/45375
ddf9322d
UB
26558 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
26559 functions.
a19b1432
JH
26560 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
26561
9a002da8
RS
265622013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
26563
26564 PR middle-end/55114
26565 * expr.h (maybe_emit_group_store): Declare.
26566 * expr.c (maybe_emit_group_store): New function.
26567 * builtins.c (expand_builtin_int_roundingfn): Call it.
26568 (expand_builtin_int_roundingfn_2): Likewise.
26569
511dcace
VM
265702013-01-09 Vladimir Makarov <vmakarov@redhat.com>
26571
e1f2b729 26572 PR rtl-optimization/55829
511dcace
VM
26573 * lra-constraints.c (match_reload): Add code for absent output.
26574 (curr_insn_transform): Add code for reloads of matched inputs
26575 without output.
26576
7b0fe4f4
UB
265772013-01-09 Uros Bizjak <ubizjak@gmail.com>
26578
26579 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
26580 attribute of movddup insn to DF.
26581 (*vec_interleave_lowv2df): Ditto.
26582 (vec_dupv2df): Ditto.
26583
870ca331
JH
265842013-01-09 Jan Hubicka <jh@suse.cz>
26585
26586 PR tree-optimiation/55875
26587 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
26588 EVERY_ITERATION parameter.
7b0fe4f4 26589 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
26590 (idx_infer_loop_bounds): Similarly here.
26591 (n_of_executions_at_most): Simplify
26592 to only test for cases where statement is dominated by the
7b0fe4f4 26593 particular bound; handle correctly the "postdominance" test.
870ca331
JH
26594 (scev_probably_wraps_p): Use max loop iterations info
26595 as a global bound first.
26596
6f575fe4 265972013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
26598 Nick Clifton <nickc@redhat.com>
26599
26600 * config/v850/v850.md (cbranchsf4): New pattern.
26601 (cstoresf4): New pattern.
26602 (cbranchdf4): New pattern.
26603 (cstoredf4): New pattern.
26604 (movsicc): Disallow floating point comparisons.
26605 (cmpsf_le_insn): Fix order of operators.
26606 (cmpsf_lt_insn): Likewise.
26607 (cmpsf_eq_insn): Likewise.
26608 (cmpdf_le_insn): Likewise.
26609 (cmpdf_lt_insn): Likewise.
26610 (cmpdf_eq_insn): Likewise.
26611 (cmpsf_ge_insn): Use LE comparison.
26612 (cmpdf_ge_insn): Likewise.
26613 (cmpsf_gt_insn): Use LT comparison.
26614 (cmpdf_gt_insn): Likewise.
26615 (cmpsf_ne_insn): Delete pattern.
26616 (cmpdf_ne_insn): Delete pattern.
26617 * config/v850/v850.c (v850_gen_float_compare): Use
26618 gen_cmpdf_eq_insn for NE comparison.
26619 (v850_float_z_comparison_operator)
26620 (v850_float_nz_comparison_operator): Move from here ...
26621 * config/v850/predicates.md: ... to here. Move GT and GE
26622 comparisons into v850_float_z_comparison_operator.
26623 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
26624 Delete prototype.
26625 (v850_float_nz_comparison_operator): Likewise.
26626
f0d54148
JDA
266272013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26628
26629 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
26630 with calls to gen_insvsi/gen_insvdi.
26631
8f01beca
VK
266322013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26633
26634 * config/i386/i386.c (initial_ix86_tune_features): Set up
26635 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
26636
2aa579ad
JJ
266372013-01-09 Steven Bosscher <steven@gcc.gnu.org>
26638 Jakub Jelinek <jakub@redhat.com>
26639
26640 PR tree-optimization/48189
26641 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
26642 If nitercst is 0, don't predict the exit edge.
26643
6edc3e32 266442013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
26645
26646 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
26647 in asm_fprintf with reg_names.
26648 (aarch64_print_operand_address): Likewise.
26649 (aarch64_return_addr): Likewise.
26650 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
26651
f6f94d94
JDA
266522013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26653
26654 * config/pa/pa.h (VAL_U6_BITS_P): Define.
26655 (INT_U6_BITS): Likewise.
26656 * config/pa/predicates.md (uint6_operand): New predicate.
26657 (shift5_operand, shift6_operand): Likewise.
26658 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
26659 arith32_operand.
26660 (lshrdi3): Use shift6_operand.
26661 (shrpsi4, shrpdi4): New insn patterns.
26662 (extzv): Delete expander.
26663 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
26664 predicates in unamed zero extract patterns. Tighten common constraint.
26665 (extv): Delete expander.
26666 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
26667 predicates in unamed sign extract patterns. Tighten common constraint.
26668 (insv): Delete expander.
26669 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
26670 predicates in unamed insert patterns. Tighten common constraint.
26671 Change uint32_operand predicate to uint6_operand predicate in unamed
26672 DImode pattern to insert constant values of type 1...1xxxx.
26673
36b72910
JH
266742013-01-04 Jan Hubicka <jh@suse.cz>
26675
26676 PR tree-optimization/55823
7b0fe4f4
UB
26677 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
26678 issue.
36b72910 26679
47876a2a 266802013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
26681 Uros Bizjak <ubizjak@gmail.com>
26682
26683 PR rtl-optimization/55845
26684 * df-problems.c (can_move_insns_across): Stop scanning at
26685 volatile_insn_p source instruction or give up if
26686 across_from .. across_to range contains any volatile_insn_p
26687 instructions.
26688
4369c11e
TB
266892013-01-08 Tejas Belagod <tejas.belagod@arm.com>
26690
7b0fe4f4
UB
26691 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
26692 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
26693 Declare.
4369c11e 26694 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 26695 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 26696
aeb7e7c1
JJ
266972013-01-08 Jakub Jelinek <jakub@redhat.com>
26698
26699 PR fortran/55341
26700 * asan.c (asan_clear_shadow): New function.
26701 (asan_emit_stack_protection): Use it.
26702
a02ad1aa
TB
267032013-01-08 Tejas Belagod <tejas.belagod@arm.com>
26704
26705 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
26706 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
26707 with tab instead of space.
26708
f90d87f5
NC
267092013-01-08 Nick Clifton <nickc@redhat.com>
26710
26711 * config/rl78/rl78.c (rl78_expand_prologue): Always select
26712 register bank 0 at the start of an interrupt handler.
83ffd964
NC
26713 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
26714 MDBH registers.
f90d87f5 26715
385eb93d
JG
267162013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
26717
26718 * config/aarch64/aarch64-simd.md
26719 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
26720 (aarch64_simd_bsl): Likewise.
26721 (aarch64_vcond_internal<mode>): Likewise.
26722 (vcond<mode><mode>): Likewise.
26723 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
26724 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
26725
4dcd1054
JG
267262013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
26727
26728 * config/aarch64/aarch64-builtins.c
26729 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
26730
4267a4a6
MJ
267312013-01-08 Martin Jambor <mjambor@suse.cz>
26732
26733 PR debug/55579
26734 * tree-sra.c (analyze_access_subtree): Return true also after
26735 potentially creating a debug-only replacement.
26736
5f4e6de3
JJ
267372013-01-08 Jakub Jelinek <jakub@redhat.com>
26738
3138f224
JJ
26739 PR middle-end/55890
26740 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
26741
5f4e6de3
JJ
26742 PR tree-optimization/54120
26743 * tree-vrp.c (range_fits_type_p): Don't allow
26744 src_precision < precision from signed vr to unsigned_p
26745 if vr->min or vr->max is negative.
26746 (simplify_float_conversion_using_ranges): Test can_float_p
26747 against CODE_FOR_nothing.
26748
f3ef18ff
JJ
267492013-01-08 Jakub Jelinek <jakub@redhat.com>
26750 Richard Biener <rguenther@suse.de>
26751
26752 PR middle-end/55851
26753 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
26754 types instead of just INTEGER_TYPE types.
26755
25c210f9
MK
267562013-01-07 Mark Kettenis <kettenis@openbsd.org>
26757
26758 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
26759 TF_SIZE): Define.
f90d87f5 26760
81826a7b
SE
267612013-01-07 Steve Ellcey <sellcey@mips.com>
26762
26763 PR target/42661
26764 * config/mips/mips.opt: Change mad to mmad to match documentation.
26765
35678514
GJL
267662013-01-07 Georg-Johann Lay <avr@gjlay.de>
26767
26768 PR target/55897
26769 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
26770 .progmemx.data now.
26771
e5669488
GJL
267722013-01-07 Georg-Johann Lay <avr@gjlay.de>
26773
26774 PR target/55897
26775 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
26776 (avr_addrspace_t): Add .section_name field.
26777 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
26778 array size.
26779 (avr_addrspace): Same. Initialize .section_name. Remove last
26780 NULL entry. Put __memx into .progmemx.data.
26781 (progmem_section_prefix): Remove.
26782 (avr_asm_init_sections): No need to initialize progmem_section.
26783 (avr_asm_named_section): Use avr_addrspace[].section_name to get
26784 section name prefix.
26785 (avr_asm_select_section): Ditto. And use get_unnamed_section to
26786 retrieve the progmem section.
26787 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
26788 boundary to run over avr_addrspace[].
26789 (avr_register_target_pragmas): Ditto.
26790
656e6f37
JJ
267912013-01-06 Jakub Jelinek <jakub@redhat.com>
26792
26793 * varasm.c (output_constant_def_contents): For asan_protect_global
26794 protected strings, adjust DECL_ALIGN if needed, before testing for
26795 anchored symbols.
26796 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
26797 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
26798 normal decls.
26799 (output_object_block): For asan protected decls, emit asan padding
26800 after their contents.
26801 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
26802 (asan_finish_file): Test it here instead.
26803
6edc3e32
UB
268042013-01-07 Nick Clifton <nickc@redhat.com>
26805 Matthias Klose <doko@debian.org>
26806 Doug Kwan <dougkwan@google.com>
26807 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
26808
26809 PR driver/55470
26810 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
26811
26812 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
26813
26814 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
26815
7b0fe4f4 26816 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
26817
26818 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
26819
2a095093
GJL
268202013-01-07 Georg-Johann Lay <avr@gjlay.de>
26821
f3b503f4 26822 PR target/54461
2a095093
GJL
26823 * doc/install.texi (Cross-Compiler-Specific Options): Document
26824 --with-avrlibc.
26825
383f9b34
TB
268262013-01-07 Tejas Belagod <tejas.belagod@arm.com>
26827
26828 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
26829 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
26830 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
26831 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
26832 vqmovun_high_s64): Fix source operand number and update copyright.
26833
3626621a
RB
268342013-01-07 Richard Biener <rguenther@suse.de>
26835
26836 PR middle-end/55890
26837 * gimple.h (gimple_call_builtin_p): New overload.
26838 * gimple.c (validate_call): New function.
26839 (gimple_call_builtin_p): Likewise.
26840 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
26841 Use gimple_call_builtin_p.
26842 (find_func_clobbers): Likewise.
26843 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
26844 (strlen_optimize_stmt): Likewise.
26845
8b2ea410
JG
268462013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26847
26848 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
26849 (vld1q_dup_*): Likewise.
26850 (vld1_*): Likewise.
26851 (vld1q_*): Likewise.
26852 (vld1_lane_*): Likewise.
26853 (vld1q_lane_*): Likewise.
26854
9713d329
RB
268552013-01-07 Richard Biener <rguenther@suse.de>
26856
26857 * lto-streamer.h (LTO_minor_version): Bump to 2.
26858
3520f7cc
JG
268592013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26860
26861 * config/aarch64/aarch64-protos.h
26862 (aarch64_const_double_zero_rtx_p): Rename to...
26863 (aarch64_float_const_zero_rtx_p): ...this.
26864 (aarch64_float_const_representable_p): New.
26865 (aarch64_output_simd_mov_immediate): Likewise.
26866 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
26867 move immediate case.
26868 * config/aarch64/aarch64.c
26869 (aarch64_const_double_zero_rtx_p): Rename to...
26870 (aarch64_float_const_zero_rtx_p): ...this.
26871 (aarch64_print_operand): Allow printing of new constants.
26872 (aarch64_valid_floating_const): New.
26873 (aarch64_legitimate_constant_p): Check for valid floating-point
26874 constants.
26875 (aarch64_simd_valid_immediate): Likewise.
26876 (aarch64_vect_float_const_representable_p): New.
26877 (aarch64_float_const_representable_p): Likewise.
26878 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
26879 (aarch64_output_simd_mov_immediate): New.
26880 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
26881 (*movdf_aarch64): Likewise.
26882 * config/aarch64/constraints.md (Ufc): New.
26883 (Y): call aarch64_float_const_zero_rtx.
26884 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
26885
e167c04d
RB
268862013-01-07 Richard Biener <rguenther@suse.de>
26887
26888 PR tree-optimization/55888
26889 PR tree-optimization/55862
26890 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
26891 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
26892 not if it is contained therein.
26893
0139aaab
GJL
268942013-01-07 Georg-Johann Lay <avr@gjlay.de>
26895
26896 * config/avr/t-avr: Typo.
26897
4a176b23
GJL
268982013-01-07 Georg-Johann Lay <avr@gjlay.de>
26899
26900 PR55243
26901 * config/avr/t-avr: Don't automatically rebuild
26902 $(srcdir)/config/avr/t-multilib
26903 $(srcdir)/config/avr/avr-tables.opt
26904 $(srcdir)/doc/avr-mmcu.texi
26905 (avr-mcus): New phony target to build them on request.
26906 (s-avr-mlib, s-avr-mmcu-texi): Remove.
26907 * avr/avr-mcus.def: Adjust comments.
26908
c7afdc98
UB
269092013-01-07 Uros Bizjak <ubizjak@gmail.com>
26910
26911 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
26912
1ab05c31
RS
269132013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26914
26915 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
26916
488e3acc
RS
269172013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
26918
26919 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
26920
a89599d2
DE
269212013-01-05 David Edelsohn <dje.gcc@gmail.com>
26922
26923 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
26924 to generate profiling.
26925 * config/rs6000/aix64.h (LIB_SPEC): Same.
26926
70f09188
AP
269272013-01-04 Andrew Pinski <apinski@cavium.com>
26928
26929 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
26930 New function.
26931 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
26932
918d445f
UB
269332013-01-04 Uros Bizjak <ubizjak@gmail.com>
26934
26935 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
26936 unconditionally.
26937 (ix86_expand_move): Ditto.
26938 (ix86_zero_extend_to_Pmode): Ditto.
26939 (ix86_expand_call): Ditto.
26940 (ix86_expand_special_args_builtin): Ditto.
26941 (ix86_expand_builtin): Ditto.
26942
361618ec
RB
269432013-01-04 Richard Biener <rguenther@suse.de>
26944
26945 PR tree-optimization/55862
26946 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
26947 translating them through PHI nodes.
26948
87eab554
MJ
269492013-01-04 Martin Jambor <mjambor@suse.cz>
26950
26951 PR tree-optimization/55755
26952 * tree-sra.c (sra_modify_assign): Do not check that an access has no
26953 children when trying to avoid producing a VIEW_CONVERT_EXPR.
26954
33879b9f
MP
269552013-01-04 Marek Polacek <polacek@redhat.com>
26956
26957 PR middle-end/55859
26958 * opts.c (default_options_optimization): Clarify error message.
26959
3068819a
RB
269602013-01-04 Richard Biener <rguenther@suse.de>
26961
26962 PR middle-end/55863
26963 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
26964 reassociation.
26965
0e4ae794
JDA
269662013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26967
26968 PR target/53789
26969 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
26970 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
26971 references.
0e4ae794 26972
65c88cef
RH
269732013-01-03 Richard Henderson <rth@redhat.com>
26974
26975 * config/i386/i386.c (ix86_expand_move): Always assign to op1
26976 after eliminating TLS symbols.
26977
8ac16127
MG
269782013-01-03 Marc Glisse <marc.glisse@inria.fr>
26979
26980 PR bootstrap/50167
26981 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
26982 * graphite-poly.c (debug_gmp_value): Likewise.
26983
bb664f09
UB
269842013-01-03 Uros Bizjak <ubizjak@gmail.com>
26985
26986 PR target/55712
26987 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
26988 selected code model, define __code_mode_small__, __code_model_medium__,
26989 __code_model_large__, __code_model_32__ or __code_model_kernel__.
26990 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
26991 xchg temporary register with %k. Declare temporary register as
26992 early clobbered.
26993 [__x86_64__]: For medium and large code models, preserve %rbx register.
26994
bcf1ef00
RB
269952013-01-03 Richard Biener <rguenther@suse.de>
26996
0506634a 26997 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
26998 (dump_subscript): Adjust.
26999 (finalize_ddr_dependent): Do not dump redundant info.
27000 (analyze_siv_subscript): Adjust.
27001 (subscript_dependence_tester): Likewise.
27002 (compute_affine_dependence): Likewise.
27003
59fd17e3
RB
270042013-01-03 Richard Biener <rguenther@suse.de>
27005
27006 Revert
27007 2013-01-03 Richard Biener <rguenther@suse.de>
27008
27009 PR tree-optimization/55857
27010 * tree-vect-stmts.c (vectorizable_load): Do not setup
27011 re-alignment for invariant loads.
27012
27013 2013-01-02 Richard Biener <rguenther@suse.de>
27014
27015 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 27016 invariant load do not generate a vector load from the scalar location.
59fd17e3 27017
595c2679
RB
270182013-01-03 Richard Biener <rguenther@suse.de>
27019
27020 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
27021 for not vectorizing.
27022 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
27023 not build INDIRECT_REFs, call get_name once only.
27024 (vect_create_data_ref_ptr): Likewise. Dump base object kind
27025 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
27026
90bb7d7a
RB
270272013-01-03 Richard Biener <rguenther@suse.de>
27028
27029 PR tree-optimization/55857
27030 * tree-vect-stmts.c (vectorizable_load): Do not setup
27031 re-alignment for invariant loads.
27032
f09b77ca
RB
270332013-01-03 Richard Biener <rguenther@suse.de>
27034
27035 PR lto/55848
27036 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
27037 prefer a built-in decl.
27038
3461a16e
JJ
270392013-01-03 Jakub Jelinek <jakub@redhat.com>
27040
df8e2b4f
JJ
27041 * gcc.c (process_command): Update copyright notice dates.
27042 * gcov.c (print_version): Likewise.
27043 * gcov-dump.c (print_version): Likewise.
27044
3461a16e
JJ
27045 PR rtl-optimization/55838
27046 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
27047 iv0.step, iv1.step and step.
27048
8b5546d6
JJ
270492013-01-03 Jakub Jelinek <jakub@redhat.com>
27050 Marc Glisse <marc.glisse@inria.fr>
27051
27052 PR tree-optimization/55832
27053 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
27054 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
27055 integer_{one,zero}_node.
27056
8ab1d2e9
JJ
270572013-01-03 Jakub Jelinek <jakub@redhat.com>
27058
27059 PR debug/54402
27060 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
27061 * var-tracking.c (reverse_op): Don't add reverse ops to
27062 VALUEs that have already
0506634a 27063 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 27064
5b9ad1d4
GP
270652013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
27066
27067 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
27068
e25a6711
TJ
270692013-01-02 Teresa Johnson <tejohnson@google.com>
27070
27071 * dumpfile.c (dump_loc): Print filename with location.
27072 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
27073 new location_t parameter to emit complete unroll message with
27074 new dump framework.
27075 (canonicalize_loop_induction_variables): Compute loops location
27076 and pass to try_unroll_loop_completely.
27077 * loop-unroll.c (report_unroll_peel): New function.
27078 (peel_loops_completely): Use new dump format with location
27079 for main dumpfile message, and invoke report_unroll_peel on success.
27080 (decide_unrolling_and_peeling): Ditto.
27081 (decide_peel_once_rolling): Remove old dumpfile message subsumed
27082 by report_unroll_peel.
27083 (decide_peel_completely): Ditto.
27084 (decide_unroll_constant_iterations): Ditto.
27085 (decide_unroll_runtime_iterations): Ditto.
27086 (decide_peel_simple): Ditto.
27087 (decide_unroll_stupid): Ditto.
27088 * cfgloop.c (get_loop_location): New function.
27089 * cfgloop.h (get_loop_location): Declare.
27090
77878621
ST
270912013-01-02 Sriraman Tallam <tmsriram@google.com>
27092
27093 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
27094 NULL.
27095
9e65d03e
JDA
270962013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27097
27098 PR middle-end/55198
27099 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
27100 BLKmode objects when EXPAND_MEMORY is specified.
27101
6a7da30f
ST
271022013-01-02 Sriraman Tallam <tmsriram@google.com>
27103
27104 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
27105 in loop predicate.
27106 (fold_builtin_cpu): Do not share cpu model decls across statements.
27107
e78167f2
JM
271082013-01-02 Jason Merrill <jason@redhat.com>
27109
27110 PR c++/55804
27111 * tree.c (build_array_type_1): Revert earlier change.
27112
8c075fb4
YZ
271132013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
27114
27115 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
27116 "cortex-a57".
27117 * config/aarch64/aarch64-tune.md: Re-generate.
27118
0682ed3e
RB
271192013-01-02 Richard Biener <rguenther@suse.de>
27120
27121 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 27122 invariant load do not generate a vector load from the scalar location.
0682ed3e 27123
b8f6a302
RB
271242013-01-02 Richard Biener <rguenther@suse.de>
27125
27126 PR bootstrap/55784
27127 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
27128 * configure: Regenerate.
27129
04b80dbb
RS
271302013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27131
27132 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
27133 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
27134 (expand_builtin_int_roundingfn_2): Keep the original target around
27135 for the fallback case.
27136
635b0b0c
RS
271372013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27138
27139 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
27140 to be clear for sign changes.
27141
42d57399
JH
271422013-01-01 Jan Hubicka <jh@suse.cz>
27143
27144 * ipa-inline-analysis.c: Fix formatting.
27145
5bb6669d
JJ
271462013-01-01 Jakub Jelinek <jakub@redhat.com>
27147
27148 PR tree-optimization/55831
27149 * tree-vect-loop.c (get_initial_def_for_induction): Use
27150 gsi_after_labels instead of gsi_start_bb.
ad41bd84 27151\f
86a2db33 27152Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
27153
27154Copying and distribution of this file, with or without modification,
27155are permitted in any medium without royalty provided the copyright
27156notice and this notice are preserved.