]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
* mode-switching.c (optimize_mode_switching): Set correct RTL profile.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
54ef9b16 12013-05-13 Jan Hubicka <jh@suse.cz>
2
3 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4 * config/i386/i386.c (ix86_compute_frame_layout,
5 ix86_expand_epilogue, emit_i387_cw_initialization, ix86_expand_vector_move_misalign,
6 ix86_fp_comparison_strategy, ix86_local_alignment): Fix use of size/speed predicates.
7
043ce677 82013-05-13 Jakub Jelinek <jakub@redhat.com>
9
10 PR tree-optimization/45216
11 PR tree-optimization/57157
12 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
13 the (-Y) & (B - 1) variant if OP is |.
14 * expmed.c (expand_shift_1): For rotations by const0_rtx just
15 return shifted. Use (-op1) & (prec - 1) as other_amount
16 instead of prec - op1.
17
096295f6 182013-05-13 Martin Jambor <mjambor@suse.cz>
19
20 PR middle-end/42371
21 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
22 (ipa_constant_data): New type.
23 (ipa_jump_func): Use ipa_constant_data to hold information about
24 constant jump functions.
25 (ipa_get_jf_constant): Adjust to jump function type changes.
26 (ipa_get_jf_constant_rdesc): New function.
27 (ipa_param_descriptor): New field controlled_uses.
28 (ipa_get_controlled_uses): New function.
29 (ipa_set_controlled_uses): Likewise.
30 * ipa-ref.h (ipa_find_reference): Declare.
31 * ipa-prop.c (ipa_cst_ref_desc): New type.
32 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
33 changes.
34 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
35 New parameter cs. Adjust all callers.
36 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
37 (remove_described_reference): New function.
38 (jfunc_rdesc_usable): Likewise.
39 (try_make_edge_direct_simple_call): Decrement controlled use count,
40 attempt to remove reference if it hits zero.
41 (combine_controlled_uses_counters): New function.
42 (propagate_controlled_uses): Likewise.
43 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
44 (ipa_edge_duplication_hook): Duplicate reference descriptions.
45 (ipa_print_node_params): Print described use counter.
46 (ipa_write_jump_function): Adjust to jump function type changes.
47 (ipa_read_jump_function): New parameter CS, pass it to
48 ipa_set_jf_constant. Adjust caller.
49 (ipa_write_node_info): Stream controlled use count
50 (ipa_read_node_info): Likewise.
51 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
52 asserting.
53 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
54 count. Remove cloning-added reference if it reaches zero.
55 * ipa-ref.c (ipa_find_reference): New function.
56
3a407061 572013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
58
59 * config/i386/i386.c (processor_target_table): Modified default
60 alignment values for AMD BD and BT architectures.
61
67f16f2b 622013-05-13 Marc Glisse <marc.glisse@inria.fr>
63
64 * tree-vect-generic.c (uniform_vector_p): Move ...
65 * tree.c (uniform_vector_p): ... here.
66 * tree.h (uniform_vector_p): Declare it.
67 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
68 into a scalar.
69
22b4b13d 702013-05-13 Jakub Jelinek <jakub@redhat.com>
71
2047c70c 72 PR tree-optimization/57230
73 * tree-ssa-strlen.c (handle_char_store): Record length for
74 array store from STRING_CST.
75
22b4b13d 76 PR tree-optimization/57230
77 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
78 check.
79
c85716aa 802013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
81
82 * config/epiphany/epiphany.c (epiphany_init): Check size of
83 NUM_MODES_FOR_MODE_SWITCHING.
84 (epiphany_expand_prologue):
85 Remove CONFIG_REGNUM initial value handling code.
86 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
87 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4af825f3 88 (emit_set_fp_mode, epiphany_mode_after): Likewise.
c85716aa 89 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
90 Don't return 1 for FP_MODE_NONE.
91 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
92 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
93 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
94 * config/epiphany/epiphany.md (save_config): New pattern.
95
5afd8bcb 962013-05-12 Uros Bizjak <ubizjak@gmail.com>
97
98 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
99
f66a9337 1002013-05-10 Uros Bizjak <ubizjak@gmail.com>
101
102 * config/i386/i386.md (memory): Handle sseishft1.
103 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
104 (*vec_extractv2di_1): Ditto.
105
904ea1db 1062013-05-10 Vladimir Makarov <vmakarov@redhat.com>
107
108 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
109 saved registers.
110
82b24465 1112013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
e70cd596 112
113 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
114 Add mthumb/march=armv7-a multilib.
115 Add mthumb/march=armv7-r multilib.
116 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
117
1bc74e6e 1182013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
119
120 * config/v850/t-rtems: Add more multilibs.
121
fca2aa67 1222013-05-10 Richard Biener <rguenther@suse.de>
123
124 PR tree-optimization/57214
125 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
126 not propagate from SSA names that occur in abnormal PHI nodes.
127
432dd330 1282013-05-10 Marc Glisse <marc.glisse@inria.fr>
129
130 * stor-layout.c (element_precision): New function.
131 * machmode.h (element_precision): Declare it.
132 * tree.c (build_minus_one_cst): New function.
133 (element_precision): Likewise.
134 * tree.h (build_minus_one_cst): Declare new function.
135 (element_precision): Likewise.
136 * fold-const.c (operand_equal_p): Use element_precision.
137 (fold_binary_loc): Handle vector types.
138 * convert.c (convert_to_integer): Use element_precision.
139 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
140 separately.
141
287e3614 1422013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
143
144 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
145 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
146 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
147 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
148 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
149 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
150 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
151 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
152 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
153 (Uuw8): New constraints.
154 (Usb4): Move into alphabetical order.
155 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
156 (sd8_operand, ub8_operand, uw8_operand): New predicates.
157 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
158 previously unnamed patterns.
159 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
160 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
161 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
162 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
163 of set_attr_alternative/if_then_else. Use extended_mips16 instead
164 of specific lengths.
165
3b8827a2 1662013-05-10 Jakub Jelinek <jakub@redhat.com>
167
bf7ec243 168 * config/i386/i386.md (rotateinv): New code attr.
169 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
170 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
171 roll $31, %eax, etc.
172
3b8827a2 173 PR tree-optimization/45216
174 PR tree-optimization/57157
175 * tree-ssa-forwprop.c (simplify_rotate): New function.
176 (ssa_forward_propagate_and_combine): Call it.
177
2cd0995e 1782013-05-10 Richard Biener <rguenther@suse.de>
179
180 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
181 disable peeling when we version for aliasing.
182 (vector_alignment_reachable_p): Honor explicit user alignment.
183 (vect_supportable_dr_alignment): Likewise.
184 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
185 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
186 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
187 then peeling to arrange for the cost-model check to come first.
188
15ba1c5f 1892013-05-10 Alan Modra <amodra@gmail.com>
190
191 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
192 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
193 * configure: Regenerate.
194
916b643b 1952013-05-10 Alan Modra <amodra@gmail.com>
196
197 PR target/55033
198 * varasm.c (default_elf_select_section): Move !DECL_P check..
199 (get_named_section): ..to here before calling get_section_name.
200 Adjust assertion.
201 (default_section_type_flags): Add DECL_P check.
202 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
203 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
204
3f5a5361 2052013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
206
207 * config/epiphany/epiphany.c (epiphany_expand_prologue):
208 When using gen_stack_adjust_str with a register offset, add a
209 REG_FRAME_RELATED_EXPR note.
210
b8403b2e 2112013-05-09 Uros Bizjak <ubizjak@gmail.com>
212
213 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
214 (*vec_extractv4si_zext_mem): Ditto.
215 (*vec_extractv2di): Add 0->x and x->x alternatives.
216 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
217 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
218
4fa680c3 2192013-05-09 Jason Merrill <jason@redhat.com>
220
b749017f 221 N3639 C++1y VLA support
222 * gimplify.c (gimplify_vla_decl): Don't touch an existing
223 DECL_VALUE_EXPR.
224
4fa680c3 225 * tree.c (build_constructor_va): New.
226 * tree.h: Declare it.
227
0a2d5b65 2282013-05-09 Martin Jambor <mjambor@suse.cz>
229
230 PR lto/57084
231 * gimple-fold.c (canonicalize_constructor_val): Call
232 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
233
85b7ebb2 2342013-05-09 Jan Hubicka <jh@suse.cz>
235 Richard Biener <rguenther@suse.de>
236
237 PR lto/54095
238 * symtab.c (symtab_make_decl_local): Do not add private names.
239
6f4cfc6d 2402013-05-09 Jan Hubicka <jh@suse.cz>
241
242 PR lto/54095
243 * symtab.c (insert_to_assembler_name_hash): Handle clones.
244 (unlink_from_assembler_name_hash): Likewise.
245 (symtab_prevail_in_asm_name_hash, symtab_register_node,
246 symtab_unregister_node, symtab_initialize_asm_name_hash,
247 change_decl_assembler_name): Update.
248
eff87958 2492013-05-09 Sofiane Naci <sofiane.naci@arm.com>
250
251 * config/aarch64/aarch64.md: New movtf split.
252 (*movtf_aarch64): Update.
253 (aarch64_movdi_tilow): Handle TF modes and rename to
254 aarch64_movdi_<mode>low.
255 (aarch64_movdi_tihigh): Handle TF modes and rename to
256 aarch64_movdi_<mode>high
257 (aarch64_movtihigh_di): Handle TF modes and rename to
258 aarch64_mov<mode>high_di
259 (aarch64_movtilow_di): Handle TF modes and rename to
260 aarch64_mov<mode>low_di
261 (aarch64_movtilow_tilow): Remove spurious whitespace.
262 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
263 splits.
264 (aarch64_print_operand): Update.
265
e0b071f6 2662013-05-09 Alan Modra <amodra@gmail.com>
267
268 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
269 powerpc64le.
270 * configure: Regenerate.
271
823a2ddd 2722013-05-08 Uros Bizjak <ubizjak@gmail.com>
273
274 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
275 splitter preparation statements.
276 * config/i386/sse.md (*vec_extract* splitters): Ditto.
277 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
278 adjust_address_nv.
279
d873e825 2802013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
281
282 * gimple-ssa-strength-reduction.c (count_candidates): Change
283 return value to int.
284 (analyze_candidates_and_replace): Change type of length to int.
285
27fc86e0 2862013-05-08 Uros Bizjak <ubizjak@gmail.com>
287
288 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
289 (*vec_extract<mode>): Use VI12_128 mode iterator.
290 (*vec_extract<mode>_mem): Ditto.
291 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
292 attribute.
293
45cde32d 2942013-05-08 Diego Novillo <dnovillo@google.com>
295
296 PR bootstrap/54659
297
298 Revert:
45cde32d 299 2012-08-17 Diego Novillo <dnovillo@google.com>
300
27fc86e0 301 PR bootstrap/54281
302 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
303 * config.in: Regenerate.
304 * configure: Regenerate.
305 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
45cde32d 306
5c368d8a 3072013-05-08 Jan Hubicka <jh@suse.cz>
308
309 PR lto/54095
310 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
311 * cgraph.h (symtab_node_base): Add unique_name.
312 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
313 input_overwrite_node, input_varpool_node): Stream unique_name.
314 * cgraphclones.c (cgraph_create_virtual_clone,
315 cgraph_function_versioning): Set unique_name.
316 * ipa.c (function_and_variable_visibility): Set unique_name.
317
8858a76d 3182013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
319
320 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
321 (alloc_cand_and_find_basis): Restrict conditional candidate
322 processing to CAND_MULTs.
323
48bbff00 3242013-05-08 Jan Hubicka <jh@suse.cz>
325
326 PR lto/54095
327 lto-symtab.c (lto_symtab_symbol_p): New function.
328 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
329 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
330 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
331 Skip static symbols.
332
531a0a15 3332013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
334
335 PR tree-optimization/57200
336 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
337 Only call inform if the preceding warning_at returns true.
338
b156ec37 3392013-05-07 Han Shen <shenhan@google.com>
340
341 * cfgexpand.c (record_or_union_type_has_array_p): New function.
342 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
343 * common.opt (fstack-protector-strong): New option.
344 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
345 * doc/invoke.texi (Optimization Options): Document
346 "-fstack-protector-strong".
347 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
348
5c2d214d 3492013-05-06 Steven Bosscher <steven@gcc.gnu.org>
350
351 * config/mips/mips.c (mips_machine_reorg2): Return 0.
352
c625778b 3532013-05-07 Vladimir Makarov <vmakarov@redhat.com>
354
355 * ira.c (update_equiv_regs): Add insn having equiv memory even if
356 it is not lhs of the insn.
357 (setup_reg_equiv): Remove insn having equiv memory which it is not
358 lhs of the insn.
359 * lra-constraints.c (process_address): Try to improve generation
360 code for address base + disp.
361 (lra_constraints): Make correct the code for checking insn setting
362 up backward equivalence. Remove insn only if it is in the init
363 insn list.
364 * lra-eliminations.c (update_reg_eliminate): Change return value.
365 (lra_eliminate): Use the result.
366
1087c60b 3672013-05-07 Uros Bizjak <ubizjak@gmail.com>
368
369 * config/i386/sse.md (ssescalarnummask): New mode attribute.
370 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
371 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
372 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
373 register target operands.
374 (*vec_extractv8hi_sse2): New pattern.
375 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
376 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
377 (*vec_extract<mode>_mem): New insn and split pattern.
378
3e8585ab 3792013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
380
381 * config/arm/arm.c (arm_asan_shadow_offset): New function.
382 (TARGET_ASAN_SHADOW_OFFSET): Define.
383 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
384 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
385
d62a8480 3862013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
387
388 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
389 (incr_vec_index): Return -1 if increment not found.
390 (create_add_on_incoming_edge): Assert if increment not found.
391 (record_increment): Limit number of increments recorded.
392 (all_phi_incrs_profitable): Return false if an increment not found.
393 (replace_profitable_candidates): Don't process increments that were
394 not recorded.
395 (analyze_candidates_and_replace): Limit size of incr_vec.
396
3621f68e 3972013-05-07 Richard Biener <rguenther@suse.de>
398
399 * calls.c (special_function_p): setjmp-like functions are leaf.
400 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
401 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
402
e0e03aa1 4032013-05-07 Sofiane Naci <sofiane.naci@arm.com>
404
405 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
406 (aarch64_simd_mov<mode>): New expander.
407 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
408 (aarch64_simd_mov_to_<mode>high): Likewise.
409 (aarch64_simd_mov_from_<mode>low): Likewise.
410 (aarch64_simd_mov_from_<mode>high): Likewise.
411 (aarch64_dup_lane<mode>): Update.
412 (aarch64_dup_lanedi): New instruction pattern.
413 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
414 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
415
d54ab372 4162013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
417
418 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
419 (replace_mult_candidate): Remove unnecessary argument; remove
420 unnecessary parameter from call to introduce_cast_before_cand.
421 (replace_unconditional_candidate): Remove unnecessary parameter
422 from call to replace_mult_candidate.
423 (replace_conditional_candidate): Likewise.
424 (insert_initializers): Use make_temp_ssa_name.
425 (introduce_cast_before_cand): Remove unnecessary argument; use
426 make_temp_ssa_name.
427 (replace_one_candidate): Remove unnecessary argument; remove
428 unnecessary parameter from calls to introduce_cast_before_cand.
429 (replace_profitable_candidates): Remove unnecessary parameters
430 from calls to replace_one_candidate.
431
cebae8f7 4322013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
433
434 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
435 phi def as possibly hiding a basis for a CAND_ADD whose operands
436 have been commuted in the analysis.
437 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
438
dcb79d5f 4392013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
440
441 * config/aarch64/aarch64.md
442 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
443 shift value between 0-4.
444
75aefb7b 4452013-05-07 Richard Biener <rguenther@suse.de>
446
447 * double-int.h (rshift): New overload.
448 * double-int.c (rshift): New function.
449 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
450 (create_reference_ops_from_ref): Remove.
451 (vn_reference_insert): Use shared ops for constructing the
452 reference and copy it.
453
587a19f1 4542013-05-07 Richard Biener <rguenther@suse.de>
455
456 PR middle-end/57190
457 * tree-eh.c (sink_clobbers): Properly propagate
458 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
459
03404fe6 4602013-05-07 Jakub Jelinek <jakub@redhat.com>
461
182debc1 462 PR tree-optimization/57149
463 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
464 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
465 collect_phi_def_edges, execute_late_warn_uninitialized): Use
466 uninit_undefined_value_p instead of ssa_undefined_value_p.
467
03404fe6 468 PR debug/57184
469 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
470 for modifier == EXPAND_INITIALIZER.
471
7c291732 4722013-05-07 Anton Blanchard <anton@samba.org>
473
474 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
475 for powerpc64 little endian.
476 * configure: Regenerate.
477
6a219c68 4782013-05-06 Graham Stott <grahams@btinternet.com>
479
480 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
481 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
482 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
483 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
484
4852013-05-06 Graham Stott <grahams@btinternet.com>
7e91113e 486
487 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
488 codes which allow non-lvalues.
489
5a4f3016 4902013-05-06 Marc Glisse <marc.glisse@inria.fr>
491
492 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
493 components are all 1s.
494 (integer_minus_onep): New function.
495 * tree.h (integer_minus_onep): Declare it.
496 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
497 integer_minus_onep instead of integer_all_onesp.
498
8de9db6e 4992013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
500
501 PR target/52933
502 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
503 variations of these patterns.
504
2071a184 5052013-05-06 Uros Bizjak <ubizjak@gmail.com>
506
507 * config/i386/i386.md (isa): Add x64_sse4 member.
508 (enabled): Handle x64_sse4.
509 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
510 instruction for 64bit SSE4_1 targets. Update insn attributes.
511 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
512 instruction for SSE4_1 targets. Update insn attributes.
513 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
514 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
515 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
516 const_1 selector.
517 (*vec_extractv4si): Rename from *sse4_1_pextrd.
518 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
519 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
520
e3c1cc51 5212013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
522
523 PR target/57108
524 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
525
82353beb 5262013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
527
528 * final.c (do_assembler_dialects): Don't handle curly braces and
529 vertical bar escaped by % as dialect delimiters.
530 (output_asm_insn): Print curly braces and vertical bar if escaped
531 by % and ASSEMBLER_DIALECT defined.
532 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
533 * doc/tm.texi: Regenerated.
534
5a2fb01f 5352013-05-06 Steven Bosscher <steven@gcc.gnu.org>
536
5a2fb01f 537 * config/mips/mips.c: Include tree-pass.h.
538 (mips_reorg): Split in pre- and post-dbr_schedule parts.
539 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
540 (pass_mips_machine_reorg2): New machine specific pass.
541 (insert_pass_mips_machine_reorg2): New pass plugin definition.
542 (mips_option_override): Register the new pass.
543 * rtl.h (cleanup_barriers): Remove prototype.
544 (dbr_schedule): Likewise.
545 * jump.c (cleanup_barriers): Make static.
546 * reorg.c (dbr_schedule): Likewise.
547
59c0ed80 5482013-05-06 Richard Biener <rguenther@suse.de>
549
550 PR tree-optimization/57185
551 * tree-parloops.c (add_field_for_reduction): Handle anonymous
552 SSA names properly.
553
0b9c4816 5542013-05-06 Uros Bizjak <ubizjak@gmail.com>
555
556 PR target/57106
557 * config/i386/i386.c (add_parameter_dependencies): Add dependence
558 between "first_arg" and "insn", not "last" and "insn".
559
7090b697 5602013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
561
562 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
563 (find_candidates_in_block): Re-enable slsr_process_phi.
564 (create_phi_basis): Fix double counting of candidate adjustment.
565
e2a6b9da 5662013-05-06 Richard Biener <rguenther@suse.de>
567
568 PR middle-end/57147
569 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
570 the edge is also fallthru, preserve it and just clear the
571 abnormal flag.
572 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
573 also complex, preserve that and just clear the fallthru flag.
574 * tree-inline.c (update_ssa_across_abnormal_edges): Also
575 update virtual operands.
576
a6245fde 5772013-05-06 Alan Modra <amodra@gmail.com>
578
579 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
580 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
581 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
582 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
583 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
584 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
585
23c6c8a2 5862013-05-06 Alan Modra <amodra@gmail.com>
587
588 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
589 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
590 (DEFAULT_ASM_ENDIAN): Define.
591 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
592 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
593 Update -K PIC clause from sysv4.h.
594 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
595 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
596
75e370bf 5972013-05-06 Alan Modra <amodra@gmail.com>
598
599 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
600 twice for little-endian.
601 (ashrdi3_no_power, ashrdi3): Support little-endian.
602
a61eea5a 6032013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
604
605 PR target/55303
606 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
607 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
608 related expanders.
609 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
610 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
611 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
612 New predicates.
613
b8f55b74 6142013-05-05 Steven Bosscher <steven@gcc.gnu.org>
615 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
616
617 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
618 * config/pa/pa.opt: Make mbig-switch a no-op.
619 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
620 (CASE_VECTOR_MODE): Always return SImode.
621 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
622 for the !TARGET_BIG_SWITCH case.
623 * config/pa/pa-linux.h: Likewise.
624 * config/pa/pa-openbsd.h: Likewise.
625 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
626 * config/pa/pa.md (short_jump): Remove define_insn.
627 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
628 (casesi0): Remove define_insn.
629 (type): Remove btable_branch.
630 (pa_combine_type): Likewise.
631 (in_nullified_branch_delay): Likewise.
632 (in_call_delay): Likewise.
633 (define_delay): Likewise.
634 (define_insn_reservation "Z3"): Likewise.
635 (define_insn_reservation "Z4"): Likewise.
636 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
637 (pa_adjust_insn_length): Remove adjustment for btable branches.
638 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
639 and mno-big-switch
640
fe4df2ce 6412013-05-05 Uros Bizjak <ubizjak@gmail.com>
642
643 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
644 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
645 Add m->r,x alternatives.
646 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
647 splitters using SWI48x mode iterator.
648 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
649 TARGET_64BIT. Add m->x alternative.
650 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
651 Add o->x alternative. Enable for TARGET_SSE.
652 (sse_storeq): Remove expander.
653 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
654 with memory input operand.
655 (*vec_extractv2di_1 splitter): New.
656 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
657 * config/i386/i386.md (ssevecmodelower): New mode attribute.
658
97f92bff 6592013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
660
661 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
662 (INT_LOWPART): Delete.
663 (extract_MB): Adjust.
664 (extract_ME): Adjust.
665 (print_operand): Adjust.
666
42408413 6672013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
668
669 * config/rs6000/predicates.md (reg_or_add_cint_operand,
670 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
671 (reg_or_logical_cint_operand, easy_fp_constant,
672 logical_const_operand): Delete "CONST_DOUBLE" case.
673 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
674 "HOST_BITS_PER_WIDE_INT == 64" test.
fe4df2ce 675 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
42408413 676 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
677 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
678 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
679 test.
680 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
681 CONST_DOUBLE DImode/VOIDmode case.
682 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
683 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
684 CONST_DOUBLE VOIDmode case.
685 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
686 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
687 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
688 Delete CONST_DOUBLE case.
689 (splitters for mov FMOVE64 const_double): Delete
690 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
691 "HOST_BITS_PER_WIDE_INT >= 64" test.
692 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
693 case.
694 (mov DI const_double): Delete.
695
fd304a93 6962013-05-04 Jakub Jelinek <jakub@redhat.com>
697
698 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
699 on op shows all bits zero in mode of a lowpart subreg, return zero.
700
21e5dc01 7012013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
702
703 PR target/57150
704 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
705 to save TFmode registers and DImode to save TImode registers for
706 caller save operations.
707 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
708 mark being partially clobbered since they only use the first
709 double word.
710
711 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
712 and TDmode only use the upper 64-bits of each VSX register.
713
e64c90eb 7142013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
715
716 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
717 (find_candidates_in_block): Disable slsr_process_phi.
718
bd13f5e8 7192013-05-03 Guozhi Wei <carrot@google.com>
720
721 * coverage.c (coverage_obj_init): Move the construction of gcov
fe4df2ce 722 constructor to ...
723 (build_init_ctor): ... here.
bd13f5e8 724
1168caca 7252013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
726
727 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
728 (slsr_cand_d): Redefine def_phi.
729 (stride_status, phi_adjust_status, count_phis_status): New enums.
730 (find_phi_def): New.
731 (find_basis_for_base_expr): New.
732 (find_basis_for_candidate): Handle hidden bases.
733 (alloc_cand_and_find_basis): Handle phi candidates.
734 (slsr_process_phi): New.
735 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
736 (create_mul_imm_cand): Likewise.
737 (create_add_ssa_cand): Exclude phi base candidates.
738 (create_add_imm_cand): Likewise.
739 (slsr_process_cast): Likewise.
740 (slsr_process_copy): Likewise.
741 (find_candidates_in_block): Handle phi candidates.
742 (dump_candidate): Likewise.
743 (unconditional_cands): Delete.
744 (unconditional_cands_with_known_stride_p): Delete.
745 (phi_dependent_cand_p): New.
746 (cand_increment): Handle phi-dependent candidates.
747 (replace_dependent): Delete.
748 (replace_mult_candidate): New.
749 (replace_unconditional_candidate): New.
750 (incr_vec_index): Move to avoid forward reference.
751 (create_add_on_incoming_edge): New.
752 (create_phi_basis): New.
753 (replace_dependents): Delete.
754 (replace_conditional_candidate): New.
755 (phi_add_costs): New.
756 (replace_uncond_cands_and_profitable_phis): New.
757 (record_increment): Handle phi adjustments.
758 (record_phi_increments): New.
759 (record_increments): Handle phi adjustments.
760 (phi_incr_cost): New.
761 (lowest_cost_path): Handle phis.
762 (total_savings): Likewise.
763 (analyze_increments): Likewise.
764 (ncd_with_phi): New.
765 (ncd_of_cand_and_phis): New.
766 (nearest_common_dominator_for_cands): Handle phi increments.
767 (all_phi_incrs_profitable): New.
768 (replace_profitable_candidates): Handle phi-dependent candidates.
769 (analyze_candidates_and_replace): Likewise.
770
df21e330 7712013-05-03 Teresa Johnson <tejohnson@google.com>
772
773 PR bootstrap/57154
774 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
775 do not exceed REG_BR_PROB_BASE.
776
d06dae50 7772013-05-03 Jeff Law <law@redhat.com>
778
66c357ba 779 PR tree-optimization/57144
d06dae50 780 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
781 operand of the condition will bit into the new type when eliminating
782 a cast feeding a condition.
783
cea05f44 7842013-05-03 Jakub Jelinek <jakub@redhat.com>
785
786 PR rtl-optimization/57130
fe4df2ce 787 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
788 of COMPARE as in_code to the recursive call if needed.
cea05f44 789
65c52515 7902013-05-03 Uros Bizjak <ubizjak@gmail.com>
791
792 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
793 (enabled): Handle new members.
794 * config/i386/sse.md (*vec_concatv2si): Merge from
795 *vec_concatv2si_sse2 and vec_concatv2si_sse.
796 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
797
058e9571 7982013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
799
800 PR tree-optimization/57027
801 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
802 for fnms opportunity, check we got the prerequisite kind
803 of tree / gimple before using accessor functions.
804
9a8b9e26 8052013-05-03 Richard Biener <rguenther@suse.de>
806
807 * double-int.h (lshift): New overload without precision
808 and arith argument.
809 (operator *=, operator +=, operator -=): Move ...
810 * double-int.c (operator *=, operator +=, operator -=): ... here
811 and implement more efficiently.
812 (mul_double_with_sign): Remove.
813 (lshift_double): Adjust to take unsinged shift argument, push
814 dispatching code to callers.
815 (mul_double_wide_with_sign): Add early out for callers that
816 are not interested in high parts or overflow.
817 (lshift): New function.
818 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
819 dispatch code here.
820 (lrotate, rrotate): Use logical shifts.
821 * expr.c (get_inner_reference): Use lshift.
822 * fixed-value.c (do_fixed_divide): Likewise.
823 * tree-dfa.c (get_ref_base_and_extent): Likewise.
824 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
825 (indirect_refs_may_alias_p): Likewise.
826 (stmt_kills_ref_p_1): Likewise.
827
91b3c1af 8282013-05-03 Vidya Praveen <vidyapraveen@arm.com>
829
830 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
831
4d9d91e8 8322013-05-03 Vidya Praveen <vidyapraveen@arm.com>
833
834 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
835 scalar form of FABD instruction.
836
04dda2a2 8372013-05-02 Vladimir Makarov <vmakarov@redhat.com>
838
839 * lra-constraints.c (process_alt_operands): Add checking alt
840 number to choose the best alternative.
841
077b5b8a 8422013-05-02 Richard Biener <rguenther@suse.de>
843
844 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
845 bitmap and its handling.
846 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
847
92b43d63 8482013-05-02 Richard Biener <rguenther@suse.de>
849
850 PR middle-end/57140
851 * tree-inline.c (copy_loops): Properly handle removed loops.
852 (copy_cfg_body): Mark destination loops for fixup if source
853 loops needed fixup.
854
d93eb6ad 8552013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
856
857 PR target/56732
858 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
859 generating simple_return for naked functions.
860
c42e4f2e 8612013-05-02 Martin Jambor <mjambor@suse.cz>
862
863 PR middle-end/56988
864 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
865 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
866 flags match.
867 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
868 ipa_agg_replacement_value structures.
869 (known_aggs_to_agg_replacement_list): Likewise.
870 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
871 (read_agg_replacement_chain): Likewise.
872 (ipcp_transform_function): Also check that by_ref flags match.
873
73c6d54e 8742013-05-02 Richard Biener <rguenther@suse.de>
875
876 * graphds.h (struct graph): Add obstack member.
877 * graphds.c (new_graph): Initialize obstack and allocate
878 vertices from it.
879 (add_edge): Allocate edge from the obstack.
65c52515 880 (free_graph): Free the obstack instead of all edges and vertices.
73c6d54e 881
70074000 8822013-05-02 Teresa Johnson <tejohnson@google.com>
883
884 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
885 divides.
886 * cfg.c (update_bb_profile_for_threading): Ditto.
887 * tree-inline.c (copy_bb): Ditto.
888 (copy_edges_for_bb): Ditto.
889 (initialize_cfun): Ditto.
890 (copy_cfg_body): Ditto.
891 (expand_call_inline): Ditto.
892 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
893 (estimate_node_size_and_time): Ditto.
894 (inline_merge_summary): Ditto.
895 * cgraphclones.c (cgraph_clone_edge): Ditto.
896 (cgraph_clone_node): Ditto.
897 * sched-rgn.c (compute_dom_prob_ps): Ditto.
898 (compute_trg_info): Ditto.
899
4817649a 9002013-05-02 Ian Bolton <ian.bolton@arm.com>
901
902 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
903 S reg when fp attribute set.
904 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
905
623ae2ee 9062013-05-02 Ian Bolton <ian.bolton@arm.com>
907
908 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
909 New pattern.
910 (*and_one_cmplsi3_compare0_uxtw): Likewise.
911 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
912 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
913
e23d3784 9142013-05-02 Richard Biener <rguenther@suse.de>
915
916 * tree-scalar-evolution.c (scev_info_hasher): Remove.
917 (struct instantiate_cache_entry): New type.
918 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
919 (struct instantiate_cache_type): New type.
920 (set_instantiated_value, get_instantiated_value): Remove.
921 (get_instantiated_value_entry): New function.
922 (instantiate_scev_name): Use the new cache and adjust.
923 (instantiate_scev_poly): Adjust.
924 (instantiate_scev_binary): Likewise.
925 (instantiate_array_ref): Likewise.
926 (instantiate_scev_convert): Likewise.
927 (instantiate_scev_not): Likewise.
928 (instantiate_scev_3): Likewise.
929 (instantiate_scev_2): Likewise.
930 (instantiate_scev_r): Likewise.
931 (instantiate_scev): Likewise.
932 (resolve_mixers): Likewise.
933
273c330a 9342013-05-01 Vladimir Makarov <vmakarov@redhat.com>
935
936 PR target/57091
937 * lra-constraints.c (best_small_class_operands_num): Remove.
938 (process_alt_operands): Remove small_class_operands_num. Take
939 small classes operands into losers and only if the operand is not
940 matched. Modify debugging output.
941 (curr_insn_transform): Remove best_small_class_operands_num.
942 Print insn name.
943
4491e251 9442013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
945
946 * config/aarch64/aarch64-builtins.c
947 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
948 * config/aarch64/aarch64-simd-builtins.def
949 (reduc_splus_): Add new modes.
950 (reduc_uplus_): New.
951 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
952 (reduc_uplus_v4sf): Likewise.
953 (reduc_splus_v4sf): Likewise.
954 (aarch64_addv<mode>): Likewise.
955 (reduc_uplus_<mode>): Likewise.
956 (reduc_splus_<mode>): Likewise.
957 (aarch64_addvv2di): Likewise.
958 (reduc_uplus_v2di): Likewise.
959 (reduc_splus_v2di): Likewise.
960 (aarch64_addvv2si): Likewise.
961 (reduc_uplus_v2si): Likewise.
962 (reduc_splus_v2si): Likewise.
963 (reduc_<sur>plus_<mode>): New.
964 (reduc_<sur>plus_v2di): Likewise.
965 (reduc_<sur>plus_v2si): Likewise.
966 (reduc_<sur>plus_v4sf): Likewise.
967 (aarch64_addpv4sf): Likewise.
968 * config/aarch64/arm_neon.h
969 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
970 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
971 add UNSPEC_SADDV, UNSPEC_UADDV.
972 (SUADDV): New.
973 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
974
3bbdb270 9752013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
976
977 * config/aarch64/arm_neon.h
978 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
979
867d4a60 9802013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
981
982 * config/aarch64/aarch64-builtins
983 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
984
2520d4b7 9852013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
986
987 * config/aarch64/aarch64-simd-builtins.def
988 (reduc_smax_): New.
989 (reduc_smin_): Likewise.
990 (reduc_umax_): Likewise.
991 (reduc_umin_): Likewise.
992 (reduc_smax_nan_): Likewise.
993 (reduc_smin_nan_): Likewise.
994 (fmax): Remove.
995 (fmin): Likewise.
996 (smax): Update for V2SF, V4SF and V2DF modes.
997 (smin): Likewise.
998 (smax_nan): New.
999 (smin_nan): Likewise.
1000 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
1001 (<su><maxmin><mode>3): ...This, refactor.
1002 (s<maxmin><mode>3): New.
1003 (<maxmin_uns><mode>3): Likewise.
1004 (reduc_<maxmin_uns>_<mode>): Refactor.
1005 (reduc_<maxmin_uns>_v4sf): Likewise.
1006 (reduc_<maxmin_uns>_v2si): Likewise.
1007 (aarch64_<fmaxmin><mode>: Remove.
1008 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
1009 new builtin names.
1010 (vmin<q>_f<32,64>): Likewise.
1011 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1012 (FMAXMIN): New.
1013 (su): Add mappings for smax, smin, umax, umin.
1014 (maxmin): New.
1015 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
1016 (FMAXMIN): Rename as...
1017 (FMAXMIN_UNS): ...This.
1018 (maxminv): Remove.
1019 (fmaxminv): Likewise.
1020 (fmaxmin): Likewise.
1021 (maxmin_uns): New.
1022 (maxmin_uns_op): Likewise.
1023
2fe1d3d6 10242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1025
1026 * config/aarch64/arm_neon.h
1027 (vac<ge, gt><sd>_f<32, 64>): Rename to...
1028 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
1029 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
1030
3310ab7f 10312013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1032
1033 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
1034 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
1035
a793ba7d 10362013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1037
1038 * config/aarch64/aarch64-simd.md
1039 (vcond<mode>_internal): Handle special cases for constant masks.
1040 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
1041 (vcondu<mode><mode>): Likewise.
1042 (vcond<v_cmp_result><mode>): New.
1043
c4759747 10442013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1045
1046 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
1047 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
1048 * config/aarch64/aarch64-simd-builtins.def
1049 (cmeq): Update to BUILTIN_VALLDI.
1050 (cmgt): Likewise.
1051 (cmge): Likewise.
1052 (cmle): Likewise.
1053 (cmlt): Likewise.
1054 * config/aarch64/arm_neon.h
1055 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
1056 to builtins or C as appropriate.
1057
6ba1316b 10582013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
1059
1060 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
1061 (cmgeu): ...This.
1062 (cmhi): Rename to...
1063 (cmgtu): ...This.
1064 * config/aarch64/aarch64-simd.md
1065 (simd_mode): Add SF.
1066 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
1067 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
1068 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
1069 (cstore<mode>_neg): ...This.
1070 * config/aarch64/iterators.md
1071 (VALLF): new.
1072 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
1073 (COMPARISONS): New.
1074 (UCOMPARISONS): Likewise.
1075 (optab): Add missing comparisons.
1076 (n_optab): New.
1077 (cmp_1): Likewise.
1078 (cmp_2): Likewise.
1079 (CMP): Likewise.
1080 (cmp): Remove.
1081 (VCMP_S): Likewise.
1082 (VCMP_U): Likewise.
1083 (V_cmp_result): Add DF, SF modes.
1084 (v_cmp_result): Likewise.
1085 (v): Likewise.
1086 (vmtype): Likewise.
1087 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
1088
50148b9a 10892013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
1090
1091 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
1092 define_insn to define_insn_and_split.
1093 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
1094 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
1095 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
1096 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
1097 (thumb2_negscc): Likewise.
1098
e57907f3 10992013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1100
1101 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
1102
d9eaa291 11032013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
1104
1105 * config/arm/thumb2.md: Remove trailing whitespaces.
1106
e3fc9ffb 11072013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1108
1109 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
1110 Use gen_int_mode rather than GEN_INT.
1111
c350d42f 11122013-04-30 H.J. Lu <hongjiu.lu@intel.com>
1113
9baae48f 1114 * value-prof.c (stream_in_histogram_value): Remove the strayed
c350d42f 1115 debug_gimple_stmt.
1116
65a02176 11172013-04-30 Richard Biener <rguenther@suse.de>
1118
1119 PR middle-end/57122
65c52515 1120 * cfghooks.c (split_edge): Properly check for the loop latch edge.
65a02176 1121
0ba38440 11222013-04-30 Richard Biener <rguenther@suse.de>
1123
1124 PR middle-end/57107
1125 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
1126
d5897457 11272013-04-30 Andrey Belevantsev <abel@ispras.ru>
1128
1129 PR rtl-optimization/56957
1130 PR rtl-optimization/57105
d5897457 1131 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
1132 variable. Use just INSN_UID for determining whether an insn
1133 should be only disconnected from the insn stream.
1134 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
1135
060d11f4 11362013-04-30 Jakub Jelinek <jakub@redhat.com>
1137
1138 PR tree-optimization/57104
1139 * tsan.c (instrument_expr): Don't instrument accesses to
1140 DECL_HARD_REGISTER VAR_DECLs.
1141
41f75a99 11422013-04-30 Richard Biener <rguenther@suse.de>
1143
1144 * function.h (loops_for_fn): New inline function.
1145 (set_loops_for_fn): Likewise.
1146 * cfgloop.h (place_new_loop): Add struct function parameter.
1147 (get_loop): Likewise.
1148 (get_loops): Likewise.
1149 (number_of_loops): Likewise.
1150 (fel_next): Adjust.
1151 (fel_init): Likewise.
1152 * cfg.c (get_loop_copy): Adjust.
1153 * cfgloop.c (flow_loops_dump): Likewise.
1154 (record_loop_exits): Likewise.
1155 (verify_loop_structure): Likewise.
1156 * cfgloopanal.c (mark_irreducible_loops): Likewise.
1157 (estimate_reg_pressure_cost): Likewise.
1158 (mark_loop_exit_edges): Likewise.
1159 * cfgloopmanip.c (place_new_loop): Likewise.
1160 (add_loop): Likewise.
1161 (duplicate_loop): Likewise.
1162 * graph.c (draw_cfg_nodes): Likewise.
1163 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
1164 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
1165 (extract_affine_chrec): Likewise.
1166 (build_scop_iteration_domain): Likewise.
1167 * graphite.c (graphite_initialize): Likewise.
1168 * ira-build.c (create_loop_tree_nodes): Likewise.
1169 (more_one_region_p): Likewise.
1170 (rebuild_regno_allocno_maps): Likewise.
1171 (mark_loops_for_removal): Likewise.
1172 (mark_all_loops_for_removal): Likewise.
1173 (remove_unnecessary_regions): Likewise.
1174 (ira_build): Likewise.
1175 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1176 * loop-init.c (fix_loop_structure): Likewise.
1177 (gate_rtl_move_loop_invariants): Likewise.
1178 (gate_rtl_unswitch): Likewise.
1179 (gate_rtl_unroll_and_peel_loops): Likewise.
1180 (rtl_doloop): Likewise.
1181 * lto-streamer-in.c (input_cfg): Likewise.
1182 * lto-streamer-out.c (output_cfg): Likewise.
1183 * modulo-sched.c (sms_schedule): Likewise.
1184 * predict.c (tree_estimate_probability): Likewise.
1185 (tree_estimate_probability_driver): Likewise.
1186 (estimate_loops): Likewise.
1187 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
1188 (move_sese_region_to_fn): Likewise.
1189 (debug_loop_num): Likewise.
1190 * tree-chrec.c (chrec_evaluate): Likewise.
1191 (hide_evolution_in_other_loops_than_loop): Likewise.
1192 (chrec_component_in_loop_num): Likewise.
1193 (reset_evolution_in_loop): Likewise.
1194 (evolution_function_is_invariant_rec_p): Likewise.
1195 * tree-if-conv.c (main_tree_if_conversion): Likewise.
1196 * tree-inline.c (copy_loops): Likewise.
1197 (copy_cfg_body): Likewise.
1198 (tree_function_versioning): Likewise.
1199 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
1200 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1201 Likewise.
1202 (add_to_evolution_1): Likewise.
1203 (scev_const_prop): Likewise.
1204 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
1205 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
1206 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
1207 (tree_ssa_lim_initialize): Likewise.
1208 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
1209 (verify_loop_closed_ssa): Likewise.
1210 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
1211 (tree_ssa_loop_im): Likewise.
1212 (tree_ssa_loop_unswitch): Likewise.
1213 (tree_vectorize): Likewise.
1214 (check_data_deps): Likewise.
1215 (tree_ssa_loop_ivcanon): Likewise.
1216 (tree_ssa_loop_bounds): Likewise.
1217 (tree_complete_unroll): Likewise.
1218 (tree_complete_unroll_inner): Likewise.
1219 (tree_parallelize_loops): Likewise.
1220 (tree_ssa_loop_prefetch): Likewise.
1221 (tree_ssa_loop_ivopts): Likewise.
1222 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
1223 * tree-vectorizer.c (vectorize_loops): Likewise.
1224
2090f4f0 12252013-04-29 Mike Frysinger <vapier@gentoo.org>
1226
1227 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
1228 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
1229 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
1230 with EABI_LINK_SPEC.
1231
34e882e1 12322013-04-29 Uros Bizjak <ubizjak@gmail.com>
1233
1234 PR target/44578
1235 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
1236 alternative.
1237
f7c98bb1 12382013-04-29 Vladimir Makarov <vmakarov@redhat.com>
1239
1240 PR target/57097
2090f4f0 1241 * lra-constraints.c (process_alt_operands): Discourage a bit more
f7c98bb1 1242 using memory for pseudos. Print cost dump for alternatives.
1243 Modify cost values for conflicts with early clobbers.
1244 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1245
4d9f9757 12462013-04-29 Uros Bizjak <ubizjak@gmail.com>
1247
1248 PR target/57098
1249 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1250
35a93fee 12512013-04-29 Ian Bolton <ian.bolton@arm.com>
1252
1253 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
1254 from/to S register.
1255 (movdi_aarch64): Support LDR/STR from/to D register.
1256
65c4a832 12572013-04-29 Ian Bolton <ian.bolton@arm.com>
1258
1259 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
1260 or higher by default.
1261
caf1e632 12622013-04-29 Richard Biener <rguenther@suse.de>
1263
1264 PR middle-end/57075
1265 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
1266 even if not adding abnormal edges for calls that can make
1267 abnormal gotos.
1268
00ef57e3 12692013-04-29 Richard Biener <rguenther@suse.de>
1270
1271 PR middle-end/57103
1272 * tree-cfg.c (move_stmt_op): Fix condition under which to update
1273 TREE_BLOCK.
1274 (move_stmt_r): Remove redundant checking.
1275
e2bc4ec8 12762013-04-29 Teresa Johnson <tejohnson@google.com>
1277
1278 PR bootstrap/57077
1279 * basic-block.h (apply_scale): New function.
1280 (apply_probability): Use apply_scale.
1281 * gimple-streamer-in.c (input_bb): Ditto.
1282 * lto-streamer-in.c (input_cfg): Ditto.
1283 * lto-cgraph.c (merge_profile_summaries): Ditto.
1284 * tree-optimize.c (execute_fixup_cfg): Ditto.
4d9f9757 1285 * tree-inline.c (copy_bb): Update comment to use apply_scale.
e2bc4ec8 1286 (copy_edges_for_bb): Ditto.
1287 (copy_cfg_body): Ditto.
1288
c48f77d5 12892013-04-29 Tom de Vries <tom@codesourcery.com>
1290
1291 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
1292 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
1293 (tail_merge_optimize): Handle current_loops == NULL.
1294
3172284a 12952013-04-26 Jeff Law <law@redhat.com>
1296
1297 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
1298 (simplify_cond_using_ranges): Generalize code to simplify
1299 COND_EXPRs where one argument is a constant and the other
1300 is an SSA_NAME created by an integral type conversion.
1301
f15d4d96 13022013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1303
1304 * config/arm/arm.md (store_minmaxsi): Use only when
1305 optimize_insn_for_size_p.
1306
7d523484 13072013-04-29 Christian Bruel <christian.bruel@st.com>
1308
1309 PR target/57108
1310 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1311
04c2922b 13122013-04-29 Richard Biener <rguenther@suse.de>
1313
1314 PR middle-end/57089
4d9f9757 1315 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
1316 loop tree make sure to schedule a fixup for the child as well.
04c2922b 1317 (expand_omp_for_generic): Properly add loops.
1318 (expand_omp_for_static_nochunk): Likewise.
1319 (expand_omp_for_static_chunk): Likewise.
1320 (expand_omp_for): For the degenerate case fixup loops.
1321 (expand_omp_sections): Fix default bb placement in loops.
1322 (expand_omp_atomic_pipeline): Properly add loops.
1323
3349fabd 13242013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1325
1326 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
1327
a441795e 13282013-04-29 Tom de Vries <tom@codesourcery.com>
1329
1330 * tree-ssa-tail-merge.c: Update header comment.
1331
8111d37b 13322013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1333
1334 * config/aarch64/arm_neon.h
1335 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
1336 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
1337 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
1338 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
1339 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
1340 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
1341 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
1342 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
1343
c14c74cf 13442013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1345
1346 * config/aarch64/aarch64-simd.md
1347 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
1348 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
1349 fix_trunc, fixuns_trunc.
1350 (ftrunc<VDQF:mode>2): New.
1351 * config/aarch64/iterators.md (optab): Add fix, fixuns.
1352 (fix_trunc_optab): New.
1353
2ddf5043 13542013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1355
1356 * config/aarch64/aarch64-builtins.c
1357 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
1358 iceilf, lround, iroundf.
1359
2a631a93 13602013-04-29 Uros Bizjak <ubizjak@gmail.com>
1361
1362 PR target/54349
1363 * config/i386/i386.h (enum ix86_tune_indices)
1364 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
1365 New, split from X86_TUNE_INTER_UNIT_MOVES.
1366 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
1367 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
1368 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
1369 (TARGET_INTER_UNIT_MOVES): Remove.
1370 * config/i386/i386.c (initial_ix86_tune_features): Update.
1371 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
1372 (ix86_expand_convert_uns_didf_sse): Use
1373 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1374 (ix86_expand_vector_init_one_nonzero): Ditto.
1375 (ix86_expand_vector_init_interleave): Ditto.
1376 (inline_secondary_memory_needed): Return true for moves from SSE class
1377 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
1378 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
1379 * config/i386/constraints.md (Yi, Ym): Depend on
1380 TARGET_INTER_UNIT_MOVES_TO_VEC.
1381 (Yj, Yn): New constraints.
1382 * config/i386/i386.md (*movdi_internal): Change constraints of
1383 operand 1 from Yi to Yj and from Ym to Yn.
1384 (*movsi_internal): Ditto.
1385 (*movdf_internal): Ditto.
1386 (*movsf_internal): Ditto.
1387 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
1388 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
1389 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
1390 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
1391 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
1392 * config/i386/sse.md (movdi_to_sse): Ditto.
1393 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
1394 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
1395 TARGET_INTER_UNIT_MOVES.
1396 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
1397 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
1398 instead of TARGET_INTER_UNIT_MOVES.
1399 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
1400 operand 1 from Yi to Yj and from Ym to Yn.
1401
9f224c46 14022013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1403
1404 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
1405 (float_truncate_hi_): Likewise.
1406 (float_extend_lo_): Likewise.
1407 (float_truncate_lo_): Likewise.
1408 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
1409 (aarch64_float_extend_lo_v2df): Likewise.
1410 (vec_unpacks_hi_v4sf): Likewise.
1411 (aarch64_float_truncate_lo_v2sf): Likewise.
1412 (aarch64_float_truncate_hi_v4sf): Likewise.
1413 (vec_pack_trunc_v2df): Likewise.
1414 (vec_pack_trunc_df): Likewise.
1415
865dd64d 14162013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1417
1418 * config/aarch64/aarch64-builtins.c
1419 (aarch64_fold_builtin): Fold float conversions.
1420 * config/aarch64/aarch64-simd-builtins.def
1421 (floatv2si, floatv4si, floatv2di): New.
1422 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
1423 * config/aarch64/aarch64-simd.md
1424 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
1425 * config/aarch64/iterators.md (FLOATUORS): New.
1426 (optab): Add float, floatuns.
1427 (su_optab): Likewise.
1428
2fc9b3fc 14292013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1430
1431 * config/aarch64/aarch64-builtins.c
1432 (aarch64_builtin_vectorized_function): Use new names for
1433 fcvt builtins.
1434 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
1435 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
1436 (fcvtzu): Split as...
1437 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
1438 (fcvtas): Split as...
1439 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
1440 (fcvtau): Split as...
1441 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
1442 (fcvtps): Split as...
1443 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
1444 (fcvtpu): Split as...
1445 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
1446 (fcvtms): Split as...
1447 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
1448 (fcvtmu): Split as...
1449 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
1450 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
1451 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
1452 (lfrintnusf, lfrintnudf): Likewise.
1453 * config/aarch64/aarch64-simd.md
1454 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
1455 define_insn.
1456 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
1457 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
1458 (fcvt_pattern): Likewise.
1459
38c0c992 14602013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1461
1462 * config/aarch64/aarch64-simd.md
1463 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
1464 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
1465
0c882306 14662013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1467
1468 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
1469 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
1470 (vrnd<a,m,n,p>_f32): Implement using builtins.
1471 (vrnd<i,x><q>_f<32, 64>): New.
1472
abb2e961 14732013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
1474
1475 * config/aarch64/aarch64-builtins.c
1476 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
1477 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
1478 (frintz): Rename to...
1479 (btrunc): ...this.
1480 (frintp): Rename to...
1481 (ceil): ...this.
1482 (frintm): Rename to...
1483 (floor): ...this.
1484 (frinti): Rename to...
1485 (nearbyint): ...this.
1486 (frintx): Rename to...
1487 (rint): ...this.
1488 (frinta): Rename to...
1489 (round): ...this.
1490 * config/aarch64/aarch64-simd.md
1491 (aarch64_frint<frint_suffix><mode>): Delete.
1492 (<frint_pattern><mode>2): Convert to insn.
1493 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
1494 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
1495 (frint_pattern): Likewise.
1496 (frint_suffix): Likewise.
1497
9584aa9d 14982013-04-29 Richard Biener <rguenther@suse.de>
1499
1500 PR tree-optimization/57081
1501 * loop-init.c: Include tree-flow.h.
1502 (loop_optimizer_finalize): Free number of iteration estimates.
1503 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
1504
ebdfd365 15052013-04-29 Jakub Jelinek <jakub@redhat.com>
1506
5b566583 1507 PR tree-optimization/57083
1508 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1509 non-singleton shift count range, zero extend low_bound for uns case.
1510
ebdfd365 1511 * config/i386/predicates.md (general_vector_operand): New predicate.
1512 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
1513 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
1514 if they aren't nonimmediate operands. If their original values
1515 satisfy const_vector_equal_evenodd_p, don't shift them.
1516 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
1517 predicates. For the SSE4.1 case force operands[{1,2}] into registers
1518 if not nonimmediate_operand.
1519 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
1520 instead of register_operand.
1521 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
1522
992a05af 15232013-04-28 Eric Botcazou <ebotcazou@adacore.com>
c6cfb282 1524
1525 * stor-layout.c (finalize_size_functions): Allocate a structure and
1526 reset cfun before dumping the functions.
1527
a31cce64 15282013-04-27 Jakub Jelinek <jakub@redhat.com>
1529
95d51e38 1530 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
1531
a31cce64 1532 PR target/56866
1533 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1534 use xop_pmacsdqh if uns_p.
1535 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1536 the immediate rotate count.
1537
ea99c7a1 15382013-04-26 Vladimir Makarov <vmakarov@redhat.com>
1539
1540 * rtl.h (struct rtx_def): Add comment for field jump.
1541 (LRA_SUBREG_P): New macro.
1542 * recog.c (register_operand): Check LRA_SUBREG_P.
1543 * lra.c (lra): Add note at the end of RTL code. Align non-empty
1544 stack frame.
1545 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
1546 (lra_final_code_change): Skip subreg change for operators.
1547 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
1548 if there are no operand changes.
1549 * lra-constraints.c (curr_insn_set): New.
1550 (match_reload): Set LRA_SUBREG_P.
1551 (emit_spill_move): Ditto.
1552 (check_and_process_move): Use curr_insn_set. Process only single
1553 set insns. Don't initialize sec_mem_p and change_p.
1554 (simplify_operand_subreg): Use LRA_SUBREG_P.
1555 (reg_in_class_p): New function.
1556 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
1557 of #ifdef. Add code to remove cycling.
1558 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
1559 non-null disp. Reload inner instead of disp when base and index
1560 are null. Try to put lo_sum into register.
1561 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1562 (check_and_process_move): Move code for move cost check to
1563 simple_move_p. Remove equiv_substitution.
1564 (simple_move_p): New function.
1565 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
1566 curr_insn_set. Call check_and_process_move only for single set
1567 insns. Use the new function. Move call of check_and_process_move
1568 after operand equiv substitution and address process.
1569
f585c295 15702013-04-26 Jakub Jelinek <jakub@redhat.com>
1571
1572 PR go/57045
1573 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
1574 with nonlocal goto receivers or returns twice calls, ignore
1575 unininitialized values from abnormal edges to nl goto receiver
1576 or returns twice call.
1577
b7219196 15782013-04-26 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR tree-optimization/57051
1581 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1582 and VEC_RSHIFT_EXPR if shift count is a multiple of element
1583 bitsize.
1584
82b40354 15852013-04-26 Richard Biener <rguenther@suse.de>
1586
1587 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
1588 (expand_omp_taskreg): Likewise. Mark loops for fixup.
1589 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
1590 (fixup_loop_arrays_after_move): New function.
1591 (move_sese_region_to_fn): Properly outline the loop tree parts
1592 of the SESE region.
1593
baad29fe 15942013-04-26 Uros Bizjak <ubizjak@gmail.com>
1595
1596 * config/i386/i386.md (type, unit): Fix long lines.
1597
7a569539 15982013-04-26 Richard Biener <rguenther@suse.de>
1599
1600 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
1601 (lto-streamer-out.o): Likewise.
1602 * cfgloop.c (init_loops_structure): Export, add struct function
1603 argument and adjust.
1604 (flow_loops_find): Adjust.
1605 * cfgloop.h (enum loop_estimation): Add EST_LAST.
1606 (init_loops_structure): Declare.
1607 * lto-streamer-in.c: Include cfgloop.h.
1608 (input_cfg): Input the loop tree.
1609 * lto-streamer-out.c: Include cfgloop.h.
1610 (output_cfg): Output the loop tree.
1611 (output_struct_function_base): Do not drop PROP_loops.
1612
f6568ea4 16132013-03-26 Richard Biener <rguenther@suse.de>
1614
1615 * tree-cfg.c (execute_build_cfg): Build the loop tree.
1616 (pass_build_cfg): Provide PROP_loops.
1617 (move_sese_region_to_fn): Remove loops that are outlined into fn
1618 for now.
1619 * tree-inline.c: Include cfgloop.h.
1620 (initialize_cfun): Do not drop PROP_loops.
1621 (copy_loops): New function.
1622 (copy_cfg_body): Copy loop structure.
1623 (tree_function_versioning): Initialize destination loop tree.
1624 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
1625 (pass_parallelize_loops): Do IL verification.
1626 * loop-init.c (loop_optimizer_init): Fixup loops if required.
1627 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
1628 the CFG make sure we fixup loops as well.
1629 * tree-ssa-tail-merge.c: Include cfgloop.h.
1630 (replace_block_by): When merging loop latches mark loops for fixup.
1631 * lto-streamer-out.c (output_struct_function_base): Drop
1632 PROP_loops for now.
1633 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
1634 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
1635 * ipa-split.c: Include cfgloop.h.
1636 (split_function): Add the new return block to the loop tree root.
1637 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
1638 whether we have removed the forwarder block.
1639 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
1640 * cfgloop.h (place_new_loop): Declare.
1641 * cfgloopmanip.c (place_new_loop): Export.
1642 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
1643 (tree-switch-conversion.o): Likewise.
1644 (tree-complex.o): Likewise.
1645 (tree-inline.o): Likewise.
1646 (tree-ssa-tailmerge.o): Likewise.
1647 (ipa-split.o): Likewise.
1648 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
1649 (tree-ssa-copy.o): Likewise.
1650 * tree-switch-conversion.c: Include cfgloop.h
1651 (process_switch): If we emit a bit-test cascade, schedule loops
1652 for fixup.
1653 * tree-complex.c: Include cfgloop.h.
1654 (expand_complex_div_wide): Properly add new basic-blocks to loops.
1655 * asan.c: Include cfgloop.h.
1656 (create_cond_insert_point): Properly add new basic-blocks to
1657 loops, schedule loop fixup.
1658 * cfgloop.c (verify_loop_structure): Check that looks are not
1659 marked for fixup.
1660 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
1661 to loops.
1662 (expand_omp_for_generic): Likewise.
1663 (expand_omp_sections): Likewise.
1664 (expand_omp_atomic_pipeline): Schedule loops for fixup.
1665 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
1666 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
1667 is initialized, not when loops are present.
1668 * tree-parloops.c (parallelize_loops): Remove checking here.
1669 * passes.c (init_optimization_passes): Schedule a copy-propagation
1670 pass before complete unrolling of inner loops.
1671
2cafe211 16722013-04-26 Jakub Jelinek <jakub@redhat.com>
1673
71eeb8d3 1674 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
1675 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
1676 (colorize_init): Add argument to _WIN32 version.
1677 * toplev.c: Include diagnostic-color.h.
1678 (process_options): Default to -fdiagnostics-color=auto if
1679 GCC_COLORS env var is in the environment.
1680 * common.opt (fdiagnostics-color=): Add Var and Init.
baad29fe 1681 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
1682 env var is in the environment, the default is auto rather than never.
71eeb8d3 1683
2cafe211 1684 * diagnostic.h (file_name_as_prefix): Add context argument.
1685 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
1686 the string as locus.
1687 * langhooks.c (lhd_print_error_function): Adjust caller.
1688
33df9a15 16892013-04-25 Lawrence Crowl <crowl@google.com>
1690
1691 * var-tracking.c (shared_hash_def::htab):
1692 Change type to hash_table. Update dependent calls and types.
1693
d9dd21a8 16942013-04-25 Lawrence Crowl <crowl@google.com>
1695
1696 * Makefile.in: Update as needed below.
1697
1698 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
1699 Move declaration to after the type's method definitons.
1700
1701 * attribs.c (htab_t scoped_attributes::attribute_hash):
1702 Change type to hash_table. Update dependent calls and types.
1703
1704 * bitmap.c (htab_t bitmap_desc_hash):
1705 Change type to hash_table. Update dependent calls and types.
1706
1707 * cselib.c (htab_t cselib_hash_table):
1708 Change type to hash_table. Update dependent calls and types.
1709
1710 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
1711 (hash_string_slot_node): Move implementation into lto-streamer.h
1712 struct string_slot_hasher.
1713 (eq_string_slot_node): Likewise.
1714
1715 * data-streamer-out.c: Update output_block::string_hash_table
1716 dependent calls and types.
1717
1718 * dwarf2cfi.c (htab_t trace_index):
1719 Change type to hash_table. Update dependent calls and types.
1720
1721 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
1722 Change type to hash_table. Update dependent calls and types.
1723 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
1724 (htab_t optimize_external_refs::map): Likewise.
1725 (htab_t output_comp_unit::extern_map): Likewise.
1726 (htab_t output_comdat_type_unit::extern_map): Likewise.
1727 (htab_t output_macinfo::macinfo_htab): Likewise.
1728 (htab_t optimize_location_lists::htab): Likewise.
1729 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
1730
1731 * except.c (htab_t ehspec_hash_type):
1732 Change type to hash_table. Update dependent calls and types.
1733 (assign_filter_values::ttypes): Likewise.
1734 (assign_filter_values::ehspec): Likewise.
1735 (sjlj_assign_call_site_values::ar_hash): Likewise.
1736 (convert_to_eh_region_ranges::ar_hash): Likewise.
1737
1738 * gcse.c (htab_t pre_ldst_table):
1739 Change type to hash_table. Update dependent calls and types.
1740
1741 * ggc-common.c (htab_t saving_htab):
1742 Change type to hash_table. Update dependent calls and types.
1743 (htab_t loc_hash): Likewise.
1744 (htab_t ptr_hash): Likewise.
1745 (call_count): Rename ggc_call_count.
1746 (call_alloc): Rename ggc_call_alloc.
1747 (loc_descriptor): Rename make_loc_descriptor.
1748 (add_statistics): Rename ggc_add_statistics.
1749
1750 * ggc-common.c (saving_htab):
1751 Change type to hash_table. Update dependent calls and types.
1752
1753 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
1754 (push_gimplify_context): Likewise.
1755 (pop_gimplify_context): Likewise.
1756 (struct gimple_temp_hash_elt): Added.
1757 (struct gimplify_hasher): Likewise.
1758 (struct gimplify_ctx.temp_htab):
1759 Change type to hash_table. Update dependent calls and types.
1760
1761 * gimple-fold.c: Include gimplify-ctx.h.
1762
1763 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
1764 Change type to hash_table. Update dependent calls and types.
1765 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
1766 avoid potential global name collision.
1767
1768 * gimplify.c: Include gimplify-ctx.h.
1769 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
1770 (htab_t gimplify_ctx::temp_htab):
1771 Update dependent calls and types for new type hash_table.
1772 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
1773 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
1774
1775 * gimplify-ctx.h: New.
1776 (struct gimple_temp_hash_elt): Move from gimplify.c.
1777 (class gimplify_hasher): New.
1778 (struct gimplify_ctx): Move from gimple.h.
1779 (htab_t gimplify_ctx::temp_htab):
1780 Change type to hash_table. Update dependent calls and types.
1781
1782 * graphite-clast-to-gimple.c: Include graphite-htab.h.
1783 (htab_t ivs_params::newivs_index):
1784 Change type to hash_table. Update dependent calls and types.
1785 (htab_t ivs_params::params_index): Likewise.
1786 (htab_t print_generated_program::params_index): Likewise.
1787 (htab_t gloog::newivs_index): Likewise.
1788 (htab_t gloog::params_index): Likewise.
1789
1790 * graphite.c: Include graphite-htab.h.
1791 4htab_t graphite_transform_loops::bb_pbb_mapping):
1792 Change type to hash_table. Update dependent calls and types.
1793
1794 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
1795 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
1796 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
1797
1798 * graphite-dependences.c: Include graphite-htab.h.
1799 (loop_is_parallel_p): Change hash table type of parameter.
1800
1801 * graphite-htab.h: New.
1802 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
1803 (extern find_pbb_via_hash): Move from graphite-poly.h.
1804 (extern loop_is_parallel_p): Move from graphite-poly.h.
1805 (extern get_loop_body_pbbs): Move from graphite-poly.h.
1806
1807 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
1808 (extern loop_is_parallel_p): Move to graphite-htab.h.
1809 (extern get_loop_body_pbbs): Move to graphite-htab.h.
1810
1811 * haifa-sched.c (htab_t delay_htab):
1812 Change type to hash_table. Update dependent calls and types.
1813 (htab_t delay_htab_i2): Likewise.
1814
1815 * ira-color.c (htab_t allocno_hard_regs_htab):
1816 Change type to hash_table. Update dependent calls and types.
1817
1818 * ira-costs.c (htab_t cost_classes_htab):
1819 Change type to hash_table. Update dependent calls and types.
1820
1821 * loop-invariant.c (htab_t merge_identical_invariants::eq):
1822 Change type to hash_table. Update dependent calls and types.
1823
1824 * loop-iv.c (htab_t bivs):
1825 Change type to hash_table. Update dependent calls and types.
1826
1827 * loop-unroll.c (htab_t opt_info::insns_to_split):
1828 Change type to hash_table. Update dependent calls and types.
1829 (htab_t opt_info::insns_with_var_to_expand): Likewise.
1830
1831 * lto-streamer.h (struct string_slot): Move from data-streamer.h
1832 (struct string_slot_hasher): New.
1833 (htab_t output_block::string_hash_table):
1834 Change type to hash_table. Update dependent calls and types.
1835
1836 * lto-streamer-in.c (freeing_string_slot_hasher): New.
1837 (htab_t file_name_hash_table):
1838 Change type to hash_table. Update dependent calls and types.
1839
1840 * lto-streamer-out.c: Update output_block::string_hash_table dependent
1841 calls and types.
1842
1843 * lto-streamer.c (htab_t tree_htab):
1844 Change type to hash_table. Update dependent calls and types.
1845
1846 * omp-low.c: Include gimplify-ctx.h.
1847
1848 * passes.c (htab_t name_to_pass_map):
1849 Change type to hash_table. Update dependent calls and types.
1850 (pass_traverse): Rename to passes_pass_traverse.
1851
1852 * plugin.c (htab_t event_tab):
1853 Change type to hash_table. Update dependent calls and types.
1854
1855 * postreload-gcse.c (htab_t expr_table):
1856 Change type to hash_table. Update dependent calls and types.
1857 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
1858
1859 * sese.c (debug_rename_map_1): Make extern.
1860 (htab_t copy_bb_and_scalar_dependences::rename_map):
1861 Change type to hash_table. Update dependent calls and types.
1862
1863 * sese.h (extern debug_rename_map): Move to .c file.
1864
1865 * store-motion.c (htab_t store_motion_mems_table):
1866 Change type to hash_table. Update dependent calls and types.
1867
1868 * trans-mem.c (htab_t tm_new_mem_hash):
1869 Change type to hash_table. Update dependent calls and types.
1870
1871 * tree-browser.c (htab_t TB_up_ht):
1872 Change type to hash_table. Update dependent calls and types.
1873
1874 * tree-cfg.c (htab_t discriminator_per_locus):
1875 Change type to hash_table. Update dependent calls and types.
1876
1877 * tree-complex.c: Include tree-hasher.h
1878 (htab_t complex_variable_components):
1879 Change type to hash_table. Update dependent calls and types.
1880
1881 * tree-eh.c (htab_t finally_tree):
1882 Change type to hash_table. Update dependent calls and types.
1883
1884 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
1885 struct int_tree_hasher.
1886 (extern int_tree_map_eq): Likewise.
1887 (uid_decl_map_hash): Removed.
1888 (extern decl_tree_map_eq): Likewise.
1889
1890 * tree-hasher.h: New.
1891 (struct int_tree_hasher): New.
1892 (typedef int_tree_htab_type): New.
1893
1894 * tree-inline.c: Include gimplify-ctx.h.
1895
1896 * tree-mudflap.c: Include gimplify-ctx.h.
1897
1898 * tree-parloops.c: Include tree-hasher.h.
1899 (htab_t eliminate_local_variables_stmt::decl_address):
1900 Change type to hash_table. Update dependent calls and types.
1901 (htab_t separate_decls_in_region::decl_copies): Likewise.
1902
1903 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
1904 Change type to hash_table. Update dependent calls and types.
1905
1906 * tree-sra.c (candidates):
1907 Change type to hash_table. Update dependent calls and types.
1908
1909 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
1910 in tree-flow.h.
1911 (int_tree_map_hash): Likewise.
1912
1913 * tree-ssa-dom.c (htab_t avail_exprs):
1914 Change type to hash_table. Update dependent calls and types.
1915
1916 * tree-ssa-live.c (var_map_base_init::tree_to_index):
1917 Change type to hash_table. Update dependent calls and types.
1918
1919 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
1920 Change type to hash_table. Update dependent calls and types.
1921
1922 * tree-ssa-phiopt.c (seen_ssa_names):
1923 Change type to hash_table. Update dependent calls and types.
1924
1925 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
1926 Change type to hash_table. Update dependent calls and types.
1927
1928 * tree-ssa-uncprop.c (equiv):
1929 Change type to hash_table. Update dependent calls and types.
1930
ca719585 19312013-04-25 Jakub Jelinek <jakub@redhat.com>
1932
1933 PR rtl-optimization/57003
1934 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1935 call note_stores with kill_clobbered_value callback again after
1936 killing regs_invalidated_by_call.
1937
0a627f67 19382013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1939
1940 * config/aarch64/aarch64-simd.md
1941 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
1942 (aarch64_simd_bsl<mode>): Likewise.
1943 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
1944
7695fea9 19452013-04-25 Marek Polacek <polacek@redhat.com>
1946
1947 PR tree-optimization/57066
65c52515 1948 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
7695fea9 1949
535e3387 19502013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
1951
1952 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
1953
f164e9a5 19542013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1955
1956 * config/aarch64/aarch64-builtins.c
1957 (aarch64_fold_builtin): New.
1958 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
1959 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
1960 * config/aarch64/aarch64-simd-builtins.def (abs): New.
1961 * config/aarch64/arm_neon.h
1962 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
1963
58aab7ce 19642013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
1965 Tejas Belagod <tejas.belagod@arm.com>
1966
1967 * config/aarch64/aarch64-builtins.c
1968 (aarch64_gimple_fold_builtin): New.
1969 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
1970 * config/aarch64/aarch64-simd-builtins.def (addv): New.
1971 * config/aarch64/aarch64-simd.md (addpv4sf): New.
1972 (addvv4sf): Update.
1973 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
1974
c7262ba2 19752013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1976
baad29fe 1977 * config/aarch64/aarch64.md
c7262ba2 1978 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
1979
993fed27 19802013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1981
1982 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
1983 (*ngcsi_uxtw): New pattern.
1984
8518cada 19852013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65c52515 1986 Julian Brown <julian@codesourcery.com>
8518cada 1987
1988 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
1989 (TB_DREG): Add T_V4HF.
1990 (v4hf_UP): New macro.
1991 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
baad29fe 1992 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
8518cada 1993 Handle initialisation of V4HF. Adjust initialisation of reinterpret
1994 built-ins.
baad29fe 1995 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
8518cada 1996 (arm_vector_mode_supported_p): Handle V4HF.
1997 (arm_mangle_map): Handle V4HFmode.
1998 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
1999 * config/arm/arm_neon_builtins.def: Add entries for
2000 vcvtv4hfv4sf, vcvtv4sfv4hf.
2001 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
2002 (neon_vcvtv4hfv4sf): Likewise.
2003 * config/arm/neon-gen.ml: Handle half-precision floating point
2004 features.
2005 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
2006 * config/arm/arm_neon.h: Regenerate.
2007 * config/arm/neon.ml (type elts): Add F16.
2008 (type vectype): Add T_float16x4, T_floatHF.
2009 (type vecmode): Add V4HF.
2010 (type features): Add Requires_FP_bit feature.
2011 (elt_width): Handle F16.
2012 (elt_class): Likewise.
2013 (elt_of_class_width): Likewise.
2014 (mode_of_elt): Refactor.
2015 (type_for_elt): Handle F16, fix error messages.
2016 (vectype_size): Handle T_float16x4.
2017 (vcvt_sh): New function.
2018 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
2019 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
2020 (string_of_mode): Handle V4HF.
2021 * doc/arm-neon-intrinsics.texi: Regenerate.
2022
66a71b3d 20232013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
2024
2025 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
2026 format specifier in 'X' case.
2027
0ee54873 20282013-04-25 Alan Modra <amodra@gmail.com>
2029
2030 PR target/57052
2031 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
2032 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
2033 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
2034 Repeat for many other rotate/shift and mask patterns using subregs.
2035 Name lshiftrt insns.
2036 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
2037 on WORDS_BIG_ENDIAN.
2038
d80dc920 20392013-04-25 Alan Modra <amodra@gmail.com>
2040
2041 * config.gcc: Support little-endian powerpc-linux targets.
2042 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
2043 (LINK_OS_LINUX_SPEC): Define.
2044 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
2045 Preserve MASK_LITTLE_ENDIAN.
2046 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
2047 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
2048 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
2049 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
2050 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
2051 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
2052 Correct fp word order for little-endian. Don't shift toc entries
2053 smaller than a word for little-endian.
2054 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
2055 (bswapdi2 splits): Correct low-part subreg for little-endian.
2056 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
2057 low/high where such is correct only for be.
2058 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
2059 little-endian for -mcall-aixdesc.
2060
d04c855d 20612013-04-25 Alan Modra <amodra@gmail.com>
2062
2063 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
2064 replace_equiv_address_nv.
2065
1efbef15 20662013-04-25 Alan Modra <amodra@gmail.com>
2067
2068 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2069
50580188 20702013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2071
2072 Revert:
2073 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2074 * rtl.h (struct rtx_def): ...
1efbef15 2075
74855d08 20762013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2077
2078 PR rtl-optimizations/57046
2079 * lra-constraints (split_reg): Set up lra_risky_transformations_p
2080 for multi-reg splits.
2081
6c4ccb7b 20822013-04-24 H.J. Lu <hongjiu.lu@intel.com>
2083
2084 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
2085
1c74176c 20862013-04-24 Sterling Augustine <saugustine@google.com>
2087
2088 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
2089 (comp_dir_string, debug_str_dwo_section): New.
2090 (DEBUG_STR_DWO_SECTION): Rename to ...
2091 (DEBUG_DWO_STR_SECTION): ... this.
2092 (DEBUG_NORM_STR_SECTION): Delete.
2093 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
2094 (DEBUG_STR_DWO_SECTION_FLAGS): New.
2095 (find_AT_string): Move most logic to ...
2096 (find_AT_string_in_table): ... here. New.
2097 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
2098 add_skeleton_AT_string. Delete logic.
2099 (output_skeleton_debug_sections): Remove call to
2100 add_top_level_skeleton_die_attrs.
2101 (add_comp_dir_attribute): Move logic to comp_dir_string.
2102 (dwarf2out_init): Initialize debug_str_dwo_section.
2103 (output_indirect_string): Call find_string_form.
2104 (output_indirect_strings): Rewrite.
2105 (prune_unused_types): Empty skeleton_debug_str_hash.
2106 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
2107 (dwarf2out_finish): Call output_indirect_strings.
2108
949dbf93 21092013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2110
2111 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
2112
bac08f26 21132013-04-24 Vladimir Makarov <vmakarov@redhat.com>
2114
1efbef15 2115 * rtl.h (struct rtx_def): Add comment for field jump.
bac08f26 2116 (LRA_SUBREG_P): New macro.
2117 * recog.c (register_operand): Check LRA_SUBREG_P.
2118 * lra.c (lra): Add note at the end of RTL code. Align non-empty
2119 stack frame.
2120 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
2121 (lra_final_code_change): Skip subreg change for operators.
2122 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
2123 if there are no operand changes.
2124 * lra-constraints.c (curr_insn_set): New.
2125 (match_reload): Set LRA_SUBREG_P.
2126 (emit_spill_move): Ditto.
2127 (check_and_process_move): Use curr_insn_set. Process only single
2128 set insns. Don't initialize sec_mem_p and change_p.
2129 (simplify_operand_subreg): Use LRA_SUBREG_P.
2130 (reg_in_class_p): New function.
2131 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
2132 of #ifdef. Add code to remove cycling.
2133 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
2134 non-null disp. Reload inner instead of disp when base and index
2135 are null. Try to put lo_sum into register.
2136 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
1efbef15 2137 (check_and_process_move): Move code for move cost check to
bac08f26 2138 simple_move_p. Remove equiv_substitution.
1efbef15 2139 (simple_move_p): New function.
bac08f26 2140 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
2141 curr_insn_set. Call check_and_process_move only for single set
2142 insns. Use the new function. Move call of check_and_process_move
2143 after operand equiv substitution and address process.
2144
2d62f55c 21452013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
2146
2147 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
2148 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
2149 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
2150
05d0bce1 21512013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2152
2153 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
2154
0d009ac2 21552013-04-24 Marek Polacek <polacek@redhat.com>
2156
2157 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
2158 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
2159 (select_loops_exit_conditions): Likewise.
2160 (number_of_iterations_for_all_loops): Likewise.
2161 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
2162 (scev_analysis): Likewise.
2163
21e02cfa 21642013-04-02 Catherine Moore <clm@codesourcery.com>
2165 Chao-ying Fu <fu@mips.com>
2166
1efbef15 2167 * config/mips/micromips.md (jraddiusp): New pattern.
2168 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
2169 instruction if possible.
21e02cfa 2170
99646b03 21712013-04-24 Alan Modra <amodra@gmail.com>
2172
2173 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
2174
47b5e9f1 21752013-04-24 Julian Brown <julian@codesourcery.com>
2176 Chung-Lin Tang <cltang@codesourcery.com>
2177
2178 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
baad29fe 2179 dependency behavior in enumeration type DIE generation. Add TODO note
2180 to comments about future DW_FORM_sdata/udata re-work of related code.
47b5e9f1 2181
3e871d4d 21822013-04-23 Lawrence Crowl <crowl@google.com>
2183
2184 * Makefile.in: Update as needed below.
2185
2186 * hash-table.h (class hash_table):
2187 Correct many methods with parameter types compare_type to the correct
2188 value_type. (Correct code was unlikely to notice the change.)
2189 (hash_table::elements_with_deleted) New.
2190 (class hashtable::iterator): New.
2191 (hashtable::begin()): New.
2192 (hashtable::end()): New.
2193 (FOR_EACH_HASH_TABLE_ELEMENT): New.
2194
2195 * statistics.c (statistics_hashes):
2196 Change type to hash_table. Update dependent calls and types.
2197
2198 * tree-into-ssa.c (var_infos):
2199 Change type to hash_table. Update dependent calls and types.
2200
2201 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
2202 Change type to hash_table. Update dependent calls and types.
2203
2204 * tree-ssa-loop-im.c (struct mem_ref.refs):
2205 Change type to hash_table. Update dependent calls and types.
2206
2207 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
2208 Change type to hash_table. Update dependent calls and types.
2209
2210 * tree-ssa-sccvn.c (vn_tables_s::nary):
2211 Change type to hash_table. Update dependent calls and types.
2212 (vn_tables_s::phis): Likewise.
2213 (vn_tables_s::references): Likewise.
2214
2215 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
2216 (vn_reference_eq): Update parameter and return types.
2217
2218 * tree-ssa-structalias.c (pointer_equiv_class_table):
2219 Change type to hash_table. Update dependent calls and types.
2220 (location_equiv_class_table): Likewise.
2221
2222 * tree-vect-data-refs.c: Consequential changes for making
2223 peeling a hash_table.
2224
2225 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
2226 (destroy_loop_vec_info): Dependent hash_table update.
2227
2228 * tree-vectorizer.h (peeling_htab):
2229 Change type to hash_table. Update dependent calls and types.
2230
a1064490 22312013-04-23 Shiva Chen <shiva0217@gmail.com>
2232
1efbef15 2233 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
2234 to check the register content is equal or not.
2235 * lra-constraints.c (match_reload): Use lra_assign_reg_val
2236 to assign register content record.
2237 * lra-eliminations.c (update_reg_eliminate): Use
a1064490 2238 lra_update_reg_val_offset to update register content offset.
1efbef15 2239 * lra-int.h (struct lra_reg): Add offset member.
2240 (lra_reg_val_equal_p): New static inline function.
2241 (lra_update_reg_val_offset): New static inline function.
2242 (lra_assign_reg_val): New static inline function.
2243 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
2244 to assign register content record.
2245 (initialize_lra_reg_info_element): Initial offset to zero.
a1064490 2246
5e1781b6 22472013-04-23 Catherine Moore <clm@codesourcery.com>
2248
2249 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
2250 operands. Record compression.
2251
6f2b83c8 22522013-04-23 Xinliang David Li <davidxl@google.com>
2253
2254 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
2255
5f0af0d8 22562013-04-23 Richard Biener <rguenther@suse.de>
2257
2258 PR middle-end/57036
2259 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
2260 parameter, only add abnormal goto edges from the copied body
2261 if the call could perform abnormal gotos.
2262 (copy_cfg_body): Adjust.
2263
562e5728 22642013-04-23 Sofiane Naci <sofiane.naci@arm.com>
2265
2266 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
2267
d3c57e54 22682013-04-23 Andreas Schwab <schwab@linux-m68k.org>
2269
2270 * coretypes.h (gimple_stmt_iterator): Add struct to make
2271 compatible with C.
2272
3a4a5c9c 22732013-04-23 Richard Biener <rguenther@suse.de>
2274
2275 PR tree-optimization/57026
2276 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
2277 from SSA names occuring in abnormal PHI nodes.
2278
8af0a4fc 22792013-04-22 Andi Kleen <ak@linux.intel.com>
2280
2281 * lto/lto.c (print_lto_report_1): Fix LTO report names.
2282
f4c8156d 22832013-04-22 Andi Kleen <ak@linux.intel.com>
2284
2285 * lto/lto.c (print_lto_report_1): Declare early.
2286 (read_cgraph_and_symbols): Call print_lto_report_1 early.
2287
b63a7a3e 22882013-04-22 Andi Kleen <ak@linux.intel.com>
2289
2290 * common.opt (-flto-report-wpa): Add.
2291 * doc/invoke.texi (-flto-report-wpa): Add.
2292 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
2293 (lto_main): dito.
2294
5d24e2d1 22952013-04-22 Xinliang David Li <davidxl@google.com>
2296
2297 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
2298 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
2299 * Makefile.in: New dependency
2300
1efbef15 2301 David Daney <ddaney.cavm@gmail.com>
bcba791d 2302
1efbef15 2303 * configure.ac (gcc_cv_as_micromips_support): Use the
2304 --fatal-warnings option.
2305 * configure: Regenerate.
bcba791d 2306
888b31c9 23072013-04-22 Marek Polacek <polacek@redhat.com>
2308
2309 PR sanitizer/56990
2310 * tsan.c (instrument_expr): Don't instrument expression
2311 in case its size is zero.
2312
31ba2027 23132013-04-22 Uros Bizjak <ubizjak@gmail.com>
2314
2315 PR target/57032
2316 Revert:
2317 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
2318
2319 * config/alpha/alpha.c (TARGET_LRA_P): New define.
2320
29cad3b6 23212013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2322
2323 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
2324 (gimple_stmt_iterator): New typedef.
2325 * gimple.h (gimple_stmt_iterator): Rename to...
2326 (gimple_stmt_iterator_d): ... This.
2327 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
2328 trees be valid for GIMPLE and GENERIC.
2329 (TARGET_GIMPLE_FOLD_BUILTIN): New.
2330 * gimple-fold.c (gimple_fold_call): Call target hook
2331 gimple_fold_builtin.
2332 * hooks.c (hook_bool_gsiptr_false): New.
2333 * hooks.h (hook_bool_gsiptr_false): New.
2334 * target.def (fold_stmt): New.
2335 * doc/tm.texi: Regenerate.
2336
fbb45ff1 23372013-04-22 Vladimir Makarov <vmakarov@redhat.com>
2338
2339 PR target/57018
2340 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
2341 a set sp if no stack realignment.
2342
ea4d38ee 23432013-04-22 Nick Clifton <nickc@redhat.com>
2344
2345 * config.gcc (tilegx-linux): Extend extra_objs rather than
2346 overwriting it.
2347 (tilepro-linux): Likewise.
2348
5a8d54a9 23492013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2350
2351 * config/aarch64/aarch64-builtins.c
2352 (CF): Remove.
2353 (CF0, CF1, CF2, CF3, CF4, CF10): New.
2354 (VAR<1-12>): Add MAP parameter.
2355 (BUILTIN_*): Likewise.
2356 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
2357 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
2358 (aarch64_ushl_n<mode>): Likewise.
2359 (aarch64_sshr_n<mode>): Likewise.
2360 (aarch64_ushr_n<mode>): Likewise.
2361 (aarch64_<maxmin><mode>): Likewise.
2362 (aarch64_sqrt<mode>): Likewise.
2363 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
2364 (vshr<q>_n_*): Likewise.
2365
7b990298 23662013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
2367
2368 * config/aarch64/aarch64-builtins.c
2369 (aarch64_simd_builtin_type_mode): Handle SF types.
2370 (sf_UP): Define.
2371 (BUILTIN_GPF): Define.
2372 (aarch64_init_simd_builtins): Handle SF types.
2373 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
2374 (frecps): Likewise.
2375 (frecpx): Likewise.
2376 * config/aarch64/aarch64-simd.md
2377 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
2378 (aarch64_frecpe<mode>): New.
2379 (aarch64_frecps<mode>): Likewise.
2380 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
2381 (v8type): Add frecp<esx>.
2382 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
2383 (aarch64_frecps<mode>): Likewise.
2384 * config/aarch64/iterators.md (FRECP): New.
2385 (frecp_suffix): Likewise.
2386 * config/aarch64/arm_neon.h
2387 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
2388
c7a79d83 23892013-04-22 Christian Bruel <christian.bruel@st.com>
ec3c739c 2390
2391 PR target/56995
2392 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
2393 (REG_CLASS_NAMES): Idem.
2394 (REG_CLASS_CONTENTS): Idem.
2395 (REGCLASS_HAS_FP_REG): Idem.
2396 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
2397 (sh_conditional_register_usage): Idem.
2398
d23e1965 23992013-04-21 Jeff Law <law@redhat.com>
2400
2401 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
2402 (ssa_forward_propagate_and_combine): Use it.
2403
b28ae2d4 24042013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2405
2406 * lra.c: Update the flow chart diagram.
2407
a89f8bac 24082013-04-19 Vladimir Makarov <vmakarov@redhat.com>
2409
2410 PR rtl-optimization/56847
2411 * lra-constraints.c (process_alt_operands): Discourage alternative
2412 with non-matche doffsettable memory constraint fro memory with
2413 known offset.
2414
a5ef9e4d 24152013-04-19 Richard Biener <rguenther@suse.de>
2416
2417 PR tree-optimization/56982
2418 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
2419 function.
2420 * gimplify.c (gimplify_call_expr): Notice special calls.
2421 (gimplify_modify_expr): Likewise.
2422 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
2423 abnormal control flow receivers.
2424 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
2425 in the same way as cfun->has_nonlocal_labels.
2426 (gimple_purge_dead_abnormal_call_edges): Likewise.
2427 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
2428 receivers start a basic-block.
2429
678e3d6e 24302013-04-19 Richard Biener <rguenther@suse.de>
2431
2432 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
2433 member ...
2434 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
2435 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
2436 (SLP_TREE_LOAD_PERMUTATION): Add.
2437 (vect_transform_slp_perm_load): Adjust prototype.
2438 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
2439 (vect_free_slp_instance): Likewise.
2440 (vect_create_new_slp_node): Likewise.
2441 (vect_supported_slp_permutation_p): Remove.
2442 (vect_slp_rearrange_stmts): Adjust.
2443 (vect_supported_load_permutation_p): Likewise. Inline
2444 vect_supported_slp_permutation_p here.
2445 (vect_analyze_slp_instance): Compute load permutations per
2446 slp node instead of per instance.
2447 (vect_get_slp_defs): Adjust.
2448 (vect_transform_slp_perm_load): Likewise.
2449 (vect_schedule_slp_instance): Remove redundant code.
2450 (vect_schedule_slp): Remove hack for PR56270, add it ...
2451 * tree-vect-stmts.c (vectorizable_load): ... here, do not
2452 CSE loads for SLP. Adjust.
2453
c210e3da 24542013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2455
2456 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
2457 spelling in two comments.
2458
a5c5144f 24592013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
2460
2461 PR target/56797
2462 * config/arm/arm.c (load_multiple_sequence): Require SP
2463 as base register for loads if SP is in the register list.
2464
bee52153 24652013-04-19 Martin Jambor <mjambor@suse.cz>
2466
2467 PR tree-optimization/56718
2468 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
2469 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
2470 and made public. Adjusted all callers.
2471 (ipa_intraprocedural_devirtualization): New function.
2472 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
2473 (ipa_intraprocedural_devirtualization): Likewise.
2474 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
2475
204c295f 24762013-04-19 Richard Biener <rguenther@suse.de>
2477
2478 PR tree-optimization/57000
2479 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
2480
3153fc2e 24812013-04-19 Terry Guo <terry.guo@arm.com>
2482
2483 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
2484 Replace with ...
2485 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
2486 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
2487 (cortex_m4_fmacs): Use new reservations.
2488 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
2489
638e746e 24902013-04-18 Vladimir Makarov <vmakarov@redhat.com>
2491
c0d5925a 2492 PR rtl-optimization/56999
638e746e 2493 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
2494 related code.
2495 (lra_coalesce): Remove split_origin_bitmap and related code.
2496 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
2497 ranges if necessary.
2498
17e854e6 24992013-04-18 Uros Bizjak <ubizjak@gmail.com>
2500
2501 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
2502 New array.
2503 (ix86_expand_call): Remove clobbered_registers array and use
2504 x86_64_ms_sysv_extra_clobbered_registers instead.
2505 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
2506 Declare here.
2507 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
2508 predicate.
2509 * config/i386/i386.md (*call_rex64_ms_sysv): Use
2510 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
2511 (*call_value_rex64_ms_sysv): Ditto.
2512
faeb0946 25132013-04-18 Cary Coutant <ccoutant@google.com>
2514
2515 * dwarf2out.c (output_pubnames): Check die_perennial_p of
2516 parent instead of die_mark.
2517
32bd7708 25182013-04-18 Diego Novillo <dnovillo@google.com>
2519
2520 * gimple.c (create_gimple_tmp): New.
2521 (get_expr_type): New.
2522 (build_assign): New.
2523 (build_type_cast): New.
2524 * gimple.h (enum ssa_mode): Define.
2525 (gimple_seq_set_location): New.
2526 * asan.c (build_check_stmt): Change some gimple_build_* calls
17e854e6 2527 to use build_assign and build_type_cast.
32bd7708 2528
8bbe6b75 25292013-04-18 Richard Biener <rguenther@suse.de>
2530
2531 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
2532 handle negative step. Remove redundant checks.
2533 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
2534 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
2535 for negative step and grouped loads fail to vectorize.
2536
1e9af25c 25372013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2538
2539 * emit-rtl.c (reset_insn_used_flags): New function.
2540 (reset_all_used_flags): Use it.
2541 (verify_insn_sharing): New function.
2542 (verify_rtl_sharing): Fix verification for SEQUENCEs.
2543
7c4be923 25442013-04-18 Jakub Jelinek <jakub@redhat.com>
2545
2546 PR tree-optimization/56984
2547 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
2548 and (x >> M) >= N don't register any assertion if N << M is the
2549 minimum value.
2550
c7ee1482 25512013-04-18 Steven Bosscher <steven@gcc.gnu.org>
2552
2553 * lower-subreg.c (resolve_simple_move): If called self-recursive,
2554 do not delete_insn insns that have not yet been emitted, only
2555 unlink them with remove_insn.
2556 * df-scan.c (df_insn_delete): Revert r197492.
2557
34f5b9ac 25582013-04-17 Steven Bosscher <steven@gcc.gnu.org>
2559
2560 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
2561 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
2562
25632013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
190efb17 2564
2565 * config/arm/arm.md (movsicc_insn): Convert define_insn into
2566 define_insn_and_split.
2567 (and_scc,ior_scc,negscc): Likewise.
2568 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
2569
34f5b9ac 25702013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
35c10aa8 2571
2572 * config/arm/arm.c (use_return_insn): Return 0 for targets that
2573 can benefit from using a sequence of LDRD instructions in epilogue
2574 instead of a single LDM instruction.
2575
d21e37af 25762013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2577
2578 PR 45688
2579 * doc/extend.texi: Fix typo.
2580
16513aa4 25812013-04-17 Richard Biener <rguenther@suse.de>
2582
2583 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
2584 (vect_build_slp_tree): ... here.
2585 (vect_build_slp_tree_1): Compute which stmts of the SLP group
2586 match. Remove special-casing of mismatched complex loads.
2587 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
2588 re-try the match with swapped commutative operands.
2589 (vect_supported_load_permutation_p): Remove special-casing of
2590 mismatched complex loads.
2591 (vect_analyze_slp_instance): Adjust.
2592
427286b3 25932013-04-17 Richard Biener <rguenther@suse.de>
2594
2595 PR rtl-optimization/56921
2596 * cfgloop.h (struct loop): Add simple_loop_desc member.
2597 (struct niter_desc): Mark with GTY(()).
2598 (simple_loop_desc): Do not use aux field but simple_loop_desc.
2599 * loop-iv.c (get_simple_loop_desc): Likewise.
2600 (free_simple_loop_desc): Likewise.
2601
2602 Revert
2603 2013-04-16 Richard Biener <rguenther@suse.de>
2604
2605 PR rtl-optimization/56921
2606 * loop-init.c (pass_rtl_move_loop_invariants): Add
2607 TODO_do_not_ggc_collect to todo_flags_finish.
2608 (pass_rtl_unswitch): Same.
2609 (pass_rtl_unroll_and_peel_loops): Same.
2610 (pass_rtl_doloop): Same.
2611
740a2cb6 26122013-04-17 Eric Botcazou <ebotcazou@adacore.com>
2613
2614 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
2615 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
2616 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
2617 references.
2618 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
2619 * tree-streamer.c (record_common_node): Adjust reference in comment.
2620
c20f53ce 26212013-04-17 Terry Guo <terry.guo@arm.com>
2622
2623 * config/arm/cortex-m4.md: Add a new bypass.
2624
31ba2027 26252013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7425af27 2626
2627 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
2628 New pattern.
2629 (*subs_<optab><mode>_multp2): New pattern.
2630 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2631 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
2632
31ba2027 26332013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16b547de 2634
2635 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
2636 (*subs_mul_imm_<mode>): New pattern.
2637
bd59dd08 26382013-04-16 David Edelsohn <dje.gcc@gmail.com>
2639
2640 PR target/56948
2641 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
2642 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
2643 (vsx_movti_32bit): Change j->wa to O->wa.
2644
507c20f1 26452013-04-16 Richard Biener <rguenther@suse.de>
2646
2647 PR rtl-optimization/56921
2648 * loop-init.c (pass_rtl_move_loop_invariants): Add
2649 TODO_do_not_ggc_collect to todo_flags_finish.
2650 (pass_rtl_unswitch): Same.
2651 (pass_rtl_unroll_and_peel_loops): Same.
2652 (pass_rtl_doloop): Same.
2653
1e9af25c 26542013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
9e0accd9 2655
2656 * config/arm/arm.c (emit_multi_reg_push): New declaration
2657 for an existing function.
2658 (arm_emit_strd_push): New function.
2659 (arm_expand_prologue): Used here.
2660 (arm_emit_ldrd_pop): New function.
2661 (arm_expand_epilogue): Used here.
2662 (arm_get_frame_offsets): Update condition.
2663 (arm_emit_multi_reg_pop): Add a special case for load of a single
2664 register with writeback.
2665
69ac6d73 26662013-04-16 Uros Bizjak <ubizjak@gmail.com>
2667
2668 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
2669 description.
2670
bc9af2dd 26712013-04-16 Richard Biener <rguenther@suse.de>
2672
2673 PR tree-optimization/56756
2674 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
2675 (first_mem_ref_loc): New.
2676 (execute_sm): Place the load temporarily before a previous
2677 access instead of in the latch edge to ensure its SSA dependencies
2678 are defined at points dominating the load.
2679
35f3420b 26802013-04-16 Steven Bosscher <steven@gcc.gnu.org>
2681
eda57d74 2682 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
2683 correct fix by moving header and footer insn to the footer of
2684 the merged basic block. Clear BB_END of the merged-away block.
2685
35f3420b 2686 PR middle-end/43631
2687 * emit-rtl.c (make_note_raw): New function.
2688 (link_insn_into_chain): New static inline function.
2689 (add_insn): Use it.
2690 (add_insn_before, add_insn_after): Factor insn chain linking code...
2691 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
2692 using link_insn_into_chain.
2693 (note_outside_basic_block_p): New helper function for emit_note_after
2694 and emit_note_before.
2695 (emit_note_after): Use nobb variant of add_insn_after if the note
2696 should not be contained in a basic block.
2697 (emit_note_before): Use nobb variant of add_insn_before if the note
2698 should not be contained in a basic block.
2699 (emit_note_copy): Use make_note_raw.
2700 (emit_note): Likewise.
2701 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
2702 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
2703 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
2704 the moved barrier the tail of the basic block it follows.
2705 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
2706
9de38bc3 27072013-04-15 Jakub Jelinek <jakub@redhat.com>
2708
2709 PR tree-optimization/56962
2710 * gimple-ssa-strength-reduction.c (record_increment): Only set
2711 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
2712 either rhs1 or rhs2 is equal to c->base_expr.
2713
4d525783 27142013-04-15 Richard Biener <rguenther@suse.de>
2715
2716 PR tree-optimization/56933
2717 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
2718 member.
2719 (GROUP_READ_WRITE_DEPENDENCE): Remove.
2720 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
2721 * tree-vect-data-refs.c (vect_analyze_group_access): Move
2722 dependence check ...
2723 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
2724 ... here.
2725 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
2726 GROUP_READ_WRITE_DEPENDENCE.
2727
7cdd84a2 27282013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2729
2730 * emit-rtl.c (reset_all_used_flags): New function.
2731 (verify_rtl_sharing): Call reset_all_used_flags before and after
2732 performing the checks.
2733
f6bbdcf6 27342013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2735
2736 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
2737 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
2738 * config/arm/constraints.md (De): New constraint.
2739 * config/arm/neon.md (anddi3_neon): Delete.
2740 (neon_vand<mode>): Expand to standard anddi3 pattern.
2741 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
2742 Move earlier in the file.
2743 (neon_inv_logic_op2): Likewise.
2744 (arm_anddi_operand_neon): New predicate.
2745
8aaed91d 27462013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2747
2748 * configure.ac (gcc_cv_ld_as_needed): Set
2749 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
2750 Use -z ignore, -z record on *-*-solaris2*.
2751 (HAVE_LD_AS_NEEDED): Update comment.
2752 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
2753 * configure: Regenerate.
2754 * config.in: Regenerate.
2755 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
2756 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
2757 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
2758 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
2759 equivalents. Fix markup.
2760 * doc/tm.texi: Regenerate.
2761
98c0d657 27622013-04-15 Andrew Hsieh <andrewhsieh.google.com>
2763
2764 * config/i386/i386.opt: New option mstack-protector-guard=.
2765 * config/i386/i386-opts.h: Add enum stack_protector_guard.
2766 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
2767 TARGET_SSP_TLS_GUARD.
2768 * config/i386/i386.c (ix86_option_override_internal): Set
2769 ix86_stack_protector_guard.
2770 * config/i386/i386.md (stack_protect_set): Enable for
2771 TARGET_SSP_TLS_GUARD only.
2772 (stack_protect_set_<mode>): Ditto.
2773 (stack_protect_test): Ditto.
2774 (stack_protect_test_<mode>): Ditto.
2775 * doc/invoke.texi (i386 Option): Document.
2776
3eb1f083 27772013-04-15 Eric Botcazou <ebotcazou@adacore.com>
2778
2779 PR target/56890
2780 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
2781 (S_MODES): Set H_MODE bit.
2782 (SF_MODES): Set only S_MODE and SF_MODE bits.
2783 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
2784 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
2785 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
2786 <MODE_FLOAT>: Likewise.
2787
756b7d6a 27882013-04-15 Joey Ye <joey.ye@arm.com>
2789
2790 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
2791
8d04d59e 27922013-04-15 Joey Ye <joey.ye@arm.com>
2793
2794 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
2795 for real far jump.
2796 (thumb_far_jump_used_p): Count instruction size and set
2797 far_jump_used.
2798
fdb35bef 27992013-04-14 Eric Botcazou <ebotcazou@adacore.com>
2800
2801 * reorg.c (fill_simple_delay_slots): Reindent block of code.
2802 * resource.c (mark_target_live_regs): Reformat conditional block.
2803
8ea0810a 28042013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2805
2806 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
2807 notes, they are emitted only just before final.
2808 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
2809
93ff53d3 28102013-04-13 Steven Bosscher <steven@gcc.gnu.org>
2811
2812 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
2813 * cfgrtl.c (delete_insn): Call it here instead.
2814 * lra-spills.c (lra_final_code_change): Use delete_insn.
2815 * haifa-sched.c (sched_remove_insn): Likewise.
2816 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
2817 returning to the nop pool.
2818 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
2819 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
2820
720b223d 28212013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2822
2823 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
2824 * doc/tm.texi: Regenerated.
2825
8f028904 28262013-04-12 Uros Bizjak <ubizjak@gmail.com>
2827
2828 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
2829 QImode checks.
2830
09f44684 28312013-04-12 Steven Bosscher <steven@gcc.gnu.org>
2832
2833 * df-core.c (df_find_def): Compare register numbers.
2834 (df_find_use): Likewise.
2835
45237259 28362013-04-12 Vladimir Makarov <vmakarov@redhat.com>
2837
2838 PR target/56903
2839 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
2840 lra_in_progress for return.
2841
a3b84066 28422013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2843
2844 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
2845 define_insn into define_insn_and_split and emit movsicc patterns.
2846
b3e65331 28472013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
2848
2849 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
2850
533c15bc 28512013-04-12 Richard Biener <rguenther@suse.de>
2852
2853 * tree-pass.h (TODO_do_not_ggc_collect): New.
2854 * passes.c (execute_one_ipa_transform_pass): Honor
2855 TODO_do_not_ggc_collect.
2856 (execute_one_pass): Likewise.
2857
2858 Revert
2859 2013-04-10 Richard Biener <rguenther@suse.de>
2860
2861 * passes.c (init_optimization_passes): Remove reload pass.
2862 * ira.c (do_reload): Merge into ...
2863 (ira): ... this.
2864 (rest_of_handle_reload): Remove.
2865 (pass_reload): Likewise.
2866 * config/i386/i386.c (ix86_option_override): Refer to ira instead
2867 of reload for vzeroupper pass placement.
2868
577e2925 28692013-04-12 Jakub Jelinek <jakub@redhat.com>
2870
2871 PR tree-optimization/56918
2872 PR tree-optimization/56920
2873 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
2874 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
2875 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
2876 use wide_mul_with_sign method.
2877
5b787773 28782013-04-12 Richard Biener <rguenther@suse.de>
2879
2880 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
2881 not be considered a gimple constant.
2882
ef4a904b 28832013-04-12 Marc Glisse <marc.glisse@inria.fr>
2884
2885 * fold-const.c (const_binop): Handle vector shifts by a scalar.
2886 (fold_binary_loc): Call const_binop also for mixed vector-scalar
2887 operations.
2888
41609f8b 28892013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
2890 Jakub Jelinek <jakub@redhat.com>
2891
2892 * opts.c: Include diagnostic-color.h.
2893 (common_handle_option): Handle OPT_fdiagnostics_color_.
2894 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
2895 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
2896 (diagnostic-color.o): New.
2897 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
2898 (diagnostic_color_rule): New enum.
2899 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
2900 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
2901 the location string.
2902 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
2903 either NULL, or color kind.
2904 * diagnostic-color.c: New file.
2905 * diagnostic-color.h: New file.
2906 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
2907 arguments.
2908 * doc/invoke.texi (-fdiagnostics-color): Document.
2909 * pretty-print.h (pp_show_color): Define.
2910 (struct pretty_print_info): Add show_color field.
2911 * diagnostic.c: Include diagnostic-color.h.
2912 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
2913 macros. Colorize error:, warning: etc. strings and also the location
2914 string.
2915 (diagnostic_show_locus): Colorize the caret line.
2916 * pretty-print.c: Include diagnostic-color.h.
2917 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
2918 inside of %< %> quotes or quoted through q format modifier.
2919
79f85ed5 29202013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2921
8f028904 2922 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
79f85ed5 2923
8f028904 29242013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
62bad789 2925
2926 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
2927 code in CC_NZ mode.
2928 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
2929 pattern.
2930
abf3fde4 29312013-04-11 Marek Polacek <polacek@redhat.com>
2932
2933 PR tree-optimization/48184
8f028904 2934 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
abf3fde4 2935
3303f1bb 29362013-04-11 Eric Botcazou <ebotcazou@adacore.com>
2937
2938 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
2939 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
2940 (skip_simple_arithmetic): Tidy up.
2941 * tree.h (skip_simple_constant_arithmetic): Declare.
2942
8f028904 29432013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
d449a7bb 2944
2945 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
2946
6c2c88c7 29472013-04-11 Richard Biener <rguenther@suse.de>
2948
2949 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2950 generate vector constants.
2951
6046367e 29522013-04-11 Richard Biener <rguenther@suse.de>
2953
2954 PR tree-optimization/56878
2955 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
2956 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
2957 New function.
2958 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2959 Prefer to align the DR with the most invariant base address.
2960
6c1f6b49 29612013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2962
2963 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
2964 comment.
2965
3b11c427 29662013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2967
2968 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
2969 floating-point vector comparisons against 0.
2970
4debb326 29712013-04-11 Jakub Jelinek <jakub@redhat.com>
2972
2973 PR tree-optimization/56899
2974 * fold-const.c (extract_muldiv_1): Apply distributive law
2975 only if TYPE_OVERFLOW_WRAPS (ctype).
2976
a0ca7f3d 29772013-04-11 Bin Cheng <bin.cheng@arm.com>
2978
2979 PR target/56124
2980 * ira-costs.c (scan_one_insn): Check whether the source rtx of
2981 loading has side effect.
2982
a1adea34 29832013-04-10 Steven Bosscher <steven@gcc.gnu.org>
2984
2985 * config/sparc/sparc.c: Include tree-pass.h.
2986 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
2987 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
2988 head of file. Change return type. Split off gate function.
2989 (sparc_gate_work_around_errata): New function.
2990 (pass_work_around_errata): New pass definition.
2991 (insert_pass_work_around_errata) New pass insert definition to
2992 insert pass_work_around_errata just after delayed-branch scheduling.
2993 (sparc_option_override): Insert the pass.
2994 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
2995
17f446a0 29962013-04-10 David S. Miller <davem@davemloft.net>
2997
c18356f5 2998 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
2999 or -mcpu=hypersparc.
3000
17f446a0 3001 * target.def (cstore_mode): New hook.
3002 * target.h: Include insn-codes.h
3003 * targhooks.c: Likewise.
3004 (default_cstore_mode): New function.
3005 * targhooks.h: Declare it.
3006 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
3007 * doc/tm.texi: Rebuild.
3008 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
3009 target hook, rather than inspecting the insn_data.
3010 * config/sparc/sparc.c (sparc_cstore_mode): New function.
3011 (TARGET_CSTORE_MODE): Redefine.
3012 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
3013 result patterns.
3014 * config/sparc/predicates.md (cstore_result_operand): New special
3015 predicate.
3016 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
3017 Use it for operand 0.
3018 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
3019 (*snesi_special): Likewise.
3020 (*snesi_zero): Likewise.
3021 (*seqsi_zero): Likewise.
3022 (*sltu_insn): Likewise.
3023 (*sgeu_insn): Likewise.
3024 (*seqdi_special): Make operand 0 and comparison operation be of
3025 DImode.
3026 (*snedi_special): Likewise.
3027 (*snedi_special_vis3): Likewise.
3028 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
3029 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
3030 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
3031 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
3032 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
3033 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
3034 (*sltu_extend_sp64): Likewise.
3035 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
3036 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
3037 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
3038 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
3039 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
3040
69b8a0da 30412013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
3042
3043 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
3044 (aarch64_start_file): Use the new function.
3045
8786b72c 30462013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8f028904 3047 Jason Merrill <jason@redhat.com>
8786b72c 3048
3049 * common.opt: Add -gdwarf.
3050 * opts.c (common_handle_option): Handle it.
3051 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
3052
ef3baff5 30532013-04-10 Richard Biener <rguenther@suse.de>
3054
3055 * passes.c (execute_todo): Do not call ggc_collect conditional here.
3056 (execute_one_ipa_transform_pass): But unconditionally here.
3057 (execute_one_pass): And here.
3058 (init_optimization_passes): Remove reload pass.
3059 * tree-pass.h (TODO_ggc_collect): Remove.
3060 (pass_reload): Likewise.
3061 * ira.c (do_reload): Merge into ...
3062 (ira): ... this.
3063 (rest_of_handle_reload): Remove.
3064 (pass_reload): Likewise.
3065 * config/i386/i386.c (ix86_option_override): Refer to ira instead
3066 of reload for vzeroupper pass placement.
3067 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
3068 and todo_flags_finish of all passes.
3069
3533e58d 30702013-04-10 Richard Biener <rguenther@suse.de>
3071
3072 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
3073 first_const_oprnd field, rename first_def_type to first_op_type.
3074 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
3075 (vect_get_and_check_slp_defs): Always use the type of the
3076 operand. Allow mixed vect_external_def, vect_constant_def types.
3077 (vect_get_constant_vectors): Handle mixed vect_external_def,
3078 vect_constant_def types.
3079
b095bd6a 30802013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
3081
3082 PR tree-optimization/55524
3083 * tree-ssa-math-opts.c
3084 (convert_mult_to_fma): Don't use an fms construct
3085 when we don't have an fms operation, but fnma, and it looks
3086 likely that we'll be able to use the latter.
3087
479b4ace 30882013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
3089
3090 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
3091 function.
3092 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
3093 inline fail caused by overwritable functions.
3094
241f5399 30952013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
3096
3097 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
3098 unnecessary bits in the constant power of two case.
3099
0eba4748 31002013-04-10 Richard Biener <rguenther@suse.de>
3101
3102 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
3103 broken code swapping operands.
3104 (vect_build_slp_tree): Do not compute load permutations here.
3105 (vect_analyze_slp_instance): Compute load permutations here,
3106 after building the SLP tree.
3107
60ac2a59 31082013-04-09 Christian Bruel <christian.bruel@st.com>
3109
3110 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
3111 of next/prev_real_insn.
3112
7dfe7ce5 31132013-04-09 Jan Hubicka <jh@suse.cz>
3114
0eba4748 3115 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3116 Drop aliased parameter.
7dfe7ce5 3117 (function_and_variable_visibility): Do not handle alias pairs.
3118 * cgraph.c (varpool_externally_visible_p): Update prototype.
3119 * varpool.c (varpool_add_new_variable): Update.
3120
4164bca1 31212013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3122
3123 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
3124
6ef7d725 31252013-04-09 Steven Bosscher <steven@gcc.gnu.org>
3126
adb4cb31 3127 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
3128
6ef7d725 3129 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
3130
efbfe80e 31312013-04-09 Marek Polacek <polacek@redhat.com>
3132
3133 PR tree-optimization/48762
8f028904 3134 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
efbfe80e 3135
ee6e9ba5 31362013-04-09 Richard Biener <rguenther@suse.de>
3137
3138 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
3139 dealing with cost.
3140 (vect_build_slp_tree): Likewise.
3141 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
3142 calculating the cost of a SLP instance.
3143 (vect_analyze_slp_instance): Use it from here, after building
3144 the SLP tree.
3145
4abecb72 31462013-04-09 Jakub Jelinek <jakub@redhat.com>
3147
3148 PR middle-end/56883
3149 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
3150 expand_omp_for_static_chunk): Use simple_p = true in
3151 force_gimple_operand_gsi calls when assigning to addressable decls.
3152
813adf93 31532013-04-09 Jeff Law <law@redhat.com>
3154
3155 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
3156 when the boolean was created by converting a wider object which
3157 had a boolean range.
3158
40bcc7c2 31592013-04-09 Richard Biener <rguenther@suse.de>
3160
3161 * tree-vectorizer.h (slp_void_p): Remove.
3162 (slp_tree): Typedef before _slp_tree declaration.
3163 (struct _slp_tree): Use a vector of slp_tree as children.
3164 (vect_get_place_in_interleaving_chain): Remove.
3165 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
3166 Move ...
3167 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
3168 and make static.
3169 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
3170 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
3171 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
3172 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
3173 Use slp_node instead of slp_void_p and adjust.
3174
c8498e04 31752013-04-09 Richard Biener <rguenther@suse.de>
3176
3177 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
3178 work that is not necessary.
3179
f6e2e4ff 31802013-04-09 Jakub Jelinek <jakub@redhat.com>
3181
3182 PR tree-optimization/56854
3183 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
3184 forward into clobber stmts if it would change MEM_REF lhs into
3185 non-MEM_REF.
3186
45e5c263 31872013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
3188
3189 * tree.c (type_hash_lookup, type_hash_add): Make static.
3190 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
3191
26a87c78 31922013-04-09 Richard Biener <rguenther@suse.de>
3193
3194 * tree.h (unsave_expr_now): Remove.
3195 * tree-inline.c (mark_local_for_remap_r): Remove.
3196 (unsave_expr_1): Likewise.
3197 (unsave_r): Likewise.
3198 (unsave_expr_now): Likewise.
3199 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
3200 (propagate_tree_value): Likewise.
3201
3ff7f7e7 32022013-04-08 Steven Bosscher <steven@gcc.gnu.org>
3203
3204 * doc/rtl.texi (sequence): Rewrite documentation to match the
3205 current use of SEQUENCE rtl objects.
3206 * rtl.def (SEQUENCE): Likewise.
3207
3208 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
3209 Update documentation.
3210 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
3211 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
3212
3213 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
3214
f9d4b7f4 32152013-04-08 Teresa Johnson <tejohnson@google.com>
3216
3217 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
3218 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
8f028904 3219 methods.
f9d4b7f4 3220 (estimate_edge_size_and_time): Add comment to suggest using rounding
3221 methods.
3222 (estimate_node_size_and_time): Ditto.
3223 (remap_edge_change_prob): Use helper rounding divide methods.
3224 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
3225 (gimple_mod_pow2_value_transform): Ditto.
3226 (gimple_mod_subtract_transform): Ditto.
3227 (gimple_ic_transform): Ditto.
3228 (gimple_stringops_transform): Ditto.
3229 * stmt.c (conditional_probability): Ditto.
3230 (emit_case_dispatch_table): Ditto.
3231 * lto-cgraph.c (merge_profile_summaries): Ditto.
3232 * tree-optimize.c (execute_fixup_cfg): Ditto.
3233 * cfgcleanup.c (try_forward_edges): Ditto.
3234 * cfgloopmanip.c (scale_loop_profile): Ditto.
3235 (loopify): Ditto.
3236 (duplicate_loop_to_header_edge): Ditto.
3237 (lv_adjust_loop_entry_edge): Ditto.
3238 * tree-vect-loop.c (vect_transform_loop): Ditto.
3239 * profile.c (compute_branch_probabilities): Ditto.
3240 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
3241 * lto-streamer-in.c (input_cfg): Ditto.
3242 * gimple-streamer-in.c (input_bb): Ditto.
3243 * ipa-cp.c (update_profiling_info): Ditto.
3244 (update_specialized_profile): Ditto.
3245 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
3246 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
8f028904 3247 rounding methods.
f9d4b7f4 3248 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3249 (compute_trg_info): Ditto.
3250 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
3251 (purge_dead_edges): Ditto.
3252 * loop-unswitch.c (unswitch_loop): Ditto.
3253 * cgraphclones.c (cgraph_clone_edge): Ditto.
3254 (cgraph_clone_node): Ditto.
3255 * tree-inline.c (copy_bb): Ditto.
3256 (copy_edges_for_bb): Ditto.
3257 (initialize_cfun): Ditto.
3258 (copy_cfg_body): Ditto.
3259 (expand_call_inline): Ditto.
3260
5a405481 32612013-04-08 Kai Tietz <ktietz@redhat.com>
3262
3263 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
3264 TARGET_CYGWIN64 by TARGET_64BIT.
3265
88b2f163 32662013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3267
3268 * config/epiphany/epiphany.md (GPR_1): New constant.
3269 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
3270 * config/epiphany/epiphany.c (gen_compare_reg):
3271 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
3272 is already in place.
3273 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
3274 Don't require being called during rtl expansion; If y operlaps r0,
3275 return 0.
3276 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
3277 (epiphany_expand_epilogue): Likewise.
3278
3d5b5f5d 3279 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
3280 Don't use CC_FPmode for ORDERED / UNORDERED.
8f028904 3281 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
3d5b5f5d 3282
9864d85d 3283 * config/epiphany/constraints.md (CnL): New constraint.
3284 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
3285 * config/epiphany/predicates.md (add_operand): Allow 1024.
3286
309ff476 3287 * config/epiphany/epiphany.md (logical_op): New code iterator.
3288 (op_mnc): New code attribute.
3289 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
3290 (mov_f+1, mov_f+2): New peephole2 patterns.
3291
b434a9d7 3292 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
3293 (cstoresi4): Also allow re-use of zero result when doing a NE
3294 comparison to a non-zero operand.
2467b384 3295 Use (clobber (scratch)) for first insn if the gpr output is not needed.
b434a9d7 3296
9d8aebe9 3297 * config/epiphany/epiphany.md (<insn_opname>v2si3):
3298 Use gen_addsi3_i / gen_subsi3_i.
3299
896a0c42 33002013-04-08 Jakub Jelinek <jakub@redhat.com>
3301
3302 PR c++/34949
3303 PR c++/50243
3304 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
3305 contain anything but clobbers, at most one __builtin_stack_restore,
3306 optionally debug stmts and final resx, and if it has at least one
3307 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
3308 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
3309 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
3310 which isn't defaut definition, remove them.
3311 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
3312 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
3313 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
3314 with MEM_REF LHS with SSA_NAME address.
3315
d701b871 33162013-04-08 Jeff Law <law@redhat.com>
3317
3318 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
813adf93 3319
0bf5f81b 33202013-04-08 Richard Biener <rguenther@suse.de>
3321
3322 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
3323 extra newline.
3324 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
3325 determined vector type.
3326 (vect_analyze_data_refs): Likewise.
3327 (vect_get_new_vect_var): Adjust.
3328 (vect_create_destination_var): Preserve SSA name versions.
3329 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
3330 not dump anything here.
3331
78d11f8a 33322013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
3333
3334 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
3335 Add member lr_slot_known.
3336 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
3337 if necessary.
3338 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
3339 Remove code that sets lr_slot_offset according to what a previous
3340 version of epiphany_emit_save_restore used to do.
3341 (epiphany_emit_save_restore): When doing an lr save or restore,
3342 set/verify lr_slot_known and lr_slot_offset.
3343
0a36a221 33442013-04-08 Xinyu Qi <xyqi@marvell.com>
3345
8f028904 3346 PR target/54338
3347 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
0a36a221 3348 in ALL_REGS.
3349
ce0deccc 33502013-04-08 Richard Biener <rguenther@suse.de>
3351
3352 * alias.c (find_base_term): Fix thinko in previous change.
3353
0dc30b0c 33542013-04-08 Jakub Jelinek <jakub@redhat.com>
3355
3356 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
3357 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
3358 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
3359 if possible to compute val.
3360 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
3361 For QImode integers don't require anything about precision. Use
3362 const_with_all_bytes_same to find out if the constant doesn't have
3363 repeated bytes in it.
3364
31efd1ec 33652013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3366
3367 * config/s390/s390.c (s390_expand_insv): Only accept insertions
3368 within mode size.
3369
ce4f2aee 33702013-04-08 Marek Polacek <polacek@redhat.com>
3371
3372 PR rtl-optimization/48182
3373 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
3374 value to 1.
3375
4aa618ec 33762013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3377
3378 PR target/55487
3379 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
3380 nuses, make sure we have a label.
3381
c68f8616 33822013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3383
3384 PR target/56843
3385 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
3386 (rs6000_emit_swdiv_low_precision): Remove.
3387 (rs6000_emit_swdiv): Rewrite to handle between one and four
3388 iterations of Newton-Raphson generally; modify required number of
3389 iterations for some cases.
3390 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
3391
b257b412 33922013-04-05 Steven Bosscher <steven@gcc.gnu.org>
3393
3394 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
3395 set-but-unused variable.
3396
3397 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
3398 basic blocks of released function bodies garbage-collectable.
3399
3400 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
3401 (struct rtl_opt_pass): Add TODO_df_finish.
3402
3403 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
3404
353cf59a 34052013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3406
3407 * config/arm/constraints.md (q): New constraint.
3408 * config/arm/ldrdstrd.md: New file.
3409 * config/arm/arm.md (ldrdstrd.md) New include.
3410 (arm_movdi): Use "q" instead of "r" constraint
3411 for double-word memory access.
3412 (movdf_soft_insn): Likewise.
3413 * config/arm/vfp.md (movdi_vfp): Likewise.
3414 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
8f028904 3415 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
353cf59a 3416 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
3417 (mem_ok_for_ldrd_strd): Likewise.
3418 (output_move_double): Update assertion.
3419
cb860649 34202013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3421
3422 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
3423
3dc953f2 34242013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3425
3426 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
3427 define_insn_and_split.
3428 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
3429
a5b9aa37 34302013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3431
3432 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
3433 define_insn_and_split.
8f028904 3434 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
a5b9aa37 3435 (shiftsi3_compare): New pattern.
3436 (rrx): New pattern.
3437 * config/arm/unspecs.md (UNSPEC_RRX): New.
3438
83e2b922 34392013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3440
3441 * config/arm/arm.md (negdi_extendsidi): New pattern.
3442 (negdi_zero_extendsidi): Likewise.
3443
ba6a3b2f 34442013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3445
3446 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
3447 define_insn_and_split.
3448 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
3449 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
3450
2f9b23e3 34512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3452
3453 * config/arm/arm.md (arm_subdi3): Convert define_insn into
3454 define_insn_and_split.
3455 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
3456 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
3457
9154bd82 34582013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3459
3460 * config/arm/arm.md (subsi3_carryin): New pattern.
3461 (subsi3_carryin_const): Likewise.
3462 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
3463 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
3464
560d151e 34652013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3466
3467 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
3468
a7de272d 34692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
3470
3471 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
9154bd82 3472 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
a7de272d 3473
30441c92 34742013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3475
3476 * config/arm/arm.c (arm_expand_builtin): Change fcode
3477 type to unsigned int.
3478
f2ba16e7 34792013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3480
3481 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
3482
224959cb 34832013-04-04 Ian Lance Taylor <iant@google.com>
3484
8f028904 3485 * doc/standards.texi (Standards): The Go frontend supports the Go 1
3486 language standard.
224959cb 3487
581d1e0f 34882013-04-04 Steven Bosscher <steven@gcc.gnu.org>
3489
3490 PR middle-end/56729
3491 * df-scan.c (df_insn_delete): Disable failing assert.
3492
23877cbc 34932013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3494
3495 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
3496 New function prototype.
3497 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
3498 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
3499 (arm_builtin_vectorized_function): New function.
3500
4bc74efc 35012013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3502
3503 * config/arm/arm_neon_builtins.def: New file.
3504 * config/arm/arm.c (neon_builtin_data): Move contents to
3505 arm_neon_builtins.def.
3506 (enum arm_builtins): Include neon builtin definitions.
3507 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8f028904 3508 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
4bc74efc 3509
6040d650 35102013-04-04 Marek Polacek <polacek@redhat.com>
3511
3512 PR tree-optimization/48186
3513 * predict.c (maybe_hot_frequency_p): Return false if
3514 HOT_BB_FREQUENCY_FRACTION is 0.
3515 (cgraph_maybe_hot_edge_p): Likewise.
3516
f77a1eec 35172013-04-04 Richard Biener <rguenther@suse.de>
3518
3519 PR tree-optimization/56826
3520 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
3521 more accurately.
3522
2dca30a9 35232013-04-04 Richard Biener <rguenther@suse.de>
3524
3525 PR tree-optimization/56213
3526 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8f028904 3527 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2dca30a9 3528
616d052d 35292013-04-04 Richard Biener <rguenther@suse.de>
3530
3531 PR tree-optimization/56837
3532 * tree-loop-distribution.c (classify_partition): For non-zero
3533 values require that the value has the same precision as its
3534 mode to be useful as memset value.
3535
34bcbb16 35362013-04-03 Nick Clifton <nickc@redhat.com>
3537
8f028904 3538 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
34bcbb16 3539 (fmssf4): Use fmsf.s on E3V5 architectures.
3540 (fnmasf4): Use fnmaf.s on E3V5 architectures.
3541 (fnmssf4): Use fnmsf.s on E3V5 architectures.
3542
2aebdec3 35432013-04-03 Jeff Law <law@redhat.com>
3544
3545 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
3546 (lra-eliminations.o): Likewise.
3547
8515a84d 35482013-04-03 Teresa Johnson <tejohnson@google.com>
3549
3550 * gcov-io.c (compute_working_sets): Moved most of body of old
8f028904 3551 compute_working_sets here from profile.c.
8515a84d 3552 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8f028904 3553 (gcov_working_set_t): Moved typedef here from basic-block.h
3554 (compute_working_set): Declare.
8515a84d 3555 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
3556 (get_working_sets): Renamed from compute_working_set,
8f028904 3557 replace most of body with call to new compute_working_sets.
8515a84d 3558 (get_exec_counts): Replace call to compute_working_sets
8f028904 3559 to get_working_sets.
3560 * profile.h (get_working_sets): Renamed from compute_working_set.
8515a84d 3561 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8f028904 3562 to get_working_sets.
8515a84d 3563 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
3564 * gcov-dump.c (dump_working_sets): New function.
3565
687a1ea1 35662013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3567
3568 * hwint.c (sext_hwi, zext_hwi): New functions.
3569 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
3570 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
3571 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
3572 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
3573 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
3574 (sext_hwi, zext_hwi): New functions.
34bcbb16 3575
99db618c 35762013-04-03 Jeff Law <law@redhat.com>
3577
3578 PR tree-optimization/56799
8f028904 3579 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
3580 back test for widening conversion erroneously dropped in prior change.
99db618c 3581
9743e73f 35822013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3583
3584 PR target/56809
3585 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
3586 instead of next_real_insn.
3587
ef951254 35882013-04-03 Marek Polacek <polacek@redhat.com>
3589
3590 PR sanitizer/55702
8f028904 3591 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
ef951254 3592
795e7242 35932013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3594
3595 PR target/56809
3596 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
3597 next_real_insn.
3598 (thumb1_output_casesi): Likewise.
3599 (thumb2_output_casesi): Likewise.
3600
042301ef 36012013-04-03 Richard Biener <rguenther@suse.de>
3602
3603 PR tree-optimization/56817
3604 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3605 Split out ...
3606 (tree_unroll_loops_completely_1): ... new function to manually
3607 walk the loop tree, properly defering outer loops of unrolled
3608 loops to later iterations.
3609
19bacd59 36102013-04-03 Marc Glisse <marc.glisse@inria.fr>
3611
3612 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
3613 (vectorizable_load): Likewise.
3614 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
3615 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
3616
872e3ff8 36172013-04-03 Marc Glisse <marc.glisse@inria.fr>
3618
3619 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
3620 BIT_FIELD_REF.
3621
b1135d9a 36222013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3623
3624 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
3625
bb760dac 36262013-04-03 Bin Cheng <bin.cheng@arm.com>
3627
3628 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
3629
07681e3a 36302013-04-03 Marc Glisse <marc.glisse@inria.fr>
3631
3632 PR tree-optimization/56790
8f028904 3633 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
3634 folding.
07681e3a 3635
f0a05bd5 36362013-04-03 Marc Glisse <marc.glisse@inria.fr>
3637
3638 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
3639 Handle VEC_MERGE.
3640 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
3641 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
3642 equal arguments.
3643
0b049e15 36442013-04-03 Jakub Jelinek <jakub@redhat.com>
3645
3646 PR c/19449
3647 * tree.h (force_folding_builtin_constant_p): New decl.
3648 * builtins.c (force_folding_builtin_constant_p): New variable.
3649 (fold_builtin_constant_p): Fold immediately also if
3650 force_folding_builtin_constant_p.
3651
1fa434e3 36522013-04-03 Richard Biener <rguenther@suse.de>
3653
3654 PR tree-optimization/56812
3655 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3656 DRs of the same interleaving chain are independent.
3657
0a56fff4 36582013-04-02 Jason Merrill <jason@redhat.com>
3659
3660 * gdbinit.in (pbb): Use debug fn.
3661
f8477cfc 36622013-04-02 Lawrence Crowl <crowl@google.com>
3663
3664 * sese.h (struct ivtype_map_elt_s): Remove unused.
3665 (extern debug_ivtype_map): Remove unused.
3666 (extern eq_ivtype_map_elts): Remove unused.
3667 * sese.c (debug_ivtype_map): Removed unused.
3668 (debug_ivtype_map_1): Removed unused.
3669 (debug_ivtype_elt): Remove unused.
3670 (eq_ivtype_map_elts): Remove unused.
3671
3672
5496fac8 36732013-04-02 Kai Tietz <ktietz@redhat.com>
3674
3675 PR target/52790
3676 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
3677 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8f028904 3678 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
3679 function.
5496fac8 3680 (legitimize_pe_coff_symbol): Likewise.
3681 (is_imported_p): New helper-function.
3682 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
3683 for Windows x64 targets.
3684 (ix86_expand_prologue): Optimize for pe-coff targets.
3685 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
3686 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
3687 medium/large code-model.
3688 (legitimize_pic_address): Likewise.
3689 (legitimize_tls_address): Likewise.
3690 (ix86_expand_call): Likewise.
3691 (x86_output_mi_thunk): Likewise.
3692 (get_dllimport_decl): Add new beimport argument.
3693 (construct_plt_address): Don't assert for x64 pe-coff targets.
3694 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
3695 targets.
3696 (SYMBOL_FLAG_STUBVAR): New macro.
3697 (SYMBOL_REF_STUBVAR_P): Likewise.
3698 * config/i386/winnt.c (stub_list): New structure.
3699 (stub_head): New local variable.
3700 (i386_pe_record_stub): New function.
3701 (i386_pe_file_end): Emit refptr-stubs.
3702
9f559b20 37032013-04-02 Jakub Jelinek <jakub@redhat.com>
3704
50212417 3705 PR rtl-optimization/56745
3706 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
3707 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
3708
137eddca 3709 PR c++/34949
3710 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
3711 and both of them are MEM_REFs, just compare first argument for
3712 equality and attempt to deal even with differing offsets.
3713
9f559b20 3714 PR c++/34949
3715 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
3716 of gimple_clobber_p to be MEM_REF.
3717 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
3718 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
3719 after gimplification.
3720 * asan.c (get_mem_ref_of_assignment): Don't instrument
3721 gimple_clobber_p stmts.
3722 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
3723 gimple_clobber_p stmt if they have MEM_REF lhs and
3724 are dead because of another gimple_clobber_p stmt.
3725 * tree-ssa-live.c (clear_unused_block_pointer): Treat
3726 gimple_clobber_p stmts like debug stmts.
3727 (remove_unused_locals): Remove clobbers with MEM_REF lhs
3728 that refer to unused VAR_DECLs or uninitialized values.
3729 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
3730 gimple_clobber_p stmts if they refer to removed parameters.
3731 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
3732 formatting.
3733
7d71feb3 37342013-04-02 Uros Bizjak <ubizjak@gmail.com>
3735
3736 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
3737 using SWI48 mode attribute.
3738
10ef9b48 37392013-04-02 Wei Mi <wmi@google.com>
3740
3741 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
3742 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
3743 *<rotate_insn><mode>3_mask in i386.md.
3744
ced500f0 37452013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
3746
3747 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
3748
95e19962 37492013-04-02 Richard Biener <rguenther@suse.de>
3750
3751 PR tree-optimization/56778
3752 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3753 Runtime alias tests are not supported for gather loads.
3754 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
3755 stmts referenced from SSA operands before updating SSA form.
3756
da10bc87 37572013-04-02 Ian Caulfield <ian.caulfield@arm.com>
3758 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3759
3760 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7d71feb3 3761 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
3762 * config/arm/cortex-a53.md: New file.
3763 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
3764 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
3765 * config/arm/arm.c (arm_issue_rate): Likewise.
3766 * config/arm/arm-tune.md: Regenerate
3767 * config/arm/arm-tables.opt: Regenerate.
3768 * config/arm/arm-cores.def: Add cortex-a53.
da10bc87 3769
d62eaedc 37702013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
3771
3772 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
3773 non-static link.
3774
fb436d5f 37752013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3776
da10bc87 3777 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
3778 scalar load/store operations using B/H registers.
fb436d5f 3779 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
3780
43bd8f5c 37812013-04-02 Sofiane Naci <sofiane.naci@arm.com>
3782
3783 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
3784 scalar move.
3785 * config/aarch64/aarch64.c
3786 (aarch64_simd_scalar_immediate_valid_for_move): New.
3787 * config/aarch64/aarch64-protos.h
3788 (aarch64_simd_scalar_immediate_valid_for_move): New.
3789 * config/aarch64/constraints.md (Dh, Dq): New.
3790 * config/aarch64/iterators.md (hq): New.
3791
965df672 37922013-04-02 Eric Botcazou <ebotcazou@adacore.com>
3793
3794 * reorg.c (get_branch_condition): Deal with conditional returns.
3795 (fill_simple_delay_slots): Remove dead code dealing with jumps.
3796
8089c750 37972013-04-01 Wei Mi <wmi@google.com>
3798
3799 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
3800 Truncate operand 2 using %b asm operand modifier.
3801 (*<shift_insn><mode>3_mask): Ditto.
3802 (*<rotate_insn><mode>3_mask): Ditto.
3803
53859f1c 38042013-04-01 Steven Bosscher <steven@gcc.gnu.org>
3805
3806 PR middle-end/56798
3807 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
3808
262e5908 38092013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
3810
3811 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
3812 of next_real_insn.
3813 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
3814
e85eaec5 38152013-03-30 Lawrence Crowl <crowl@google.com>
3816
3817 * dse.c (clear_alias_sets): Remove never set.
3818 (disqualified_clear_alias_sets): Remove never set.
3819 (clear_alias_mode_pool): Remove never set.
3820 (dse_step0): Remove condition that is never true.
3821 (canon_address): Remove condition that is never true.
3822 (dse_step7): Remove condition that is never true.
3823 (rest_of_handle_dse): Remove condition that is never true.
3824 (rest_of_handle_dse::did_global): Remove never read from above.
3825 (dse_step2_spill): Remove never called from above.
3826 (dse_step5_spill): Remove never called from above.
3827
91f71fa3 38282013-03-30 Steven Bosscher <steven@gcc.gnu.org>
3829
9ddbb404 3830 * doc/md.texi (Standard Names) <casesi>: Update documentation for
3831 JUMP_TABLE_DATA changes.
3832 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
3833 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
3834 (Insns) <jump_table_data>: New entry.
3835 * doc/tm.texi: Regenerate.
3836
91f71fa3 3837 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
3838
3839 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
3840 for table jump at the end of a basic block using tablejump_p.
3841 * targhooks.c (default_invalid_within_doloop): Likewise.
3842 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
3843 target hook implementation that is identical to the default hook.
3844 (rs6000_invalid_within_doloop): Remove.
3845
3846 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
3847 unused variable from tablejump_p call.
3848
3849 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
3850 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
3851 (INSN_DELETED_P): Likewise.
3852 (emit_jump_table_data): New prototype.
3853 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
3854 after 4th as unused.
3855 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
3856 * sched-vis.c (print_insn): Likewise.
3857 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
3858 insn for compatibility with back ends that use next_active_insn to
3859 identify jump table data.
3860 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
3861 (remove_insn): Likewise.
3862 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
3863 to be emitted.
3864 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
3865 (emit_jump_table_data): New function.
3866
3867 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
3868 basic block, a JUMP_TABLE_DATA never is.
3869 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
3870 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
3871 off from code handling real insns.
3872 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
3873 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
3874 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
3875 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
3876 is not a NONDEBUG_INSN_P.
3877 * ira-costs.c (scan_one_insn): Likewise.
3878 * jump.c (mark_all_labels): Likewise.
3879 (mark_jump_label_1): Likewise.
3880 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3881 * lra.c (get_insn_freq): Expect all insns reaching here to be in
3882 a basic block.
3883 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
3884 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
3885 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
3886 JUMP_TABLE_DATA_P insns.
3887 (calculate_elim_costs_all_insns): Likewise.
3888 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
3889 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
3890 (delete_output_reload): Code style fixups.
3891 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
3892 insn flags on this non-insn.
3893 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
3894 as scheduling barriers, for pre-change compatibility.
3895 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
3896 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
3897
3898 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
3899 redundant JUMP_TABLE_DATA_P test.
3900 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
3901 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3902 (frv_for_each_packet): Likewise.
3903 * config/i386/i386.c (min_insn_size): Likewise.
3904 (ix86_avoid_jump_mispredicts): Likewise.
3905 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3906 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
3907 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3908 (mips16_insn_length): Robustify.
3909 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
3910 (mips16_split_long_branches): Likewise.
3911 * config/pa/pa.c (pa_combine_instructions): Likewise.
3912 * config/rs6000/rs6000.c (get_next_active_insn): Treat
3913 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
3914 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
3915 as contributing to pool range lengths.
3916 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
3917 Remove redundant JUMP_TABLE_DATA_P test.
3918 (sh_loop_align): Likewise.
3919 (split_branches): Likewise.
3920 (sh_insn_length_adjustment): Likewise.
3921 * config/spu/spu.c (get_branch_target): Likewise.
3922
9e179a64 39232013-03-29 Jan Hubicka <jh@suse.cz>
3924
3925 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
3926 gcov streaming; stream hot bb threshold to ltrans.
3927 * predict.c (get_hot_bb_threshold): Break out from ....
3928 (maybe_hot_count_p): ... here.
3929 (set_hot_bb_threshold): New function.
3930 * lto-section-in.c (lto_section_name): Add profile.
3931 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
3932 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
3933 and data-streamer.h
3934 (histogram_entry): New structure.
3935 (histogram, histogram_pool): New global vars.
3936 (histogram_hash): New structure.
3937 (histogram_hash::hash): New method.
3938 (histogram_hash::equal): Likewise.
3939 (account_time_size): New function.
3940 (cmp_counts): New function.
3941 (dump_histogram): New function.
3942 (ipa_profile_generate_summary): New function.
3943 (ipa_profile_write_summary): New function.
3944 (ipa_profile_read_summary): New function.
3945 (ipa_profile): Decide on threshold.
7d71feb3 3946 (pass_ipa_profile): Add ipa_profile_write_summary and
3947 ipa_profile_read_summary.
9e179a64 3948 * Makefile.in (ipa.o): Update dependencies.
3949 * lto-streamer.h (LTO_section_ipa_profile): New section.
3950
80a58eb0 39512013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3952
3953 * tree.h (VAR_P): New.
3954
51bad497 39552013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
3956
3957 PR lto/56777
3958 * doc/invoke.texi ([-fwhole-program]): Fix typo.
3959
77985f1a 39602013-03-29 Steven Bosscher <steven@gcc.gnu.org>
3961
3962 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
3963 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3964 (control_flow_insn_p): Likewise.
3965 * cfgrtl.c (duplicate_insn_chain): Likewise.
3966 * final.c (get_attr_length_1): Likewise.
3967 (shorten_branches): Likewise.
3968 (final_scan_insn): Likewise.
3969 * function.c (instantiate_virtual_regs): Likewise.
3970 * gcse.c (insert_insn_end_basic_block): Likewise.
3971 * ira-costs.c (scan_one_insn): Likewise.
3972 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
3973 * lra.c (check_rtl): Likewise.
3974 * reload1.c (elimination_costs_in_insn): Likewise.
3975 * reorg.c (follow_jumps): Likewise.
3976
3977 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
3978 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
3979 (thumb_far_jump_used_p): Likewise.
3980 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
3981 (workaround_speculation): Likewise.
3982 (add_sched_insns_for_speculation): Likewise.
3983 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
3984 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
3985 (frv_for_each_packet): Likewise.
3986 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
3987 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
3988 (final_emit_insn_group_barriers): Likewise.
3989 * config/m32r/m32r.c (m32r_is_insn): Likewise.
3990 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
3991 (mips16_insn_length): Likewise.
3992 * config/pa/pa.c (pa_reorg): Likewise.
3993 (pa_combine_instructions): Likewise.
3994 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
3995 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
3996 (sh_reorg): Likewise.
3997 (split_branches): Likewise.
3998 * config/spu/spu.c (get_branch_target): Likewise.
3999
4000 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
4001 JUMP_TABLE_DATA_P.
4002
78e8d5ff 40032013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
4004
51bad497 4005 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
78e8d5ff 4006 Fix declaration name.
4007
31d49894 40082013-03-28 Lawrence Crowl <crowl@google.com>
4009
4010 * graphds.h (struct graph.indicies): Remove unused.
4011 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
4012 (SCOP_ORIGINAL_PDDRS): Remove unused.
4013 * sese.h (extern insert_loop_close_phis): Removed unused.
4014 (extern insert_guard_phis): Removed unused.
4015 (extern ivtype_map_elt_info): Removed unused.
4016 (new_ivtype_map_elt): Removed unused.
4017 * sese.c (ivtype_map_elt_info): Removed unused.
4018
c7d89805 40192013-03-28 Lawrence Crowl <crowl@google.com>
4020
4021 * Makefile.in: Add several missing include dependences.
4022 (DUMPFILE_H): New.
4023 (test-dump.o): New. This object is not added to any executable,
4024 but is present for ad-hoc testing.
4025 * bitmap.c
4026 (debug (const bitmap_head_def &)): New.
4027 (debug (const bitmap_head_def *)): New.
4028 * bitmap.h
4029 (extern debug (const bitmap_head_def &)): New.
4030 (extern debug (const bitmap_head_def *)): New.
4031 * cfg.c
4032 (debug (edge_def &)): New.
4033 (debug (edge_def *)): New.
4034 * cfghooks.c
4035 (debug (basic_block_def &)): New.
4036 (debug (basic_block_def *)): New.
4037 * dumpfile.h
4038 (dump_node (const_tree, int, FILE *)): Correct source file.
4039 * dwarf2out.c
4040 (debug (die_struct &)): New.
4041 (debug (die_struct *)): New.
4042 * dwarf2out.h
4043 (extern debug (die_struct &)): New.
4044 (extern debug (die_struct *)): New.
4045 * gimple-pretty-print.c
4046 (debug (gimple_statement_d &)): New.
4047 (debug (gimple_statement_d *)): New.
4048 * gimple-pretty-print.h
4049 (extern debug (gimple_statement_d &)): New.
4050 (extern debug (gimple_statement_d *)): New.
4051 * ira-build.c
4052 (debug (ira_allocno_copy &)): New.
4053 (debug (ira_allocno_copy *)): New.
4054 (debug (ira_allocno &)): New.
4055 (debug (ira_allocno *)): New.
4056 * ira-int.h
4057 (extern debug (ira_allocno_copy &)): New.
4058 (extern debug (ira_allocno_copy *)): New.
4059 (extern debug (ira_allocno &)): New.
4060 (extern debug (ira_allocno *)): New.
4061 * ira-lives.c
4062 (debug (live_range &)): New.
4063 (debug (live_range *)): New.
4064 * lra-int.h
4065 (debug (lra_live_range &)): New.
4066 (debug (lra_live_range *)): New.
4067 * lra-lives.c
4068 (debug (lra_live_range &)): New.
4069 (debug (lra_live_range *)): New.
4070 * omega.c
4071 (debug (omega_pb_d &)): New.
4072 (debug (omega_pb_d *)): New.
4073 * omega.h
4074 (extern debug (omega_pb_d &)): New.
4075 (extern debug (omega_pb_d *)): New.
4076 * print-rtl.c
4077 (debug (const rtx_def &)): New.
4078 (debug (const rtx_def *)): New.
4079 * print-tree.c
4080 (debug_tree (tree): Move within file.
4081 (debug_raw (const tree_node &)): New.
4082 (debug_raw (const tree_node *)): New.
4083 (dump_tree_via_hooks (const tree_node *, int)): New.
4084 (debug (const tree_node &)): New.
4085 (debug (const tree_node *)): New.
4086 (debug_verbose (const tree_node &)): New.
4087 (debug_verbose (const tree_node *)): New.
4088 (debug_head (const tree_node &)): New.
4089 (debug_head (const tree_node *)): New.
4090 (debug_body (const tree_node &)): New.
4091 (debug_body (const tree_node *)): New.
4092 (debug_vec_tree (tree): Move and reimplement in terms of dump.
4093 (debug (vec<tree, va_gc> &)): New.
4094 (debug (vec<tree, va_gc> *)): New.
4095 * rtl.h
4096 (extern debug (const rtx_def &)): New.
4097 (extern debug (const rtx_def *)): New.
4098 * sbitmap.c
4099 (debug_raw (simple_bitmap_def &)): New.
4100 (debug_raw (simple_bitmap_def *)): New.
4101 (debug (simple_bitmap_def &)): New.
4102 (debug (simple_bitmap_def *)): New.
4103 * sbitmap.h
4104 (extern debug (simple_bitmap_def &)): New.
4105 (extern debug (simple_bitmap_def *)): New.
4106 (extern debug_raw (simple_bitmap_def &)): New.
4107 (extern debug_raw (simple_bitmap_def *)): New.
4108 * sel-sched-dump.c
4109 (debug (vinsn_def &)): New.
4110 (debug (vinsn_def *)): New.
4111 (debug_verbose (vinsn_def &)): New.
4112 (debug_verbose (vinsn_def *)): New.
4113 (debug (expr_def &)): New.
4114 (debug (expr_def *)): New.
4115 (debug_verbose (expr_def &)): New.
4116 (debug_verbose (expr_def *)): New.
4117 (debug (vec<rtx> &)): New.
4118 (debug (vec<rtx> *)): New.
4119 * sel-sched-dump.h
4120 (extern debug (vinsn_def &)): New.
4121 (extern debug (vinsn_def *)): New.
4122 (extern debug_verbose (vinsn_def &)): New.
4123 (extern debug_verbose (vinsn_def *)): New.
4124 (extern debug (expr_def &)): New.
4125 (extern debug (expr_def *)): New.
4126 (extern debug_verbose (expr_def &)): New.
4127 (extern debug_verbose (expr_def *)): New.
4128 (extern debug (vec<rtx> &)): New.
4129 (extern debug (vec<rtx> *)): New.
4130 * sel-sched-ir.h
4131 (_list_iter_cond_expr): Make inline instead of static.
4132 * sreal.c
4133 (debug (sreal &)): New.
4134 (debug (sreal *)): New.
4135 * sreal.h
4136 (extern debug (sreal &)): New.
4137 (extern debug (sreal *)): New.
4138 * tree.h
4139 (extern debug_raw (const tree_node &)): New.
4140 (extern debug_raw (const tree_node *)): New.
4141 (extern debug (const tree_node &)): New.
4142 (extern debug (const tree_node *)): New.
4143 (extern debug_verbose (const tree_node &)): New.
4144 (extern debug_verbose (const tree_node *)): New.
4145 (extern debug_head (const tree_node &)): New.
4146 (extern debug_head (const tree_node *)): New.
4147 (extern debug_body (const tree_node &)): New.
4148 (extern debug_body (const tree_node *)): New.
4149 (extern debug (vec<tree, va_gc> &)): New.
4150 (extern debug (vec<tree, va_gc> *)): New.
4151 * tree-cfg.c
4152 (debug (struct loop &)): New.
4153 (debug (struct loop *)): New.
4154 (debug_verbose (struct loop &)): New.
4155 (debug_verbose (struct loop *)): New.
4156 * tree-dump.c: Add header dependence.
4157 * tree-flow.h
4158 (extern debug (struct loop &)): New.
4159 (extern debug (struct loop *)): New.
4160 (extern debug_verbose (struct loop &)): New.
4161 (extern debug_verbose (struct loop *)): New.
4162 * tree-data-ref.c
4163 (debug (data_reference &)): New.
4164 (debug (data_reference *)): New.
4165 (debug (vec<data_reference_p> &)): New.
4166 (debug (vec<data_reference_p> *)): New.
4167 (debug (vec<ddr_p> &)): New.
4168 (debug (vec<ddr_p> *)): New.
4169 * tree-data-ref.h
4170 (extern debug (data_reference &)): New.
4171 (extern debug (data_reference *)): New.
4172 (extern debug (vec<data_reference_p> &)): New.
4173 (extern debug (vec<data_reference_p> *)): New.
4174 (extern debug (vec<ddr_p> &)): New.
4175 (extern debug (vec<ddr_p> *)): New.
4176 * tree-ssa-alias.c
4177 (debug (pt_solution &)): New.
4178 (debug (pt_solution *)): New.
4179 * tree-ssa-alias.h
4180 (extern debug (pt_solution &)): New.
4181 (extern debug (pt_solution *)): New.
4182 * tree-ssa-alias.c
4183 (debug (_var_map &)): New.
4184 (debug (_var_map *)): New.
4185 (debug (tree_live_info_d &)): New.
4186 (debug (tree_live_info_d *)): New.
4187 * tree-ssa-alias.h
4188 (extern debug (_var_map &)): New.
4189 (extern debug (_var_map *)): New.
4190 (extern debug (tree_live_info_d &)): New.
4191 (extern debug (tree_live_info_d *)): New.
4192
ed8b1c1f 41932013-03-28 Jan Hubicka <jh@suse.cz>
4194
4195 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
4196
0d62a093 41972013-03-28 Ian Bolton <ian.bolton@arm.com>
4198
4199 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
4200 record only when desired or required.
4201
cea39eb6 42022013-03-28 Uros Bizjak <ubizjak@gmail.com>
4203
4204 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
4205 *vec_extractv2di_1_rex64. Use x64 isa attribute.
4206
8f028904 42072013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7f4f914a 4208
4209 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
4210 (*andsi3_compare0_uxtw): New pattern.
4211 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
4212 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
4213
fc44a215 42142013-03-28 Jan Hubicka <jh@suse.cz>
4215
4216 * data-streamer-in.c (streamer_read_gcov_count): New function.
4217 * gimple-streamer-out.c: Include value-prof.h.
4218 (output_gimple_stmt): Output histogram.
4219 (output_bb): Use streamer_write_gcov_count.
4220 * value-prof.c: Include data-streamer.h
4221 (dump_histogram_value): Add HIST_TYPE_MAX.
4222 (stream_out_histogram_value): New function.
4223 (stream_in_histogram_value): New function.
4224 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
4225 (stream_out_histogram_value, stream_in_histogram_value): Declare.
4226 * data-streamer-out.c (streamer_write_gcov_count): New function.
4227 (streamer_write_gcov_count_stream): New function.
4228 * lto-cgraph.c (lto_output_edge): Update counter streaming.
4229 (lto_output_node): Likewise.
4230 (input_node, input_edge): Likewise.
4231 * lto-streamer-out.c (output_cfg): Update streaming.
4232 * lto-streamer-in.c (input_cfg): Likewise.
4233 * data-streamer.h (streamer_write_gcov_count,
4234 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
4235 * gimple-streamer-in.c: Include value-prof.h
4236 (input_gimple_stmt): Input histograms.
4237 (input_bb): Update profile streaming.
4238
7d71feb3 42392013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
64a8b204 4240
8f028904 4241 * genmodes.c (emit_max_int): New function.
f9cb58ae 4242 (emit_insn_modes_h): Added call to emit_max_function.
51bad497 4243 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
4244 Added doc.
f9cb58ae 4245 * machmode.def: Fixed comment.
fc44a215 4246
7d71feb3 42472013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
f9cb58ae 4248
4249 * combine.c (try_combine): Removed useless assert.
64a8b204 4250 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
4251
43d7caca 42522013-03-28 Marek Polacek <polacek@redhat.com>
4253 Richard Biener <rguenther@suse.de>
4254
4255 PR tree-optimization/56695
4256 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
4257 build signed result of a vector comparison.
4258 * tree-cfg.c (verify_gimple_comparison): Check that a result
4259 of a vector comparison has signed type.
4260
8f3e4987 42612013-03-28 Richard Biener <rguenther@suse.de>
4262
4263 PR tree-optimization/37021
4264 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
4265 do not restrict gaps between groups.
4266 * tree-vect-stmts.c (vectorizable_load): Properly account for
4267 a gap between groups.
4268
5b0d71ce 42692013-03-28 Eric Botcazou <ebotcazou@adacore.com>
4270
4271 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
4272 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
4273 is not enabled.
4274
886c5e35 42752013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
4276
4277 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
4278 * doc/extend.texi (Named Address Spaces): Ditto.
4279 (Variable Attributes): Ditto.
4280
8f3115a2 42812013-03-27 Kai Tietz <ktietz@redhat.com>
4282
10b0ba24 4283 * config.build: Add support for cygwin x64 target.
4284 * config.gcc: Likewise.
4285 * config.host: Likewise.
4286 * configure.ac: Likewise
4287 * configure: Regenerated.
8f3115a2 4288
cb8160ad 42892013-03-27 Kai Tietz <ktietz@redhat.com>
4290
4291 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
4292 * config/i386/t-cygwin-w64: New file.
4293 * config/i386/cygwin-w64.h: New file.
4294 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
4295 and add support for x64-cygwin target.
4296 (CPP_SPEC): Likewise.
4297 (CXX_WRAP_SPEC_LIST): Undefine before define.
4298 (LIBGCJ_SONAME): Use 15 as version.
4299
6c9b05aa 43002013-03-27 Richard Biener <rguenther@suse.de>
4301
4302 PR tree-optimization/56716
4303 * tree-ssa-structalias.c (perform_var_substitution): Adjust
4304 dumping for ref nodes.
4305
4f0c9cf2 43062013-03-27 Martin Jambor <mjambor@suse.cz>
4307
4308 PR tree-optimization/55334
4309 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
4310 restricted pointers to arrays.
4311
e79e977d 43122013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4313
4314 * Makefile.in (.SUFFIXES): Add .cc.
4315 (.c.o): Apply same recipe for implicit rule .cc.o.
4316
f837b1f7 43172013-03-27 Richard Biener <rguenther@suse.de>
4318
4319 PR tree-optimization/37021
4320 * tree-vect-data-refs.c (vect_check_strided_load): Allow
4321 REALPART/IMAGPART_EXPRs around the supported refs.
4322 * tree-ssa-structalias.c (find_func_aliases): Assume that
4323 floating-point values are not used to transfer pointers.
4324
df9f2e40 43252013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4326
51bad497 4327 * target.def (TARGET_HAS_IFUNC_P): New target hook.
4328 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
4329 * doc/tm.texi: Regenerate.
4330 * targhooks.h (default_has_ifunc_p): New.
4331 * targhooks.c (default_has_ifunc_p): Ditto.
4332 * config/linux-protos.h: New file.
4333 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
df9f2e40 4334 this hook for linux which disables support of indirect functions in
4335 android.
51bad497 4336 * config/linux-android.c: New file.
4337 * config/t-linux-android.c: Ditto.
4338 * config.gcc: Added new object file linux-android.o.
4339 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
df9f2e40 4340 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
51bad497 4341 * varasm.c (do_assemble_alias): Likewise.
df9f2e40 4342 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
4343 doesn't support indirect functions.
4344 * configure: Regenerate.
4345
d18af62e 43462013-03-27 Bin Cheng <bin.cheng@arm.com>
4347
4348 PR target/56102
4349 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
4350 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
4351 mult-word mode.
4352
2e9f00a3 43532013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4354
4355 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
4356
6ee84d16 43572013-03-27 Terry Guo <terry.guo@arm.com>
4358
4359 * config/arm/arm-cores.def: Added core cortex-r7.
4360 * config/arm/arm-tune.md: Regenerated.
4361 * config/arm/arm-tables.opt: Regenerated.
4362 * doc/invoke.texi: Added entry for core cortex-r7.
4363
9f1b21e1 43642013-03-27 Walter Lee <walt@tilera.com>
4365
4366 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
4367 double-decrement of next_scratch_regno.
4368
21743daa 43692013-03-27 Walter Lee <walt@tilera.com>
4370
7946a1e8 4371 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
21743daa 4372 input operands.
4373 (insn_v1mulus): Ditto.
4374 (insn_v2muls): Ditto.
4375
d7c3902f 43762013-03-27 Walter Lee <walt@tilera.com>
4377
7d71feb3 4378 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
d7c3902f 4379 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
4380
cd002190 43812013-03-27 Walter Lee <walt@tilera.com>
4382
7d71feb3 4383 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
cd002190 4384 (*sibcall_value): Ditto.
4385
ddff9023 43862013-03-27 Walter Lee <walt@tilera.com>
4387
4388 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
4389 (insn_mnz_v8qi): ... this ...
4390 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
4391 vector equivalent.
4392 (insn_v<n>mnz): Replaced by ...
4393 (insn_v1mnz): ... this ...
4394 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
4395 equivalent.
4396 (insn_mz_<mode>): Replaced by ...
4397 (insn_mz_v8qi): ... this ...
4398 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
4399 vector equivalent.
4400 (insn_v<n>mz): Replaced by ...
4401 (insn_v1mz): ... this ...
4402 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
4403 equivalent.
4404
79c96309 44052013-03-26 Eric Botcazou <ebotcazou@adacore.com>
4406
4407 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
4408
b48eb844 44092013-03-26 Roland McGrath <mcgrathr@google.com>
4410
4411 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
4412 than fprintf with a non-constant, non-format string.
4413
ee9e7384 44142013-03-26 Uros Bizjak <ubizjak@gmail.com>
4415
4416 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
4417 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
4418 operand 0 predicate.
4419 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
4420 attribute. Use general_x64nomem_operand as operand 1 predicate.
4421 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
4422 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4423 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
4424 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
4425 (mov<mode>_insv_1): Remove expander. Merge insn with
4426 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
4427 Use general_x64nomem_operand as operand 1 predicate.
4428 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
4429 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
4430 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4431 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
4432 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
4433 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
4434 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
4435 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
4436 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
4437 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
4438 (general_x64nomem_operand): Ditto.
4439
57c8b8f0 44402013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
2c4fdad4 4441
4442 * config/rtems.opt: Add -pthread option.
4443
5abc99e4 44442013-03-26 Richard Biener <rguenther@suse.de>
4445
ee9e7384 4446 * alias.c (find_base_term): Avoid redundant and not used recursion.
4447 (base_alias_check): Get the initial base term from the caller.
5abc99e4 4448 (true_dependence_1): Compute and pass base terms to base_alias_check.
4449 (write_dependence_p): Likewise.
4450 (may_alias_p): Likewise.
4451
df67a123 44522013-03-26 Sofiane Naci <sofiane.naci@arm.com>
4453
4454 * config/aarch64/aarch64.c (aarch64_classify_address): Support
4455 PC-relative load in SI modes and above only.
4456
9d4b6482 44572013-03-26 Xinyu Qi <xyqi@marvell.com>
4458
4459 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8f028904 4460 * config/arm/iwmmxt.md (WCGR0): Update.
4461 (WCGR1, WCGR2, WCGR3): Likewise.
9d4b6482 4462
c8244d17 44632013-03-26 Uros Bizjak <ubizjak@gmail.com>
4464
4465 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
4466 Use x64 and nox64 isa attributes.
4467
9eec20bf 44682013-03-26 Richard Biener <rguenther@suse.de>
4469
4470 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4471 alignment computations and rely on get_object_alignment_1
4472 for the !TYPE_P case.
4473 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
4474
684c0f06 44752013-03-26 Walter Lee <walt@tilera.com>
4476
4477 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
4478 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
4479
96a1fa3a 44802013-03-25 Jeff Law <law@redhat.com>
99db618c 4481
8f028904 4482 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
4483 check for INTEGRAL_TYPE_P that was missing due to checking in
96a1fa3a 4484 wrong version of prior patch.
4485
60cae6e1 44862013-03-25 Walter Lee <walt@tilera.com>
4487
4488 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
4489 TILEGX_INSN_SHUFFLEBYTES1.
4490 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
4491 shufflebytes1.
4492 (tilegx_builtins): Ditto.
4493 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
4494
a116add9 44952013-03-25 Walter Lee <walt@tilera.com>
4496
4497 * config/tilegx/tilegx.md (floatsisf2): New pattern.
60cae6e1 4498 (floatunssisf2): New pattern.
4499 (floatsidf2): New pattern.
4500 (floatunssidf2): New pattern.
a116add9 4501
19f27a0c 45022013-03-25 Walter Lee <walt@tilera.com>
4503
4504 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
4505 tests for constraint J, K, N, P.
4506
b429d641 45072013-03-25 Walter Lee <walt@tilera.com>
4508
4509 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
4510 Use indirect/pcrel encoding.
4511 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
4512 Ditto.
4513
14844884 45142013-03-25 Steve Ellcey <sellcey@mips.com>
4515
4516 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
4517 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
4518 * config/mips/mips.c (mips_option_override): Set IMADD default.
4519 * config/mips/mips.h (PTF_AVOID_IMADD): New.
4520 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
4521 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
4522 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
4523 * doc/invoke.texi (-mimadd/-mno-imadd): New.
4524
5aa24950 45252013-03-25 Jeff Law <law@redhat.com>
4526
4527 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
4528 slightly to avoid creating and folding useless trees. Simplify
4529 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
4530
c7222732 45312013-03-25 Uros Bizjak <ubizjak@gmail.com>
4532
4533 * config/i386/i386.md (*zero_extendsidi2): Merge with
4534 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
4535 * config/i386/predicates.md (x86_64_zext_operand): Rename from
4536 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
4537 targets. Clarify comment.
4538
30a240df 45392013-03-25 Martin Jambor <mjambor@suse.cz>
4540
4541 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
4542 pass-through jump functions differently.
4543 (ipa_read_jump_function): Likewise. Also use setter functions to set
4544 up jump functions.
4545
265c4eb2 45462013-03-25 Martin Jambor <mjambor@suse.cz>
4547
4548 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
4549 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
4550 process it.
4551 (ipa_get_indirect_edge_target): New function.
4552 (devirtualization_time_bonus): New parameter known_aggs, pass it to
4553 ipa_get_indirect_edge_target. Update all callers.
4554 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
4555 ipa_get_indirect_edge_target_1 instead of calling
4556 ipa_get_indirect_edge_target.
4557 (create_specialized_node): Pass aggvlas to
4558 ipcp_discover_new_direct_edges.
4559
91cb50d2 45602013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4561
4562 * config/arm/arm.md (f_sels, f_seld): New types.
4563 (*cmov<mode>): New pattern.
4564 * config/arm/predicates.md (arm_vsel_comparison_operator): New
4565 predicate.
4566
1ff5fe3b 45672013-03-25 Kai Tietz <ktietz@redhat.com>
4568
4569 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
4570 POSIX-printf for mingw-hosted builds.
4571
0565e0b5 45722013-03-25 Richard Biener <rguenther@suse.de>
4573
4574 PR middle-end/56694
4575 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
4576 must-not-throw stmt location.
4577
47d66364 45782013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4579
4580 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
4581 Emit load-acquire versions when acq is true.
4582 (arm_emit_store_exclusive): Add rel parameter.
4583 Emit store-release versions when rel is true.
4584 (arm_split_compare_and_swap): Use acquire-release instructions
4585 instead.
4586 of barriers when appropriate.
4587 (arm_split_atomic_op): Likewise.
4588 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
4589 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
4590 (VUNSPEC_SLX): Likewise.
4591 (VUNSPEC_LDA): Likewise.
4592 (VUNSPEC_STL): Likewise.
4593 * config/arm/sync.md (atomic_load<mode>): New pattern.
4594 (atomic_store<mode>): Likewise.
4595 (arm_load_acquire_exclusive<mode>): Likewise.
4596 (arm_load_acquire_exclusivesi): Likewise.
4597 (arm_load_acquire_exclusivedi): Likewise.
4598 (arm_store_release_exclusive<mode>): Likewise.
4599
087a99ba 46002013-03-25 Catherine Moore <clm@codesourcery.com>
4601
4602 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
4603 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
4604 * config/mip/predicates.md (lwsp_swsp_operand,
4605 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
4606 sb16_operand, db4_operand, db7_operand, ib3_operand,
4607 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
4608 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
4609 andi16_operand): New predicates.
4610 * config/mips/mips.md (compression): New attribute.
4611 (enabled): New attribute.
4612 (length): Consider compression in computing length.
4613 (shift_compression): New code attribute.
4614 (*add<mode>3): New operands. Record compression.
4615 (sub<mode>3): Likewise.
4616 (one_cmpl<mode>2): Likewise.
4617 (*and<mode>3): Likewise.
4618 (*ior<mode>3): Likewise.
4619 (unnamed pattern for xor): Likewise.
4620 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
4621 (*<optab><mode>3): Likewise.
4622 (*mov<mode>_internal: Likewise.
4623 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
4624 (mips_unsigned_immediate_p): New.
4625 (umips_lwsp_swsp_address_p): New.
4626 (m16_based_address_p): New.
4627 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
4628 (mips_unsigned_immediate_p): New prototype.
4629 (lwsp_swsp_address_p): New prototype.
4630 (m16_based_address_p): New prototype.
4631 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
4632 (mips_signed_immediate_p): New function.
4633 (m16_based_address_p): New function.
4634 (lwsp_swsp_address_p): New function.
4635 (mips_print_operand_punctuation): Recognize short delay slot insns
4636 for microMIPS.add<mode>3"
4637
2f17f336 46382013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9793b57b 4639
2f17f336 4640 PR target/56720
4641 * config/arm/iterators.md (v_cmp_result): New mode attribute.
4642 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
4643
d5459a15 46442013-03-25 Richard Biener <rguenther@suse.de>
4645
4646 PR tree-optimization/56689
4647 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
4648 any edge.
4649
feba4360 46502013-03-25 Richard Biener <rguenther@suse.de>
4651
4652 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
4653 of bitmap.
4654 (memory_references): Likewise.
4655 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
4656 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
4657 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
4658 (gather_mem_refs_in_loops): Fold into ...
4659 (analyze_memory_references): ... this. Move initialization
4660 to tree_ssa_lim_initialize.
4661 (fill_always_executed_in): Rename to ...
4662 (fill_always_executed_in_1): ... this.
4663 (fill_always_executed_in): Move contains_call computation to
4664 this new function from ...
4665 (tree_ssa_lim_initialize): ... here.
4666 (tree_ssa_lim): Call fill_always_executed_in.
4667
7777a939 46682013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4669
4670 * postreload.c (reload_combine): Fix code detecting returns.
4671
96129913 46722013-03-25 Eric Botcazou <ebotcazou@adacore.com>
4673
4674 * function.c (emit_use_return_register_into_block): On cc0 targets,
4675 do not emit the sequence between cc0 setter and user.
4676
ed5a7307 46772013-03-25 Kai Tietz <ktietz@redhat.com>
4678
96129913 4679 * config/i386/predicates.md (local_symbolic_operand): Interpret
4680 dll-imported symbols as none-local.
ed5a7307 4681
a2c22c0d 46822013-03-25 Richard Biener <rguenther@suse.de>
4683
4684 * tree-ssa-loop-im.c (struct depend): Remove.
4685 (struct lim_aux_data): Make depends a vec of gimples.
4686 (free_lim_aux_data): Adjust.
4687 (add_dependency): Likewise.
4688 (set_level): Likewise.
4689
10836fcc 46902013-03-25 Richard Biener <rguenther@suse.de>
4691
4692 PR middle-end/56434
4693 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
4694 the pointer returned by calls with ECF_MALLOC set.
4695
1d61c5cb 46962013-03-24 Uros Bizjak <ubizjak@gmail.com>
4697
83b62e99 4698 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
4699
47002013-03-24 Uros Bizjak <ubizjak@gmail.com>
4701
4702 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
1d61c5cb 4703 using MMXMODE mode iterator.
4704 (*move<mode>_internal): Merge with *movv2sf_internal and
4705 *movv2sf_internal_rex64 using MMXMODE mode iterator.
4706
690973a8 47072013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4708
37495d69 4709 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
4710 (record_last_mem_set_info): Likewise.
4711
690973a8 4712 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
4713 of XNEWVEC followed by memset.
4714 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
4715
aa90bb35 47162013-03-23 Steven Bosscher <steven@gcc.gnu.org>
4717
4718 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
4719 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
4720 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
4721 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
4722 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
4723 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
4724 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
4725 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
4726 BARRIER_P instead of GET_CODE.
4727
ada2d491 47282013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4729
4730 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
4731 inaccuracy in the probing code.
4732
4733 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
4734 (ctrapdi4): Likewise.
4735
d8ef55fc 47362013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4737
4738 * calls.c (expand_call): Add missing guard to code handling return
4739 of non-BLKmode structures in MSB.
4740 * function.c (expand_function_end): Likewise.
4741
32cf0798 47422013-03-23 Eric Botcazou <ebotcazou@adacore.com>
4743
4744 * combine.c (try_combine): Adjust comment. Do not add the set of
4745 insn #0 if the destination indirectly is set or dies in insn #2.
4746 Tidy up code to distribute a new note.
4747
dc624382 47482013-03-22 Uros Bizjak <ubizjak@gmail.com>
4749
4750 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
4751 also for alternatives 16 and 17.
4752
76cfb9fa 47532013-03-22 Uros Bizjak <ubizjak@gmail.com>
4754
4755 * config/i386/sse.md (*mov<mode>_internal): Merge with
4756 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
4757 Emit insn template depending on type attribute. Use
4758 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
4759 movd instead of movq mnemonic for interunit moves. Rewrite mode
4760 attribute calculation. Remove unit attribute calculation.
4761 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
4762 Set prefix_data16 attribute for DImode ssemov types.
4763 Use Ym instead of y for SSE-MMX conversion alternatives.
4764 Reorder operand constraints.
4765
f09c66e0 47662013-03-22 Steven Bosscher <steven@gcc.gnu.org>
4767
4768 * df.h (df_insn_delete): Adjust prototype.
4769 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
4770 and let it decide whether mark the basic block dirty.
4771 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
4772 * df-scan.c (df_insn_info_delete): New helper function, split
4773 off from df_insn_delete.
4774 (df_scan_free_bb_info): Use it.
4775 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
4776 Likewise.
4777 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
4778 that the insn is actually an insn and it has a non-NULL basic block.
4779 Do not mark basic block dirty if only deleting a DEBUG_INSN.
4780
c202575b 47812013-03-22 Richard Biener <rguenther@suse.de>
4782
4783 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
4784 dep_ref members.
4785 (mem_ref_alloc): Do not allocate them.
4786 (refs_independent_p): Do not query or maintain a cache.
4787
111767fb 47882013-03-22 Richard Biener <rguenther@suse.de>
4789
4790 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
4791 (gather_mem_refs_in_loops): Do not compute it.
4792 (analyze_memory_references): Do not allocate it.
4793 (tree_ssa_lim_finalize): Do not free it.
4794 (for_all_locs_in_loop): Do not query all_refs_in_loop.
4795
cd828e36 47962013-03-22 Richard Biener <rguenther@suse.de>
4797
4798 * is-a.h (as_a): Use gcc_checking_assert.
76cfb9fa 4799
c6ed7a1a 48002013-03-22 Ian Bolton <ian.bolton@arm.com>
4801
4802 * config/aarch64/aarch64.c (aarch64_print_operand): New
4803 format specifier for printing a constant in hex.
4804 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
4805 format specifier for printing second operand.
4806
8f9829e8 48072013-03-22 Richard Biener <rguenther@suse.de>
4808
4809 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
4810 bitmaps.
4811 (gather_mem_refs_in_loops): Perform store accumulation here.
4812 (create_vop_ref_mapping_loop): Remove.
4813 (create_vop_ref_mapping): Likewise.
4814 (analyze_memory_references): Initialize refs_stored_in_loop.
76cfb9fa 4815 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8f9829e8 4816 (record_indep_loop): Remove.
4817 (record_dep_loop): New function.
4818 (ref_indep_loop_p_1): Adjust to only walk over references
4819 in the loop, not its subloops.
4820 (ref_indep_loop_p): Rename to ...
4821 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
4822 maintaining a more fine-grained cache.
4823 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
4824 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
4825
5c8a8be3 48262013-03-22 Richard Biener <rguenther@suse.de>
4827
4828 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
4829 (struct mem_ref): Make accesses_in_loop a vec of a vec of
4830 aggregate mem_ref_loc.
4831 (free_mem_ref_locs): Inline into ...
4832 (memref_free): ... this and adjust.
4833 (mem_ref_alloc): Adjust.
4834 (mem_ref_locs_alloc): Remove.
4835 (record_mem_ref_loc): Adjust.
4836 (get_all_locs_in_loop): Rewrite into ...
4837 (for_all_locs_in_loop): ... this iterator.
4838 (rewrite_mem_ref_loc): New functor.
4839 (rewrite_mem_refs): Use for_all_locs_in_loop.
4840 (sm_set_flag_if_changed): New functor.
4841 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
4842 (ref_always_accessed): New functor.
4843 (ref_always_accessed_p): Use for_all_locs_in_loop.
4844
7c3b431d 48452013-03-21 Marc Glisse <marc.glisse@inria.fr>
4846
4847 * tree-pass.h (PROP_gimple_lvec): New.
4848 * passes.c (dump_properties): Handle PROP_gimple_lvec.
4849 (init_optimization_passes): Move pass_lower_vector.
4850 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
4851 PROP_gimple_lvec.
4852 (pass_lower_vector): Provide PROP_gimple_lvec.
4853 (pass_lower_vector_ssa): Likewise.
4854 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
4855
0b436012 48562013-03-21 Mark Wielaard <mjw@redhat.com>
4857
4858 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
4859
5c38eac8 48602013-03-21 Uros Bizjak <ubizjak@gmail.com>
4861
4862 * config/i386/i386.md (*movdi_internal): Disparage slightly
4863 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
4864 conversion alternatives.
4865
2c8b23a2 48662013-03-21 Jakub Jelinek <jakub@redhat.com>
4867
d9d1b0a4 4868 PR middle-end/48087
4869 * diagnostic.def (DK_WERROR): New kind.
4870 * diagnostic.h (werrorcount): Define.
4871 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
4872 promoted to DK_ERROR, increment DK_WERROR counter instead of
4873 DK_ERROR counter.
4874 * toplev.c (toplev_main): Call print_ignored_options even if
4875 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
4876 even if just werrorcount is non-zero.
4877
2c8b23a2 4878 PR debug/55608
4879 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
4880 on failure.
4881 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
4882 (string_cst_pool_decl): New function.
4883 (optimize_one_addr_into_implicit_ptr): New function.
4884 (resolve_addr_in_expr): Optimize DWARF location expression
4885 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
4886 which doesn't live in memory, but has DW_AT_location or
4887 DW_AT_const_value, or refers to a string literal, into
4888 DW_OP_GNU_implicit_pointer.
4889 (optimize_location_into_implicit_ptr): New function.
4890 (resolve_addr): If removing DW_AT_location of a variable because
4891 it was DW_OP_addr of address of the variable, but the variable doesn't
4892 live in memory, try to emit const value attribute for the initializer.
4893
8ee286c8 48942013-03-21 Marc Glisse <marc.glisse@inria.fr>
4895
4896 * tree.h (VECTOR_TYPE_P): New macro.
4897 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
4898 TYPE_MODE): Use it.
4899 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
4900 VEC_COND_EXPR cannot be lvalues.
4901 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
4902
d09e949c 49032013-03-21 Marc Glisse <marc.glisse@inria.fr>
4904
4905 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
4906 Restrict the transformation to equal modes.
4907
04911505 49082013-03-21 Richard Biener <rguenther@suse.de>
4909
4910 PR tree-optimization/39326
4911 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
4912 (MEM_ANALYZABLE): Adjust.
4913 (record_mem_ref_loc): Move bitmap ops ...
4914 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
4915 unanalyzable refs, do not record locations for it.
4916 (analyze_memory_references): Allocate ref zero as shared
4917 unanalyzable ref.
4918 (refs_independent_p): Do not test for unanalyzed mems here.
4919 (ref_indep_loop_p_1): Special-case disambiguation against
4920 the unanalyzed ref.
5c38eac8 4921 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
04911505 4922
b6779ddc 49232013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
4924
4925 * config/arm/arm-protos.h (tune_params): Add
4926 prefer_neon_for_64bits field.
4927 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
4928 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
4929 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
4930 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
4931 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
4932 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
4933 (arm_option_override): Handle -mneon-for-64bits new option.
4934 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
4935 (prefer_neon_for_64bits): Declare new variable.
4936 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
5c38eac8 4937 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
b6779ddc 4938 (arch_enabled): Handle new arch types. Remove support for onlya8
4939 and nota8.
4940 (one_cmpldi2): Use new arch names.
a1bd99a8 4941 (zero_extend<mode>di2, extend<mode>di2): Ditto.
b6779ddc 4942 * config/arm/arm.opt (mneon-for-64bits): Add option.
4943 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
4944 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
4945 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
4946 of onlya8.
4947 * doc/invoke.texi (-mneon-for-64bits): Document.
4948
7894a3d9 49492013-03-21 Richard Biener <rguenther@suse.de>
4950
4951 PR tree-optimization/39326
4952 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
4953 (sort_bbs_in_loop_postorder_cmp): New function.
5c38eac8 4954 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
7894a3d9 4955
68f15e9d 49562013-03-21 Richard Biener <rguenther@suse.de>
4957
4958 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
4959 (vect_insert_into_interleaving_chain): Likewise.
4960 (vect_drs_dependent_in_basic_block): Inline ...
4961 (vect_slp_analyze_data_ref_dependence): ... here. New function,
4962 split out from ...
4963 (vect_analyze_data_ref_dependence): ... here. Simplify.
4964 (vect_check_interleaving): Simplify.
4965 (vect_analyze_data_ref_dependences): Likewise. Split out ...
4966 (vect_slp_analyze_data_ref_dependences): ... this new function.
4967 (dr_group_sort_cmp): New function.
4968 (vect_analyze_data_ref_accesses): Compute data-reference groups
4969 here instead of in vect_analyze_data_ref_dependence. Use
4970 a more efficient algorithm.
4971 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
4972 vect_slp_analyze_data_ref_dependences. Call
4973 vect_analyze_data_ref_accesses earlier.
4974 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
4975 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
4976 (vect_slp_analyze_data_ref_dependences): New prototype.
4977
39f8afdf 49782013-03-21 Richard Biener <rguenther@suse.de>
4979
4980 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
4981 ref is stored in the loop.
4982 (find_refs_for_sm): Walk only over all stores.
4983 (store_motion_loop): Allocate from lim_bitmap_obstack.
4984 (store_motion): Likewise.
4985
f68f7ce8 49862013-03-21 Richard Biener <rguenther@suse.de>
4987
4988 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
4989 Update virtual SSA form.
4990
75d28287 49912013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4992
4993 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
4994 * configure: Regenerate.
4995 * config.in: Regenerate.
4996 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
4997 if !HAVE_LD_EH_FRAME_CIEV3.
4998
2428e53a 49992013-03-21 Richard Biener <rguenther@suse.de>
5000
5001 * tree-cfg.c (verify_expr_no_block): New function.
5002 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
5003 nor DECL_VALUE_EXPR have locations with associated blocks.
5004 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
5005 (clear_unused_block_pointer): Remove code dealing with
5006 blocks in DECL_DEBUG_EXPR locations.
5007
8e966116 50082013-03-21 Richard Biener <rguenther@suse.de>
5009
5010 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
5011 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
5012 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
5013 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
5014 instead of DECL_DEBUG_EXPR_IS_FROM.
5015 * gimplify.c (gimplify_modify_expr): Likewise.
5016 * tree-cfg.c (verify_expr_location_1): Likewise.
5017 * tree-complex.c (create_one_component_var): Likewise.
5018 * tree-sra.c (create_access_replacement): Likewise.
5019 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
5020 (clear_unused_block_pointer): Likewise.
5021 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
5022 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5023 * var-tracking.c (var_debug_decl): Likewise.
5024 (track_expr_p): Likewise.
5025 * tree-inline.c (add_local_variables): Likewise. Set
5026 DECL_HAS_DEBUG_EXPR_P after copying it.
5027 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
5028 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
5029
9e2820ab 50302013-03-21 Uros Bizjak <ubizjak@gmail.com>
5031
5032 PR bootstrap/56656
5033 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
5034 * configure: Regenerate.
5035 * config.in: Regenerate.
5036 * config/i386/i386.md (*movdf_internal): Use
5037 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
5038 movd instead of movq mnemonic for interunit moves.
5039 (*movdi_internal): Ditto.
5040
d0360773 50412013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
02ab8c72 5042
5043 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
5044 (abd<mode>_3): New pattern.
5045 (aba<mode>_3): New pattern.
5046 (fabd<mode>_3): New pattern.
5047
d0360773 50482013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1b457b76 5049
5050 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
5051 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
5052 occurrence of REGISTER_PREFIX as its empty string.
5053
799b7423 50542013-03-20 Jeff Law <law@redhat.com>
5055
5056 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
5057 addititional equivalences for equality comparisons between an SSA_NAME
5058 and a constant where the SSA_NAME was set from a widening conversion.
5059
4e38a95d 50602013-03-20 Walter Lee <walt@tilera.com>
5061
5062 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
5063
59ff41d8 50642013-03-20 Uros Bizjak <ubizjak@gmail.com>
5065
5066 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
5067 depending on type attribute.
5068 (*movti_internal): Ditto.
5069 (*movtf_internal): Ditto.
5070 (*movxf_internal): Ditto.
5071 (*movdf_internal): Ditto.
5072 (*movsf_internal): Ditto.
5073
7b536847 50742013-03-20 Uros Bizjak <ubizjak@gmail.com>
5075
5076 * config/i386/i386.md (*movti_internal): Set prefix attribute to
5077 maybe_vex for sselog1 and ssemov types.
5078 (*movdi_internal): Reorder operand constraints.
5079 (*movsi_internal): Ditto. Set prefix attribute to
5080 maybe_vex for sselog1 and ssemov types.
5081 (*movtf_internal): Set prefix attribute to maybe_vex
5082 for sselog1 and ssemov types.
5083 (*movdf_internal): Ditto. Set prefix_data16 attribute for
5084 DImode ssemov types. Reorder operand constraints.
5085 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
5086 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
5087 attribute for SImode ssemov types. Reorder operand constraints.
5088
3a1cb879 50892013-03-20 Martin Jambor <mjambor@suse.cz>
5090
5091 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
5092 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
5093
33a2d887 50942013-03-20 Pat Haugen <pthaugen@us.ibm.com>
5095
5096 * config/rs6000/predicates.md (indexed_address, update_address_mem
5097 update_indexed_address_mem): New predicates.
5098 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
5099 attribute for load/store instructions.
5100 * config/rs6000/dfp.md (movsd_store): Likewise.
5101 (movsd_load): Likewise.
5102 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
5103 (unnamed HI->DI extend define_insn): Likewise.
5104 (unnamed SI->DI extend define_insn): Likewise.
5105 (unnamed QI->SI extend define_insn): Likewise.
5106 (unnamed QI->HI extend define_insn): Likewise.
5107 (unnamed HI->SI extend define_insn): Likewise.
5108 (unnamed HI->SI extend define_insn): Likewise.
5109 (extendsfdf2_fpr): Likewise.
5110 (movsi_internal1): Likewise.
5111 (movsi_internal1_single): Likewise.
5112 (movhi_internal): Likewise.
5113 (movqi_internal): Likewise.
5114 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
5115 attribute for load/store instructions.
5116 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
5117 instructions.
5118 (mov<mode>_softfloat): Likewise.
5119 (mov<mode>_hardfloat32): Likewise.
5120 (mov<mode>_hardfloat64): Likewise.
5121 (mov<mode>_softfloat64): Likewise.
5122 (movdi_internal32): Likewise.
5123 (movdi_internal64): Likewise.
5124 (probe_stack_<mode>): Likewise.
5125
51262013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
5127
5128 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
5129 floating point, and decimal floating point to reload iterator.
5130
5131 * config/rs6000/constraints.md (wl constraint): New constraints to
5132 return FLOAT_REGS if certain options are used to reduce the number
5133 of separate patterns that exist in the file.
5134 (wx constraint): Likewise.
5135 (wz constraint): Likewise.
5136
5137 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5138 -mdebug=reg, print wg, wl, wx, and wz constraints.
5139 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5140 Initialize the reload functions for 64-bit binary/decimal floating
5141 point types.
5142 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5143 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5144 create the buffer on the stack to overcome not having a 32-bit
5145 load and store.
5146 (rs6000_emit_move): Likewise.
5147 (rs6000_secondary_memory_needed_rtx): Likewise.
5148 (rs6000_alloc_sdmode_stack_slot): Likewise.
5149 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5150 via xxlxor, just like DFmode 0.0.
5151
5152 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
5153 define as 1 if we are running on a power7 or newer.
5154 (enum r6000_reg_class_enum): Add new constraints.
5155
5156 * config/rs6000/dfp.md (movsd): Delete, combine with binary
5157 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5158 with other moves by using conditional constraits (wg). Use LFIWZX
d0360773 5159 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
33a2d887 5160 (movsd splitter): Likewise.
5161 (movsd_hardfloat): Likewise.
5162 (movsd_softfloat): Likewise.
5163
5164 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
5165 binary and decimal floating point moves.
5166 (fmove_ok): New attributes to combine binary and decimal floating
5167 point moves, and to combine power6x (mfpgpr) moves along normal
5168 floating moves.
5169 (real_value_to_target): Likewise.
5170 (f32_lr): Likewise.
5171 (f32_lm): Likewise.
5172 (f32_li): Likewise.
5173 (f32_sr): Likewise.
5174 (f32_sm): Likewise.
5175 (f32_si): Likewise.
5176 (movsf): Combine binary and decimal floating point moves. Combine
5177 power6x (mfpgpr) moves with other moves by using conditional
d0360773 5178 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
33a2d887 5179 (mov<mode> for SFmode/SDmode); Likewise.
5180 (SFmode/SDmode splitters): Likewise.
5181 (movsf_hardfloat): Likewise.
5182 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
5183 (movsf_softfloat): Likewise.
5184 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
5185
5186 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
5187 wx and wz constraints.
5188
5189 * config/rs6000/constraints.md (wg constraint): New constraint to
5190 return FLOAT_REGS if -mmfpgpr (power6x) was used.
5191
5192 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
5193 constraint.
5194
5195 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
5196 -mdebug=reg, print wg, wl, wx, and wz constraints.
5197 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
5198 Initialize the reload functions for 64-bit binary/decimal floating
5199 point types.
5200 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
5201 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
5202 create the buffer on the stack to overcome not having a 32-bit
5203 load and store.
5204 (rs6000_emit_move): Likewise.
5205 (rs6000_secondary_memory_needed_rtx): Likewise.
5206 (rs6000_alloc_sdmode_stack_slot): Likewise.
5207 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
5208 via xxlxor, just like DFmode 0.0.
5209
33a2d887 5210 * config/rs6000/dfp.md (movdd): Delete, combine with binary
5211 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
5212 with other moves by using conditional constraits (wg). Use LFIWZX
5213 and STFIWX for loading SDmode on power7.
5214 (movdd splitters): Likewise.
5215 (movdd_hardfloat32): Likewise.
5216 (movdd_softfloat32): Likewise.
5217 (movdd_hardfloat64_mfpgpr): Likewise.
5218 (movdd_hardfloat64): Likewise.
5219 (movdd_softfloat64): Likewise.
5220
5221 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
5222 64-bit binary and decimal floating point moves.
5223 (FMOVE64X): Likewise.
5224 (movdf): Combine 64-bit binary and decimal floating point moves.
5225 Combine power6x (mfpgpr) moves with other moves by using
5226 conditional constraits (wg).
5227 (mov<mode> for DFmode/DDmode): Likewise.
5228 (DFmode/DDmode splitters): Likewise.
5229 (movdf_hardfloat32): Likewise.
5230 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
5231 (movdf_softfloat32): Likewise.
5232 (movdf_hardfloat64_mfpgpr): Likewise.
5233 (movdf_hardfloat64): Likewise.
5234 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
5235 (movdf_softfloat64): Likewise.
5236 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
5237 (reload_<mode>_load): Move to later in the file so they aren't in
5238 the middle of the floating point move insns.
5239 (reload_<mode>_store): Likewise.
5240
5241 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
5242 constraint.
5243
5244 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
5245 constraint if -mdebug=reg.
d0360773 5246 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
5247 Enable using dd reload support if needed.
33a2d887 5248
5249 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
5250 binary and decimal floating point moves in rs6000.md.
5251 (movtd_internal): Likewise.
5252
5253 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
5254 decimal floating point moves.
5255 (movtf): Likewise.
5256 (movtf_internal): Likewise.
5257 (mov<mode>_internal, TDmode/TFmode): Likewise.
5258 (movtf_softfloat): Likewise.
5259 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
5260
5261 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
5262 movdi_internal64, using wg constraint for move direct operations.
5263 (movdi_internal64): Likewise.
5264
5265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
5266 MODES_TIEABLE_P for selected modes. Print the numerical value of
5267 the various virtual registers. Use GPR/FPR first/last values,
5268 instead of hard coding the register numbers. Print which modes
5269 have reload functions registered.
d0360773 5270 (rs6000_option_override_internal): If -mdebug=reg, trace the options
5271 settings before/after setting cpu, target and subtarget settings.
5272 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
5273 and for secondary reload failures in rs6000_secondary_reload_inner.
33a2d887 5274 (rs6000_secondary_reload_fail): Likewise.
5275 (rs6000_secondary_reload_inner): Likewise.
5276
5277 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
5278 macros for first/last GPR and FPR registers.
5279 (LAST_GPR_REGNO): Likewise.
5280 (FIRST_FPR_REGNO): Likewise.
5281 (LAST_FPR_REGNO): Likewise.
5282
5283 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
5284 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
5285 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
5286 (vcond<mode><mode>): Likewise.
5287 (vcondu<mode><mode>): Likewise.
5288 (vector_gtu<mode>): Likewise.
5289 (vector_gte<mode>): Likewise.
5290 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
d0360773 5291 to prevent the compiler from converting DImode operations to TImode.
33a2d887 5292 (ior<mode>3): Likewise.
5293 (and<mode>3): Likewise.
5294 (one_cmpl<mode>2): Likewise.
5295 (nor<mode>3): Likewise.
5296 (andc<mode>3): Likewise.
5297
5298 * config/rs6000/constraints.md (wt constraint): New constraint
5299 that returns VSX_REGS if TImode is allowed in VSX registers.
5300
5301 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
5302 constant under VSX.
5303
5304 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
5305 similar to TImode, but it is restricted to being in the GPRs.
5306
5307 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
5308 TImode to occupy a single VSX register.
5309
5310 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
5311 -mvsx-timode for power7/power8.
5312 (power7 cpu): Likewise.
5313 (power8 cpu): Likewise.
5314
5315 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
5316 sure that TFmode/TDmode take up two registers if they are ever
5317 allowed in the upper VSX registers.
5318 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
5319 registers.
5320 (rs6000_init_hard_regno_mode_ok): Likewise.
5321 (rs6000_debug_reg_global): Add debugging for PTImode and wt
5322 constraint. Print if LRA is turned on.
5323 (rs6000_option_override_internal): Give an error if -mvsx-timode
5324 and VSX is not enabled.
5325 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
5326 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
5327 to reg+offset addressing. Use PTImode when checking offset
5328 addresses for validity.
5329 (reg_offset_addressing_ok_p): Likewise.
5330 (rs6000_legitimate_offset_address_p): Likewise.
5331 (rs6000_legitimize_address): Likewise.
5332 (rs6000_legitimize_reload_address): Likewise.
5333 (rs6000_legitimate_address_p): Likewise.
5334 (rs6000_eliminate_indexed_memrefs): Likewise.
5335 (rs6000_emit_move): Likewise.
5336 (rs6000_secondary_reload): Likewise.
5337 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
5338 reloads to fpr registers to continue to use reg+offset addressing,
5339 but 64-bit reloads to altivec registers need reg+reg addressing.
5340 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
5341 it. Treat LO_SUM like a PLUS operation.
5342 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
d0360773 5343 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
33a2d887 5344 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
5345 registers to share a register with a smaller sized type, since VSX
5346 puts scalars in the upper 64-bits.
5347 (print_operand): Add support for PTImode.
5348 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
5349 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
5350 registers, but don't have arithmetic support.
5351 (rs6000_memory_move_cost): Add test for VSX.
5352 (rs6000_opt_masks): Add -mvsx-timode.
5353
5354 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
5355 for TImode.
5356 (VSs): Likewise.
5357 (VSr): Use wt constraint for TImode.
5358 (VSv): Drop TImode support.
5359 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
5360 (vsx_movti_64bit): Likewise.
5361 (vsx_movti_32bit): Likewise.
5362 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
5363 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
5364 one '?' on the appropriate output constraint. Do not allow TImode
5365 logical operations on 32-bit systems.
5366 (vsx_ior<mode>3): Likewise.
5367 (vsx_xor<mode>3): Likewise.
5368 (vsx_one_cmpl<mode>2): Likewise.
5369 (vsx_nor<mode>3): Likewise.
5370 (vsx_andc<mode>3): Likewise.
5371 (vsx_concat_<mode>): Likewise.
5372 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
5373
5374 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
5375 OPTION_MASK_VSX_TIMODE.
5376 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
5377 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
5378
5379 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
5380 (TI2 iterator): New iterator for TImode, PTImode.
5381 (wd mode attribute): Add values for vector types.
d0360773 5382 (movti_string): Replace TI move operations with operations for TImode
5383 and PTImode. Add support for TImode being allowed in VSX registers.
33a2d887 5384 (mov<mode>_string, TImode/PTImode): Likewise.
5385 (movti_ppc64): Likewise.
5386 (mov<mode>_ppc64, TImode/PTImode): Likewise.
5387 (TI mode splitters): Likewise.
5388
5389 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
5390 constraint.
5391
a9073c2f 53922013-03-20 Marc Glisse <marc.glisse@inria.fr>
5393
5394 PR tree-optimization/56355
5395 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
5396 Also handle integers with undefined overflow.
5397
ff9c1bc1 53982013-03-20 Catherine Moore <clm@codesourcery.com>
5399 Maciej W. Rozycki <macro@codesourcery.com>
5400 Tom de Vries <tom@codesourcery.com>
5401 Nathan Sidwell <nathan@codesourcery.com>
5402 Iain Sandoe <iain@codesourcery.com>
5403 Nathan Froyd <froydnj@codesourcery.com>
5404 Chao-ying Fu <fu@mips.com>
5405
5406 * doc/extend.texi: (micromips, nomicromips, nocompression):
7b536847 5407 Document new function attributes.
ff9c1bc1 5408 * doc/invoke.texi (minterlink-compressed, mmicromips,
5409 m14k, m14ke, m14kec): Document new options.
5410 (minterlink-mips16): Update documentation.
5411 * doc/md.texi (ZC, ZD): Document new constraints.
5412 * configure.ac (gcc_cv_as_micromips): Check if linker
5413 supports the .set micromips directive.
5414 * configure: Regenerate.
5415 * config.in: Regenerate.
5416 * config/mips/mips-tables.opt: Regenerate.
5417 * config/mips/micromips.md: New file.
5418 * constraints.md (ZC, ZD): New constraints.
5419 * config/mips/predicates.md (movep_src_register): New predicate.
5420 (movep_src_operand): New predicate.
5421 (non_volatile_mem_operand): New predicate.
5422 * config/mips/mips.md (multimem): New type.
5423 (length): Differentiate between 17-bit and 18-bit branch offsets.
5424 (MOVEP1, MOVEP2): New mode iterator.
8f028904 5425 (mov_<load>l): Use ZC constraint.
ff9c1bc1 5426 (mov_<load>r): Likewise.
5427 (mov_<store>l): Likewise.
5428 (mov_<store>r): Likewise.
5429 (*branch_equality<mode>_inverted): Add microMIPS support.
5430 (*branch_equality<mode>): Likewise.
5431 (*jump_absolute): Likewise.
5432 (indirect_jump_<mode>): Likewise.
5433 (tablejump_<mode>): Likewise.
5434 (<optab>_internal): Likewise.
5435 (sibcall_internal): Likewise.
5436 (sibcall_value_internal): Likewise.
5437 (prefetch): Use constraint ZD.
5438 * config/mips/mips.opt (minterlink-compressed): New option.
5439 (minterlink-mips16): Now an alias for minterlink-compressed.
5440 (mmicromips): New option.
5441 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5442 (compare_and_swap_12): Likewise.
5443 (sync_add<mode>): Likewise.
5444 (sync_<optab>_12): Likewise.
5445 (sync_old_<optab>_12): Likewise.
5446 (sync_new_<optab>_12): Likewise.
5447 (sync_nand_12): Likewise.
5448 (sync_old_nand_12): Likewise.
5449 (sync_new_nand_12): Likewise.
5450 (sync_sub<mode>): Likewise.
5451 (sync_old_add<mode>): Likewise.
5452 (sync_old_sub<mode>): Likewise.
5453 (sync_new_add<mode>): Likewise.
5454 (sync_new_sub<mode>): Likewise.
5455 (sync_<optab><mode>): Likewise.
5456 (sync_old_<optab><mode>): Likewise.
5457 (sync_new_<optab><mode>): Likewise.
5458 (sync_nand<mode>): Likewise.
5459 (sync_old_nand<mode>): Likewise.
5460 (sync_new_nand<mode>): Likewise.
5461 (sync_lock_test_and_set<mode>): Likewise.
5462 (test_and_set_12): Likewise.
5463 (atomic_compare_and_swap<mode>): Likewise.
5464 (atomic_exchange<mode>_llsc): Likewise.
5465 (atomic_fetch_add<mode>_llsc): Likewise.
5466 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5467 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5468 (umips_save_restore_pattern_p): Likewise.
5469 (umips_load_store_pair_p): Likewise.
5470 (umips_output_load_store_pair): Likewise.
5471 (umips_movep_target_p): Likewise.
5472 (umips_12bit_offset_address_p): Likewise.
5473 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5474 (mips_base_mips16): Rename this...
5475 (mips_base_compression_flags): ...to this. Update all uses.
5476 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5477 (mips_mips16_decl_p): Delete.
5478 (mips_nomips16_decl_p): Delete.
8f028904 5479 (mips_get_compress_on_flags): New function.
ff9c1bc1 5480 (mips_get_compress_off_flags): New function.
5481 (mips_get_compress_mode): New function.
5482 (mips_get_compress_on_name): New function.
5483 (mips_get_compress_off_name): New function.
5484 (mips_insert_attributes): Support multiple compression types.
5485 (mips_merge_decl_attributes): Likewise.
5486 (umips_12bit_offset_address_p): New function.
5487 (mips_start_function_definition): Emit .set micromips directive.
5488 (mips_call_may_need_jalx_p): New function.
5489 (mips_function_ok_for_sibcall): Add microMIPS support.
5490 (mips_print_operand_punctuation): Support short delay slots and
5491 compact jumps.
5492 (umips_swm_mask, umips_swm_encoding): New.
5493 (umips_build_save_restore): New function.
5494 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5495 (was_mips16_p): Remove.
5496 (old_compression_mode): New.
5497 (mips_set_compression_mode): New function.
5498 (mips_set_current_function): Add microMIPS support.
5499 (mips_option_override): Likewise.
5500 (umips_save_restore_pattern_p): New function.
5501 (umips_output_save_restore): New function.
5502 (umips_load_store_pair_p_1): New function.
5503 (umips_load_store_pair_p): New function.
5504 (umips_output_load_store_pair_1): New function.
5505 (umips_output_load_store_pair): New function.
5506 (umips_movep_target_p) New function.
5507 (mips_prepare_pch_save): Add microMIPS support.
5508 * config/mips/mips.h (TARGET_COMPRESSION): New.
5509 (TARGET_CPU_CPP_BUILTINS): Update macro
5510 to use new compression flags and to support microMIPS.
5511 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5512 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5513 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5514 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5515 (ASM_SPEC): Support mmicromips and mno-micromips.
5516 (M16STORE_REG_P): New macro.
5517 (MIPS_CALL): Support TARGET_MICROMIPS.
5518 (MICROMIPS_J): New macro.
5519 (mips_base_mips16): Rename this...
5520 (mips_base_compression_flags): ...to this.
5521 (UMIPS_12BIT_OFFSET_P): New macro.
5522 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5523 (MULTILIB_DIRNAMES): Likewise.
affbda71 55242013-03-20 Richard Biener <rguenther@suse.de>
5525
5526 PR tree-optimization/56661
5527 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
5528 the result does not have to be distinct.
5529
b94b4cf4 55302013-03-20 Richard Biener <rguenther@suse.de>
5531
5532 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
5533 remap_gimple_op_r.
5534
a6d46489 55352013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5536 Steven Bosscher <steven@gcc.gnu.org>
5537
5538 PR rtl-optimization/56605
5539 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
5540
76468b73 55412013-03-20 Uros Bizjak <ubizjak@gmail.com>
5542
5543 PR bootstrap/56656
5544 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
5545 that require movd instead of movq.
5546
5a950977 55472013-03-20 Richard Biener <rguenther@suse.de>
5548
5549 * tree-ssa-structalias.c (struct variable_info): Add pointer
5550 to the first field of an aggregate with sub-vars. Make
5551 this and the pointer to the next subfield its ID.
5552 (vi_next): New function.
5553 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
5554 storedanything_id, integer_id): Increment by one.
5555 (new_var_info, get_call_vi, lookup_call_clobber_vi,
5556 get_call_clobber_vi): Adjust.
5557 (solution_set_expand): Simplify and speedup.
5558 (solution_set_add): Inline into ...
5559 (set_union_with_increment): ... this. Adjust accordingly.
5560 (do_sd_constraint): Likewise.
5561 (do_ds_constraint): Likewise.
5562 (do_complex_constraint): Simplify.
5563 (build_pred_graph): Adjust.
5564 (solve_graph): Likewise. Simplify and speedup.
5565 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
5566 get_constraint_for_component_ref, get_constraint_for_1,
5567 first_vi_for_offset, first_or_preceding_vi_for_offset,
5568 create_function_info_for, create_variable_info_for_1,
5569 create_variable_info_for, intra_create_variable_infos): Adjust.
5570 (init_base_vars): Push NULL for ID zero.
5571 (compute_points_to_sets): Adjust.
5572
cd9916a9 55732013-03-20 Richard Biener <rguenther@suse.de>
5574
5575 * cfgloop.c (verify_loop_structure): Streamline and avoid
5576 ICEing on corrupt loop tree.
5577 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
5578 loop tree.
5579
3767bd95 55802013-03-20 Richard Biener <rguenther@suse.de>
5581
5582 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
5583 check whether an SSA update is needed.
5584
ac721588 55852013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
5586
5587 * config/mips/constraints.md (T): Rename to...
5588 (Yf): ...this.
5589 (U): Rename to...
5590 (Yd): ...this.
5591 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
5592 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
5593
00f5db85 55942013-03-19 Ian Bolton <ian.bolton@arm.com>
5595
5596 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
5597 (*subsi3_carryin_uxtw): Likewise.
5598
4d83c223 55992013-03-19 Ian Bolton <ian.bolton@arm.com>
5600
5601 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
5602 (*rorsi3_insn_uxtw): Likewise.
5603
45244f9b 56042013-03-19 Ian Bolton <ian.bolton@arm.com>
5605
5606 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
5607 (*extrsi5_insn_uxtw): Likewise.
5608
0df18bd2 56092013-03-19 Richard Biener <rguenther@suse.de>
5610
5611 PR tree-optimization/56273
5612 * passes.c (init_optimization_passes): Move second VRP after DOM.
5613
4c5ef8d5 56142013-03-19 Uros Bizjak <ubizjak@gmail.com>
5615
5616 * config/i386/i386.md (*movti_internal): Merge from
5617 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
5618 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
5619 nox64 isa attributes.
5620
6a5ca1fc 56212013-03-18 Richard Biener <rguenther@suse.de>
5622
5623 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
5624 (unite): Likewise.
5625 (merge_node_constraints): Likewise.
5626 (build_succ_graph): Likewise.
5627 (valid_graph_edge): Inline into single caller.
5628 (unify_nodes): Likewise. Use bitmap_set_bit return value
5629 and cache varinfo.
5630 (scc_visit): Fix formatting and variable use.
5631 (do_sd_constraint): Use gcc_checking_assert.
5632 (do_ds_constraint): Likewise.
5633 (do_complex_constraint): Likewise.
5634 (condense_visit): Likewise. Cleanup.
5635 (dump_pred_graph): New function.
5636 (perform_var_substitution): Dump the pred-graph before
5637 variable substitution.
5638 (find_equivalent_node): Use gcc_checking_assert.
5639 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
5640
90d4c4af 56412013-03-18 Richard Biener <rguenther@suse.de>
5642
5643 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5644 Remove cond_expr_stmt_list argument and do not gimplify the
5645 built expression.
5646 (vect_loop_versioning): Adjust.
5647 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5648 Cleanup to use less temporaries.
5649 (vect_create_data_ref_ptr): Cleanup.
5650
70347500 56512013-03-18 Jakub Jelinek <jakub@redhat.com>
5652
5653 PR tree-optimization/56635
5654 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
5655 require types_compatible_p types.
5656
23ecf105 56572013-03-18 Nick Clifton <nickc@redhat.com>
5658
c694a5cd 5659 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
5660 spurious backslash.
5661
23ecf105 5662 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
5663 Add missing line to comment describing function.
5664
4953672f 56652013-03-18 Richard Biener <rguenther@suse.de>
5666
5667 PR tree-optimization/56210
5668 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5669 Handle string / character search functions.
5670 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5671
9532a315 56722013-03-18 Richard Biener <rguenther@suse.de>
5673
5674 PR middle-end/56483
5675 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
5676 and implement properly.
5677 * gimple.h (gimple_cond_single_var_p): Remove.
5678
07e3bcbf 56792013-03-18 Richard Biener <rguenther@suse.de>
5680
5681 * tree-data-ref.h (find_data_references_in_loop): Declare.
5682 * tree-data-ref.c (get_references_in_stmt): Use a stack
5683 vector pre-allocated in the callers.
5684 (find_data_references_in_stmt): Adjust.
5685 (graphite_find_data_references_in_stmt): Likewise.
5686 (create_rdg_vertices): Likewise.
5687 (find_data_references_in_loop): Export.
5688 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
5689 Compute dependences here...
5690 (vect_analyze_data_refs): ...not here. When we encounter
5691 a non-vectorizable data reference in basic-block vectorization
5692 truncate the data reference vector. Do not bother to
5693 fixup data-dependence information for gather loads.
5694 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
5695 of data references, as reported.
5696
cc99c1e1 56972013-03-18 Richard Biener <rguenther@suse.de>
5698
5699 PR tree-optimization/3713
5700 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
5701 has_constants and expr.
5702 (stmt_has_constants): Properly valueize SSA names when deciding
5703 whether the stmt has constants.
5704
f55f91f5 57052013-03-18 Richard Biener <rguenther@suse.de>
5706
5707 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
5708 whole function when there is nothing to do.
5709 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
5710 * tree-vectorizer.c (vectorize_loops): Update virtual and
5711 loop-closed SSA once.
5712 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
5713
0da53361 57142013-03-18 Richard Biener <rguenther@suse.de>
5715
5716 PR middle-end/56113
5717 * domwalk.c (bb_postorder): New global static.
5718 (cmp_bb_postorder): New function.
5719 (walk_dominator_tree): Replace scheme imposing an order for
5720 visiting dominator sons by one sorting them at the time they
5721 are pushed on the stack.
5722
09f4cf62 57232013-03-18 Richard Biener <rguenther@suse.de>
5724
5725 PR tree-optimization/39326
5726 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
5727 (struct mem_ref): Replace mem member with ao_ref typed member.
5728 (MEM_ANALYZABLE): Adjust.
5729 (memref_eq): Likewise.
5730 (mem_ref_alloc): Likewise.
5731 (gather_mem_refs_stmt): Likewise.
5732 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
5733 (execute_sm_if_changed_flag_set): Adjust.
5734 (execute_sm): Likewise.
5735 (ref_always_accessed_p): Likewise.
5736 (refs_independent_p): Likewise.
5737 (can_sm_ref_p): Likewise.
5738
800469aa 57392013-03-18 Jakub Jelinek <jakub@redhat.com>
5740
5741 PR c/56566
5742 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
5743 return 1 even for !unsignedp.
5744
099188cb 57452013-03-17 Uros Bizjak <ubizjak@gmail.com>
5746
5747 * config/i386/i386.md (isa): Add x64 and nox64.
5748 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
5749 (*pushtf): Enable *roF alternative for x64 isa only.
5750 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
5751 mode attribute of integer alternatives to DImode for TARGET_64BIT.
5752 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
5753 (*movtf_internal): Merge from *movtf_internal_rex64 and
5754 *movtf_internal_sse. Use x64 and nox64 isa attributes.
5755 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
5756 nox64 isa attributes.
5757 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
5758 nox64 isa attributes.
5759 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
5760
862c63eb 57612013-03-17 Uros Bizjak <ubizjak@gmail.com>
5762
5763 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5764
595169d8 57652013-03-17 Jakub Jelinek <jakub@redhat.com>
5766
5767 PR target/56640
5768 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
5769 class names. Remove trailing comma after "ALL_REGS".
5770
7d52f1a3 57712013-03-16 Jan Hubicka <jh@suse.cz>
5772
5773 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
5774 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
5775 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
5776 of cgraph_get_create_node.
5777 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5778
48adf3f3 57792013-03-16 Jason Merrill <jason@redhat.com>
5780
5781 PR debug/49090
5782 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
5783 with DW_AT_default_value.
5784
67f9d821 57852013-03-16 Jakub Jelinek <jakub@redhat.com>
5786
5787 * BASE-VER: Set to 4.9.0.
5788
34e2916a 57892013-03-14 Andi Kleen <ak@linux.intel.com>
5790
5791 PR target/56619
5792 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
5793 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
5794 Document _x* TSX intrinsics.
5795
5e5f9379 57962013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
5797 David Holsgrove <david.holsgrove@xilinx.com>
4eae25aa 5798
5799 * configure.ac: Add MicroBlaze TLS support detection.
5800 * configure: Regenerate.
862c63eb 5801 * config/microblaze/microblaze-protos.h
5802 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
5803 symbol_mentioned_p, label_mentioned_p): Add prototypes.
5804 * config/microblaze/microblaze.c (microblaze_address_type): Add
5805 ADDRESS_TLS and tls_reloc address types.
4eae25aa 5806 (microblaze_address_info): Add tls_reloc.
5807 (TARGET_HAVE_TLS): Define.
5808 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
5809 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
862c63eb 5810 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
5811 load_tls_operand, microblaze_call_tls_get_addr,
5812 microblaze_legitimize_tls_address): New functions.
4eae25aa 5813 (microblaze_classify_unspec): Handle UNSPEC_TLS.
5814 (get_base_reg): Use microblaze_tls_symbol_p.
5815 (microblaze_classify_address): Handle TLS.
862c63eb 5816 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
5817 label_mentioned_p and microblaze_tls_referenced_p.
4eae25aa 5818 (microblaze_legitimize_address): Handle TLS.
5819 (microblaze_address_insns): Handle ADDRESS_TLS.
5820 (pic_address_needs_scratch): Handle TLS.
5821 (print_operand_address): Handle TLS.
5822 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
5823 (microblaze_expand_move): Handle TLS.
862c63eb 5824 (microblaze_legitimate_constant_p): Check
5825 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4eae25aa 5826 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
5827 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
5828 (PIC_OFFSET_TABLE_REGNUM): Set.
5829 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
5830 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
5831 (addsi3, movsi_internal2, movdf_internal): Update constraints
5832 * config/microblaze/predicates.md (arith_plus_operand): Define
862c63eb 5833 (move_operand): Redefine as move_src_operand,
5834 check microblaze_tls_referenced_p.
4eae25aa 5835
341c5ffb 58362013-03-14 Ian Bolton <ian.bolton@arm.com>
5837
5838 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
5839 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
5840
34cf9362 58412013-03-14 Ian Bolton <ian.bolton@arm.com>
5842
5843 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
5844 CC mode for AND.
5845
fc162120 58462013-03-14 Jakub Jelinek <jakub@redhat.com>
5847
228bf2b8 5848 PR tree-optimization/53265
5849 * common.opt (Waggressive-loop-optimizations): New option.
5850 * tree-ssa-loop-niter.c: Include tree-pass.h.
5851 (do_warn_aggressive_loop_optimizations): New function.
5852 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
5853 if number_of_latch_executions returned constant.
5854 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
5855 early. If number_of_latch_executions returned constant, set
5856 nb_iterations_upper_bound back to it.
5857 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
5858 field.
5859 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
5860 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
5861
fc162120 5862 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
5863 (MULTILIB_OSDIRNAMES): Set.
5864 * genmultilib: If defaultosdirname doesn't start with :: , set
5865 defaultosdirname2 instead, clear it and emit two . multilib_raw
5866 entries instead of just one.
5867
ae979f32 58682013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
5869
5870 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5871 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
5872 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
5873 (SUBTARGET_OVERRIDE_OPTIONS): New.
5874
bb057878 58752013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
5876
5877 PR target/49880
5878 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
5879 (musermode): Convert to Var(TARGET_USERMODE).
5880 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
5881 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
5882 * config/sh/sh.c (sh_option_override): Use
5883 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
5884 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
5885 condition.
5886 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
5887 TARGET_SH4.
5888 (udivsi3_i4_single, divsi3_i4_single): Use
5889 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
5890
cfdddc4b 58912013-03-13 Dave Korn <dave.korn.cygwin@....>
5892
5893 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
5894 default setting.
5895
814c4f66 58962013-03-13 Richard Biener <rguenther@suse.de>
5897
5898 PR tree-optimization/56608
5899 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
5900 calls when vectorizing basic-blocks.
5901
043cabe3 59022013-03-13 Jakub Jelinek <jakub@redhat.com>
5903
5904 PR plugins/45078
5905 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
5906 tm_file.
5907
1e93bc00 59082013-03-12 Jakub Jelinek <jakub@redhat.com>
5909
5910 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
5911
344cbf0a 59122013-03-11 Jan Hubicka <jh@suse.cz>
5913
5914 PR lto/56557
5915 * lto-streamer-out.c (output_symbol_p): Skip references from
5916 constructors of external variables.
5917
b291008a 59182013-03-11 Jan Hubicka <jh@suse.cz>
5919
5920 PR middle-end/56571
5921 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
5922 from pseudos.
5923 * emit-rtl.c (verify_rtx_sharing): Likewise.
5924 (copy_insn_1): Likewise.
5925 * rtl.c (copy_rtx): Likewise.
5926
803e7ca1 59272013-03-11 Georg-Johann Lay <avr@gjlay.de>
5928
5929 PR target/56591
5930 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
5931 output_operand_lossage message.
862c63eb 5932
f8825f5d 59332013-03-11 Richard Earnshaw <rearnsha@arm.com>
5934
5935 PR target/56470
5936 * arm.c (shift_op): Validate RTL pattern on the fly.
5937 (arm_print_operand, case 'S'): Don't use shift_operator to validate
5938 the RTL.
5939
a1fcab4c 59402013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5941
5942 PR target/56347
5943 * config/pa/pa.md (call_value): Check for calls to powf and direct to
5944 new call patterns that clobber %fr12.
5945 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
5946 split and postreload patterns.
5947 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
5948 registers %fr12 and %fr12R as call used.
5949
1ca59310 59502013-03-09 Steven Bosscher <steven@gcc.gnu.org>
5951
5952 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
5953 (canon_address, record_store, replace_read, check_mem_read_rtx,
5954 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
5955 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
5956 rest_of_handle_dse): Likewise.
5957
9d3fa937 59582013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
5959
5960 PR middle-end/56524
5961 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
5962 Add base_optabs.
5963 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
5964 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
5965 (save_optabs_if_changed): Replace with...
5966 (init_tree_optimization_optabs): ...this.
5967 * optabs.c (save_optabs_if_changed): Rename to...
5968 (init_tree_optimization_optabs): ...this. Take the optimization node
5969 as argument. Do nothing if the base optabs are already correct.
5970 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
5971 to recompute optabs.
5972 * function.h (function): Remove optabs field.
5973 * function.c (invoke_set_current_function_hook): Call
5974 init_tree_optimization_optabs. Use the result to initialize
5975 this_fn_optabs.
5976
1910089e 59772013-02-27 Aldy Hernandez <aldyh@redhat.com>
5978
5979 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
5980 if GTMA_HAS_NO_INSTRUMENTATION.
5981 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
5982 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
5983 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
5984 * gimple-pretty-print.c (dump_gimple_transaction): Handle
5985 GTMA_HAS_NO_INSTRUMENTATION.
5986
62efcea5 59872013-03-08 Jakub Jelinek <jakub@redhat.com>
5988
5989 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
5990 libasan_preinit.o.
5991
b3269f54 59922013-03-08 Marek Polacek <polacek@redhat.com>
5993 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR tree-optimization/56478
5996 * predict.c (is_comparison_with_loop_invariant_p): Change the
5997 type of loop_step to tree.
5998 (predict_loops): Adjust.
5999 (predict_iv_comparison): Perform the computations on double_ints.
6000
4c04afc7 60012013-03-08 Richard Biener <rguenther@suse.de>
6002
6003 PR tree-optimization/56570
6004 * tree-cfg.c (verify_expr_location_1): Verify locations for
6005 DECL_DEBUG_EXPR.
6006 * tree-sra.c (create_access_replacement): Strip locations
6007 from DECL_DEBUG_EXPRs.
6008
dc426203 60092013-03-08 Richard Biener <rguenther@suse.de>
6010
6011 * tree-inline.c (expand_call_inline): Do not associate
6012 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
6013 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
6014
58fd1738 60152013-03-08 Richard Biener <rguenther@suse.de>
6016
6017 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
6018 or block changes with -Og. Fix for location / block encoding
6019 changes and PHI arguments with locations.
6020
28d3effc 60212013-03-07 Steven Bosscher <steven@gcc.gnu.org>
6022
6023 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
6024 for all counters.
6025 (struct output_info): Likewise.
6026 (register_overhead): Remove bad gcc_assert.
6027 (bitmap_find_bit): If there is only a single bitmap element, do not
6028 count a miss as a search.
6029 (print_statistics): Update for counter type changes.
6030 (dump_bitmap_statistics): Likewise. Print headers such that they
6031 are properly lined up with the printed counters.
6032
bdb5a35a 60332013-03-07 Jakub Jelinek <jakub@redhat.com>
6034
6035 PR tree-optimization/56559
6036 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
6037 check that it has only a single use.
6038
f7961441 60392013-03-07 Richard Biener <rguenther@suse.de>
6040
6041 * doc/invoke.texi (fwhole-program): Discourage use in combination
6042 with -flto.
6043
31c66114 60442013-03-06 Jakub Jelinek <jakub@redhat.com>
6045
23910ff9 6046 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
6047
f5c4bbcd 6048 PR tree-optimization/56539
6049 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
6050 instead of GSI_CONTINUE_LINKING as last argument to
6051 force_gimple_operand_gsi. Adjust function comment.
6052
48ff81f3 6053 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
6054 aarch64-cores.def.
6055
31c66114 6056 PR middle-end/56548
6057 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
6058 promoted mode, convert the result back to the original mode.
6059
487c79c3 60602013-03-06 Richard Biener <rguenther@suse.de>
6061
6062 PR middle-end/56294
6063 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
6064 (insert_updated_phi_nodes_compare_uids): New function.
6065 (update_ssa): Sort symbols_to_rename after UID before
6066 traversing it to insert PHI nodes.
6067
90a674eb 60682013-03-06 Richard Biener <rguenther@suse.de>
6069
6070 PR middle-end/50494
6071 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
6072 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
6073
6074 Revert
6075 2013-02-13 Richard Biener <rguenther@suse.de>
6076
6077 PR lto/50494
6078 * varasm.c (output_constant_def_1): Get the decl representing
6079 the constant as argument.
6080 (output_constant_def): Wrap output_constant_def_1.
6081 (make_decl_rtl): Use output_constant_def_1 with the decl
6082 representing the constant.
6083 (build_constant_desc): Optionally re-use a decl already
6084 representing the constant.
6085 (tree_output_constant_def): Adjust.
6086
40c059b1 60872013-03-06 Joey Ye <joey.ye@arm.com>
6088
6089 PR lto/50293
6090 * gcc.c (convert_white_space): New function.
6091 (main): Handles white space in function name.
6092
9fe603c3 60932013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
6094
6095 PR target/56529
6096 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
6097 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
6098 to SH_DIV_CALL_TABLE for TARGET_SH2.
6099 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
6100 list.
6101 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
6102 call-table options.
6103
24a5ae15 61042013-03-05 Sterling Augustine <saugustine@google.com>
6105 Cary Coutant <ccoutant@google.com>
6106
6107 PR debug/55364
6108 * dwarf2out.c (resolve_addr): Don't call
6109 remove_loc_list_addr_table_entries a second time for the same
6110 expression.
6111
848d0536 61122013-03-05 Jakub Jelinek <jakub@redhat.com>
d9c1b601 6113
848d0536 6114 PR debug/56510
6115 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
6116 (avoid_complex_debug_insns): New function.
6117 (expand_debug_locations): Call it.
6118
6119 PR rtl-optimization/56484
6120 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
6121 lifetimes of hard registers on small register class machines.
6122
61232013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
6124
6125 * config/microblaze/microblaze-protos.h: Rename
d9c1b601 6126 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
848d0536 6127 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
d9c1b601 6128 fast_interrupt.
6129 (microblaze_fast_interrupt_function_p): New function.
6130 (microblaze_is_interrupt_handler): Rename to
6131 microblaze_is_interrupt_variant and add fast_interrupt check.
6132 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
6133 (save_restore_insns): Likewise.
6134 (compute_frame_size): Likewise.
6135 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
6136 (microblaze_globalize_label): Likewise.
848d0536 6137 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
6138 * config/microblaze/microblaze.md: Use wrapper
d9c1b601 6139 microblaze_is_interrupt_variant.
6140
d641a4ab 61412013-03-05 Kai Tietz <ktietz@redhat.com>
6142
6143 * sdbout.c (sdbout_one_type): Switch to current function's section
6144 supporting cold/hot.
6145
31c66114 61462013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
76cc869a 6147
6148 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
6149 -mxl-reorder.
6150
a776325f 61512013-03-05 Jakub Jelinek <jakub@redhat.com>
6152
5ceebb21 6153 PR middle-end/56461
6154 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
6155 if VALGRIND_GET_VBITS is defined, temporarily make object
6156 memory all defined, and restore previous valgrind addressability
6157 and definability afterwards. Free this_object at the end.
6158
d3d0b390 6159 PR middle-end/56461
6160 * lra.c (lra): Call lra_clear_live_ranges if live_p,
6161 right before calling lra_create_live_ranges, also call it
6162 when clearing live_p. Only call lra_clear_live_ranges
6163 at the end if live_p.
6164
a776325f 6165 PR middle-end/56461
6166 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
6167
63628665 61682013-03-05 Richard Biener <rguenther@suse.de>
6169
6170 PR tree-optimization/56521
6171 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
6172 value-id.
6173
390f4a4b 61742013-03-05 Steven Bosscher <steven@gcc.gnu.org>
6175
6176 PR c++/55135
6177 * except.h (remove_unreachable_eh_regions): New prototype.
6178 * except.c (remove_eh_handler_splicer): New function, split out
6179 of remove_eh_handler.
6180 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
6181 warning about running it on many EH regions one at a time.
6182 (remove_unreachable_eh_regions_worker): New function, walk the
6183 EH tree in depth-first order and remove non-marked regions.
6184 (remove_unreachable_eh_regions): New function.
6185 * tree-eh.c (mark_reachable_handlers): New function, split out
6186 from remove_unreachable_handlers.
6187 (remove_unreachable_handlers): Use mark_reachable_handlers and
6188 remove_unreachable_eh_regions.
6189 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
6190 and remove_unreachable_eh_regions.
6191
84087109 61922013-03-05 Richard Biener <rguenther@suse.de>
6193
6194 PR middle-end/56525
6195 * loop-init.c (fix_loop_structure): Remove loops in two stages,
6196 not freeing them until the end.
6197
a22cd2a7 61982013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6199
6200 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
6201
6de71799 62022013-03-05 Richard Biener <rguenther@suse.de>
6203
6204 PR tree-optimization/56270
6205 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
6206 of loads after scheduling an SLP instance.
6207
6ae8a044 62082013-03-05 Jakub Jelinek <jakub@redhat.com>
6209
94ce8195 6210 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
6211 tic6x.exp.
6212 (check_gcc_parallelize): Run guality.exp as a separate job from
6213 vect.exp with unsorted.exp and $(dg_target_exps) separately from
6214 struct-layout-1.exp with stackalign.exp.
6215
7a2f311c 6216 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
6217
cae603e9 6218 PR middle-end/56461
6219 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
6220 load_index sbitmap even if some bit in it isn't set.
6221
b71850a1 6222 PR middle-end/56461
6223 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
6224 (discover_iteration_bound_by_body_walk): Change queues to
6225 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
6226 spelling in comment. Call safe_push on queues[bound_index] directly.
6227 Release queues[queue_index] in every iteration unconditionally.
6228 Release bounds vector.
6229
6ae8a044 6230 PR middle-end/56461
6231 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
6232 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
6233 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
6234 inner_phis vector.
6235
c251ba7f 62362013-03-05 Richard Biener <rguenther@suse.de>
6237
6238 PR lto/56515
6239 * tree-inline.c (remap_blocks_to_null): New function.
6240 (expand_call_inline): When expanding a call stmt without
6241 an associated block inline remap all callee blocks to NULL.
6242
70639a9d 62432013-03-05 Jakub Jelinek <jakub@redhat.com>
6244
bdcf717b 6245 PR rtl-optimization/56494
6246 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
6247 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
6248 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
6249
862c1934 6250 PR middle-end/56461
6251 * sel-sched-ir.c (free_sched_pools): Release
6252 succs_info_pool.stack[succs_info_pool.max_top] vectors too
6253 if succs_info_pool.max_top isn't -1.
6254
70639a9d 6255 PR bootstrap/56509
6256 * opts.c (opts_obstack, opts_concat): Moved to...
6257 * opts-common.c (opts_obstack, opts_concat): ... here.
6258
29d52322 62592013-03-04 Jakub Jelinek <jakub@redhat.com>
6260
6261 PR middle-end/56461
6262 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
6263
a1a00916 62642013-03-04 Martin Jambor <mjambor@suse.cz>
6265
6266 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
6267 all appropriate places.
6268
8ad1eb69 62692013-01-04 Eric Botcazou <ebotcazou@adacore.com>
6270
6271 PR tree-optimization/56424
6272 * ipa-split.c (split_function): Do not set the RSO flag if result is
6273 not by reference and its type is a register type.
6274
31c66114 62752013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
4f12cc20 6276
862c63eb 6277 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
4f12cc20 6278 (microblaze_legitimate_pic_operand): Likewise
862c63eb 6279 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
4f12cc20 6280 new function microblaze_legitimate_pic_operand
6281 * config/microblaze/microblaze-protos.h
6282 (microblaze_legitimate_pic_operand): Declare.
6283
31c66114 62842013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
ff86513b 6285
31c66114 6286 * config/microblaze/predicates.md (call_insn_simple_operand):
ff86513b 6287 New predicate for supported rtx code types.
31c66114 6288 * config/microblaze/microblaze.md (call_internal1): Use
ff86513b 6289 call_insn_simple_operand predicate.
6290
033ee56d 62912013-03-04 Jakub Jelinek <jakub@redhat.com>
6292
b3df3de1 6293 PR middle-end/56461
6294 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
6295 partitions.ordered_remove.
6296
1d4dcacf 6297 PR middle-end/56461
6298 * tree-vect-stmts.c (vectorizable_conversion): Don't call
6299 vec_oprnds0.create (1) for modifier == NONE.
6300
87c0beb4 6301 PR middle-end/56461
6302 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
6303 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
6304 vec_oprnds1 right before pushing anything to it for
6305 scalar_shift_arg.
6306
033ee56d 6307 PR middle-end/56461
6308 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
6309 set nbbs to 0 instead of having separate code path.
6310 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
6311 instead of false as last argument if returning NULL.
6312
090eadfb 63132013-03-03 Sandra Loosemore <sandra@codesourcery.com>
6314
6315 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
6316 the attribute is now called "target" instead of "option".
6317 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6318 * doc/tm.texi.in (Target Attributes): Likewise document the correct
6319 attribute/pragma name for TARGET_OPTION_VALID_P and
6320 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
6321 * doc/tm.texi: Regenerated.
6322
87c0beb4 63232013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
db38a061 6324
87c0beb4 6325 * config/microblaze/microblaze.c:
db38a061 6326 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
87c0beb4 6327 * config/microblaze/microblaze.h: Add -mxl-reorder to
6328 DRIVER_SELF_SPECS.
6329 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
6330 instructions emitted if TARGET_REORDER.
862c63eb 6331 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
6332 or 0 for -m/-mno case, but initialises as 2 to detect default use case
87c0beb4 6333 separately.
db38a061 6334
ae814dd3 63352013-03-01 Xinliang David Li <davidxl@google.com>
6336
6337 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
6338 walk length.
6339
57fad2bf 63402013-03-01 Jakub Jelinek <jakub@redhat.com>
6341
04437ab6 6342 PR middle-end/56461
6343 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
6344 vector even when returning true. Fix up function comment formatting.
6345
f9feeefd 6346 PR middle-end/56461
6347 * ira-build.c (ira_loop_nodes_count): New variable.
6348 (create_loop_tree_nodes): Initialize it.
6349 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
6350
f40aaf2d 6351 PR middle-end/56461
6352 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
6353 method on dr_chain and result_chain.
6354 * tree-vect-stmts.c (vectorizable_store): Only call
6355 result_chain.create if j == 0.
6356
57fad2bf 6357 PR middle-end/56461
6358 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
6359 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
6360 before overwriting it.
6361
32ddc0d1 63622013-03-01 Tobias Burnus <burnus@net-b.de>
6363
6364 * doc/extended.texi (C Extensions): Change order in @menu
6365 to match @node.
6366 (Other MIPS Built-in Functions): Move last MIPS entry before
6367 "picoChip Built-in Functions".
6368 (SH Built-in Functions): Move after RX Built-in Functions.
6369 * doc/gcc.texi (Introduction): Change order in @menu
6370 to match @node.
6371 * doc/md.texi (Constraints): Ditto.
6372 * gty.texi (Type Information): Ditto.
6373 (User-provided marking routines for template types): Make
6374 subsection.
6375 * doc/invoke.texi (AArch64 Options): Move before
6376 "Adapteva Epiphany Options".
6377
a9196da9 63782013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6379 Jakub Jelinek <jakub@redhat.com>
6380
6381 PR sanitizer/56454
6382 * asan.c (gate_asan): Lookup no_sanitize_address instead of
6383 no_address_safety_analysis attribute.
6384 * doc/extend.texi (no_address_safety_attribute): Rename to
6385 no_sanitize_address attribute, mention no_address_safety_analysis
6386 attribute as deprecated alias.
6387
7f7695a7 63882013-02-28 Jakub Jelinek <jakub@redhat.com>
6389
6390 PR middle-end/56461
6391 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
6392 type to vec<vec<tree> > *.
6393 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
6394 to be vec<tree> instead of vec<tree> *, set vec_defs
6395 to vNULL and call vec_defs.create (number_of_vects), adjust other
6396 uses of vec_defs.
6397 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
6398 vectorizable_condition): Adjust vect_get_slp_defs callers.
6399
9439bdfe 64002013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6401
6402 * config/aarch64/aarch64.c
6403 (aarch64_float_const_representable): Remove unused variable.
6404
147f0a69 64052013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6406
6407 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
6408
4f164a9f 64092013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6410
6411 * config/aarch64/aarch64-builtins.c
6412 (aarch64_init_simd_builtins): Make static.
6413
6d57cecd 64142013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
6415
6416 * config/aarch64/aarch64.c
6417 (aarch64_simd_make_constant): Make static.
6418
e3fa6175 64192013-02-28 Martin Jambor <mjambor@suse.cz>
6420
6421 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
6422 with no initialization to the RHS of debug statements.
6423
2e1d16b0 64242013-02-28 Martin Jambor <mjambor@suse.cz>
6425
6426 PR tree-optimization/56294
6427 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
6428 Adjust dumping.
6429 (get_access_replacement): Do not call create_access_replacement.
6430 Assert a replacement exists.
6431 (get_repl_default_def_ssa_name): Create the replacement declaration
6432 itself.
6433
2c8489a0 64342013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6435
6436 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
6437 final_end_function.
6438
f3721e91 64392013-02-28 Marek Polacek <polacek@redhat.com>
6440
6441 PR rtl-optimization/56466
6442 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
6443 if we're changing a loop.
6444 (peel_loops_completely): Likewise.
6445
a8877909 64462013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
6447
6448 PR c++/55813
6449 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
6450
3e88585b 64512013-02-28 Georg-Johann Lay <avr@gjlay.de>
6452
6453 PR target/56445
6454 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
6455 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
6456 INTX_FTYPE_FX, FX_FTYPE_INTX.
6457 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
6458
724fcbc3 64592013-02-28 Georg-Johann Lay <avr@gjlay.de>
6460
6461 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
6462 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
6463 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
6464 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
6465 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
6466 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
6467 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
6468 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
6469 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
6470 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
6471 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
6472 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
6473 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
6474 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
6475 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
6476 (avrxmega6): Increase max flash segments from 5 to 6.
6477 * config/avr/t-multilib: Regenerate.
6478 * config/avr/avr-tables.opt: Regenerate.
6479 * doc/avr-mmcu.texi: Regenerate.
6480
28cd3cde 64812013-02-28 Georg-Johann Lay <avr@gjlay.de>
6482
6483 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
6484 (avr_device_to_arch): Rename to avr_device_to_ld.
6485 (avr_device_to_as): New prototype.
6486 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
6487 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
6488 * config/avr/driver-avr.c (avr_device_to_as): New.
6489 (avr_device_to_arch): Rename to avr_device_to_ld.
6490
3bda6402 64912013-02-27 Jakub Jelinek <jakub@redhat.com>
6492
1648f21f 6493 PR middle-end/56461
6494 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
6495 method on dr_chain and result_chain.
6496
6a191849 6497 PR middle-end/56461
6498 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
6499 pointer_set_destroy on not_executed_last_iteration.
6500
1224d221 6501 PR middle-end/56461
862c63eb 6502 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
1224d221 6503
c6d207aa 6504 PR middle-end/56461
6505 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
6506 FOR_EACH_DEFINED_FUNCTION when freeing state.
6507
73dcdb84 6508 PR middle-end/56461
6509 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
6510 pool_free.
6511 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
6512 overwriting it.
6513
e4898110 6514 PR middle-end/56461
6515 * ipa-cp.c (decide_whether_version_node): Call vec_free on
6516 known_aggs[i].items and release known_aggs vector.
6517
3bda6402 6518 PR middle-end/56461
6519 * ipa-reference.c (propagate): Free node_info even for alias nodes.
6520
65212013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
e249ec67 6522
3bda6402 6523 * config/microblaze/microblaze.c (microblaze_emit_compare):
6524 Use xor for EQ/NE comparisions.
6525 * config/microblaze/microblaze.md (cstoresf4): Add constraints
6526 (cbranchsf4): Adjust operator to comparison_operator.
e249ec67 6527
dcd56d11 65282013-02-27 Jakub Jelinek <jakub@redhat.com>
6529
6530 PR middle-end/56461
6531 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
6532 vector.
6533 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
6534 vec_safe_push, always update *slot.
6535 (redirect_edge_var_map_clear): Use vec_free.
6536 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
6537 (free_var_map_entry): Use vec_free.
6538 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
6539 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
6540
936ab1d9 65412013-02-27 Andrey Belevantsev <abel@ispras.ru>
6542
6543 PR middle-end/45472
936ab1d9 6544 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
6545 when the may_trap_p bit of the exprs being merged differs.
936ab1d9 6546 Reorder tests for speculativeness in the logical and operator.
6547
d5417a49 65482013-02-27 Jakub Jelinek <jakub@redhat.com>
6549
632c3914 6550 * incpath.c (add_standard_paths): Use reconcat instead of concat
6551 where appropriate and avoid leaking memory.
6552
ba30d337 6553 * opts.h: Include obstack.h.
6554 (opts_concat): New prototype.
6555 (opts_obstack): New declaration.
6556 * opts.c (opts_concat): New function.
6557 (opts_obstack): New variable.
6558 (init_options_struct): Call gcc_init_obstack on opts_obstack.
6559 (finish_options): Use opts_concat instead of concat
6560 and XOBNEWVEC instead of XNEWVEC.
6561 * opts-common.c (generate_canonical_option, decode_cmdline_option,
6562 generate_option): Likewise.
6563 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
6564 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
6565
d5417a49 6566 PR target/56455
6567 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
6568 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
6569
ed8fbc55 65702013-02-26 Jakub Jelinek <jakub@redhat.com>
6571
6572 PR middle-end/56461
6573 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
6574
931645bc 65752013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6576
6577 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
6578 (arm_block_move_unaligned_straight): Likewise.
6579 (arm_adjust_block_mem): Likewise.
6580
7b04a0cb 65812013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
6582
6583 PR target/48901
6584 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
6585 temp, cond and label.
6586 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
6587
5d77e25b 6588 PR target/52500
6589 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
6590 * config/c6x/c6x.h (dbx_register_map): Update declaration.
6591
e8b0bf40 6592 PR target/52501
6593 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
6594 of prologue/epilogue functions.
6595
7ae884c9 6596 PR target/52550
6597 * config/tilegx/tilegx.c (tilegx_expand_prologue):
6598 Remove unused variable cfa_offset.
6599 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
6600
df70f973 6601 PR target/54639
6602 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
6603 type promotion to unsigned.
6604
5e10bd08 6605 PR target/54640
6606 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
6607 for HOST_WIDE_INT of 32 bit / same size as int.
6608 (arm_block_move_unaligned_straight): Likewise.
6609 (arm_adjust_block_mem): Likewise.
6610
46645ed9 6611 PR target/54662
6612 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
6613 ALL_CFLAGS.
6614
9df082d2 66152013-02-26 Marek Polacek <polacek@redhat.com>
6616
6617 PR tree-optimization/56426
862c63eb 6618 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
9df082d2 6619
258f96b3 66202013-02-26 Richard Biener <rguenther@suse.de>
6621
6622 PR target/56444
6623 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
6624 unused variable loops.
6625
50c96f17 66262013-02-26 Jakub Jelinek <jakub@redhat.com>
6627
db08f1c6 6628 PR tree-optimization/56448
6629 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
6630 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
6631 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
6632 later operands of the references, or even first operand for
6633 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
6634
50c96f17 6635 PR tree-optimization/56443
6636 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
6637 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
6638 to type_for_mode langhook.
6639
28c83d49 66402013-02-25 Matt Turner <mattst88@gmail.com>
6641
6642 * doc/invoke.texi: Document r4700.
6643
750e47f5 66442013-02-25 Richard Biener <rguenther@suse.de>
6645
6646 PR tree-optimization/56175
6647 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
6648 split out from ...
6649 (simplify_bitwise_binary): ... here. Also guard the conversion
6650 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
6651
ca7a473f 66522013-02-25 Catherine Moore <clm@codesourcery.com>
6653
6654 Revert:
6655 2013-02-24 Catherine Moore <clm@codesourcery.com>
6656 Maciej W. Rozycki <macro@codesourcery.com>
6657 Tom de Vries <tom@codesourcery.com>
31c66114 6658 Nathan Sidwell <nathan@codesourcery.com>
ca7a473f 6659 Iain Sandoe <iain@codesourcery.com>
6660 Nathan Froyd <froydnj@codesourcery.com>
31c66114 6661 Chao-ying Fu <fu@mips.com>
862c63eb 6662
ca7a473f 6663 * doc/extend.texi: (micromips, nomicromips, nocompression):
862c63eb 6664 Document new function attributes.
ca7a473f 6665 * doc/invoke.texi (minterlink-compressed, mmicromips,
6666 m14k, m14ke, m14kec): Document new options.
6667 (minterlink-mips16): Update documentation.
6668 * doc/md.texi (ZC, ZD): Document new constraints.
6669 * configure.ac (gcc_cv_as_micromips): Check if linker
6670 supports the .set micromips directive.
6671 * configure: Regenerate.
6672 * config.in: Regenerate.
6673 * config/mips/mips-tables.opt: Regenerate.
6674 * config/mips/micromips.md: New file.
6675 * constraints.md (ZC, AD): New constraints.
6676 * config/mips/predicates.md (movep_src_register): New predicate.
6677 (movep_src_operand): New predicate.
6678 (non_volatile_mem_operand): New predicate.
6679 * config/mips/mips.md (multimem): New type.
6680 (length): Differentiate between 17-bit and 18-bit branch offsets.
6681 (MOVEP1, MOVEP2): New mode iterator.
6682 (mov_<load>l): Use ZC constraint.
6683 (mov_<load>r): Likewise.
6684 (mov_<store>l): Likewise.
6685 (mov_<store>r): Likewise.
6686 (*branch_equality<mode>_inverted): Add microMIPS support.
6687 (*branch_equality<mode>): Likewise.
6688 (*jump_absolute): Likewise.
6689 (indirect_jump_<mode>): Likewise.
6690 (tablejump_<mode>): Likewise.
6691 (<optab>_internal): Likewise.
6692 (sibcall_internal): Likewise.
6693 (sibcall_value_internal): Likewise.
6694 (prefetch): Use constraint ZD.
6695 * config/mips/mips.opt (minterlink-compressed): New option.
6696 (minterlink-mips16): Now an alias for minterlink-compressed.
6697 (mmicromips): New option.
6698 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6699 (compare_and_swap_12): Likewise.
6700 (sync_add<mode>): Likewise.
6701 (sync_<optab>_12): Likewise.
6702 (sync_old_<optab>_12): Likewise.
6703 (sync_new_<optab>_12): Likewise.
6704 (sync_nand_12): Likewise.
6705 (sync_old_nand_12): Likewise.
6706 (sync_new_nand_12): Likewise.
6707 (sync_sub<mode>): Likewise.
6708 (sync_old_add<mode>): Likewise.
6709 (sync_old_sub<mode>): Likewise.
6710 (sync_new_add<mode>): Likewise.
6711 (sync_new_sub<mode>): Likewise.
6712 (sync_<optab><mode>): Likewise.
6713 (sync_old_<optab><mode>): Likewise.
6714 (sync_new_<optab><mode>): Likewise.
6715 (sync_nand<mode>): Likewise.
6716 (sync_old_nand<mode>): Likewise.
6717 (sync_new_nand<mode>): Likewise.
6718 (sync_lock_test_and_set<mode>): Likewise.
6719 (test_and_set_12): Likewise.
6720 (atomic_compare_and_swap<mode>): Likewise.
6721 (atomic_exchange<mode>_llsc): Likewise.
6722 (atomic_fetch_add<mode>_llsc): Likewise.
6723 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6724 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6725 (umips_save_restore_pattern_p): Likewise.
6726 (umips_load_store_pair_p): Likewise.
6727 (umips_output_load_store_pair): Likewise.
6728 (umips_movep_target_p): Likewise.
6729 (umips_12bit_offset_address_p): Likewise.
6730 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6731 (mips_base_mips16): Rename this...
6732 (mips_base_compression_flags): ...to this. Update all uses.
6733 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6734 (mips_mips16_decl_p): Delete.
6735 (mips_nomips16_decl_p): Delete.
6736 (mips_get_compress_on_flags): New function.
6737 (mips_get_compress_off_flags): New function.
6738 (mips_get_compress_mode): New function.
6739 (mips_get_compress_on_name): New function.
6740 (mips_get_compress_off_name): New function.
6741 (mips_insert_attributes): Support multiple compression types.
6742 (mips_merge_decl_attributes): Likewise.
6743 (umips_12bit_offset_address_p): New function.
6744 (mips_start_function_definition): Emit .set micromips directive.
6745 (mips_call_may_need_jalx_p): New function.
6746 (mips_function_ok_for_sibcall): Add microMIPS support.
6747 (mips_print_operand_punctuation): Support short delay slots and
6748 compact jumps.
6749 (umips_swm_mask, umips_swm_encoding): New.
6750 (umips_build_save_restore): New function.
6751 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6752 (was_mips16_p): Remove.
6753 (old_compression_mode): New.
6754 (mips_set_compression_mode): New function.
6755 (mips_set_current_function): Add microMIPS support.
6756 (mips_option_override): Likewise.
6757 (umips_save_restore_pattern_p): New function.
6758 (umips_output_save_restore): New function.
6759 (umips_load_store_pair_p_1): New function.
6760 (umips_load_store_pair_p): New function.
6761 (umips_output_load_store_pair_1): New function.
6762 (umips_output_load_store_pair): New function.
6763 (umips_movep_target_p) New function.
6764 (mips_prepare_pch_save): Add microMIPS support.
6765 * config/mips/mips.h (TARGET_COMPRESSION): New.
6766 (TARGET_CPU_CPP_BUILTINS): Update macro
6767 to use new compression flags and to support microMIPS.
6768 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6769 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6770 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6771 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6772 (ASM_SPEC): Support mmicromips and mno-micromips.
6773 (M16STORE_REG_P): New macro.
6774 (MIPS_CALL): Support TARGET_MICROMIPS.
6775 (MICROMIPS_J): New macro.
6776 (mips_base_mips16): Rename this...
6777 (mips_base_compression_flags): ...to this.
6778 (UMIPS_12BIT_OFFSET_P): New macro.
6779 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6780 (MULTILIB_DIRNAMES): Likewise.
6781
6de7acd5 67822013-02-25 Tom de Vries <tom@codesourcery.com>
6783
6784 PR rtl-optimization/56131
6785 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
6786 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
6787 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
6788
2d0b2b60 67892013-02-25 Tobias Burnus <burnus@net-b.de>
6790
6791 * doc/invoke.texi (-fsanitize=): Move from optimization
6792 to debugging options.
6793
f22426d2 67942013-02-25 Andrey Belevantsev <abel@ispras.ru>
6795
6796 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
6797
e965825b 67982013-02-25 Andrey Belevantsev <abel@ispras.ru>
6799 Alexander Monakov <amonakov@ispras.ru>
6800
6801 PR middle-end/56077
6802 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
6803 flush pending lists also on non-jumps. Adjust comment.
6804
7fd93f9c 68052013-02-24 Catherine Moore <clm@codesourcery.com>
6806 Maciej W. Rozycki <macro@codesourcery.com>
6807 Tom de Vries <tom@codesourcery.com>
31c66114 6808 Nathan Sidwell <nathan@codesourcery.com>
7fd93f9c 6809 Iain Sandoe <iain@codesourcery.com>
6810 Nathan Froyd <froydnj@codesourcery.com>
31c66114 6811 Chao-ying Fu <fu@mips.com>
7fd93f9c 6812
6813 * doc/extend.texi: (micromips, nomicromips, nocompression):
862c63eb 6814 Document new function attributes.
7fd93f9c 6815 * doc/invoke.texi (minterlink-compressed, mmicromips,
6816 m14k, m14ke, m14kec): Document new options.
6817 (minterlink-mips16): Update documentation.
6818 * doc/md.texi (ZC, ZD): Document new constraints.
6819 * configure.ac (gcc_cv_as_micromips): Check if linker
6820 supports the .set micromips directive.
6821 * configure: Regenerate.
6822 * config.in: Regenerate.
6823 * config/mips/mips-tables.opt: Regenerate.
6824 * config/mips/micromips.md: New file.
6825 * constraints.md (ZC, AD): New constraints.
6826 * config/mips/predicates.md (movep_src_register): New predicate.
6827 (movep_src_operand): New predicate.
6828 (non_volatile_mem_operand): New predicate.
6829 * config/mips/mips.md (multimem): New type.
6830 (length): Differentiate between 17-bit and 18-bit branch offsets.
6831 (MOVEP1, MOVEP2): New mode iterator.
2d0b2b60 6832 (mov_<load>l): Use ZC constraint.
7fd93f9c 6833 (mov_<load>r): Likewise.
6834 (mov_<store>l): Likewise.
6835 (mov_<store>r): Likewise.
6836 (*branch_equality<mode>_inverted): Add microMIPS support.
6837 (*branch_equality<mode>): Likewise.
6838 (*jump_absolute): Likewise.
6839 (indirect_jump_<mode>): Likewise.
6840 (tablejump_<mode>): Likewise.
6841 (<optab>_internal): Likewise.
6842 (sibcall_internal): Likewise.
6843 (sibcall_value_internal): Likewise.
6844 (prefetch): Use constraint ZD.
6845 * config/mips/mips.opt (minterlink-compressed): New option.
6846 (minterlink-mips16): Now an alias for minterlink-compressed.
6847 (mmicromips): New option.
6848 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
6849 (compare_and_swap_12): Likewise.
6850 (sync_add<mode>): Likewise.
6851 (sync_<optab>_12): Likewise.
6852 (sync_old_<optab>_12): Likewise.
6853 (sync_new_<optab>_12): Likewise.
6854 (sync_nand_12): Likewise.
6855 (sync_old_nand_12): Likewise.
6856 (sync_new_nand_12): Likewise.
6857 (sync_sub<mode>): Likewise.
6858 (sync_old_add<mode>): Likewise.
6859 (sync_old_sub<mode>): Likewise.
6860 (sync_new_add<mode>): Likewise.
6861 (sync_new_sub<mode>): Likewise.
6862 (sync_<optab><mode>): Likewise.
6863 (sync_old_<optab><mode>): Likewise.
6864 (sync_new_<optab><mode>): Likewise.
6865 (sync_nand<mode>): Likewise.
6866 (sync_old_nand<mode>): Likewise.
6867 (sync_new_nand<mode>): Likewise.
6868 (sync_lock_test_and_set<mode>): Likewise.
6869 (test_and_set_12): Likewise.
6870 (atomic_compare_and_swap<mode>): Likewise.
6871 (atomic_exchange<mode>_llsc): Likewise.
6872 (atomic_fetch_add<mode>_llsc): Likewise.
6873 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
6874 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
6875 (umips_save_restore_pattern_p): Likewise.
6876 (umips_load_store_pair_p): Likewise.
6877 (umips_output_load_store_pair): Likewise.
6878 (umips_movep_target_p): Likewise.
6879 (umips_12bit_offset_address_p): Likewise.
6880 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
6881 (mips_base_mips16): Rename this...
6882 (mips_base_compression_flags): ...to this. Update all uses.
6883 (mips_attribute_table): Add micromips, nomicromips and nocompression.
6884 (mips_mips16_decl_p): Delete.
6885 (mips_nomips16_decl_p): Delete.
2d0b2b60 6886 (mips_get_compress_on_flags): New function.
7fd93f9c 6887 (mips_get_compress_off_flags): New function.
6888 (mips_get_compress_mode): New function.
6889 (mips_get_compress_on_name): New function.
6890 (mips_get_compress_off_name): New function.
6891 (mips_insert_attributes): Support multiple compression types.
6892 (mips_merge_decl_attributes): Likewise.
6893 (umips_12bit_offset_address_p): New function.
6894 (mips_start_function_definition): Emit .set micromips directive.
6895 (mips_call_may_need_jalx_p): New function.
6896 (mips_function_ok_for_sibcall): Add microMIPS support.
6897 (mips_print_operand_punctuation): Support short delay slots and
6898 compact jumps.
6899 (umips_swm_mask, umips_swm_encoding): New.
6900 (umips_build_save_restore): New function.
6901 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
6902 (was_mips16_p): Remove.
6903 (old_compression_mode): New.
6904 (mips_set_compression_mode): New function.
6905 (mips_set_current_function): Add microMIPS support.
6906 (mips_option_override): Likewise.
6907 (umips_save_restore_pattern_p): New function.
6908 (umips_output_save_restore): New function.
6909 (umips_load_store_pair_p_1): New function.
6910 (umips_load_store_pair_p): New function.
6911 (umips_output_load_store_pair_1): New function.
6912 (umips_output_load_store_pair): New function.
6913 (umips_movep_target_p) New function.
6914 (mips_prepare_pch_save): Add microMIPS support.
6915 * config/mips/mips.h (TARGET_COMPRESSION): New.
6916 (TARGET_CPU_CPP_BUILTINS): Update macro
6917 to use new compression flags and to support microMIPS.
6918 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
6919 (MIPS_ARCH_FLOAT_SPEC): Likewise.
6920 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
6921 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
6922 (ASM_SPEC): Support mmicromips and mno-micromips.
6923 (M16STORE_REG_P): New macro.
6924 (MIPS_CALL): Support TARGET_MICROMIPS.
6925 (MICROMIPS_J): New macro.
6926 (mips_base_mips16): Rename this...
6927 (mips_base_compression_flags): ...to this.
6928 (UMIPS_12BIT_OFFSET_P): New macro.
6929 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
6930 (MULTILIB_DIRNAMES): Likewise.
6931
9a9a97e2 69322013-02-24 Jakub Jelinek <jakub@redhat.com>
6933
6934 PR target/52555
6935 * target-globals.c (save_target_globals): For init_reg_sets and
6936 target_reinit remporarily set this_fn_optabs to this_target_optabs.
6937
752358b2 69382013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
6939
6940 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
6941 * config/aarch64/t-aarch64
6942 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
6943
8c3a9b39 69442013-02-22 Vladimir Makarov <vmakarov@redhat.com>
6945
6946 PR inline-asm/56148
6947 * lra-constraints.c (process_alt_operands): Reload operand
6948 conflicting with earlier clobber only if no more other conflicting
6949 operands.
6950
a16e0d2d 69512013-02-22 Jakub Jelinek <jakub@redhat.com>
6952
6953 PR sanitizer/56393
6954 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
6955 if not linking a shared library.
6956
0e0256f2 69572013-02-22 Seth LaForge <sethml@google.com>
6958
6959 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
6960
6aa689e8 69612013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
6962
2d0b2b60 6963 * config/arm/arm.md (split for extendsidi): Update condition.
6964 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
6965 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
6966 (qhs_zextenddi_cstr): Likewise.
6aa689e8 6967
4d5cf08a 69682013-02-21 Jakub Jelinek <jakub@redhat.com>
6969
af0907da 6970 PR middle-end/56420
6971 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
6972 avoid signed wrapping.
6973 (expand_mult): Handle properly multiplication by
6974 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
6975 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
6976 in the compiler if coeff is HOST_WIDE_INT_MIN.
6977 (expand_divmod): Don't make ext_op1 static, change it's type to
6978 uhwi. Avoid undefined behavior in -INTVAL (op1).
6979
4d5cf08a 6980 PR rtl-optimization/50339
6981 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
6982 field.
6983 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
6984 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
6985 into splitting_ashiftrt field.
6986 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
6987 ASHIFTRT.
6988 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
6989 choices.
6990
ded1a556 69912013-02-20 Aldy Hernandez <aldyh@redhat.com>
6992
6993 PR middle-end/56108
6994 * trans-mem.c (execute_tm_mark): Do not expand transactions that
6995 are sure to go irrevocable.
6996
16a3d053 69972013-02-21 Hans-Peter Nilsson <hp@axis.com>
6998
6999 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
7000 scalars are valid operands.
7001
9bd3a517 70022013-02-21 Martin Jambor <mjambor@suse.cz>
7003
7004 PR tree-optimization/56310
7005 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
7006 only matching indices and non-negative final offsets.
7007 (intersect_aggregates_with_edge): Pass src_idx to
7008 agg_replacements_to_vector. Pass src_idx insstead of index to
7009 intersect_with_agg_replacements.
7010
cfb368a3 70112013-02-21 Martin Jambor <mjambor@suse.cz>
7012
7013 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
7014 instead of hard-wired defaults.
7015
c856a95f 70162013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
7017
7018 * doc/invoke.texi (MIPS Options): Update documentation of the
7019 floating-point multiply-accumulate instruction restrictions.
7020
9dff5bbc 70212013-02-21 Kostya Serebryany <kcc@google.com>
5a59af67 7022
7023 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
7024 asan_shadow_offset on x86_64 linux.
7025
7662ff7e 70262013-02-21 Richard Biener <rguenther@suse.de>
7027
7028 PR tree-optimization/56415
7029 Revert
7030 2013-02-11 Richard Biener <rguenther@suse.de>
7031
7032 PR tree-optimization/56273
7033 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7034 first VRP run.
7035
28a9e8c4 70362013-02-21 Jakub Jelinek <jakub@redhat.com>
7037
551e6483 7038 PR bootstrap/56258
7039 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
7040 instead of @itemx.
7041
28a9e8c4 7042 PR inline-asm/56405
7043 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
7044 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
7045
16473e06 70462013-02-20 Jan Hubicka <jh@suse.cz>
7047
7048 PR tree-optimization/56265
862c63eb 7049 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
7050 when target is referenced for first time.
16473e06 7051
560965e9 70522013-02-20 Richard Biener <rguenther@suse.de>
7053
7054 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
7055 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
7056 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
7057 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
7058 not return anything.
7059 (rename_ssa_copies): Do not remove unused locals.
7060 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
862c63eb 7061 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
560965e9 7062 * passes.c (execute_function_todo): Do not schedule unused locals
7063 removal if cleanup_tree_cfg did something.
7064 * tree-ssa-live.c (remove_unused_locals): Dump statistics
7065 about the number of removed locals.
7066
2510e5cd 70672013-02-20 Richard Biener <rguenther@suse.de>
7068
7069 PR tree-optimization/56398
862c63eb 7070 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2510e5cd 7071
170754bc 70722013-02-20 Martin Jambor <mjambor@suse.cz>
7073
7074 PR tree-optimization/55334
7075 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
7076 restricted pointers to arrays.
7077
285df01b 70782013-02-20 Richard Biener <rguenther@suse.de>
862c63eb 7079 Jakub Jelinek <jakub@redhat.com>
285df01b 7080
7081 PR tree-optimization/56396
7082 * tree-ssa-ccp.c (n_const_val): New static variable.
7083 (get_value): Return NULL for SSA names we don't have a lattice
7084 entry for.
7085 (ccp_initialize): Initialize n_const_val.
7086 * tree-ssa-copy.c (n_copy_of): New static variable.
7087 (init_copy_prop): Initialize n_copy_of.
7088 (get_value): Return NULL_TREE for SSA names we don't have a
7089 lattice entry for.
7090
1cf0acc3 70912013-02-20 Martin Jambor <mjambor@suse.cz>
7092
7093 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
7094
0b588b3d 70952013-02-20 Richard Biener <rguenther@suse.de>
7096
7097 * genpreds.c (write_lookup_constraint): Do not compare first
7098 letter of the constraint again.
7099
d2ec9d3b 71002013-02-20 Richard Biener <rguenther@suse.de>
7101
7102 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
7103 and ceil_log2.
7104 (get_use_iv_cost): Terminate hashtable walk when coming across
7105 an empty entry.
7106
18daa717 71072013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
7108
7109 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
7110 reassociation for avx2 targets.
7111
31c66114 71122012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
d2ec9d3b 7113
f8a5cd80 7114 * config/microblaze/microblaze.c: microblaze_has_clz = 0
7115 Add version check for v8.10.a to enable microblaze_has_clz
862c63eb 7116 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
f8a5cd80 7117 version and TARGET_PATTERN_COMPARE check
7118 * config/microblaze/microblaze.md: New clzsi2 instruction
2d0b2b60 7119
31c66114 71202012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
dd21a8f3 7121
31c66114 7122 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
dd21a8f3 7123 function before branching.
7124
09a6d85b 71252012-02-19 Andrey Belevantsev <abel@ispras.ru>
7126
7127 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
7128 DUMP_INSN_RTX_UID.
7129 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
7130
3e1f1f1a 71312012-02-19 Andrey Belevantsev <abel@ispras.ru>
7132
7133 PR middle-end/55889
3e1f1f1a 7134 * sel-sched.c: Include ira.h.
7135 (implicit_clobber_conflict_p): New function.
7136 (moveup_expr): Use it.
862c63eb 7137 * Makefile.in (sel-sched.o): Depend on ira.h.
3e1f1f1a 7138
82a7a70c 71392013-02-19 Richard Biener <rguenther@suse.de>
7140
7141 PR tree-optimization/56384
7142 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
7143 (vn_hash_type): Split out from ...
7144 (vn_hash_constant_with_type): ... here.
7145 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
7146 (vn_phi_eq): Compare types from vn_phi_s structure.
7147 (vn_phi_lookup): Populate vn_phi_s type.
7148 (vn_phi_insert): Likewise.
7149
15c27dda 71502013-02-19 Jakub Jelinek <jakub@redhat.com>
7151
a82fc9c6 7152 PR tree-optimization/56350
7153 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
7154 if haven't found reduction or nested cycle operand, rather than
7155 asserting we must find it.
7156
15c27dda 7157 PR tree-optimization/56381
7158 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
7159 to fold_build3.
7160
71612013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 7162 Jakub Jelinek <jakub@redhat.com>
7163
7164 PR target/52555
7165 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
7166 (swap_optab_enable): Same.
7167 (init_all_optabs): Use argument instead of global.
862c63eb 7168 * tree.h (struct tree_optimization_option): New field target_optabs.
08c7d04b 7169 * expr.h (init_all_optabs): Add argument to prototype.
7170 (TREE_OPTIMIZATION_OPTABS): New.
7171 (save_optabs_if_changed): Protoize.
7172 * optabs.h: Declare this_fn_optabs.
7173 * optabs.c (save_optabs_if_changed): New.
7174 Declare this_fn_optabs.
7175 (init_optabs): Add argument to init_all_optabs() call.
7176 * function.c (invoke_set_current_function_hook): Handle per
7177 function optabs.
7178 * function.h (struct function): New field optabs.
7179 * config/mips/mips.c (mips_set_mips16_mode): Handle when
7180 optimization_current_node has changed.
7181 * target-globals.h (save_target_globals_default_opts): Protoize.
7182 * target-globals.c (save_target_globals_default_opts): New.
7183
4883d82f 71842013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7185
7186 PR target/56347
7187 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
7188 registers %fr12 and %fr12R as call used.
172258a4 7189
7190 PR target/56214
7191 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
862c63eb 7192 and HImode, require all displacements to be an integer multiple of
7193 their mode size.
172258a4 7194 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
7195 only allow QImode and HImode when reload is in progress and strict is
7196 true. Likewise for symbolic addresses. Use base14_operand to check
7197 displacements in REG+BASE addresses.
7198
abad9af1 71992013-02-18 Richard Biener <rguenther@suse.de>
7200
7201 PR tree-optimization/56366
7202 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7203 handle sign-conversion of outer-loop initial induction value.
7204
b375c775 72052013-02-18 Richard Biener <rguenther@suse.de>
7206
1450b4dd 7207 PR middle-end/56349
b375c775 7208 * cfghooks.c (merge_blocks): If we merge a latch into another
7209 block adjust references to it.
7210 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
7211 (verify_loop_structure): Verify that a recorded latch is in fact
7212 a latch.
7213
e6b37e57 72142013-02-18 Richard Biener <rguenther@suse.de>
7215
7216 PR tree-optimization/56321
7217 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
7218 order SSA name release and virtual operand unlinking.
7219
71cfadef 72202013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7221
7222 * config/microblaze/microblaze.md (save_stack_block): Define.
7223 (restore_stack_block): Likewise.
7224
f9ca9e46 72252013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7226
7227 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
7228 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
7229 * config/microblaze/microblaze.c (microblaze_option_override):
7230 Bail out early for PIC modes when target does not support PIC.
7231
10baa3f3 72322013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7233
862c63eb 7234 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10baa3f3 7235 Replace with a microblaze version.
7236 (microblaze_trampoline_init): Adapt for microblaze.
9a26e430 7237 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10baa3f3 7238 microblaze.
7239
d9dc05a1 72402013-02-16 Jakub Jelinek <jakub@redhat.com>
7241 Dodji Seketeli <dodji@redhat.com>
7242
7243 PR asan/56330
862c63eb 7244 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
d9dc05a1 7245 (instrument_mem_region_access): Do not forget to always put
7246 instrumentation of the of 'base' and 'base + len' in a "if (len !=
7247 0) statement, even for cases where either 'base' or 'base + len'
7248 are not instrumented -- because they have been previously
7249 instrumented. Simplify the logic by putting all the statements
7250 instrument 'base + len' inside a sequence, and then insert that
7251 sequence right before the current insertion point. Then, to
7252 instrument 'base + len', just get an iterator on that statement.
7253 And do not forget to update the pointer to iterator the function
7254 received as argument.
7255
a27d5d8c 72562013-02-15 Vladimir Makarov <vmakarov@redhat.com>
7257
7258 PR rtl-optimization/56348
7259 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
7260
69df7536 72612013-02-15 Steven Bosscher <steven@gcc.gnu.org>
7262
7263 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
7264 (clean_graph_dump_file): Pass base to start_graph_dump.
7265
36c98bd9 72662013-02-14 Richard Henderson <rth@redhat.com>
7267
7268 PR target/55941
7269 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
7270
6975c724 72712013-02-14 Steven Bosscher <steven@gcc.gnu.org>
7272
7273 * collect2-aix.h: Define F_LOADONLY.
7274
ca797a74 72752013-02-14 Richard Biener <rguenther@suse.de>
7276
7277 PR lto/50494
7278 * varasm.c (output_constant_def_1): Get the decl representing
7279 the constant as argument.
7280 (output_constant_def): Wrap output_constant_def_1.
7281 (make_decl_rtl): Use output_constant_def_1 with the decl
7282 representing the constant.
7283 (build_constant_desc): Optionally re-use a decl already
7284 representing the constant.
7285 (tree_output_constant_def): Adjust.
7286
0f2b58ae 72872013-02-14 Dodji Seketeli <dodji@redhat.com>
7288
7289 Fix an asan crash
7290 * asan.c (instrument_builtin_call): Really put the length of the
7291 second source argument into src1_len.
7292
e8d4d8a9 72932013-02-13 Jakub Jelinek <jakub@redhat.com>
7294
7295 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
7296 argument. If it is false, don't create edge from then_bb to
7297 fallthru_bb.
7298 (insert_if_then_before_iter): Pass true to it.
7299 (build_check_stmt): Pass false to it.
7300 (transform_statements): Flush hash table only on extended basic
7301 block boundaries, rather than at the beginning of every bb.
7302 Don't flush hash table on nonfreeing_call_p calls.
7303 * tree-flow.h (nonfreeing_call_p): New prototype.
7304 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
7305
944c7922 73062013-02-13 David S. Miller <davem@davemloft.net>
7307
7308 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
7309
f03b2d9d 73102013-02-13 Vladimir Makarov <vmakarov@redhat.com>
7311
7312 PR target/56184
7313 * ira.c (max_regno_before_ira): Move from ...
7314 (ira): ... here.
7315 (fix_reg_equiv_init): Use max_regno_before_ira instead of
7316 vec_safe_length.
7317
77c5abed 73182013-02-13 Jakub Jelinek <jakub@redhat.com>
7319
7320 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
7321
ecfa1cec 73222013-02-13 Richard Biener <rguenther@suse.de>
7323
7324 PR lto/56295
7325 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
7326 globals in MEM_REFs.
7327
51f707ce 73282013-02-13 Richard Biener <rguenther@suse.de>
7329
7330 * loop-init.c (loop_optimizer_init): Clear loop state when
7331 re-initializing preserved loops.
7332 * loop-unswitch.c (unswitch_single_loop): Return whether
7333 we unswitched the loop. Do not verify loop state here.
862c63eb 7334 (unswitch_loops): When we unswitched a loop discover new loops.
51f707ce 7335
7da89e80 73362013-02-13 Kostya Serebryany <kcc@google.com>
7337
862c63eb 7338 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
7339 on x86_64 linux.
7da89e80 7340 * sanitizer.def: Rename __asan_init to __asan_init_v1.
7341
c31c80df 73422013-02-12 Dodji Seketeli <dodji@redhat.com>
7343
7344 Avoid instrumenting duplicated memory access in the same basic block
7345 * Makefile.in (asan.o): Add new dependency on hash-table.h
7346 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
7347 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
7348 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
7349 (free_mem_ref_resources, has_mem_ref_been_instrumented)
7350 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
7351 (get_mem_ref_of_assignment): New functions.
7352 (get_mem_refs_of_builtin_call): Extract from
7353 instrument_builtin_call and tweak a little bit to make it fit with
7354 the new signature.
7355 (instrument_builtin_call): Use the new
7356 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
7357 of is_gimple_builtin_call.
7358 (instrument_derefs, instrument_mem_region_access): Insert the
7359 instrumented memory reference into the hash table.
7360 (maybe_instrument_assignment): Renamed instrument_assignment into
7361 this, and change it to advance the iterator when instrumentation
7362 actually happened and return true in that case. This makes it
7363 homogeneous with maybe_instrument_assignment, and thus give a
7364 chance to callers to be more 'regular'.
7365 (transform_statements): Clear the memory reference hash table
7366 whenever we enter a new BB, when we cross a function call, or when
7367 we are done transforming statements. Use
7368 maybe_instrument_assignment instead of instrumentation. No more
7369 need to special case maybe_instrument_assignment and advance the
7370 iterator after calling it; it's now handled just like
7371 maybe_instrument_call. Update comment.
7372
319f4d7d 73732013-02-13 Richard Biener <rguenther@suse.de>
7374
7375 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
7376 Fix loop discovery code.
7377
89c2edcf 73782013-02-12 Vladimir Makarov <vmakarov@redhat.com>
7379
7380 PR inline-asm/56148
7381 * lra-constraints.c (process_alt_operands): Match early clobber
f03b2d9d 7382 operand with itself. Check conflicts with earlyclobber only if
89c2edcf 7383 the operand is not reloaded. Prefer to reload conflicting operand
7384 if earlyclobber and matching operands are the same.
7385
d648b2ee 73862013-02-12 Richard Biener <rguenther@suse.de>
7387
7388 PR lto/56297
7389 * lto-streamer-out.c (write_symbol): Do not output symbols
7390 for hard register variables.
7391
cfbcb7d5 73922013-02-12 Georg-Johann Lay <avr@gjlay.de>
7393
7394 PR target/54222
7395 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
7396 (umulsidi3_insn, mulsidi3_insn): New insns.
7397
31c66114 73982013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
7ad0a5e6 7399
7400 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
7401 (struct tune_params): Add vec_costs field.
7402 * config/arm/arm.c (arm_builtin_vectorization_cost)
7403 (arm_add_stmt_cost): New functions.
7404 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
7405 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
7406 (arm_default_vec_cost): New struct of type cpu_vec_costs.
7407 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
7408 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
7409 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
7410 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
7411
972031ce 74122013-02-12 Richard Biener <rguenther@suse.de>
7413
7414 PR lto/56295
7415 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
7416 decls again if possible.
7417
bcef4e8e 74182013-02-12 Richard Biener <rguenther@suse.de>
7419
7420 PR middle-end/56288
7421 * tree-ssa.c (verify_ssa_name): Fix check, move
7422 SSA_NAME_IN_FREE_LIST check up.
7423
193baafd 74242013-02-12 Jakub Jelinek <jakub@redhat.com>
7425 Steven Bosscher <steven@gcc.gnu.org>
7426
7427 PR rtl-optimization/56151
7428 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
7429 equal to op0 or op1, and last_insn pattern is CODE operation
7430 with MEM dest and one of the operands matches that MEM.
7431
fd457cef 74322013-02-11 Sriraman Tallam <tmsriramgoogle.com>
7433
7434 * doc/extend.texi: Document Function Multiversioning and "default"
7435 parameter string to target attribute.
7436 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
7437 target attribute parameter is "default".
7438 (ix86_compare_version_priority): Remove checks for target attribute.
7439 (ix86_mangle_function_version_assembler_name): Change error to sorry.
7440 Remove check for target attribute equal to NULL. Add assert.
7441 (ix86_generate_version_dispatcher_body): Change error to sorry.
7442
48b8e70a 74432013-02-11 Iain Sandoe <iain@codesourcery.com>
7444 Jack Howarth <howarth@bromo.med.uc.edu>
7445 Patrick Marlier <patrick.marlier@gmail.com>
7446
7447 PR libitm/55693
7448 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
7449 define ENDFILE_SPEC as TM_DESTRUCTOR.
7450 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
7451
31c66114 74522013-02-11 Alexander Potapenko <glider@google.com>
ed161dab 7453 Jack Howarth <howarth@bromo.med.uc.edu>
7454 Jakub Jelinek <jakub@redhat.com>
7455
7456 PR sanitizer/55617
7457 * config/darwin.c (cdtor_record): Rename ctor_record.
7458 (sort_cdtor_records): Rename sort_ctor_records.
7459 (finalize_dtors): New routine to sort destructors by
7460 priority before use in assemble_integer.
7461 (machopic_asm_out_destructor): Use finalize_dtors if needed.
7462
ffc1977a 74632013-02-11 Uros Bizjak <ubizjak@gmail.com>
7464
7465 PR rtl-optimization/56275
7466 * simplify-rtx.c (avoid_constant_pool_reference): Check that
7467 offset is non-negative and less than cmode size before
7468 calling simplify_subreg.
7469
b6f3c6f1 74702013-02-11 Richard Biener <rguenther@suse.de>
7471
7472 PR tree-optimization/56264
7473 * cfgloop.h (fix_loop_structure): Adjust prototype.
7474 * loop-init.c (fix_loop_structure): Return the number of
7475 newly discovered loops.
7476 * tree-cfgcleanup.c (repair_loop_structures): When new loops
7477 are discovered, do a full loop-closed SSA rewrite.
7478
4d739378 74792013-02-11 Richard Biener <rguenther@suse.de>
7480
7481 PR tree-optimization/56273
7482 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
7483 first VRP run.
7484 (check_array_ref): Fix missing newline in dumps.
7485 (search_for_addr_array): Likewise.
7486
31a1ce3e 74872013-02-09 David Edelsohn <dje.gcc@gmail.com>
7488
7489 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
7490
18163dd8 74912013-02-09 Jakub Jelinek <jakub@redhat.com>
7492
7493 PR target/56256
7494 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
7495
4aa54340 74962013-02-08 Vladimir Makarov <vmakarov@redhat.com>
7497
7498 PR rtl-optimization/56246
31a1ce3e 7499 * lra-constraints.c (simplify_operand_subreg): Try to reuse
4aa54340 7500 reload pseudo.
7501 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
7502 constraints are satisfied.
7503
ea239197 75042013-02-08 Jeff Law <law@redhat.com>
7505
7506 PR debug/53948
7507 * emit-rtl.c (reg_is_parm_p): New function.
7508 * regs.h (reg_is_parm_p): New prototype.
7509 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
7510 callee-clobbered registers.
7511
b85af273 75122013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
7513
7514 PR target/56043
7515 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
7516 If there is no implicit builtin declaration, just return NULL.
7517
21a6219e 75182013-02-08 Uros Bizjak <ubizjak@gmail.com>
7519
7520 * config/i386/sse.md (FMAMODEM): New mode iterator.
7521 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
7522 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
7523
a3c139e5 75242013-02-08 Uros Bizjak <ubizjak@gmail.com>
e975e345 7525
a3c139e5 7526 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
7527 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
7528 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
7529
75302013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7531
7532 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
7533 (microblaze*-*-elf): Likewise.
7534 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
7535 LINK_SPEC.
7536 * config/microblaze/microblaze-c.c: Add builtin defines for
7537 _LITTLE_ENDIAN and _BIG_ENDIAN.
7538 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
7539 add to TARGET_DEFAULT flags.
e975e345 7540 Expand ASM_SPEC and LINK_SPEC.
a3c139e5 7541 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
7542 * config/microblaze/microblaze.md: Update extendsidi2 and
7543 movdi_internal instructions to use low-order / high-order reg
7544 print_operands.
7545 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
7546 options and inversemask / mask of LITTLE_ENDIAN.
7547 * config/microblaze/t-microblaze: Expand multilib options to
7548 include mlittle-endian (le) and update exceptions patterns.
7549
1a8b7013 75502013-02-08 Jakub Jelinek <jakub@redhat.com>
7551
5ef30aea 7552 PR rtl-optimization/56195
7553 * lra-constraints.c (get_reload_reg): Don't reuse regs
7554 if they have smaller mode than requested, if they have
7555 wider mode than requested, try to return a SUBREG.
7556
1a8b7013 7557 PR tree-optimization/56250
7558 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
7559 if type is unsigned and code isn't MULT_EXPR.
7560
992b7387 75612013-02-08 Georg-Johann Lay <avr@gjlay.de>
7562
7563 PR tree-optimization/56064
7564 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
7565 bits according to mode.
7566 * fixed-value.h (fixed_from_double_int)
7567 (const_fixed_from_double_int): Adjust comments.
7568
ab3c0986 75692013-02-08 Richard Biener <rguenther@suse.de>
7570
7571 PR lto/56231
7572 * lto-streamer.h (struct data_in): Remove current_file, current_line
7573 and current_col members.
7574 * lto-streamer-out.c (lto_output_location): Stream changed bits
7575 en-block for efficiency.
7576 * lto-streamer-in.c (clear_line_info): Remove.
7577 (lto_input_location): Cache current file, line and column
7578 globally via local statics. Read changed bits en-block.
7579 (input_function): Do not call clear_line_info.
7580 (lto_read_body): Likewise.
7581 (lto_input_toplevel_asms): Likewise.
7582
42540642 75832013-02-08 Michael Matz <matz@suse.de>
7584
7585 PR tree-optimization/52448
7586 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
7587 (nt_call_phase): New static.
7588 (add_or_mark_expr): Only mark accesses with newer phase than any
7589 call seen.
7590 (nonfreeing_call_p): New.
7591 (nt_init_block): Update nt_call_phase, mark blocks as visited.
7592 (nt_fini_block): Keep blocks marked as visited.
7593 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
7594
1a8dfee2 75952013-02-08 Richard Biener <rguenther@suse.de>
7596
7597 * ira.c (ira): Free broken dominator information.
7598
eaa0ee9f 75992013-02-08 Uros Bizjak <ubizjak@gmail.com>
7600
7601 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
7602
14a0d8d7 76032013-02-08 Marek Polacek <polacek@redhat.com>
7604
eaa0ee9f 7605 * cfgloop.c (verify_loop_structure): Add more checking of headers.
14a0d8d7 7606
ff829efa 76072013-02-08 Richard Biener <rguenther@suse.de>
7608
7609 PR middle-end/56181
7610 * cfgloop.h (flow_loops_find): Adjust.
7611 (bb_loop_header_p): Declare.
7612 * cfgloop.c (bb_loop_header_p): New function split out from ...
7613 (flow_loops_find): ... here. Adjust function signature,
7614 support incremental loop structure update.
7615 (verify_loop_structure): Cleanup. Verify a loop is a loop.
7616 * cfgloopmanip.c (fix_loop_structure): Move ...
7617 * loop-init.c (fix_loop_structure): ... here.
7618 (apply_loop_flags): Split out from ...
7619 (loop_optimizer_init): ... here.
7620 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
7621 in incremental mode, only remove dead loops here.
7622
eafea251 76232013-02-08 Georg-Johann Lay <avr@gjlay.de>
7624
7625 PR target/54222
7626 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
7627 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
7628 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
7629 (*round<mode>3.libgcc): New insns for fixed-modes.
7630 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
7631 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
7632 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
7633 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
7634 implementations. Define to __builtin_avr_absFX,
7635 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
7636 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
7637 __builtin_avr_countlsFX, respectively.
7638 * config/avr/avr-c.c (target.h): Include it.
7639 (enum avr_builtin_id): New enum.
7640 (avr_resolve_overloaded_builtin): New static function.
7641 (avr_register_target_pragmas): Use it to set
7642 targetm.resolve_overloaded_builtin.
7643 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
7644 tree nodes used by DEF_BUILTIN.
7645 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
7646 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
7647 <AVR_BUILTIN_xxBITS>: Same.
7648
1032e48d 76492013-02-08 Richard Biener <rguenther@suse.de>
7650
7651 * cfgloop.c (verify_loop_structure): Properly handle
7652 a loop exiting to another loop header.
7653 * ira-int.h (ira_loops): Remove.
7654 * ira.c (ira_loops): Remove.
7655 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
7656 (do_reload): Use loop_optimizer_finalize.
7657 * ira-build.c (create_loop_tree_nodes): Use get_loops and
7658 number_of_loops to access the loop tree.
7659 (more_one_region_p): Likewise.
7660 (finish_loop_tree_nodes): Likewise.
7661 (rebuild_regno_allocno_maps): Likewise.
7662 (mark_loops_for_removal): Likewise.
7663 (mark_all_loops_for_removal): Likewise.
7664 (remove_unnecessary_regions): Likewise.
7665 (ira_build): Likewise.
7666 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7667
8ff30f9a 76682013-02-08 Richard Biener <rguenther@suse.de>
7669
7670 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
7671 * ipa-pure-const.c (analyze_function): Avoid calling
7672 mark_irreducible_loops twice.
eaa0ee9f 7673 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
8ff30f9a 7674
690bfd6a 76752013-02-07 David S. Miller <davem@davemloft.net>
7676
7677 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
7678 on 'reg'.
7679 * var-tracking.c (vt_add_function_parameter): Test the presence of
7680 HAVE_window_save properly and do not remap argument registers when
7681 we have a leaf function.
7682
7a87c8e1 76832013-02-07 Uros Bizjak <ubizjak@gmail.com>
7684
7685 PR bootstrap/56227
7686 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
7687 instead of "ll".
7688 * config/i386/i386.c (ix86_print_operand): Ditto.
7689
92dfb77d 76902013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7691
7a87c8e1 7692 * lra-constraints.c (process_alt_operands): Fix recently added comment.
92dfb77d 7693
2e620dc7 76942013-02-07 Vladimir Makarov <vmakarov@redhat.com>
7695
7696 PR rtl-optimization/56225
7697 * lra-constraints.c (process_alt_operands): Check that reload hard
7698 reg can hold value for strict_low_part.
7699
67a34241 77002013-02-07 Jakub Jelinek <jakub@redhat.com>
7701
7702 PR debug/56154
7703 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
7704 dwarf2out_end_function.
7705 (in_first_function_p, maybe_at_text_label_p,
7706 first_loclabel_num_not_at_text_label): New variables.
7707 (dwarf2out_var_location): In the first function find out
7a87c8e1 7708 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
67a34241 7709 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
7710 functions.
7711
a24ec999 77122013-02-07 Eric Botcazou <ebotcazou@adacore.com>
7713
7714 PR rtl-optimization/56178
7715 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
7716 SUBREG of a register. Tidy up related block of code.
7717 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
7718 note if the source is a register or a SUBREG of a register.
7719
bef70214 77202013-02-07 Jakub Jelinek <jakub@redhat.com>
7721
7722 PR target/56228
7723 * config/rs6000/rs6000.md (ptrm): New mode attr.
7724 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
7725 call_value_indirect_aix<pttrsize>,
7726 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
7727 m in constraints.
7728
f30f08a4 77292013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7730
7731 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
7732 if -bnortl. Convert to strcmp and strncmp.
7733
9c74eaeb 77342013-02-07 Alan Modra <amodra@gmail.com>
7735
7736 PR target/54009
7737 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
7738 addresses won't wrap when offsetting.
7739 (rs6000_secondary_reload): Provide secondary reloads needed for
7740 wrapping LO_SUM addresses.
7741
e7306dad 77422013-02-06 Thomas Schwinge <thomas@codesourcery.com>
7743
7744 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
7745 MACH, just __MACH__.
7746
caa1ac55 77472013-02-06 Richard Biener <rguenther@suse.de>
7748
7749 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
7750 instead of calling fix_loop_structure.
7751
b8214689 77522013-02-06 Jakub Jelinek <jakub@redhat.com>
7753
7754 PR middle-end/56217
7755 * omp-low.c (use_pointer_for_field): Return false if
7756 lower_send_shared_vars doesn't generate any copy-out code.
7757
fb848efb 77582013-02-06 Tom de Vries <tom@codesourcery.com>
7759
7760 PR rtl-optimization/56131
7761 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
7762 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
7763 of the label is NULL. Add comment.
7764
2a111350 77652013-02-05 Jakub Jelinek <jakub@redhat.com>
7766
4f364235 7767 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
7768
5f13745b 7769 PR sanitizer/55374
7770 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
7771 (STATIC_LIBTSAN_LIBS): Likewise.
7772 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
7773 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
7774 is defined, don't add anything else beyond that.
7775 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
7776 (LINK_COMMAND_SPEC): Use them.
7777
2a111350 7778 PR tree-optimization/56205
7779 * tree-stdarg.c (check_all_va_list_escapes): Return true if
7780 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
7781 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
7782
bc17236a 77832013-02-05 Richard Biener <rguenther@suse.de>
7784
7785 PR tree-optimization/53342
7786 PR tree-optimization/53185
7787 * tree-vectorizer.h (vect_check_strided_load): Remove.
7788 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
7789 not disallow peeling for vectorized strided loads.
7790 (vect_check_strided_load): Make static and simplify.
7791 (vect_analyze_data_refs): Adjust.
7792 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
7793 correctly when vectorizing strided loads.
7794
b6a9ee95 77952013-02-05 Richard Biener <rguenther@suse.de>
7796
7797 * doc/install.texi: Refer to ISL, not PPL.
7798
8afc926b 77992013-02-05 Jan Hubicka <jh@suse.cz>
7800
b9b931d9 7801 PR tree-optimization/55789
7802 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
7803
78042013-02-05 Jan Hubicka <jh@suse.cz>
7805
7806 PR tree-optimization/55789
8afc926b 7807 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
7808 the dead call anyway.
7809
b514e580 78102013-02-05 Eric Botcazou <ebotcazou@adacore.com>
7811
7812 PR sanitizer/55374
7813 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
7814
78152013-02-04 Alexander Potapenko <glider@google.com>
7816 Jack Howarth <howarth@bromo.med.uc.edu>
4b313269 7817 Jakub Jelinek <jakub@redhat.com>
7818
7819 PR sanitizer/55617
7820 * config/darwin.c (sort_ctor_records): Stabilized qsort
7821 on constructor priority by using original position.
7822 (finalize_ctors): New routine to sort constructors by
7823 priority before use in assemble_integer.
7824 (machopic_asm_out_constructor): Use finalize_ctors if needed.
7825
4475ab54 78262013-02-04 Jakub Jelinek <jakub@redhat.com>
7827
7828 PR libstdc++/54314
7829 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
7830 about visibility on artificial decls.
7831 * config/sol2.c (solaris_assemble_visibility): Likewise.
7832
f04dc164 78332013-02-04 Kai Tietz <ktietz@redhat.com>
7834
7835 PR target/56186
7836 * config/i386/i386.c (function_value_ms_64): Add additional valtype
7837 argument and improve checking of return-argument types for 16-byte
7838 modes.
7839 (ix86_function_value_1): Add additional valtype argument on call
7840 of function_value_64.
7841 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
7842 handling infunction_value_64 function.
7843
f3567af6 78442013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7845
4475ab54 7846 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
f3567af6 7847
5342937d 78482013-02-04 Richard Biener <rguenther@suse.de>
7849
7850 PR tree-optimization/56188
7851 * tree-ssa-structalias.c (label_visit): Consider case with
7852 initially non-empty points-to set.
7853 (perform_var_substitution): Dump node mapping and clean up.
7854
871609a8 78552013-02-04 Richard Guenther <rguenther@suse.de>
7856
7857 PR lto/56168
7858 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
7859 node prevail as last resort.
7860 (lto_symtab_merge_decls): Remove guard on LTRANS here.
7a87c8e1 7861 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
871609a8 7862
98102711 78632013-02-04 Richard Biener <rguenther@suse.de>
7864
7865 PR tree-optimization/56113
7866 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
7867 Merge into ...
7868 (equiv_class_lookup_or_add): ... this.
7869 (label_visit): Adjust and fix error in previous patch.
7870 (perform_var_substitution): Adjust.
7871
6c049e03 78722013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
7873
7874 * config/sh/divtab.c: Fix formatting and comments throughout the file.
7875 * config/sh/sh4-300.md: Likewise.
7876 * config/sh/sh4a.md: Likewise.
7877 * config/sh/constraints.md: Likewise.
7878 * config/sh/sh.md: Likewise.
7879 * config/sh/netbsd-elf.h: Likewise.
7880 * config/sh/predicates.md: Likewise.
7881 * config/sh/sh-protos.h: Likewise.
7882 * config/sh/ushmedia.h: Likewise.
7883 * config/sh/linux.h: Likewise.
7884 * config/sh/sh.c: Likewise.
7885 * config/sh/superh.h: Likewise.
7886 * config/sh/elf.h: Likewise.
7887 * config/sh/sh4.md: Likewise.
7888 * config/sh/sh.h: Likewise.
7889
e8248b41 78902013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7891
7892 * config/pa/constraints.md: Adjust unused letters. Change "T"
7893 constraint to match_test floating_point_store_memory_operand().
7894 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
7895 (base14_operand): New.
7896 (floating_point_store_memory_operand): New.
7897 (integer_store_memory_operand): Revise to use base14_operand and
7898 reg_plus_base_memory_operand.
7899 (move_dest_operand): Allow symbolic_memory_operands.
7900 (symbolic_memory_operand): Check for LO_SOM.
7901 (symbolic_operand): Change default case to break.
7902 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
7903 CONST_DOUBLE values to be reloaded by putting them into memory when
7904 the destination is a floating point register.
7905 (movdf): Remove code to handle CONST_DOUBLE.
7906 (movsf): Likewise.
7907 (reload_indf_r1): New.
7908 (reload_insf_r1): New.
7909 Consistently use "Q" and "T" constraints with integer and floating
7910 point move instructions, respectively.
7911 (movdi): Remove FAIL.
7912 Change predicate for source operand unamed DImode move from
7913 general_operand to move_src_operand.
7914 (umulsidi3): Change predicate for destination operand to
7915 register_operand.
7916 Likewise for similar unamed patterns.
7917 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
7918 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
7919 (hppa_legitimize_address): Simplify mask calculation.
7920 (pa_emit_move_sequence): Revised handling of secondary reloads from
7921 REG+D addresses for floating point loads and stores. Directly handle
7922 loading CONST0_RTX (mode) to a floating point register.
7923 (pa_secondary_reload): Handle reloading DF and SFmode constant values
7924 to floating point registers. Don't restrict secondary reloads to
7925 floating point registers to integer modes. Revise some comments and
7926 cleanup some code.
7927 (TARGET_LEGITIMATE_ADDRESS_P): Define.
7928 (pa_legitimate_address_p): New.
7929 (pa_legitimize_reload_address): New.
7930 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
7931 (STRICT_REG_OK_FOR_BASE_P): New.
7932 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
7933 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
7934
8bd7002d 79352013-02-03 David Edelsohn <dje.gcc@gmail.com>
7936 Andrew Dixie <andrewd@gentrack.com>
7937
7938 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
7939 flag set.
7940
bd23a499 79412013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
7942
7943 * expmed.c (extract_bit_field_1): Pass the full width of the
7944 structure to get_best_reg_extraction_insn.
7945
a8af2dd5 79462013-02-01 David Edelsohn <dje.gcc@gmail.com>
7947
7948 PR target/54601
7949 * configure.ac (use_cxa_atexit): Add AIX.
7950 * configure: Regenerate.
7951
7952 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
7953
2436e54f 79542013-02-01 Jakub Jelinek <jakub@redhat.com>
7955
7956 PR debug/54793
7957 * final.c (need_profile_function): New variable.
7958 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
7959 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
7960 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
7961 notes, targetm.asm_out.function_prologue doesn't emit anything,
7962 HAVE_prologue and profiler should be emitted before prologue,
7963 set need_profile_function instead of emitting it.
7964 (final_scan_insn): If need_profile_function, emit
7965 profile_function on the first NOTE_INSN_BASIC_BLOCK or
7966 NOTE_INSN_FUNCTION_BEG note.
7967
79682013-02-01 Richard Henderson <rth@redhat.com>
5b0b7360 7969
7970 * config/rs6000/rs6000.md (smulditi3): New.
7971 (umulditi3): New.
7972
67336b74 7973 * config/alpha/alpha.md (umulditi3): New.
7974
29f92520 79752013-02-01 David Edelsohn <dje.gcc@gmail.com>
7976
7977 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
7978 (ASM_OUTPUT_ALIGNED_LOCAL): New.
7979
c74cfdaf 79802013-02-01 Richard Biener <rguenther@suse.de>
7981
7982 PR tree-optimization/56113
7983 * tree-ssa-structalias.c (label_visit): Reduce work for
7984 single-predecessor nodes.
7985
6b40a1a5 79862013-02-01 Eric Botcazou <ebotcazou@adacore.com>
7987
7988 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
7989 range isn't testing for zero.
7990
9add6570 79912013-01-31 Steven Bosscher <steven@gcc.gnu.org>
7992
7993 PR middle-end/56113
7994 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
7995
9a5788ea 79962013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
7997 Nick Clifton <nickc@redhat.com>
7998
7999 * config/v850/constraints.md (Q): Define as a memory constraint.
8000 * config/v850/predicates.md (label_ref_operand): New predicate.
8001 (e3v5_shift_operand): New predicate.
8002 (ior_operator): New predicate.
8003 * config/v850/t-v850: Add e3v5 multilib.
8004 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
8005 (v850_gen_movdi): Prototype.
8006 * config/v850/v850.c: Add support for e3v5 architecture.
8007 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
8008 TARGET_V850E_UP.
8009 (construct_save_jarl): Add e3v5 long JARL support.
8010 (v850_adjust_insn_length): New function. Adjust length of call
8011 insns when using e3v5 instructions.
8012 (v850_gen_movdi): New function: Generate instructions to move a
8013 DImode value.
8014 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
8015 (CPP_SPEC): Define __v850e3v5__ as appropriate.
8016 (TARGET_USE_FPU): Enable for e3v5.
8017 (CONST_OK_FOR_W): New macro.
8018 (ADJUST_INSN_LENGTH): Define.
8019 * config/v850/v850.md (UNSPEC_LOOP): Define.
8020 (attr cpu): Add v850e3v5.
8021 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
8022 (movdi): New pattern.
8023 (movdi_internal): New pattern.
8024 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
8025 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
8026 (cstoresf4): Likewise.
8027 (cstoredf4): Likewise.
8028 (insv): New pattern.
8029 (rotlso3_a): New pattern.
8030 (rotlsi3_b): New pattern
8031 (rotlsi3_v850e3v5): New pattern.
8032 (doloop_begin): New pattern.
8033 (fix_loop_counter): New pattern.
8034 (doloop_end): New pattern.
8035 (branch_normal): Add e3v5 long branch support.
8036 (branch_invert): Likewise.
8037 (branch_z_normal): Likewise.
8038 (branch_z_invert): Likewise.
8039 (branch_nz_normal): Likewise.
8040 (branch_nz_invert): Likewise.
8041 (call_internal_short): Add e3v5 register-indirect JARL support.
8042 (call_internal_long): Likewise.
8043 (call_value_internal_short): Likewise.
8044 (call_value_internal_long): Likewise.
8045 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
8046 (mloop): New option.
8047 * config.gcc: Add support for configuring v840e3v5 target.
7a87c8e1 8048 * doc/invoke.texi: Document new v850 specific command line options.
9a5788ea 8049
7a85a361 80502013-01-31 Paul Koning <ni1d@arrl.net>
8051
8052 PR debug/55059
8053 PR debug/54508
8054 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
8055 children if parent is a class.
8056 (prune_unused_types_prune): Don't add DW_AT_declaration.
8057
a8bcfda2 80582013-01-31 Richard Biener <rguenther@suse.de>
8059
8060 PR tree-optimization/56157
8061 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
8062 match up operand with SLP child.
8063
6b71bf7b 80642013-01-31 Jason Merrill <jason@redhat.com>
8065
ebb59397 8066 PR debug/54410
6b71bf7b 8067 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
8068 parameters the first time.
8069 (gen_scheduled_generic_parms_dies): Check completeness here.
8070
56dfa44a 80712013-01-31 Richard Biener <rguenther@suse.de>
8072
8073 PR middle-end/53073
8074 * common.opt (faggressive-loop-optimizations): New flag,
8075 enabled by default.
8076 * doc/invoke.texi (faggressive-loop-optimizations): Document.
8077 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
8078 infer_loop_bounds_from_undefined by it.
8079
5789f1f8 80802013-01-31 Richard Biener <rguenther@suse.de>
8081
8082 PR tree-optimization/56150
8083 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
8084 visit virtual operands.
8085 (find_uses_to_rename_bb): Likewise.
8086
80872013-01-31 Richard Biener <rguenther@suse.de>
fad68b9f 8088
8089 PR tree-optimization/56150
8090 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
8091 mixed store non-store stmts.
8092
ae0c3984 80932013-01-30 Jakub Jelinek <jakub@redhat.com>
8094
53486a83 8095 PR sanitizer/55374
8096 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
8097 LIBASAN_EARLY_SPEC is defined.
8098 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
8099 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
8100 before %o.
8101 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
8102
ae0c3984 8103 PR c++/55742
8104 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
8105 invalid args instead of ICEing on it.
8106 (ix86_valid_target_attribute_tree): Return error_mark_node if
8107 ix86_valid_target_attribute_inner_p failed.
8108 (ix86_valid_target_attribute_p): Return false only if
8109 ix86_valid_target_attribute_tree returned error_mark_node. Allow
8110 target("default") attribute.
8111 (sorted_attr_string): Change argument from const char * to tree,
8112 merge in all target attribute arguments rather than just one.
8113 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
8114 instead of free. Avoid using strcat.
8115 (ix86_mangle_function_version_assembler_name): Mangle
8116 target("default") as if no target attribute is present. Adjust
8117 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
8118 instead of xmalloc and XDELETEVEC instead of free.
8119 (ix86_function_versions): Don't return true if one of the decls
8120 doesn't have target attribute. If they don't and one of the decls
8121 is DECL_FUNCTION_VERSIONED, report an error. Adjust
8122 sorted_attr_string caller. Use XDELETEVEC instead of free.
8123 (ix86_supports_function_versions): Remove.
8124 (make_name): Fix up formatting.
8125 (make_dispatcher_decl): Remove resolver_name and its initialization.
8126 Avoid leaking memory.
8127 (is_function_default_version): Return true if there is
8128 target("default") attribute rather than no target attribute at all.
8129 (make_resolver_func): Avoid leaking memory.
8130 (ix86_generate_version_dispatcher_body): Likewise.
8131 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
8132 * target.def (supports_function_versions): Remove.
8133 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
8134 * doc/tm.texi: Regenerated.
8135
85276115 81362013-01-30 Vladimir Makarov <vmakarov@redhat.com>
8137
8138 PR rtl-optimization/56144
8139 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
8140 for values with side effects.
8141
545cf51c 81422013-01-30 Richard Biener <rguenther@suse.de>
8143
8144 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
8145 (sparseset_pop): Likewise.
8146 * cfganal.c (compute_idf): Likewise. Increase work-stack size
8147 to be able to use quick_push in the worker loop.
8148
022d4ccc 81492013-01-30 Marek Polacek <polacek@redhat.com>
8150
8151 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
8152
224a26c5 81532013-01-30 Richard Biener <rguenther@suse.de>
8154
8155 PR lto/56147
7a87c8e1 8156 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
224a26c5 8157
52cd005d 81582013-01-30 Georg-Johann Lay <avr@gjlay.de>
8159
8160 PR tree-optimization/56064
8161 * fixed-value.c (fixed_from_double_int): New function.
8162 * fixed-value.h (fixed_from_double_int): New prototype.
8163 (const_fixed_from_double_int): New static inline function.
8164 * fold-const.c (native_interpret_fixed): New static function.
8165 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
8166 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
8167 (native_encode_fixed): New static function.
8168 (native_encode_expr) <FIXED_CST>: Use it.
8169 (native_interpret_int): Move double_int worker code to...
8170 * double-int.c (double_int::from_buffer): ...this new static method.
8171 * double-int.h (double_int::from_buffer): Prototype it.
8172
dd6f8b2c 81732013-01-30 Richard Biener <rguenther@suse.de>
8174
8175 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
8176 New pointer-map and obstack.
8177 (init_alias_vars): Allocate pointer-map and obstack.
8178 (delete_points_to_sets): Free them.
8179 (find_what_var_points_to): Cache result.
8180 (find_what_p_points_to): Adjust for changed interface of
8181 find_what_var_points_to.
8182 (compute_points_to_sets): Likewise.
8183 (ipa_pta_execute): Likewise.
8184
a602740a 81852013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8186
8187 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
8188 * configure: Regenerate.
8189 * config.in: Regenerate.
8190 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
8191 #nobits/#progbits if supported.
8192
9081e4b3 81932013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
8194
8195 PR target/56121
8196 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
8197 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
8198 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
8199
a3826176 82002013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8201
6effa4dc 8202 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
8203 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
a3826176 8204
f9e7462d 82052013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8206
6effa4dc 8207 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
8208 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
f9e7462d 8209
eca9ccc8 82102013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8211
6effa4dc 8212 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
8213 declaration.
8214 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
8215 * config/arm/cortex-a7.md: New bypasses using
8216 arm_mac_accumulator_is_result.
eca9ccc8 8217
fd923cfd 82182013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8219
6effa4dc 8220 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
fd923cfd 8221 (cortex_a7_neon_mla): Likewise.
6effa4dc 8222 (cortex_a7_fpfmad): New reservation.
8223 (cortex_a7_fpmacs): Use ffmas and update required units.
8224 (cortex_a7_fpmuld): Update required units and latency.
8225 (cortex_a7_fpmacd): Likewise.
8226 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
8227 (cortex_a7_neon). Likewise.
8228 (bypass) Update participating units.
fd923cfd 8229
56df0c05 82302013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
8231
6effa4dc 8232 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
8233 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
8234 from fmac to ffma.
8235 * config/arm/vfp11.md (vfp_farith): Use ffmas.
8236 (vfp_fmul): Use ffmad.
8237 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
8238 (cortex_r4_fmacd): Use ffmad.
8239 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
8240 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
8241 (cortex_a9_fmacd): Use ffmad.
8242 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
8243 (cortex_a8_vfp_macd): Use ffmad.
8244 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
8245 (cortex_a5_fpmacd): Use ffmad.
8246 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
8247 (cortex_a15_vfp_macd): Use ffmad.
8248 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
56df0c05 8249
f88705ba 82502013-01-29 Jason Merrill <jason@redhat.com>
8251
8252 PR libstdc++/54314
8253 * varasm.c (default_assemble_visibility): Don't warn about
8254 visibility on artificial decls.
8255
783d1e89 82562013-01-29 Richard Biener <rguenther@suse.de>
8257
8258 PR tree-optimization/56113
8259 * tree-ssa-structalias.c (equiv_class_lookup): Also return
8260 the bitmap leader.
8261 (label_visit): Free duplicate bitmaps and record the leader instead.
8262 (perform_var_substitution): Adjust.
8263
5daac166 82642013-01-29 Richard Biener <rguenther@suse.de>
8265
8266 PR tree-optimization/55270
8267 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
8268 the CFG, schedule loops for fixup.
8269
f716766f 82702013-01-29 Nick Clifton <nickc@redhat.com>
8271
8272 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
8273 SP_REG.
8274
b433697b 82752013-01-28 Leif Ekblad <leif@rdos.net>
8276
8277 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
8278 * config/i386/i386.h (TARGET_RDOS): New macro.
8279 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
8280 * config/i386/i386.c (ix86_option_override_internal): For 64bit
8281 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
8282 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
8283 DEFAULT_LARGE_SECTION_THRESHOLD.
8284 * config/i386/i386.md (R14_REG, R15_REG): New constants.
8285 * config/i386/rdos.h: New file.
8286 * config/i386/rdos64.h: New file.
8287
25399338 82882013-01-28 Bernd Schmidt <bernds@codesourcery.com>
8289
8290 PR other/54814
8291 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
8292 TEST_HARD_REG_BIT.
8293
12e51a1d 82942013-01-28 Jakub Jelinek <jakub@redhat.com>
8295
8296 PR rtl-optimization/56117
8297 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
8298 call cselib_lookup_from_insn on the MEM before calling
8299 add_insn_mem_dependence.
8300
688b0b5b 83012013-01-28 Richard Biener <rguenther@suse.de>
8302
8303 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
8304 to a stmt that didn't have one.
8305 (copy_phis_for_bb): Likewise for PHI arguments.
8306 (copy_debug_stmt): Likewise for debug stmts.
8307
ac7a1007 83082013-01-28 Richard Biener <rguenther@suse.de>
8309
8310 PR tree-optimization/56034
7a87c8e1 8311 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
ac7a1007 8312 (partition_builtin_p): Adjust.
8313 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
8314 it is the last partition.
8315 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
8316 up the vertex for the definition.
8317 (classify_partition): Classify whether a partition is a
8318 PKIND_REDUCTION, thus has uses outside of the loop.
8319 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
8320 Merge all PKIND_REDUCTION partitions into the last partition.
8321 (tree_loop_distribution): Seed partitions from reductions as well.
8322
04ff97ce 83232013-01-28 Jakub Jelinek <jakub@redhat.com>
8324
0190fe95 8325 PR tree-optimization/56125
8326 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
8327 pow(x,c) into sqrt(x) * powi(x, n/2) or
8328 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
8329 optimizing for size.
8330 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
8331 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
8332 integer.
8333
04ff97ce 8334 PR tree-optimization/56094
8335 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
8336 to UNKNOWN_LOCATION while gimplifying expr.
8337
f2897e01 83382013-01-27 Uros Bizjak <ubizjak@gmail.com>
8339
8340 PR target/56114
8341 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
8342 operand 0 in movabs insn template for -masm=intel asm alternative.
8343 (*movabs<mode>_2): Ditto for operand 1.
8344
0190fe95 83452013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
c48df545 8346
8347 PR target/54663
8348 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
8349 of microblaze-c.o
8350
0190fe95 83512013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
98f2ac05 8352
8353 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
8354 tm_file.
8355
0190fe95 83562013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9fc8b0bf 8357
8358 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
8359 Undef to avoid warning.
8360
82163b89 83612013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
8362
8363 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
8364 * configure: Regenerate.
8365
6cc085b6 83662013-01-25 Jakub Jelinek <jakub@redhat.com>
8367
8368 PR tree-optimization/56098
8369 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
8370 for stmts with volatile ops.
8371 (cond_store_replacement): Don't optimize if assign has volatile ops.
8372 (cond_if_else_store_replacement_1): Don't optimize if either
8373 then_assign or else_assign have volatile ops.
8374 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
8375 volatile ops.
8376
d2ac69cc 83772013-01-25 Georg-Johann Lay <avr@gjlay.de>
8378
8379 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
8380
63b6db20 83812013-01-25 Georg-Johann Lay <avr@gjlay.de>
8382
8383 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
8384 missing ':' in asm example.
8385
431fc079 83862013-01-25 Tejas Belagod <tejas.belagod@arm.com>
8387
8388 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
8389 entries into lane and laneq entries.
f2897e01 8390 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
8391 Remove AdvSIMD scalar modes.
431fc079 8392 (aarch64_sq<r>dmulh_laneq<mode>): New.
8393 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
8394 modes.
8395 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
8396 builtin implementations to relfect changes in RTL in aarch64-simd.md.
8397 * config/aarch64/iterators.md (VCOND): New.
8398 (VCONQ): New.
8399
f3297245 84002013-01-25 Georg-Johann Lay <avr@gjlay.de>
8401
8402 PR target/54222
8403 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
8404 Add NULL LIBNAME argument to existing definitions.
8405 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
8406 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
8407 * config/avr/avr.c (DEF_BUILTIN): Same.
8408 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
8409 (avr_expand_builtin): Expand to a vanilla call if a libgcc
8410 implementation is available (DECL_ASSEMBLER_NAME is set).
8411 (avr_fold_absfx): New static function.
8412 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
8413 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
8414 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
8415 AVR_BUILTIN_ABSLLK.
8416 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
8417 (abshk, absk, abslk, absllk): Provide as static inline functions.
8418
8e3bada1 84192013-01-25 Marek Polacek <polacek@redhat.com>
8420
8421 PR tree-optimization/56035
8422 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
8423
cd0e2161 84242012-01-24 Uros Bizjak <ubizjak@gmail.com>
8425
8426 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
8427 (*movtf_internal_rex64): Add (!o,C) alternative
8428 (*movxf_internal_rex64): Ditto.
8429 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
8430
2b139ca6 84312013-01-24 Shenghou Ma <minux.ma@gmail.com>
8432
8433 * doc/invoke.texi: fix typo.
8434 * doc/objc.texi: fix typo.
8435
1283f262 84362013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
8437
8438 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
8439 for the first two alternatives.
8440
5cc13354 84412013-01-24 Diego Novillo <dnovillo@google.com>
8442
f2897e01 8443 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
5cc13354 8444 (ggc-zone.o): Remove.
8445 * configure.ac: Remove option --with-gc.
8446 * configure: Re-generate.
8447 * doc/install.texi: Remove documentation for --with-gc.
8448 * gengtype.c (write_enum_defn): Remove. Update all users.
8449 (write_Types_process_field): Remove generation of gt_e_* argument.
8450 (output_type_enum): Remove. Update all users.
8451 (write_enum_defn): Remove. Update all users.
8452 (enum alloc_zone): Remove. Update all users.
f2897e01 8453 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5cc13354 8454 * ggc-common.c (ggc_splay_alloc): Remove first argument.
8455 Update all callers.
8456 (struct ptr_data): Remove field TYPE. Update all users.
f2897e01 8457 (gt_pch_note_object): Remove argument TYPE. Update all users.
5cc13354 8458 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
8459 Update all users.
96e241e8 8460 * ggc-none.c (ggc_alloc_typed_stat): Remove.
5cc13354 8461 (struct alloc_zone): Remove.
8462 (ggc_internal_alloc_zone_stat): Remove.
8463 (ggc_internal_cleared_alloc_zone_stat): Remove.
8464 * ggc-page.c (ggc_alloc_typed_stat): Remove.
f2897e01 8465 (ggc_pch_count_object): Remove last argument. Update all users.
8466 (ggc_pch_alloc_object): Remove last argument. Update all users.
5cc13354 8467 (struct alloc_zone): Remove.
8468 * ggc-zone.c: Remove.
f2897e01 8469 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
5cc13354 8470 (struct alloc_zone): Remove.
8471 (ggc_alloc_typed_stat): Remove.
8472 (ggc_alloc_typed): Remove.
8473 (ggc_splay_alloc): Remove first argument.
8474 (rtl_zone): Remove. Update all users.
8475 (tree_zone): Remove. Update all users.
8476 (tree_id_zone): Remove. Update all users.
8477 (ggc_internal_zone_alloc_stat): Remove. Update all users.
f2897e01 8478 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
5cc13354 8479 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
f2897e01 8480 * tree-ssanames.c: Remove references to zone allocator in comments.
5cc13354 8481
2b5c3dd1 84822013-01-24 Georg-Johann Lay <avr@gjlay.de>
8483
8484 * config/avr/avr.c (avr_out_fract): Make register numbers that
8485 might be outside of source operand signed.
8486
80946863 84872013-01-24 Uros Bizjak <ubizjak@gmail.com>
8488
8489 * config/i386/constraints.md (Yf): New constraint.
8490 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
8491 of f constraint to conditionaly disable x87 register preferences.
8492 (*movdf_internal): Ditto.
8493 (*movsf_internal): Ditto.
8494
aa46b107 84952013-01-24 Steven Bosscher <steven@gcc.gnu.org>
8496
8497 PR inline-asm/55934
8498 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
8499 that have operands with impossible constraints.
8500 Add a FIXME for a speed-up opportunity.
8501 * lra-constraints.c (process_alt_operands): Verify that a class
8502 selected from constraints on asms is valid for the operand mode.
8503 (curr_insn_transform): Remove incorrect comment.
8504
657dd719 85052013-01-23 David Edelsohn <dje.gcc@gmail.com>
8506
8507 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
8508 TOC operand is a valid symbol ref in the constant pool.
8509
85102013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
d6fe7425 8511
96e241e8 8512 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
d6fe7425 8513
c9b315f4 85142013-01-23 Georg-Johann Lay <avr@gjlay.de>
8515
8516 PR target/54222
8517 * config/avr/stdfix.h: New file.
8518 * t-avr (stdfix-gcc.h): New rule to build it.
8519 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
8520
4a2c1ffc 85212013-01-23 Kostya Serebryany <kcc@google.com>
8522
f2897e01 8523 * config/darwin.h: remove dependency on
8524 CoreFoundation (asan on Mac OS).
4a2c1ffc 8525
b8eae306 85262013-01-23 Jakub Jelinek <jakub@redhat.com>
8527
8528 PR target/49069
8529 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
8530 instead of cmpdi_operand for first comparison operand.
8531 Don't assert that comparison operands aren't both constants.
8532
feadd43d 85332013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
8534
8535 * doc/install.texi (Downloading the Source): Update references to
8536 downloading separate components.
8537
85382013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
32b80c6a 8539
8540 * doc/extend.texi (__int128): Improve grammar.
8541
feadd43d 85422013-01-22 Uros Bizjak <ubizjak@gmail.com>
38a03d63 8543
8544 PR target/56028
8545 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
8546 alternative to (o,r).
8547 (*movdi_internal_rex64): Remove (!o,n) alternative.
8548 (DImode immediate->memory splitter): Remove.
8549 (DImode immediate->memory peephole2): Remove.
8550 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
8551 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
8552 alternative to (!o,*r).
8553 (*movtf_internal_sse): New pattern.
8554 (*movxf_internal_rex64): New pattern.
8555 (*movxf_internal): Disable for TARGET_64BIT.
8556 (*movdf_internal_rex64): Remove (!o,F) alternative.
8557
e6d8288f 85582013-01-22 Jakub Jelinek <jakub@redhat.com>
8559
b2d978a6 8560 PR middle-end/56074
8561 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
8562 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
8563 * tree-vect-loop-manip.c (find_loop_location): Also ignore
8564 stmt locations where LOCATION_LOCUS of the stmt location is
8565 UNKNOWN_LOCATION or BUILTINS_LOCATION.
8566
e6d8288f 8567 PR target/55686
8568 * config/i386/i386.md (UNSPEC_STOS): New.
8569 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
8570 *strsetqi_1): Add UNSPEC_STOS.
8571
81b38777 85722013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
8573
8574 PR c++/56067
8575 * doc/invoke.texi: Remove left over -Wsynth example.
8576
3e97846e 85772013-01-21 Jakub Jelinek <jakub@redhat.com>
8578
8579 PR tree-optimization/56051
8580 * fold-const.c (fold_binary_loc): Don't fold
8581 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
8582 a narrowing conversion, or widening conversion from signed
8583 to unsigned.
8584
feadd43d 85852013-01-21 Uros Bizjak <ubizjak@gmail.com>
ae3eaa0f 8586
8587 PR rtl-optimization/56023
8588 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
8589 dependent on debug instruction.
8590
a956a7a6 85912013-01-21 Martin Jambor <mjambor@suse.cz>
8592
8593 PR middle-end/56022
8594 * function.c (allocate_struct_function): Call
8595 invoke_set_current_function_hook earlier.
8596
cd5c8367 85972013-01-21 Jakub Jelinek <jakub@redhat.com>
8598
8599 * reload1.c (init_reload): Only initialize reload_obstack
8600 during the first call.
8601
dcb14b61 86022013-01-21 Marek Polacek <polacek@redhat.com>
8603
8604 * cfgloop.c (verify_loop_structure): Fix up grammar.
8605
1a262a91 86062013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
8607
8608 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
8609 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
8610
43115c41 86112013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8612
8613 PR target/56058
8614 * config/arm/marvell-pj4.md: Update copyright year.
8615 Fix up use of alu to alu_reg and simple_alu_imm.
8616
feadd43d 86172013-01-21 Uros Bizjak <ubizjak@gmail.com>
914b013a 8618
8619 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
8620
e0420317 86212013-01-20 Vladimir Makarov <vmakarov@redhat.com>
8622
8623 PR target/55433
8624 * lra-constraints.c (curr_insn_transform): Don't reuse original
914b013a 8625 insn for secondary memory move when memory mode should be different.
e0420317 8626
e7bca8d9 86272013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8628
8629 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
8630 atomic_storedi_1): New patterns.
8631
6470d004 86322013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8633
8634 btver2 pipeline descriptions.
8635 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
8636 descriptions.
8637 * config/i386/i386.md (btver2_decode): New type attributes.
914b013a 8638 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
6470d004 8639 type attributes.
8640 * config/i386/btver2.md: New file describing btver2 pipelines.
8641
3a73dcc2 86422013-01-19 Andrew Pinski <apinski@cavium.com>
8643
8644 PR tree-optimization/52631
8645 * tree-ssa-sccvn (visit_use): Before looking up the original
8646 statement, try looking up the simplified expression.
8647
a3076649 86482013-01-19 Anthony Green <green@moxielogic.com>
8649
8650 * config/moxie/moxie.c (moxie_expand_prologue): Set
8651 current_function_static_stack_size.
8652
16f02f09 86532013-01-18 Jakub Jelinek <jakub@redhat.com>
8654
8655 PR tree-optimization/56029
8656 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
8657 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
8658
c4c46233 86592013-01-18 Sharad Singhai <singhai@google.com>
8660
8661 PR tree-optimization/55995
8662 * dumpfile.c (dump_loc): Print location only if available.
8663 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
8664
c47331e3 86652013-01-18 Vladimir Makarov <vmakarov@redhat.com>
8666
8667 PR target/55433
8668 * lra-constraints.c (curr_insn_transform): Reuse original insn for
8669 secondary memory move.
8670 (inherit_reload_reg): Use rclass instead of cl for
8671 check_secondary_memory_needed_p.
8672
83014b20 86732013-01-18 Jakub Jelinek <jakub@redhat.com>
8674
8675 PR middle-end/56015
8676 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
914b013a 8677 the case where writing real complex part of target modifies op1.
83014b20 8678
15953bb4 86792013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
8680
8681 * config/aarch64/aarch64-simd.md
8682 (aarch64_vcond_internal<mode>): Handle unordered cases.
8683 * config/aarch64/iterators.md (v_cmp_result): New.
8684
ea7d210b 86852013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
8686 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8687
8688 * config/arm/marvell-pj4.md: New file.
8689 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
8690 * config/arm/arm.md (generic_sched): Add marvell_pj4.
8691 (generic_vfp): Likewise.
8692 * config/arm/arm-cores.def: Add marvell-pj4.
8693 * config/arm/arm-tune.md: Regenerate.
8694 * config/arm/arm-tables.opt: Regenerate.
8695 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
8696 * doc/invoke.texi: Document marvell-pj4.
8697
7a28aaef 86982013-01-18 Tejas Belagod <tejas.belagod@arm.com>
8699
8700 * config/aarch64/arm_neon.h: Map scalar types to standard types.
8701
0190fe95 87022013-01-18 Alexandre Oliva <aoliva@redhat.com>
861a6de4 8703
8704 PR debug/54114
8705 PR debug/54402
8706 PR debug/49888
8707 * var-tracking.c (negative_power_of_two_p): New.
8708 (global_get_addr_cache, local_get_addr_cache): New.
8709 (get_addr_from_global_cache, get_addr_from_local_cache): New.
8710 (vt_canonicalize_addr): Rewrite using the above. Adjust the
8711 heading comment.
8712 (vt_stack_offset_p): Remove.
8713 (vt_canon_true_dep): Always canonicalize loc's address.
8714 (clobber_overlapping_mems): Make sure we have a MEM.
8715 (local_get_addr_clear_given_value): New.
8716 (val_reset): Clear local cached entries.
8717 (compute_bb_dataflow): Create and release the local cache.
8718 Disable duplicate MEMs clobbering.
8719 (emit_notes_in_bb): Clobber MEMs likewise.
8720 (vt_emit_notes): Create and release the local cache.
8721 (vt_initialize, vt_finalize): Create and release the global
8722 cache, respectively.
914b013a 8723 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
861a6de4 8724
0190fe95 87252013-01-18 Alexandre Oliva <aoliva@redhat.com>
a9490210 8726
8727 PR libmudflap/53359
8728 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
8729 not found in the symtab.
8730
0190fe95 87312013-01-18 Alexandre Oliva <aoliva@redhat.com>
340ad617 8732
1ff3b42b 8733 PR debug/56006
340ad617 8734 PR rtl-optimization/55547
8735 PR rtl-optimization/53827
8736 PR debug/53671
8737 PR debug/49888
8738 * alias.c (offset_overlap_p): New, factored out of...
8739 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
8740 the conservative special case for symbolic constants. Don't
8741 adjust zero sizes on alignment.
8742
1bcf869e 87432013-01-18 Bernd Schmidt <bernds@codesourcery.com>
8744
8745 PR rtl-optimization/52573
8746 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
8747 REG_UNUSED for the same register.
8748
c1f96968 87492013-01-17 Richard Biener <rguenther@suse.de>
8750 Marek Polacek <polacek@redhat.com>
8751
8752 PR rtl-optimization/55833
8753 * loop-unswitch.c (unswitch_loops): Move loop verification...
8754 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
8755 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
8756 Set it to true when we're removing a loop from hierarchy tree in
8757 an irreducible region.
8758 (fix_bb_placements): Adjust caller.
8759 (fix_loop_placements): Likewise.
8760
73263209 87612013-01-17 Georg-Johann Lay <avr@gjlay.de>
8762
8763 * config/avr/builtins.def (DEF_BUILTIN): Factor out
8764 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
8765 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
8766 Remove ID. Adjust comments.
8767 * config/avr/avr-c.c (avr_builtin_name): Remove.
8768 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
8769 * config/avr/avr.c (avr_tolower): New static function.
8770 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
8771 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
8772 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
8773 default expansion.
8774
9ce07db4 87752013-01-17 Jan Hubicka <jh@suse.cz>
8776
cb7b3a2f 8777 PR tree-optimization/55273
9ce07db4 8778 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
8779
feadd43d 87802013-01-17 Uros Bizjak <ubizjak@gmail.com>
a5b5a55a 8781
8782 PR target/55981
8783 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
8784 store through atomic_store<mode>_1.
8785 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
8786
3f442959 87872013-01-17 Martin Jambor <mjambor@suse.cz>
8788
8789 PR tree-optimizations/55264
8790 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
8791 for virtual methods.
8792 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
8793 virtual methods before inlining is over.
8794 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
8795 virtual functions.
8796 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
8797 non-virtual.
8798
a2e20fd2 87992013-01-16 Vladimir Makarov <vmakarov@redhat.com>
8800
8801 PR rtl-optimization/56005
8802 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
8803 pending reads for prefetch.
8804
e7e5bbc5 88052013-01-16 Ian Bolton <ian.bolton@arm.com>
8806
96e241e8 8807 * config/aarch64/aarch64.md
e7e5bbc5 8808 (*cstoresi_neg_uxtw): New pattern.
8809 (*cmovsi_insn_uxtw): New pattern.
8810 (*<optab>si3_uxtw): New pattern.
8811 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
8812 (*<optab>si3_insn_uxtw): New pattern.
8813 (*bswapsi2_uxtw): New pattern.
8814
a74056fd 88152013-01-16 Richard Biener <rguenther@suse.de>
8816
8817 * tree-inline.c (tree_function_versioning): Remove set but
8818 never used variable.
8819
c9b2c569 88202013-01-16 Richard Biener <rguenther@suse.de>
8821
8822 PR tree-optimization/55964
8823 * tree-flow.h (rename_variables_in_loop): Remove.
8824 (rename_variables_in_bb): Likewise.
8825 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
8826 (copy_loop_before): Adjust and delete update-ssa status.
8827 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
a5b5a55a 8828 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
c9b2c569 8829 (rename_variables_in_loop): Remove.
8830 (slpeel_update_phis_for_duplicate_loop): Likewise.
8831 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
8832 use available cfg machinery instead of duplicating it.
8833 Update PHI nodes and perform poor-mans SSA update here.
8834 (slpeel_tree_peel_loop_to_edge): Adjust.
8835
d590d541 88362013-01-16 Richard Biener <rguenther@suse.de>
8837
8838 PR tree-optimization/54767
8839 PR tree-optimization/53465
8840 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
8841 (vrp_visit_phi_node): For PHI arguments coming via backedges
8842 drop all symbolical range information.
8843 (execute_vrp): Compute backedges.
8844
c7cd65bf 88452013-01-16 Richard Biener <rguenther@suse.de>
8846
8847 * doc/install.texi: Update CLooG and ISL requirements to
8848 0.18.0 and 0.11.1.
8849
31fd081d 88502013-01-16 Christian Bruel <christian.bruel@st.com>
8851
8852 PR target/55301
8853 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
8854 (broken_move): Handle UNSPECV_SP_SWITCH_B.
8855 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
8856
88572013-01-16 DJ Delorie <dj@redhat.com>
8858
8859 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8860 (UNSPECV_SP_SWITCH_E): New.
8861 (sp_switch_1): Change to an unspec.
8862 (sp_switch_2): Change to an unspec. Don't use post-inc when we
8863 replace $r15.
8864
88652013-01-16 Uros Bizjak <ubizjak@gmail.com>
1a9fa1dd 8866
8867 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
8868 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
8869 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
8870 (expand_mem_thread_fence): Ditto.
8871 (expand_mem_signal_fence): Ditto.
8872 (expand_atomic_load): Ditto.
8873 (expand_atomic_store): Ditto.
8874
0190fe95 88752013-01-16 Alexandre Oliva <aoliva@redhat.com>
bb2bc4f3 8876
8877 PR rtl-optimization/55547
8878 PR rtl-optimization/53827
8879 PR debug/53671
8880 PR debug/49888
8881 * alias.c (memrefs_conflict_p): Set sizes to negative after
8882 AND adjustments.
8883
392a7dd5 88842013-01-15 Jakub Jelinek <jakub@redhat.com>
8885
8886 PR target/55940
8887 * function.c (thread_prologue_and_epilogue_insns): Always
8888 add crtl->drap_reg to set_up_by_prologue.set, even if
8889 stack_realign_drap is false.
8890
8aaf4223 88912013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8892
8893 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
8894 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
8895 *call): Fix indention.
8896
c35e21be 88972013-01-15 Tom de Vries <tom@codesourcery.com>
8898
8899 PR target/55876
8900 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
8901 Update comment.
8902
42fb263f 89032013-01-15 Vladimir Makarov <vmakarov@redhat.com>
8904
392a7dd5 8905 PR rtl-optimization/55153
42fb263f 8906 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
8907
1789bced 89082013-01-15 Martin Jambor <mjambor@suse.cz>
8909
8910 PR tree-optimization/55920
8911 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
8912 accesses as grp_to_be_debug_replaced.
8913
ddce22b8 89142013-01-15 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR tree-optimization/55920
8917 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
8918 there is non-useless type conversion needed from debug rhs to lhs,
8919 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
8920
1969f96d 89212013-01-15 Joseph Myers <joseph@codesourcery.com>
8922 Mikael Pettersson <mikpe@it.uu.se>
8923
8924 PR target/43961
8925 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
8926 Thumb.
8927 (ASM_OUTPUT_CASE_LABEL): Remove.
8928 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
8929 * final.c (shorten_branches): Update alignment of labels before
8930 jump tables if CASE_VECTOR_SHORTEN_MODE.
8931
21be23eb 89322013-01-15 Richard Biener <rguenther@suse.de>
8933
8934 PR bootstrap/55961
8935 * system.h: Do not include gmp.h for building host tools.
8936
323cf38f 89372013-01-15 Richard Biener <rguenther@suse.de>
8938
8939 PR middle-end/55882
8940 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
8941 account for bitpos when computing alignment.
8942
56de744c 89432013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
8944
8945 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
8946 (ix86_target_macros_internal): Likewise.
8947
8948 * config/i386/i386.c (m_CORE2I7): Removed.
8949 (m_CORE_HASWELL): New macro.
8950 (m_CORE_ALL): Likewise.
8951 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
8952 (initial_ix86_arch_features): Likewise.
8953 (processor_target_table): Initializations for Core avx2.
8954 (cpu_names): New names "core-avx2".
8955 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
8956 PROCESSOR_CORE_HASWELL.
8957 (ix86_issue_rate): New case.
8958 (ia32_multipass_dfa_lookahead): Likewise.
8959 (ix86_sched_init_global): Likewise.
8960
8961 * config/i386/i386.h (TARGET_HASWELL): New macro.
8962 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
8963 (processor_type): New PROCESSOR_HASWELL.
8964
8365f6c8 89652013-01-15 Jakub Jelinek <jakub@redhat.com>
8966
2d788f29 8967 PR tree-optimization/55955
8968 * tree-vect-loop.c (vectorizable_reduction): Give up early on
8969 *SHIFT_EXPR and *ROTATE_EXPR codes.
8970
8365f6c8 8971 PR tree-optimization/48766
8972 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
8973 -ftrapv disable -fwrapv.
8974
02edff68 89752013-01-14 Georg-Johann Lay <avr@gjlay.de>
8976
8977 PR target/55974
8978 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
8979 etc. to 1 and not to __flash.
8980 Use LL suffix for __INT24_MAX__ with -mint8.
8981 Use ULL suffix for __UINT24_MAX__ with -mint8.
8982
ce544647 89832013-01-14 Georg-Johann Lay <avr@gjlay.de>
8984
8985 * config/avr/avr-arch.h
8986 (struct base_arch_s): Use typedef avr_arch_t instead.
8987 (struct arch_info_s): Use typedef avr_arch_info_t instead.
8988 (struct mcu_type_s): Use typedef avr_mcu_t instead.
8989 * config/avr/avr.c: Same.
8990 * config/avr/avr-devices.c: Same.
8991 * config/avr/driver-avr.c: Same.
8992 * config/avr/gen-avr-mmcu-texi.c: Same.
8993 * config/avr/avr-mcus.def: Adjust comment.
8994
df83fa4d 89952013-01-14 Tejas Belagod <tejas.belagod@arm.com>
8996
1a9fa1dd 8997 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
8998 * config/aarch64/iterators.md (VALLDI): New.
df83fa4d 8999
feadd43d 90002013-01-14 Uros Bizjak <ubizjak@gmail.com>
5fc510c2 9001 Andi Kleen <ak@linux.intel.com>
9002
9003 PR target/55948
9004 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
9005 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
9006 memmodel flag.
9007
0dff9558 90082013-01-14 Georg-Johann Lay <avr@gjlay.de>
9009
9010 * config/avr/avr-stdint.h: Remove trailing blanks.
9011 * config/avr/avr-log.h: Same.
9012 * config/avr/avr-arch.h: Same.
9013 * config/avr/avr-devices.c: Same.
9014 * config/avr/avr-dimode.md: Same.
9015 * config/avr/predicates.md: Same.
9016 * config/avr/avr-c.c: Same. And fix typo.
5fc510c2 9017
0dff9558 9018 * config/avr/avr-protos.h: Same. And:
9019 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
9020 (init_cumulative_args): Rename to avr_init_cumulative_args.
9021 (expand_prologue): Rename to avr_expand_prologue.
9022 (expand_epilogue): Rename to avr_expand_epilogue.
9023 (adjust_insn_length): Rename to avr_adjust_insn_length.
9024 (notice_update_cc): Rename to avr_notice_update_cc.
9025 (final_prescan_insn): Rename to avr_final_prescan_insn.
9026 * config/avr/avr.c: Same.
9027 * config/avr/avr.h: Same.
9028 * config/avr/avr.md: Remove trailing blanks.
9029 (prologue): Use avr_expand_prologue.
9030 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
9031
66366b96 90322013-01-14 Richard Biener <rguenther@suse.de>
9033
9034 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
9035 verify_location, collect_subblocks): New functions.
9036 (verify_gimple_in_cfg): Verify that locations only reference
9037 BLOCKs in the functions BLOCK tree.
9038
11db727d 90392013-01-14 Richard Biener <rguenther@suse.de>
9040
9041 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
9042 PHI argument.
9043 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
9044 unshare reference.
9045 (insert_out_of_ssa_copy_on_edge): Likewise.
9046 (rewrite_close_phi_out_of_ssa): Likewise.
9047 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
9048 debug expressions.
9049 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
9050 propagated constants.
9051 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
9052 can not be shared.
9053
1e6735ea 90542013-01-14 Georg-Johann Lay <avr@gjlay.de>
9055
9056 * config/avr/avr-modes.def: Add GPL copyright notice.
9057
86eac679 90582013-01-13 Uros Bizjak <ubizjak@gmail.com>
9059
9060 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
9061 MEMMODEL_MASK to determine memory model.
9062 (atomic_store<mode>): Ditto from operands[2].
9063 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
9064
8f266cd9 90652013-01-13 Jakub Jelinek <jakub@redhat.com>
9066
9067 PR fortran/55935
86eac679 9068 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
8f266cd9 9069 (fold_gimple_assign): Don't call unshare_expr here.
9070 (fold_ctor_reference): Call unshare_expr.
9071
7137cdac 90722013-01-13 Terry Guo <terry.guo@arm.com>
9073
96e241e8 9074 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
9075 * doc/fragments.texi: Document MULTILIB_REUSE.
9076 * gcc.c (multilib_reuse): New internal spec.
7137cdac 9077 (set_multilib_dir): Also search multilib from multilib_reuse.
96e241e8 9078 * genmultilib (tmpmultilib3): Refactor code.
7137cdac 9079 (tmpmultilib4): Ditto.
9080 (multilib_reuse): New multilib argument.
9081
9231cb67 90822013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
9083
9084 * Makefile.in: Update copyright.
9085
3d38d682 90862013-01-12 Tom de Vries <tom@codesourcery.com>
9087
9088 PR middle-end/55890
9089 * calls.c (expand_call): Check if arg_nr is valid.
9090
5c598e22 90912013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
9092
9093 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
9094 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
21b14971 9095 documentation. Add missing '__' in front of
9096 __builtin_ia32_packssdw256.
5c598e22 9097
de47476b 90982013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9099
9100 PR target/55719
9101 * config/s390/s390.c (s390_preferred_reload_class): Do not return
9102 NO_REGS for larl operands.
9103 (s390_reload_larl_operand): Use s390_load_address instead of
9104 emit_move_insn.
9105
bf27bcdd 91062013-01-11 Richard Biener <rguenther@suse.de>
9107
9108 * tree-cfg.c (verify_node_sharing_1): Split out from ...
9109 (verify_node_sharing): ... here.
9110 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
9111
1410e798 91122013-01-11 Eric Botcazou <ebotcazou@adacore.com>
9113
9114 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
9115 Substitute TREECHECKING.
9116 * configure: Regenerate.
9117 * Makefile.in (TREECHECKING): New.
9118
feadd43d 91192013-01-11 Richard Guenther <rguenther@suse.de>
742ca2be 9120
9121 PR tree-optimization/44061
9122 * tree-vrp.c (extract_range_basic): Compute zero as
9123 value-range for __builtin_constant_p of function parameters.
9124
711789cc 91252013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
9126
86eac679 9127 Update copyright years.
711789cc 9128
9441d07f 91292013-01-10 Vladimir Makarov <vmakarov@redhat.com>
9130
8f266cd9 9131 PR rtl-optimization/55672
8b599a09 9132 * lra-eliminations.c (mark_not_eliminable): Permit addition with
9133 const to be eliminable.
9441d07f 9134
e69effa4 91352013-01-10 David Edelsohn <dje.gcc@gmail.com>
9136
9137 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
9138 * configure: Regenerate.
9139
f4146cb8 91402013-01-10 Richard Biener <rguenther@suse.de>
9141
91f28fc1 9142 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
f4146cb8 9143
e60062ea 91442013-01-10 Richard Biener <rguenther@suse.de>
9145
9146 PR bootstrap/55792
9147 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
9148 locations for virtual PHI arguments.
9149 (rewrite_update_phi_arguments): Likewise.
9150
efc3a86d 91512013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
9152
9153 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
9154 on to assembler.
9155
349ff920 91562013-01-10 Jakub Jelinek <jakub@redhat.com>
9157
9158 PR tree-optimization/55921
9159 * tree-complex.c (expand_complex_asm): New function.
9160 (expand_complex_operations_1): Call it for GIMPLE_ASM.
9161
2a672556 91622013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9163
9164 PR target/55718
9165 * config/s390/s390.c (s390_symref_operand_p)
9166 (s390_loadrelative_operand_p): Merge the two functions.
9167 (s390_check_qrst_address, print_operand_address): Add parameters
9168 to s390_loadrelative_operand_p invokation.
9169 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
9170 (s390_reload_larl_operand, s390_secondary_reload): Use
9171 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9172 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
9173
e4209874 91742013-01-09 Mike Stump <mikestump@comcast.net>
9175
9176 * dse.c (record_store): Remove unnecessary assert.
9177
dde4834c 91782013-01-09 Jan Hubicka <jh@suse.cz>
9179
9180 PR tree-optimization/55569
9181 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
9182 * cfgloop.h (scale_loop_profile): Likewise.
9183
c7fbaa62 91842013-01-09 Jan Hubicka <jh@suse.cz>
9185
9186 PR lto/45375
91f28fc1 9187 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
9188 functions.
c7fbaa62 9189 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
9190
933eb13a 91912013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
9192
9193 PR middle-end/55114
9194 * expr.h (maybe_emit_group_store): Declare.
9195 * expr.c (maybe_emit_group_store): New function.
9196 * builtins.c (expand_builtin_int_roundingfn): Call it.
9197 (expand_builtin_int_roundingfn_2): Likewise.
9198
aa3ce8ba 91992013-01-09 Vladimir Makarov <vmakarov@redhat.com>
9200
701835de 9201 PR rtl-optimization/55829
aa3ce8ba 9202 * lra-constraints.c (match_reload): Add code for absent output.
9203 (curr_insn_transform): Add code for reloads of matched inputs
9204 without output.
9205
889d67a8 92062013-01-09 Uros Bizjak <ubizjak@gmail.com>
9207
9208 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
9209 attribute of movddup insn to DF.
9210 (*vec_interleave_lowv2df): Ditto.
9211 (vec_dupv2df): Ditto.
9212
64552007 92132013-01-09 Jan Hubicka <jh@suse.cz>
9214
9215 PR tree-optimiation/55875
9216 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
9217 EVERY_ITERATION parameter.
889d67a8 9218 (number_of_iterations_exit): Check if exit is executed every iteration.
64552007 9219 (idx_infer_loop_bounds): Similarly here.
9220 (n_of_executions_at_most): Simplify
9221 to only test for cases where statement is dominated by the
889d67a8 9222 particular bound; handle correctly the "postdominance" test.
64552007 9223 (scev_probably_wraps_p): Use max loop iterations info
9224 as a global bound first.
9225
e1181777 92262013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
bd38291a 9227 Nick Clifton <nickc@redhat.com>
9228
9229 * config/v850/v850.md (cbranchsf4): New pattern.
9230 (cstoresf4): New pattern.
9231 (cbranchdf4): New pattern.
9232 (cstoredf4): New pattern.
9233 (movsicc): Disallow floating point comparisons.
9234 (cmpsf_le_insn): Fix order of operators.
9235 (cmpsf_lt_insn): Likewise.
9236 (cmpsf_eq_insn): Likewise.
9237 (cmpdf_le_insn): Likewise.
9238 (cmpdf_lt_insn): Likewise.
9239 (cmpdf_eq_insn): Likewise.
9240 (cmpsf_ge_insn): Use LE comparison.
9241 (cmpdf_ge_insn): Likewise.
9242 (cmpsf_gt_insn): Use LT comparison.
9243 (cmpdf_gt_insn): Likewise.
9244 (cmpsf_ne_insn): Delete pattern.
9245 (cmpdf_ne_insn): Delete pattern.
9246 * config/v850/v850.c (v850_gen_float_compare): Use
9247 gen_cmpdf_eq_insn for NE comparison.
9248 (v850_float_z_comparison_operator)
9249 (v850_float_nz_comparison_operator): Move from here ...
9250 * config/v850/predicates.md: ... to here. Move GT and GE
9251 comparisons into v850_float_z_comparison_operator.
9252 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
9253 Delete prototype.
9254 (v850_float_nz_comparison_operator): Likewise.
9255
81d5e322 92562013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9257
9258 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
9259 with calls to gen_insvsi/gen_insvdi.
9260
3a33f4ce 92612013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9262
9263 * config/i386/i386.c (initial_ix86_tune_features): Set up
9264 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
9265
ed60f27f 92662013-01-09 Steven Bosscher <steven@gcc.gnu.org>
9267 Jakub Jelinek <jakub@redhat.com>
9268
9269 PR tree-optimization/48189
9270 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
9271 If nitercst is 0, don't predict the exit edge.
9272
7a87c8e1 92732013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b9ccfbdf 9274
9275 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
9276 in asm_fprintf with reg_names.
9277 (aarch64_print_operand_address): Likewise.
9278 (aarch64_return_addr): Likewise.
9279 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
9280
21522827 92812013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9282
9283 * config/pa/pa.h (VAL_U6_BITS_P): Define.
9284 (INT_U6_BITS): Likewise.
9285 * config/pa/predicates.md (uint6_operand): New predicate.
9286 (shift5_operand, shift6_operand): Likewise.
9287 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
9288 arith32_operand.
9289 (lshrdi3): Use shift6_operand.
9290 (shrpsi4, shrpdi4): New insn patterns.
9291 (extzv): Delete expander.
9292 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
9293 predicates in unamed zero extract patterns. Tighten common constraint.
9294 (extv): Delete expander.
9295 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
9296 predicates in unamed sign extract patterns. Tighten common constraint.
9297 (insv): Delete expander.
9298 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
9299 predicates in unamed insert patterns. Tighten common constraint.
9300 Change uint32_operand predicate to uint6_operand predicate in unamed
9301 DImode pattern to insert constant values of type 1...1xxxx.
9302
a240d038 93032013-01-04 Jan Hubicka <jh@suse.cz>
9304
9305 PR tree-optimization/55823
889d67a8 9306 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
9307 issue.
a240d038 9308
feadd43d 93092013-01-08 Jakub Jelinek <jakub@redhat.com>
bbfdbc02 9310 Uros Bizjak <ubizjak@gmail.com>
9311
9312 PR rtl-optimization/55845
9313 * df-problems.c (can_move_insns_across): Stop scanning at
9314 volatile_insn_p source instruction or give up if
9315 across_from .. across_to range contains any volatile_insn_p
9316 instructions.
9317
501336f7 93182013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9319
889d67a8 9320 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
9321 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
9322 Declare.
501336f7 9323 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
889d67a8 9324 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
501336f7 9325
cc72d6e9 93262013-01-08 Jakub Jelinek <jakub@redhat.com>
9327
9328 PR fortran/55341
9329 * asan.c (asan_clear_shadow): New function.
9330 (asan_emit_stack_protection): Use it.
9331
b3f1c89d 93322013-01-08 Tejas Belagod <tejas.belagod@arm.com>
9333
9334 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
9335 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
9336 with tab instead of space.
9337
8d5f09ff 93382013-01-08 Nick Clifton <nickc@redhat.com>
9339
9340 * config/rl78/rl78.c (rl78_expand_prologue): Always select
9341 register bank 0 at the start of an interrupt handler.
50008a8e 9342 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
9343 MDBH registers.
8d5f09ff 9344
1eb525c3 93452013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9346
9347 * config/aarch64/aarch64-simd.md
9348 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
9349 (aarch64_simd_bsl): Likewise.
9350 (aarch64_vcond_internal<mode>): Likewise.
9351 (vcond<mode><mode>): Likewise.
9352 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
9353 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
9354
5b4374a1 93552013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
9356
9357 * config/aarch64/aarch64-builtins.c
9358 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
9359
5721b378 93602013-01-08 Martin Jambor <mjambor@suse.cz>
9361
9362 PR debug/55579
9363 * tree-sra.c (analyze_access_subtree): Return true also after
9364 potentially creating a debug-only replacement.
9365
4b9630f0 93662013-01-08 Jakub Jelinek <jakub@redhat.com>
9367
0b4f0116 9368 PR middle-end/55890
9369 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
9370
4b9630f0 9371 PR tree-optimization/54120
9372 * tree-vrp.c (range_fits_type_p): Don't allow
9373 src_precision < precision from signed vr to unsigned_p
9374 if vr->min or vr->max is negative.
9375 (simplify_float_conversion_using_ranges): Test can_float_p
9376 against CODE_FOR_nothing.
9377
100d7996 93782013-01-08 Jakub Jelinek <jakub@redhat.com>
9379 Richard Biener <rguenther@suse.de>
9380
9381 PR middle-end/55851
9382 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
9383 types instead of just INTEGER_TYPE types.
9384
6e029611 93852013-01-07 Mark Kettenis <kettenis@openbsd.org>
9386
9387 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
9388 TF_SIZE): Define.
8d5f09ff 9389
8a5bc191 93902013-01-07 Steve Ellcey <sellcey@mips.com>
9391
9392 PR target/42661
9393 * config/mips/mips.opt: Change mad to mmad to match documentation.
9394
975036ab 93952013-01-07 Georg-Johann Lay <avr@gjlay.de>
9396
9397 PR target/55897
9398 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
9399 .progmemx.data now.
9400
0558f5da 94012013-01-07 Georg-Johann Lay <avr@gjlay.de>
9402
9403 PR target/55897
9404 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
9405 (avr_addrspace_t): Add .section_name field.
9406 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
9407 array size.
9408 (avr_addrspace): Same. Initialize .section_name. Remove last
9409 NULL entry. Put __memx into .progmemx.data.
9410 (progmem_section_prefix): Remove.
9411 (avr_asm_init_sections): No need to initialize progmem_section.
9412 (avr_asm_named_section): Use avr_addrspace[].section_name to get
9413 section name prefix.
9414 (avr_asm_select_section): Ditto. And use get_unnamed_section to
9415 retrieve the progmem section.
9416 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
9417 boundary to run over avr_addrspace[].
9418 (avr_register_target_pragmas): Ditto.
9419
046a838d 94202013-01-06 Jakub Jelinek <jakub@redhat.com>
9421
9422 * varasm.c (output_constant_def_contents): For asan_protect_global
9423 protected strings, adjust DECL_ALIGN if needed, before testing for
9424 anchored symbols.
9425 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
9426 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
9427 normal decls.
9428 (output_object_block): For asan protected decls, emit asan padding
9429 after their contents.
9430 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
9431 (asan_finish_file): Test it here instead.
9432
7a87c8e1 94332013-01-07 Nick Clifton <nickc@redhat.com>
9434 Matthias Klose <doko@debian.org>
9435 Doug Kwan <dougkwan@google.com>
9436 H.J. Lu <hongjiu.lu@intel.com>
99d5fe2d 9437
9438 PR driver/55470
9439 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
9440
9441 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
9442
9443 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
9444
889d67a8 9445 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
99d5fe2d 9446
9447 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
9448
67cec000 94492013-01-07 Georg-Johann Lay <avr@gjlay.de>
9450
5b804f86 9451 PR target/54461
67cec000 9452 * doc/install.texi (Cross-Compiler-Specific Options): Document
9453 --with-avrlibc.
9454
9de19dd2 94552013-01-07 Tejas Belagod <tejas.belagod@arm.com>
9456
9457 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
9458 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
9459 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
9460 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
9461 vqmovun_high_s64): Fix source operand number and update copyright.
9462
789a8d72 94632013-01-07 Richard Biener <rguenther@suse.de>
9464
9465 PR middle-end/55890
9466 * gimple.h (gimple_call_builtin_p): New overload.
9467 * gimple.c (validate_call): New function.
9468 (gimple_call_builtin_p): Likewise.
9469 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9470 Use gimple_call_builtin_p.
9471 (find_func_clobbers): Likewise.
9472 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
9473 (strlen_optimize_stmt): Likewise.
9474
71e72cc2 94752013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9476
9477 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
9478 (vld1q_dup_*): Likewise.
9479 (vld1_*): Likewise.
9480 (vld1q_*): Likewise.
9481 (vld1_lane_*): Likewise.
9482 (vld1q_lane_*): Likewise.
9483
85fd8f96 94842013-01-07 Richard Biener <rguenther@suse.de>
9485
9486 * lto-streamer.h (LTO_minor_version): Bump to 2.
9487
72841352 94882013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
9489
9490 * config/aarch64/aarch64-protos.h
9491 (aarch64_const_double_zero_rtx_p): Rename to...
9492 (aarch64_float_const_zero_rtx_p): ...this.
9493 (aarch64_float_const_representable_p): New.
9494 (aarch64_output_simd_mov_immediate): Likewise.
9495 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
9496 move immediate case.
9497 * config/aarch64/aarch64.c
9498 (aarch64_const_double_zero_rtx_p): Rename to...
9499 (aarch64_float_const_zero_rtx_p): ...this.
9500 (aarch64_print_operand): Allow printing of new constants.
9501 (aarch64_valid_floating_const): New.
9502 (aarch64_legitimate_constant_p): Check for valid floating-point
9503 constants.
9504 (aarch64_simd_valid_immediate): Likewise.
9505 (aarch64_vect_float_const_representable_p): New.
9506 (aarch64_float_const_representable_p): Likewise.
9507 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
9508 (aarch64_output_simd_mov_immediate): New.
9509 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
9510 (*movdf_aarch64): Likewise.
9511 * config/aarch64/constraints.md (Ufc): New.
9512 (Y): call aarch64_float_const_zero_rtx.
9513 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
9514
4a101a28 95152013-01-07 Richard Biener <rguenther@suse.de>
9516
9517 PR tree-optimization/55888
9518 PR tree-optimization/55862
9519 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
9520 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
9521 not if it is contained therein.
9522
3b808880 95232013-01-07 Georg-Johann Lay <avr@gjlay.de>
9524
9525 * config/avr/t-avr: Typo.
9526
8d0c391e 95272013-01-07 Georg-Johann Lay <avr@gjlay.de>
9528
9529 PR55243
9530 * config/avr/t-avr: Don't automatically rebuild
9531 $(srcdir)/config/avr/t-multilib
9532 $(srcdir)/config/avr/avr-tables.opt
9533 $(srcdir)/doc/avr-mmcu.texi
9534 (avr-mcus): New phony target to build them on request.
9535 (s-avr-mlib, s-avr-mmcu-texi): Remove.
9536 * avr/avr-mcus.def: Adjust comments.
9537
e655d10e 95382013-01-07 Uros Bizjak <ubizjak@gmail.com>
9539
9540 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
9541
e2585731 95422013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9543
9544 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
9545
e19a420f 95462013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
9547
9548 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
9549
eab80725 95502013-01-05 David Edelsohn <dje.gcc@gmail.com>
9551
9552 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
9553 to generate profiling.
9554 * config/rs6000/aix64.h (LIB_SPEC): Same.
9555
b49f35d1 95562013-01-04 Andrew Pinski <apinski@cavium.com>
9557
9558 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
9559 New function.
9560 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9561
370a62b6 95622013-01-04 Uros Bizjak <ubizjak@gmail.com>
9563
9564 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
9565 unconditionally.
9566 (ix86_expand_move): Ditto.
9567 (ix86_zero_extend_to_Pmode): Ditto.
9568 (ix86_expand_call): Ditto.
9569 (ix86_expand_special_args_builtin): Ditto.
9570 (ix86_expand_builtin): Ditto.
9571
15b93bb9 95722013-01-04 Richard Biener <rguenther@suse.de>
9573
9574 PR tree-optimization/55862
9575 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
9576 translating them through PHI nodes.
9577
d210dffc 95782013-01-04 Martin Jambor <mjambor@suse.cz>
9579
9580 PR tree-optimization/55755
9581 * tree-sra.c (sra_modify_assign): Do not check that an access has no
9582 children when trying to avoid producing a VIEW_CONVERT_EXPR.
9583
9448cf4a 95842013-01-04 Marek Polacek <polacek@redhat.com>
9585
9586 PR middle-end/55859
9587 * opts.c (default_options_optimization): Clarify error message.
9588
65afafea 95892013-01-04 Richard Biener <rguenther@suse.de>
9590
9591 PR middle-end/55863
9592 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
9593 reassociation.
9594
dfb5e2bf 95952013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9596
9597 PR target/53789
9598 * config/pa/pa.md (movsi): Revert previous change.
a97fe562 9599 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
9600 references.
dfb5e2bf 9601
8c7f6993 96022013-01-03 Richard Henderson <rth@redhat.com>
9603
9604 * config/i386/i386.c (ix86_expand_move): Always assign to op1
9605 after eliminating TLS symbols.
9606
de2e6b8a 96072013-01-03 Marc Glisse <marc.glisse@inria.fr>
9608
9609 PR bootstrap/50167
9610 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
9611 * graphite-poly.c (debug_gmp_value): Likewise.
9612
a678c584 96132013-01-03 Uros Bizjak <ubizjak@gmail.com>
9614
9615 PR target/55712
9616 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
9617 selected code model, define __code_mode_small__, __code_model_medium__,
9618 __code_model_large__, __code_model_32__ or __code_model_kernel__.
9619 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
9620 xchg temporary register with %k. Declare temporary register as
9621 early clobbered.
9622 [__x86_64__]: For medium and large code models, preserve %rbx register.
9623
984cebc1 96242013-01-03 Richard Biener <rguenther@suse.de>
9625
98e7c1f5 9626 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
984cebc1 9627 (dump_subscript): Adjust.
9628 (finalize_ddr_dependent): Do not dump redundant info.
9629 (analyze_siv_subscript): Adjust.
9630 (subscript_dependence_tester): Likewise.
9631 (compute_affine_dependence): Likewise.
9632
6f75c845 96332013-01-03 Richard Biener <rguenther@suse.de>
9634
9635 Revert
9636 2013-01-03 Richard Biener <rguenther@suse.de>
9637
9638 PR tree-optimization/55857
9639 * tree-vect-stmts.c (vectorizable_load): Do not setup
9640 re-alignment for invariant loads.
9641
9642 2013-01-02 Richard Biener <rguenther@suse.de>
9643
9644 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
98e7c1f5 9645 invariant load do not generate a vector load from the scalar location.
6f75c845 9646
3c18ea71 96472013-01-03 Richard Biener <rguenther@suse.de>
9648
9649 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
9650 for not vectorizing.
9651 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9652 not build INDIRECT_REFs, call get_name once only.
9653 (vect_create_data_ref_ptr): Likewise. Dump base object kind
9654 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
9655
59ff1f4a 96562013-01-03 Richard Biener <rguenther@suse.de>
9657
9658 PR tree-optimization/55857
9659 * tree-vect-stmts.c (vectorizable_load): Do not setup
9660 re-alignment for invariant loads.
9661
5b777cea 96622013-01-03 Richard Biener <rguenther@suse.de>
9663
9664 PR lto/55848
9665 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
9666 prefer a built-in decl.
9667
e4bef271 96682013-01-03 Jakub Jelinek <jakub@redhat.com>
9669
1f3894c9 9670 * gcc.c (process_command): Update copyright notice dates.
9671 * gcov.c (print_version): Likewise.
9672 * gcov-dump.c (print_version): Likewise.
9673
e4bef271 9674 PR rtl-optimization/55838
9675 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
9676 iv0.step, iv1.step and step.
9677
d871c5dc 96782013-01-03 Jakub Jelinek <jakub@redhat.com>
9679 Marc Glisse <marc.glisse@inria.fr>
9680
9681 PR tree-optimization/55832
9682 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
9683 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
9684 integer_{one,zero}_node.
9685
78ea005d 96862013-01-03 Jakub Jelinek <jakub@redhat.com>
9687
9688 PR debug/54402
9689 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
9690 * var-tracking.c (reverse_op): Don't add reverse ops to
9691 VALUEs that have already
98e7c1f5 9692 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
78ea005d 9693
df8f46da 96942013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
9695
9696 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
9697
f55775aa 96982013-01-02 Teresa Johnson <tejohnson@google.com>
9699
9700 * dumpfile.c (dump_loc): Print filename with location.
9701 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
9702 new location_t parameter to emit complete unroll message with
9703 new dump framework.
9704 (canonicalize_loop_induction_variables): Compute loops location
9705 and pass to try_unroll_loop_completely.
9706 * loop-unroll.c (report_unroll_peel): New function.
9707 (peel_loops_completely): Use new dump format with location
9708 for main dumpfile message, and invoke report_unroll_peel on success.
9709 (decide_unrolling_and_peeling): Ditto.
9710 (decide_peel_once_rolling): Remove old dumpfile message subsumed
9711 by report_unroll_peel.
9712 (decide_peel_completely): Ditto.
9713 (decide_unroll_constant_iterations): Ditto.
9714 (decide_unroll_runtime_iterations): Ditto.
9715 (decide_peel_simple): Ditto.
9716 (decide_unroll_stupid): Ditto.
9717 * cfgloop.c (get_loop_location): New function.
9718 * cfgloop.h (get_loop_location): Declare.
9719
13367f52 97202013-01-02 Sriraman Tallam <tmsriram@google.com>
9721
9722 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
9723 NULL.
9724
7b642468 97252013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9726
9727 PR middle-end/55198
9728 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
9729 BLKmode objects when EXPAND_MEMORY is specified.
9730
bad821ff 97312013-01-02 Sriraman Tallam <tmsriram@google.com>
9732
9733 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
9734 in loop predicate.
9735 (fold_builtin_cpu): Do not share cpu model decls across statements.
9736
c5cfcf40 97372013-01-02 Jason Merrill <jason@redhat.com>
9738
9739 PR c++/55804
9740 * tree.c (build_array_type_1): Revert earlier change.
9741
47509174 97422013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
9743
9744 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
9745 "cortex-a57".
9746 * config/aarch64/aarch64-tune.md: Re-generate.
9747
bca2a61e 97482013-01-02 Richard Biener <rguenther@suse.de>
9749
9750 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
98e7c1f5 9751 invariant load do not generate a vector load from the scalar location.
bca2a61e 9752
f67e1abf 97532013-01-02 Richard Biener <rguenther@suse.de>
9754
9755 PR bootstrap/55784
9756 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
9757 * configure: Regenerate.
9758
de2e453e 97592013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9760
9761 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
9762 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
9763 (expand_builtin_int_roundingfn_2): Keep the original target around
9764 for the fallback case.
9765
ab4cb266 97662013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9767
9768 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
9769 to be clear for sign changes.
9770
e876d531 97712013-01-01 Jan Hubicka <jh@suse.cz>
9772
9773 * ipa-inline-analysis.c: Fix formatting.
9774
c3c33891 97752013-01-01 Jakub Jelinek <jakub@redhat.com>
9776
9777 PR tree-optimization/55831
9778 * tree-vect-loop.c (get_initial_def_for_induction): Use
9779 gsi_after_labels instead of gsi_start_bb.
7dfbd804 9780\f
b3c5d881 9781Copyright (C) 2013 Free Software Foundation, Inc.
7dfbd804 9782
9783Copying and distribution of this file, with or without modification,
9784are permitted in any medium without royalty provided the copyright
9785notice and this notice are preserved.