1 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
4 * config/sh/predicates.md (general_extend_operand): Invoke
5 general_movsrc_operand for memory operands.
6 (general_movsrc_operand): Allow reg+reg addressing, do not use
7 general_operand for memory operands.
9 2013-06-23 Sriraman Tallam <tmsriram@google.com>
11 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
12 when current target options does not apply.
13 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
14 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
15 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
16 * config/i386/mmintrin.h: Ditto.
17 * config/i386/nmmintrin.h: Ditto.
18 * config/i386/avx2intrin.h: Ditto.
19 * config/i386/fxsrintrin.h: Ditto.
20 * config/i386/tbmintrin.h: Ditto.
21 * config/i386/xsaveintrin.h: Ditto.
22 * config/i386/f16cintrin.h: Ditto.
23 * config/i386/xtestintrin.h: Ditto.
24 * config/i386/xsaveoptintrin.h: Ditto.
25 * config/i386/bmi2intrin.h: Ditto.
26 * config/i386/lzcntintrin.h: Ditto.
27 * config/i386/smmintrin.h: Ditto.
28 * config/i386/wmmintrin.h: Ditto.
29 * config/i386/x86intrin.h: Remove all header include guards.
30 * config/i386/prfchwintrin.h: Ditto.
31 * config/i386/pmmintrin.h: Ditto.
32 * config/i386/tmmintrin.h: Ditto.
33 * config/i386/xmmintrin.h: Ditto.
34 * config/i386/popcntintrin.h: Ditto.
35 * config/i386/rdseedintrin.h: Ditto.
36 * config/i386/ammintrin.h: Ditto.
37 * config/i386/emmintrin.h: Ditto.
38 * config/i386/immintrin.h: Remove all header include guards.
39 * config/i386/fma4intrin.h: Ditto.
40 * config/i386/lwpintrin.h: Ditto.
41 * config/i386/xopintrin.h: Ditto.
42 * config/i386/ia32intrin.h: Ditto.
43 * config/i386/avxintrin.h: Ditto.
44 * config/i386/rtmintrin.h: Ditto.
45 * config/i386/fmaintrin.h: Ditto.
46 * config/i386/mm3dnow.h: Ditto.
48 2013-06-22 Sriraman Tallam <tmsriram@google.com>
50 * common/config/i386/i386-common.c: Handle LZCNT.
52 2013-06-22 Andi Kleen <ak@linux.intel.com>
54 * doc/extend.texi: Use __atomic_store_n instead of
55 __atomic_store in HLE example.
57 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
59 * config/sh/sh.c: Remove <cstdlib> workaround.
61 2013-06-21 Andi Kleen <ak@linux.intel.com>
63 * doc/extend.texi: Dont use __atomic_clear in HLE
66 2013-06-21 Andi Kleen <ak@linux.intel.com>
68 * doc/extend.texi: Document that __atomic_clear and
69 __atomic_test_and_set should only be used with bool.
71 2013-06-20 Jan Hubicka <jh@suse.cz>
73 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
75 * tree.c (decls_same_for_odr): New function.
76 (same_for_edr): New function.
77 (types_same_for_odr): New function.
78 (get_binfo_at_offset): Use it.
79 * tree.h (types_same_for_odr): Declare.
81 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
82 Jason Merrill <jason@redhat.com>
84 * system.h: Include <cstdlib> as well as <stdlib.h>.
86 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
89 * config/i386/i386.c (construct_container): Report error if
90 long double is used with disabled x87 float returns.
92 2013-06-20 Jan Hubicka <jh@suse.cz>
94 * lto-cgraph.c (input_symtab): Do not set cgraph state.
96 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
98 PR rtl-optimization/57425
99 PR rtl-optimization/57569
100 * alias.c (write_dependence_p): Remove parameters mem_mode and
101 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
103 (canon_anti_dependence): Get comments and semantics in sync.
104 Add parameter mem_canonicalized. Changed all callers.
105 * rtl.h (canon_anti_dependence): Update prototype.
107 2013-06-20 Richard Biener <rguenther@suse.de>
109 * data-streamer-in.c (streamer_read_uhwi): Optimize single
110 byte case, inline streamer_read_uchar and defer section
113 2013-06-20 Richard Biener <rguenther@suse.de>
115 PR tree-optimization/57584
116 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
117 SSA names into the expanded expression that take part in
120 2013-06-19 <singhai@google.com>
122 * gcov.c (print_usage): Handle new option.
123 (process_args): Ditto.
124 (get_gcov_intermediate_filename): New function.
125 (output_intermediate_file): New function.
126 (output_gcov_file): New function
127 (generate_results): Handle new option.
128 (release_function): Relase demangled name.
129 (read_graph_file): Handle demangled name.
130 (output_lines): Ditto.
131 * doc/gcov.texi: Document gcov intermediate format.
133 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
136 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
137 (lra_emit_add): Use the functions. Add comment about Y as an
140 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
143 * collect2.c (collect_atexit): New.
144 (collect_exit): Delete.
145 (main): Register collect_atexit with atexit.
146 (collect_wait): Change collect_exit to exit.
148 * collect2.h (collect_exit): Delete.
149 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
151 2013-06-19 Wei Mi <wmi@google.com>
153 PR rtl-optimization/57518
154 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
155 if regno is used in paradoxical subreg.
156 (update_equiv_regs): Check pdx_subregs[regno] before
157 set a reg to be equivalent with a mem.
159 2013-06-19 Matthias Klose <doko@ubuntu.com>
162 * file-find.h (find_a_file): Add a mode parameter.
163 * file-find.c (find_a_file): Likewise.
164 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
165 with X_OK for the executables.
166 * collect2.c (main): Call find_a_file with X_OK.
168 2013-06-19 Steve Ellcey <sellcey@mips.com>
171 * config/mips/mips.md (casesi_internal_mips16_<mode>):
172 Use NEXT_INSN instead of next_real_insn.
174 2013-06-19 Jan Hubicka <jh@suse.cz>
176 * cgraph.h (const_value_known_p): Replace by ...
177 (ctor_for_folding): .. this one.
178 * cgraphunit.c (process_function_and_variable_attributes): Use it.
179 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
180 * expr.c (expand_expr_real_1): Likewise.
181 (string_constant): Likewise.
182 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
183 * ipa.c (process_references): Likewise.
184 (symtab_remove_unreachable_nodes): Likewise.
185 * ipa-inline-analysis.c (param_change_prob): Likewise.
186 * gimple-fold.c (canonicalize_constructor_val): Likewise.
187 (get_base_constructor): Likwise.
188 * varpool.c (varpool_remove_node): Likewise.
189 (varpool_remove_initializer): LIkewise.
190 (dump_varpool_node): LIkwise.
191 (const_value_known_p): Rewrite to ...
192 (ctor_for_folding): ... this one.
194 2013-06-19 Jakub Jelinek <jakub@redhat.com>
197 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
198 PERSONALITY in $PATH derived prefixes.
200 2013-06-19 Jeff Law <law@redhat.com>
202 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
205 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
206 (simplify_bitwise_binary): Use it to simpify certain binary ops on
209 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
211 * config/arm/vfp.md: Move VFP instruction classification documentation
213 * config/arm/arm.md: ... here. Update instruction classification
216 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
218 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
219 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
220 pattern. Use more efficient sequences on ARMv5 and Thumb2.
222 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
225 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
226 with NEXT_INSN. Use tablejump_p to check for jump table data
229 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
232 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
233 that now in C++ the value is correct per the C++ standards.
235 2013-06-19 Richard Biener <rguenther@suse.de>
237 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
240 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
243 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
246 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
247 with next_active_insn.
249 2013-06-18 Sriraman Tallam <tmsriram@google.com>
251 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
252 functions are inlined during failures to flag an error.
253 * tree-inline.c (expand_call_inline): Allow the error to be flagged
254 in early inline pass.
256 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
258 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
261 2013-06-18 Julian Brown <julian@codesourcery.com>
263 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
264 Permit virtual register pre-reload if !strict.
265 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
267 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
269 * config/arm/neon.md (movmisalign<mode>): Use
270 neon_perm_struct_or_reg_operand instead of
271 neon_struct_or_register_operand.
272 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
273 neon_permissive_struct_operand instead of neon_struct_operand.
274 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
275 neon_vector_mem_operand.
276 * config/arm/predicates.md (neon_struct_operand): Adjust call to
277 neon_vector_mem_operand.
278 (neon_permissive_struct_operand): New.
279 (neon_struct_or_register_operand): Rename to...
280 (neon_perm_struct_or_reg_operand): This. Adjust call to
281 neon_vector_mem_operand.
283 2013-06-18 Richard Biener <rguenther@suse.de>
285 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
286 * lto-streamer.h: Include pointer-set.h.
287 (struct lto_decl_slot): Remove.
288 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
289 Remove next_index entry.
290 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
291 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
292 (lto_init_tree_ref_encoder): Adjust.
293 (lto_destroy_tree_ref_encoder): Likewise.
294 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
295 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
296 (lto_output_decl_index): Adjust.
297 (lto_new_out_decl_state): Likewise.
298 (lto_record_function_out_decl_state): Likewise.
299 * lto-streamer-out.c (copy_function): Likewise.
301 2013-06-18 Richard Biener <rguenther@suse.de>
303 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
304 * cgraphunit.c: Include cfgloop.h.
305 (init_lowered_empty_function): Initialize the loop tree.
306 (assemble_thunk): Insert new BBs into loops.
308 2013-06-18 Richard Biener <rguenther@suse.de>
310 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
311 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
312 the map from cache entry to cache index optional.
313 (streamer_tree_cache_replace_tree): Adjust accordingly.
314 (streamer_tree_cache_append): Likewise.
315 (streamer_tree_cache_delete): Likewise.
316 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
317 streamer cache map from cache entry to cache index.
318 * lto-streamer-out.c (create_output_block): Adjust.
320 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
322 * config/arm/arm.md (attribute "insn"): Move multiplication and
323 division attributes to...
324 (attribute "type"): ... here. Remove mult.
325 (attribute "mul32"): New attribute.
326 (attribute "mul64"): Add umaal.
327 (*arm_mulsi3): Update attributes.
328 (*arm_mulsi3_v6): Likewise.
329 (*thumb_mulsi3): Likewise.
330 (*thumb_mulsi3_v6): Likewise.
331 (*mulsi3_compare0): Likewise.
332 (*mulsi3_compare0_v6): Likewise.
333 (*mulsi_compare0_scratch): Likewise.
334 (*mulsi_compare0_scratch_v6): Likewise.
335 (*mulsi3addsi): Likewise.
336 (*mulsi3addsi_v6): Likewise.
337 (*mulsi3addsi_compare0): Likewise.
338 (*mulsi3addsi_compare0_v6): Likewise.
339 (*mulsi3addsi_compare0_scratch): Likewise.
340 (*mulsi3addsi_compare0_scratch_v6): Likewise.
341 (*mulsi3subsi): Likewise.
342 (*mulsidi3adddi): Likewise.
343 (*mulsi3addsi_v6): Likewise.
344 (*mulsidi3adddi_v6): Likewise.
345 (*mulsidi3_nov6): Likewise.
346 (*mulsidi3_v6): Likewise.
347 (*umulsidi3_nov6): Likewise.
348 (*umulsidi3_v6): Likewise.
349 (*umulsidi3adddi): Likewise.
350 (*umulsidi3adddi_v6): Likewise.
351 (*smulsi3_highpart_nov6): Likewise.
352 (*smulsi3_highpart_v6): Likewise.
353 (*umulsi3_highpart_nov6): Likewise.
354 (*umulsi3_highpart_v6): Likewise.
355 (mulhisi3): Likewise.
356 (*mulhisi3tb): Likewise.
357 (*mulhisi3bt): Likewise.
358 (*mulhisi3tt): Likewise.
359 (maddhisi4): Likewise.
360 (*maddhisi4tb): Likewise.
361 (*maddhisi4tt): Likewise.
362 (maddhidi4): Likewise.
363 (*maddhidi4tb): Likewise.
364 (*maddhidi4tt): Likewise.
367 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
368 (thumb2_mulsi_short_compare0): Likewise.
369 (thumb2_mulsi_short_compare0_scratch): Likewise.
370 * config/arm/arm1020e.md (1020mult1): Update attribute change.
371 (1020mult2): Likewise.
372 (1020mult3): Likewise.
373 (1020mult4): Likewise.
374 (1020mult5): Likewise.
375 (1020mult6): Likewise.
376 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
378 (cortex_a15_mult64): Likewise.
379 (cortex_a15_sdiv): Likewise.
380 (cortex_a15_udiv): Likewise.
381 * config/arm/arm1026ejs.md (mult1): Update attribute change.
387 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
388 (pj4_ir_div): Likewise.
389 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
390 (11_mult2): Likewise.
391 (11_mult3): Likewise.
392 (11_mult4): Likewise.
393 (11_mult5): Likewise.
394 (11_mult6): Likewise.
395 (11_mult7): Likewise.
396 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
397 (cortex_a8_mla): Likewise.
398 (cortex_a8_mull): Likewise.
399 (cortex_a8_smulwy): Likewise.
400 (cortex_a8_smlald): Likewise.
401 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
402 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
403 (cortex_r4_mul_3): Likewise.
404 (cortex_r4_mla_4): Likewise.
405 (cortex_r4_mla_3): Likewise.
406 (cortex_r4_smlald): Likewise.
407 (cortex_r4_mull): Likewise.
408 (cortex_r4_sdiv): Likewise.
409 (cortex_r4_udiv): Likewise.
410 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
411 (cortex_a7_idiv): Likewise.
412 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
418 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
419 (cortex_a53_sdiv): Likewise.
420 (cortex_a53_udiv): Likewise.
421 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
422 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
423 (mp626_mult2): Likewise.
424 (mp626_mult3): Likewise.
425 (mp626_mult4): Likewise.
426 * config/arm/fa526.md (526_mult1): Update attribute change.
427 (526_mult2): Likewise.
428 * config/arm/arm-generic.md (mult): Update attribute change.
429 (mult_ldsched_strongarm): Likewise.
430 (mult_ldsched): Likewise.
431 (multi_cycle): Likewise.
432 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
433 * config/arm/fa606te.md (606te_mult1): Update attribute change.
434 (606te_mult2): Likewise.
435 (606te_mult3): Likewise.
436 (606te_mult4): Likewise.
437 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
438 (cortex_a9_mac16): Likewise.
439 (cortex_a9_multiply): Likewise.
440 (cortex_a9_mac): Likewise.
441 (cortex_a9_multiply_long): Likewise.
442 * config/arm/fa626te.md (626te_mult1): Update attribute change.
443 (626te_mult2): Likewise.
444 (626te_mult3): Likewise.
445 (626te_mult4): Likewise.
447 2013-06-18 Richard Biener <rguenther@suse.de>
450 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
452 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
455 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
456 with next_active_insn.
458 2013-06-18 Alan Modra <amodra@gmail.com>
460 * config/rs6000/rs6000.h (enum data_align): New.
461 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
462 (DATA_ABI_ALIGNMENT): Define.
463 (CONSTANT_ALIGNMENT): Correct comment.
464 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
465 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
467 2013-06-17 David Malcolm <dmalcolm@redhat.com>
469 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
470 ATTRIBUTE_UNUSED marking.
472 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
474 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
475 alternative and update.
476 (aarch64_dup_lanedi): Delete.
477 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
478 * config/aarch64/aarch64-simd-builtins.def: Update.
480 2013-06-17 Richard Biener <rguenther@suse.de>
482 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
483 (lto_input_scc): Declare.
484 (lto_input_tree_1): Likewise.
485 (struct lto_stats_d): Add num_tree_bodies_output and
486 num_pickle_refs_output.
487 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
488 (lto_read_tree_1): Split out from ...
489 (lto_read_tree): ... this.
490 (lto_input_scc): New function.
491 (lto_input_tree_1): Split out from ...
492 (lto_input_tree): ... this. Handle LTO_tree_scc.
493 (lto_data_in_create): Create the streamer cache without hashes.
494 * lto-streamer-out.c (create_output_block): Create the streamer
495 cache with hashes when not doing WPA.
496 (lto_write_tree_1): Split out from ...
497 (lto_write_tree): ... this.
498 (get_symbol_initial_value): New function.
499 (lto_output_tree_1): Split out from ...
500 (lto_output_tree): ... this. Write trees as series of SCCs
501 using a DFS walk via DFS_write_tree.
502 (struct sccs, struct scc_entry): New types.
503 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
504 (DFS_write_tree_body): New function.
505 (DFS_write_tree): Likewise.
506 (hash_tree): Likewise.
507 (scc_entry_compare): Likewise.
508 (hash_scc): Likewise.
509 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
510 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
511 TREE_CHAIN as regular reference.
512 (streamer_read_integer_cst): Remove.
513 (streamer_get_pickled_tree): Adjust.
514 * tree-streamer-out.c (streamer_write_chain): Disable streaming
515 of DECL_EXTERNALs in BLOCK_VARS for now.
516 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
518 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
519 Add hash value argument and record that if hashes are recorded
521 (streamer_tree_cache_insert_1): Adjust.
522 (streamer_tree_cache_insert): Likewise.
523 (streamer_tree_cache_insert_at): Rename to ...
524 (streamer_tree_cache_replace_tree): ... this and adjust.
525 (streamer_tree_cache_append): Adjust.
526 (record_common_node): Likewise.
527 (streamer_tree_cache_create): Add argument whether to
528 record hash values together with trees.
529 (streamer_tree_cache_delete): Adjust.
530 * tree-streamer.h (struct streamer_tree_cache_d): Add
532 (streamer_read_integer_cst): Remove.
533 (streamer_tree_cache_insert): Adjust.
534 (streamer_tree_cache_append): Likewise.
535 (streamer_tree_cache_insert_at): Rename to ...
536 (streamer_tree_cache_replace_tree): ... this and adjust.
537 (streamer_tree_cache_create): Add argument whether to record hashes.
538 (streamer_tree_cache_get): Rename to ...
539 (streamer_tree_cache_get_tree): ... this.
540 (streamer_tree_cache_get_hash): New function.
541 * tree.c (cache_integer_cst): New function.
542 * tree.h (cache_integer_cst): Declare.
543 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
544 * lto-symtab.c (lto_varpool_replace_node): Only release
545 DECL_INITIAL of non-prevailing decls.
546 * varpool.c (varpool_remove_initializer): Do not release
547 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
549 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
551 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
552 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
553 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
554 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
555 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
556 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
557 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
558 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
559 instead of TARGET_64BIT.
560 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
561 Require ISA_HAS_<D>DIV.
563 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
565 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
566 (mips*-*-linux*): Move default with_llsc setting to where other
568 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
570 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
571 Likewise. Remove default with_tune setting. Move default float
572 setting to its own block. Handle with_llsc in the same block as above.
574 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
576 PR rtl-optimization/57425
577 PR rtl-optimization/57569
578 * alias.c (write_dependence_p): Add new parameters mem_mode,
579 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
581 (canon_anti_dependence): New function.
582 * cse.c (check_dependence): Use canon_anti_dependence.
583 * cselib.c (cselib_invalidate_mem): Likewise.
584 * rtl.h (canon_anti_dependence): Declare.
586 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
588 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
589 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
590 ".set mips3" for 64-bit targets.
592 2013-06-15 Dehao Chen <dehao@google.com>
594 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
595 * gimple-low.c (gimple_check_call_matching_types): Likewise.
596 (gimple_check_call_args): Likewise.
597 * value-prof.c (check_ic_target): Likewise.
598 * ipa-inline.c (early_inliner): Likewise.
599 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
600 * cgraph.c (cgraph_create_edge_1): Likewise.
601 (cgraph_make_edge_direct): Likewise.
603 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
606 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
607 rs6000_output_move_128bit to handle emitting quad memory
608 operations. Set attribute length to 8 bytes.
610 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
612 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
614 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
615 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
616 (aarch64_<su>mlsl<mode>): Likewise.
618 2013-06-14 Mike Stump <mikestump@comcast.net>
620 * Makefile.in (TARGET_H): Add insn-codes.h.
622 2013-06-14 Alan Modra <amodra@gmail.com>
626 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
627 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
628 bitfield expansion when EXPAND_MEMORY.
629 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
631 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
633 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
634 test for clearing quad memory on 32-bit later.
636 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
638 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
639 (fold_negate_expr): Likewise.
640 (fold_real_zero_addition_p): Handle vectors.
641 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
643 2013-06-14 Alan Modra <amodra@gmail.com>
645 * varasm.c (force_const_mem): Revert 2013-06-07 change.
647 2013-06-13 Jan Hubicka <jh@suse.cz>
649 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
650 Local comdats are not externally visible.
651 * symtab.c (dump_symtab_base): Dump externally visible.
652 (verify_symtab_base): Verify back links in the symtab hash.
654 2013-06-13 Bin Cheng <bin.cheng@arm.com>
656 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
657 CONVERT_EXPR as equal nodes.
659 2013-06-13 Bin Cheng <bin.cheng@arm.com>
661 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
663 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
665 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
666 Generalize to complex and vector.
667 * tree.c (build_all_ones_cst): New function.
668 * tree.h (build_all_ones_cst): Declare it.
670 2013-06-13 Alan Modra <amodra@gmail.com>
672 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
673 * config/rs6000/rs6000.md (signbittf2): New insn.
674 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
675 (abstf2_internal, cmptf_internal2): Likewise.
676 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
678 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
679 Pat Haugen <pthaugen@us.ibm.com>
680 Peter Bergner <bergner@vnet.ibm.com>
682 * config/rs6000/rs6000.c (emit_load_locked): Add support for
683 power8 byte, half-word, and quad-word atomic instructions.
684 (emit_store_conditional): Likewise.
685 (rs6000_expand_atomic_compare_and_swap): Likewise.
686 (rs6000_expand_atomic_op): Likewise.
688 * config/rs6000/sync.md (larx): Add new modes for power8.
690 (AINT): New mode iterator to include TImode as well as normal
691 integer modes on power8.
692 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
693 that VSX registers are not considered. Use AINT mode iterator
694 instead of INT1 to allow inclusion of quad word atomic operations
696 (load_locked<mode>): Likewise.
697 (store_conditional<mode>): Likewise.
698 (atomic_compare_and_swap<mode>): Likewise.
699 (atomic_exchange<mode>): Likewise.
700 (atomic_nand<mode>): Likewise.
701 (atomic_fetch_<fetchop_name><mode>): Likewise.
702 (atomic_nand_fetch<mode>): Likewise.
703 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
705 (ATOMIC): On power8, add QImode, HImode modes.
706 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
707 modes that promote to SImode.
708 (load_lockedti): Convert TImode arguments to PTImode, so that we
709 get a guaranteed even/odd register pair.
710 (load_lockedpti): Likewise.
711 (store_conditionalti): Likewise.
712 (store_conditionalpti): Likewise.
714 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
715 atomic load/store instructions.
718 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
720 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
722 (insn_count): New attribute, with most cases extracted from...
723 (length): ...here. Redefine most cases in terms of insn_count.
724 (single_insn): Delete.
725 (can_delay): Use insn_count to check for single instructions.
726 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
727 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
728 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
729 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
730 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
731 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
732 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
733 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
734 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
735 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
736 rather than "length".
737 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
738 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
739 Use "insn_count" rather than "length".
740 * config/mips/mips-dsp.md
741 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
742 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
745 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
747 PR tree-optimization/57361
748 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
750 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
752 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
754 (aarch64_simd_combine<mode>): New instruction expansion.
755 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
757 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
758 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
760 2013-06-12 Jan Hubicka <jh@suse.cz>
762 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
763 decl has when in streaming stage.
764 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
765 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
767 2013-06-12 Roland Stigge <stigge@antcom.de>
770 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
772 2013-06-12 Jakub Jelinek <jakub@redhat.com>
774 PR tree-optimization/57537
775 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
776 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
778 2013-06-12 Richard Biener <rguenther@suse.de>
780 * data-streamer.h (streamer_write_char_stream): CSE
781 obs->current_pointer.
782 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
783 streamer_write_char_stream manually and optimize the resulting loop.
784 (streamer_write_hwi_stream): Likewise.
786 2013-06-12 Jan Hubicka <jh@suse.cz>
788 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
789 * cgraph.h (varpool_create_empty_node): Declare.
790 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
792 * symtab.c (symtab_unregister_node): Be lax about missin entries
794 (symtab_get_node): Update comment.
795 * varpool.c (varpool_create_empty_node): Break out from ...
796 (varpool_node_for_decl): ... here.
797 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
799 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
801 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
802 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
803 part. Use straight-line flow at the end.
804 <COMPONENT_REF>: Remove superfluous else.
805 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
807 2013-06-12 Jakub Jelinek <jakub@redhat.com>
810 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
811 target hook even for !TREE_PUBLIC decls. If no resolution info
812 is available, return false for common and external decls.
814 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
816 * config/rl78/constraints.md (U): New constraint.
817 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
820 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
823 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
824 to allow returning address to AT_PLATFORM name.
826 2013-06-11 Jan Hubicka <jh@suse.cz>
828 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
829 * cgraph.h (symtab_node_base): Add weakref flag.
830 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
831 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
832 (output_weakrefs): Use weakref flag.
833 * fold-const.c (simple_operand_p): Handle WEAK.
834 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
835 * ipa.c (varpool_externally_visible_p): Drop weakref.
836 (function_and_variable_visibility): Update comment; fix weakref
837 sanity checks; do not clear DECL_WEAK on them.
838 * lto-cgraph.c (lto_output_node): update.
839 (lto_output_varpool_node): Update.
840 (input_overwrite_node): Update.
841 (input_node): Update.
842 (input_varpool_node): Update.
843 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
844 (lto_symtab_merge_symbols): Add sanity check.
845 (lto_symtab_prevailing_decl): Do not special case weakrefs.
846 * passes.c (rest_of_decl_compilation): Set static flag, too.
847 * symtab.c (dump_symtab_base): Dump weakref.
848 (verify_symtab_base): Sanity check weakrefs.
849 (symtab_make_decl_local): Remove duplicated code.
850 (symtab_alias_ultimate_target): Simplify.
851 * varpool.c (varpool_create_variable_alias): Set weakref flag.
853 2013-06-11 DJ Delorie <dj@redhat.com>
855 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
856 (rl78_unwind_word_mode): New.
858 2013-06-11 David Malcolm <dmalcolm@redhat.com>
860 * final.c (debug_prefix_maps): Make static.
862 2013-06-11 David Malcolm <dmalcolm@redhat.com>
864 * function.c (initial_trampoline): Remove stray copy.
866 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
868 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
870 2013-06-11 Martin Jambor <mjambor@suse.cz>
872 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
873 within bounds at the beginning of the function.
875 2013-06-11 Alan Modra <amodra@gmail.com>
877 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
879 (get_named_section): Don't NULL !DECL_P decl.
881 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
883 * doc/invoke.texi (core-avx2): Document.
885 (atom): Updated with MOVBE.
887 2013-06-11 Richard Biener <rguenther@suse.de>
889 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
891 2013-06-11 Anton Blanchard <anton@samba.org>
893 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
894 correct shift value in little-endian mode.
896 2013-06-11 Jakub Jelinek <jakub@redhat.com>
899 * varasm.c (get_variable_align): Move #endif to the right place.
901 2013-06-10 Cary Coutant <ccoutant@google.com>
903 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
904 for hash so that hash table traversal order is deterministic.
906 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
907 Pat Haugen <pthaugen@us.ibm.com>
908 Peter Bergner <bergner@vnet.ibm.com>
910 * config/rs6000/vector.md (GPR move splitter): Do not split moves
911 of vectors in GPRS if they are direct moves or quad word load or
914 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
916 (direct_move_p): Likewise.
917 (quad_load_store_p): Likewise.
919 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
920 classes into bins based on the physical register type.
921 (reg_class_to_reg_type): Likewise.
922 (IS_STD_REG_TYPE): Likewise.
923 (IS_FP_VECT_REG_TYPE): Likewise.
924 (reload_fpr_gpr): Arrays to determine what insn to use if we can
925 use direct move instructions.
926 (reload_gpr_vsx): Likewise.
927 (reload_vsx_gpr): Likewise.
928 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
929 information that is a simplification of register classes. Also
930 precalculate direct move reload helpers.
931 (direct_move_p): New function to return true if the operation can
932 be done as a direct move instruciton.
933 (quad_load_store_p): New function to return true if the operation
934 is a quad memory operation.
935 (rs6000_legitimize_address): If quad memory, only allow register
936 indirect for TImode addresses.
937 (rs6000_legitimate_address_p): Likewise.
938 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
939 (rs6000_reload_register_type): Likewise.
940 (register_to_reg_type): Return register type.
941 (rs6000_secondary_reload_simple_move): New helper function for
942 secondary reload and secondary memory needed to identify anything
943 that is a simple move, and does not need reloading.
944 (rs6000_secondary_reload_direct_move): New helper function for
945 secondary reload to identify cases that can be done with several
946 instructions via the direct move instructions.
947 (rs6000_secondary_reload_move): New helper function for secondary
948 reload to identify moves between register types that can be done.
949 (rs6000_secondary_reload): Add support for quad memory operations
951 (rs6000_secondary_memory_needed): Likewise.
952 (rs6000_debug_secondary_memory_needed): Change argument names.
953 (rs6000_output_move_128bit): New function to return the move to
954 use for 128-bit moves, including knowing about the various
955 limitations of quad memory operations.
957 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
958 memory operations. call rs6000_output_move_128bit for the actual
959 instruciton(s) to generate.
960 (vsx_movti_64bit): Likewise.
962 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
963 (UNSPEC_P8V_MTVSRWZ): Likewise.
964 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
965 (UNSPEC_P8V_MTVSRD): Likewise.
966 (UNSPEC_P8V_XXPERMDI): Likewise.
967 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
968 (UNSPEC_FUSION_GPR): Likewise.
969 (FMOVE128_GPR): New iterator for direct move.
970 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
973 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
974 loads and direct move instructions.
975 (zero_extendsidi2_lfiwzx): Likewise.
976 (extendsidi2_lfiwax): Likewise.
977 (extendsidi2_nocell): Likewise.
978 (floatsi<mode>2_lfiwax): Likewise.
980 (floatunssi<mode>2_lfiwzx): Likewise.
982 (fix_trunc<mode>_stfiwx): Likewise.
983 (fixuns_trunc<mode>_stfiwx): Likewise.
984 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
985 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
986 (parity<mode>2_cmpb): Set length/type attr.
987 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
988 for 'mr.' to fast_compare.
989 (bpermd_<mode>): Change type attr to popcnt.
990 (p8_fmrgow_<mode>): New insns for power8 direct move support.
991 (p8_mtvsrwz_1): Likewise.
992 (p8_mtvsrwz_2): Likewise.
993 (reload_fpr_from_gpr<mode>): Likewise.
994 (p8_mtvsrd_1): Likewise.
995 (p8_mtvsrd_2): Likewise.
996 (p8_xxpermdi_<mode>): Likewise.
997 (reload_vsx_from_gpr<mode>): Likewise.
998 (reload_vsx_from_gprsf): Likewise.
999 (p8_mfvsrd_3_<mode>): LIkewise.
1000 (reload_gpr_from_vsx<mode>): Likewise.
1001 (reload_gpr_from_vsxsf): Likewise.
1002 (p8_mfvsrd_4_disf): Likewise.
1003 (multi-word GPR splits): Do not split direct moves or quad memory
1006 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1008 * tree-into-ssa.c (interesting_blocks): Make static.
1010 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1013 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1014 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1015 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1016 (get_variable_align): New function.
1017 (get_variable_section, emit_bss, emit_common,
1018 assemble_variable_contents, place_block_symbol): Use
1019 get_variable_align instead of DECL_ALIGN.
1020 (assemble_noswitch_variable): Add align argument, use it
1021 instead of DECL_ALIGN.
1022 (assemble_variable): Adjust caller. Use get_variable_align
1023 instead of DECL_ALIGN.
1024 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1026 (DATA_ABI_ALIGNMENT): Define.
1027 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1028 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1029 opt is false, only return the psABI mandated alignment increase.
1030 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1031 (DATA_ABI_ALIGNMENT): ... this.
1032 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1033 (DATA_ABI_ALIGNMENT): ... this.
1034 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1035 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1036 (DATA_ABI_ALIGNMENT): ... this.
1037 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1038 * doc/tm.texi: Regenerated.
1040 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1042 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1043 cmp_code to construct REG_EQUAL note.
1045 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1048 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1049 that operands[2] doesn't overlap with operands[0].
1051 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1052 Jan Hubicka <jh@suse.cz>
1054 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1055 hack to mark symbols as used.
1057 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1059 PR rtl-optimization/57559
1060 * lra-constraints.c (process_alt_operands): Don't discourage
1061 memory with known offset for offsetable memory constraint.
1062 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1064 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1066 * varasm.c (struct oc_local_state): Reorder fields.
1067 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1068 and adjust accordingly.
1069 (output_constructor): Reorder initialization code and adjust call to
1070 output_constructor_bitfield.
1072 2013-06-07 Jan Hubicka <jh@suse.cz>
1074 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1076 2013-06-07 David Malcolm <dmalcolm@redhat.com>
1078 * tree-object-size.c (unknown): Make const.
1080 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1082 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1083 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1084 for last alternative in the cpu_facility attribute.
1086 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1089 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1090 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1091 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1092 * config/arm/constraints.md (Dg): New constraint.
1093 * config/arm/neon.md (xordi3_neon): Remove.
1094 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1095 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1097 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1099 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1100 Clean up alternatives.
1102 2013-06-07 Alan Modra <amodra@gmail.com>
1104 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1107 2013-06-07 Alan Modra <amodra@gmail.com>
1109 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1111 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1113 * config/arm/constraints.md (Df): New constraint.
1114 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1115 Correct length attribute for last two alternatives.
1117 2013-06-07 Alan Modra <amodra@gmail.com>
1119 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1120 override user -mfp-in-toc.
1121 (offsettable_ok_by_alignment): Consider just the current access
1122 rather than the whole object, unless BLKmode. Handle
1123 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1124 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1125 for -mcmodel=medium.
1126 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1127 override user -mfp-in-toc or -msum-in-toc. Default to
1128 -mno-fp-in-toc for -mcmodel=medium.
1130 2013-06-06 DJ Delorie <dj@redhat.com>
1132 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1133 TARGET_VALID_POINTER_MODE.
1135 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1136 Pat Haugen <pthaugen@us.ibm.com>
1137 Peter Bergner <bergner@vnet.ibm.com>
1139 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1140 Document new power8 builtins.
1142 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1143 condition code register, to allow 128-bit logical operations to be
1144 done in the VSX or GPR registers.
1145 (nor<mode>3): Use the canonical form for nor.
1146 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1147 vclz*, and vpopcnt* vector instructions.
1148 (nand<mode>3): Likewise.
1149 (orc<mode>3): Likewise.
1150 (clz<mode>2): LIkewise.
1151 (popcount<mode>2): Likewise.
1153 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1154 that only the GPRs are recognized.
1156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1157 support for new power8 builtins.
1159 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1161 (xscvdpspn): Likewise.
1167 (vpopcnt): Likewise.
1168 (vpopcntb): Likewise.
1169 (vpopcnth): Likewise.
1170 (vpopcntw): Likewise.
1171 (vpopcntd): Likewise.
1176 (eqv_v16qi3): Likewise.
1177 (eqv_v8hi3): Likewise.
1178 (eqv_v4si3): Likewise.
1179 (eqv_v2di3): Likewise.
1180 (eqv_v4sf3): Likewise.
1181 (eqv_v2df3): Likewise.
1183 (nand_v16qi3): Likewise.
1184 (nand_v8hi3): Likewise.
1185 (nand_v4si3): Likewise.
1186 (nand_v2di3): Likewise.
1187 (nand_v4sf3): Likewise.
1188 (nand_v2df3): Likewise.
1190 (orc_v16qi3): Likewise.
1191 (orc_v8hi3): Likewise.
1192 (orc_v4si3): Likewise.
1193 (orc_v2di3): Likewise.
1194 (orc_v4sf3): Likewise.
1195 (orc_v2df3): Likewise.
1197 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1198 allow power8 quad mode in 64-bit.
1199 (rs6000_builtin_vectorized_function): Add support to vectorize
1200 ISA 2.07 count leading zeros, population count builtins.
1201 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1202 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1203 (builtin_function_type): Add vgbbd builtin function which takes an
1205 (altivec_expand_vec_perm_const): Add support for new power8 merge
1208 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1209 that does not include TImdoe for use with 32-bit.
1210 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1212 (UNSPEC_VSX_CVDPSPN): Likewise.
1213 (vsx_xscvdpspn): Likewise.
1214 (vsx_xscvspdpn): Likewise.
1215 (vsx_xscvdpspn_scalar): Likewise.
1216 (vsx_xscvspdpn_directmove): Likewise.
1217 (vsx_and<mode>3): Split logical operations into 32-bit and
1218 64-bit. Add support to do logical operations on TImode as well as
1219 VSX vector types. Allow logical operations to be done in either
1220 VSX registers or in general purpose registers in 64-bit mode. Add
1221 splitters if GPRs were used. For AND, add clobber of CCmode to
1222 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1224 (vsx_and<mode>3_32bit): Likewise.
1225 (vsx_and<mode>3_64bit): Likewise.
1226 (vsx_ior<mode>3): Likewise.
1227 (vsx_ior<mode>3_32bit): Likewise.
1228 (vsx_ior<mode>3_64bit): Likewise.
1229 (vsx_xor<mode>3): Likewise.
1230 (vsx_xor<mode>3_32bit): Likewise.
1231 (vsx_xor<mode>3_64bit): Likewise.
1232 (vsx_one_cmpl<mode>2): Likewise.
1233 (vsx_one_cmpl<mode>2_32bit): Likewise.
1234 (vsx_one_cmpl<mode>2_64bit): Likewise.
1235 (vsx_nor<mode>3): Likewise.
1236 (vsx_nor<mode>3_32bit): Likewise.
1237 (vsx_nor<mode>3_64bit): Likewise.
1238 (vsx_andc<mode>3): Likewise.
1239 (vsx_andc<mode>3_32bit): Likewise.
1240 (vsx_andc<mode>3_64bit): Likewise.
1241 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1242 and xxlorc instructions.
1243 (vsx_eqv<mode>3_64bit): Likewise.
1244 (vsx_nand<mode>3_32bit): Likewise.
1245 (vsx_nand<mode>3_64bit): Likewise.
1246 (vsx_orc<mode>3_32bit): Likewise.
1247 (vsx_orc<mode>3_64bit): Likewise.
1249 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1251 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1253 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1254 (p8_vmrgow): Likewise.
1255 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1256 GPRs to be split under VSX.
1257 (p8v_clz<mode>2): Add power8 count leading zero support.
1258 (p8v_popcount<mode>2): Add power8 population count support.
1259 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1262 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1265 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1267 (vec_nand): Likewise.
1268 (vec_vclz): Likewise.
1269 (vec_vclzb): Likewise.
1270 (vec_vclzd): Likewise.
1271 (vec_vclzh): Likewise.
1272 (vec_vclzw): Likewise.
1273 (vec_vgbbd): Likewise.
1274 (vec_vmrgew): Likewise.
1275 (vec_vmrgow): Likewise.
1276 (vec_vpopcnt): Likewise.
1277 (vec_vpopcntb): Likewise.
1278 (vec_vpopcntd): Likewise.
1279 (vec_vpopcnth): Likewise.
1280 (vec_vpopcntw): Likewise.
1282 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1284 PR rtl-optimization/57468
1285 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1288 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1290 PR rtl-optimization/57459
1291 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1292 type when setting live regs.
1294 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1296 * config/s390/s390.opt (mlra): New option.
1297 * config/s390/s390.c (s390_decompose_address): Check displacement
1298 for all registers for LRA.
1299 (s390_secondary_reload): Don't used secondary reloads for LRA.
1300 (s390_lra_p): New function.
1301 (TARGET_LRA_P): Define.
1302 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1303 of attribute cpu_facility to zarch for the last alternative.
1304 (*cmpmem_short): Ditto.
1306 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1308 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1309 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1310 (arm_expand_prologue): Likewise.
1312 2013-06-06 Teresa Johnson <tejohnson@google.com>
1315 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1316 as this is now done by redirect_edge_and_branch_force.
1317 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1318 barriers, and fix interaction with splitting.
1319 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1320 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1321 reflect changes made in the routine.
1322 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1323 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1324 since this is called in cfglayout mode, and replace partition fixup
1325 with assert as that is now done by force_nonfallthru_and_redirect.
1326 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1327 already be marked with region crossing note.
1328 (insert_section_boundary_note): Make non-static, gate on flag
1329 has_bb_partition, rewrite to also check for multiple partitions.
1330 (rest_of_handle_reorder_blocks): Remove call to
1331 insert_section_boundary_note, now done later during free_cfg.
1332 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1333 * bb-reorder.h (insert_section_boundary_note): Declare.
1334 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1335 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1336 invoke insert_section_boundary_note.
1337 (try_redirect_by_replacing_jump): Remove unnecessary
1338 check for region crossing note.
1339 (fixup_partition_crossing): New function.
1340 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1341 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1342 in non-cfglayout mode.
1343 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1344 remove old code that tried to do this. Emit barrier correctly
1345 when we are in cfglayout mode.
1346 (last_bb_in_partition): New function.
1347 (rtl_split_edge): Correctly fixup partition boundaries.
1348 (commit_one_edge_insertion): Remove old code that tried to
1349 fixup region crossing edge since this is now handled in
1350 split_block, and set up insertion point correctly since
1351 block may now end in a jump.
1352 (verify_hot_cold_block_grouping): Guard against checking when not in
1353 linearized RTL mode.
1354 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1356 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1357 rtl_verify_flow_info, so not called in cfglayout mode.
1358 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1359 (fixup_reorder_chain): Remove old code that attempted to fixup region
1360 crossing note as this is now handled in force_nonfallthru_and_redirect.
1361 (duplicate_insn_chain): Don't duplicate switch section notes.
1362 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1364 * basic-block.h (emit_barrier_after_bb): Declare.
1366 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1368 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1369 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1370 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1372 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1374 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1376 * config/arm/ldmstm.md: Regenerate.
1378 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1380 * config/arm/sync.md (atomic_loaddi_1):
1381 Disable predication for arm_restrict_it.
1382 (arm_load_exclusive<mode>): Likewise.
1383 (arm_load_exclusivesi): Likewise.
1384 (arm_load_exclusivedi): Likewise.
1385 (arm_load_acquire_exclusive<mode>): Likewise.
1386 (arm_load_acquire_exclusivesi): Likewise.
1387 (arm_load_acquire_exclusivedi): Likewise.
1388 (arm_store_exclusive<mode>): Likewise.
1389 (arm_store_exclusive<mode>): Likewise.
1390 (arm_store_release_exclusivedi): Likewise.
1391 (arm_store_release_exclusive<mode>): Likewise.
1393 2013-06-06 Richard Biener <rguenther@suse.de>
1395 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1397 (lto_tag_is_tree_code_p): Adjust.
1398 (lto_tag_is_gimple_code_p): Likewise.
1399 (lto_gimple_code_to_tag): Likewise.
1400 (lto_tag_to_gimple_code): Likewise.
1401 (lto_tree_code_to_tag): Likewise.
1402 (lto_tag_to_tree_code): Likewise.
1403 * data-streamer.h (streamer_write_hwi_in_range): Use
1404 uhwi streaming to stream the normalized range.
1405 (streamer_read_hwi_in_range): Likewise.
1407 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1409 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1410 (predicable_short_it): Likewise.
1411 (predicated): Likewise.
1412 (enabled): Handle above.
1413 (define_cond_exec): Set predicated attribute to yes.
1415 2013-06-05 Mike Stump <mikestump@comcast.net>
1417 * gdbinit.in (__FUNCTION__): Add.
1419 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
1421 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1422 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1424 2013-06-05 Jan Hubicka <jh@suse.cz>
1426 * varasm.c (mark_decl_referenced): Revert the removal until targets
1429 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
1431 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1432 instead of mark_decl_referenced.
1434 2013-06-05 Jan Hubicka <jh@suse.cz>
1436 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1437 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1438 and symtab_used_from_object_file_p.
1439 (cgraph_make_node_local_1): Clear forced_by_abi.
1440 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1441 * cgraph.h (symtab_node_base): Add forced_by_abi.
1442 (decide_is_variable_needed): Remove.
1443 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1444 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1445 (decide_is_symbol_needed): ... this one; handle symbols in general;
1446 always analyze virtuals; honnor forced_by_abi.
1447 (cgraph_finalize_function): Update.
1448 (varpool_finalize_decl): Update.
1449 (symbol_defined_and_needed): Remove.
1450 (analyze_functions): Update.
1451 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1452 output_refs, input_overwrite_node): Handle forced_by_abi.
1453 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1454 (address_taken_from_non_vtable_p): ... this one.
1455 (comdat_can_be_unshared_p_1): New function.
1456 (cgraph_comdat_can_be_unshared_p): Rename to ...
1457 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1458 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1459 (function_and_variable_visibility): Clear forced_by_abi as needed.
1460 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1461 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
1462 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1463 * varpool.c (decide_is_variable_needed): Remove.
1465 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1467 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1468 (arm_option_override): Override arm_restrict_it where appropriate.
1469 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1470 * config/arm/arm.opt (mrestrict-it): New command-line option.
1471 * doc/invoke.texi: Document -mrestrict-it.
1473 2013-06-05 David Malcolm <dmalcolm@redhat.com>
1475 * tsan.c (tsan_atomic_table): Make const.
1477 2013-06-05 Richard Biener <rguenther@suse.de>
1479 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1480 index associated with the tree we are supposed to replace.
1481 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1482 TREE_ASM_WRITTEN as zero for everything but SSA names.
1484 2013-06-05 David Malcolm <dmalcolm@redhat.com>
1486 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1488 2013-06-04 Jan Hubicka <jh@suse.cz>
1490 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1491 (input_node, input_varpool_node): Handle correctly external same
1493 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1494 nodes at ltrans stage.
1496 2013-06-04 Jan Hubicka <jh@suse.cz>
1498 * ipa-inline.c (update_caller_keys): Fix availability test.
1499 (update_callee_keys): Likewise.
1500 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1501 to follow ELF standard.
1503 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1505 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1506 (mips64r5900el-*-elf*): New configurations.
1507 * config/mips/mips-cpus.def (r5900): New processor.
1508 * config/mips/mips-tables.opt: Regenerate.
1509 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1510 (mips_issue_rate): Handle PROCESSOR_R5900.
1511 (mips_reorg_process_insns): Force reorder mode for the R5900.
1512 * config/mips/mips.h (TARGET_MIPS5900): Define.
1513 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1515 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1517 * config/mips/mips.md (processor): Add r5900.
1518 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1520 2013-06-04 Ian Bolton <ian.bolton@arm.com>
1522 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1523 into function to generate MOVI instruction.
1524 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
1525 (aarch64_preferred_simd_mode): Turn into wrapper.
1526 (aarch64_output_scalar_simd_mov_immediate): New function.
1527 * config/aarch64/aarch64-protos.h: Add prototype for above.
1529 2013-06-04 Ian Bolton <ian.bolton@arm.com>
1531 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1532 element_char member.
1533 (sizetochar): Return signed char.
1534 (aarch64_simd_valid_immediate): Remove elchar and other
1535 unnecessary variables.
1536 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1537 Calculate element_char as required.
1538 * config/aarch64/aarch64-protos.h: Update and move prototype
1539 for aarch64_output_simd_mov_immediate.
1540 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1543 2013-06-04 Ian Bolton <ian.bolton@arm.com>
1545 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1546 information completed by aarch64_simd_valid_immediate.
1547 (aarch64_legitimate_constant_p): Update arguments.
1548 (aarch64_simd_valid_immediate): Work with struct rather than many
1550 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1551 (aarch64_simd_make_constant): Update arguments.
1552 (aarch64_output_simd_mov_immediate): Work with struct rather than
1553 many pointers. Output immediate directly rather than as operand.
1554 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1556 * config/aarch64/constraints.md (Dn): Update arguments.
1558 2013-06-04 Ian Bolton <ian.bolton@arm.com>
1560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1562 (aarch64_simd_immediate_valid_for_move): Remove.
1563 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1564 (aarch64_simd_make_constant): Update call.
1565 (aarch64_output_simd_mov_immediate): Update call.
1566 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1568 * config/aarch64/constraints.md (Dn): Update call.
1570 2013-06-04 Ian Bolton <ian.bolton@arm.com>
1572 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1573 return type to bool for prototype.
1574 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1575 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1576 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1578 2013-06-04 Catherine Moore <clm@codesourcery.com>
1580 * config/mips/mips.opt (meva): New.
1581 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
1582 (ASM_SPEC): Handle -meva.
1583 * doc/invoke.texi (meva): Document.
1585 2013-06-04 Alan Modra <amodra@gmail.com>
1587 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1590 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1592 * rtl.def: Add extra fourth optional field to define_cond_exec.
1593 * gensupport.c (process_one_cond_exec): Process attributes from
1595 * doc/md.texi: Document fourth field in define_cond_exec.
1597 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1599 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1600 out the processing order as in store_bit_field_1.
1602 2013-06-04 Jan Hubicka <jh@suse.cz>
1605 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1606 non-VAR_DECL node if it does not exist yet.
1608 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1610 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1611 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1612 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1613 target_cpu_default setting.
1615 2013-06-03 Teresa Johnson <tejohnson@google.com>
1617 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1618 default to -fopt-info=optimized instead of all.
1619 * doc/invoke.texi: Ditto.
1620 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1621 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1622 (execute_vect_slp): Emit BB vectorization success under
1623 MSG_OPTIMIZED_LOCATIONS.
1624 * tree-vect-slp.c (vect_slp_transform_bb): Change
1625 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1626 * tree-vect-loop.c (vect_transform_loop): Ditto.
1628 2013-06-03 Jason Merrill <jason@redhat.com>
1631 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1632 Use TARGET_EXPR for C++.
1634 2013-06-03 Jakub Jelinek <jakub@redhat.com>
1636 PR rtl-optimization/57268
1637 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1638 if DEBUG_INSN_P (insn).
1641 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1643 PR rtl-optimization/57268
1644 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1645 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1647 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1649 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1650 (ix86_avoid_lea_for_addr): Likewise.
1651 (exact_dependency_1): Likewise.
1652 (ix86_adjust_cost): Likewise.
1653 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1655 (do_reorder_for_imul): Fix typo, formatting and
1656 !reload_completed check removed.
1657 (ix86_sched_reorder): Fix typo and formatting.
1658 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1661 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1663 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1665 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1667 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1668 <STRING_CST>: Likewise.
1669 <VECTOR_CST>: Likewise.
1671 2013-06-01 Janus Weil <janus@gcc.gnu.org>
1672 Mikael Morin <mikael@gcc.gnu.org>
1674 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1675 * config.in: Regenerated.
1676 * configure: Regenerated.
1678 2013-06-01 Jan Hubicka <jh@suse.cz>
1681 * cgraphunit.c (compile): When weakref is not supported,
1682 set up transparent aliases before final output pass.
1683 * varasm.c (assemble_alias): Do not try to do it here.
1685 2013-06-01 Jan Hubicka <jh@suse.cz>
1688 * passes.c (for_per_function): Skip unanalyzed functions.
1690 2013-06-01 Jan Hubicka <jh@suse.cz>
1692 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1693 (lto_symtab_merge_symbols_1): ... this one.
1694 (lto_symtab_merge_cgraph_nodes): Rename to ...
1695 (lto_symtab_merge_symbols): ... this one; simplify.
1696 * cgraph.c (same_body_aliases_done): Rename to ...
1697 (cpp_implicit_aliases_done): ... this one.
1698 (cgraph_create_function_alias): Update.
1699 (cgraph_same_body_alias): Update.
1700 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
1701 (verify_edge_corresponds_to_fndecl): Simplify.
1702 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
1703 (cgraph_node): Remove same_body_alias.
1704 (varpool_node): Remove alias_of and extra_name_alias.
1705 (same_body_aliases_done): Rename to ..
1706 (cpp_implicit_aliases_done): ... this one.
1707 (symtab_alias_ultimate_target): Add default parameter.
1708 (symtab_resolve_alias): New function.
1709 (fixup_same_cpp_alias_visibility): Declare.
1710 (cgraph_function_node): Add default parameter.
1711 (cgraph_node_asm_name): Likewise.
1712 (cgraph_function_or_thunk_node): Add default parameter; do
1713 not ICE when it is NULL.
1714 (varpool_variable_node): Likewise.
1715 * tree-emutls.c (create_emultls_var): Update.
1716 (ipa_lower_emutls): Update.
1717 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1718 (cgraph_reset_node): Reset alias info.
1719 (cgraph_finalize_function): Update.
1720 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1721 (analyze_function): Simplify.
1722 (cgraph_process_same_body_aliases): Simplify.
1723 (analyze_functions): Fixup same body aliases.
1724 (handle_alias_pairs): Simplify.
1725 (assemble_thunk): Update.
1726 (assemble_thunks_and_aliases): Update.
1727 (output_weakrefs): Rewrite.
1728 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1729 (lto_output_varpool_node): Likewise.
1730 (compute_ltrans_boundary): Remve assert.
1731 (get_alias_symbol): New functoin.
1732 (input_node): Rewrite alias handling.
1733 (input_varpool_node): Likewise.
1734 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1735 * ipa.c (process_references): Handle weakrefs correctly.
1736 (symtab_remove_unreachable_nodes): Likewise.
1737 * trans-mem.c (get_cg_data): Update.
1738 (ipa_tm_create_version_alias): Update.
1739 (ipa_tm_execute): Update.
1740 * symtab.c (dump_symtab_base): Dump aliases.
1741 (verify_symtab_base): Verify aliases.
1742 (symtab_node_availability): New function.
1743 (symtab_alias_ultimate_target): Simplify.
1744 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1745 handle all the fixup cases.
1746 (symtab_resolve_alias): New function.
1747 * passes.c (ipa_write_summaries): Handle weakrefs.
1748 * varpool.c (varpool_analyze_node): Simplify.
1749 (assemble_aliases): Update.
1750 (varpool_create_variable_alias): Simplify.
1751 (varpool_extra_name_alias): Simplify.
1752 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1753 (lto_symtab_merge_symbols): ... this one.
1755 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1758 PR rtl-optimization/57268
1759 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1760 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1762 2013-06-01 Tobias Burnus <burnus@net-b.de>
1765 2013-05-31 Tobias Burnus <burnus@net-b.de>
1768 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1771 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1773 PR rtl-optimization/57268
1774 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1775 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1777 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1779 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1780 unordered comparison operators when -fno-trapping-math is in effect
1782 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1783 and implement unordered comparison operators properly on the e500.
1785 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1787 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1788 for constant scalar integers.
1789 (simplify_relational_operation_1): Likewise.
1791 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1793 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1794 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
1797 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1798 Igor Zamyatin <igor.zamyatin@intel.com>
1800 Silvermont (SLM) architecture performance tuning.
1801 * config/i386/i386.h (enum ix86_tune_indices): Add
1802 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1803 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1805 * config/i386/i386.c (initial_ix86_tune_features)
1806 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1807 (ix86_lea_outperforms): Handle Silvermont tuning.
1808 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1810 (ix86_use_lea_for_mov): Likewise.
1811 (ix86_avoid_lea_for_addr): Likewise.
1812 (ix86_lea_for_add_ok): Likewise.
1813 (exact_dependency_1): New function.
1814 (exact_store_load_dependency): Likewise.
1815 (ix86_adjust_cost): Handle Silvermont tuning.
1816 (do_reoder_for_imul): Likewise.
1817 (swap_top_of_ready_list): New function.
1818 (ix86_sched_reorder): Changed to handle Silvermont tuning.
1820 * config/i386/i386.md (peepholes that split memory operand in fp
1823 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1825 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1826 Remove un-necessary braces.
1828 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1830 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1831 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1833 2013-05-31 Tobias Burnus <burnus@net-b.de>
1836 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
1838 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1841 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1842 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1843 * config/arm/neon.md (iordi3_neon): Remove.
1844 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1845 * config/arm/predicates.md (imm_for_neon_logic_operand):
1846 Move to earlier in the file.
1847 (neon_logic_op2): Likewise.
1848 (arm_iordi_operand_neon): New predicate.
1850 2013-05-31 Richard Biener <rguenther@suse.de>
1852 PR tree-optimization/57478
1853 PR tree-optimization/57453
1854 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1857 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1859 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1860 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1862 2013-05-30 Tobias Burnus <burnus@net-b.de>
1863 Thomas Koenig <tkoenig@gcc.gnu.org>
1866 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1867 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1869 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
1871 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
1873 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
1875 * target.def (register_usage_leveling_p): New hook.
1876 * targhooks.c (default_register_usage_leveling_p): New.
1877 * targhooks.h (default_register_usage_leveling_p): New prototype.
1878 * lra-assigns.c (register_usage_leveling_p): Use the hook.
1879 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1880 * doc/tm.texi: Update.
1881 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1883 2013-05-30 Ian Bolton <ian.bolton@arm.com>
1885 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1886 (*insv_reg<mode>): New define_insn.
1888 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
1890 PR rtl-optimization/57439
1891 * postreload.c (move2add_valid_value_p): Check that we have
1892 a zero subreg_regno_offset when accessing the register in
1895 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1896 Igor Zamyatin <igor.zamyatin@intel.com>
1898 Silvermont (SLM) architecture pipeline model, tuning and
1900 * config.gcc: Add slm config options and target.
1902 * config/i386/slm.md: New.
1904 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1906 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1908 (ix86_target_macros_internal): Likewise.
1910 * gcc/config/i386/i386.c (slm_cost): New cost.
1911 (m_SLM): New macro flag.
1912 (initial_ix86_tune_features): Set m_SLM.
1913 (x86_accumulate_outgoing_args): Likewise.
1914 (x86_arch_always_fancy_math_387): Likewise.
1915 (processor_target_table): Add slm cost.
1916 (cpu_names): Add slm cpu name.
1917 (x86_option_override_internal): Set SLM ISA.
1918 (ix86_issue_rate): New case PROCESSOR_SLM.
1919 (ia32_multipass_dfa_lookahead): Likewise.
1920 (fold_builtin_cpu): Add slm.
1922 * config/i386/i386.h (TARGET_SLM): New target macro.
1923 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1924 (processor_type): Add PROCESSOR_SLM.
1926 * config/i386/i386.md (cpu): Add new value "slm".
1927 (slm.md): Include slm.md.
1929 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
1930 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1932 * config/arm/arm-protos.h: Add and update function protos.
1933 * config/arm/arm.c (use_simple_return_p): New added.
1934 (thumb2_expand_return): Check simple_return flag.
1935 * config/arm/arm.md: Add simple_return and conditional simple_return.
1936 * config/arm/iterators.md: Add iterator for return and simple_return.
1938 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1940 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1941 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1942 (arm_emit_vfp_multi_reg_pop): Likewise.
1943 (thumb2_emit_ldrd_pop): Likewise.
1944 (arm_expand_epilogue): Add misc REG_CFA notes.
1945 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1947 2013-05-29 Lawrence Crowl <crowl@google.com>
1949 * config/arm/t-arm: Update for below.
1951 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1952 Change type to hash_table. Update dependent calls and types.
1954 * config/i386/t-cygming: Update for below.
1956 * config/i386/t-interix: Update for below.
1958 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1959 Change type to hash_table. Update dependent calls and types.
1960 (i386_find_on_wrapper_list::wrappers): Likewise.
1962 * config/ia64/t-ia64: Update for below.
1964 * config/ia64/ia64.c (bundle_state_table):
1965 Change type to hash_table. Update dependent calls and types.
1967 * config/mips/mips.c (mips_reorg_process_insns::htab):
1968 Change type to hash_table. Update dependent calls and types.
1970 * config/sol2.c (solaris_comdat_htab):
1971 Change type to hash_table. Update dependent calls and types.
1973 * config/t-sol2: Update for above.
1975 2013-05-29 Teresa Johnson <tejohnson@google.com>
1977 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1978 functions are not yet marked as defined.
1980 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1981 Pat Haugen <pthaugen@us.ibm.com>
1982 Peter Bergner <bergner@vnet.ibm.com>
1984 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1988 (vrotl<mode>3): Likewise.
1989 (vashl<mode>3): Likewise.
1990 (vlshr<mode>3): Likewise.
1991 (vashr<mode>3): Likewise.
1993 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1994 support for power8 V2DI builtins.
1996 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1997 power8 V2DI builtins.
1998 (vupkhsw): Likewise.
1999 (vupklsw): Likewise.
2000 (vaddudm): Likewise.
2005 (vpkudum): Likewise.
2006 (vpksdss): Likewise.
2007 (vpkudus): Likewise.
2008 (vpksdus): Likewise.
2013 (vsubudm): Likewise.
2014 (vcmpequd): Likewise.
2015 (vcmpgtsd): Likewise.
2016 (vcmpgtud): Likewise.
2017 (vcmpequd_p): Likewise.
2018 (vcmpgtsd_p): Likewise.
2019 (vcmpgtud_p): Likewise.
2020 (vupkhsw): Likewise.
2021 (vupklsw): Likewise.
2022 (vaddudm): Likewise.
2027 (vpksdss): Likewise.
2028 (vpksdus): Likewise.
2029 (vpkudum): Likewise.
2030 (vpkudus): Likewise.
2035 (vsubudm): Likewise.
2037 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2038 support for power8 V2DI instructions.
2040 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2041 power8 V2DI instructions. Combine pack and unpack insns to use an
2042 iterator for each mode. Check whether a particular mode supports
2043 Altivec instructions instead of just checking TARGET_ALTIVEC.
2044 (UNSPEC_VPKUWUM): Likewise.
2045 (UNSPEC_VPKSHSS): Likewise.
2046 (UNSPEC_VPKSWSS): Likewise.
2047 (UNSPEC_VPKUHUS): Likewise.
2048 (UNSPEC_VPKSHUS): Likewise.
2049 (UNSPEC_VPKUWUS): Likewise.
2050 (UNSPEC_VPKSWUS): Likewise.
2051 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2052 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2053 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2054 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2055 (UNSPEC_VUPKHSB): Likewise.
2056 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2057 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2058 (UNSPEC_VUPKHSH): Likewise.
2059 (UNSPEC_VUPKLSB): Likewise.
2060 (UNSPEC_VUPKLSH): Likewise.
2062 (VI_char): Likewise.
2063 (VI_scalar): Likewise.
2064 (VI_unit): Likewise.
2066 (VP_small): Likewise.
2067 (VP_small_lc): Likewise.
2068 (VU_char): Likewise.
2069 (add<mode>3): Likewise.
2070 (altivec_vaddcuw): Likewise.
2071 (altivec_vaddu<VI_char>s): Likewise.
2072 (altivec_vadds<VI_char>s): Likewise.
2073 (sub<mode>3): Likewise.
2074 (altivec_vsubcuw): Likewise.
2075 (altivec_vsubu<VI_char>s): Likewise.
2076 (altivec_vsubs<VI_char>s): Likewise.
2077 (altivec_vavgs<VI_char>): Likewise.
2078 (altivec_vcmpbfp): Likewise.
2079 (altivec_eq<mode>): Likewise.
2080 (altivec_gt<mode>): Likewise.
2081 (altivec_gtu<mode>): Likewise.
2082 (umax<mode>3): Likewise.
2083 (smax<mode>3): Likewise.
2084 (umin<mode>3): Likewise.
2085 (smin<mode>3): Likewise.
2086 (altivec_vpkuhum): Likewise.
2087 (altivec_vpkuwum): Likewise.
2088 (altivec_vpkshss): Likewise.
2089 (altivec_vpkswss): Likewise.
2090 (altivec_vpkuhus): Likewise.
2091 (altivec_vpkshus): Likewise.
2092 (altivec_vpkuwus): Likewise.
2093 (altivec_vpkswus): Likewise.
2094 (altivec_vpks<VI_char>ss): Likewise.
2095 (altivec_vpks<VI_char>us): Likewise.
2096 (altivec_vpku<VI_char>us): Likewise.
2097 (altivec_vpku<VI_char>um): Likewise.
2098 (altivec_vrl<VI_char>): Likewise.
2099 (altivec_vsl<VI_char>): Likewise.
2100 (altivec_vsr<VI_char>): Likewise.
2101 (altivec_vsra<VI_char>): Likewise.
2102 (altivec_vsldoi_<mode>): Likewise.
2103 (altivec_vupkhsb): Likewise.
2104 (altivec_vupkhs<VU_char>): Likewise.
2105 (altivec_vupkls<VU_char>): Likewise.
2106 (altivec_vupkhsh): Likewise.
2107 (altivec_vupklsb): Likewise.
2108 (altivec_vupklsh): Likewise.
2109 (altivec_vcmpequ<VI_char>_p): Likewise.
2110 (altivec_vcmpgts<VI_char>_p): Likewise.
2111 (altivec_vcmpgtu<VI_char>_p): Likewise.
2112 (abs<mode>2): Likewise.
2113 (vec_unpacks_hi_v16qi): Likewise.
2114 (vec_unpacks_hi_v8hi): Likewise.
2115 (vec_unpacks_lo_v16qi): Likewise.
2116 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2117 (vec_unpacks_lo_v8hi): Likewise.
2118 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2119 (vec_pack_trunc_v8h): Likewise.
2120 (vec_pack_trunc_v4si): Likewise.
2121 (vec_pack_trunc_<mode>): Likewise.
2123 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2125 (vec_vmaxsd): Likewise.
2126 (vec_vmaxud): Likewise.
2127 (vec_vminsd): Likewise.
2128 (vec_vminud): Likewise.
2129 (vec_vpksdss): Likewise.
2130 (vec_vpksdus): Likewise.
2131 (vec_vpkudum): Likewise.
2132 (vec_vpkudus): Likewise.
2133 (vec_vrld): Likewise.
2134 (vec_vsld): Likewise.
2135 (vec_vsrad): Likewise.
2136 (vec_vsrd): Likewise.
2137 (vec_vsubudm): Likewise.
2138 (vec_vupkhsw): Likewise.
2139 (vec_vupklsw): Likewise.
2141 2013-05-29 Jan Hubicka <jh@suse.cz>
2143 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2144 flags; reorder rest of fields in more consistent way.
2145 (varpool_node): Remove analyzed, finalized and alias.
2146 (cgraph_ndoe): Likewise.
2147 (symtab_alias_ultimate_target): New function.
2148 (cgraph_function_node): Move offline.
2149 (cgraph_reset_node): Declare.
2150 (cgraph_comdat_can_be_unshared_p): Remove.
2151 (varpool_remove_initializer): Declare.
2152 (varpool_first_defined_variable, varpool_next_defined_variable
2153 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2154 (cgraph_function_with_gimple_body_p): Update.
2155 (varpool_all_refs_explicit_p): Update.
2156 (symtab_alias_target): New function.
2157 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2158 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
2159 (cgraph_function_or_thunk_node): Simplify using
2160 symtab_alias_ultimate_target.
2161 (varpool_variable_node): Likewise.
2162 * cgraph.c (cgraph_create_function_alias): Update.
2163 (cgraph_add_thunk): Update.
2164 (cgraph_remove_node): Update.
2165 (dump_cgraph_node): Do not dump removed flags.
2166 (cgraph_function_body_availability): Update.
2167 (cgraph_propagate_frequency): Update.
2168 (verify_cgraph_node): Check sanity of local flag.
2169 (cgraph_function_node): Move here from cgraph.h; revamp for
2170 cgraph_function_or_thunk_node.
2171 * lto-symtab.c (lto_varpool_replace_node): Update.
2172 (lto_symtab_resolve_can_prevail_p): Update.
2173 (lto_symtab_merge_cgraph_nodes): Update.
2174 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2175 propagate_constants_accross_call, devirtualization_time_bonus,
2176 ipcp_propagate_stage): Update.
2177 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
2178 * ipa-inline-transform.c (clone_inlined_nodes,
2179 preserve_function_body_p): Update.
2180 * ipa-reference.c (propagate): Update.
2181 (write_node_summary_p): Update.
2182 * toplev.c (wrapup_global_declaration_2): Update.
2183 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2184 (analyze_function) ... this one.
2185 (cgraph_process_new_functions): Update.
2186 (cgraph_reset_node): Export.
2187 (cgraph_finalize_function): Update.
2188 (cgraph_add_new_function): Update.
2189 (process_function_and_variable_attributes): Update.
2190 (varpool_finalize_decl): Update.
2191 (symbol_finalized): Remove.
2192 (symbol_finalized_and_needed): Rename to ...
2193 (symbol_defined_and_needed): ... update.
2194 (cgraph_analyze_functions): Update.
2195 (handle_alias_pairs): Update.
2196 (mark_functions_to_output): Update.
2197 (assemble_thunk): Update.
2198 (output_in_order): Update.
2199 (output_weakrefs): Update.
2200 (finalize_compilation_unit): Update.
2201 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2202 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2203 input_node, input_varpool_node): Update.
2204 * dbxout.c (dbxout_expand_expr): Update.
2205 * cgraphclones.c (cgraph_clone_node): Update.
2206 (cgraph_copy_node_for_versioning): Update.
2207 (cgraph_materialize_clone): Update.
2208 (cgraph_materialize_all_clones): Update.
2209 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2210 propagate_pure_const, propagate_nothrow): Update.
2211 * lto-streamer-out.c (lto_output, write_symbol): Update.
2212 * ipa-utils.c (ipa_reverse_postorder): Update.
2213 * ipa-inline.c (can_inline_edge_p): Update.
2214 (update_caller_keys, ipa_inline): Update.
2215 * dwarf2out.c (reference_to_unused,
2216 premark_types_used_by_global_vars_helper): Update.
2217 * tree-eh.c (tree_could_trap_p): Update.
2218 * ipa-split.c (consider_split, execute_split_functions): Update.
2219 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
2220 has_addr_references_p): Update; move ahead in file for better
2222 (process_references): Simplify.
2223 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2225 (cgraph_comdat_can_be_unshared_p): Make static.
2226 (cgraph_externally_visible_p): Update.
2227 (varpool_externally_visible_p): Update.
2228 (function_and_variable_visibility): Update.
2229 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2230 ipa_tm_mark_force_output_node): Update.
2231 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2232 estimate_edge_devirt_benefit, inline_generate_summary,
2233 inline_write_summary): Update.
2234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2235 * ipa-prop.c (ipa_compute_jump_functions): Update.
2236 (ipa_print_node_params, ipa_prop_read_section,
2237 ipa_update_after_lto_read, read_replacements_section): Update.
2238 * varasm.c (mark_decl_referenced): Update.
2239 (assemble_alias, dump_tm_clone_pairs): Update.
2240 * tree-inline.c (copy_bb): Update.
2241 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2243 * symtab.c (dump_symtab_base): Print new flags.
2244 (verify_symtab_base): Verify new flags.
2245 (symtab_alias_ultimate_target): New function.
2246 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2247 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2249 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2251 * i386.c (ix86_get_function_versions_dispatcher,
2252 ix86_generate_version_dispatcher_body): Update.
2253 (fold_builtin_cpu): Use varpool_add_new_variable.
2254 * varpool.c (varpool_remove_initializer): Break out from ...
2255 (varpool_remove_node): ... this one.
2256 (dump_varpool_node, varpool_node_for_asm,
2257 cgraph_variable_initializer_availability, varpool_analyze_node,
2258 varpool_assemble_decl, varpool_remove_unreferenced_decls,
2259 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2262 2013-05-29 Jan Hubicka <jh@suse.cz>
2264 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2266 2013-05-29 Easwaran Raman <eraman@google.com>
2268 PR tree-optimization/57442
2269 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2270 when control exits the main loop.
2272 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2274 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2276 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
2277 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2278 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2281 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2283 PR tree-optimization/57441
2284 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2285 Don't limit size of incr_vec to number of candidates.
2287 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
2289 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2290 and mips16 directories.
2291 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
2292 (MULTILIB_DIRNAMES): Ditto.
2293 (MULTILIB_EXCEPTIONS): Add new exceptions.
2294 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2295 (MULTILIB_DIRNAMES): Ditto.
2296 (MULTILIB_EXCEPTIONS): Add new exceptions.
2298 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2299 Marcus Shawcroft <marcus.shawcroft@arm.com>
2301 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2302 SYMBOL_TINY_ABSOLUTE.
2303 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2304 SYMBOL_TINY_ABSOLUTE.
2305 (aarch64_expand_mov_immediate): Likewise.
2306 (aarch64_classify_symbol): Likewise.
2307 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2308 Permit SYMBOL_TINY_ABSOLUTE.
2309 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2311 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2312 Marcus Shawcroft <marcus.shawcroft@arm.com>
2314 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2315 Refactor if/switch. Replace gcc_assert with if.
2317 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2319 * config/i386/i386.c (initial_ix86_tune_features): Enable
2320 FP Reassociation for AMD bdver1 and bdver2.
2322 2013-05-29 Martin Jambor <mjambor@suse.cz>
2324 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2325 and IMAGPART_EXPR do not occur within other handled_components.
2327 2013-05-29 Richard Biener <rguenther@suse.de>
2329 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2330 access on whether the use is in the BB we currently try to
2332 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2333 vectorize to vect_bb_slp_scalar_cost.
2335 2013-05-29 Richard Biener <rguenther@suse.de>
2337 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2338 computing scalar cost offsetted by stmts that are kept live
2340 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2341 for computation of scalar cost.
2343 2013-05-28 Steve Ellcey <sellcey@mips.com>
2345 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2347 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2349 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2350 array notation built-in reduction functions.
2351 * doc/passes.texi (Passes): Added documentation about changes done
2353 * doc/invoke.texi (C Dialect Options): Added documentation about
2354 the -fcilkplus flag.
2355 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2356 (BUILTINS_DEF): Depend on cilkplus.def.
2357 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2358 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2359 * cilkplus.def: New file.
2361 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2363 PR rtl-optimization/57439
2364 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2366 2013-05-28 Easwaran Raman <eraman@google.com>
2368 PR tree-optimization/57337
2369 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2370 (find_insert_point): Correctly identify the insertion point
2371 when two statements with the same UID is compared.
2373 2013-05-28 Richard Biener <rguenther@suse.de>
2375 PR tree-optimization/56787
2376 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2377 from the list of data references.
2378 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2380 (vect_analyze_loop_operations): Likewise.
2381 (vect_transform_loop): Remove clobbers.
2383 2013-05-28 Martin Jambor <mjambor@suse.cz>
2385 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2386 and REALPART_EXPRs have scalar type.
2388 2013-05-28 Richard Biener <rguenther@suse.de>
2390 PR tree-optimization/57411
2391 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2393 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2394 virtual operand propagation.
2396 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2398 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2399 destination register for bmasksi_vis.
2400 (vector_init_bshuffle): Likewise.
2401 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2403 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2405 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2406 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2407 mode if the instruction isn't available in the original mode.
2408 * config/sparc/sparc.opt (mfix-ut699): New option.
2409 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2410 (divdf3): Turn into expander.
2411 (divdf3_nofix): New insn.
2412 (divdf3_fix): Likewise.
2413 (divsf3): Disable if -mfix-ut699.
2414 (sqrtdf2): Turn into expander.
2415 (sqrtdf2_nofix): New insn.
2416 (sqrtdf2_fix): Likewise.
2417 (sqrtsf2): Disable if -mfix-ut699.
2419 2013-05-27 Richard Biener <rguenther@suse.de>
2422 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2423 block for the new loop.
2425 2013-05-27 Richard Biener <rguenther@suse.de>
2427 PR tree-optimization/57343
2428 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2429 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2430 (number_of_iterations_cond): Do not build the folded tree.
2432 2013-05-27 Richard Biener <rguenther@suse.de>
2436 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2437 OEP_CONSTANT_ADDRESS_OF retained.
2439 PR tree-optimization/57417
2440 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2442 (set_ssa_val_to): Compare addresses using
2443 get_addr_base_and_unit_offset.
2445 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2447 PR rtl-optimization/56833
2448 * postreload.c (move2add_record_mode): New function.
2449 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2450 (move2add_use_add2_insn): Use move2add_record_sym_value.
2451 (move2add_use_add3_insn): Likewise.
2452 (reload_cse_move2add): Use move2add_valid_value_p and
2453 move2add_record_mode. Invalidate call-clobbered and REG_INC
2454 affected regs by setting reg_mode to VOIDmode.
2455 (move2add_note_store): Don't pretend the inside of a SUBREG is
2456 the actual destination. Invalidate single/leading registers by
2457 setting reg_mode to VOIDmode.
2458 Use move2add_record_sym_value, move2add_valid_value_p and
2459 move2add_record_mode.
2461 2013-05-27 Richard Biener <rguenther@suse.de>
2463 PR tree-optimization/57396
2464 * tree-affine.c (double_int_constant_multiple_p): Properly
2465 return false for val == 0 and div != 0.
2467 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2469 * config/mips/mips.h: Use #elif in preprocessor conditions.
2471 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2474 * config/mips/constraints.md (kl): New constraint.
2475 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2476 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2477 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2479 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2481 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2484 * config/mips/mips.c (mips_can_inline_p): New function.
2485 (TARGET_CAN_INLINE_P): Define.
2487 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2489 * sched-int.h (ds_t, dw_t): Make unsigned int.
2490 Fix documentation that describes how all the ds_t bits are used.
2491 Reserve the last bit for delayed-branch scheduling.
2492 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2493 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2494 (gen_dep_weak_1): Remove prototype.
2495 * sched-deps.c (get_dep_weak_1): Make static.
2496 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2497 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2498 * doc/tm.texi: Regenerate.
2499 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2501 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2504 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2506 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2507 Sandra Loosemore <sandra@codesourcery.com>
2509 * config.gcc (powerpc-*): Allow native for with-cpu.
2511 2013-05-24 Jeff Law <law@redhat.com>
2513 PR tree-optimization/57124
2514 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2515 conversion feeding a condition if the range has an overflow
2516 if -fstrict-overflow. Add warnings for when we do make the
2519 2013-05-24 Dehao Chen <dehao@google.com>
2521 * tree-cfg.c (locus_discrim_map): Fix the typo.
2522 (locus_discrim_hasher): Likewise.
2523 (locus_discrim_hasher::hash): Likewise.
2524 (locus_discrim_hasher::equal): Likewise.
2526 2013-05-24 Martin Jambor <mjambor@suse.cz>
2528 PR tree-optimization/57294
2529 * cgraph.h (ipa_record_stmt_references): Declare.
2530 * cgraphbuild.c (ipa_record_stmt_references): New function.
2531 (build_cgraph_edges): Use ipa_record_stmt_references.
2532 (rebuild_cgraph_edges): Likewise.
2533 (cgraph_rebuild_references): Likewise.
2534 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2535 associated with the old statement and build references from the
2536 newly built statements.
2537 * ipa-ref.c (ipa_remove_stmt_references): New function.
2538 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2540 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2542 * lra-constraints.c (emit_spill_move): Use smaller mode for
2544 (check_and_process_move): Consider mem-reg moves for secondary
2546 (curr_insn_transform): Don't lose insns emitted before for
2547 secondary memory moves.
2548 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2549 reg set up in the current insn.
2551 2013-05-24 Dehao Chen <dehao@google.com>
2553 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
2555 (locus_descrim_hasher::equal): Likewise.
2556 (build_gimple_cfg): New discriminator assignment algorithm.
2557 (make_edges): Likewise.
2558 (next_discriminator_for_locus): Likewise.
2559 (same_line_p): Likewise.
2560 (assign_discriminators): Likewise.
2561 (make_cond_expr_edges): Likewise.
2562 (make_gimple_switch_edges): Likewise.
2563 (make_goto_expr_edges): Likewise.
2564 (make_gimple_asm_edges): Likewise.
2566 2013-05-24 Ian Bolton <ian.bolton@arm.com>
2568 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2569 X format specifier to only display bottom 16 bits.
2570 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2571 immediate to match for operand 2, since it will be masked.
2573 2013-05-24 Richard Biener <rguenther@suse.de>
2575 PR tree-optimization/57287
2576 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2577 all SSA names that occur in abnormal PHIs.
2579 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2582 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2583 that index is not negative.
2585 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2587 PR rtl-optimization/55177
2588 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2589 (simplify_byte_swapping_operation): New.
2590 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2591 (simplify_relational_operation_1): Deal with BSWAP.
2593 2013-05-23 Richard Henderson <rth@redhat.com>
2596 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2597 (ix86_reorg): Call it.
2599 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
2602 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2603 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2604 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2606 2013-05-23 Christian Bruel <christian.bruel@st.com>
2609 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2611 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2612 Marcus Shawcroft <marcus.shawcroft@arm.com>
2614 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2615 * config/aarch64/constraints.md (Usa): Remove.
2616 * doc/md.texi (AArch64 Usa): Remove.
2618 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2619 Marcus Shawcroft <marcus.shawcroft@arm.com>
2621 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2622 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2623 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2624 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2626 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2628 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2629 instruction (AdvSIMD).
2630 * config/aarch64/aarch64-builtins.c
2631 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2632 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2634 2013-05-23 Martin Jambor <mjambor@suse.cz>
2637 * tree.h (contains_bitfld_component_ref_p): Declare.
2638 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
2639 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2641 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2642 not access a bit-field. Assert all final offsets are byte-aligned.
2644 2013-05-23 Richard Biener <rguenther@suse.de>
2646 PR tree-optimization/57380
2647 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2648 least one invariant or re-used load.
2649 * passes.c (init_optimization_passes): Move pass_phiprop before
2652 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2654 * config/aarch64/aarch64-simd.md
2655 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2657 2013-05-23 Richard Biener <rguenther@suse.de>
2660 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2661 OEP_CONSTANT_ADDRESS_OF retained.
2663 2013-05-23 Jakub Jelinek <jakub@redhat.com>
2666 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2667 don't lower unit. Handle unit not being always BITS_PER_WORD.
2669 2013-05-23 Richard Biener <rguenther@suse.de>
2671 PR rtl-optimization/57341
2672 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2673 instead of true_dependence.
2675 2013-05-22 David Malcolm <dmalcolm@redhat.com>
2677 * bb-reorder.c (branch_threshold): Make const.
2678 (exec_threshold): Ditto.
2680 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2681 Pat Haugen <pthaugen@us.ibm.com>
2682 Peter Bergner <bergner@vnet.ibm.com>
2684 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2685 documentation for the power8 crypto builtins.
2687 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2689 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2690 macros for defining power8 builtin functions.
2691 (BU_P8V_AV_2): Likewise.
2692 (BU_P8V_AV_P): Likewise.
2693 (BU_P8V_VSX_1): Likewise.
2694 (BU_P8V_OVERLOAD_1): Likewise.
2695 (BU_P8V_OVERLOAD_2): Likewise.
2696 (BU_CRYPTO_1): Likewise.
2697 (BU_CRYPTO_2): Likewise.
2698 (BU_CRYPTO_3): Likewise.
2699 (BU_CRYPTO_OVERLOAD_1): Likewise.
2700 (BU_CRYPTO_OVERLOAD_2): Likewise.
2701 (XSCVSPDP): Fix typo, point to the correct instruction.
2702 (VCIPHER): Add power8 crypto builtins.
2703 (VCIPHERLAST): Likewise.
2704 (VNCIPHER): Likewise.
2705 (VNCIPHERLAST): Likewise.
2706 (VPMSUMB): Likewise.
2707 (VPMSUMH): Likewise.
2708 (VPMSUMW): Likewise.
2709 (VPERMXOR_V2DI): Likewise.
2710 (VPERMXOR_V4SI: Likewise.
2711 (VPERMXOR_V8HI: Likewise.
2712 (VPERMXOR_V16QI: Likewise.
2713 (VSHASIGMAW): Likewise.
2714 (VSHASIGMAD): Likewise.
2716 (VPERMXOR): Likewise.
2717 (VSHASIGMA): Likewise.
2719 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2720 __CRYPTO__ if the crypto instructions are available.
2721 (altivec_overloaded_builtins): Add support for overloaded power8
2724 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2725 support for power8 crypto builtins.
2726 (builtin_function_type): Likewise.
2727 (altivec_init_builtins): Add support for builtins that take vector
2728 long long (V2DI) arguments.
2730 * config/rs6000/crypto.md: New file, define power8 crypto
2733 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2734 Pat Haugen <pthaugen@us.ibm.com>
2735 Peter Bergner <bergner@vnet.ibm.com>
2737 * doc/invoke.texi (Option Summary): Add power8 options.
2738 (RS/6000 and PowerPC Options): Likewise.
2740 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2741 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2742 wm, wn, wr documentation.
2744 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2745 registers if direct move instructions are enabled.
2746 (wn): New constraint for no registers.
2747 (wq): New constraint for quad word even GPR registers.
2748 (wr): New constraint if 64-bit instructions are enabled.
2749 (wv): New constraint if power8 vector instructions are enabled.
2750 (wQ): New constraint for quad word memory locations.
2752 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2753 constraint for 0..15 for crypto instructions.
2754 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2755 as GPR and floating point registers.
2756 (int_reg_operand): New predicate to match only GPR registers.
2757 (base_reg_operand): New predicate to match base registers.
2758 (quad_int_reg_operand): New predicate to match even GPR registers
2759 for quad memory operations.
2760 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2761 operations in both GPR and VSX registers.
2762 (quad_memory_operand): New predicate for quad memory operations.
2763 (reg_or_indexed_operand): New predicate for direct move support.
2765 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2766 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2767 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2768 (POWERPC_MASKS): Add power8 options.
2769 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2772 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2773 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2775 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2776 (-mpower8-fusion): New power8 options.
2777 (-mpower8-fusion-sign): Likewise.
2778 (-mpower8-vector): Likewise.
2779 (-mcrypto): Likewise.
2780 (-mdirect-move): Likewise.
2781 (-mquad-memory): Likewise.
2783 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2785 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2787 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
2788 (rs6000_debug_vector_unit): Add p8_vector.
2789 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2790 definitions. Also print fusion state.
2791 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2792 (rs6000_builtin_mask_calculate): Add power8 builtin support.
2793 (rs6000_option_override_internal): Add support for power8.
2794 (rs6000_common_init_builtins): Add debugging for skipped builtins
2796 (rs6000_adjust_cost): Add power8 support.
2797 (rs6000_issue_rate): Likewise.
2798 (insn_must_be_first_in_group): Likewise.
2799 (insn_must_be_last_in_group): Likewise.
2800 (force_new_group): Likewise.
2801 (rs6000_register_move_cost): Likewise.
2802 (rs6000_opt_masks): Likewise.
2804 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2805 power8 capable assembler, default to power7 options.
2806 (TARGET_DIRECT_MOVE): Likewise.
2807 (TARGET_CRYPTO): Likewise.
2808 (TARGET_P8_VECTOR): Likewise.
2809 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2810 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2811 (VECTOR_MEM_P8_VECTOR_P): Likewise.
2812 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2813 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2814 (TARGET_XSCVDPSPN): Likewise.
2815 (TARGET_XSCVSPDPN): Likewsie.
2816 (TARGET_SYNC_HI_QI): Likewise.
2817 (TARGET_SYNC_TI): Likewise.
2818 (MASK_CRYPTO): Likewise.
2819 (MASK_DIRECT_MOVE): Likewise.
2820 (MASK_P8_FUSION): Likewise.
2821 (MASK_P8_VECTOR): Likewise.
2822 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2823 temporary used by some of the direct move instructions to get two FP
2824 temporary registers does not force creation of a stack frame.
2825 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2826 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2827 that any VSX registers are tieable, even if they are also an
2828 Altivec vector mode.
2829 (r6000_reg_class_enum): Add wm, wr, wv constraints.
2830 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2831 (RS6000_BTM_CRYPTO): Likewise.
2832 (RS6000_BTM_COMMON): Likewise.
2834 * config/rs6000/rs6000.md (cpu attribute): Add power8.
2835 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2836 (enum rs6000_vector): Add power8 vector support.
2838 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2842 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2843 (any_sibcall_could_use_r3): this and handle indirect calls.
2844 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2846 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2848 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2850 2013-05-22 Richard Biener <rguenther@suse.de>
2853 * profile.c (branch_prob): Do not split blocks that are
2854 abnormally receiving from ECF_RETURNS_TWICE functions.
2856 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2858 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2859 address mode. Move pointer mode initialization to the same place.
2861 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2863 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2864 while it has any effect.
2866 2013-05-21 Easwaran Raman <eraman@google.com>
2868 PR tree-optimization/57322
2869 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2870 UID of the statement added to the BB to be 1.
2872 2013-05-21 Jakub Jelinek <jakub@redhat.com>
2874 PR tree-optimization/57331
2875 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2876 of conversion from pointer type to integral type with integer.
2878 2013-05-21 Martin Jambor <mjambor@suse.cz>
2881 * ipa-prop.c (ipa_read_node_info): Process param_used and
2882 controlled_uses in the same order as when writing.
2884 2013-05-21 Magnus Granberg <baldrick@free.fr>
2887 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
2889 2013-05-21 Richard Biener <rguenther@suse.de>
2891 PR tree-optimization/57318
2892 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2893 estimate stmts with side-effects as likely eliminated.
2895 2013-05-21 Richard Biener <rguenther@suse.de>
2897 PR tree-optimization/57330
2898 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2899 preserve the call stmts fntype.
2901 2013-05-21 Richard Biener <rguenther@suse.de>
2903 PR tree-optimization/57303
2904 * tree-ssa-sink.c (statement_sink_location): Improve killing
2905 stmt detection and properly handle self-assignments.
2907 2013-05-21 Christian Bruel <christian.bruel@st.com>
2909 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2910 spanning registers. LEAF_REG_REMAP is supported only for contiguous
2911 registers. Set register size out of the PARALLEL loop.
2913 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2916 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2917 (*fmasf4, *fmasf4_media): New insns.
2919 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2921 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2922 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2923 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2924 (mips_idiv_insns): Update the comments to say that the returned
2925 instruction counts are in units of BASE_INSN_LENGTH.
2926 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2927 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
2928 using 2 rather than 4 as the length of indirect MIPS16 and
2929 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
2930 length of a NOP. Don't divide MIPS16 lengths by 2.
2931 (mips16_split_long_branches): Assume a branch is long if the
2932 length is greater than 4 rather than 8.
2933 * config/mips/mips.md (length): Give MIPS16 lengths directly,
2934 rather than multiplying them by 2. Multiply instruction counts
2935 by BASE_INSN_LENGTH rather than 4.
2936 (*jump_mips16, tls_get_tp_mips16_<mode>)
2937 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2939 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2941 * config/mips/mips.md (extended_mips16): Remove branch case.
2942 (length): Remove duplicated extended_mips16 test.
2944 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2946 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2948 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
2950 * recog.h (Recog_data): Rename to...
2951 (recog_data_d): ...this.
2952 (recog_data): Update accordingly.
2953 * recog.c (recog_data): Likewise.
2954 * reload.c (save_recog_data): Likewise.
2955 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2956 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2958 2013-05-17 Julian Brown <julian@codesourcery.com>
2960 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2961 found in a REG_EQUAL note, invalidate it.
2963 2013-05-17 Easwaran Raman <eraman@google.com>
2965 * tree-ssa-reassoc.c (find_insert_point): New function.
2966 (insert_stmt_after): Likewise.
2967 (get_def_stmt): Likewise.
2968 (ensure_ops_are_available): Likewise.
2969 (not_dominated_by): Likewise.
2970 (rewrite_expr_tree): Do not move statements beyond what is
2971 necessary. Remove call to swap_ops_for_binary_stmt...
2972 (reassociate_bb): ... and move it here.
2973 (build_and_add_sum): Assign UIDs for new statements.
2974 (linearize_expr): Likewise.
2975 (do_reassoc): Renumber gimple statement UIDs.
2977 2013-05-17 Jan Hubicka <jh@suse.cz>
2979 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2981 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
2982 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2984 (output_weakrefs): Update.
2986 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
2987 Martin Jambor <mjambor@suse.cz>
2990 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2991 value that corresponds to the given aggval is found in values vector.
2993 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
2995 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2996 sse, sse2, sse3, ssse3 and sse4a flags to options.
2998 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3000 * gengtype-state.c: (s_expr_writer): New class, to handle
3001 prettifying of output layout of s-expressions.
3002 (state_writer): New class, to write out gtype.state.
3003 (state_written_type_count): Move this variable into member data of
3005 (s_expr_writer::s_expr_writer): New code: constructor for new class
3006 (state_writer::state_writer(): ditto
3007 (s_expr_writer::write_new_line): New function
3008 (s_expr_writer::write_any_indent): ditto
3009 (s_expr_writer::begin_s_expr): ditto
3010 (s_expr_writer::end_s_expr): ditto
3011 (write_state_fileloc): convert to method of state_writer...
3012 (state_writer:: write_state_fileloc): ...and use methods of
3013 s_expr_writer to write indentation into the gtype.state output file
3014 to visually represent the hierarchical structure of the list
3016 (write_state_fields): ditto, renaming to...
3017 (state_writer::write_state_fields)
3018 (write_state_a_string): ditto, renaming to...
3019 (state_writer::write_state_a_string)
3020 (write_state_string_option): ditto, renaming to...
3021 (state_writer::write_state_string_option)
3022 (write_state_type_option): ditto, renaming to...
3023 (state_writer::write_state_type_option)
3024 (write_state_nested_option): ditto, renaming to...
3025 (state_writer::write_state_nested_option)
3026 (write_state_option): ditto, renaming to...
3027 (state_writer::write_state_option)
3028 (write_state_options): ditto, renaming to...
3029 (state_writer::write_state_options)
3030 (write_state_lang_bitmap): ditto, renaming to...
3031 (state_writer::write_state_lang_bitmap)
3032 (write_state_version): ditto, renaming to...
3033 (state_writer::write_state_version)
3034 (write_state_scalar_type): ditto, renaming to...
3035 (state_writer::write_state_scalar_type)
3036 (write_state_string_type): ditto, renaming to...
3037 (state_writer::write_state_string_type)
3038 (write_state_undefined_type): ditto, renaming to...
3039 (state_writer::write_state_undefined_type)
3040 (write_state_struct_union_type): ditto, renaming to...
3041 (state_writer::write_state_struct_union_type)
3042 (write_state_struct_type): ditto, renaming to...
3043 (state_writer::write_state_struct_type)
3044 (write_state_user_struct_type): ditto, renaming to...
3045 (state_writer::write_state_user_struct_type)
3046 (write_state_lang_struct_type): ditto, renaming to...
3047 (state_writer::write_state_lang_struct_type)
3048 (write_state_param_struct_type): ditto, renaming to...
3049 (state_writer::write_state_param_struct_type)
3050 (write_state_pointer_type): ditto, renaming to...
3051 (state_writer::write_state_pointer_type)
3052 (write_state_array_type): ditto, renaming to...
3053 (state_writer::write_state_array_type)
3054 (write_state_gc_used): ditto, renaming to...
3055 (state_writer::write_state_gc_used)
3056 (write_state_common_type_content): ditto, renaming to...
3057 (state_writer::write_state_common_type_content)
3058 (write_state_type): ditto, renaming to...
3059 (state_writer::write_state_type)
3060 (write_state_pair_list): ditto, renaming to...
3061 (state_writer::write_state_pair_list)
3062 (write_state_pair): ditto, renaming to...
3063 (state_writer::write_state_pair)
3064 (write_state_typedefs): ditto, renaming to...
3065 (state_writer::write_state_typedefs)
3066 (write_state_structures): ditto, renaming to...
3067 (state_writer::write_state_structures)
3068 (write_state_param_structs): ditto, renaming to...
3069 (state_writer::write_state_param_structs)
3070 (write_state_variables): ditto, renaming to...
3071 (state_writer::write_state_variables)
3072 (write_state_srcdir): ditto, renaming to...
3073 (state_writer::write_state_srcdir)
3074 (write_state_files_list): ditto, renaming to...
3075 (state_writer::write_state_files_list)
3076 (write_state_languages): ditto, renaming to...
3077 (state_writer::write_state_languages)
3078 (write_state): create a state_writer instance and use it when
3079 writing out the state file
3081 2013-05-17 Mike Stump <mikestump@comcast.net>
3083 PR rtl-optimization/57304
3084 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3085 accessing DF_REF_REAL_LOC.
3087 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3089 PR rtl-optimization/57281
3090 PR rtl-optimization/57300
3091 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3092 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3093 what the other splitter did if the registers are dead.
3095 2013-05-17 Richard Biener <rguenther@suse.de>
3097 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3100 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3102 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3105 2013-05-17 Marek Polacek <polacek@redhat.com>
3107 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3108 length when doing non-zero store of storing '\0' to '\0'.
3110 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3112 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3113 vect_external_def oprnd1 with loop_vinfo, try to emit
3114 optional cast, negation and and stmts on the loop preheader
3115 edge instead of into the pattern def seq.
3117 PR tree-optimization/57051
3118 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3119 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3121 2013-05-16 Nick Clifton <nickc@redhat.com>
3123 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3124 (rl78_is_naked_func): New function.
3125 (rl78_expand_prologue): Skip prologue generation for naked functions.
3126 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
3127 * doc/extend.texi (naked): Add RL78 to the list of processors
3128 that supports this attribute.
3130 2013-05-16 Jeff Law <law@redhat.com>
3132 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3134 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
3136 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3137 cache parameters using detect_caches_amd also for CYRIX,
3138 NSC and TM2 signatures.
3140 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
3141 Dzianis Kahanovich <mahatma@eu.by>
3145 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3146 VIA/Centaur processors and determine their cache parameters
3147 using detect_caches_amd.
3149 2013-05-16 Teresa Johnson <tejohnson@google.com>
3151 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3152 (rtl_verify_edges): New function.
3153 (rtl_verify_bb_insns): Ditto.
3154 (rtl_verify_bb_pointers): Ditto.
3155 (rtl_verify_bb_insn_chain): Ditto.
3156 (rtl_verify_fallthru): Ditto.
3157 (rtl_verify_bb_layout): Ditto.
3158 (rtl_verify_flow_info_1): Outline checks into new functions.
3159 (rtl_verify_flow_info): Ditto.
3161 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
3163 * cfghooks.c (copy_bbs): Add update_dominance argument.
3164 * cfghooks.h (copy_bbs): Update prototype.
3165 * tree-cfg.c (gimple_duplicate_sese_region):
3166 Add update_dominance argument.
3167 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3168 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3169 gimple_duplicate_sese_region call.
3170 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3171 Update copy_bbs call.
3172 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3173 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3175 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3177 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3178 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3179 vect_recog_rotate_pattern.
3180 (vect_recog_rotate_pattern): New function.
3182 2013-05-16 Jason Merrill <jason@redhat.com>
3184 * Makefile.in (LLINKER): New variable.
3185 (mostlyclean): Remove link mutex.
3186 * configure.ac: Handle --enable-link-mutex.
3187 * lock-and-run.sh: New script.
3189 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3192 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3195 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3197 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3199 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3201 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3202 * config/arm/arm.c (next_consecutive_mem): New function.
3203 (gen_movmem_ldrd_strd): Likewise.
3204 * config/arm/arm.md (movmemqi): Update condition and code.
3205 (unaligned_loaddi, unaligned_storedi): New patterns.
3207 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3209 * config.gcc: Obsolete *-*-solaris2.9*.
3210 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3212 2013-05-16 Richard Biener <rguenther@suse.de>
3214 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3215 earlier, after GRAPHITE transforms and IV canonicalization.
3217 2013-05-16 Jakub Jelinek <jakub@redhat.com>
3219 * omp-low.c (extract_omp_for_data): For collapsed loops,
3220 if at least one of the loops is known at compile time to
3221 iterate zero times, set count to 0.
3222 (expand_omp_regimplify_p): New function.
3223 (expand_omp_for_generic): For collapsed loops, if at least
3224 one of the loops isn't known to iterate at least once,
3225 add runtime check with setting count to 0.
3226 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3227 For unsigned types if it isn't known at compile time that
3228 the loop will iterate at least once, add runtime check to bypass
3229 the whole loop if initial condition isn't true.
3231 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3233 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3235 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
3238 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3239 transformations to avoid an infinite loop.
3241 2013-05-16 Marek Polacek <polacek@redhat.com>
3243 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3245 2013-05-15 Leif Ekblad <leif@rdos.net>
3247 * config/i386/i386.c (ix86_decompose_address): Use
3248 DEFAULT_TLS_SEG_REG to access TLS segment register.
3249 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3250 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3251 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3253 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3256 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3257 sibling calls to functions that would normally be lazily bound,
3258 unless $gp is call-clobbered.
3260 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
3262 * config/i386/i386.c (ix86_option_override_internal): Update
3263 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
3264 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3265 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
3266 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3268 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3270 2013-05-15 Andreas Schwab <schwab@suse.de>
3272 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3273 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3276 2013-05-15 Teresa Johnson <tejohnson@google.com>
3278 * loop-unroll.c (report_unroll_peel): Check decision before
3279 emitting unroll/peel message.
3281 2013-05-15 Teresa Johnson <tejohnson@google.com>
3283 * function.h (has_bb_partition): New rtl_data flag.
3284 (bb_reorder_complete): Ditto.
3285 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3286 instead of flag_reorder_blocks_and_partition.
3287 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3288 with some enhancements.
3289 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3290 * bb-reorder.c (connect_traces): Check for has_bb_partition
3291 instead of flag_reorder_blocks_and_partition.
3292 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3293 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3294 verify_hot_cold_block_grouping.
3295 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3297 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3300 * config/arm/predicates.md (call_insn_operand): New predicate.
3301 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3302 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3303 if insn is not a tail call.
3304 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3306 * config/arm/arm.h (enum reg_class): New caller save register class.
3307 (REG_CLASS_NAMES): Likewise.
3308 (REG_CLASS_CONTENTS): Likewise.
3309 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3312 2013-05-15 Richard Biener <rguenther@suse.de>
3314 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3315 of MSG_OPTIMIZED_LOCATIONS.
3316 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3317 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3319 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3320 of MSG_OPTIMIZED_LOCATIONS.
3321 (execute_vect_slp): Likewise.
3322 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3323 (vect_create_cond_for_alias_checks): Likewise.
3324 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3325 (vect_recog_widen_mult_pattern): Likewise.
3326 (vect_recog_widen_sum_pattern): Likewise.
3327 (vect_recog_over_widening_pattern): Likewise.
3328 (vect_recog_widen_shift_pattern): Likewise.
3329 (vect_recog_vector_vector_shift_pattern): Likewise.
3330 (vect_recog_divmod_pattern): Likewise.
3331 (vect_recog_mixed_size_cond_pattern): Likewise.
3332 (vect_recog_bool_pattern): Likewise.
3333 (vect_pattern_recog_1): Likewise.
3335 2013-05-15 Martin Jambor <mjambor@suse.cz>
3337 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3338 non-functions to builtin_unreachable.
3339 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3340 correct when new direct edges were discovered.
3342 2013-05-15 Martin Jambor <mjambor@suse.cz>
3344 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3345 header, print symbol order instead of node uid, print more information
3346 about indirect edge targets.
3347 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3349 (ipa_make_edge_direct_to_target): Likewise.
3350 (remove_described_reference): Likewise.
3351 (propagate_controlled_uses): Likewise.
3352 (ipa_print_node_params): Also print symbol order.
3353 (ipcp_transform_function): Print symbol order instead of node uids.
3354 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3355 (cgraph_get_create_real_symbol_node): Likewise.
3356 * ipa-cp.c (print_lattice): Likewise.
3357 (print_all_lattices): Likewise.
3358 (determine_versionability): Likewise.
3359 (initialize_node_lattices): Likewise.
3360 (estimate_local_effects): Likewise.
3361 (update_profiling_info): Likewise.
3362 (create_specialized_node): Likewise.
3363 (perhaps_add_new_callers): Likewise.
3364 (decide_about_value): Likewise.
3365 (decide_whether_version_node): Likewise.
3366 (identify_dead_nodes): Likewise.
3367 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3368 (dump_inline_summary): Likewise.
3369 (estimate_node_size_and_time): Likewise.
3370 (inline_analyze_function): Likewise.
3371 * ipa-inline.c (report_inline_failed_reason): Likewise.
3372 (want_early_inline_function_p): Likewise.
3373 (edge_badness): Likewise.
3374 (update_edge_key): Likewise.
3375 (inline_small_functions): Likewise. Add dumping of order to two other
3377 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3378 instead of node uids.
3379 (propagate_pure_const): Likewise.
3380 (propagate_pure_const): Likewise.
3381 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3382 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3383 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3385 * tree-pretty-print.c (dump_function_header): Likewise.
3386 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3387 Print symbol order instead of node uids.
3389 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3391 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3392 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3394 2013-05-15 Richard Biener <rguenther@suse.de>
3396 PR tree-optimization/57275
3397 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3398 return value for fail to do runtime alias checks for gather loads.
3400 2013-05-15 Jan Hubicka <jh@suse.cz>
3404 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3405 weakrefs are not external.
3406 (lto_symtab_merge_decls): Fix thinko when dealing with
3407 non-lto_symtab decls.
3408 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3409 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3410 * varpool.c (dump_varpool_node): Dump more flags.
3412 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3414 * config/i386/i386.c (processor_alias_table): Add instruction
3415 FSGSBASE for AMD bdver3 architecture.
3417 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3419 * tree.c (warn_deprecated_use): Print file:line using locus color.
3420 * diagnostic.c (diagnostic_report_current_module): Print file:line
3421 and file:line:column using locus color.
3423 2013-05-14 Mike Stump <mikestump@comcast.net>
3425 * gdbinit.in: Add __null.
3427 2013-05-14 Mike Stump <mikestump@comcast.net>
3429 * recog.h: Rename struct recog_data to Recog_data.
3430 * recog.c: Likewise.
3431 * reload.c (can_reload_into): Likewise.
3432 * config/picochip/picochip.c: Likewise.
3434 2013-05-14 Mike Stump <mikestump@comcast.net>
3436 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3438 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3440 * resource.h (struct resources): Remove unch_memory member.
3441 (CLEAR_RESOURCE): Don't clear unch_memory.
3442 * resource.c (mark_referenced_resources): Don't set it.
3443 (mark_set_resources): Likewise.
3444 (mark_target_live_regs): Don't clear it.
3445 (init_resource_info): Likewise.
3446 * reorg.c (resource_conflicts_p): Don't compare it.
3447 (redundant_insn): Don't set it.
3449 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3451 * emit-rtl.c (next_label): Remove unused function.
3452 (skip_consecutive_labels, link_cc0_insns): Move to ...
3453 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3454 only place where these functions are used, and make them static.
3456 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
3458 * fold-const.c (fold_negate_expr): Handle vectors.
3459 (fold_truth_not_expr): Make it static.
3460 (fold_invert_truthvalue): New static function.
3461 (invert_truthvalue_loc): Handle vectors. Do not call
3462 fold_truth_not_expr directly.
3463 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3464 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3465 (fold_comparison): Handle vector constants.
3466 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3467 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3468 * tree.h (fold_truth_not_expr): Remove declaration.
3470 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3472 * config/aarch64/aarch64-simd.md
3473 (aarch64_vcond_internal<mode>): Rename to...
3474 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3475 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3476 float modes. Clarify all iterator modes.
3477 (vcond<mode><mode>): Use new name for vcond expanders.
3478 (vcond<v_cmp_result><mode>): Likewise.
3479 (vcondu<mode><mode>: Likewise.
3480 * config/aarch64/iterators.md (VDQF_COND): New.
3482 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
3485 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3486 variable for the shift amount. Check that we shift by non-negative
3489 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3492 * config/arm/arm.h (EPILOGUE_USES): Only return true
3493 for LR_REGNUM after epilogue_completed.
3495 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3497 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
3500 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3503 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3504 and Solaris 11+/x86 with gld.
3505 * configure: Regenerate.
3507 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3509 * expmed.c (expand_shift_1): Canonicalize rotates by
3510 constant bitsize / 2 to bitsize - 1.
3511 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
3512 case ROTATERT>: Likewise.
3515 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3517 * config/i386/i386.md (rotateinv): New code attr.
3518 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3519 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3520 roll $31, %eax, etc.
3522 2013-05-14 Richard Biener <rguenther@suse.de>
3525 * tree-eh.c (sink_clobbers): Give up for successors with
3526 multiple predecessors and no virtual uses.
3528 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3530 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3531 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3533 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3536 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3537 the case when both op0 and op1 have VOIDmode.
3539 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3541 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3542 in multiply-accumulate mode.
3544 2013-05-13 Guozhi Wei <carrot@google.com>
3546 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3548 2013-05-13 Kai Tietz <ktietz@redhat.com>
3551 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
3552 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
3553 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
3554 * config/i386/i386.c (ix86_option_override_internal): Likewise.
3555 (ix86_expand_prologue): Likewise.
3556 (ix86_expand_split_stack_prologue): Likewise.
3557 (legitimate_pic_address_disp_p): Likewise.
3558 (legitimize_pic_address): Likewise.
3559 (legitimize_tls_address): Likewise.
3560 (legitimize_pe_coff_symbol): Likewise.
3561 (output_pic_addr_const): Likewise.
3562 (construct_plt_address): Likewise.
3563 (ix86_expand_call): Likewise.
3564 (x86_output_mi_thunk): Likewise.
3565 (x86_function_profiler): Likewise.
3567 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3569 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3570 similar switch cases.
3571 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3572 (aarch64_simd_mov_to_<mode>low): Delete.
3573 (aarch64_simd_mov_to_<mode>high): Delete.
3574 (move_lo_quad_<mode>): Add w<-r alternative.
3575 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3576 (aarch64_simd_mov_from_*): Update type attribute.
3577 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3580 2013-05-13 Jan Hubicka <jh@suse.cz>
3582 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3583 * config/i386/i386.c (ix86_compute_frame_layout,
3584 ix86_expand_epilogue, emit_i387_cw_initialization,
3585 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3586 ix86_local_alignment): Fix use of size/speed predicates.
3588 2013-05-13 Jakub Jelinek <jakub@redhat.com>
3590 PR tree-optimization/45216
3591 PR tree-optimization/57157
3592 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3593 the (-Y) & (B - 1) variant if OP is |.
3594 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3595 return shifted. Use (-op1) & (prec - 1) as other_amount
3596 instead of prec - op1.
3598 2013-05-13 Martin Jambor <mjambor@suse.cz>
3601 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3602 (ipa_constant_data): New type.
3603 (ipa_jump_func): Use ipa_constant_data to hold information about
3604 constant jump functions.
3605 (ipa_get_jf_constant): Adjust to jump function type changes.
3606 (ipa_get_jf_constant_rdesc): New function.
3607 (ipa_param_descriptor): New field controlled_uses.
3608 (ipa_get_controlled_uses): New function.
3609 (ipa_set_controlled_uses): Likewise.
3610 * ipa-ref.h (ipa_find_reference): Declare.
3611 * ipa-prop.c (ipa_cst_ref_desc): New type.
3612 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3614 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3615 New parameter cs. Adjust all callers.
3616 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3617 (remove_described_reference): New function.
3618 (jfunc_rdesc_usable): Likewise.
3619 (try_make_edge_direct_simple_call): Decrement controlled use count,
3620 attempt to remove reference if it hits zero.
3621 (combine_controlled_uses_counters): New function.
3622 (propagate_controlled_uses): Likewise.
3623 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3624 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3625 (ipa_print_node_params): Print described use counter.
3626 (ipa_write_jump_function): Adjust to jump function type changes.
3627 (ipa_read_jump_function): New parameter CS, pass it to
3628 ipa_set_jf_constant. Adjust caller.
3629 (ipa_write_node_info): Stream controlled use count
3630 (ipa_read_node_info): Likewise.
3631 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3633 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3634 count. Remove cloning-added reference if it reaches zero.
3635 * ipa-ref.c (ipa_find_reference): New function.
3637 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3639 * config/i386/i386.c (processor_target_table): Modified default
3640 alignment values for AMD BD and BT architectures.
3642 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
3644 * tree-vect-generic.c (uniform_vector_p): Move ...
3645 * tree.c (uniform_vector_p): ... here.
3646 * tree.h (uniform_vector_p): Declare it.
3647 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3650 2013-05-13 Jakub Jelinek <jakub@redhat.com>
3652 PR tree-optimization/57230
3653 * tree-ssa-strlen.c (handle_char_store): Record length for
3654 array store from STRING_CST.
3656 PR tree-optimization/57230
3657 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3660 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3662 * config/epiphany/epiphany.c (epiphany_init): Check size of
3663 NUM_MODES_FOR_MODE_SWITCHING.
3664 (epiphany_expand_prologue):
3665 Remove CONFIG_REGNUM initial value handling code.
3666 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3667 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
3668 (emit_set_fp_mode, epiphany_mode_after): Likewise.
3669 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3670 Don't return 1 for FP_MODE_NONE.
3671 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3672 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3673 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3674 * config/epiphany/epiphany.md (save_config): New pattern.
3676 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
3678 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3680 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
3682 * config/i386/i386.md (memory): Handle sseishft1.
3683 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3684 (*vec_extractv2di_1): Ditto.
3686 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3688 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3691 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
3693 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3694 Add mthumb/march=armv7-a multilib.
3695 Add mthumb/march=armv7-r multilib.
3696 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3698 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3700 * config/v850/t-rtems: Add more multilibs.
3702 2013-05-10 Richard Biener <rguenther@suse.de>
3704 PR tree-optimization/57214
3705 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3706 not propagate from SSA names that occur in abnormal PHI nodes.
3708 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3710 * stor-layout.c (element_precision): New function.
3711 * machmode.h (element_precision): Declare it.
3712 * tree.c (build_minus_one_cst): New function.
3713 (element_precision): Likewise.
3714 * tree.h (build_minus_one_cst): Declare new function.
3715 (element_precision): Likewise.
3716 * fold-const.c (operand_equal_p): Use element_precision.
3717 (fold_binary_loc): Handle vector types.
3718 * convert.c (convert_to_integer): Use element_precision.
3719 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3722 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3724 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3725 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3726 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3727 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3728 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3729 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3730 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3731 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3732 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3733 (Uuw8): New constraints.
3734 (Usb4): Move into alphabetical order.
3735 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3736 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3737 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3738 previously unnamed patterns.
3739 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3740 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3741 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3742 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3743 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3744 of specific lengths.
3746 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3748 * config/i386/i386.md (rotateinv): New code attr.
3749 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3750 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3751 roll $31, %eax, etc.
3753 PR tree-optimization/45216
3754 PR tree-optimization/57157
3755 * tree-ssa-forwprop.c (simplify_rotate): New function.
3756 (ssa_forward_propagate_and_combine): Call it.
3758 2013-05-10 Richard Biener <rguenther@suse.de>
3760 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3761 disable peeling when we version for aliasing.
3762 (vector_alignment_reachable_p): Honor explicit user alignment.
3763 (vect_supportable_dr_alignment): Likewise.
3764 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3765 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3766 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3767 then peeling to arrange for the cost-model check to come first.
3769 2013-05-10 Alan Modra <amodra@gmail.com>
3771 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3772 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3773 * configure: Regenerate.
3775 2013-05-10 Alan Modra <amodra@gmail.com>
3778 * varasm.c (default_elf_select_section): Move !DECL_P check..
3779 (get_named_section): ..to here before calling get_section_name.
3781 (default_section_type_flags): Add DECL_P check.
3782 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3783 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3785 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3787 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3788 When using gen_stack_adjust_str with a register offset, add a
3789 REG_FRAME_RELATED_EXPR note.
3791 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
3793 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3794 (*vec_extractv4si_zext_mem): Ditto.
3795 (*vec_extractv2di): Add 0->x and x->x alternatives.
3796 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3797 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3799 2013-05-09 Jason Merrill <jason@redhat.com>
3801 N3639 C++1y VLA support
3802 * gimplify.c (gimplify_vla_decl): Don't touch an existing
3805 * tree.c (build_constructor_va): New.
3806 * tree.h: Declare it.
3808 2013-05-09 Martin Jambor <mjambor@suse.cz>
3811 * gimple-fold.c (canonicalize_constructor_val): Call
3812 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3814 2013-05-09 Jan Hubicka <jh@suse.cz>
3815 Richard Biener <rguenther@suse.de>
3818 * symtab.c (symtab_make_decl_local): Do not add private names.
3820 2013-05-09 Jan Hubicka <jh@suse.cz>
3823 * symtab.c (insert_to_assembler_name_hash): Handle clones.
3824 (unlink_from_assembler_name_hash): Likewise.
3825 (symtab_prevail_in_asm_name_hash, symtab_register_node,
3826 symtab_unregister_node, symtab_initialize_asm_name_hash,
3827 change_decl_assembler_name): Update.
3829 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
3831 * config/aarch64/aarch64.md: New movtf split.
3832 (*movtf_aarch64): Update.
3833 (aarch64_movdi_tilow): Handle TF modes and rename to
3834 aarch64_movdi_<mode>low.
3835 (aarch64_movdi_tihigh): Handle TF modes and rename to
3836 aarch64_movdi_<mode>high
3837 (aarch64_movtihigh_di): Handle TF modes and rename to
3838 aarch64_mov<mode>high_di
3839 (aarch64_movtilow_di): Handle TF modes and rename to
3840 aarch64_mov<mode>low_di
3841 (aarch64_movtilow_tilow): Remove spurious whitespace.
3842 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3844 (aarch64_print_operand): Update.
3846 2013-05-09 Alan Modra <amodra@gmail.com>
3848 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3850 * configure: Regenerate.
3852 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
3854 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3855 splitter preparation statements.
3856 * config/i386/sse.md (*vec_extract* splitters): Ditto.
3857 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3860 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3862 * gimple-ssa-strength-reduction.c (count_candidates): Change
3863 return value to int.
3864 (analyze_candidates_and_replace): Change type of length to int.
3866 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
3868 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3869 (*vec_extract<mode>): Use VI12_128 mode iterator.
3870 (*vec_extract<mode>_mem): Ditto.
3871 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3874 2013-05-08 Diego Novillo <dnovillo@google.com>
3879 2012-08-17 Diego Novillo <dnovillo@google.com>
3882 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3883 * config.in: Regenerate.
3884 * configure: Regenerate.
3885 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
3887 2013-05-08 Jan Hubicka <jh@suse.cz>
3890 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3891 * cgraph.h (symtab_node_base): Add unique_name.
3892 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3893 input_overwrite_node, input_varpool_node): Stream unique_name.
3894 * cgraphclones.c (cgraph_create_virtual_clone,
3895 cgraph_function_versioning): Set unique_name.
3896 * ipa.c (function_and_variable_visibility): Set unique_name.
3898 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3900 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3901 (alloc_cand_and_find_basis): Restrict conditional candidate
3902 processing to CAND_MULTs.
3904 2013-05-08 Jan Hubicka <jh@suse.cz>
3907 lto-symtab.c (lto_symtab_symbol_p): New function.
3908 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3909 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3910 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3911 Skip static symbols.
3913 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3915 PR tree-optimization/57200
3916 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3917 Only call inform if the preceding warning_at returns true.
3919 2013-05-07 Han Shen <shenhan@google.com>
3921 * cfgexpand.c (record_or_union_type_has_array_p): New function.
3922 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3923 * common.opt (fstack-protector-strong): New option.
3924 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3925 * doc/invoke.texi (Optimization Options): Document
3926 "-fstack-protector-strong".
3927 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3929 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3931 * config/mips/mips.c (mips_machine_reorg2): Return 0.
3933 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
3935 * ira.c (update_equiv_regs): Add insn having equiv memory even if
3936 it is not lhs of the insn.
3937 (setup_reg_equiv): Remove insn having equiv memory which it is not
3939 * lra-constraints.c (process_address): Try to improve generation
3940 code for address base + disp.
3941 (lra_constraints): Make correct the code for checking insn setting
3942 up backward equivalence. Remove insn only if it is in the init
3944 * lra-eliminations.c (update_reg_eliminate): Change return value.
3945 (lra_eliminate): Use the result.
3947 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
3949 * config/i386/sse.md (ssescalarnummask): New mode attribute.
3950 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3951 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3952 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3953 register target operands.
3954 (*vec_extractv8hi_sse2): New pattern.
3955 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3956 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3957 (*vec_extract<mode>_mem): New insn and split pattern.
3959 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3961 * config/arm/arm.c (arm_asan_shadow_offset): New function.
3962 (TARGET_ASAN_SHADOW_OFFSET): Define.
3963 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3964 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3966 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3968 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3969 (incr_vec_index): Return -1 if increment not found.
3970 (create_add_on_incoming_edge): Assert if increment not found.
3971 (record_increment): Limit number of increments recorded.
3972 (all_phi_incrs_profitable): Return false if an increment not found.
3973 (replace_profitable_candidates): Don't process increments that were
3975 (analyze_candidates_and_replace): Limit size of incr_vec.
3977 2013-05-07 Richard Biener <rguenther@suse.de>
3979 * calls.c (special_function_p): setjmp-like functions are leaf.
3980 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3981 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3983 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
3985 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3986 (aarch64_simd_mov<mode>): New expander.
3987 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3988 (aarch64_simd_mov_to_<mode>high): Likewise.
3989 (aarch64_simd_mov_from_<mode>low): Likewise.
3990 (aarch64_simd_mov_from_<mode>high): Likewise.
3991 (aarch64_dup_lane<mode>): Update.
3992 (aarch64_dup_lanedi): New instruction pattern.
3993 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3994 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3996 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3998 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3999 (replace_mult_candidate): Remove unnecessary argument; remove
4000 unnecessary parameter from call to introduce_cast_before_cand.
4001 (replace_unconditional_candidate): Remove unnecessary parameter
4002 from call to replace_mult_candidate.
4003 (replace_conditional_candidate): Likewise.
4004 (insert_initializers): Use make_temp_ssa_name.
4005 (introduce_cast_before_cand): Remove unnecessary argument; use
4007 (replace_one_candidate): Remove unnecessary argument; remove
4008 unnecessary parameter from calls to introduce_cast_before_cand.
4009 (replace_profitable_candidates): Remove unnecessary parameters
4010 from calls to replace_one_candidate.
4012 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4014 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4015 phi def as possibly hiding a basis for a CAND_ADD whose operands
4016 have been commuted in the analysis.
4017 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4019 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4021 * config/aarch64/aarch64.md
4022 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4023 shift value between 0-4.
4025 2013-05-07 Richard Biener <rguenther@suse.de>
4027 * double-int.h (rshift): New overload.
4028 * double-int.c (rshift): New function.
4029 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4030 (create_reference_ops_from_ref): Remove.
4031 (vn_reference_insert): Use shared ops for constructing the
4032 reference and copy it.
4034 2013-05-07 Richard Biener <rguenther@suse.de>
4037 * tree-eh.c (sink_clobbers): Properly propagate
4038 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4040 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4042 PR tree-optimization/57149
4043 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4044 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4045 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4046 uninit_undefined_value_p instead of ssa_undefined_value_p.
4049 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4050 for modifier == EXPAND_INITIALIZER.
4052 2013-05-07 Anton Blanchard <anton@samba.org>
4054 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4055 for powerpc64 little endian.
4056 * configure: Regenerate.
4058 2013-05-06 Graham Stott <grahams@btinternet.com>
4060 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4061 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4062 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4063 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4065 2013-05-06 Graham Stott <grahams@btinternet.com>
4067 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4068 codes which allow non-lvalues.
4070 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
4072 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4073 components are all 1s.
4074 (integer_minus_onep): New function.
4075 * tree.h (integer_minus_onep): Declare it.
4076 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4077 integer_minus_onep instead of integer_all_onesp.
4079 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4082 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4083 variations of these patterns.
4085 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4087 * config/i386/i386.md (isa): Add x64_sse4 member.
4088 (enabled): Handle x64_sse4.
4089 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4090 instruction for 64bit SSE4_1 targets. Update insn attributes.
4091 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4092 instruction for SSE4_1 targets. Update insn attributes.
4093 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4094 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4095 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4097 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4098 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4099 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4101 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4104 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4106 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4108 * final.c (do_assembler_dialects): Don't handle curly braces and
4109 vertical bar escaped by % as dialect delimiters.
4110 (output_asm_insn): Print curly braces and vertical bar if escaped
4111 by % and ASSEMBLER_DIALECT defined.
4112 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4113 * doc/tm.texi: Regenerated.
4115 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4117 * config/mips/mips.c: Include tree-pass.h.
4118 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4119 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4120 (pass_mips_machine_reorg2): New machine specific pass.
4121 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4122 (mips_option_override): Register the new pass.
4123 * rtl.h (cleanup_barriers): Remove prototype.
4124 (dbr_schedule): Likewise.
4125 * jump.c (cleanup_barriers): Make static.
4126 * reorg.c (dbr_schedule): Likewise.
4128 2013-05-06 Richard Biener <rguenther@suse.de>
4130 PR tree-optimization/57185
4131 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4134 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4137 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4138 between "first_arg" and "insn", not "last" and "insn".
4140 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4142 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4143 (find_candidates_in_block): Re-enable slsr_process_phi.
4144 (create_phi_basis): Fix double counting of candidate adjustment.
4146 2013-05-06 Richard Biener <rguenther@suse.de>
4149 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4150 the edge is also fallthru, preserve it and just clear the
4152 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4153 also complex, preserve that and just clear the fallthru flag.
4154 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4155 update virtual operands.
4157 2013-05-06 Alan Modra <amodra@gmail.com>
4159 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4160 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4161 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4162 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4163 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4164 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4166 2013-05-06 Alan Modra <amodra@gmail.com>
4168 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4169 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4170 (DEFAULT_ASM_ENDIAN): Define.
4171 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4172 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4173 Update -K PIC clause from sysv4.h.
4174 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4175 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4177 2013-05-06 Alan Modra <amodra@gmail.com>
4179 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4180 twice for little-endian.
4181 (ashrdi3_no_power, ashrdi3): Support little-endian.
4183 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4186 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4187 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4189 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4190 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4191 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4194 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4195 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4197 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4198 * config/pa/pa.opt: Make mbig-switch a no-op.
4199 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4200 (CASE_VECTOR_MODE): Always return SImode.
4201 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4202 for the !TARGET_BIG_SWITCH case.
4203 * config/pa/pa-linux.h: Likewise.
4204 * config/pa/pa-openbsd.h: Likewise.
4205 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4206 * config/pa/pa.md (short_jump): Remove define_insn.
4207 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4208 (casesi0): Remove define_insn.
4209 (type): Remove btable_branch.
4210 (pa_combine_type): Likewise.
4211 (in_nullified_branch_delay): Likewise.
4212 (in_call_delay): Likewise.
4213 (define_delay): Likewise.
4214 (define_insn_reservation "Z3"): Likewise.
4215 (define_insn_reservation "Z4"): Likewise.
4216 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4217 (pa_adjust_insn_length): Remove adjustment for btable branches.
4218 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4221 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
4223 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4224 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4225 Add m->r,x alternatives.
4226 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4227 splitters using SWI48x mode iterator.
4228 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4229 TARGET_64BIT. Add m->x alternative.
4230 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4231 Add o->x alternative. Enable for TARGET_SSE.
4232 (sse_storeq): Remove expander.
4233 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4234 with memory input operand.
4235 (*vec_extractv2di_1 splitter): New.
4236 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4237 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4239 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4241 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4242 (INT_LOWPART): Delete.
4243 (extract_MB): Adjust.
4244 (extract_ME): Adjust.
4245 (print_operand): Adjust.
4247 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4249 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4250 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4251 (reg_or_logical_cint_operand, easy_fp_constant,
4252 logical_const_operand): Delete "CONST_DOUBLE" case.
4253 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4254 "HOST_BITS_PER_WIDE_INT == 64" test.
4255 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
4256 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4257 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4258 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4260 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4261 CONST_DOUBLE DImode/VOIDmode case.
4262 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4263 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4264 CONST_DOUBLE VOIDmode case.
4265 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4266 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4267 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4268 Delete CONST_DOUBLE case.
4269 (splitters for mov FMOVE64 const_double): Delete
4270 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4271 "HOST_BITS_PER_WIDE_INT >= 64" test.
4272 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4274 (mov DI const_double): Delete.
4276 2013-05-04 Jakub Jelinek <jakub@redhat.com>
4278 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4279 on op shows all bits zero in mode of a lowpart subreg, return zero.
4281 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4284 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4285 to save TFmode registers and DImode to save TImode registers for
4286 caller save operations.
4287 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4288 mark being partially clobbered since they only use the first
4291 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4292 and TDmode only use the upper 64-bits of each VSX register.
4294 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4296 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4297 (find_candidates_in_block): Disable slsr_process_phi.
4299 2013-05-03 Guozhi Wei <carrot@google.com>
4301 * coverage.c (coverage_obj_init): Move the construction of gcov
4303 (build_init_ctor): ... here.
4305 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4307 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4308 (slsr_cand_d): Redefine def_phi.
4309 (stride_status, phi_adjust_status, count_phis_status): New enums.
4310 (find_phi_def): New.
4311 (find_basis_for_base_expr): New.
4312 (find_basis_for_candidate): Handle hidden bases.
4313 (alloc_cand_and_find_basis): Handle phi candidates.
4314 (slsr_process_phi): New.
4315 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4316 (create_mul_imm_cand): Likewise.
4317 (create_add_ssa_cand): Exclude phi base candidates.
4318 (create_add_imm_cand): Likewise.
4319 (slsr_process_cast): Likewise.
4320 (slsr_process_copy): Likewise.
4321 (find_candidates_in_block): Handle phi candidates.
4322 (dump_candidate): Likewise.
4323 (unconditional_cands): Delete.
4324 (unconditional_cands_with_known_stride_p): Delete.
4325 (phi_dependent_cand_p): New.
4326 (cand_increment): Handle phi-dependent candidates.
4327 (replace_dependent): Delete.
4328 (replace_mult_candidate): New.
4329 (replace_unconditional_candidate): New.
4330 (incr_vec_index): Move to avoid forward reference.
4331 (create_add_on_incoming_edge): New.
4332 (create_phi_basis): New.
4333 (replace_dependents): Delete.
4334 (replace_conditional_candidate): New.
4335 (phi_add_costs): New.
4336 (replace_uncond_cands_and_profitable_phis): New.
4337 (record_increment): Handle phi adjustments.
4338 (record_phi_increments): New.
4339 (record_increments): Handle phi adjustments.
4340 (phi_incr_cost): New.
4341 (lowest_cost_path): Handle phis.
4342 (total_savings): Likewise.
4343 (analyze_increments): Likewise.
4344 (ncd_with_phi): New.
4345 (ncd_of_cand_and_phis): New.
4346 (nearest_common_dominator_for_cands): Handle phi increments.
4347 (all_phi_incrs_profitable): New.
4348 (replace_profitable_candidates): Handle phi-dependent candidates.
4349 (analyze_candidates_and_replace): Likewise.
4351 2013-05-03 Teresa Johnson <tejohnson@google.com>
4354 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4355 do not exceed REG_BR_PROB_BASE.
4357 2013-05-03 Jeff Law <law@redhat.com>
4359 PR tree-optimization/57144
4360 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4361 operand of the condition will bit into the new type when eliminating
4362 a cast feeding a condition.
4364 2013-05-03 Jakub Jelinek <jakub@redhat.com>
4366 PR rtl-optimization/57130
4367 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4368 of COMPARE as in_code to the recursive call if needed.
4370 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
4372 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4373 (enabled): Handle new members.
4374 * config/i386/sse.md (*vec_concatv2si): Merge from
4375 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4376 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4378 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4380 PR tree-optimization/57027
4381 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4382 for fnms opportunity, check we got the prerequisite kind
4383 of tree / gimple before using accessor functions.
4385 2013-05-03 Richard Biener <rguenther@suse.de>
4387 * double-int.h (lshift): New overload without precision
4389 (operator *=, operator +=, operator -=): Move ...
4390 * double-int.c (operator *=, operator +=, operator -=): ... here
4391 and implement more efficiently.
4392 (mul_double_with_sign): Remove.
4393 (lshift_double): Adjust to take unsinged shift argument, push
4394 dispatching code to callers.
4395 (mul_double_wide_with_sign): Add early out for callers that
4396 are not interested in high parts or overflow.
4397 (lshift): New function.
4398 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4400 (lrotate, rrotate): Use logical shifts.
4401 * expr.c (get_inner_reference): Use lshift.
4402 * fixed-value.c (do_fixed_divide): Likewise.
4403 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4404 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4405 (indirect_refs_may_alias_p): Likewise.
4406 (stmt_kills_ref_p_1): Likewise.
4408 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4410 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4412 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4414 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4415 scalar form of FABD instruction.
4417 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4419 * lra-constraints.c (process_alt_operands): Add checking alt
4420 number to choose the best alternative.
4422 2013-05-02 Richard Biener <rguenther@suse.de>
4424 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4425 bitmap and its handling.
4426 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4428 2013-05-02 Richard Biener <rguenther@suse.de>
4431 * tree-inline.c (copy_loops): Properly handle removed loops.
4432 (copy_cfg_body): Mark destination loops for fixup if source
4435 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4438 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4439 generating simple_return for naked functions.
4441 2013-05-02 Martin Jambor <mjambor@suse.cz>
4444 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4445 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4447 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4448 ipa_agg_replacement_value structures.
4449 (known_aggs_to_agg_replacement_list): Likewise.
4450 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4451 (read_agg_replacement_chain): Likewise.
4452 (ipcp_transform_function): Also check that by_ref flags match.
4454 2013-05-02 Richard Biener <rguenther@suse.de>
4456 * graphds.h (struct graph): Add obstack member.
4457 * graphds.c (new_graph): Initialize obstack and allocate
4459 (add_edge): Allocate edge from the obstack.
4460 (free_graph): Free the obstack instead of all edges and vertices.
4462 2013-05-02 Teresa Johnson <tejohnson@google.com>
4464 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4466 * cfg.c (update_bb_profile_for_threading): Ditto.
4467 * tree-inline.c (copy_bb): Ditto.
4468 (copy_edges_for_bb): Ditto.
4469 (initialize_cfun): Ditto.
4470 (copy_cfg_body): Ditto.
4471 (expand_call_inline): Ditto.
4472 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4473 (estimate_node_size_and_time): Ditto.
4474 (inline_merge_summary): Ditto.
4475 * cgraphclones.c (cgraph_clone_edge): Ditto.
4476 (cgraph_clone_node): Ditto.
4477 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4478 (compute_trg_info): Ditto.
4480 2013-05-02 Ian Bolton <ian.bolton@arm.com>
4482 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4483 S reg when fp attribute set.
4484 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4486 2013-05-02 Ian Bolton <ian.bolton@arm.com>
4488 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4490 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4491 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4492 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4494 2013-05-02 Richard Biener <rguenther@suse.de>
4496 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4497 (struct instantiate_cache_entry): New type.
4498 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4499 (struct instantiate_cache_type): New type.
4500 (set_instantiated_value, get_instantiated_value): Remove.
4501 (get_instantiated_value_entry): New function.
4502 (instantiate_scev_name): Use the new cache and adjust.
4503 (instantiate_scev_poly): Adjust.
4504 (instantiate_scev_binary): Likewise.
4505 (instantiate_array_ref): Likewise.
4506 (instantiate_scev_convert): Likewise.
4507 (instantiate_scev_not): Likewise.
4508 (instantiate_scev_3): Likewise.
4509 (instantiate_scev_2): Likewise.
4510 (instantiate_scev_r): Likewise.
4511 (instantiate_scev): Likewise.
4512 (resolve_mixers): Likewise.
4514 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4517 * lra-constraints.c (best_small_class_operands_num): Remove.
4518 (process_alt_operands): Remove small_class_operands_num. Take
4519 small classes operands into losers and only if the operand is not
4520 matched. Modify debugging output.
4521 (curr_insn_transform): Remove best_small_class_operands_num.
4524 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4526 * config/aarch64/aarch64-builtins.c
4527 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4528 * config/aarch64/aarch64-simd-builtins.def
4529 (reduc_splus_): Add new modes.
4530 (reduc_uplus_): New.
4531 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4532 (reduc_uplus_v4sf): Likewise.
4533 (reduc_splus_v4sf): Likewise.
4534 (aarch64_addv<mode>): Likewise.
4535 (reduc_uplus_<mode>): Likewise.
4536 (reduc_splus_<mode>): Likewise.
4537 (aarch64_addvv2di): Likewise.
4538 (reduc_uplus_v2di): Likewise.
4539 (reduc_splus_v2di): Likewise.
4540 (aarch64_addvv2si): Likewise.
4541 (reduc_uplus_v2si): Likewise.
4542 (reduc_splus_v2si): Likewise.
4543 (reduc_<sur>plus_<mode>): New.
4544 (reduc_<sur>plus_v2di): Likewise.
4545 (reduc_<sur>plus_v2si): Likewise.
4546 (reduc_<sur>plus_v4sf): Likewise.
4547 (aarch64_addpv4sf): Likewise.
4548 * config/aarch64/arm_neon.h
4549 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4550 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4551 add UNSPEC_SADDV, UNSPEC_UADDV.
4553 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4555 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4557 * config/aarch64/arm_neon.h
4558 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4560 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4562 * config/aarch64/aarch64-builtins
4563 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4565 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4567 * config/aarch64/aarch64-simd-builtins.def
4569 (reduc_smin_): Likewise.
4570 (reduc_umax_): Likewise.
4571 (reduc_umin_): Likewise.
4572 (reduc_smax_nan_): Likewise.
4573 (reduc_smin_nan_): Likewise.
4576 (smax): Update for V2SF, V4SF and V2DF modes.
4579 (smin_nan): Likewise.
4580 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4581 (<su><maxmin><mode>3): ...This, refactor.
4582 (s<maxmin><mode>3): New.
4583 (<maxmin_uns><mode>3): Likewise.
4584 (reduc_<maxmin_uns>_<mode>): Refactor.
4585 (reduc_<maxmin_uns>_v4sf): Likewise.
4586 (reduc_<maxmin_uns>_v2si): Likewise.
4587 (aarch64_<fmaxmin><mode>: Remove.
4588 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4590 (vmin<q>_f<32,64>): Likewise.
4591 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4593 (su): Add mappings for smax, smin, umax, umin.
4595 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4596 (FMAXMIN): Rename as...
4597 (FMAXMIN_UNS): ...This.
4599 (fmaxminv): Likewise.
4600 (fmaxmin): Likewise.
4602 (maxmin_uns_op): Likewise.
4604 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4606 * config/aarch64/arm_neon.h
4607 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4608 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4609 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4611 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4613 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4614 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4616 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4618 * config/aarch64/aarch64-simd.md
4619 (vcond<mode>_internal): Handle special cases for constant masks.
4620 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4621 (vcondu<mode><mode>): Likewise.
4622 (vcond<v_cmp_result><mode>): New.
4624 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4626 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4627 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4628 * config/aarch64/aarch64-simd-builtins.def
4629 (cmeq): Update to BUILTIN_VALLDI.
4634 * config/aarch64/arm_neon.h
4635 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4636 to builtins or C as appropriate.
4638 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4640 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4642 (cmhi): Rename to...
4644 * config/aarch64/aarch64-simd.md
4645 (simd_mode): Add SF.
4646 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4647 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4648 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4649 (cstore<mode>_neg): ...This.
4650 * config/aarch64/iterators.md
4652 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4654 (UCOMPARISONS): Likewise.
4655 (optab): Add missing comparisons.
4663 (V_cmp_result): Add DF, SF modes.
4664 (v_cmp_result): Likewise.
4667 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4669 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4671 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4672 define_insn to define_insn_and_split.
4673 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4674 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4675 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4676 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4677 (thumb2_negscc): Likewise.
4679 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4681 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4683 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4685 * config/arm/thumb2.md: Remove trailing whitespaces.
4687 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4689 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4690 Use gen_int_mode rather than GEN_INT.
4692 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4694 * value-prof.c (stream_in_histogram_value): Remove the strayed
4697 2013-04-30 Richard Biener <rguenther@suse.de>
4700 * cfghooks.c (split_edge): Properly check for the loop latch edge.
4702 2013-04-30 Richard Biener <rguenther@suse.de>
4705 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4707 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
4709 PR rtl-optimization/56957
4710 PR rtl-optimization/57105
4711 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4712 variable. Use just INSN_UID for determining whether an insn
4713 should be only disconnected from the insn stream.
4714 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4716 2013-04-30 Jakub Jelinek <jakub@redhat.com>
4718 PR tree-optimization/57104
4719 * tsan.c (instrument_expr): Don't instrument accesses to
4720 DECL_HARD_REGISTER VAR_DECLs.
4722 2013-04-30 Richard Biener <rguenther@suse.de>
4724 * function.h (loops_for_fn): New inline function.
4725 (set_loops_for_fn): Likewise.
4726 * cfgloop.h (place_new_loop): Add struct function parameter.
4727 (get_loop): Likewise.
4728 (get_loops): Likewise.
4729 (number_of_loops): Likewise.
4731 (fel_init): Likewise.
4732 * cfg.c (get_loop_copy): Adjust.
4733 * cfgloop.c (flow_loops_dump): Likewise.
4734 (record_loop_exits): Likewise.
4735 (verify_loop_structure): Likewise.
4736 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4737 (estimate_reg_pressure_cost): Likewise.
4738 (mark_loop_exit_edges): Likewise.
4739 * cfgloopmanip.c (place_new_loop): Likewise.
4740 (add_loop): Likewise.
4741 (duplicate_loop): Likewise.
4742 * graph.c (draw_cfg_nodes): Likewise.
4743 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4744 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4745 (extract_affine_chrec): Likewise.
4746 (build_scop_iteration_domain): Likewise.
4747 * graphite.c (graphite_initialize): Likewise.
4748 * ira-build.c (create_loop_tree_nodes): Likewise.
4749 (more_one_region_p): Likewise.
4750 (rebuild_regno_allocno_maps): Likewise.
4751 (mark_loops_for_removal): Likewise.
4752 (mark_all_loops_for_removal): Likewise.
4753 (remove_unnecessary_regions): Likewise.
4754 (ira_build): Likewise.
4755 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4756 * loop-init.c (fix_loop_structure): Likewise.
4757 (gate_rtl_move_loop_invariants): Likewise.
4758 (gate_rtl_unswitch): Likewise.
4759 (gate_rtl_unroll_and_peel_loops): Likewise.
4760 (rtl_doloop): Likewise.
4761 * lto-streamer-in.c (input_cfg): Likewise.
4762 * lto-streamer-out.c (output_cfg): Likewise.
4763 * modulo-sched.c (sms_schedule): Likewise.
4764 * predict.c (tree_estimate_probability): Likewise.
4765 (tree_estimate_probability_driver): Likewise.
4766 (estimate_loops): Likewise.
4767 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4768 (move_sese_region_to_fn): Likewise.
4769 (debug_loop_num): Likewise.
4770 * tree-chrec.c (chrec_evaluate): Likewise.
4771 (hide_evolution_in_other_loops_than_loop): Likewise.
4772 (chrec_component_in_loop_num): Likewise.
4773 (reset_evolution_in_loop): Likewise.
4774 (evolution_function_is_invariant_rec_p): Likewise.
4775 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4776 * tree-inline.c (copy_loops): Likewise.
4777 (copy_cfg_body): Likewise.
4778 (tree_function_versioning): Likewise.
4779 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4780 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4782 (add_to_evolution_1): Likewise.
4783 (scev_const_prop): Likewise.
4784 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4785 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4786 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4787 (tree_ssa_lim_initialize): Likewise.
4788 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4789 (verify_loop_closed_ssa): Likewise.
4790 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
4791 (tree_ssa_loop_im): Likewise.
4792 (tree_ssa_loop_unswitch): Likewise.
4793 (tree_vectorize): Likewise.
4794 (check_data_deps): Likewise.
4795 (tree_ssa_loop_ivcanon): Likewise.
4796 (tree_ssa_loop_bounds): Likewise.
4797 (tree_complete_unroll): Likewise.
4798 (tree_complete_unroll_inner): Likewise.
4799 (tree_parallelize_loops): Likewise.
4800 (tree_ssa_loop_prefetch): Likewise.
4801 (tree_ssa_loop_ivopts): Likewise.
4802 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4803 * tree-vectorizer.c (vectorize_loops): Likewise.
4805 2013-04-29 Mike Frysinger <vapier@gentoo.org>
4807 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4808 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4809 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4810 with EABI_LINK_SPEC.
4812 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
4815 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4818 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
4821 * lra-constraints.c (process_alt_operands): Discourage a bit more
4822 using memory for pseudos. Print cost dump for alternatives.
4823 Modify cost values for conflicts with early clobbers.
4824 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4826 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
4829 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4831 2013-04-29 Ian Bolton <ian.bolton@arm.com>
4833 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4835 (movdi_aarch64): Support LDR/STR from/to D register.
4837 2013-04-29 Ian Bolton <ian.bolton@arm.com>
4839 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4840 or higher by default.
4842 2013-04-29 Richard Biener <rguenther@suse.de>
4845 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4846 even if not adding abnormal edges for calls that can make
4849 2013-04-29 Richard Biener <rguenther@suse.de>
4852 * tree-cfg.c (move_stmt_op): Fix condition under which to update
4854 (move_stmt_r): Remove redundant checking.
4856 2013-04-29 Teresa Johnson <tejohnson@google.com>
4859 * basic-block.h (apply_scale): New function.
4860 (apply_probability): Use apply_scale.
4861 * gimple-streamer-in.c (input_bb): Ditto.
4862 * lto-streamer-in.c (input_cfg): Ditto.
4863 * lto-cgraph.c (merge_profile_summaries): Ditto.
4864 * tree-optimize.c (execute_fixup_cfg): Ditto.
4865 * tree-inline.c (copy_bb): Update comment to use apply_scale.
4866 (copy_edges_for_bb): Ditto.
4867 (copy_cfg_body): Ditto.
4869 2013-04-29 Tom de Vries <tom@codesourcery.com>
4871 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4872 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4873 (tail_merge_optimize): Handle current_loops == NULL.
4875 2013-04-26 Jeff Law <law@redhat.com>
4877 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4878 (simplify_cond_using_ranges): Generalize code to simplify
4879 COND_EXPRs where one argument is a constant and the other
4880 is an SSA_NAME created by an integral type conversion.
4882 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4884 * config/arm/arm.md (store_minmaxsi): Use only when
4885 optimize_insn_for_size_p.
4887 2013-04-29 Christian Bruel <christian.bruel@st.com>
4890 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4892 2013-04-29 Richard Biener <rguenther@suse.de>
4895 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4896 loop tree make sure to schedule a fixup for the child as well.
4897 (expand_omp_for_generic): Properly add loops.
4898 (expand_omp_for_static_nochunk): Likewise.
4899 (expand_omp_for_static_chunk): Likewise.
4900 (expand_omp_for): For the degenerate case fixup loops.
4901 (expand_omp_sections): Fix default bb placement in loops.
4902 (expand_omp_atomic_pipeline): Properly add loops.
4904 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4906 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4908 2013-04-29 Tom de Vries <tom@codesourcery.com>
4910 * tree-ssa-tail-merge.c: Update header comment.
4912 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4914 * config/aarch64/arm_neon.h
4915 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4916 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4917 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4918 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4919 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4920 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4921 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4922 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4924 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4926 * config/aarch64/aarch64-simd.md
4927 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4928 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4929 fix_trunc, fixuns_trunc.
4930 (ftrunc<VDQF:mode>2): New.
4931 * config/aarch64/iterators.md (optab): Add fix, fixuns.
4932 (fix_trunc_optab): New.
4934 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4936 * config/aarch64/aarch64-builtins.c
4937 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4938 iceilf, lround, iroundf.
4940 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
4943 * config/i386/i386.h (enum ix86_tune_indices)
4944 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4945 New, split from X86_TUNE_INTER_UNIT_MOVES.
4946 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4947 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4948 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4949 (TARGET_INTER_UNIT_MOVES): Remove.
4950 * config/i386/i386.c (initial_ix86_tune_features): Update.
4951 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4952 (ix86_expand_convert_uns_didf_sse): Use
4953 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4954 (ix86_expand_vector_init_one_nonzero): Ditto.
4955 (ix86_expand_vector_init_interleave): Ditto.
4956 (inline_secondary_memory_needed): Return true for moves from SSE class
4957 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4958 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4959 * config/i386/constraints.md (Yi, Ym): Depend on
4960 TARGET_INTER_UNIT_MOVES_TO_VEC.
4961 (Yj, Yn): New constraints.
4962 * config/i386/i386.md (*movdi_internal): Change constraints of
4963 operand 1 from Yi to Yj and from Ym to Yn.
4964 (*movsi_internal): Ditto.
4965 (*movdf_internal): Ditto.
4966 (*movsf_internal): Ditto.
4967 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4968 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4969 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4970 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4971 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4972 * config/i386/sse.md (movdi_to_sse): Ditto.
4973 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4974 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4975 TARGET_INTER_UNIT_MOVES.
4976 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4977 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4978 instead of TARGET_INTER_UNIT_MOVES.
4979 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4980 operand 1 from Yi to Yj and from Ym to Yn.
4982 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4984 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4985 (float_truncate_hi_): Likewise.
4986 (float_extend_lo_): Likewise.
4987 (float_truncate_lo_): Likewise.
4988 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4989 (aarch64_float_extend_lo_v2df): Likewise.
4990 (vec_unpacks_hi_v4sf): Likewise.
4991 (aarch64_float_truncate_lo_v2sf): Likewise.
4992 (aarch64_float_truncate_hi_v4sf): Likewise.
4993 (vec_pack_trunc_v2df): Likewise.
4994 (vec_pack_trunc_df): Likewise.
4996 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4998 * config/aarch64/aarch64-builtins.c
4999 (aarch64_fold_builtin): Fold float conversions.
5000 * config/aarch64/aarch64-simd-builtins.def
5001 (floatv2si, floatv4si, floatv2di): New.
5002 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5003 * config/aarch64/aarch64-simd.md
5004 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5005 * config/aarch64/iterators.md (FLOATUORS): New.
5006 (optab): Add float, floatuns.
5007 (su_optab): Likewise.
5009 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5011 * config/aarch64/aarch64-builtins.c
5012 (aarch64_builtin_vectorized_function): Use new names for
5014 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5015 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5016 (fcvtzu): Split as...
5017 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5018 (fcvtas): Split as...
5019 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5020 (fcvtau): Split as...
5021 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5022 (fcvtps): Split as...
5023 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5024 (fcvtpu): Split as...
5025 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5026 (fcvtms): Split as...
5027 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5028 (fcvtmu): Split as...
5029 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5030 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5031 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5032 (lfrintnusf, lfrintnudf): Likewise.
5033 * config/aarch64/aarch64-simd.md
5034 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5036 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5037 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5038 (fcvt_pattern): Likewise.
5040 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5042 * config/aarch64/aarch64-simd.md
5043 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5044 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5046 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5048 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5049 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5050 (vrnd<a,m,n,p>_f32): Implement using builtins.
5051 (vrnd<i,x><q>_f<32, 64>): New.
5053 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5055 * config/aarch64/aarch64-builtins.c
5056 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5057 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5058 (frintz): Rename to...
5060 (frintp): Rename to...
5062 (frintm): Rename to...
5064 (frinti): Rename to...
5065 (nearbyint): ...this.
5066 (frintx): Rename to...
5068 (frinta): Rename to...
5070 * config/aarch64/aarch64-simd.md
5071 (aarch64_frint<frint_suffix><mode>): Delete.
5072 (<frint_pattern><mode>2): Convert to insn.
5073 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5074 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5075 (frint_pattern): Likewise.
5076 (frint_suffix): Likewise.
5078 2013-04-29 Richard Biener <rguenther@suse.de>
5080 PR tree-optimization/57081
5081 * loop-init.c: Include tree-flow.h.
5082 (loop_optimizer_finalize): Free number of iteration estimates.
5083 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5085 2013-04-29 Jakub Jelinek <jakub@redhat.com>
5087 PR tree-optimization/57083
5088 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5089 non-singleton shift count range, zero extend low_bound for uns case.
5091 * config/i386/predicates.md (general_vector_operand): New predicate.
5092 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5093 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5094 if they aren't nonimmediate operands. If their original values
5095 satisfy const_vector_equal_evenodd_p, don't shift them.
5096 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5097 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5098 if not nonimmediate_operand.
5099 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5100 instead of register_operand.
5101 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5103 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
5105 * stor-layout.c (finalize_size_functions): Allocate a structure and
5106 reset cfun before dumping the functions.
5108 2013-04-27 Jakub Jelinek <jakub@redhat.com>
5110 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5113 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5114 use xop_pmacsdqh if uns_p.
5115 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5116 the immediate rotate count.
5118 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5120 * rtl.h (struct rtx_def): Add comment for field jump.
5121 (LRA_SUBREG_P): New macro.
5122 * recog.c (register_operand): Check LRA_SUBREG_P.
5123 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5125 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5126 (lra_final_code_change): Skip subreg change for operators.
5127 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5128 if there are no operand changes.
5129 * lra-constraints.c (curr_insn_set): New.
5130 (match_reload): Set LRA_SUBREG_P.
5131 (emit_spill_move): Ditto.
5132 (check_and_process_move): Use curr_insn_set. Process only single
5133 set insns. Don't initialize sec_mem_p and change_p.
5134 (simplify_operand_subreg): Use LRA_SUBREG_P.
5135 (reg_in_class_p): New function.
5136 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5137 of #ifdef. Add code to remove cycling.
5138 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5139 non-null disp. Reload inner instead of disp when base and index
5140 are null. Try to put lo_sum into register.
5141 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5142 (check_and_process_move): Move code for move cost check to
5143 simple_move_p. Remove equiv_substitution.
5144 (simple_move_p): New function.
5145 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5146 curr_insn_set. Call check_and_process_move only for single set
5147 insns. Use the new function. Move call of check_and_process_move
5148 after operand equiv substitution and address process.
5150 2013-04-26 Jakub Jelinek <jakub@redhat.com>
5153 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5154 with nonlocal goto receivers or returns twice calls, ignore
5155 unininitialized values from abnormal edges to nl goto receiver
5156 or returns twice call.
5158 2013-04-26 Jakub Jelinek <jakub@redhat.com>
5160 PR tree-optimization/57051
5161 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5162 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5165 2013-04-26 Richard Biener <rguenther@suse.de>
5167 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5168 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5169 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5170 (fixup_loop_arrays_after_move): New function.
5171 (move_sese_region_to_fn): Properly outline the loop tree parts
5174 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
5176 * config/i386/i386.md (type, unit): Fix long lines.
5178 2013-04-26 Richard Biener <rguenther@suse.de>
5180 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5181 (lto-streamer-out.o): Likewise.
5182 * cfgloop.c (init_loops_structure): Export, add struct function
5183 argument and adjust.
5184 (flow_loops_find): Adjust.
5185 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5186 (init_loops_structure): Declare.
5187 * lto-streamer-in.c: Include cfgloop.h.
5188 (input_cfg): Input the loop tree.
5189 * lto-streamer-out.c: Include cfgloop.h.
5190 (output_cfg): Output the loop tree.
5191 (output_struct_function_base): Do not drop PROP_loops.
5193 2013-03-26 Richard Biener <rguenther@suse.de>
5195 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5196 (pass_build_cfg): Provide PROP_loops.
5197 (move_sese_region_to_fn): Remove loops that are outlined into fn
5199 * tree-inline.c: Include cfgloop.h.
5200 (initialize_cfun): Do not drop PROP_loops.
5201 (copy_loops): New function.
5202 (copy_cfg_body): Copy loop structure.
5203 (tree_function_versioning): Initialize destination loop tree.
5204 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5205 (pass_parallelize_loops): Do IL verification.
5206 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5207 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5208 the CFG make sure we fixup loops as well.
5209 * tree-ssa-tail-merge.c: Include cfgloop.h.
5210 (replace_block_by): When merging loop latches mark loops for fixup.
5211 * lto-streamer-out.c (output_struct_function_base): Drop
5213 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5214 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5215 * ipa-split.c: Include cfgloop.h.
5216 (split_function): Add the new return block to the loop tree root.
5217 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5218 whether we have removed the forwarder block.
5219 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5220 * cfgloop.h (place_new_loop): Declare.
5221 * cfgloopmanip.c (place_new_loop): Export.
5222 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5223 (tree-switch-conversion.o): Likewise.
5224 (tree-complex.o): Likewise.
5225 (tree-inline.o): Likewise.
5226 (tree-ssa-tailmerge.o): Likewise.
5227 (ipa-split.o): Likewise.
5228 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5229 (tree-ssa-copy.o): Likewise.
5230 * tree-switch-conversion.c: Include cfgloop.h
5231 (process_switch): If we emit a bit-test cascade, schedule loops
5233 * tree-complex.c: Include cfgloop.h.
5234 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5235 * asan.c: Include cfgloop.h.
5236 (create_cond_insert_point): Properly add new basic-blocks to
5237 loops, schedule loop fixup.
5238 * cfgloop.c (verify_loop_structure): Check that looks are not
5240 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5242 (expand_omp_for_generic): Likewise.
5243 (expand_omp_sections): Likewise.
5244 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5245 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5246 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5247 is initialized, not when loops are present.
5248 * tree-parloops.c (parallelize_loops): Remove checking here.
5249 * passes.c (init_optimization_passes): Schedule a copy-propagation
5250 pass before complete unrolling of inner loops.
5252 2013-04-26 Jakub Jelinek <jakub@redhat.com>
5254 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5255 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5256 (colorize_init): Add argument to _WIN32 version.
5257 * toplev.c: Include diagnostic-color.h.
5258 (process_options): Default to -fdiagnostics-color=auto if
5259 GCC_COLORS env var is in the environment.
5260 * common.opt (fdiagnostics-color=): Add Var and Init.
5261 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5262 env var is in the environment, the default is auto rather than never.
5264 * diagnostic.h (file_name_as_prefix): Add context argument.
5265 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5266 the string as locus.
5267 * langhooks.c (lhd_print_error_function): Adjust caller.
5269 2013-04-25 Lawrence Crowl <crowl@google.com>
5271 * var-tracking.c (shared_hash_def::htab):
5272 Change type to hash_table. Update dependent calls and types.
5274 2013-04-25 Lawrence Crowl <crowl@google.com>
5276 * Makefile.in: Update as needed below.
5278 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5279 Move declaration to after the type's method definitons.
5281 * attribs.c (htab_t scoped_attributes::attribute_hash):
5282 Change type to hash_table. Update dependent calls and types.
5284 * bitmap.c (htab_t bitmap_desc_hash):
5285 Change type to hash_table. Update dependent calls and types.
5287 * cselib.c (htab_t cselib_hash_table):
5288 Change type to hash_table. Update dependent calls and types.
5290 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5291 (hash_string_slot_node): Move implementation into lto-streamer.h
5292 struct string_slot_hasher.
5293 (eq_string_slot_node): Likewise.
5295 * data-streamer-out.c: Update output_block::string_hash_table
5296 dependent calls and types.
5298 * dwarf2cfi.c (htab_t trace_index):
5299 Change type to hash_table. Update dependent calls and types.
5301 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5302 Change type to hash_table. Update dependent calls and types.
5303 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5304 (htab_t optimize_external_refs::map): Likewise.
5305 (htab_t output_comp_unit::extern_map): Likewise.
5306 (htab_t output_comdat_type_unit::extern_map): Likewise.
5307 (htab_t output_macinfo::macinfo_htab): Likewise.
5308 (htab_t optimize_location_lists::htab): Likewise.
5309 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5311 * except.c (htab_t ehspec_hash_type):
5312 Change type to hash_table. Update dependent calls and types.
5313 (assign_filter_values::ttypes): Likewise.
5314 (assign_filter_values::ehspec): Likewise.
5315 (sjlj_assign_call_site_values::ar_hash): Likewise.
5316 (convert_to_eh_region_ranges::ar_hash): Likewise.
5318 * gcse.c (htab_t pre_ldst_table):
5319 Change type to hash_table. Update dependent calls and types.
5321 * ggc-common.c (htab_t saving_htab):
5322 Change type to hash_table. Update dependent calls and types.
5323 (htab_t loc_hash): Likewise.
5324 (htab_t ptr_hash): Likewise.
5325 (call_count): Rename ggc_call_count.
5326 (call_alloc): Rename ggc_call_alloc.
5327 (loc_descriptor): Rename make_loc_descriptor.
5328 (add_statistics): Rename ggc_add_statistics.
5330 * ggc-common.c (saving_htab):
5331 Change type to hash_table. Update dependent calls and types.
5333 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5334 (push_gimplify_context): Likewise.
5335 (pop_gimplify_context): Likewise.
5336 (struct gimple_temp_hash_elt): Added.
5337 (struct gimplify_hasher): Likewise.
5338 (struct gimplify_ctx.temp_htab):
5339 Change type to hash_table. Update dependent calls and types.
5341 * gimple-fold.c: Include gimplify-ctx.h.
5343 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5344 Change type to hash_table. Update dependent calls and types.
5345 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5346 avoid potential global name collision.
5348 * gimplify.c: Include gimplify-ctx.h.
5349 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5350 (htab_t gimplify_ctx::temp_htab):
5351 Update dependent calls and types for new type hash_table.
5352 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5353 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5355 * gimplify-ctx.h: New.
5356 (struct gimple_temp_hash_elt): Move from gimplify.c.
5357 (class gimplify_hasher): New.
5358 (struct gimplify_ctx): Move from gimple.h.
5359 (htab_t gimplify_ctx::temp_htab):
5360 Change type to hash_table. Update dependent calls and types.
5362 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5363 (htab_t ivs_params::newivs_index):
5364 Change type to hash_table. Update dependent calls and types.
5365 (htab_t ivs_params::params_index): Likewise.
5366 (htab_t print_generated_program::params_index): Likewise.
5367 (htab_t gloog::newivs_index): Likewise.
5368 (htab_t gloog::params_index): Likewise.
5370 * graphite.c: Include graphite-htab.h.
5371 4htab_t graphite_transform_loops::bb_pbb_mapping):
5372 Change type to hash_table. Update dependent calls and types.
5374 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5375 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5376 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5378 * graphite-dependences.c: Include graphite-htab.h.
5379 (loop_is_parallel_p): Change hash table type of parameter.
5381 * graphite-htab.h: New.
5382 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5383 (extern find_pbb_via_hash): Move from graphite-poly.h.
5384 (extern loop_is_parallel_p): Move from graphite-poly.h.
5385 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5387 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5388 (extern loop_is_parallel_p): Move to graphite-htab.h.
5389 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5391 * haifa-sched.c (htab_t delay_htab):
5392 Change type to hash_table. Update dependent calls and types.
5393 (htab_t delay_htab_i2): Likewise.
5395 * ira-color.c (htab_t allocno_hard_regs_htab):
5396 Change type to hash_table. Update dependent calls and types.
5398 * ira-costs.c (htab_t cost_classes_htab):
5399 Change type to hash_table. Update dependent calls and types.
5401 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5402 Change type to hash_table. Update dependent calls and types.
5404 * loop-iv.c (htab_t bivs):
5405 Change type to hash_table. Update dependent calls and types.
5407 * loop-unroll.c (htab_t opt_info::insns_to_split):
5408 Change type to hash_table. Update dependent calls and types.
5409 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5411 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5412 (struct string_slot_hasher): New.
5413 (htab_t output_block::string_hash_table):
5414 Change type to hash_table. Update dependent calls and types.
5416 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5417 (htab_t file_name_hash_table):
5418 Change type to hash_table. Update dependent calls and types.
5420 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5423 * lto-streamer.c (htab_t tree_htab):
5424 Change type to hash_table. Update dependent calls and types.
5426 * omp-low.c: Include gimplify-ctx.h.
5428 * passes.c (htab_t name_to_pass_map):
5429 Change type to hash_table. Update dependent calls and types.
5430 (pass_traverse): Rename to passes_pass_traverse.
5432 * plugin.c (htab_t event_tab):
5433 Change type to hash_table. Update dependent calls and types.
5435 * postreload-gcse.c (htab_t expr_table):
5436 Change type to hash_table. Update dependent calls and types.
5437 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5439 * sese.c (debug_rename_map_1): Make extern.
5440 (htab_t copy_bb_and_scalar_dependences::rename_map):
5441 Change type to hash_table. Update dependent calls and types.
5443 * sese.h (extern debug_rename_map): Move to .c file.
5445 * store-motion.c (htab_t store_motion_mems_table):
5446 Change type to hash_table. Update dependent calls and types.
5448 * trans-mem.c (htab_t tm_new_mem_hash):
5449 Change type to hash_table. Update dependent calls and types.
5451 * tree-browser.c (htab_t TB_up_ht):
5452 Change type to hash_table. Update dependent calls and types.
5454 * tree-cfg.c (htab_t discriminator_per_locus):
5455 Change type to hash_table. Update dependent calls and types.
5457 * tree-complex.c: Include tree-hasher.h
5458 (htab_t complex_variable_components):
5459 Change type to hash_table. Update dependent calls and types.
5461 * tree-eh.c (htab_t finally_tree):
5462 Change type to hash_table. Update dependent calls and types.
5464 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5465 struct int_tree_hasher.
5466 (extern int_tree_map_eq): Likewise.
5467 (uid_decl_map_hash): Removed.
5468 (extern decl_tree_map_eq): Likewise.
5470 * tree-hasher.h: New.
5471 (struct int_tree_hasher): New.
5472 (typedef int_tree_htab_type): New.
5474 * tree-inline.c: Include gimplify-ctx.h.
5476 * tree-mudflap.c: Include gimplify-ctx.h.
5478 * tree-parloops.c: Include tree-hasher.h.
5479 (htab_t eliminate_local_variables_stmt::decl_address):
5480 Change type to hash_table. Update dependent calls and types.
5481 (htab_t separate_decls_in_region::decl_copies): Likewise.
5483 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5484 Change type to hash_table. Update dependent calls and types.
5486 * tree-sra.c (candidates):
5487 Change type to hash_table. Update dependent calls and types.
5489 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5491 (int_tree_map_hash): Likewise.
5493 * tree-ssa-dom.c (htab_t avail_exprs):
5494 Change type to hash_table. Update dependent calls and types.
5496 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5497 Change type to hash_table. Update dependent calls and types.
5499 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5500 Change type to hash_table. Update dependent calls and types.
5502 * tree-ssa-phiopt.c (seen_ssa_names):
5503 Change type to hash_table. Update dependent calls and types.
5505 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5506 Change type to hash_table. Update dependent calls and types.
5508 * tree-ssa-uncprop.c (equiv):
5509 Change type to hash_table. Update dependent calls and types.
5511 2013-04-25 Jakub Jelinek <jakub@redhat.com>
5513 PR rtl-optimization/57003
5514 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5515 call note_stores with kill_clobbered_value callback again after
5516 killing regs_invalidated_by_call.
5518 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5520 * config/aarch64/aarch64-simd.md
5521 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5522 (aarch64_simd_bsl<mode>): Likewise.
5523 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5525 2013-04-25 Marek Polacek <polacek@redhat.com>
5527 PR tree-optimization/57066
5528 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
5530 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5532 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5534 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5536 * config/aarch64/aarch64-builtins.c
5537 (aarch64_fold_builtin): New.
5538 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5539 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5540 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5541 * config/aarch64/arm_neon.h
5542 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5544 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5545 Tejas Belagod <tejas.belagod@arm.com>
5547 * config/aarch64/aarch64-builtins.c
5548 (aarch64_gimple_fold_builtin): New.
5549 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5550 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5551 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5553 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5555 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5557 * config/aarch64/aarch64.md
5558 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5560 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5562 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5563 (*ngcsi_uxtw): New pattern.
5565 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5566 Julian Brown <julian@codesourcery.com>
5568 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5569 (TB_DREG): Add T_V4HF.
5570 (v4hf_UP): New macro.
5571 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5572 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5573 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5575 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5576 (arm_vector_mode_supported_p): Handle V4HF.
5577 (arm_mangle_map): Handle V4HFmode.
5578 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5579 * config/arm/arm_neon_builtins.def: Add entries for
5580 vcvtv4hfv4sf, vcvtv4sfv4hf.
5581 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5582 (neon_vcvtv4hfv4sf): Likewise.
5583 * config/arm/neon-gen.ml: Handle half-precision floating point
5585 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5586 * config/arm/arm_neon.h: Regenerate.
5587 * config/arm/neon.ml (type elts): Add F16.
5588 (type vectype): Add T_float16x4, T_floatHF.
5589 (type vecmode): Add V4HF.
5590 (type features): Add Requires_FP_bit feature.
5591 (elt_width): Handle F16.
5592 (elt_class): Likewise.
5593 (elt_of_class_width): Likewise.
5594 (mode_of_elt): Refactor.
5595 (type_for_elt): Handle F16, fix error messages.
5596 (vectype_size): Handle T_float16x4.
5597 (vcvt_sh): New function.
5598 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5599 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5600 (string_of_mode): Handle V4HF.
5601 * doc/arm-neon-intrinsics.texi: Regenerate.
5603 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5605 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5606 format specifier in 'X' case.
5608 2013-04-25 Alan Modra <amodra@gmail.com>
5611 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5612 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5613 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5614 Repeat for many other rotate/shift and mask patterns using subregs.
5615 Name lshiftrt insns.
5616 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5617 on WORDS_BIG_ENDIAN.
5619 2013-04-25 Alan Modra <amodra@gmail.com>
5621 * config.gcc: Support little-endian powerpc-linux targets.
5622 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5623 (LINK_OS_LINUX_SPEC): Define.
5624 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5625 Preserve MASK_LITTLE_ENDIAN.
5626 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5627 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5628 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5629 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5630 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5631 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5632 Correct fp word order for little-endian. Don't shift toc entries
5633 smaller than a word for little-endian.
5634 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5635 (bswapdi2 splits): Correct low-part subreg for little-endian.
5636 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5637 low/high where such is correct only for be.
5638 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5639 little-endian for -mcall-aixdesc.
5641 2013-04-25 Alan Modra <amodra@gmail.com>
5643 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5644 replace_equiv_address_nv.
5646 2013-04-25 Alan Modra <amodra@gmail.com>
5648 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5650 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5653 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5654 * rtl.h (struct rtx_def): ...
5656 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5658 PR rtl-optimizations/57046
5659 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5660 for multi-reg splits.
5662 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5664 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5666 2013-04-24 Sterling Augustine <saugustine@google.com>
5668 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5669 (comp_dir_string, debug_str_dwo_section): New.
5670 (DEBUG_STR_DWO_SECTION): Rename to ...
5671 (DEBUG_DWO_STR_SECTION): ... this.
5672 (DEBUG_NORM_STR_SECTION): Delete.
5673 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5674 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5675 (find_AT_string): Move most logic to ...
5676 (find_AT_string_in_table): ... here. New.
5677 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5678 add_skeleton_AT_string. Delete logic.
5679 (output_skeleton_debug_sections): Remove call to
5680 add_top_level_skeleton_die_attrs.
5681 (add_comp_dir_attribute): Move logic to comp_dir_string.
5682 (dwarf2out_init): Initialize debug_str_dwo_section.
5683 (output_indirect_string): Call find_string_form.
5684 (output_indirect_strings): Rewrite.
5685 (prune_unused_types): Empty skeleton_debug_str_hash.
5686 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5687 (dwarf2out_finish): Call output_indirect_strings.
5689 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5691 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5693 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5695 * rtl.h (struct rtx_def): Add comment for field jump.
5696 (LRA_SUBREG_P): New macro.
5697 * recog.c (register_operand): Check LRA_SUBREG_P.
5698 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5700 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5701 (lra_final_code_change): Skip subreg change for operators.
5702 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5703 if there are no operand changes.
5704 * lra-constraints.c (curr_insn_set): New.
5705 (match_reload): Set LRA_SUBREG_P.
5706 (emit_spill_move): Ditto.
5707 (check_and_process_move): Use curr_insn_set. Process only single
5708 set insns. Don't initialize sec_mem_p and change_p.
5709 (simplify_operand_subreg): Use LRA_SUBREG_P.
5710 (reg_in_class_p): New function.
5711 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5712 of #ifdef. Add code to remove cycling.
5713 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5714 non-null disp. Reload inner instead of disp when base and index
5715 are null. Try to put lo_sum into register.
5716 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5717 (check_and_process_move): Move code for move cost check to
5718 simple_move_p. Remove equiv_substitution.
5719 (simple_move_p): New function.
5720 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5721 curr_insn_set. Call check_and_process_move only for single set
5722 insns. Use the new function. Move call of check_and_process_move
5723 after operand equiv substitution and address process.
5725 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5727 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5728 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5729 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5731 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5733 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5735 2013-04-24 Marek Polacek <polacek@redhat.com>
5737 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5738 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5739 (select_loops_exit_conditions): Likewise.
5740 (number_of_iterations_for_all_loops): Likewise.
5741 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5742 (scev_analysis): Likewise.
5744 2013-04-02 Catherine Moore <clm@codesourcery.com>
5745 Chao-ying Fu <fu@mips.com>
5747 * config/mips/micromips.md (jraddiusp): New pattern.
5748 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5749 instruction if possible.
5751 2013-04-24 Alan Modra <amodra@gmail.com>
5753 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5755 2013-04-24 Julian Brown <julian@codesourcery.com>
5756 Chung-Lin Tang <cltang@codesourcery.com>
5758 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
5759 dependency behavior in enumeration type DIE generation. Add TODO note
5760 to comments about future DW_FORM_sdata/udata re-work of related code.
5762 2013-04-23 Lawrence Crowl <crowl@google.com>
5764 * Makefile.in: Update as needed below.
5766 * hash-table.h (class hash_table):
5767 Correct many methods with parameter types compare_type to the correct
5768 value_type. (Correct code was unlikely to notice the change.)
5769 (hash_table::elements_with_deleted) New.
5770 (class hashtable::iterator): New.
5771 (hashtable::begin()): New.
5772 (hashtable::end()): New.
5773 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5775 * statistics.c (statistics_hashes):
5776 Change type to hash_table. Update dependent calls and types.
5778 * tree-into-ssa.c (var_infos):
5779 Change type to hash_table. Update dependent calls and types.
5781 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5782 Change type to hash_table. Update dependent calls and types.
5784 * tree-ssa-loop-im.c (struct mem_ref.refs):
5785 Change type to hash_table. Update dependent calls and types.
5787 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5788 Change type to hash_table. Update dependent calls and types.
5790 * tree-ssa-sccvn.c (vn_tables_s::nary):
5791 Change type to hash_table. Update dependent calls and types.
5792 (vn_tables_s::phis): Likewise.
5793 (vn_tables_s::references): Likewise.
5795 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5796 (vn_reference_eq): Update parameter and return types.
5798 * tree-ssa-structalias.c (pointer_equiv_class_table):
5799 Change type to hash_table. Update dependent calls and types.
5800 (location_equiv_class_table): Likewise.
5802 * tree-vect-data-refs.c: Consequential changes for making
5803 peeling a hash_table.
5805 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5806 (destroy_loop_vec_info): Dependent hash_table update.
5808 * tree-vectorizer.h (peeling_htab):
5809 Change type to hash_table. Update dependent calls and types.
5811 2013-04-23 Shiva Chen <shiva0217@gmail.com>
5813 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5814 to check the register content is equal or not.
5815 * lra-constraints.c (match_reload): Use lra_assign_reg_val
5816 to assign register content record.
5817 * lra-eliminations.c (update_reg_eliminate): Use
5818 lra_update_reg_val_offset to update register content offset.
5819 * lra-int.h (struct lra_reg): Add offset member.
5820 (lra_reg_val_equal_p): New static inline function.
5821 (lra_update_reg_val_offset): New static inline function.
5822 (lra_assign_reg_val): New static inline function.
5823 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5824 to assign register content record.
5825 (initialize_lra_reg_info_element): Initial offset to zero.
5827 2013-04-23 Catherine Moore <clm@codesourcery.com>
5829 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5830 operands. Record compression.
5832 2013-04-23 Xinliang David Li <davidxl@google.com>
5834 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5836 2013-04-23 Richard Biener <rguenther@suse.de>
5839 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5840 parameter, only add abnormal goto edges from the copied body
5841 if the call could perform abnormal gotos.
5842 (copy_cfg_body): Adjust.
5844 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
5846 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5848 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
5850 * coretypes.h (gimple_stmt_iterator): Add struct to make
5853 2013-04-23 Richard Biener <rguenther@suse.de>
5855 PR tree-optimization/57026
5856 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5857 from SSA names occuring in abnormal PHI nodes.
5859 2013-04-22 Andi Kleen <ak@linux.intel.com>
5861 * lto/lto.c (print_lto_report_1): Fix LTO report names.
5863 2013-04-22 Andi Kleen <ak@linux.intel.com>
5865 * lto/lto.c (print_lto_report_1): Declare early.
5866 (read_cgraph_and_symbols): Call print_lto_report_1 early.
5868 2013-04-22 Andi Kleen <ak@linux.intel.com>
5870 * common.opt (-flto-report-wpa): Add.
5871 * doc/invoke.texi (-flto-report-wpa): Add.
5872 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5875 2013-04-22 Xinliang David Li <davidxl@google.com>
5877 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5878 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5879 * Makefile.in: New dependency
5881 David Daney <ddaney.cavm@gmail.com>
5883 * configure.ac (gcc_cv_as_micromips_support): Use the
5884 --fatal-warnings option.
5885 * configure: Regenerate.
5887 2013-04-22 Marek Polacek <polacek@redhat.com>
5890 * tsan.c (instrument_expr): Don't instrument expression
5891 in case its size is zero.
5893 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
5897 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5899 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5901 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5903 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5904 (gimple_stmt_iterator): New typedef.
5905 * gimple.h (gimple_stmt_iterator): Rename to...
5906 (gimple_stmt_iterator_d): ... This.
5907 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5908 trees be valid for GIMPLE and GENERIC.
5909 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5910 * gimple-fold.c (gimple_fold_call): Call target hook
5911 gimple_fold_builtin.
5912 * hooks.c (hook_bool_gsiptr_false): New.
5913 * hooks.h (hook_bool_gsiptr_false): New.
5914 * target.def (fold_stmt): New.
5915 * doc/tm.texi: Regenerate.
5917 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5920 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5921 a set sp if no stack realignment.
5923 2013-04-22 Nick Clifton <nickc@redhat.com>
5925 * config.gcc (tilegx-linux): Extend extra_objs rather than
5927 (tilepro-linux): Likewise.
5929 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5931 * config/aarch64/aarch64-builtins.c
5933 (CF0, CF1, CF2, CF3, CF4, CF10): New.
5934 (VAR<1-12>): Add MAP parameter.
5935 (BUILTIN_*): Likewise.
5936 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5937 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5938 (aarch64_ushl_n<mode>): Likewise.
5939 (aarch64_sshr_n<mode>): Likewise.
5940 (aarch64_ushr_n<mode>): Likewise.
5941 (aarch64_<maxmin><mode>): Likewise.
5942 (aarch64_sqrt<mode>): Likewise.
5943 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5944 (vshr<q>_n_*): Likewise.
5946 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5948 * config/aarch64/aarch64-builtins.c
5949 (aarch64_simd_builtin_type_mode): Handle SF types.
5951 (BUILTIN_GPF): Define.
5952 (aarch64_init_simd_builtins): Handle SF types.
5953 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5956 * config/aarch64/aarch64-simd.md
5957 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5958 (aarch64_frecpe<mode>): New.
5959 (aarch64_frecps<mode>): Likewise.
5960 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5961 (v8type): Add frecp<esx>.
5962 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5963 (aarch64_frecps<mode>): Likewise.
5964 * config/aarch64/iterators.md (FRECP): New.
5965 (frecp_suffix): Likewise.
5966 * config/aarch64/arm_neon.h
5967 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5969 2013-04-22 Christian Bruel <christian.bruel@st.com>
5972 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5973 (REG_CLASS_NAMES): Idem.
5974 (REG_CLASS_CONTENTS): Idem.
5975 (REGCLASS_HAS_FP_REG): Idem.
5976 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5977 (sh_conditional_register_usage): Idem.
5979 2013-04-21 Jeff Law <law@redhat.com>
5981 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5982 (ssa_forward_propagate_and_combine): Use it.
5984 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5986 * lra.c: Update the flow chart diagram.
5988 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5990 PR rtl-optimization/56847
5991 * lra-constraints.c (process_alt_operands): Discourage alternative
5992 with non-matche doffsettable memory constraint fro memory with
5995 2013-04-19 Richard Biener <rguenther@suse.de>
5997 PR tree-optimization/56982
5998 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6000 * gimplify.c (gimplify_call_expr): Notice special calls.
6001 (gimplify_modify_expr): Likewise.
6002 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6003 abnormal control flow receivers.
6004 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6005 in the same way as cfun->has_nonlocal_labels.
6006 (gimple_purge_dead_abnormal_call_edges): Likewise.
6007 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6008 receivers start a basic-block.
6010 2013-04-19 Richard Biener <rguenther@suse.de>
6012 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6014 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6015 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6016 (SLP_TREE_LOAD_PERMUTATION): Add.
6017 (vect_transform_slp_perm_load): Adjust prototype.
6018 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6019 (vect_free_slp_instance): Likewise.
6020 (vect_create_new_slp_node): Likewise.
6021 (vect_supported_slp_permutation_p): Remove.
6022 (vect_slp_rearrange_stmts): Adjust.
6023 (vect_supported_load_permutation_p): Likewise. Inline
6024 vect_supported_slp_permutation_p here.
6025 (vect_analyze_slp_instance): Compute load permutations per
6026 slp node instead of per instance.
6027 (vect_get_slp_defs): Adjust.
6028 (vect_transform_slp_perm_load): Likewise.
6029 (vect_schedule_slp_instance): Remove redundant code.
6030 (vect_schedule_slp): Remove hack for PR56270, add it ...
6031 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6032 CSE loads for SLP. Adjust.
6034 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6036 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6037 spelling in two comments.
6039 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6042 * config/arm/arm.c (load_multiple_sequence): Require SP
6043 as base register for loads if SP is in the register list.
6045 2013-04-19 Martin Jambor <mjambor@suse.cz>
6047 PR tree-optimization/56718
6048 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6049 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6050 and made public. Adjusted all callers.
6051 (ipa_intraprocedural_devirtualization): New function.
6052 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6053 (ipa_intraprocedural_devirtualization): Likewise.
6054 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6056 2013-04-19 Richard Biener <rguenther@suse.de>
6058 PR tree-optimization/57000
6059 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6061 2013-04-19 Terry Guo <terry.guo@arm.com>
6063 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6065 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6066 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6067 (cortex_m4_fmacs): Use new reservations.
6068 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6070 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6072 PR rtl-optimization/56999
6073 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6075 (lra_coalesce): Remove split_origin_bitmap and related code.
6076 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6077 ranges if necessary.
6079 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
6081 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6083 (ix86_expand_call): Remove clobbered_registers array and use
6084 x86_64_ms_sysv_extra_clobbered_registers instead.
6085 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6087 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6089 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6090 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6091 (*call_value_rex64_ms_sysv): Ditto.
6093 2013-04-18 Cary Coutant <ccoutant@google.com>
6095 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6096 parent instead of die_mark.
6098 2013-04-18 Diego Novillo <dnovillo@google.com>
6100 * gimple.c (create_gimple_tmp): New.
6101 (get_expr_type): New.
6102 (build_assign): New.
6103 (build_type_cast): New.
6104 * gimple.h (enum ssa_mode): Define.
6105 (gimple_seq_set_location): New.
6106 * asan.c (build_check_stmt): Change some gimple_build_* calls
6107 to use build_assign and build_type_cast.
6109 2013-04-18 Richard Biener <rguenther@suse.de>
6111 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6112 handle negative step. Remove redundant checks.
6113 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6114 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6115 for negative step and grouped loads fail to vectorize.
6117 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6119 * emit-rtl.c (reset_insn_used_flags): New function.
6120 (reset_all_used_flags): Use it.
6121 (verify_insn_sharing): New function.
6122 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6124 2013-04-18 Jakub Jelinek <jakub@redhat.com>
6126 PR tree-optimization/56984
6127 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6128 and (x >> M) >= N don't register any assertion if N << M is the
6131 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6133 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6134 do not delete_insn insns that have not yet been emitted, only
6135 unlink them with remove_insn.
6136 * df-scan.c (df_insn_delete): Revert r197492.
6138 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6140 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6141 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6143 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
6145 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6146 define_insn_and_split.
6147 (and_scc,ior_scc,negscc): Likewise.
6148 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6150 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
6152 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6153 can benefit from using a sequence of LDRD instructions in epilogue
6154 instead of a single LDM instruction.
6156 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6159 * doc/extend.texi: Fix typo.
6161 2013-04-17 Richard Biener <rguenther@suse.de>
6163 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6164 (vect_build_slp_tree): ... here.
6165 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6166 match. Remove special-casing of mismatched complex loads.
6167 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6168 re-try the match with swapped commutative operands.
6169 (vect_supported_load_permutation_p): Remove special-casing of
6170 mismatched complex loads.
6171 (vect_analyze_slp_instance): Adjust.
6173 2013-04-17 Richard Biener <rguenther@suse.de>
6175 PR rtl-optimization/56921
6176 * cfgloop.h (struct loop): Add simple_loop_desc member.
6177 (struct niter_desc): Mark with GTY(()).
6178 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6179 * loop-iv.c (get_simple_loop_desc): Likewise.
6180 (free_simple_loop_desc): Likewise.
6183 2013-04-16 Richard Biener <rguenther@suse.de>
6185 PR rtl-optimization/56921
6186 * loop-init.c (pass_rtl_move_loop_invariants): Add
6187 TODO_do_not_ggc_collect to todo_flags_finish.
6188 (pass_rtl_unswitch): Same.
6189 (pass_rtl_unroll_and_peel_loops): Same.
6190 (pass_rtl_doloop): Same.
6192 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6194 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6195 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6196 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6198 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6199 * tree-streamer.c (record_common_node): Adjust reference in comment.
6201 2013-04-17 Terry Guo <terry.guo@arm.com>
6203 * config/arm/cortex-m4.md: Add a new bypass.
6205 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6207 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6209 (*subs_<optab><mode>_multp2): New pattern.
6210 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6211 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6213 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6215 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6216 (*subs_mul_imm_<mode>): New pattern.
6218 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
6221 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6222 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6223 (vsx_movti_32bit): Change j->wa to O->wa.
6225 2013-04-16 Richard Biener <rguenther@suse.de>
6227 PR rtl-optimization/56921
6228 * loop-init.c (pass_rtl_move_loop_invariants): Add
6229 TODO_do_not_ggc_collect to todo_flags_finish.
6230 (pass_rtl_unswitch): Same.
6231 (pass_rtl_unroll_and_peel_loops): Same.
6232 (pass_rtl_doloop): Same.
6234 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
6236 * config/arm/arm.c (emit_multi_reg_push): New declaration
6237 for an existing function.
6238 (arm_emit_strd_push): New function.
6239 (arm_expand_prologue): Used here.
6240 (arm_emit_ldrd_pop): New function.
6241 (arm_expand_epilogue): Used here.
6242 (arm_get_frame_offsets): Update condition.
6243 (arm_emit_multi_reg_pop): Add a special case for load of a single
6244 register with writeback.
6246 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
6248 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6251 2013-04-16 Richard Biener <rguenther@suse.de>
6253 PR tree-optimization/56756
6254 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6255 (first_mem_ref_loc): New.
6256 (execute_sm): Place the load temporarily before a previous
6257 access instead of in the latch edge to ensure its SSA dependencies
6258 are defined at points dominating the load.
6260 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6262 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6263 correct fix by moving header and footer insn to the footer of
6264 the merged basic block. Clear BB_END of the merged-away block.
6267 * emit-rtl.c (make_note_raw): New function.
6268 (link_insn_into_chain): New static inline function.
6270 (add_insn_before, add_insn_after): Factor insn chain linking code...
6271 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6272 using link_insn_into_chain.
6273 (note_outside_basic_block_p): New helper function for emit_note_after
6274 and emit_note_before.
6275 (emit_note_after): Use nobb variant of add_insn_after if the note
6276 should not be contained in a basic block.
6277 (emit_note_before): Use nobb variant of add_insn_before if the note
6278 should not be contained in a basic block.
6279 (emit_note_copy): Use make_note_raw.
6280 (emit_note): Likewise.
6281 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6282 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6283 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6284 the moved barrier the tail of the basic block it follows.
6285 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6287 2013-04-15 Jakub Jelinek <jakub@redhat.com>
6289 PR tree-optimization/56962
6290 * gimple-ssa-strength-reduction.c (record_increment): Only set
6291 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6292 either rhs1 or rhs2 is equal to c->base_expr.
6294 2013-04-15 Richard Biener <rguenther@suse.de>
6296 PR tree-optimization/56933
6297 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6299 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6300 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6301 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6302 dependence check ...
6303 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6305 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6306 GROUP_READ_WRITE_DEPENDENCE.
6308 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6310 * emit-rtl.c (reset_all_used_flags): New function.
6311 (verify_rtl_sharing): Call reset_all_used_flags before and after
6312 performing the checks.
6314 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6316 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6317 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6318 * config/arm/constraints.md (De): New constraint.
6319 * config/arm/neon.md (anddi3_neon): Delete.
6320 (neon_vand<mode>): Expand to standard anddi3 pattern.
6321 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6322 Move earlier in the file.
6323 (neon_inv_logic_op2): Likewise.
6324 (arm_anddi_operand_neon): New predicate.
6326 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6328 * configure.ac (gcc_cv_ld_as_needed): Set
6329 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6330 Use -z ignore, -z record on *-*-solaris2*.
6331 (HAVE_LD_AS_NEEDED): Update comment.
6332 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6333 * configure: Regenerate.
6334 * config.in: Regenerate.
6335 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6336 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6337 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6338 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6339 equivalents. Fix markup.
6340 * doc/tm.texi: Regenerate.
6342 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6344 * config/i386/i386.opt: New option mstack-protector-guard=.
6345 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6346 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6347 TARGET_SSP_TLS_GUARD.
6348 * config/i386/i386.c (ix86_option_override_internal): Set
6349 ix86_stack_protector_guard.
6350 * config/i386/i386.md (stack_protect_set): Enable for
6351 TARGET_SSP_TLS_GUARD only.
6352 (stack_protect_set_<mode>): Ditto.
6353 (stack_protect_test): Ditto.
6354 (stack_protect_test_<mode>): Ditto.
6355 * doc/invoke.texi (i386 Option): Document.
6357 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6360 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6361 (S_MODES): Set H_MODE bit.
6362 (SF_MODES): Set only S_MODE and SF_MODE bits.
6363 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6364 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6365 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6366 <MODE_FLOAT>: Likewise.
6368 2013-04-15 Joey Ye <joey.ye@arm.com>
6370 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6372 2013-04-15 Joey Ye <joey.ye@arm.com>
6374 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6376 (thumb_far_jump_used_p): Count instruction size and set
6379 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6381 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6382 * resource.c (mark_target_live_regs): Reformat conditional block.
6384 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6386 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6387 notes, they are emitted only just before final.
6388 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6390 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6392 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6393 * cfgrtl.c (delete_insn): Call it here instead.
6394 * lra-spills.c (lra_final_code_change): Use delete_insn.
6395 * haifa-sched.c (sched_remove_insn): Likewise.
6396 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6397 returning to the nop pool.
6398 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6399 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6401 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6403 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6404 * doc/tm.texi: Regenerated.
6406 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
6408 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6411 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6413 * df-core.c (df_find_def): Compare register numbers.
6414 (df_find_use): Likewise.
6416 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6419 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6420 lra_in_progress for return.
6422 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6424 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6425 define_insn into define_insn_and_split and emit movsicc patterns.
6427 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6429 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6431 2013-04-12 Richard Biener <rguenther@suse.de>
6433 * tree-pass.h (TODO_do_not_ggc_collect): New.
6434 * passes.c (execute_one_ipa_transform_pass): Honor
6435 TODO_do_not_ggc_collect.
6436 (execute_one_pass): Likewise.
6439 2013-04-10 Richard Biener <rguenther@suse.de>
6441 * passes.c (init_optimization_passes): Remove reload pass.
6442 * ira.c (do_reload): Merge into ...
6444 (rest_of_handle_reload): Remove.
6445 (pass_reload): Likewise.
6446 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6447 of reload for vzeroupper pass placement.
6449 2013-04-12 Jakub Jelinek <jakub@redhat.com>
6451 PR tree-optimization/56918
6452 PR tree-optimization/56920
6453 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6454 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6455 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6456 use wide_mul_with_sign method.
6458 2013-04-12 Richard Biener <rguenther@suse.de>
6460 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6461 not be considered a gimple constant.
6463 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
6465 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6466 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6469 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6470 Jakub Jelinek <jakub@redhat.com>
6472 * opts.c: Include diagnostic-color.h.
6473 (common_handle_option): Handle OPT_fdiagnostics_color_.
6474 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6475 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6476 (diagnostic-color.o): New.
6477 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6478 (diagnostic_color_rule): New enum.
6479 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6480 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6481 the location string.
6482 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6483 either NULL, or color kind.
6484 * diagnostic-color.c: New file.
6485 * diagnostic-color.h: New file.
6486 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6488 * doc/invoke.texi (-fdiagnostics-color): Document.
6489 * pretty-print.h (pp_show_color): Define.
6490 (struct pretty_print_info): Add show_color field.
6491 * diagnostic.c: Include diagnostic-color.h.
6492 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6493 macros. Colorize error:, warning: etc. strings and also the location
6495 (diagnostic_show_locus): Colorize the caret line.
6496 * pretty-print.c: Include diagnostic-color.h.
6497 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6498 inside of %< %> quotes or quoted through q format modifier.
6500 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6502 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
6504 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6506 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6508 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6511 2013-04-11 Marek Polacek <polacek@redhat.com>
6513 PR tree-optimization/48184
6514 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
6516 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6518 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6519 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6520 (skip_simple_arithmetic): Tidy up.
6521 * tree.h (skip_simple_constant_arithmetic): Declare.
6523 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6525 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6527 2013-04-11 Richard Biener <rguenther@suse.de>
6529 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6530 generate vector constants.
6532 2013-04-11 Richard Biener <rguenther@suse.de>
6534 PR tree-optimization/56878
6535 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6536 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6538 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6539 Prefer to align the DR with the most invariant base address.
6541 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6543 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6546 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6548 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6549 floating-point vector comparisons against 0.
6551 2013-04-11 Jakub Jelinek <jakub@redhat.com>
6553 PR tree-optimization/56899
6554 * fold-const.c (extract_muldiv_1): Apply distributive law
6555 only if TYPE_OVERFLOW_WRAPS (ctype).
6557 2013-04-11 Bin Cheng <bin.cheng@arm.com>
6560 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6561 loading has side effect.
6563 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6565 * config/sparc/sparc.c: Include tree-pass.h.
6566 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6567 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6568 head of file. Change return type. Split off gate function.
6569 (sparc_gate_work_around_errata): New function.
6570 (pass_work_around_errata): New pass definition.
6571 (insert_pass_work_around_errata) New pass insert definition to
6572 insert pass_work_around_errata just after delayed-branch scheduling.
6573 (sparc_option_override): Insert the pass.
6574 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6576 2013-04-10 David S. Miller <davem@davemloft.net>
6578 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6579 or -mcpu=hypersparc.
6581 * target.def (cstore_mode): New hook.
6582 * target.h: Include insn-codes.h
6583 * targhooks.c: Likewise.
6584 (default_cstore_mode): New function.
6585 * targhooks.h: Declare it.
6586 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6587 * doc/tm.texi: Rebuild.
6588 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6589 target hook, rather than inspecting the insn_data.
6590 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6591 (TARGET_CSTORE_MODE): Redefine.
6592 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6594 * config/sparc/predicates.md (cstore_result_operand): New special
6596 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6597 Use it for operand 0.
6598 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6599 (*snesi_special): Likewise.
6600 (*snesi_zero): Likewise.
6601 (*seqsi_zero): Likewise.
6602 (*sltu_insn): Likewise.
6603 (*sgeu_insn): Likewise.
6604 (*seqdi_special): Make operand 0 and comparison operation be of
6606 (*snedi_special): Likewise.
6607 (*snedi_special_vis3): Likewise.
6608 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6609 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6610 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6611 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6612 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6613 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6614 (*sltu_extend_sp64): Likewise.
6615 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6616 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6617 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6618 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6619 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6621 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6623 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6624 (aarch64_start_file): Use the new function.
6626 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6627 Jason Merrill <jason@redhat.com>
6629 * common.opt: Add -gdwarf.
6630 * opts.c (common_handle_option): Handle it.
6631 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6633 2013-04-10 Richard Biener <rguenther@suse.de>
6635 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6636 (execute_one_ipa_transform_pass): But unconditionally here.
6637 (execute_one_pass): And here.
6638 (init_optimization_passes): Remove reload pass.
6639 * tree-pass.h (TODO_ggc_collect): Remove.
6640 (pass_reload): Likewise.
6641 * ira.c (do_reload): Merge into ...
6643 (rest_of_handle_reload): Remove.
6644 (pass_reload): Likewise.
6645 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6646 of reload for vzeroupper pass placement.
6647 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6648 and todo_flags_finish of all passes.
6650 2013-04-10 Richard Biener <rguenther@suse.de>
6652 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6653 first_const_oprnd field, rename first_def_type to first_op_type.
6654 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6655 (vect_get_and_check_slp_defs): Always use the type of the
6656 operand. Allow mixed vect_external_def, vect_constant_def types.
6657 (vect_get_constant_vectors): Handle mixed vect_external_def,
6658 vect_constant_def types.
6660 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6662 PR tree-optimization/55524
6663 * tree-ssa-math-opts.c
6664 (convert_mult_to_fma): Don't use an fms construct
6665 when we don't have an fms operation, but fnma, and it looks
6666 likely that we'll be able to use the latter.
6668 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6670 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6672 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6673 inline fail caused by overwritable functions.
6675 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6677 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6678 unnecessary bits in the constant power of two case.
6680 2013-04-10 Richard Biener <rguenther@suse.de>
6682 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6683 broken code swapping operands.
6684 (vect_build_slp_tree): Do not compute load permutations here.
6685 (vect_analyze_slp_instance): Compute load permutations here,
6686 after building the SLP tree.
6688 2013-04-09 Christian Bruel <christian.bruel@st.com>
6690 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6691 of next/prev_real_insn.
6693 2013-04-09 Jan Hubicka <jh@suse.cz>
6695 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6696 Drop aliased parameter.
6697 (function_and_variable_visibility): Do not handle alias pairs.
6698 * cgraph.c (varpool_externally_visible_p): Update prototype.
6699 * varpool.c (varpool_add_new_variable): Update.
6701 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6703 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6705 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6707 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6709 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6711 2013-04-09 Marek Polacek <polacek@redhat.com>
6713 PR tree-optimization/48762
6714 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
6716 2013-04-09 Richard Biener <rguenther@suse.de>
6718 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6720 (vect_build_slp_tree): Likewise.
6721 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6722 calculating the cost of a SLP instance.
6723 (vect_analyze_slp_instance): Use it from here, after building
6726 2013-04-09 Jakub Jelinek <jakub@redhat.com>
6729 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6730 expand_omp_for_static_chunk): Use simple_p = true in
6731 force_gimple_operand_gsi calls when assigning to addressable decls.
6733 2013-04-09 Jeff Law <law@redhat.com>
6735 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6736 when the boolean was created by converting a wider object which
6737 had a boolean range.
6739 2013-04-09 Richard Biener <rguenther@suse.de>
6741 * tree-vectorizer.h (slp_void_p): Remove.
6742 (slp_tree): Typedef before _slp_tree declaration.
6743 (struct _slp_tree): Use a vector of slp_tree as children.
6744 (vect_get_place_in_interleaving_chain): Remove.
6745 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6747 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6749 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6750 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6751 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6752 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6753 Use slp_node instead of slp_void_p and adjust.
6755 2013-04-09 Richard Biener <rguenther@suse.de>
6757 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6758 work that is not necessary.
6760 2013-04-09 Jakub Jelinek <jakub@redhat.com>
6762 PR tree-optimization/56854
6763 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6764 forward into clobber stmts if it would change MEM_REF lhs into
6767 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6769 * tree.c (type_hash_lookup, type_hash_add): Make static.
6770 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6772 2013-04-09 Richard Biener <rguenther@suse.de>
6774 * tree.h (unsave_expr_now): Remove.
6775 * tree-inline.c (mark_local_for_remap_r): Remove.
6776 (unsave_expr_1): Likewise.
6777 (unsave_r): Likewise.
6778 (unsave_expr_now): Likewise.
6779 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6780 (propagate_tree_value): Likewise.
6782 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6784 * doc/rtl.texi (sequence): Rewrite documentation to match the
6785 current use of SEQUENCE rtl objects.
6786 * rtl.def (SEQUENCE): Likewise.
6788 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6789 Update documentation.
6790 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6791 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6793 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6795 2013-04-08 Teresa Johnson <tejohnson@google.com>
6797 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6798 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
6800 (estimate_edge_size_and_time): Add comment to suggest using rounding
6802 (estimate_node_size_and_time): Ditto.
6803 (remap_edge_change_prob): Use helper rounding divide methods.
6804 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6805 (gimple_mod_pow2_value_transform): Ditto.
6806 (gimple_mod_subtract_transform): Ditto.
6807 (gimple_ic_transform): Ditto.
6808 (gimple_stringops_transform): Ditto.
6809 * stmt.c (conditional_probability): Ditto.
6810 (emit_case_dispatch_table): Ditto.
6811 * lto-cgraph.c (merge_profile_summaries): Ditto.
6812 * tree-optimize.c (execute_fixup_cfg): Ditto.
6813 * cfgcleanup.c (try_forward_edges): Ditto.
6814 * cfgloopmanip.c (scale_loop_profile): Ditto.
6816 (duplicate_loop_to_header_edge): Ditto.
6817 (lv_adjust_loop_entry_edge): Ditto.
6818 * tree-vect-loop.c (vect_transform_loop): Ditto.
6819 * profile.c (compute_branch_probabilities): Ditto.
6820 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6821 * lto-streamer-in.c (input_cfg): Ditto.
6822 * gimple-streamer-in.c (input_bb): Ditto.
6823 * ipa-cp.c (update_profiling_info): Ditto.
6824 (update_specialized_profile): Ditto.
6825 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6826 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
6828 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6829 (compute_trg_info): Ditto.
6830 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6831 (purge_dead_edges): Ditto.
6832 * loop-unswitch.c (unswitch_loop): Ditto.
6833 * cgraphclones.c (cgraph_clone_edge): Ditto.
6834 (cgraph_clone_node): Ditto.
6835 * tree-inline.c (copy_bb): Ditto.
6836 (copy_edges_for_bb): Ditto.
6837 (initialize_cfun): Ditto.
6838 (copy_cfg_body): Ditto.
6839 (expand_call_inline): Ditto.
6841 2013-04-08 Kai Tietz <ktietz@redhat.com>
6843 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6844 TARGET_CYGWIN64 by TARGET_64BIT.
6846 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6848 * config/epiphany/epiphany.md (GPR_1): New constant.
6849 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6850 * config/epiphany/epiphany.c (gen_compare_reg):
6851 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6852 is already in place.
6853 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6854 Don't require being called during rtl expansion; If y operlaps r0,
6856 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6857 (epiphany_expand_epilogue): Likewise.
6859 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6860 Don't use CC_FPmode for ORDERED / UNORDERED.
6861 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
6863 * config/epiphany/constraints.md (CnL): New constraint.
6864 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6865 * config/epiphany/predicates.md (add_operand): Allow 1024.
6867 * config/epiphany/epiphany.md (logical_op): New code iterator.
6868 (op_mnc): New code attribute.
6869 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6870 (mov_f+1, mov_f+2): New peephole2 patterns.
6872 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6873 (cstoresi4): Also allow re-use of zero result when doing a NE
6874 comparison to a non-zero operand.
6875 Use (clobber (scratch)) for first insn if the gpr output is not needed.
6877 * config/epiphany/epiphany.md (<insn_opname>v2si3):
6878 Use gen_addsi3_i / gen_subsi3_i.
6880 2013-04-08 Jakub Jelinek <jakub@redhat.com>
6884 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6885 contain anything but clobbers, at most one __builtin_stack_restore,
6886 optionally debug stmts and final resx, and if it has at least one
6887 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
6888 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6889 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6890 which isn't defaut definition, remove them.
6891 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6892 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6893 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6894 with MEM_REF LHS with SSA_NAME address.
6896 2013-04-08 Jeff Law <law@redhat.com>
6898 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
6900 2013-04-08 Richard Biener <rguenther@suse.de>
6902 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6904 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6905 determined vector type.
6906 (vect_analyze_data_refs): Likewise.
6907 (vect_get_new_vect_var): Adjust.
6908 (vect_create_destination_var): Preserve SSA name versions.
6909 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6910 not dump anything here.
6912 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6914 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6915 Add member lr_slot_known.
6916 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6918 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6919 Remove code that sets lr_slot_offset according to what a previous
6920 version of epiphany_emit_save_restore used to do.
6921 (epiphany_emit_save_restore): When doing an lr save or restore,
6922 set/verify lr_slot_known and lr_slot_offset.
6924 2013-04-08 Xinyu Qi <xyqi@marvell.com>
6927 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
6930 2013-04-08 Richard Biener <rguenther@suse.de>
6932 * alias.c (find_base_term): Fix thinko in previous change.
6934 2013-04-08 Jakub Jelinek <jakub@redhat.com>
6936 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6937 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6938 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
6939 if possible to compute val.
6940 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6941 For QImode integers don't require anything about precision. Use
6942 const_with_all_bytes_same to find out if the constant doesn't have
6943 repeated bytes in it.
6945 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6947 * config/s390/s390.c (s390_expand_insv): Only accept insertions
6950 2013-04-08 Marek Polacek <polacek@redhat.com>
6952 PR rtl-optimization/48182
6953 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6956 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6959 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6960 nuses, make sure we have a label.
6962 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6965 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6966 (rs6000_emit_swdiv_low_precision): Remove.
6967 (rs6000_emit_swdiv): Rewrite to handle between one and four
6968 iterations of Newton-Raphson generally; modify required number of
6969 iterations for some cases.
6970 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6972 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
6974 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6975 set-but-unused variable.
6977 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6978 basic blocks of released function bodies garbage-collectable.
6980 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6981 (struct rtl_opt_pass): Add TODO_df_finish.
6983 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6985 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6987 * config/arm/constraints.md (q): New constraint.
6988 * config/arm/ldrdstrd.md: New file.
6989 * config/arm/arm.md (ldrdstrd.md) New include.
6990 (arm_movdi): Use "q" instead of "r" constraint
6991 for double-word memory access.
6992 (movdf_soft_insn): Likewise.
6993 * config/arm/vfp.md (movdi_vfp): Likewise.
6994 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
6995 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
6996 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6997 (mem_ok_for_ldrd_strd): Likewise.
6998 (output_move_double): Update assertion.
7000 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7002 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7004 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7006 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7007 define_insn_and_split.
7008 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7010 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7012 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7013 define_insn_and_split.
7014 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7015 (shiftsi3_compare): New pattern.
7017 * config/arm/unspecs.md (UNSPEC_RRX): New.
7019 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7021 * config/arm/arm.md (negdi_extendsidi): New pattern.
7022 (negdi_zero_extendsidi): Likewise.
7024 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7026 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7027 define_insn_and_split.
7028 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7029 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7031 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7033 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7034 define_insn_and_split.
7035 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7036 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7038 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7040 * config/arm/arm.md (subsi3_carryin): New pattern.
7041 (subsi3_carryin_const): Likewise.
7042 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7043 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7045 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7047 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7049 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7051 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7052 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7054 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7056 * config/arm/arm.c (arm_expand_builtin): Change fcode
7057 type to unsigned int.
7059 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7061 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7063 2013-04-04 Ian Lance Taylor <iant@google.com>
7065 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7068 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7071 * df-scan.c (df_insn_delete): Disable failing assert.
7073 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7075 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7076 New function prototype.
7077 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7078 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7079 (arm_builtin_vectorized_function): New function.
7081 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7083 * config/arm/arm_neon_builtins.def: New file.
7084 * config/arm/arm.c (neon_builtin_data): Move contents to
7085 arm_neon_builtins.def.
7086 (enum arm_builtins): Include neon builtin definitions.
7087 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7088 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7090 2013-04-04 Marek Polacek <polacek@redhat.com>
7092 PR tree-optimization/48186
7093 * predict.c (maybe_hot_frequency_p): Return false if
7094 HOT_BB_FREQUENCY_FRACTION is 0.
7095 (cgraph_maybe_hot_edge_p): Likewise.
7097 2013-04-04 Richard Biener <rguenther@suse.de>
7099 PR tree-optimization/56826
7100 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7103 2013-04-04 Richard Biener <rguenther@suse.de>
7105 PR tree-optimization/56213
7106 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
7107 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
7109 2013-04-04 Richard Biener <rguenther@suse.de>
7111 PR tree-optimization/56837
7112 * tree-loop-distribution.c (classify_partition): For non-zero
7113 values require that the value has the same precision as its
7114 mode to be useful as memset value.
7116 2013-04-03 Nick Clifton <nickc@redhat.com>
7118 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
7119 (fmssf4): Use fmsf.s on E3V5 architectures.
7120 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7121 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7123 2013-04-03 Jeff Law <law@redhat.com>
7125 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7126 (lra-eliminations.o): Likewise.
7128 2013-04-03 Teresa Johnson <tejohnson@google.com>
7130 * gcov-io.c (compute_working_sets): Moved most of body of old
7131 compute_working_sets here from profile.c.
7132 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
7133 (gcov_working_set_t): Moved typedef here from basic-block.h
7134 (compute_working_set): Declare.
7135 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7136 (get_working_sets): Renamed from compute_working_set,
7137 replace most of body with call to new compute_working_sets.
7138 (get_exec_counts): Replace call to compute_working_sets
7139 to get_working_sets.
7140 * profile.h (get_working_sets): Renamed from compute_working_set.
7141 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
7142 to get_working_sets.
7143 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7144 * gcov-dump.c (dump_working_sets): New function.
7146 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7148 * hwint.c (sext_hwi, zext_hwi): New functions.
7149 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7150 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7151 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7152 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7153 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7154 (sext_hwi, zext_hwi): New functions.
7156 2013-04-03 Jeff Law <law@redhat.com>
7158 PR tree-optimization/56799
7159 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7160 back test for widening conversion erroneously dropped in prior change.
7162 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7165 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7166 instead of next_real_insn.
7168 2013-04-03 Marek Polacek <polacek@redhat.com>
7171 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
7173 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7176 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7178 (thumb1_output_casesi): Likewise.
7179 (thumb2_output_casesi): Likewise.
7181 2013-04-03 Richard Biener <rguenther@suse.de>
7183 PR tree-optimization/56817
7184 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7186 (tree_unroll_loops_completely_1): ... new function to manually
7187 walk the loop tree, properly defering outer loops of unrolled
7188 loops to later iterations.
7190 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
7192 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7193 (vectorizable_load): Likewise.
7194 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7195 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7197 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
7199 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7202 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7204 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7206 2013-04-03 Bin Cheng <bin.cheng@arm.com>
7208 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7210 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
7212 PR tree-optimization/56790
7213 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7216 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
7218 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7220 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7221 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7224 2013-04-03 Jakub Jelinek <jakub@redhat.com>
7227 * tree.h (force_folding_builtin_constant_p): New decl.
7228 * builtins.c (force_folding_builtin_constant_p): New variable.
7229 (fold_builtin_constant_p): Fold immediately also if
7230 force_folding_builtin_constant_p.
7232 2013-04-03 Richard Biener <rguenther@suse.de>
7234 PR tree-optimization/56812
7235 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7236 DRs of the same interleaving chain are independent.
7238 2013-04-02 Jason Merrill <jason@redhat.com>
7240 * gdbinit.in (pbb): Use debug fn.
7242 2013-04-02 Lawrence Crowl <crowl@google.com>
7244 * sese.h (struct ivtype_map_elt_s): Remove unused.
7245 (extern debug_ivtype_map): Remove unused.
7246 (extern eq_ivtype_map_elts): Remove unused.
7247 * sese.c (debug_ivtype_map): Removed unused.
7248 (debug_ivtype_map_1): Removed unused.
7249 (debug_ivtype_elt): Remove unused.
7250 (eq_ivtype_map_elts): Remove unused.
7253 2013-04-02 Kai Tietz <ktietz@redhat.com>
7256 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7257 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
7258 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7260 (legitimize_pe_coff_symbol): Likewise.
7261 (is_imported_p): New helper-function.
7262 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7263 for Windows x64 targets.
7264 (ix86_expand_prologue): Optimize for pe-coff targets.
7265 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7266 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7267 medium/large code-model.
7268 (legitimize_pic_address): Likewise.
7269 (legitimize_tls_address): Likewise.
7270 (ix86_expand_call): Likewise.
7271 (x86_output_mi_thunk): Likewise.
7272 (get_dllimport_decl): Add new beimport argument.
7273 (construct_plt_address): Don't assert for x64 pe-coff targets.
7274 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7276 (SYMBOL_FLAG_STUBVAR): New macro.
7277 (SYMBOL_REF_STUBVAR_P): Likewise.
7278 * config/i386/winnt.c (stub_list): New structure.
7279 (stub_head): New local variable.
7280 (i386_pe_record_stub): New function.
7281 (i386_pe_file_end): Emit refptr-stubs.
7283 2013-04-02 Jakub Jelinek <jakub@redhat.com>
7285 PR rtl-optimization/56745
7286 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7287 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7290 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7291 and both of them are MEM_REFs, just compare first argument for
7292 equality and attempt to deal even with differing offsets.
7295 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7296 of gimple_clobber_p to be MEM_REF.
7297 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7298 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7299 after gimplification.
7300 * asan.c (get_mem_ref_of_assignment): Don't instrument
7301 gimple_clobber_p stmts.
7302 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7303 gimple_clobber_p stmt if they have MEM_REF lhs and
7304 are dead because of another gimple_clobber_p stmt.
7305 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7306 gimple_clobber_p stmts like debug stmts.
7307 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7308 that refer to unused VAR_DECLs or uninitialized values.
7309 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7310 gimple_clobber_p stmts if they refer to removed parameters.
7311 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7314 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
7316 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7317 using SWI48 mode attribute.
7319 2013-04-02 Wei Mi <wmi@google.com>
7321 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7322 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7323 *<rotate_insn><mode>3_mask in i386.md.
7325 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7327 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7329 2013-04-02 Richard Biener <rguenther@suse.de>
7331 PR tree-optimization/56778
7332 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7333 Runtime alias tests are not supported for gather loads.
7334 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7335 stmts referenced from SSA operands before updating SSA form.
7337 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7338 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7340 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
7341 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7342 * config/arm/cortex-a53.md: New file.
7343 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7344 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7345 * config/arm/arm.c (arm_issue_rate): Likewise.
7346 * config/arm/arm-tune.md: Regenerate
7347 * config/arm/arm-tables.opt: Regenerate.
7348 * config/arm/arm-cores.def: Add cortex-a53.
7350 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7352 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7355 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7357 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7358 scalar load/store operations using B/H registers.
7359 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7361 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7363 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7365 * config/aarch64/aarch64.c
7366 (aarch64_simd_scalar_immediate_valid_for_move): New.
7367 * config/aarch64/aarch64-protos.h
7368 (aarch64_simd_scalar_immediate_valid_for_move): New.
7369 * config/aarch64/constraints.md (Dh, Dq): New.
7370 * config/aarch64/iterators.md (hq): New.
7372 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7374 * reorg.c (get_branch_condition): Deal with conditional returns.
7375 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7377 2013-04-01 Wei Mi <wmi@google.com>
7379 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7380 Truncate operand 2 using %b asm operand modifier.
7381 (*<shift_insn><mode>3_mask): Ditto.
7382 (*<rotate_insn><mode>3_mask): Ditto.
7384 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7387 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7389 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7391 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7393 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7395 2013-03-30 Lawrence Crowl <crowl@google.com>
7397 * dse.c (clear_alias_sets): Remove never set.
7398 (disqualified_clear_alias_sets): Remove never set.
7399 (clear_alias_mode_pool): Remove never set.
7400 (dse_step0): Remove condition that is never true.
7401 (canon_address): Remove condition that is never true.
7402 (dse_step7): Remove condition that is never true.
7403 (rest_of_handle_dse): Remove condition that is never true.
7404 (rest_of_handle_dse::did_global): Remove never read from above.
7405 (dse_step2_spill): Remove never called from above.
7406 (dse_step5_spill): Remove never called from above.
7408 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7410 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7411 JUMP_TABLE_DATA changes.
7412 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7413 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7414 (Insns) <jump_table_data>: New entry.
7415 * doc/tm.texi: Regenerate.
7417 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7419 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7420 for table jump at the end of a basic block using tablejump_p.
7421 * targhooks.c (default_invalid_within_doloop): Likewise.
7422 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7423 target hook implementation that is identical to the default hook.
7424 (rs6000_invalid_within_doloop): Remove.
7426 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7427 unused variable from tablejump_p call.
7429 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7430 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7431 (INSN_DELETED_P): Likewise.
7432 (emit_jump_table_data): New prototype.
7433 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7434 after 4th as unused.
7435 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7436 * sched-vis.c (print_insn): Likewise.
7437 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7438 insn for compatibility with back ends that use next_active_insn to
7439 identify jump table data.
7440 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7441 (remove_insn): Likewise.
7442 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7444 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7445 (emit_jump_table_data): New function.
7447 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7448 basic block, a JUMP_TABLE_DATA never is.
7449 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7450 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7451 off from code handling real insns.
7452 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7453 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7454 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7455 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7456 is not a NONDEBUG_INSN_P.
7457 * ira-costs.c (scan_one_insn): Likewise.
7458 * jump.c (mark_all_labels): Likewise.
7459 (mark_jump_label_1): Likewise.
7460 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7461 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7463 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7464 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7465 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7466 JUMP_TABLE_DATA_P insns.
7467 (calculate_elim_costs_all_insns): Likewise.
7468 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7469 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7470 (delete_output_reload): Code style fixups.
7471 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7472 insn flags on this non-insn.
7473 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7474 as scheduling barriers, for pre-change compatibility.
7475 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7476 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7478 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7479 redundant JUMP_TABLE_DATA_P test.
7480 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7481 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7482 (frv_for_each_packet): Likewise.
7483 * config/i386/i386.c (min_insn_size): Likewise.
7484 (ix86_avoid_jump_mispredicts): Likewise.
7485 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7486 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7487 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7488 (mips16_insn_length): Robustify.
7489 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7490 (mips16_split_long_branches): Likewise.
7491 * config/pa/pa.c (pa_combine_instructions): Likewise.
7492 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7493 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7494 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7495 as contributing to pool range lengths.
7496 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7497 Remove redundant JUMP_TABLE_DATA_P test.
7498 (sh_loop_align): Likewise.
7499 (split_branches): Likewise.
7500 (sh_insn_length_adjustment): Likewise.
7501 * config/spu/spu.c (get_branch_target): Likewise.
7503 2013-03-29 Jan Hubicka <jh@suse.cz>
7505 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7506 gcov streaming; stream hot bb threshold to ltrans.
7507 * predict.c (get_hot_bb_threshold): Break out from ....
7508 (maybe_hot_count_p): ... here.
7509 (set_hot_bb_threshold): New function.
7510 * lto-section-in.c (lto_section_name): Add profile.
7511 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7512 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7514 (histogram_entry): New structure.
7515 (histogram, histogram_pool): New global vars.
7516 (histogram_hash): New structure.
7517 (histogram_hash::hash): New method.
7518 (histogram_hash::equal): Likewise.
7519 (account_time_size): New function.
7520 (cmp_counts): New function.
7521 (dump_histogram): New function.
7522 (ipa_profile_generate_summary): New function.
7523 (ipa_profile_write_summary): New function.
7524 (ipa_profile_read_summary): New function.
7525 (ipa_profile): Decide on threshold.
7526 (pass_ipa_profile): Add ipa_profile_write_summary and
7527 ipa_profile_read_summary.
7528 * Makefile.in (ipa.o): Update dependencies.
7529 * lto-streamer.h (LTO_section_ipa_profile): New section.
7531 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7533 * tree.h (VAR_P): New.
7535 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7538 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7540 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7542 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7543 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7544 (control_flow_insn_p): Likewise.
7545 * cfgrtl.c (duplicate_insn_chain): Likewise.
7546 * final.c (get_attr_length_1): Likewise.
7547 (shorten_branches): Likewise.
7548 (final_scan_insn): Likewise.
7549 * function.c (instantiate_virtual_regs): Likewise.
7550 * gcse.c (insert_insn_end_basic_block): Likewise.
7551 * ira-costs.c (scan_one_insn): Likewise.
7552 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7553 * lra.c (check_rtl): Likewise.
7554 * reload1.c (elimination_costs_in_insn): Likewise.
7555 * reorg.c (follow_jumps): Likewise.
7557 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7558 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7559 (thumb_far_jump_used_p): Likewise.
7560 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7561 (workaround_speculation): Likewise.
7562 (add_sched_insns_for_speculation): Likewise.
7563 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7564 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7565 (frv_for_each_packet): Likewise.
7566 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7567 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7568 (final_emit_insn_group_barriers): Likewise.
7569 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7570 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7571 (mips16_insn_length): Likewise.
7572 * config/pa/pa.c (pa_reorg): Likewise.
7573 (pa_combine_instructions): Likewise.
7574 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7575 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7576 (sh_reorg): Likewise.
7577 (split_branches): Likewise.
7578 * config/spu/spu.c (get_branch_target): Likewise.
7580 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7583 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7585 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
7586 Fix declaration name.
7588 2013-03-28 Lawrence Crowl <crowl@google.com>
7590 * graphds.h (struct graph.indicies): Remove unused.
7591 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7592 (SCOP_ORIGINAL_PDDRS): Remove unused.
7593 * sese.h (extern insert_loop_close_phis): Removed unused.
7594 (extern insert_guard_phis): Removed unused.
7595 (extern ivtype_map_elt_info): Removed unused.
7596 (new_ivtype_map_elt): Removed unused.
7597 * sese.c (ivtype_map_elt_info): Removed unused.
7599 2013-03-28 Lawrence Crowl <crowl@google.com>
7601 * Makefile.in: Add several missing include dependences.
7603 (test-dump.o): New. This object is not added to any executable,
7604 but is present for ad-hoc testing.
7606 (debug (const bitmap_head_def &)): New.
7607 (debug (const bitmap_head_def *)): New.
7609 (extern debug (const bitmap_head_def &)): New.
7610 (extern debug (const bitmap_head_def *)): New.
7612 (debug (edge_def &)): New.
7613 (debug (edge_def *)): New.
7615 (debug (basic_block_def &)): New.
7616 (debug (basic_block_def *)): New.
7618 (dump_node (const_tree, int, FILE *)): Correct source file.
7620 (debug (die_struct &)): New.
7621 (debug (die_struct *)): New.
7623 (extern debug (die_struct &)): New.
7624 (extern debug (die_struct *)): New.
7625 * gimple-pretty-print.c
7626 (debug (gimple_statement_d &)): New.
7627 (debug (gimple_statement_d *)): New.
7628 * gimple-pretty-print.h
7629 (extern debug (gimple_statement_d &)): New.
7630 (extern debug (gimple_statement_d *)): New.
7632 (debug (ira_allocno_copy &)): New.
7633 (debug (ira_allocno_copy *)): New.
7634 (debug (ira_allocno &)): New.
7635 (debug (ira_allocno *)): New.
7637 (extern debug (ira_allocno_copy &)): New.
7638 (extern debug (ira_allocno_copy *)): New.
7639 (extern debug (ira_allocno &)): New.
7640 (extern debug (ira_allocno *)): New.
7642 (debug (live_range &)): New.
7643 (debug (live_range *)): New.
7645 (debug (lra_live_range &)): New.
7646 (debug (lra_live_range *)): New.
7648 (debug (lra_live_range &)): New.
7649 (debug (lra_live_range *)): New.
7651 (debug (omega_pb_d &)): New.
7652 (debug (omega_pb_d *)): New.
7654 (extern debug (omega_pb_d &)): New.
7655 (extern debug (omega_pb_d *)): New.
7657 (debug (const rtx_def &)): New.
7658 (debug (const rtx_def *)): New.
7660 (debug_tree (tree): Move within file.
7661 (debug_raw (const tree_node &)): New.
7662 (debug_raw (const tree_node *)): New.
7663 (dump_tree_via_hooks (const tree_node *, int)): New.
7664 (debug (const tree_node &)): New.
7665 (debug (const tree_node *)): New.
7666 (debug_verbose (const tree_node &)): New.
7667 (debug_verbose (const tree_node *)): New.
7668 (debug_head (const tree_node &)): New.
7669 (debug_head (const tree_node *)): New.
7670 (debug_body (const tree_node &)): New.
7671 (debug_body (const tree_node *)): New.
7672 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7673 (debug (vec<tree, va_gc> &)): New.
7674 (debug (vec<tree, va_gc> *)): New.
7676 (extern debug (const rtx_def &)): New.
7677 (extern debug (const rtx_def *)): New.
7679 (debug_raw (simple_bitmap_def &)): New.
7680 (debug_raw (simple_bitmap_def *)): New.
7681 (debug (simple_bitmap_def &)): New.
7682 (debug (simple_bitmap_def *)): New.
7684 (extern debug (simple_bitmap_def &)): New.
7685 (extern debug (simple_bitmap_def *)): New.
7686 (extern debug_raw (simple_bitmap_def &)): New.
7687 (extern debug_raw (simple_bitmap_def *)): New.
7689 (debug (vinsn_def &)): New.
7690 (debug (vinsn_def *)): New.
7691 (debug_verbose (vinsn_def &)): New.
7692 (debug_verbose (vinsn_def *)): New.
7693 (debug (expr_def &)): New.
7694 (debug (expr_def *)): New.
7695 (debug_verbose (expr_def &)): New.
7696 (debug_verbose (expr_def *)): New.
7697 (debug (vec<rtx> &)): New.
7698 (debug (vec<rtx> *)): New.
7700 (extern debug (vinsn_def &)): New.
7701 (extern debug (vinsn_def *)): New.
7702 (extern debug_verbose (vinsn_def &)): New.
7703 (extern debug_verbose (vinsn_def *)): New.
7704 (extern debug (expr_def &)): New.
7705 (extern debug (expr_def *)): New.
7706 (extern debug_verbose (expr_def &)): New.
7707 (extern debug_verbose (expr_def *)): New.
7708 (extern debug (vec<rtx> &)): New.
7709 (extern debug (vec<rtx> *)): New.
7711 (_list_iter_cond_expr): Make inline instead of static.
7713 (debug (sreal &)): New.
7714 (debug (sreal *)): New.
7716 (extern debug (sreal &)): New.
7717 (extern debug (sreal *)): New.
7719 (extern debug_raw (const tree_node &)): New.
7720 (extern debug_raw (const tree_node *)): New.
7721 (extern debug (const tree_node &)): New.
7722 (extern debug (const tree_node *)): New.
7723 (extern debug_verbose (const tree_node &)): New.
7724 (extern debug_verbose (const tree_node *)): New.
7725 (extern debug_head (const tree_node &)): New.
7726 (extern debug_head (const tree_node *)): New.
7727 (extern debug_body (const tree_node &)): New.
7728 (extern debug_body (const tree_node *)): New.
7729 (extern debug (vec<tree, va_gc> &)): New.
7730 (extern debug (vec<tree, va_gc> *)): New.
7732 (debug (struct loop &)): New.
7733 (debug (struct loop *)): New.
7734 (debug_verbose (struct loop &)): New.
7735 (debug_verbose (struct loop *)): New.
7736 * tree-dump.c: Add header dependence.
7738 (extern debug (struct loop &)): New.
7739 (extern debug (struct loop *)): New.
7740 (extern debug_verbose (struct loop &)): New.
7741 (extern debug_verbose (struct loop *)): New.
7743 (debug (data_reference &)): New.
7744 (debug (data_reference *)): New.
7745 (debug (vec<data_reference_p> &)): New.
7746 (debug (vec<data_reference_p> *)): New.
7747 (debug (vec<ddr_p> &)): New.
7748 (debug (vec<ddr_p> *)): New.
7750 (extern debug (data_reference &)): New.
7751 (extern debug (data_reference *)): New.
7752 (extern debug (vec<data_reference_p> &)): New.
7753 (extern debug (vec<data_reference_p> *)): New.
7754 (extern debug (vec<ddr_p> &)): New.
7755 (extern debug (vec<ddr_p> *)): New.
7757 (debug (pt_solution &)): New.
7758 (debug (pt_solution *)): New.
7760 (extern debug (pt_solution &)): New.
7761 (extern debug (pt_solution *)): New.
7763 (debug (_var_map &)): New.
7764 (debug (_var_map *)): New.
7765 (debug (tree_live_info_d &)): New.
7766 (debug (tree_live_info_d *)): New.
7768 (extern debug (_var_map &)): New.
7769 (extern debug (_var_map *)): New.
7770 (extern debug (tree_live_info_d &)): New.
7771 (extern debug (tree_live_info_d *)): New.
7773 2013-03-28 Jan Hubicka <jh@suse.cz>
7775 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7777 2013-03-28 Ian Bolton <ian.bolton@arm.com>
7779 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7780 record only when desired or required.
7782 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
7784 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7785 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7787 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7789 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7790 (*andsi3_compare0_uxtw): New pattern.
7791 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7792 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7794 2013-03-28 Jan Hubicka <jh@suse.cz>
7796 * data-streamer-in.c (streamer_read_gcov_count): New function.
7797 * gimple-streamer-out.c: Include value-prof.h.
7798 (output_gimple_stmt): Output histogram.
7799 (output_bb): Use streamer_write_gcov_count.
7800 * value-prof.c: Include data-streamer.h
7801 (dump_histogram_value): Add HIST_TYPE_MAX.
7802 (stream_out_histogram_value): New function.
7803 (stream_in_histogram_value): New function.
7804 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7805 (stream_out_histogram_value, stream_in_histogram_value): Declare.
7806 * data-streamer-out.c (streamer_write_gcov_count): New function.
7807 (streamer_write_gcov_count_stream): New function.
7808 * lto-cgraph.c (lto_output_edge): Update counter streaming.
7809 (lto_output_node): Likewise.
7810 (input_node, input_edge): Likewise.
7811 * lto-streamer-out.c (output_cfg): Update streaming.
7812 * lto-streamer-in.c (input_cfg): Likewise.
7813 * data-streamer.h (streamer_write_gcov_count,
7814 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7815 * gimple-streamer-in.c: Include value-prof.h
7816 (input_gimple_stmt): Input histograms.
7817 (input_bb): Update profile streaming.
7819 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
7821 * genmodes.c (emit_max_int): New function.
7822 (emit_insn_modes_h): Added call to emit_max_function.
7823 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7825 * machmode.def: Fixed comment.
7827 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
7829 * combine.c (try_combine): Removed useless assert.
7830 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7832 2013-03-28 Marek Polacek <polacek@redhat.com>
7833 Richard Biener <rguenther@suse.de>
7835 PR tree-optimization/56695
7836 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7837 build signed result of a vector comparison.
7838 * tree-cfg.c (verify_gimple_comparison): Check that a result
7839 of a vector comparison has signed type.
7841 2013-03-28 Richard Biener <rguenther@suse.de>
7843 PR tree-optimization/37021
7844 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7845 do not restrict gaps between groups.
7846 * tree-vect-stmts.c (vectorizable_load): Properly account for
7847 a gap between groups.
7849 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
7851 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7852 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7855 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
7857 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7858 * doc/extend.texi (Named Address Spaces): Ditto.
7859 (Variable Attributes): Ditto.
7861 2013-03-27 Kai Tietz <ktietz@redhat.com>
7863 * config.build: Add support for cygwin x64 target.
7864 * config.gcc: Likewise.
7865 * config.host: Likewise.
7866 * configure.ac: Likewise
7867 * configure: Regenerated.
7869 2013-03-27 Kai Tietz <ktietz@redhat.com>
7871 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7872 * config/i386/t-cygwin-w64: New file.
7873 * config/i386/cygwin-w64.h: New file.
7874 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7875 and add support for x64-cygwin target.
7876 (CPP_SPEC): Likewise.
7877 (CXX_WRAP_SPEC_LIST): Undefine before define.
7878 (LIBGCJ_SONAME): Use 15 as version.
7880 2013-03-27 Richard Biener <rguenther@suse.de>
7882 PR tree-optimization/56716
7883 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7884 dumping for ref nodes.
7886 2013-03-27 Martin Jambor <mjambor@suse.cz>
7888 PR tree-optimization/55334
7889 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7890 restricted pointers to arrays.
7892 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7894 * Makefile.in (.SUFFIXES): Add .cc.
7895 (.c.o): Apply same recipe for implicit rule .cc.o.
7897 2013-03-27 Richard Biener <rguenther@suse.de>
7899 PR tree-optimization/37021
7900 * tree-vect-data-refs.c (vect_check_strided_load): Allow
7901 REALPART/IMAGPART_EXPRs around the supported refs.
7902 * tree-ssa-structalias.c (find_func_aliases): Assume that
7903 floating-point values are not used to transfer pointers.
7905 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7907 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7908 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7909 * doc/tm.texi: Regenerate.
7910 * targhooks.h (default_has_ifunc_p): New.
7911 * targhooks.c (default_has_ifunc_p): Ditto.
7912 * config/linux-protos.h: New file.
7913 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
7914 this hook for linux which disables support of indirect functions in
7916 * config/linux-android.c: New file.
7917 * config/t-linux-android.c: Ditto.
7918 * config.gcc: Added new object file linux-android.o.
7919 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
7920 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
7921 * varasm.c (do_assemble_alias): Likewise.
7922 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7923 doesn't support indirect functions.
7924 * configure: Regenerate.
7926 2013-03-27 Bin Cheng <bin.cheng@arm.com>
7929 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7930 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7933 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7935 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7937 2013-03-27 Terry Guo <terry.guo@arm.com>
7939 * config/arm/arm-cores.def: Added core cortex-r7.
7940 * config/arm/arm-tune.md: Regenerated.
7941 * config/arm/arm-tables.opt: Regenerated.
7942 * doc/invoke.texi: Added entry for core cortex-r7.
7944 2013-03-27 Walter Lee <walt@tilera.com>
7946 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7947 double-decrement of next_scratch_regno.
7949 2013-03-27 Walter Lee <walt@tilera.com>
7951 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
7953 (insn_v1mulus): Ditto.
7954 (insn_v2muls): Ditto.
7956 2013-03-27 Walter Lee <walt@tilera.com>
7958 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
7959 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7961 2013-03-27 Walter Lee <walt@tilera.com>
7963 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
7964 (*sibcall_value): Ditto.
7966 2013-03-27 Walter Lee <walt@tilera.com>
7968 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7969 (insn_mnz_v8qi): ... this ...
7970 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
7972 (insn_v<n>mnz): Replaced by ...
7973 (insn_v1mnz): ... this ...
7974 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
7976 (insn_mz_<mode>): Replaced by ...
7977 (insn_mz_v8qi): ... this ...
7978 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
7980 (insn_v<n>mz): Replaced by ...
7981 (insn_v1mz): ... this ...
7982 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
7985 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
7987 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7989 2013-03-26 Roland McGrath <mcgrathr@google.com>
7991 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7992 than fprintf with a non-constant, non-format string.
7994 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
7996 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7997 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
7998 operand 0 predicate.
7999 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8000 attribute. Use general_x64nomem_operand as operand 1 predicate.
8001 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8002 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8003 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8004 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8005 (mov<mode>_insv_1): Remove expander. Merge insn with
8006 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8007 Use general_x64nomem_operand as operand 1 predicate.
8008 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8009 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8010 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8011 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8012 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8013 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8014 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8015 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8016 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8017 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8018 (general_x64nomem_operand): Ditto.
8020 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8022 * config/rtems.opt: Add -pthread option.
8024 2013-03-26 Richard Biener <rguenther@suse.de>
8026 * alias.c (find_base_term): Avoid redundant and not used recursion.
8027 (base_alias_check): Get the initial base term from the caller.
8028 (true_dependence_1): Compute and pass base terms to base_alias_check.
8029 (write_dependence_p): Likewise.
8030 (may_alias_p): Likewise.
8032 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8034 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8035 PC-relative load in SI modes and above only.
8037 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8039 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8040 * config/arm/iwmmxt.md (WCGR0): Update.
8041 (WCGR1, WCGR2, WCGR3): Likewise.
8043 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8045 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8046 Use x64 and nox64 isa attributes.
8048 2013-03-26 Richard Biener <rguenther@suse.de>
8050 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8051 alignment computations and rely on get_object_alignment_1
8052 for the !TYPE_P case.
8053 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8055 2013-03-26 Walter Lee <walt@tilera.com>
8057 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8058 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8060 2013-03-25 Jeff Law <law@redhat.com>
8062 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8063 check for INTEGRAL_TYPE_P that was missing due to checking in
8064 wrong version of prior patch.
8066 2013-03-25 Walter Lee <walt@tilera.com>
8068 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8069 TILEGX_INSN_SHUFFLEBYTES1.
8070 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8072 (tilegx_builtins): Ditto.
8073 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8075 2013-03-25 Walter Lee <walt@tilera.com>
8077 * config/tilegx/tilegx.md (floatsisf2): New pattern.
8078 (floatunssisf2): New pattern.
8079 (floatsidf2): New pattern.
8080 (floatunssidf2): New pattern.
8082 2013-03-25 Walter Lee <walt@tilera.com>
8084 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8085 tests for constraint J, K, N, P.
8087 2013-03-25 Walter Lee <walt@tilera.com>
8089 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8090 Use indirect/pcrel encoding.
8091 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8094 2013-03-25 Steve Ellcey <sellcey@mips.com>
8096 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8097 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8098 * config/mips/mips.c (mips_option_override): Set IMADD default.
8099 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8100 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8101 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8102 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8103 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8105 2013-03-25 Jeff Law <law@redhat.com>
8107 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8108 slightly to avoid creating and folding useless trees. Simplify
8109 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8111 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
8113 * config/i386/i386.md (*zero_extendsidi2): Merge with
8114 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8115 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8116 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8117 targets. Clarify comment.
8119 2013-03-25 Martin Jambor <mjambor@suse.cz>
8121 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8122 pass-through jump functions differently.
8123 (ipa_read_jump_function): Likewise. Also use setter functions to set
8126 2013-03-25 Martin Jambor <mjambor@suse.cz>
8128 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8129 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8131 (ipa_get_indirect_edge_target): New function.
8132 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8133 ipa_get_indirect_edge_target. Update all callers.
8134 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8135 ipa_get_indirect_edge_target_1 instead of calling
8136 ipa_get_indirect_edge_target.
8137 (create_specialized_node): Pass aggvlas to
8138 ipcp_discover_new_direct_edges.
8140 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8142 * config/arm/arm.md (f_sels, f_seld): New types.
8143 (*cmov<mode>): New pattern.
8144 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8147 2013-03-25 Kai Tietz <ktietz@redhat.com>
8149 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8150 POSIX-printf for mingw-hosted builds.
8152 2013-03-25 Richard Biener <rguenther@suse.de>
8155 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8156 must-not-throw stmt location.
8158 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8160 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8161 Emit load-acquire versions when acq is true.
8162 (arm_emit_store_exclusive): Add rel parameter.
8163 Emit store-release versions when rel is true.
8164 (arm_split_compare_and_swap): Use acquire-release instructions
8166 of barriers when appropriate.
8167 (arm_split_atomic_op): Likewise.
8168 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8169 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8170 (VUNSPEC_SLX): Likewise.
8171 (VUNSPEC_LDA): Likewise.
8172 (VUNSPEC_STL): Likewise.
8173 * config/arm/sync.md (atomic_load<mode>): New pattern.
8174 (atomic_store<mode>): Likewise.
8175 (arm_load_acquire_exclusive<mode>): Likewise.
8176 (arm_load_acquire_exclusivesi): Likewise.
8177 (arm_load_acquire_exclusivedi): Likewise.
8178 (arm_store_release_exclusive<mode>): Likewise.
8180 2013-03-25 Catherine Moore <clm@codesourcery.com>
8182 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8183 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8184 * config/mip/predicates.md (lwsp_swsp_operand,
8185 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8186 sb16_operand, db4_operand, db7_operand, ib3_operand,
8187 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8188 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8189 andi16_operand): New predicates.
8190 * config/mips/mips.md (compression): New attribute.
8191 (enabled): New attribute.
8192 (length): Consider compression in computing length.
8193 (shift_compression): New code attribute.
8194 (*add<mode>3): New operands. Record compression.
8195 (sub<mode>3): Likewise.
8196 (one_cmpl<mode>2): Likewise.
8197 (*and<mode>3): Likewise.
8198 (*ior<mode>3): Likewise.
8199 (unnamed pattern for xor): Likewise.
8200 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8201 (*<optab><mode>3): Likewise.
8202 (*mov<mode>_internal: Likewise.
8203 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8204 (mips_unsigned_immediate_p): New.
8205 (umips_lwsp_swsp_address_p): New.
8206 (m16_based_address_p): New.
8207 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8208 (mips_unsigned_immediate_p): New prototype.
8209 (lwsp_swsp_address_p): New prototype.
8210 (m16_based_address_p): New prototype.
8211 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8212 (mips_signed_immediate_p): New function.
8213 (m16_based_address_p): New function.
8214 (lwsp_swsp_address_p): New function.
8215 (mips_print_operand_punctuation): Recognize short delay slot insns
8216 for microMIPS.add<mode>3"
8218 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8221 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8222 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8224 2013-03-25 Richard Biener <rguenther@suse.de>
8226 PR tree-optimization/56689
8227 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8230 2013-03-25 Richard Biener <rguenther@suse.de>
8232 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8234 (memory_references): Likewise.
8235 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8236 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8237 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8238 (gather_mem_refs_in_loops): Fold into ...
8239 (analyze_memory_references): ... this. Move initialization
8240 to tree_ssa_lim_initialize.
8241 (fill_always_executed_in): Rename to ...
8242 (fill_always_executed_in_1): ... this.
8243 (fill_always_executed_in): Move contains_call computation to
8244 this new function from ...
8245 (tree_ssa_lim_initialize): ... here.
8246 (tree_ssa_lim): Call fill_always_executed_in.
8248 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8250 * postreload.c (reload_combine): Fix code detecting returns.
8252 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8254 * function.c (emit_use_return_register_into_block): On cc0 targets,
8255 do not emit the sequence between cc0 setter and user.
8257 2013-03-25 Kai Tietz <ktietz@redhat.com>
8259 * config/i386/predicates.md (local_symbolic_operand): Interpret
8260 dll-imported symbols as none-local.
8262 2013-03-25 Richard Biener <rguenther@suse.de>
8264 * tree-ssa-loop-im.c (struct depend): Remove.
8265 (struct lim_aux_data): Make depends a vec of gimples.
8266 (free_lim_aux_data): Adjust.
8267 (add_dependency): Likewise.
8268 (set_level): Likewise.
8270 2013-03-25 Richard Biener <rguenther@suse.de>
8273 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8274 the pointer returned by calls with ECF_MALLOC set.
8276 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
8278 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8280 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
8282 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
8283 using MMXMODE mode iterator.
8284 (*move<mode>_internal): Merge with *movv2sf_internal and
8285 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8287 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8289 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8290 (record_last_mem_set_info): Likewise.
8292 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8293 of XNEWVEC followed by memset.
8294 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8296 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8298 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8299 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8300 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8301 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8302 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8303 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8304 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8305 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8306 BARRIER_P instead of GET_CODE.
8308 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8310 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8311 inaccuracy in the probing code.
8313 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8314 (ctrapdi4): Likewise.
8316 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8318 * calls.c (expand_call): Add missing guard to code handling return
8319 of non-BLKmode structures in MSB.
8320 * function.c (expand_function_end): Likewise.
8322 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8324 * combine.c (try_combine): Adjust comment. Do not add the set of
8325 insn #0 if the destination indirectly is set or dies in insn #2.
8326 Tidy up code to distribute a new note.
8328 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
8330 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8331 also for alternatives 16 and 17.
8333 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
8335 * config/i386/sse.md (*mov<mode>_internal): Merge with
8336 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8337 Emit insn template depending on type attribute. Use
8338 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8339 movd instead of movq mnemonic for interunit moves. Rewrite mode
8340 attribute calculation. Remove unit attribute calculation.
8341 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8342 Set prefix_data16 attribute for DImode ssemov types.
8343 Use Ym instead of y for SSE-MMX conversion alternatives.
8344 Reorder operand constraints.
8346 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8348 * df.h (df_insn_delete): Adjust prototype.
8349 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8350 and let it decide whether mark the basic block dirty.
8351 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8352 * df-scan.c (df_insn_info_delete): New helper function, split
8353 off from df_insn_delete.
8354 (df_scan_free_bb_info): Use it.
8355 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8357 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8358 that the insn is actually an insn and it has a non-NULL basic block.
8359 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8361 2013-03-22 Richard Biener <rguenther@suse.de>
8363 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8365 (mem_ref_alloc): Do not allocate them.
8366 (refs_independent_p): Do not query or maintain a cache.
8368 2013-03-22 Richard Biener <rguenther@suse.de>
8370 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8371 (gather_mem_refs_in_loops): Do not compute it.
8372 (analyze_memory_references): Do not allocate it.
8373 (tree_ssa_lim_finalize): Do not free it.
8374 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8376 2013-03-22 Richard Biener <rguenther@suse.de>
8378 * is-a.h (as_a): Use gcc_checking_assert.
8380 2013-03-22 Ian Bolton <ian.bolton@arm.com>
8382 * config/aarch64/aarch64.c (aarch64_print_operand): New
8383 format specifier for printing a constant in hex.
8384 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8385 format specifier for printing second operand.
8387 2013-03-22 Richard Biener <rguenther@suse.de>
8389 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8391 (gather_mem_refs_in_loops): Perform store accumulation here.
8392 (create_vop_ref_mapping_loop): Remove.
8393 (create_vop_ref_mapping): Likewise.
8394 (analyze_memory_references): Initialize refs_stored_in_loop.
8395 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
8396 (record_indep_loop): Remove.
8397 (record_dep_loop): New function.
8398 (ref_indep_loop_p_1): Adjust to only walk over references
8399 in the loop, not its subloops.
8400 (ref_indep_loop_p): Rename to ...
8401 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8402 maintaining a more fine-grained cache.
8403 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8404 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8406 2013-03-22 Richard Biener <rguenther@suse.de>
8408 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8409 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8410 aggregate mem_ref_loc.
8411 (free_mem_ref_locs): Inline into ...
8412 (memref_free): ... this and adjust.
8413 (mem_ref_alloc): Adjust.
8414 (mem_ref_locs_alloc): Remove.
8415 (record_mem_ref_loc): Adjust.
8416 (get_all_locs_in_loop): Rewrite into ...
8417 (for_all_locs_in_loop): ... this iterator.
8418 (rewrite_mem_ref_loc): New functor.
8419 (rewrite_mem_refs): Use for_all_locs_in_loop.
8420 (sm_set_flag_if_changed): New functor.
8421 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8422 (ref_always_accessed): New functor.
8423 (ref_always_accessed_p): Use for_all_locs_in_loop.
8425 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
8427 * tree-pass.h (PROP_gimple_lvec): New.
8428 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8429 (init_optimization_passes): Move pass_lower_vector.
8430 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8432 (pass_lower_vector): Provide PROP_gimple_lvec.
8433 (pass_lower_vector_ssa): Likewise.
8434 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8436 2013-03-21 Mark Wielaard <mjw@redhat.com>
8438 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8440 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
8442 * config/i386/i386.md (*movdi_internal): Disparage slightly
8443 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8444 conversion alternatives.
8446 2013-03-21 Jakub Jelinek <jakub@redhat.com>
8449 * diagnostic.def (DK_WERROR): New kind.
8450 * diagnostic.h (werrorcount): Define.
8451 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8452 promoted to DK_ERROR, increment DK_WERROR counter instead of
8454 * toplev.c (toplev_main): Call print_ignored_options even if
8455 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8456 even if just werrorcount is non-zero.
8459 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8461 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8462 (string_cst_pool_decl): New function.
8463 (optimize_one_addr_into_implicit_ptr): New function.
8464 (resolve_addr_in_expr): Optimize DWARF location expression
8465 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8466 which doesn't live in memory, but has DW_AT_location or
8467 DW_AT_const_value, or refers to a string literal, into
8468 DW_OP_GNU_implicit_pointer.
8469 (optimize_location_into_implicit_ptr): New function.
8470 (resolve_addr): If removing DW_AT_location of a variable because
8471 it was DW_OP_addr of address of the variable, but the variable doesn't
8472 live in memory, try to emit const value attribute for the initializer.
8474 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
8476 * tree.h (VECTOR_TYPE_P): New macro.
8477 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8479 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8480 VEC_COND_EXPR cannot be lvalues.
8481 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8483 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
8485 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8486 Restrict the transformation to equal modes.
8488 2013-03-21 Richard Biener <rguenther@suse.de>
8490 PR tree-optimization/39326
8491 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8492 (MEM_ANALYZABLE): Adjust.
8493 (record_mem_ref_loc): Move bitmap ops ...
8494 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8495 unanalyzable refs, do not record locations for it.
8496 (analyze_memory_references): Allocate ref zero as shared
8498 (refs_independent_p): Do not test for unanalyzed mems here.
8499 (ref_indep_loop_p_1): Special-case disambiguation against
8501 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
8503 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8505 * config/arm/arm-protos.h (tune_params): Add
8506 prefer_neon_for_64bits field.
8507 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8508 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8509 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8510 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8511 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8512 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8513 (arm_option_override): Handle -mneon-for-64bits new option.
8514 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8515 (prefer_neon_for_64bits): Declare new variable.
8516 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
8517 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
8518 (arch_enabled): Handle new arch types. Remove support for onlya8
8520 (one_cmpldi2): Use new arch names.
8521 (zero_extend<mode>di2, extend<mode>di2): Ditto.
8522 * config/arm/arm.opt (mneon-for-64bits): Add option.
8523 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8524 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8525 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8527 * doc/invoke.texi (-mneon-for-64bits): Document.
8529 2013-03-21 Richard Biener <rguenther@suse.de>
8531 PR tree-optimization/39326
8532 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8533 (sort_bbs_in_loop_postorder_cmp): New function.
8534 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
8536 2013-03-21 Richard Biener <rguenther@suse.de>
8538 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8539 (vect_insert_into_interleaving_chain): Likewise.
8540 (vect_drs_dependent_in_basic_block): Inline ...
8541 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8543 (vect_analyze_data_ref_dependence): ... here. Simplify.
8544 (vect_check_interleaving): Simplify.
8545 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8546 (vect_slp_analyze_data_ref_dependences): ... this new function.
8547 (dr_group_sort_cmp): New function.
8548 (vect_analyze_data_ref_accesses): Compute data-reference groups
8549 here instead of in vect_analyze_data_ref_dependence. Use
8550 a more efficient algorithm.
8551 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8552 vect_slp_analyze_data_ref_dependences. Call
8553 vect_analyze_data_ref_accesses earlier.
8554 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8555 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8556 (vect_slp_analyze_data_ref_dependences): New prototype.
8558 2013-03-21 Richard Biener <rguenther@suse.de>
8560 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8561 ref is stored in the loop.
8562 (find_refs_for_sm): Walk only over all stores.
8563 (store_motion_loop): Allocate from lim_bitmap_obstack.
8564 (store_motion): Likewise.
8566 2013-03-21 Richard Biener <rguenther@suse.de>
8568 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8569 Update virtual SSA form.
8571 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8573 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8574 * configure: Regenerate.
8575 * config.in: Regenerate.
8576 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8577 if !HAVE_LD_EH_FRAME_CIEV3.
8579 2013-03-21 Richard Biener <rguenther@suse.de>
8581 * tree-cfg.c (verify_expr_no_block): New function.
8582 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8583 nor DECL_VALUE_EXPR have locations with associated blocks.
8584 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8585 (clear_unused_block_pointer): Remove code dealing with
8586 blocks in DECL_DEBUG_EXPR locations.
8588 2013-03-21 Richard Biener <rguenther@suse.de>
8590 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8591 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8592 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8593 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8594 instead of DECL_DEBUG_EXPR_IS_FROM.
8595 * gimplify.c (gimplify_modify_expr): Likewise.
8596 * tree-cfg.c (verify_expr_location_1): Likewise.
8597 * tree-complex.c (create_one_component_var): Likewise.
8598 * tree-sra.c (create_access_replacement): Likewise.
8599 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8600 (clear_unused_block_pointer): Likewise.
8601 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8602 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8603 * var-tracking.c (var_debug_decl): Likewise.
8604 (track_expr_p): Likewise.
8605 * tree-inline.c (add_local_variables): Likewise. Set
8606 DECL_HAS_DEBUG_EXPR_P after copying it.
8607 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8608 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8610 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
8613 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8614 * configure: Regenerate.
8615 * config.in: Regenerate.
8616 * config/i386/i386.md (*movdf_internal): Use
8617 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8618 movd instead of movq mnemonic for interunit moves.
8619 (*movdi_internal): Ditto.
8621 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8623 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8624 (abd<mode>_3): New pattern.
8625 (aba<mode>_3): New pattern.
8626 (fabd<mode>_3): New pattern.
8628 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8630 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8631 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8632 occurrence of REGISTER_PREFIX as its empty string.
8634 2013-03-20 Jeff Law <law@redhat.com>
8636 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8637 addititional equivalences for equality comparisons between an SSA_NAME
8638 and a constant where the SSA_NAME was set from a widening conversion.
8640 2013-03-20 Walter Lee <walt@tilera.com>
8642 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8644 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8646 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8647 depending on type attribute.
8648 (*movti_internal): Ditto.
8649 (*movtf_internal): Ditto.
8650 (*movxf_internal): Ditto.
8651 (*movdf_internal): Ditto.
8652 (*movsf_internal): Ditto.
8654 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
8656 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8657 maybe_vex for sselog1 and ssemov types.
8658 (*movdi_internal): Reorder operand constraints.
8659 (*movsi_internal): Ditto. Set prefix attribute to
8660 maybe_vex for sselog1 and ssemov types.
8661 (*movtf_internal): Set prefix attribute to maybe_vex
8662 for sselog1 and ssemov types.
8663 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8664 DImode ssemov types. Reorder operand constraints.
8665 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8666 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8667 attribute for SImode ssemov types. Reorder operand constraints.
8669 2013-03-20 Martin Jambor <mjambor@suse.cz>
8671 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8672 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8674 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8676 * config/rs6000/predicates.md (indexed_address, update_address_mem
8677 update_indexed_address_mem): New predicates.
8678 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8679 attribute for load/store instructions.
8680 * config/rs6000/dfp.md (movsd_store): Likewise.
8681 (movsd_load): Likewise.
8682 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8683 (unnamed HI->DI extend define_insn): Likewise.
8684 (unnamed SI->DI extend define_insn): Likewise.
8685 (unnamed QI->SI extend define_insn): Likewise.
8686 (unnamed QI->HI extend define_insn): Likewise.
8687 (unnamed HI->SI extend define_insn): Likewise.
8688 (unnamed HI->SI extend define_insn): Likewise.
8689 (extendsfdf2_fpr): Likewise.
8690 (movsi_internal1): Likewise.
8691 (movsi_internal1_single): Likewise.
8692 (movhi_internal): Likewise.
8693 (movqi_internal): Likewise.
8694 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8695 attribute for load/store instructions.
8696 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8698 (mov<mode>_softfloat): Likewise.
8699 (mov<mode>_hardfloat32): Likewise.
8700 (mov<mode>_hardfloat64): Likewise.
8701 (mov<mode>_softfloat64): Likewise.
8702 (movdi_internal32): Likewise.
8703 (movdi_internal64): Likewise.
8704 (probe_stack_<mode>): Likewise.
8706 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8708 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8709 floating point, and decimal floating point to reload iterator.
8711 * config/rs6000/constraints.md (wl constraint): New constraints to
8712 return FLOAT_REGS if certain options are used to reduce the number
8713 of separate patterns that exist in the file.
8714 (wx constraint): Likewise.
8715 (wz constraint): Likewise.
8717 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8718 -mdebug=reg, print wg, wl, wx, and wz constraints.
8719 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8720 Initialize the reload functions for 64-bit binary/decimal floating
8722 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8723 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8724 create the buffer on the stack to overcome not having a 32-bit
8726 (rs6000_emit_move): Likewise.
8727 (rs6000_secondary_memory_needed_rtx): Likewise.
8728 (rs6000_alloc_sdmode_stack_slot): Likewise.
8729 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8730 via xxlxor, just like DFmode 0.0.
8732 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8733 define as 1 if we are running on a power7 or newer.
8734 (enum r6000_reg_class_enum): Add new constraints.
8736 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8737 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8738 with other moves by using conditional constraits (wg). Use LFIWZX
8739 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
8740 (movsd splitter): Likewise.
8741 (movsd_hardfloat): Likewise.
8742 (movsd_softfloat): Likewise.
8744 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8745 binary and decimal floating point moves.
8746 (fmove_ok): New attributes to combine binary and decimal floating
8747 point moves, and to combine power6x (mfpgpr) moves along normal
8749 (real_value_to_target): Likewise.
8756 (movsf): Combine binary and decimal floating point moves. Combine
8757 power6x (mfpgpr) moves with other moves by using conditional
8758 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
8759 (mov<mode> for SFmode/SDmode); Likewise.
8760 (SFmode/SDmode splitters): Likewise.
8761 (movsf_hardfloat): Likewise.
8762 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8763 (movsf_softfloat): Likewise.
8764 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8766 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8767 wx and wz constraints.
8769 * config/rs6000/constraints.md (wg constraint): New constraint to
8770 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8772 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8776 -mdebug=reg, print wg, wl, wx, and wz constraints.
8777 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8778 Initialize the reload functions for 64-bit binary/decimal floating
8780 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8781 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8782 create the buffer on the stack to overcome not having a 32-bit
8784 (rs6000_emit_move): Likewise.
8785 (rs6000_secondary_memory_needed_rtx): Likewise.
8786 (rs6000_alloc_sdmode_stack_slot): Likewise.
8787 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8788 via xxlxor, just like DFmode 0.0.
8790 * config/rs6000/dfp.md (movdd): Delete, combine with binary
8791 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8792 with other moves by using conditional constraits (wg). Use LFIWZX
8793 and STFIWX for loading SDmode on power7.
8794 (movdd splitters): Likewise.
8795 (movdd_hardfloat32): Likewise.
8796 (movdd_softfloat32): Likewise.
8797 (movdd_hardfloat64_mfpgpr): Likewise.
8798 (movdd_hardfloat64): Likewise.
8799 (movdd_softfloat64): Likewise.
8801 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8802 64-bit binary and decimal floating point moves.
8803 (FMOVE64X): Likewise.
8804 (movdf): Combine 64-bit binary and decimal floating point moves.
8805 Combine power6x (mfpgpr) moves with other moves by using
8806 conditional constraits (wg).
8807 (mov<mode> for DFmode/DDmode): Likewise.
8808 (DFmode/DDmode splitters): Likewise.
8809 (movdf_hardfloat32): Likewise.
8810 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8811 (movdf_softfloat32): Likewise.
8812 (movdf_hardfloat64_mfpgpr): Likewise.
8813 (movdf_hardfloat64): Likewise.
8814 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8815 (movdf_softfloat64): Likewise.
8816 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8817 (reload_<mode>_load): Move to later in the file so they aren't in
8818 the middle of the floating point move insns.
8819 (reload_<mode>_store): Likewise.
8821 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8824 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8825 constraint if -mdebug=reg.
8826 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8827 Enable using dd reload support if needed.
8829 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8830 binary and decimal floating point moves in rs6000.md.
8831 (movtd_internal): Likewise.
8833 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8834 decimal floating point moves.
8836 (movtf_internal): Likewise.
8837 (mov<mode>_internal, TDmode/TFmode): Likewise.
8838 (movtf_softfloat): Likewise.
8839 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8841 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8842 movdi_internal64, using wg constraint for move direct operations.
8843 (movdi_internal64): Likewise.
8845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8846 MODES_TIEABLE_P for selected modes. Print the numerical value of
8847 the various virtual registers. Use GPR/FPR first/last values,
8848 instead of hard coding the register numbers. Print which modes
8849 have reload functions registered.
8850 (rs6000_option_override_internal): If -mdebug=reg, trace the options
8851 settings before/after setting cpu, target and subtarget settings.
8852 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8853 and for secondary reload failures in rs6000_secondary_reload_inner.
8854 (rs6000_secondary_reload_fail): Likewise.
8855 (rs6000_secondary_reload_inner): Likewise.
8857 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8858 macros for first/last GPR and FPR registers.
8859 (LAST_GPR_REGNO): Likewise.
8860 (FIRST_FPR_REGNO): Likewise.
8861 (LAST_FPR_REGNO): Likewise.
8863 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8864 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8865 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8866 (vcond<mode><mode>): Likewise.
8867 (vcondu<mode><mode>): Likewise.
8868 (vector_gtu<mode>): Likewise.
8869 (vector_gte<mode>): Likewise.
8870 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
8871 to prevent the compiler from converting DImode operations to TImode.
8872 (ior<mode>3): Likewise.
8873 (and<mode>3): Likewise.
8874 (one_cmpl<mode>2): Likewise.
8875 (nor<mode>3): Likewise.
8876 (andc<mode>3): Likewise.
8878 * config/rs6000/constraints.md (wt constraint): New constraint
8879 that returns VSX_REGS if TImode is allowed in VSX registers.
8881 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8884 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8885 similar to TImode, but it is restricted to being in the GPRs.
8887 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8888 TImode to occupy a single VSX register.
8890 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8891 -mvsx-timode for power7/power8.
8892 (power7 cpu): Likewise.
8893 (power8 cpu): Likewise.
8895 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8896 sure that TFmode/TDmode take up two registers if they are ever
8897 allowed in the upper VSX registers.
8898 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8900 (rs6000_init_hard_regno_mode_ok): Likewise.
8901 (rs6000_debug_reg_global): Add debugging for PTImode and wt
8902 constraint. Print if LRA is turned on.
8903 (rs6000_option_override_internal): Give an error if -mvsx-timode
8904 and VSX is not enabled.
8905 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8906 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8907 to reg+offset addressing. Use PTImode when checking offset
8908 addresses for validity.
8909 (reg_offset_addressing_ok_p): Likewise.
8910 (rs6000_legitimate_offset_address_p): Likewise.
8911 (rs6000_legitimize_address): Likewise.
8912 (rs6000_legitimize_reload_address): Likewise.
8913 (rs6000_legitimate_address_p): Likewise.
8914 (rs6000_eliminate_indexed_memrefs): Likewise.
8915 (rs6000_emit_move): Likewise.
8916 (rs6000_secondary_reload): Likewise.
8917 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8918 reloads to fpr registers to continue to use reg+offset addressing,
8919 but 64-bit reloads to altivec registers need reg+reg addressing.
8920 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8921 it. Treat LO_SUM like a PLUS operation.
8922 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
8923 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
8924 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8925 registers to share a register with a smaller sized type, since VSX
8926 puts scalars in the upper 64-bits.
8927 (print_operand): Add support for PTImode.
8928 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8929 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8930 registers, but don't have arithmetic support.
8931 (rs6000_memory_move_cost): Add test for VSX.
8932 (rs6000_opt_masks): Add -mvsx-timode.
8934 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8937 (VSr): Use wt constraint for TImode.
8938 (VSv): Drop TImode support.
8939 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8940 (vsx_movti_64bit): Likewise.
8941 (vsx_movti_32bit): Likewise.
8942 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8943 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8944 one '?' on the appropriate output constraint. Do not allow TImode
8945 logical operations on 32-bit systems.
8946 (vsx_ior<mode>3): Likewise.
8947 (vsx_xor<mode>3): Likewise.
8948 (vsx_one_cmpl<mode>2): Likewise.
8949 (vsx_nor<mode>3): Likewise.
8950 (vsx_andc<mode>3): Likewise.
8951 (vsx_concat_<mode>): Likewise.
8952 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8954 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8955 OPTION_MASK_VSX_TIMODE.
8956 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8957 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8959 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8960 (TI2 iterator): New iterator for TImode, PTImode.
8961 (wd mode attribute): Add values for vector types.
8962 (movti_string): Replace TI move operations with operations for TImode
8963 and PTImode. Add support for TImode being allowed in VSX registers.
8964 (mov<mode>_string, TImode/PTImode): Likewise.
8965 (movti_ppc64): Likewise.
8966 (mov<mode>_ppc64, TImode/PTImode): Likewise.
8967 (TI mode splitters): Likewise.
8969 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8972 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
8974 PR tree-optimization/56355
8975 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8976 Also handle integers with undefined overflow.
8978 2013-03-20 Catherine Moore <clm@codesourcery.com>
8979 Maciej W. Rozycki <macro@codesourcery.com>
8980 Tom de Vries <tom@codesourcery.com>
8981 Nathan Sidwell <nathan@codesourcery.com>
8982 Iain Sandoe <iain@codesourcery.com>
8983 Nathan Froyd <froydnj@codesourcery.com>
8984 Chao-ying Fu <fu@mips.com>
8986 * doc/extend.texi: (micromips, nomicromips, nocompression):
8987 Document new function attributes.
8988 * doc/invoke.texi (minterlink-compressed, mmicromips,
8989 m14k, m14ke, m14kec): Document new options.
8990 (minterlink-mips16): Update documentation.
8991 * doc/md.texi (ZC, ZD): Document new constraints.
8992 * configure.ac (gcc_cv_as_micromips): Check if linker
8993 supports the .set micromips directive.
8994 * configure: Regenerate.
8995 * config.in: Regenerate.
8996 * config/mips/mips-tables.opt: Regenerate.
8997 * config/mips/micromips.md: New file.
8998 * constraints.md (ZC, ZD): New constraints.
8999 * config/mips/predicates.md (movep_src_register): New predicate.
9000 (movep_src_operand): New predicate.
9001 (non_volatile_mem_operand): New predicate.
9002 * config/mips/mips.md (multimem): New type.
9003 (length): Differentiate between 17-bit and 18-bit branch offsets.
9004 (MOVEP1, MOVEP2): New mode iterator.
9005 (mov_<load>l): Use ZC constraint.
9006 (mov_<load>r): Likewise.
9007 (mov_<store>l): Likewise.
9008 (mov_<store>r): Likewise.
9009 (*branch_equality<mode>_inverted): Add microMIPS support.
9010 (*branch_equality<mode>): Likewise.
9011 (*jump_absolute): Likewise.
9012 (indirect_jump_<mode>): Likewise.
9013 (tablejump_<mode>): Likewise.
9014 (<optab>_internal): Likewise.
9015 (sibcall_internal): Likewise.
9016 (sibcall_value_internal): Likewise.
9017 (prefetch): Use constraint ZD.
9018 * config/mips/mips.opt (minterlink-compressed): New option.
9019 (minterlink-mips16): Now an alias for minterlink-compressed.
9020 (mmicromips): New option.
9021 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9022 (compare_and_swap_12): Likewise.
9023 (sync_add<mode>): Likewise.
9024 (sync_<optab>_12): Likewise.
9025 (sync_old_<optab>_12): Likewise.
9026 (sync_new_<optab>_12): Likewise.
9027 (sync_nand_12): Likewise.
9028 (sync_old_nand_12): Likewise.
9029 (sync_new_nand_12): Likewise.
9030 (sync_sub<mode>): Likewise.
9031 (sync_old_add<mode>): Likewise.
9032 (sync_old_sub<mode>): Likewise.
9033 (sync_new_add<mode>): Likewise.
9034 (sync_new_sub<mode>): Likewise.
9035 (sync_<optab><mode>): Likewise.
9036 (sync_old_<optab><mode>): Likewise.
9037 (sync_new_<optab><mode>): Likewise.
9038 (sync_nand<mode>): Likewise.
9039 (sync_old_nand<mode>): Likewise.
9040 (sync_new_nand<mode>): Likewise.
9041 (sync_lock_test_and_set<mode>): Likewise.
9042 (test_and_set_12): Likewise.
9043 (atomic_compare_and_swap<mode>): Likewise.
9044 (atomic_exchange<mode>_llsc): Likewise.
9045 (atomic_fetch_add<mode>_llsc): Likewise.
9046 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9047 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9048 (umips_save_restore_pattern_p): Likewise.
9049 (umips_load_store_pair_p): Likewise.
9050 (umips_output_load_store_pair): Likewise.
9051 (umips_movep_target_p): Likewise.
9052 (umips_12bit_offset_address_p): Likewise.
9053 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9054 (mips_base_mips16): Rename this...
9055 (mips_base_compression_flags): ...to this. Update all uses.
9056 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9057 (mips_mips16_decl_p): Delete.
9058 (mips_nomips16_decl_p): Delete.
9059 (mips_get_compress_on_flags): New function.
9060 (mips_get_compress_off_flags): New function.
9061 (mips_get_compress_mode): New function.
9062 (mips_get_compress_on_name): New function.
9063 (mips_get_compress_off_name): New function.
9064 (mips_insert_attributes): Support multiple compression types.
9065 (mips_merge_decl_attributes): Likewise.
9066 (umips_12bit_offset_address_p): New function.
9067 (mips_start_function_definition): Emit .set micromips directive.
9068 (mips_call_may_need_jalx_p): New function.
9069 (mips_function_ok_for_sibcall): Add microMIPS support.
9070 (mips_print_operand_punctuation): Support short delay slots and
9072 (umips_swm_mask, umips_swm_encoding): New.
9073 (umips_build_save_restore): New function.
9074 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9075 (was_mips16_p): Remove.
9076 (old_compression_mode): New.
9077 (mips_set_compression_mode): New function.
9078 (mips_set_current_function): Add microMIPS support.
9079 (mips_option_override): Likewise.
9080 (umips_save_restore_pattern_p): New function.
9081 (umips_output_save_restore): New function.
9082 (umips_load_store_pair_p_1): New function.
9083 (umips_load_store_pair_p): New function.
9084 (umips_output_load_store_pair_1): New function.
9085 (umips_output_load_store_pair): New function.
9086 (umips_movep_target_p) New function.
9087 (mips_prepare_pch_save): Add microMIPS support.
9088 * config/mips/mips.h (TARGET_COMPRESSION): New.
9089 (TARGET_CPU_CPP_BUILTINS): Update macro
9090 to use new compression flags and to support microMIPS.
9091 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9092 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9093 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9094 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9095 (ASM_SPEC): Support mmicromips and mno-micromips.
9096 (M16STORE_REG_P): New macro.
9097 (MIPS_CALL): Support TARGET_MICROMIPS.
9098 (MICROMIPS_J): New macro.
9099 (mips_base_mips16): Rename this...
9100 (mips_base_compression_flags): ...to this.
9101 (UMIPS_12BIT_OFFSET_P): New macro.
9102 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9103 (MULTILIB_DIRNAMES): Likewise.
9104 2013-03-20 Richard Biener <rguenther@suse.de>
9106 PR tree-optimization/56661
9107 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9108 the result does not have to be distinct.
9110 2013-03-20 Richard Biener <rguenther@suse.de>
9112 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9115 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9116 Steven Bosscher <steven@gcc.gnu.org>
9118 PR rtl-optimization/56605
9119 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9121 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9124 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9125 that require movd instead of movq.
9127 2013-03-20 Richard Biener <rguenther@suse.de>
9129 * tree-ssa-structalias.c (struct variable_info): Add pointer
9130 to the first field of an aggregate with sub-vars. Make
9131 this and the pointer to the next subfield its ID.
9132 (vi_next): New function.
9133 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9134 storedanything_id, integer_id): Increment by one.
9135 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9136 get_call_clobber_vi): Adjust.
9137 (solution_set_expand): Simplify and speedup.
9138 (solution_set_add): Inline into ...
9139 (set_union_with_increment): ... this. Adjust accordingly.
9140 (do_sd_constraint): Likewise.
9141 (do_ds_constraint): Likewise.
9142 (do_complex_constraint): Simplify.
9143 (build_pred_graph): Adjust.
9144 (solve_graph): Likewise. Simplify and speedup.
9145 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9146 get_constraint_for_component_ref, get_constraint_for_1,
9147 first_vi_for_offset, first_or_preceding_vi_for_offset,
9148 create_function_info_for, create_variable_info_for_1,
9149 create_variable_info_for, intra_create_variable_infos): Adjust.
9150 (init_base_vars): Push NULL for ID zero.
9151 (compute_points_to_sets): Adjust.
9153 2013-03-20 Richard Biener <rguenther@suse.de>
9155 * cfgloop.c (verify_loop_structure): Streamline and avoid
9156 ICEing on corrupt loop tree.
9157 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9160 2013-03-20 Richard Biener <rguenther@suse.de>
9162 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9163 check whether an SSA update is needed.
9165 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9167 * config/mips/constraints.md (T): Rename to...
9171 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9172 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9174 2013-03-19 Ian Bolton <ian.bolton@arm.com>
9176 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9177 (*subsi3_carryin_uxtw): Likewise.
9179 2013-03-19 Ian Bolton <ian.bolton@arm.com>
9181 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9182 (*rorsi3_insn_uxtw): Likewise.
9184 2013-03-19 Ian Bolton <ian.bolton@arm.com>
9186 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9187 (*extrsi5_insn_uxtw): Likewise.
9189 2013-03-19 Richard Biener <rguenther@suse.de>
9191 PR tree-optimization/56273
9192 * passes.c (init_optimization_passes): Move second VRP after DOM.
9194 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
9196 * config/i386/i386.md (*movti_internal): Merge from
9197 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9198 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9199 nox64 isa attributes.
9201 2013-03-18 Richard Biener <rguenther@suse.de>
9203 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9205 (merge_node_constraints): Likewise.
9206 (build_succ_graph): Likewise.
9207 (valid_graph_edge): Inline into single caller.
9208 (unify_nodes): Likewise. Use bitmap_set_bit return value
9210 (scc_visit): Fix formatting and variable use.
9211 (do_sd_constraint): Use gcc_checking_assert.
9212 (do_ds_constraint): Likewise.
9213 (do_complex_constraint): Likewise.
9214 (condense_visit): Likewise. Cleanup.
9215 (dump_pred_graph): New function.
9216 (perform_var_substitution): Dump the pred-graph before
9217 variable substitution.
9218 (find_equivalent_node): Use gcc_checking_assert.
9219 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9221 2013-03-18 Richard Biener <rguenther@suse.de>
9223 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9224 Remove cond_expr_stmt_list argument and do not gimplify the
9226 (vect_loop_versioning): Adjust.
9227 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9228 Cleanup to use less temporaries.
9229 (vect_create_data_ref_ptr): Cleanup.
9231 2013-03-18 Jakub Jelinek <jakub@redhat.com>
9233 PR tree-optimization/56635
9234 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9235 require types_compatible_p types.
9237 2013-03-18 Nick Clifton <nickc@redhat.com>
9239 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9242 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9243 Add missing line to comment describing function.
9245 2013-03-18 Richard Biener <rguenther@suse.de>
9247 PR tree-optimization/56210
9248 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9249 Handle string / character search functions.
9250 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9252 2013-03-18 Richard Biener <rguenther@suse.de>
9255 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9256 and implement properly.
9257 * gimple.h (gimple_cond_single_var_p): Remove.
9259 2013-03-18 Richard Biener <rguenther@suse.de>
9261 * tree-data-ref.h (find_data_references_in_loop): Declare.
9262 * tree-data-ref.c (get_references_in_stmt): Use a stack
9263 vector pre-allocated in the callers.
9264 (find_data_references_in_stmt): Adjust.
9265 (graphite_find_data_references_in_stmt): Likewise.
9266 (create_rdg_vertices): Likewise.
9267 (find_data_references_in_loop): Export.
9268 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9269 Compute dependences here...
9270 (vect_analyze_data_refs): ...not here. When we encounter
9271 a non-vectorizable data reference in basic-block vectorization
9272 truncate the data reference vector. Do not bother to
9273 fixup data-dependence information for gather loads.
9274 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9275 of data references, as reported.
9277 2013-03-18 Richard Biener <rguenther@suse.de>
9279 PR tree-optimization/3713
9280 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9281 has_constants and expr.
9282 (stmt_has_constants): Properly valueize SSA names when deciding
9283 whether the stmt has constants.
9285 2013-03-18 Richard Biener <rguenther@suse.de>
9287 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9288 whole function when there is nothing to do.
9289 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9290 * tree-vectorizer.c (vectorize_loops): Update virtual and
9291 loop-closed SSA once.
9292 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9294 2013-03-18 Richard Biener <rguenther@suse.de>
9297 * domwalk.c (bb_postorder): New global static.
9298 (cmp_bb_postorder): New function.
9299 (walk_dominator_tree): Replace scheme imposing an order for
9300 visiting dominator sons by one sorting them at the time they
9301 are pushed on the stack.
9303 2013-03-18 Richard Biener <rguenther@suse.de>
9305 PR tree-optimization/39326
9306 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9307 (struct mem_ref): Replace mem member with ao_ref typed member.
9308 (MEM_ANALYZABLE): Adjust.
9309 (memref_eq): Likewise.
9310 (mem_ref_alloc): Likewise.
9311 (gather_mem_refs_stmt): Likewise.
9312 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9313 (execute_sm_if_changed_flag_set): Adjust.
9314 (execute_sm): Likewise.
9315 (ref_always_accessed_p): Likewise.
9316 (refs_independent_p): Likewise.
9317 (can_sm_ref_p): Likewise.
9319 2013-03-18 Jakub Jelinek <jakub@redhat.com>
9322 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9323 return 1 even for !unsignedp.
9325 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
9327 * config/i386/i386.md (isa): Add x64 and nox64.
9328 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9329 (*pushtf): Enable *roF alternative for x64 isa only.
9330 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9331 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9332 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9333 (*movtf_internal): Merge from *movtf_internal_rex64 and
9334 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9335 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9336 nox64 isa attributes.
9337 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9338 nox64 isa attributes.
9339 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9341 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
9343 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9345 2013-03-17 Jakub Jelinek <jakub@redhat.com>
9348 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9349 class names. Remove trailing comma after "ALL_REGS".
9351 2013-03-16 Jan Hubicka <jh@suse.cz>
9353 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9354 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9355 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9356 of cgraph_get_create_node.
9357 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9359 2013-03-16 Jason Merrill <jason@redhat.com>
9362 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9363 with DW_AT_default_value.
9365 2013-03-16 Jakub Jelinek <jakub@redhat.com>
9367 * BASE-VER: Set to 4.9.0.
9369 2013-03-14 Andi Kleen <ak@linux.intel.com>
9372 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9373 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9374 Document _x* TSX intrinsics.
9376 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9377 David Holsgrove <david.holsgrove@xilinx.com>
9379 * configure.ac: Add MicroBlaze TLS support detection.
9380 * configure: Regenerate.
9381 * config/microblaze/microblaze-protos.h
9382 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9383 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9384 * config/microblaze/microblaze.c (microblaze_address_type): Add
9385 ADDRESS_TLS and tls_reloc address types.
9386 (microblaze_address_info): Add tls_reloc.
9387 (TARGET_HAVE_TLS): Define.
9388 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9389 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
9390 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9391 load_tls_operand, microblaze_call_tls_get_addr,
9392 microblaze_legitimize_tls_address): New functions.
9393 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9394 (get_base_reg): Use microblaze_tls_symbol_p.
9395 (microblaze_classify_address): Handle TLS.
9396 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9397 label_mentioned_p and microblaze_tls_referenced_p.
9398 (microblaze_legitimize_address): Handle TLS.
9399 (microblaze_address_insns): Handle ADDRESS_TLS.
9400 (pic_address_needs_scratch): Handle TLS.
9401 (print_operand_address): Handle TLS.
9402 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9403 (microblaze_expand_move): Handle TLS.
9404 (microblaze_legitimate_constant_p): Check
9405 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
9406 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9407 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9408 (PIC_OFFSET_TABLE_REGNUM): Set.
9409 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9410 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9411 (addsi3, movsi_internal2, movdf_internal): Update constraints
9412 * config/microblaze/predicates.md (arith_plus_operand): Define
9413 (move_operand): Redefine as move_src_operand,
9414 check microblaze_tls_referenced_p.
9416 2013-03-14 Ian Bolton <ian.bolton@arm.com>
9418 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9419 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9421 2013-03-14 Ian Bolton <ian.bolton@arm.com>
9423 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9426 2013-03-14 Jakub Jelinek <jakub@redhat.com>
9428 PR tree-optimization/53265
9429 * common.opt (Waggressive-loop-optimizations): New option.
9430 * tree-ssa-loop-niter.c: Include tree-pass.h.
9431 (do_warn_aggressive_loop_optimizations): New function.
9432 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9433 if number_of_latch_executions returned constant.
9434 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9435 early. If number_of_latch_executions returned constant, set
9436 nb_iterations_upper_bound back to it.
9437 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9439 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9440 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9442 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9443 (MULTILIB_OSDIRNAMES): Set.
9444 * genmultilib: If defaultosdirname doesn't start with :: , set
9445 defaultosdirname2 instead, clear it and emit two . multilib_raw
9446 entries instead of just one.
9448 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9450 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9451 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9452 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9453 (SUBTARGET_OVERRIDE_OPTIONS): New.
9455 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9458 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9459 (musermode): Convert to Var(TARGET_USERMODE).
9460 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9461 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9462 * config/sh/sh.c (sh_option_override): Use
9463 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9464 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9466 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9468 (udivsi3_i4_single, divsi3_i4_single): Use
9469 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9471 2013-03-13 Dave Korn <dave.korn.cygwin@....>
9473 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9476 2013-03-13 Richard Biener <rguenther@suse.de>
9478 PR tree-optimization/56608
9479 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9480 calls when vectorizing basic-blocks.
9482 2013-03-13 Jakub Jelinek <jakub@redhat.com>
9485 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9488 2013-03-12 Jakub Jelinek <jakub@redhat.com>
9490 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9492 2013-03-11 Jan Hubicka <jh@suse.cz>
9495 * lto-streamer-out.c (output_symbol_p): Skip references from
9496 constructors of external variables.
9498 2013-03-11 Jan Hubicka <jh@suse.cz>
9501 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9503 * emit-rtl.c (verify_rtx_sharing): Likewise.
9504 (copy_insn_1): Likewise.
9505 * rtl.c (copy_rtx): Likewise.
9507 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
9510 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9511 output_operand_lossage message.
9513 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
9516 * arm.c (shift_op): Validate RTL pattern on the fly.
9517 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9520 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9523 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9524 new call patterns that clobber %fr12.
9525 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9526 split and postreload patterns.
9527 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9528 registers %fr12 and %fr12R as call used.
9530 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9532 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9533 (canon_address, record_store, replace_read, check_mem_read_rtx,
9534 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9535 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9536 rest_of_handle_dse): Likewise.
9538 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9541 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9543 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9544 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9545 (save_optabs_if_changed): Replace with...
9546 (init_tree_optimization_optabs): ...this.
9547 * optabs.c (save_optabs_if_changed): Rename to...
9548 (init_tree_optimization_optabs): ...this. Take the optimization node
9549 as argument. Do nothing if the base optabs are already correct.
9550 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9551 to recompute optabs.
9552 * function.h (function): Remove optabs field.
9553 * function.c (invoke_set_current_function_hook): Call
9554 init_tree_optimization_optabs. Use the result to initialize
9557 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
9559 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9560 if GTMA_HAS_NO_INSTRUMENTATION.
9561 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9562 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9563 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9564 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9565 GTMA_HAS_NO_INSTRUMENTATION.
9567 2013-03-08 Jakub Jelinek <jakub@redhat.com>
9569 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9572 2013-03-08 Marek Polacek <polacek@redhat.com>
9573 Jakub Jelinek <jakub@redhat.com>
9575 PR tree-optimization/56478
9576 * predict.c (is_comparison_with_loop_invariant_p): Change the
9577 type of loop_step to tree.
9578 (predict_loops): Adjust.
9579 (predict_iv_comparison): Perform the computations on double_ints.
9581 2013-03-08 Richard Biener <rguenther@suse.de>
9583 PR tree-optimization/56570
9584 * tree-cfg.c (verify_expr_location_1): Verify locations for
9586 * tree-sra.c (create_access_replacement): Strip locations
9587 from DECL_DEBUG_EXPRs.
9589 2013-03-08 Richard Biener <rguenther@suse.de>
9591 * tree-inline.c (expand_call_inline): Do not associate
9592 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9593 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9595 2013-03-08 Richard Biener <rguenther@suse.de>
9597 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9598 or block changes with -Og. Fix for location / block encoding
9599 changes and PHI arguments with locations.
9601 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9603 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9605 (struct output_info): Likewise.
9606 (register_overhead): Remove bad gcc_assert.
9607 (bitmap_find_bit): If there is only a single bitmap element, do not
9608 count a miss as a search.
9609 (print_statistics): Update for counter type changes.
9610 (dump_bitmap_statistics): Likewise. Print headers such that they
9611 are properly lined up with the printed counters.
9613 2013-03-07 Jakub Jelinek <jakub@redhat.com>
9615 PR tree-optimization/56559
9616 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9617 check that it has only a single use.
9619 2013-03-07 Richard Biener <rguenther@suse.de>
9621 * doc/invoke.texi (fwhole-program): Discourage use in combination
9624 2013-03-06 Jakub Jelinek <jakub@redhat.com>
9626 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9628 PR tree-optimization/56539
9629 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9630 instead of GSI_CONTINUE_LINKING as last argument to
9631 force_gimple_operand_gsi. Adjust function comment.
9633 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9637 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9638 promoted mode, convert the result back to the original mode.
9640 2013-03-06 Richard Biener <rguenther@suse.de>
9643 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9644 (insert_updated_phi_nodes_compare_uids): New function.
9645 (update_ssa): Sort symbols_to_rename after UID before
9646 traversing it to insert PHI nodes.
9648 2013-03-06 Richard Biener <rguenther@suse.de>
9651 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9652 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9655 2013-02-13 Richard Biener <rguenther@suse.de>
9658 * varasm.c (output_constant_def_1): Get the decl representing
9659 the constant as argument.
9660 (output_constant_def): Wrap output_constant_def_1.
9661 (make_decl_rtl): Use output_constant_def_1 with the decl
9662 representing the constant.
9663 (build_constant_desc): Optionally re-use a decl already
9664 representing the constant.
9665 (tree_output_constant_def): Adjust.
9667 2013-03-06 Joey Ye <joey.ye@arm.com>
9670 * gcc.c (convert_white_space): New function.
9671 (main): Handles white space in function name.
9673 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9676 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9677 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9678 to SH_DIV_CALL_TABLE for TARGET_SH2.
9679 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9681 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9684 2013-03-05 Sterling Augustine <saugustine@google.com>
9685 Cary Coutant <ccoutant@google.com>
9688 * dwarf2out.c (resolve_addr): Don't call
9689 remove_loc_list_addr_table_entries a second time for the same
9692 2013-03-05 Jakub Jelinek <jakub@redhat.com>
9695 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9696 (avoid_complex_debug_insns): New function.
9697 (expand_debug_locations): Call it.
9699 PR rtl-optimization/56484
9700 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9701 lifetimes of hard registers on small register class machines.
9703 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9705 * config/microblaze/microblaze-protos.h: Rename
9706 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
9707 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
9709 (microblaze_fast_interrupt_function_p): New function.
9710 (microblaze_is_interrupt_handler): Rename to
9711 microblaze_is_interrupt_variant and add fast_interrupt check.
9712 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9713 (save_restore_insns): Likewise.
9714 (compute_frame_size): Likewise.
9715 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9716 (microblaze_globalize_label): Likewise.
9717 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9718 * config/microblaze/microblaze.md: Use wrapper
9719 microblaze_is_interrupt_variant.
9721 2013-03-05 Kai Tietz <ktietz@redhat.com>
9723 * sdbout.c (sdbout_one_type): Switch to current function's section
9724 supporting cold/hot.
9726 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9728 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9731 2013-03-05 Jakub Jelinek <jakub@redhat.com>
9734 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9735 if VALGRIND_GET_VBITS is defined, temporarily make object
9736 memory all defined, and restore previous valgrind addressability
9737 and definability afterwards. Free this_object at the end.
9740 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9741 right before calling lra_create_live_ranges, also call it
9742 when clearing live_p. Only call lra_clear_live_ranges
9743 at the end if live_p.
9746 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9748 2013-03-05 Richard Biener <rguenther@suse.de>
9750 PR tree-optimization/56521
9751 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9754 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9757 * except.h (remove_unreachable_eh_regions): New prototype.
9758 * except.c (remove_eh_handler_splicer): New function, split out
9759 of remove_eh_handler.
9760 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9761 warning about running it on many EH regions one at a time.
9762 (remove_unreachable_eh_regions_worker): New function, walk the
9763 EH tree in depth-first order and remove non-marked regions.
9764 (remove_unreachable_eh_regions): New function.
9765 * tree-eh.c (mark_reachable_handlers): New function, split out
9766 from remove_unreachable_handlers.
9767 (remove_unreachable_handlers): Use mark_reachable_handlers and
9768 remove_unreachable_eh_regions.
9769 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9770 and remove_unreachable_eh_regions.
9772 2013-03-05 Richard Biener <rguenther@suse.de>
9775 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9776 not freeing them until the end.
9778 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9780 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9782 2013-03-05 Richard Biener <rguenther@suse.de>
9784 PR tree-optimization/56270
9785 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9786 of loads after scheduling an SLP instance.
9788 2013-03-05 Jakub Jelinek <jakub@redhat.com>
9790 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9792 (check_gcc_parallelize): Run guality.exp as a separate job from
9793 vect.exp with unsorted.exp and $(dg_target_exps) separately from
9794 struct-layout-1.exp with stackalign.exp.
9796 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9799 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9800 load_index sbitmap even if some bit in it isn't set.
9803 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9804 (discover_iteration_bound_by_body_walk): Change queues to
9805 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
9806 spelling in comment. Call safe_push on queues[bound_index] directly.
9807 Release queues[queue_index] in every iteration unconditionally.
9808 Release bounds vector.
9811 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9812 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9813 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9816 2013-03-05 Richard Biener <rguenther@suse.de>
9819 * tree-inline.c (remap_blocks_to_null): New function.
9820 (expand_call_inline): When expanding a call stmt without
9821 an associated block inline remap all callee blocks to NULL.
9823 2013-03-05 Jakub Jelinek <jakub@redhat.com>
9825 PR rtl-optimization/56494
9826 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9827 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9828 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9831 * sel-sched-ir.c (free_sched_pools): Release
9832 succs_info_pool.stack[succs_info_pool.max_top] vectors too
9833 if succs_info_pool.max_top isn't -1.
9836 * opts.c (opts_obstack, opts_concat): Moved to...
9837 * opts-common.c (opts_obstack, opts_concat): ... here.
9839 2013-03-04 Jakub Jelinek <jakub@redhat.com>
9842 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9844 2013-03-04 Martin Jambor <mjambor@suse.cz>
9846 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9847 all appropriate places.
9849 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
9851 PR tree-optimization/56424
9852 * ipa-split.c (split_function): Do not set the RSO flag if result is
9853 not by reference and its type is a register type.
9855 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
9857 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
9858 (microblaze_legitimate_pic_operand): Likewise
9859 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
9860 new function microblaze_legitimate_pic_operand
9861 * config/microblaze/microblaze-protos.h
9862 (microblaze_legitimate_pic_operand): Declare.
9864 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9866 * config/microblaze/predicates.md (call_insn_simple_operand):
9867 New predicate for supported rtx code types.
9868 * config/microblaze/microblaze.md (call_internal1): Use
9869 call_insn_simple_operand predicate.
9871 2013-03-04 Jakub Jelinek <jakub@redhat.com>
9874 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9875 partitions.ordered_remove.
9878 * tree-vect-stmts.c (vectorizable_conversion): Don't call
9879 vec_oprnds0.create (1) for modifier == NONE.
9882 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9883 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9884 vec_oprnds1 right before pushing anything to it for
9888 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9889 set nbbs to 0 instead of having separate code path.
9890 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9891 instead of false as last argument if returning NULL.
9893 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
9895 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9896 the attribute is now called "target" instead of "option".
9897 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9898 * doc/tm.texi.in (Target Attributes): Likewise document the correct
9899 attribute/pragma name for TARGET_OPTION_VALID_P and
9900 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
9901 * doc/tm.texi: Regenerated.
9903 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
9905 * config/microblaze/microblaze.c:
9906 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
9907 * config/microblaze/microblaze.h: Add -mxl-reorder to
9909 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9910 instructions emitted if TARGET_REORDER.
9911 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9912 or 0 for -m/-mno case, but initialises as 2 to detect default use case
9915 2013-03-01 Xinliang David Li <davidxl@google.com>
9917 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9920 2013-03-01 Jakub Jelinek <jakub@redhat.com>
9923 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9924 vector even when returning true. Fix up function comment formatting.
9927 * ira-build.c (ira_loop_nodes_count): New variable.
9928 (create_loop_tree_nodes): Initialize it.
9929 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9932 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9933 method on dr_chain and result_chain.
9934 * tree-vect-stmts.c (vectorizable_store): Only call
9935 result_chain.create if j == 0.
9938 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9939 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9940 before overwriting it.
9942 2013-03-01 Tobias Burnus <burnus@net-b.de>
9944 * doc/extended.texi (C Extensions): Change order in @menu
9946 (Other MIPS Built-in Functions): Move last MIPS entry before
9947 "picoChip Built-in Functions".
9948 (SH Built-in Functions): Move after RX Built-in Functions.
9949 * doc/gcc.texi (Introduction): Change order in @menu
9951 * doc/md.texi (Constraints): Ditto.
9952 * gty.texi (Type Information): Ditto.
9953 (User-provided marking routines for template types): Make
9955 * doc/invoke.texi (AArch64 Options): Move before
9956 "Adapteva Epiphany Options".
9958 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9959 Jakub Jelinek <jakub@redhat.com>
9962 * asan.c (gate_asan): Lookup no_sanitize_address instead of
9963 no_address_safety_analysis attribute.
9964 * doc/extend.texi (no_address_safety_attribute): Rename to
9965 no_sanitize_address attribute, mention no_address_safety_analysis
9966 attribute as deprecated alias.
9968 2013-02-28 Jakub Jelinek <jakub@redhat.com>
9971 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9972 type to vec<vec<tree> > *.
9973 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
9974 to be vec<tree> instead of vec<tree> *, set vec_defs
9975 to vNULL and call vec_defs.create (number_of_vects), adjust other
9977 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9978 vectorizable_condition): Adjust vect_get_slp_defs callers.
9980 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9982 * config/aarch64/aarch64.c
9983 (aarch64_float_const_representable): Remove unused variable.
9985 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9987 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9989 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9991 * config/aarch64/aarch64-builtins.c
9992 (aarch64_init_simd_builtins): Make static.
9994 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9996 * config/aarch64/aarch64.c
9997 (aarch64_simd_make_constant): Make static.
9999 2013-02-28 Martin Jambor <mjambor@suse.cz>
10001 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10002 with no initialization to the RHS of debug statements.
10004 2013-02-28 Martin Jambor <mjambor@suse.cz>
10006 PR tree-optimization/56294
10007 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10009 (get_access_replacement): Do not call create_access_replacement.
10010 Assert a replacement exists.
10011 (get_repl_default_def_ssa_name): Create the replacement declaration
10014 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10016 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10017 final_end_function.
10019 2013-02-28 Marek Polacek <polacek@redhat.com>
10021 PR rtl-optimization/56466
10022 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10023 if we're changing a loop.
10024 (peel_loops_completely): Likewise.
10026 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10029 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10031 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10034 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10035 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10036 INTX_FTYPE_FX, FX_FTYPE_INTX.
10037 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10039 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10041 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10042 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10043 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10044 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10045 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10046 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10047 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10048 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10049 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10050 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10051 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10052 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10053 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10054 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10055 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10056 (avrxmega6): Increase max flash segments from 5 to 6.
10057 * config/avr/t-multilib: Regenerate.
10058 * config/avr/avr-tables.opt: Regenerate.
10059 * doc/avr-mmcu.texi: Regenerate.
10061 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10063 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10064 (avr_device_to_arch): Rename to avr_device_to_ld.
10065 (avr_device_to_as): New prototype.
10066 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10067 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10068 * config/avr/driver-avr.c (avr_device_to_as): New.
10069 (avr_device_to_arch): Rename to avr_device_to_ld.
10071 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10073 PR middle-end/56461
10074 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10075 method on dr_chain and result_chain.
10077 PR middle-end/56461
10078 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10079 pointer_set_destroy on not_executed_last_iteration.
10081 PR middle-end/56461
10082 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10084 PR middle-end/56461
10085 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10086 FOR_EACH_DEFINED_FUNCTION when freeing state.
10088 PR middle-end/56461
10089 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10091 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10094 PR middle-end/56461
10095 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10096 known_aggs[i].items and release known_aggs vector.
10098 PR middle-end/56461
10099 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10101 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10103 * config/microblaze/microblaze.c (microblaze_emit_compare):
10104 Use xor for EQ/NE comparisions.
10105 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10106 (cbranchsf4): Adjust operator to comparison_operator.
10108 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10110 PR middle-end/56461
10111 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10113 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10114 vec_safe_push, always update *slot.
10115 (redirect_edge_var_map_clear): Use vec_free.
10116 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10117 (free_var_map_entry): Use vec_free.
10118 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10119 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10121 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
10123 PR middle-end/45472
10124 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10125 when the may_trap_p bit of the exprs being merged differs.
10126 Reorder tests for speculativeness in the logical and operator.
10128 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10130 * incpath.c (add_standard_paths): Use reconcat instead of concat
10131 where appropriate and avoid leaking memory.
10133 * opts.h: Include obstack.h.
10134 (opts_concat): New prototype.
10135 (opts_obstack): New declaration.
10136 * opts.c (opts_concat): New function.
10137 (opts_obstack): New variable.
10138 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10139 (finish_options): Use opts_concat instead of concat
10140 and XOBNEWVEC instead of XNEWVEC.
10141 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10142 generate_option): Likewise.
10143 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10144 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10147 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10148 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10150 2013-02-26 Jakub Jelinek <jakub@redhat.com>
10152 PR middle-end/56461
10153 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10155 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10157 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10158 (arm_block_move_unaligned_straight): Likewise.
10159 (arm_adjust_block_mem): Likewise.
10161 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10164 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10165 temp, cond and label.
10166 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10169 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10170 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10173 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10174 of prologue/epilogue functions.
10177 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10178 Remove unused variable cfa_offset.
10179 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10182 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10183 type promotion to unsigned.
10186 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10187 for HOST_WIDE_INT of 32 bit / same size as int.
10188 (arm_block_move_unaligned_straight): Likewise.
10189 (arm_adjust_block_mem): Likewise.
10192 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10195 2013-02-26 Marek Polacek <polacek@redhat.com>
10197 PR tree-optimization/56426
10198 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
10200 2013-02-26 Richard Biener <rguenther@suse.de>
10203 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10204 unused variable loops.
10206 2013-02-26 Jakub Jelinek <jakub@redhat.com>
10208 PR tree-optimization/56448
10209 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10210 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10211 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10212 later operands of the references, or even first operand for
10213 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10215 PR tree-optimization/56443
10216 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10217 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10218 to type_for_mode langhook.
10220 2013-02-25 Matt Turner <mattst88@gmail.com>
10222 * doc/invoke.texi: Document r4700.
10224 2013-02-25 Richard Biener <rguenther@suse.de>
10226 PR tree-optimization/56175
10227 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10229 (simplify_bitwise_binary): ... here. Also guard the conversion
10230 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10232 2013-02-25 Catherine Moore <clm@codesourcery.com>
10235 2013-02-24 Catherine Moore <clm@codesourcery.com>
10236 Maciej W. Rozycki <macro@codesourcery.com>
10237 Tom de Vries <tom@codesourcery.com>
10238 Nathan Sidwell <nathan@codesourcery.com>
10239 Iain Sandoe <iain@codesourcery.com>
10240 Nathan Froyd <froydnj@codesourcery.com>
10241 Chao-ying Fu <fu@mips.com>
10243 * doc/extend.texi: (micromips, nomicromips, nocompression):
10244 Document new function attributes.
10245 * doc/invoke.texi (minterlink-compressed, mmicromips,
10246 m14k, m14ke, m14kec): Document new options.
10247 (minterlink-mips16): Update documentation.
10248 * doc/md.texi (ZC, ZD): Document new constraints.
10249 * configure.ac (gcc_cv_as_micromips): Check if linker
10250 supports the .set micromips directive.
10251 * configure: Regenerate.
10252 * config.in: Regenerate.
10253 * config/mips/mips-tables.opt: Regenerate.
10254 * config/mips/micromips.md: New file.
10255 * constraints.md (ZC, AD): New constraints.
10256 * config/mips/predicates.md (movep_src_register): New predicate.
10257 (movep_src_operand): New predicate.
10258 (non_volatile_mem_operand): New predicate.
10259 * config/mips/mips.md (multimem): New type.
10260 (length): Differentiate between 17-bit and 18-bit branch offsets.
10261 (MOVEP1, MOVEP2): New mode iterator.
10262 (mov_<load>l): Use ZC constraint.
10263 (mov_<load>r): Likewise.
10264 (mov_<store>l): Likewise.
10265 (mov_<store>r): Likewise.
10266 (*branch_equality<mode>_inverted): Add microMIPS support.
10267 (*branch_equality<mode>): Likewise.
10268 (*jump_absolute): Likewise.
10269 (indirect_jump_<mode>): Likewise.
10270 (tablejump_<mode>): Likewise.
10271 (<optab>_internal): Likewise.
10272 (sibcall_internal): Likewise.
10273 (sibcall_value_internal): Likewise.
10274 (prefetch): Use constraint ZD.
10275 * config/mips/mips.opt (minterlink-compressed): New option.
10276 (minterlink-mips16): Now an alias for minterlink-compressed.
10277 (mmicromips): New option.
10278 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10279 (compare_and_swap_12): Likewise.
10280 (sync_add<mode>): Likewise.
10281 (sync_<optab>_12): Likewise.
10282 (sync_old_<optab>_12): Likewise.
10283 (sync_new_<optab>_12): Likewise.
10284 (sync_nand_12): Likewise.
10285 (sync_old_nand_12): Likewise.
10286 (sync_new_nand_12): Likewise.
10287 (sync_sub<mode>): Likewise.
10288 (sync_old_add<mode>): Likewise.
10289 (sync_old_sub<mode>): Likewise.
10290 (sync_new_add<mode>): Likewise.
10291 (sync_new_sub<mode>): Likewise.
10292 (sync_<optab><mode>): Likewise.
10293 (sync_old_<optab><mode>): Likewise.
10294 (sync_new_<optab><mode>): Likewise.
10295 (sync_nand<mode>): Likewise.
10296 (sync_old_nand<mode>): Likewise.
10297 (sync_new_nand<mode>): Likewise.
10298 (sync_lock_test_and_set<mode>): Likewise.
10299 (test_and_set_12): Likewise.
10300 (atomic_compare_and_swap<mode>): Likewise.
10301 (atomic_exchange<mode>_llsc): Likewise.
10302 (atomic_fetch_add<mode>_llsc): Likewise.
10303 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10304 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10305 (umips_save_restore_pattern_p): Likewise.
10306 (umips_load_store_pair_p): Likewise.
10307 (umips_output_load_store_pair): Likewise.
10308 (umips_movep_target_p): Likewise.
10309 (umips_12bit_offset_address_p): Likewise.
10310 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10311 (mips_base_mips16): Rename this...
10312 (mips_base_compression_flags): ...to this. Update all uses.
10313 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10314 (mips_mips16_decl_p): Delete.
10315 (mips_nomips16_decl_p): Delete.
10316 (mips_get_compress_on_flags): New function.
10317 (mips_get_compress_off_flags): New function.
10318 (mips_get_compress_mode): New function.
10319 (mips_get_compress_on_name): New function.
10320 (mips_get_compress_off_name): New function.
10321 (mips_insert_attributes): Support multiple compression types.
10322 (mips_merge_decl_attributes): Likewise.
10323 (umips_12bit_offset_address_p): New function.
10324 (mips_start_function_definition): Emit .set micromips directive.
10325 (mips_call_may_need_jalx_p): New function.
10326 (mips_function_ok_for_sibcall): Add microMIPS support.
10327 (mips_print_operand_punctuation): Support short delay slots and
10329 (umips_swm_mask, umips_swm_encoding): New.
10330 (umips_build_save_restore): New function.
10331 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10332 (was_mips16_p): Remove.
10333 (old_compression_mode): New.
10334 (mips_set_compression_mode): New function.
10335 (mips_set_current_function): Add microMIPS support.
10336 (mips_option_override): Likewise.
10337 (umips_save_restore_pattern_p): New function.
10338 (umips_output_save_restore): New function.
10339 (umips_load_store_pair_p_1): New function.
10340 (umips_load_store_pair_p): New function.
10341 (umips_output_load_store_pair_1): New function.
10342 (umips_output_load_store_pair): New function.
10343 (umips_movep_target_p) New function.
10344 (mips_prepare_pch_save): Add microMIPS support.
10345 * config/mips/mips.h (TARGET_COMPRESSION): New.
10346 (TARGET_CPU_CPP_BUILTINS): Update macro
10347 to use new compression flags and to support microMIPS.
10348 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10349 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10350 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10351 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10352 (ASM_SPEC): Support mmicromips and mno-micromips.
10353 (M16STORE_REG_P): New macro.
10354 (MIPS_CALL): Support TARGET_MICROMIPS.
10355 (MICROMIPS_J): New macro.
10356 (mips_base_mips16): Rename this...
10357 (mips_base_compression_flags): ...to this.
10358 (UMIPS_12BIT_OFFSET_P): New macro.
10359 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10360 (MULTILIB_DIRNAMES): Likewise.
10362 2013-02-25 Tom de Vries <tom@codesourcery.com>
10364 PR rtl-optimization/56131
10365 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10366 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10367 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10369 2013-02-25 Tobias Burnus <burnus@net-b.de>
10371 * doc/invoke.texi (-fsanitize=): Move from optimization
10372 to debugging options.
10374 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
10376 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10378 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
10379 Alexander Monakov <amonakov@ispras.ru>
10381 PR middle-end/56077
10382 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10383 flush pending lists also on non-jumps. Adjust comment.
10385 2013-02-24 Catherine Moore <clm@codesourcery.com>
10386 Maciej W. Rozycki <macro@codesourcery.com>
10387 Tom de Vries <tom@codesourcery.com>
10388 Nathan Sidwell <nathan@codesourcery.com>
10389 Iain Sandoe <iain@codesourcery.com>
10390 Nathan Froyd <froydnj@codesourcery.com>
10391 Chao-ying Fu <fu@mips.com>
10393 * doc/extend.texi: (micromips, nomicromips, nocompression):
10394 Document new function attributes.
10395 * doc/invoke.texi (minterlink-compressed, mmicromips,
10396 m14k, m14ke, m14kec): Document new options.
10397 (minterlink-mips16): Update documentation.
10398 * doc/md.texi (ZC, ZD): Document new constraints.
10399 * configure.ac (gcc_cv_as_micromips): Check if linker
10400 supports the .set micromips directive.
10401 * configure: Regenerate.
10402 * config.in: Regenerate.
10403 * config/mips/mips-tables.opt: Regenerate.
10404 * config/mips/micromips.md: New file.
10405 * constraints.md (ZC, AD): New constraints.
10406 * config/mips/predicates.md (movep_src_register): New predicate.
10407 (movep_src_operand): New predicate.
10408 (non_volatile_mem_operand): New predicate.
10409 * config/mips/mips.md (multimem): New type.
10410 (length): Differentiate between 17-bit and 18-bit branch offsets.
10411 (MOVEP1, MOVEP2): New mode iterator.
10412 (mov_<load>l): Use ZC constraint.
10413 (mov_<load>r): Likewise.
10414 (mov_<store>l): Likewise.
10415 (mov_<store>r): Likewise.
10416 (*branch_equality<mode>_inverted): Add microMIPS support.
10417 (*branch_equality<mode>): Likewise.
10418 (*jump_absolute): Likewise.
10419 (indirect_jump_<mode>): Likewise.
10420 (tablejump_<mode>): Likewise.
10421 (<optab>_internal): Likewise.
10422 (sibcall_internal): Likewise.
10423 (sibcall_value_internal): Likewise.
10424 (prefetch): Use constraint ZD.
10425 * config/mips/mips.opt (minterlink-compressed): New option.
10426 (minterlink-mips16): Now an alias for minterlink-compressed.
10427 (mmicromips): New option.
10428 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10429 (compare_and_swap_12): Likewise.
10430 (sync_add<mode>): Likewise.
10431 (sync_<optab>_12): Likewise.
10432 (sync_old_<optab>_12): Likewise.
10433 (sync_new_<optab>_12): Likewise.
10434 (sync_nand_12): Likewise.
10435 (sync_old_nand_12): Likewise.
10436 (sync_new_nand_12): Likewise.
10437 (sync_sub<mode>): Likewise.
10438 (sync_old_add<mode>): Likewise.
10439 (sync_old_sub<mode>): Likewise.
10440 (sync_new_add<mode>): Likewise.
10441 (sync_new_sub<mode>): Likewise.
10442 (sync_<optab><mode>): Likewise.
10443 (sync_old_<optab><mode>): Likewise.
10444 (sync_new_<optab><mode>): Likewise.
10445 (sync_nand<mode>): Likewise.
10446 (sync_old_nand<mode>): Likewise.
10447 (sync_new_nand<mode>): Likewise.
10448 (sync_lock_test_and_set<mode>): Likewise.
10449 (test_and_set_12): Likewise.
10450 (atomic_compare_and_swap<mode>): Likewise.
10451 (atomic_exchange<mode>_llsc): Likewise.
10452 (atomic_fetch_add<mode>_llsc): Likewise.
10453 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10454 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10455 (umips_save_restore_pattern_p): Likewise.
10456 (umips_load_store_pair_p): Likewise.
10457 (umips_output_load_store_pair): Likewise.
10458 (umips_movep_target_p): Likewise.
10459 (umips_12bit_offset_address_p): Likewise.
10460 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10461 (mips_base_mips16): Rename this...
10462 (mips_base_compression_flags): ...to this. Update all uses.
10463 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10464 (mips_mips16_decl_p): Delete.
10465 (mips_nomips16_decl_p): Delete.
10466 (mips_get_compress_on_flags): New function.
10467 (mips_get_compress_off_flags): New function.
10468 (mips_get_compress_mode): New function.
10469 (mips_get_compress_on_name): New function.
10470 (mips_get_compress_off_name): New function.
10471 (mips_insert_attributes): Support multiple compression types.
10472 (mips_merge_decl_attributes): Likewise.
10473 (umips_12bit_offset_address_p): New function.
10474 (mips_start_function_definition): Emit .set micromips directive.
10475 (mips_call_may_need_jalx_p): New function.
10476 (mips_function_ok_for_sibcall): Add microMIPS support.
10477 (mips_print_operand_punctuation): Support short delay slots and
10479 (umips_swm_mask, umips_swm_encoding): New.
10480 (umips_build_save_restore): New function.
10481 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10482 (was_mips16_p): Remove.
10483 (old_compression_mode): New.
10484 (mips_set_compression_mode): New function.
10485 (mips_set_current_function): Add microMIPS support.
10486 (mips_option_override): Likewise.
10487 (umips_save_restore_pattern_p): New function.
10488 (umips_output_save_restore): New function.
10489 (umips_load_store_pair_p_1): New function.
10490 (umips_load_store_pair_p): New function.
10491 (umips_output_load_store_pair_1): New function.
10492 (umips_output_load_store_pair): New function.
10493 (umips_movep_target_p) New function.
10494 (mips_prepare_pch_save): Add microMIPS support.
10495 * config/mips/mips.h (TARGET_COMPRESSION): New.
10496 (TARGET_CPU_CPP_BUILTINS): Update macro
10497 to use new compression flags and to support microMIPS.
10498 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10499 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10500 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10501 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10502 (ASM_SPEC): Support mmicromips and mno-micromips.
10503 (M16STORE_REG_P): New macro.
10504 (MIPS_CALL): Support TARGET_MICROMIPS.
10505 (MICROMIPS_J): New macro.
10506 (mips_base_mips16): Rename this...
10507 (mips_base_compression_flags): ...to this.
10508 (UMIPS_12BIT_OFFSET_P): New macro.
10509 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10510 (MULTILIB_DIRNAMES): Likewise.
10512 2013-02-24 Jakub Jelinek <jakub@redhat.com>
10515 * target-globals.c (save_target_globals): For init_reg_sets and
10516 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10518 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10520 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10521 * config/aarch64/t-aarch64
10522 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10524 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10526 PR inline-asm/56148
10527 * lra-constraints.c (process_alt_operands): Reload operand
10528 conflicting with earlier clobber only if no more other conflicting
10531 2013-02-22 Jakub Jelinek <jakub@redhat.com>
10534 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10535 if not linking a shared library.
10537 2013-02-22 Seth LaForge <sethml@google.com>
10539 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10541 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10543 * config/arm/arm.md (split for extendsidi): Update condition.
10544 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10545 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10546 (qhs_zextenddi_cstr): Likewise.
10548 2013-02-21 Jakub Jelinek <jakub@redhat.com>
10550 PR middle-end/56420
10551 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10552 avoid signed wrapping.
10553 (expand_mult): Handle properly multiplication by
10554 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10555 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10556 in the compiler if coeff is HOST_WIDE_INT_MIN.
10557 (expand_divmod): Don't make ext_op1 static, change it's type to
10558 uhwi. Avoid undefined behavior in -INTVAL (op1).
10560 PR rtl-optimization/50339
10561 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10563 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10564 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10565 into splitting_ashiftrt field.
10566 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10568 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10571 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
10573 PR middle-end/56108
10574 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10575 are sure to go irrevocable.
10577 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
10579 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10580 scalars are valid operands.
10582 2013-02-21 Martin Jambor <mjambor@suse.cz>
10584 PR tree-optimization/56310
10585 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10586 only matching indices and non-negative final offsets.
10587 (intersect_aggregates_with_edge): Pass src_idx to
10588 agg_replacements_to_vector. Pass src_idx insstead of index to
10589 intersect_with_agg_replacements.
10591 2013-02-21 Martin Jambor <mjambor@suse.cz>
10593 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10594 instead of hard-wired defaults.
10596 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10598 * doc/invoke.texi (MIPS Options): Update documentation of the
10599 floating-point multiply-accumulate instruction restrictions.
10601 2013-02-21 Kostya Serebryany <kcc@google.com>
10603 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10604 asan_shadow_offset on x86_64 linux.
10606 2013-02-21 Richard Biener <rguenther@suse.de>
10608 PR tree-optimization/56415
10610 2013-02-11 Richard Biener <rguenther@suse.de>
10612 PR tree-optimization/56273
10613 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10616 2013-02-21 Jakub Jelinek <jakub@redhat.com>
10619 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10622 PR inline-asm/56405
10623 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10624 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10626 2013-02-20 Jan Hubicka <jh@suse.cz>
10628 PR tree-optimization/56265
10629 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10630 when target is referenced for first time.
10632 2013-02-20 Richard Biener <rguenther@suse.de>
10634 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10635 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10636 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10637 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10638 not return anything.
10639 (rename_ssa_copies): Do not remove unused locals.
10640 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
10641 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
10642 * passes.c (execute_function_todo): Do not schedule unused locals
10643 removal if cleanup_tree_cfg did something.
10644 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10645 about the number of removed locals.
10647 2013-02-20 Richard Biener <rguenther@suse.de>
10649 PR tree-optimization/56398
10650 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
10652 2013-02-20 Martin Jambor <mjambor@suse.cz>
10654 PR tree-optimization/55334
10655 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10656 restricted pointers to arrays.
10658 2013-02-20 Richard Biener <rguenther@suse.de>
10659 Jakub Jelinek <jakub@redhat.com>
10661 PR tree-optimization/56396
10662 * tree-ssa-ccp.c (n_const_val): New static variable.
10663 (get_value): Return NULL for SSA names we don't have a lattice
10665 (ccp_initialize): Initialize n_const_val.
10666 * tree-ssa-copy.c (n_copy_of): New static variable.
10667 (init_copy_prop): Initialize n_copy_of.
10668 (get_value): Return NULL_TREE for SSA names we don't have a
10671 2013-02-20 Martin Jambor <mjambor@suse.cz>
10673 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10675 2013-02-20 Richard Biener <rguenther@suse.de>
10677 * genpreds.c (write_lookup_constraint): Do not compare first
10678 letter of the constraint again.
10680 2013-02-20 Richard Biener <rguenther@suse.de>
10682 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10684 (get_use_iv_cost): Terminate hashtable walk when coming across
10687 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10689 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10690 reassociation for avx2 targets.
10692 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10694 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10695 Add version check for v8.10.a to enable microblaze_has_clz
10696 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
10697 version and TARGET_PATTERN_COMPARE check
10698 * config/microblaze/microblaze.md: New clzsi2 instruction
10700 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10702 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
10703 function before branching.
10705 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
10707 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10709 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10711 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
10713 PR middle-end/55889
10714 * sel-sched.c: Include ira.h.
10715 (implicit_clobber_conflict_p): New function.
10716 (moveup_expr): Use it.
10717 * Makefile.in (sel-sched.o): Depend on ira.h.
10719 2013-02-19 Richard Biener <rguenther@suse.de>
10721 PR tree-optimization/56384
10722 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10723 (vn_hash_type): Split out from ...
10724 (vn_hash_constant_with_type): ... here.
10725 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10726 (vn_phi_eq): Compare types from vn_phi_s structure.
10727 (vn_phi_lookup): Populate vn_phi_s type.
10728 (vn_phi_insert): Likewise.
10730 2013-02-19 Jakub Jelinek <jakub@redhat.com>
10732 PR tree-optimization/56350
10733 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10734 if haven't found reduction or nested cycle operand, rather than
10735 asserting we must find it.
10737 PR tree-optimization/56381
10738 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10741 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
10742 Jakub Jelinek <jakub@redhat.com>
10745 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10746 (swap_optab_enable): Same.
10747 (init_all_optabs): Use argument instead of global.
10748 * tree.h (struct tree_optimization_option): New field target_optabs.
10749 * expr.h (init_all_optabs): Add argument to prototype.
10750 (TREE_OPTIMIZATION_OPTABS): New.
10751 (save_optabs_if_changed): Protoize.
10752 * optabs.h: Declare this_fn_optabs.
10753 * optabs.c (save_optabs_if_changed): New.
10754 Declare this_fn_optabs.
10755 (init_optabs): Add argument to init_all_optabs() call.
10756 * function.c (invoke_set_current_function_hook): Handle per
10758 * function.h (struct function): New field optabs.
10759 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10760 optimization_current_node has changed.
10761 * target-globals.h (save_target_globals_default_opts): Protoize.
10762 * target-globals.c (save_target_globals_default_opts): New.
10764 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10767 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10768 registers %fr12 and %fr12R as call used.
10771 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
10772 and HImode, require all displacements to be an integer multiple of
10774 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10775 only allow QImode and HImode when reload is in progress and strict is
10776 true. Likewise for symbolic addresses. Use base14_operand to check
10777 displacements in REG+BASE addresses.
10779 2013-02-18 Richard Biener <rguenther@suse.de>
10781 PR tree-optimization/56366
10782 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10783 handle sign-conversion of outer-loop initial induction value.
10785 2013-02-18 Richard Biener <rguenther@suse.de>
10787 PR middle-end/56349
10788 * cfghooks.c (merge_blocks): If we merge a latch into another
10789 block adjust references to it.
10790 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10791 (verify_loop_structure): Verify that a recorded latch is in fact
10794 2013-02-18 Richard Biener <rguenther@suse.de>
10796 PR tree-optimization/56321
10797 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10798 order SSA name release and virtual operand unlinking.
10800 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10802 * config/microblaze/microblaze.md (save_stack_block): Define.
10803 (restore_stack_block): Likewise.
10805 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10807 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10808 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10809 * config/microblaze/microblaze.c (microblaze_option_override):
10810 Bail out early for PIC modes when target does not support PIC.
10812 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10814 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
10815 Replace with a microblaze version.
10816 (microblaze_trampoline_init): Adapt for microblaze.
10817 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
10820 2013-02-16 Jakub Jelinek <jakub@redhat.com>
10821 Dodji Seketeli <dodji@redhat.com>
10824 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
10825 (instrument_mem_region_access): Do not forget to always put
10826 instrumentation of the of 'base' and 'base + len' in a "if (len !=
10827 0) statement, even for cases where either 'base' or 'base + len'
10828 are not instrumented -- because they have been previously
10829 instrumented. Simplify the logic by putting all the statements
10830 instrument 'base + len' inside a sequence, and then insert that
10831 sequence right before the current insertion point. Then, to
10832 instrument 'base + len', just get an iterator on that statement.
10833 And do not forget to update the pointer to iterator the function
10834 received as argument.
10836 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
10838 PR rtl-optimization/56348
10839 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10841 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
10843 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10844 (clean_graph_dump_file): Pass base to start_graph_dump.
10846 2013-02-14 Richard Henderson <rth@redhat.com>
10849 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10851 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
10853 * collect2-aix.h: Define F_LOADONLY.
10855 2013-02-14 Richard Biener <rguenther@suse.de>
10858 * varasm.c (output_constant_def_1): Get the decl representing
10859 the constant as argument.
10860 (output_constant_def): Wrap output_constant_def_1.
10861 (make_decl_rtl): Use output_constant_def_1 with the decl
10862 representing the constant.
10863 (build_constant_desc): Optionally re-use a decl already
10864 representing the constant.
10865 (tree_output_constant_def): Adjust.
10867 2013-02-14 Dodji Seketeli <dodji@redhat.com>
10870 * asan.c (instrument_builtin_call): Really put the length of the
10871 second source argument into src1_len.
10873 2013-02-13 Jakub Jelinek <jakub@redhat.com>
10875 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10876 argument. If it is false, don't create edge from then_bb to
10878 (insert_if_then_before_iter): Pass true to it.
10879 (build_check_stmt): Pass false to it.
10880 (transform_statements): Flush hash table only on extended basic
10881 block boundaries, rather than at the beginning of every bb.
10882 Don't flush hash table on nonfreeing_call_p calls.
10883 * tree-flow.h (nonfreeing_call_p): New prototype.
10884 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10886 2013-02-13 David S. Miller <davem@davemloft.net>
10888 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10890 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
10893 * ira.c (max_regno_before_ira): Move from ...
10895 (fix_reg_equiv_init): Use max_regno_before_ira instead of
10898 2013-02-13 Jakub Jelinek <jakub@redhat.com>
10900 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10902 2013-02-13 Richard Biener <rguenther@suse.de>
10905 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10906 globals in MEM_REFs.
10908 2013-02-13 Richard Biener <rguenther@suse.de>
10910 * loop-init.c (loop_optimizer_init): Clear loop state when
10911 re-initializing preserved loops.
10912 * loop-unswitch.c (unswitch_single_loop): Return whether
10913 we unswitched the loop. Do not verify loop state here.
10914 (unswitch_loops): When we unswitched a loop discover new loops.
10916 2013-02-13 Kostya Serebryany <kcc@google.com>
10918 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10920 * sanitizer.def: Rename __asan_init to __asan_init_v1.
10922 2013-02-12 Dodji Seketeli <dodji@redhat.com>
10924 Avoid instrumenting duplicated memory access in the same basic block
10925 * Makefile.in (asan.o): Add new dependency on hash-table.h
10926 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10927 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10928 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10929 (free_mem_ref_resources, has_mem_ref_been_instrumented)
10930 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10931 (get_mem_ref_of_assignment): New functions.
10932 (get_mem_refs_of_builtin_call): Extract from
10933 instrument_builtin_call and tweak a little bit to make it fit with
10935 (instrument_builtin_call): Use the new
10936 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
10937 of is_gimple_builtin_call.
10938 (instrument_derefs, instrument_mem_region_access): Insert the
10939 instrumented memory reference into the hash table.
10940 (maybe_instrument_assignment): Renamed instrument_assignment into
10941 this, and change it to advance the iterator when instrumentation
10942 actually happened and return true in that case. This makes it
10943 homogeneous with maybe_instrument_assignment, and thus give a
10944 chance to callers to be more 'regular'.
10945 (transform_statements): Clear the memory reference hash table
10946 whenever we enter a new BB, when we cross a function call, or when
10947 we are done transforming statements. Use
10948 maybe_instrument_assignment instead of instrumentation. No more
10949 need to special case maybe_instrument_assignment and advance the
10950 iterator after calling it; it's now handled just like
10951 maybe_instrument_call. Update comment.
10953 2013-02-13 Richard Biener <rguenther@suse.de>
10955 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10956 Fix loop discovery code.
10958 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
10960 PR inline-asm/56148
10961 * lra-constraints.c (process_alt_operands): Match early clobber
10962 operand with itself. Check conflicts with earlyclobber only if
10963 the operand is not reloaded. Prefer to reload conflicting operand
10964 if earlyclobber and matching operands are the same.
10966 2013-02-12 Richard Biener <rguenther@suse.de>
10969 * lto-streamer-out.c (write_symbol): Do not output symbols
10970 for hard register variables.
10972 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
10975 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10976 (umulsidi3_insn, mulsidi3_insn): New insns.
10978 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
10980 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10981 (struct tune_params): Add vec_costs field.
10982 * config/arm/arm.c (arm_builtin_vectorization_cost)
10983 (arm_add_stmt_cost): New functions.
10984 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10985 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10986 (arm_default_vec_cost): New struct of type cpu_vec_costs.
10987 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10988 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10989 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10990 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10992 2013-02-12 Richard Biener <rguenther@suse.de>
10995 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10996 decls again if possible.
10998 2013-02-12 Richard Biener <rguenther@suse.de>
11000 PR middle-end/56288
11001 * tree-ssa.c (verify_ssa_name): Fix check, move
11002 SSA_NAME_IN_FREE_LIST check up.
11004 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11005 Steven Bosscher <steven@gcc.gnu.org>
11007 PR rtl-optimization/56151
11008 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11009 equal to op0 or op1, and last_insn pattern is CODE operation
11010 with MEM dest and one of the operands matches that MEM.
11012 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11014 * doc/extend.texi: Document Function Multiversioning and "default"
11015 parameter string to target attribute.
11016 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11017 target attribute parameter is "default".
11018 (ix86_compare_version_priority): Remove checks for target attribute.
11019 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11020 Remove check for target attribute equal to NULL. Add assert.
11021 (ix86_generate_version_dispatcher_body): Change error to sorry.
11023 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11024 Jack Howarth <howarth@bromo.med.uc.edu>
11025 Patrick Marlier <patrick.marlier@gmail.com>
11028 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11029 define ENDFILE_SPEC as TM_DESTRUCTOR.
11030 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11032 2013-02-11 Alexander Potapenko <glider@google.com>
11033 Jack Howarth <howarth@bromo.med.uc.edu>
11034 Jakub Jelinek <jakub@redhat.com>
11037 * config/darwin.c (cdtor_record): Rename ctor_record.
11038 (sort_cdtor_records): Rename sort_ctor_records.
11039 (finalize_dtors): New routine to sort destructors by
11040 priority before use in assemble_integer.
11041 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11043 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11045 PR rtl-optimization/56275
11046 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11047 offset is non-negative and less than cmode size before
11048 calling simplify_subreg.
11050 2013-02-11 Richard Biener <rguenther@suse.de>
11052 PR tree-optimization/56264
11053 * cfgloop.h (fix_loop_structure): Adjust prototype.
11054 * loop-init.c (fix_loop_structure): Return the number of
11055 newly discovered loops.
11056 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11057 are discovered, do a full loop-closed SSA rewrite.
11059 2013-02-11 Richard Biener <rguenther@suse.de>
11061 PR tree-optimization/56273
11062 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11064 (check_array_ref): Fix missing newline in dumps.
11065 (search_for_addr_array): Likewise.
11067 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11069 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11071 2013-02-09 Jakub Jelinek <jakub@redhat.com>
11074 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11076 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11078 PR rtl-optimization/56246
11079 * lra-constraints.c (simplify_operand_subreg): Try to reuse
11081 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11082 constraints are satisfied.
11084 2013-02-08 Jeff Law <law@redhat.com>
11087 * emit-rtl.c (reg_is_parm_p): New function.
11088 * regs.h (reg_is_parm_p): New prototype.
11089 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11090 callee-clobbered registers.
11092 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11095 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11096 If there is no implicit builtin declaration, just return NULL.
11098 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11100 * config/i386/sse.md (FMAMODEM): New mode iterator.
11101 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11102 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11104 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11106 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11107 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11108 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11110 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11112 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11113 (microblaze*-*-elf): Likewise.
11114 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11116 * config/microblaze/microblaze-c.c: Add builtin defines for
11117 _LITTLE_ENDIAN and _BIG_ENDIAN.
11118 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11119 add to TARGET_DEFAULT flags.
11120 Expand ASM_SPEC and LINK_SPEC.
11121 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11122 * config/microblaze/microblaze.md: Update extendsidi2 and
11123 movdi_internal instructions to use low-order / high-order reg
11125 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11126 options and inversemask / mask of LITTLE_ENDIAN.
11127 * config/microblaze/t-microblaze: Expand multilib options to
11128 include mlittle-endian (le) and update exceptions patterns.
11130 2013-02-08 Jakub Jelinek <jakub@redhat.com>
11132 PR rtl-optimization/56195
11133 * lra-constraints.c (get_reload_reg): Don't reuse regs
11134 if they have smaller mode than requested, if they have
11135 wider mode than requested, try to return a SUBREG.
11137 PR tree-optimization/56250
11138 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11139 if type is unsigned and code isn't MULT_EXPR.
11141 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
11143 PR tree-optimization/56064
11144 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11145 bits according to mode.
11146 * fixed-value.h (fixed_from_double_int)
11147 (const_fixed_from_double_int): Adjust comments.
11149 2013-02-08 Richard Biener <rguenther@suse.de>
11152 * lto-streamer.h (struct data_in): Remove current_file, current_line
11153 and current_col members.
11154 * lto-streamer-out.c (lto_output_location): Stream changed bits
11155 en-block for efficiency.
11156 * lto-streamer-in.c (clear_line_info): Remove.
11157 (lto_input_location): Cache current file, line and column
11158 globally via local statics. Read changed bits en-block.
11159 (input_function): Do not call clear_line_info.
11160 (lto_read_body): Likewise.
11161 (lto_input_toplevel_asms): Likewise.
11163 2013-02-08 Michael Matz <matz@suse.de>
11165 PR tree-optimization/52448
11166 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11167 (nt_call_phase): New static.
11168 (add_or_mark_expr): Only mark accesses with newer phase than any
11170 (nonfreeing_call_p): New.
11171 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11172 (nt_fini_block): Keep blocks marked as visited.
11173 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11175 2013-02-08 Richard Biener <rguenther@suse.de>
11177 * ira.c (ira): Free broken dominator information.
11179 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
11181 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11183 2013-02-08 Marek Polacek <polacek@redhat.com>
11185 * cfgloop.c (verify_loop_structure): Add more checking of headers.
11187 2013-02-08 Richard Biener <rguenther@suse.de>
11189 PR middle-end/56181
11190 * cfgloop.h (flow_loops_find): Adjust.
11191 (bb_loop_header_p): Declare.
11192 * cfgloop.c (bb_loop_header_p): New function split out from ...
11193 (flow_loops_find): ... here. Adjust function signature,
11194 support incremental loop structure update.
11195 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11196 * cfgloopmanip.c (fix_loop_structure): Move ...
11197 * loop-init.c (fix_loop_structure): ... here.
11198 (apply_loop_flags): Split out from ...
11199 (loop_optimizer_init): ... here.
11200 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11201 in incremental mode, only remove dead loops here.
11203 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
11206 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11207 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11208 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11209 (*round<mode>3.libgcc): New insns for fixed-modes.
11210 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11211 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11212 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11213 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11214 implementations. Define to __builtin_avr_absFX,
11215 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11216 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11217 __builtin_avr_countlsFX, respectively.
11218 * config/avr/avr-c.c (target.h): Include it.
11219 (enum avr_builtin_id): New enum.
11220 (avr_resolve_overloaded_builtin): New static function.
11221 (avr_register_target_pragmas): Use it to set
11222 targetm.resolve_overloaded_builtin.
11223 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11224 tree nodes used by DEF_BUILTIN.
11225 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11226 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11227 <AVR_BUILTIN_xxBITS>: Same.
11229 2013-02-08 Richard Biener <rguenther@suse.de>
11231 * cfgloop.c (verify_loop_structure): Properly handle
11232 a loop exiting to another loop header.
11233 * ira-int.h (ira_loops): Remove.
11234 * ira.c (ira_loops): Remove.
11235 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11236 (do_reload): Use loop_optimizer_finalize.
11237 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11238 number_of_loops to access the loop tree.
11239 (more_one_region_p): Likewise.
11240 (finish_loop_tree_nodes): Likewise.
11241 (rebuild_regno_allocno_maps): Likewise.
11242 (mark_loops_for_removal): Likewise.
11243 (mark_all_loops_for_removal): Likewise.
11244 (remove_unnecessary_regions): Likewise.
11245 (ira_build): Likewise.
11246 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11248 2013-02-08 Richard Biener <rguenther@suse.de>
11250 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11251 * ipa-pure-const.c (analyze_function): Avoid calling
11252 mark_irreducible_loops twice.
11253 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
11255 2013-02-07 David S. Miller <davem@davemloft.net>
11257 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11259 * var-tracking.c (vt_add_function_parameter): Test the presence of
11260 HAVE_window_save properly and do not remap argument registers when
11261 we have a leaf function.
11263 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
11266 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11268 * config/i386/i386.c (ix86_print_operand): Ditto.
11270 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11272 * lra-constraints.c (process_alt_operands): Fix recently added comment.
11274 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11276 PR rtl-optimization/56225
11277 * lra-constraints.c (process_alt_operands): Check that reload hard
11278 reg can hold value for strict_low_part.
11280 2013-02-07 Jakub Jelinek <jakub@redhat.com>
11283 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11284 dwarf2out_end_function.
11285 (in_first_function_p, maybe_at_text_label_p,
11286 first_loclabel_num_not_at_text_label): New variables.
11287 (dwarf2out_var_location): In the first function find out
11288 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
11289 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11292 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11294 PR rtl-optimization/56178
11295 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11296 SUBREG of a register. Tidy up related block of code.
11297 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11298 note if the source is a register or a SUBREG of a register.
11300 2013-02-07 Jakub Jelinek <jakub@redhat.com>
11303 * config/rs6000/rs6000.md (ptrm): New mode attr.
11304 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11305 call_value_indirect_aix<pttrsize>,
11306 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11309 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11311 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11312 if -bnortl. Convert to strcmp and strncmp.
11314 2013-02-07 Alan Modra <amodra@gmail.com>
11317 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11318 addresses won't wrap when offsetting.
11319 (rs6000_secondary_reload): Provide secondary reloads needed for
11320 wrapping LO_SUM addresses.
11322 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11324 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11325 MACH, just __MACH__.
11327 2013-02-06 Richard Biener <rguenther@suse.de>
11329 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11330 instead of calling fix_loop_structure.
11332 2013-02-06 Jakub Jelinek <jakub@redhat.com>
11334 PR middle-end/56217
11335 * omp-low.c (use_pointer_for_field): Return false if
11336 lower_send_shared_vars doesn't generate any copy-out code.
11338 2013-02-06 Tom de Vries <tom@codesourcery.com>
11340 PR rtl-optimization/56131
11341 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11342 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11343 of the label is NULL. Add comment.
11345 2013-02-05 Jakub Jelinek <jakub@redhat.com>
11347 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11350 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11351 (STATIC_LIBTSAN_LIBS): Likewise.
11352 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11353 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11354 is defined, don't add anything else beyond that.
11355 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11356 (LINK_COMMAND_SPEC): Use them.
11358 PR tree-optimization/56205
11359 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11360 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11361 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11363 2013-02-05 Richard Biener <rguenther@suse.de>
11365 PR tree-optimization/53342
11366 PR tree-optimization/53185
11367 * tree-vectorizer.h (vect_check_strided_load): Remove.
11368 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11369 not disallow peeling for vectorized strided loads.
11370 (vect_check_strided_load): Make static and simplify.
11371 (vect_analyze_data_refs): Adjust.
11372 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11373 correctly when vectorizing strided loads.
11375 2013-02-05 Richard Biener <rguenther@suse.de>
11377 * doc/install.texi: Refer to ISL, not PPL.
11379 2013-02-05 Jan Hubicka <jh@suse.cz>
11381 PR tree-optimization/55789
11382 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11384 2013-02-05 Jan Hubicka <jh@suse.cz>
11386 PR tree-optimization/55789
11387 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11388 the dead call anyway.
11390 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11393 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11395 2013-02-04 Alexander Potapenko <glider@google.com>
11396 Jack Howarth <howarth@bromo.med.uc.edu>
11397 Jakub Jelinek <jakub@redhat.com>
11400 * config/darwin.c (sort_ctor_records): Stabilized qsort
11401 on constructor priority by using original position.
11402 (finalize_ctors): New routine to sort constructors by
11403 priority before use in assemble_integer.
11404 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11406 2013-02-04 Jakub Jelinek <jakub@redhat.com>
11409 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11410 about visibility on artificial decls.
11411 * config/sol2.c (solaris_assemble_visibility): Likewise.
11413 2013-02-04 Kai Tietz <ktietz@redhat.com>
11416 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11417 argument and improve checking of return-argument types for 16-byte
11419 (ix86_function_value_1): Add additional valtype argument on call
11420 of function_value_64.
11421 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11422 handling infunction_value_64 function.
11424 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11426 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
11428 2013-02-04 Richard Biener <rguenther@suse.de>
11430 PR tree-optimization/56188
11431 * tree-ssa-structalias.c (label_visit): Consider case with
11432 initially non-empty points-to set.
11433 (perform_var_substitution): Dump node mapping and clean up.
11435 2013-02-04 Richard Guenther <rguenther@suse.de>
11438 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11439 node prevail as last resort.
11440 (lto_symtab_merge_decls): Remove guard on LTRANS here.
11441 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
11443 2013-02-04 Richard Biener <rguenther@suse.de>
11445 PR tree-optimization/56113
11446 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11448 (equiv_class_lookup_or_add): ... this.
11449 (label_visit): Adjust and fix error in previous patch.
11450 (perform_var_substitution): Adjust.
11452 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11454 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11455 * config/sh/sh4-300.md: Likewise.
11456 * config/sh/sh4a.md: Likewise.
11457 * config/sh/constraints.md: Likewise.
11458 * config/sh/sh.md: Likewise.
11459 * config/sh/netbsd-elf.h: Likewise.
11460 * config/sh/predicates.md: Likewise.
11461 * config/sh/sh-protos.h: Likewise.
11462 * config/sh/ushmedia.h: Likewise.
11463 * config/sh/linux.h: Likewise.
11464 * config/sh/sh.c: Likewise.
11465 * config/sh/superh.h: Likewise.
11466 * config/sh/elf.h: Likewise.
11467 * config/sh/sh4.md: Likewise.
11468 * config/sh/sh.h: Likewise.
11470 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11472 * config/pa/constraints.md: Adjust unused letters. Change "T"
11473 constraint to match_test floating_point_store_memory_operand().
11474 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11475 (base14_operand): New.
11476 (floating_point_store_memory_operand): New.
11477 (integer_store_memory_operand): Revise to use base14_operand and
11478 reg_plus_base_memory_operand.
11479 (move_dest_operand): Allow symbolic_memory_operands.
11480 (symbolic_memory_operand): Check for LO_SOM.
11481 (symbolic_operand): Change default case to break.
11482 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11483 CONST_DOUBLE values to be reloaded by putting them into memory when
11484 the destination is a floating point register.
11485 (movdf): Remove code to handle CONST_DOUBLE.
11487 (reload_indf_r1): New.
11488 (reload_insf_r1): New.
11489 Consistently use "Q" and "T" constraints with integer and floating
11490 point move instructions, respectively.
11491 (movdi): Remove FAIL.
11492 Change predicate for source operand unamed DImode move from
11493 general_operand to move_src_operand.
11494 (umulsidi3): Change predicate for destination operand to
11496 Likewise for similar unamed patterns.
11497 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11498 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11499 (hppa_legitimize_address): Simplify mask calculation.
11500 (pa_emit_move_sequence): Revised handling of secondary reloads from
11501 REG+D addresses for floating point loads and stores. Directly handle
11502 loading CONST0_RTX (mode) to a floating point register.
11503 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11504 to floating point registers. Don't restrict secondary reloads to
11505 floating point registers to integer modes. Revise some comments and
11507 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11508 (pa_legitimate_address_p): New.
11509 (pa_legitimize_reload_address): New.
11510 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11511 (STRICT_REG_OK_FOR_BASE_P): New.
11512 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11513 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11515 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
11516 Andrew Dixie <andrewd@gentrack.com>
11518 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11521 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11523 * expmed.c (extract_bit_field_1): Pass the full width of the
11524 structure to get_best_reg_extraction_insn.
11526 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
11529 * configure.ac (use_cxa_atexit): Add AIX.
11530 * configure: Regenerate.
11532 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11534 2013-02-01 Jakub Jelinek <jakub@redhat.com>
11537 * final.c (need_profile_function): New variable.
11538 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11539 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11540 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11541 notes, targetm.asm_out.function_prologue doesn't emit anything,
11542 HAVE_prologue and profiler should be emitted before prologue,
11543 set need_profile_function instead of emitting it.
11544 (final_scan_insn): If need_profile_function, emit
11545 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11546 NOTE_INSN_FUNCTION_BEG note.
11548 2013-02-01 Richard Henderson <rth@redhat.com>
11550 * config/rs6000/rs6000.md (smulditi3): New.
11553 * config/alpha/alpha.md (umulditi3): New.
11555 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
11557 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11558 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11560 2013-02-01 Richard Biener <rguenther@suse.de>
11562 PR tree-optimization/56113
11563 * tree-ssa-structalias.c (label_visit): Reduce work for
11564 single-predecessor nodes.
11566 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11568 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11569 range isn't testing for zero.
11571 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11573 PR middle-end/56113
11574 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11576 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11577 Nick Clifton <nickc@redhat.com>
11579 * config/v850/constraints.md (Q): Define as a memory constraint.
11580 * config/v850/predicates.md (label_ref_operand): New predicate.
11581 (e3v5_shift_operand): New predicate.
11582 (ior_operator): New predicate.
11583 * config/v850/t-v850: Add e3v5 multilib.
11584 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11585 (v850_gen_movdi): Prototype.
11586 * config/v850/v850.c: Add support for e3v5 architecture.
11587 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11589 (construct_save_jarl): Add e3v5 long JARL support.
11590 (v850_adjust_insn_length): New function. Adjust length of call
11591 insns when using e3v5 instructions.
11592 (v850_gen_movdi): New function: Generate instructions to move a
11594 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11595 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11596 (TARGET_USE_FPU): Enable for e3v5.
11597 (CONST_OK_FOR_W): New macro.
11598 (ADJUST_INSN_LENGTH): Define.
11599 * config/v850/v850.md (UNSPEC_LOOP): Define.
11600 (attr cpu): Add v850e3v5.
11601 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11602 (movdi): New pattern.
11603 (movdi_internal): New pattern.
11604 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11605 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11606 (cstoresf4): Likewise.
11607 (cstoredf4): Likewise.
11608 (insv): New pattern.
11609 (rotlso3_a): New pattern.
11610 (rotlsi3_b): New pattern
11611 (rotlsi3_v850e3v5): New pattern.
11612 (doloop_begin): New pattern.
11613 (fix_loop_counter): New pattern.
11614 (doloop_end): New pattern.
11615 (branch_normal): Add e3v5 long branch support.
11616 (branch_invert): Likewise.
11617 (branch_z_normal): Likewise.
11618 (branch_z_invert): Likewise.
11619 (branch_nz_normal): Likewise.
11620 (branch_nz_invert): Likewise.
11621 (call_internal_short): Add e3v5 register-indirect JARL support.
11622 (call_internal_long): Likewise.
11623 (call_value_internal_short): Likewise.
11624 (call_value_internal_long): Likewise.
11625 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11626 (mloop): New option.
11627 * config.gcc: Add support for configuring v840e3v5 target.
11628 * doc/invoke.texi: Document new v850 specific command line options.
11630 2013-01-31 Paul Koning <ni1d@arrl.net>
11634 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11635 children if parent is a class.
11636 (prune_unused_types_prune): Don't add DW_AT_declaration.
11638 2013-01-31 Richard Biener <rguenther@suse.de>
11640 PR tree-optimization/56157
11641 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11642 match up operand with SLP child.
11644 2013-01-31 Jason Merrill <jason@redhat.com>
11647 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11648 parameters the first time.
11649 (gen_scheduled_generic_parms_dies): Check completeness here.
11651 2013-01-31 Richard Biener <rguenther@suse.de>
11653 PR middle-end/53073
11654 * common.opt (faggressive-loop-optimizations): New flag,
11655 enabled by default.
11656 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11657 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11658 infer_loop_bounds_from_undefined by it.
11660 2013-01-31 Richard Biener <rguenther@suse.de>
11662 PR tree-optimization/56150
11663 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11664 visit virtual operands.
11665 (find_uses_to_rename_bb): Likewise.
11667 2013-01-31 Richard Biener <rguenther@suse.de>
11669 PR tree-optimization/56150
11670 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11671 mixed store non-store stmts.
11673 2013-01-30 Jakub Jelinek <jakub@redhat.com>
11676 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11677 LIBASAN_EARLY_SPEC is defined.
11678 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11679 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11681 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11684 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11685 invalid args instead of ICEing on it.
11686 (ix86_valid_target_attribute_tree): Return error_mark_node if
11687 ix86_valid_target_attribute_inner_p failed.
11688 (ix86_valid_target_attribute_p): Return false only if
11689 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11690 target("default") attribute.
11691 (sorted_attr_string): Change argument from const char * to tree,
11692 merge in all target attribute arguments rather than just one.
11693 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11694 instead of free. Avoid using strcat.
11695 (ix86_mangle_function_version_assembler_name): Mangle
11696 target("default") as if no target attribute is present. Adjust
11697 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11698 instead of xmalloc and XDELETEVEC instead of free.
11699 (ix86_function_versions): Don't return true if one of the decls
11700 doesn't have target attribute. If they don't and one of the decls
11701 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11702 sorted_attr_string caller. Use XDELETEVEC instead of free.
11703 (ix86_supports_function_versions): Remove.
11704 (make_name): Fix up formatting.
11705 (make_dispatcher_decl): Remove resolver_name and its initialization.
11706 Avoid leaking memory.
11707 (is_function_default_version): Return true if there is
11708 target("default") attribute rather than no target attribute at all.
11709 (make_resolver_func): Avoid leaking memory.
11710 (ix86_generate_version_dispatcher_body): Likewise.
11711 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11712 * target.def (supports_function_versions): Remove.
11713 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11714 * doc/tm.texi: Regenerated.
11716 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11718 PR rtl-optimization/56144
11719 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11720 for values with side effects.
11722 2013-01-30 Richard Biener <rguenther@suse.de>
11724 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11725 (sparseset_pop): Likewise.
11726 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11727 to be able to use quick_push in the worker loop.
11729 2013-01-30 Marek Polacek <polacek@redhat.com>
11731 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11733 2013-01-30 Richard Biener <rguenther@suse.de>
11736 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
11738 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
11740 PR tree-optimization/56064
11741 * fixed-value.c (fixed_from_double_int): New function.
11742 * fixed-value.h (fixed_from_double_int): New prototype.
11743 (const_fixed_from_double_int): New static inline function.
11744 * fold-const.c (native_interpret_fixed): New static function.
11745 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11746 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11747 (native_encode_fixed): New static function.
11748 (native_encode_expr) <FIXED_CST>: Use it.
11749 (native_interpret_int): Move double_int worker code to...
11750 * double-int.c (double_int::from_buffer): ...this new static method.
11751 * double-int.h (double_int::from_buffer): Prototype it.
11753 2013-01-30 Richard Biener <rguenther@suse.de>
11755 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11756 New pointer-map and obstack.
11757 (init_alias_vars): Allocate pointer-map and obstack.
11758 (delete_points_to_sets): Free them.
11759 (find_what_var_points_to): Cache result.
11760 (find_what_p_points_to): Adjust for changed interface of
11761 find_what_var_points_to.
11762 (compute_points_to_sets): Likewise.
11763 (ipa_pta_execute): Likewise.
11765 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11767 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11768 * configure: Regenerate.
11769 * config.in: Regenerate.
11770 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11771 #nobits/#progbits if supported.
11773 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11776 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11777 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11778 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11780 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11782 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11783 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
11785 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11787 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11788 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
11790 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11792 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11794 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11795 * config/arm/cortex-a7.md: New bypasses using
11796 arm_mac_accumulator_is_result.
11798 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11800 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
11801 (cortex_a7_neon_mla): Likewise.
11802 (cortex_a7_fpfmad): New reservation.
11803 (cortex_a7_fpmacs): Use ffmas and update required units.
11804 (cortex_a7_fpmuld): Update required units and latency.
11805 (cortex_a7_fpmacd): Likewise.
11806 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11807 (cortex_a7_neon). Likewise.
11808 (bypass) Update participating units.
11810 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11812 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11813 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11815 * config/arm/vfp11.md (vfp_farith): Use ffmas.
11816 (vfp_fmul): Use ffmad.
11817 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11818 (cortex_r4_fmacd): Use ffmad.
11819 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11820 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
11821 (cortex_a9_fmacd): Use ffmad.
11822 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11823 (cortex_a8_vfp_macd): Use ffmad.
11824 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11825 (cortex_a5_fpmacd): Use ffmad.
11826 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11827 (cortex_a15_vfp_macd): Use ffmad.
11828 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
11830 2013-01-29 Jason Merrill <jason@redhat.com>
11833 * varasm.c (default_assemble_visibility): Don't warn about
11834 visibility on artificial decls.
11836 2013-01-29 Richard Biener <rguenther@suse.de>
11838 PR tree-optimization/56113
11839 * tree-ssa-structalias.c (equiv_class_lookup): Also return
11841 (label_visit): Free duplicate bitmaps and record the leader instead.
11842 (perform_var_substitution): Adjust.
11844 2013-01-29 Richard Biener <rguenther@suse.de>
11846 PR tree-optimization/55270
11847 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11848 the CFG, schedule loops for fixup.
11850 2013-01-29 Nick Clifton <nickc@redhat.com>
11852 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11855 2013-01-28 Leif Ekblad <leif@rdos.net>
11857 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11858 * config/i386/i386.h (TARGET_RDOS): New macro.
11859 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11860 * config/i386/i386.c (ix86_option_override_internal): For 64bit
11861 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11862 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11863 DEFAULT_LARGE_SECTION_THRESHOLD.
11864 * config/i386/i386.md (R14_REG, R15_REG): New constants.
11865 * config/i386/rdos.h: New file.
11866 * config/i386/rdos64.h: New file.
11868 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
11871 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11874 2013-01-28 Jakub Jelinek <jakub@redhat.com>
11876 PR rtl-optimization/56117
11877 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11878 call cselib_lookup_from_insn on the MEM before calling
11879 add_insn_mem_dependence.
11881 2013-01-28 Richard Biener <rguenther@suse.de>
11883 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11884 to a stmt that didn't have one.
11885 (copy_phis_for_bb): Likewise for PHI arguments.
11886 (copy_debug_stmt): Likewise for debug stmts.
11888 2013-01-28 Richard Biener <rguenther@suse.de>
11890 PR tree-optimization/56034
11891 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
11892 (partition_builtin_p): Adjust.
11893 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
11894 it is the last partition.
11895 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11896 up the vertex for the definition.
11897 (classify_partition): Classify whether a partition is a
11898 PKIND_REDUCTION, thus has uses outside of the loop.
11899 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11900 Merge all PKIND_REDUCTION partitions into the last partition.
11901 (tree_loop_distribution): Seed partitions from reductions as well.
11903 2013-01-28 Jakub Jelinek <jakub@redhat.com>
11905 PR tree-optimization/56125
11906 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11907 pow(x,c) into sqrt(x) * powi(x, n/2) or
11908 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11909 optimizing for size.
11910 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11911 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11914 PR tree-optimization/56094
11915 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11916 to UNKNOWN_LOCATION while gimplifying expr.
11918 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
11921 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11922 operand 0 in movabs insn template for -masm=intel asm alternative.
11923 (*movabs<mode>_2): Ditto for operand 1.
11925 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
11928 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11931 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11933 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11936 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11938 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11939 Undef to avoid warning.
11941 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11943 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11944 * configure: Regenerate.
11946 2013-01-25 Jakub Jelinek <jakub@redhat.com>
11948 PR tree-optimization/56098
11949 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11950 for stmts with volatile ops.
11951 (cond_store_replacement): Don't optimize if assign has volatile ops.
11952 (cond_if_else_store_replacement_1): Don't optimize if either
11953 then_assign or else_assign have volatile ops.
11954 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11957 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11959 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11961 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11963 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11964 missing ':' in asm example.
11966 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
11968 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11969 entries into lane and laneq entries.
11970 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11971 Remove AdvSIMD scalar modes.
11972 (aarch64_sq<r>dmulh_laneq<mode>): New.
11973 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11975 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11976 builtin implementations to relfect changes in RTL in aarch64-simd.md.
11977 * config/aarch64/iterators.md (VCOND): New.
11980 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
11983 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11984 Add NULL LIBNAME argument to existing definitions.
11985 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11986 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11987 * config/avr/avr.c (DEF_BUILTIN): Same.
11988 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11989 (avr_expand_builtin): Expand to a vanilla call if a libgcc
11990 implementation is available (DECL_ASSEMBLER_NAME is set).
11991 (avr_fold_absfx): New static function.
11992 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11993 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11994 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11995 AVR_BUILTIN_ABSLLK.
11996 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11997 (abshk, absk, abslk, absllk): Provide as static inline functions.
11999 2013-01-25 Marek Polacek <polacek@redhat.com>
12001 PR tree-optimization/56035
12002 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12004 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12006 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12007 (*movtf_internal_rex64): Add (!o,C) alternative
12008 (*movxf_internal_rex64): Ditto.
12009 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12011 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12013 * doc/invoke.texi: fix typo.
12014 * doc/objc.texi: fix typo.
12016 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12018 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12019 for the first two alternatives.
12021 2013-01-24 Diego Novillo <dnovillo@google.com>
12023 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12024 (ggc-zone.o): Remove.
12025 * configure.ac: Remove option --with-gc.
12026 * configure: Re-generate.
12027 * doc/install.texi: Remove documentation for --with-gc.
12028 * gengtype.c (write_enum_defn): Remove. Update all users.
12029 (write_Types_process_field): Remove generation of gt_e_* argument.
12030 (output_type_enum): Remove. Update all users.
12031 (write_enum_defn): Remove. Update all users.
12032 (enum alloc_zone): Remove. Update all users.
12033 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12034 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12035 Update all callers.
12036 (struct ptr_data): Remove field TYPE. Update all users.
12037 (gt_pch_note_object): Remove argument TYPE. Update all users.
12038 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12040 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12041 (struct alloc_zone): Remove.
12042 (ggc_internal_alloc_zone_stat): Remove.
12043 (ggc_internal_cleared_alloc_zone_stat): Remove.
12044 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12045 (ggc_pch_count_object): Remove last argument. Update all users.
12046 (ggc_pch_alloc_object): Remove last argument. Update all users.
12047 (struct alloc_zone): Remove.
12048 * ggc-zone.c: Remove.
12049 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12050 (struct alloc_zone): Remove.
12051 (ggc_alloc_typed_stat): Remove.
12052 (ggc_alloc_typed): Remove.
12053 (ggc_splay_alloc): Remove first argument.
12054 (rtl_zone): Remove. Update all users.
12055 (tree_zone): Remove. Update all users.
12056 (tree_id_zone): Remove. Update all users.
12057 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12058 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12059 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12060 * tree-ssanames.c: Remove references to zone allocator in comments.
12062 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12064 * config/avr/avr.c (avr_out_fract): Make register numbers that
12065 might be outside of source operand signed.
12067 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12069 * config/i386/constraints.md (Yf): New constraint.
12070 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12071 of f constraint to conditionaly disable x87 register preferences.
12072 (*movdf_internal): Ditto.
12073 (*movsf_internal): Ditto.
12075 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12077 PR inline-asm/55934
12078 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12079 that have operands with impossible constraints.
12080 Add a FIXME for a speed-up opportunity.
12081 * lra-constraints.c (process_alt_operands): Verify that a class
12082 selected from constraints on asms is valid for the operand mode.
12083 (curr_insn_transform): Remove incorrect comment.
12085 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
12087 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12088 TOC operand is a valid symbol ref in the constant pool.
12090 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12092 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12094 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
12097 * config/avr/stdfix.h: New file.
12098 * t-avr (stdfix-gcc.h): New rule to build it.
12099 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12101 2013-01-23 Kostya Serebryany <kcc@google.com>
12103 * config/darwin.h: remove dependency on
12104 CoreFoundation (asan on Mac OS).
12106 2013-01-23 Jakub Jelinek <jakub@redhat.com>
12109 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12110 instead of cmpdi_operand for first comparison operand.
12111 Don't assert that comparison operands aren't both constants.
12113 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12115 * doc/install.texi (Downloading the Source): Update references to
12116 downloading separate components.
12118 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12120 * doc/extend.texi (__int128): Improve grammar.
12122 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
12125 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12126 alternative to (o,r).
12127 (*movdi_internal_rex64): Remove (!o,n) alternative.
12128 (DImode immediate->memory splitter): Remove.
12129 (DImode immediate->memory peephole2): Remove.
12130 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12131 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12132 alternative to (!o,*r).
12133 (*movtf_internal_sse): New pattern.
12134 (*movxf_internal_rex64): New pattern.
12135 (*movxf_internal): Disable for TARGET_64BIT.
12136 (*movdf_internal_rex64): Remove (!o,F) alternative.
12138 2013-01-22 Jakub Jelinek <jakub@redhat.com>
12140 PR middle-end/56074
12141 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12142 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12143 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12144 stmt locations where LOCATION_LOCUS of the stmt location is
12145 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12148 * config/i386/i386.md (UNSPEC_STOS): New.
12149 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12150 *strsetqi_1): Add UNSPEC_STOS.
12152 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12155 * doc/invoke.texi: Remove left over -Wsynth example.
12157 2013-01-21 Jakub Jelinek <jakub@redhat.com>
12159 PR tree-optimization/56051
12160 * fold-const.c (fold_binary_loc): Don't fold
12161 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12162 a narrowing conversion, or widening conversion from signed
12165 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
12167 PR rtl-optimization/56023
12168 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12169 dependent on debug instruction.
12171 2013-01-21 Martin Jambor <mjambor@suse.cz>
12173 PR middle-end/56022
12174 * function.c (allocate_struct_function): Call
12175 invoke_set_current_function_hook earlier.
12177 2013-01-21 Jakub Jelinek <jakub@redhat.com>
12179 * reload1.c (init_reload): Only initialize reload_obstack
12180 during the first call.
12182 2013-01-21 Marek Polacek <polacek@redhat.com>
12184 * cfgloop.c (verify_loop_structure): Fix up grammar.
12186 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12188 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12189 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12191 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12194 * config/arm/marvell-pj4.md: Update copyright year.
12195 Fix up use of alu to alu_reg and simple_alu_imm.
12197 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
12199 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12201 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12204 * lra-constraints.c (curr_insn_transform): Don't reuse original
12205 insn for secondary memory move when memory mode should be different.
12207 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12209 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12210 atomic_storedi_1): New patterns.
12212 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12214 btver2 pipeline descriptions.
12215 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12217 * config/i386/i386.md (btver2_decode): New type attributes.
12218 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
12220 * config/i386/btver2.md: New file describing btver2 pipelines.
12222 2013-01-19 Andrew Pinski <apinski@cavium.com>
12224 PR tree-optimization/52631
12225 * tree-ssa-sccvn (visit_use): Before looking up the original
12226 statement, try looking up the simplified expression.
12228 2013-01-19 Anthony Green <green@moxielogic.com>
12230 * config/moxie/moxie.c (moxie_expand_prologue): Set
12231 current_function_static_stack_size.
12233 2013-01-18 Jakub Jelinek <jakub@redhat.com>
12235 PR tree-optimization/56029
12236 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12237 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12239 2013-01-18 Sharad Singhai <singhai@google.com>
12241 PR tree-optimization/55995
12242 * dumpfile.c (dump_loc): Print location only if available.
12243 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12245 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12248 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12249 secondary memory move.
12250 (inherit_reload_reg): Use rclass instead of cl for
12251 check_secondary_memory_needed_p.
12253 2013-01-18 Jakub Jelinek <jakub@redhat.com>
12255 PR middle-end/56015
12256 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
12257 the case where writing real complex part of target modifies op1.
12259 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12261 * config/aarch64/aarch64-simd.md
12262 (aarch64_vcond_internal<mode>): Handle unordered cases.
12263 * config/aarch64/iterators.md (v_cmp_result): New.
12265 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12266 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12268 * config/arm/marvell-pj4.md: New file.
12269 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12270 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12271 (generic_vfp): Likewise.
12272 * config/arm/arm-cores.def: Add marvell-pj4.
12273 * config/arm/arm-tune.md: Regenerate.
12274 * config/arm/arm-tables.opt: Regenerate.
12275 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12276 * doc/invoke.texi: Document marvell-pj4.
12278 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12280 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12282 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
12287 * var-tracking.c (negative_power_of_two_p): New.
12288 (global_get_addr_cache, local_get_addr_cache): New.
12289 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12290 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12292 (vt_stack_offset_p): Remove.
12293 (vt_canon_true_dep): Always canonicalize loc's address.
12294 (clobber_overlapping_mems): Make sure we have a MEM.
12295 (local_get_addr_clear_given_value): New.
12296 (val_reset): Clear local cached entries.
12297 (compute_bb_dataflow): Create and release the local cache.
12298 Disable duplicate MEMs clobbering.
12299 (emit_notes_in_bb): Clobber MEMs likewise.
12300 (vt_emit_notes): Create and release the local cache.
12301 (vt_initialize, vt_finalize): Create and release the global
12302 cache, respectively.
12303 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
12305 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
12307 PR libmudflap/53359
12308 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12309 not found in the symtab.
12311 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
12314 PR rtl-optimization/55547
12315 PR rtl-optimization/53827
12318 * alias.c (offset_overlap_p): New, factored out of...
12319 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12320 the conservative special case for symbolic constants. Don't
12321 adjust zero sizes on alignment.
12323 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12325 PR rtl-optimization/52573
12326 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12327 REG_UNUSED for the same register.
12329 2013-01-17 Richard Biener <rguenther@suse.de>
12330 Marek Polacek <polacek@redhat.com>
12332 PR rtl-optimization/55833
12333 * loop-unswitch.c (unswitch_loops): Move loop verification...
12334 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12335 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12336 Set it to true when we're removing a loop from hierarchy tree in
12337 an irreducible region.
12338 (fix_bb_placements): Adjust caller.
12339 (fix_loop_placements): Likewise.
12341 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
12343 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12344 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12345 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12346 Remove ID. Adjust comments.
12347 * config/avr/avr-c.c (avr_builtin_name): Remove.
12348 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12349 * config/avr/avr.c (avr_tolower): New static function.
12350 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12351 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12352 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12355 2013-01-17 Jan Hubicka <jh@suse.cz>
12357 PR tree-optimization/55273
12358 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12360 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
12363 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12364 store through atomic_store<mode>_1.
12365 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12367 2013-01-17 Martin Jambor <mjambor@suse.cz>
12369 PR tree-optimizations/55264
12370 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12371 for virtual methods.
12372 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12373 virtual methods before inlining is over.
12374 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12376 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12379 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12381 PR rtl-optimization/56005
12382 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12383 pending reads for prefetch.
12385 2013-01-16 Ian Bolton <ian.bolton@arm.com>
12387 * config/aarch64/aarch64.md
12388 (*cstoresi_neg_uxtw): New pattern.
12389 (*cmovsi_insn_uxtw): New pattern.
12390 (*<optab>si3_uxtw): New pattern.
12391 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12392 (*<optab>si3_insn_uxtw): New pattern.
12393 (*bswapsi2_uxtw): New pattern.
12395 2013-01-16 Richard Biener <rguenther@suse.de>
12397 * tree-inline.c (tree_function_versioning): Remove set but
12398 never used variable.
12400 2013-01-16 Richard Biener <rguenther@suse.de>
12402 PR tree-optimization/55964
12403 * tree-flow.h (rename_variables_in_loop): Remove.
12404 (rename_variables_in_bb): Likewise.
12405 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12406 (copy_loop_before): Adjust and delete update-ssa status.
12407 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
12408 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
12409 (rename_variables_in_loop): Remove.
12410 (slpeel_update_phis_for_duplicate_loop): Likewise.
12411 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12412 use available cfg machinery instead of duplicating it.
12413 Update PHI nodes and perform poor-mans SSA update here.
12414 (slpeel_tree_peel_loop_to_edge): Adjust.
12416 2013-01-16 Richard Biener <rguenther@suse.de>
12418 PR tree-optimization/54767
12419 PR tree-optimization/53465
12420 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12421 (vrp_visit_phi_node): For PHI arguments coming via backedges
12422 drop all symbolical range information.
12423 (execute_vrp): Compute backedges.
12425 2013-01-16 Richard Biener <rguenther@suse.de>
12427 * doc/install.texi: Update CLooG and ISL requirements to
12430 2013-01-16 Christian Bruel <christian.bruel@st.com>
12433 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12434 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12435 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12437 2013-01-16 DJ Delorie <dj@redhat.com>
12439 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12440 (UNSPECV_SP_SWITCH_E): New.
12441 (sp_switch_1): Change to an unspec.
12442 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12445 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
12447 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12448 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12449 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12450 (expand_mem_thread_fence): Ditto.
12451 (expand_mem_signal_fence): Ditto.
12452 (expand_atomic_load): Ditto.
12453 (expand_atomic_store): Ditto.
12455 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
12457 PR rtl-optimization/55547
12458 PR rtl-optimization/53827
12461 * alias.c (memrefs_conflict_p): Set sizes to negative after
12464 2013-01-15 Jakub Jelinek <jakub@redhat.com>
12467 * function.c (thread_prologue_and_epilogue_insns): Always
12468 add crtl->drap_reg to set_up_by_prologue.set, even if
12469 stack_realign_drap is false.
12471 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12473 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12474 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12475 *call): Fix indention.
12477 2013-01-15 Tom de Vries <tom@codesourcery.com>
12480 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12483 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12485 PR rtl-optimization/55153
12486 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12488 2013-01-15 Martin Jambor <mjambor@suse.cz>
12490 PR tree-optimization/55920
12491 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12492 accesses as grp_to_be_debug_replaced.
12494 2013-01-15 Jakub Jelinek <jakub@redhat.com>
12496 PR tree-optimization/55920
12497 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12498 there is non-useless type conversion needed from debug rhs to lhs,
12499 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12501 2013-01-15 Joseph Myers <joseph@codesourcery.com>
12502 Mikael Pettersson <mikpe@it.uu.se>
12505 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12507 (ASM_OUTPUT_CASE_LABEL): Remove.
12508 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12509 * final.c (shorten_branches): Update alignment of labels before
12510 jump tables if CASE_VECTOR_SHORTEN_MODE.
12512 2013-01-15 Richard Biener <rguenther@suse.de>
12515 * system.h: Do not include gmp.h for building host tools.
12517 2013-01-15 Richard Biener <rguenther@suse.de>
12519 PR middle-end/55882
12520 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12521 account for bitpos when computing alignment.
12523 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12525 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12526 (ix86_target_macros_internal): Likewise.
12528 * config/i386/i386.c (m_CORE2I7): Removed.
12529 (m_CORE_HASWELL): New macro.
12530 (m_CORE_ALL): Likewise.
12531 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12532 (initial_ix86_arch_features): Likewise.
12533 (processor_target_table): Initializations for Core avx2.
12534 (cpu_names): New names "core-avx2".
12535 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12536 PROCESSOR_CORE_HASWELL.
12537 (ix86_issue_rate): New case.
12538 (ia32_multipass_dfa_lookahead): Likewise.
12539 (ix86_sched_init_global): Likewise.
12541 * config/i386/i386.h (TARGET_HASWELL): New macro.
12542 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12543 (processor_type): New PROCESSOR_HASWELL.
12545 2013-01-15 Jakub Jelinek <jakub@redhat.com>
12547 PR tree-optimization/55955
12548 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12549 *SHIFT_EXPR and *ROTATE_EXPR codes.
12551 PR tree-optimization/48766
12552 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12553 -ftrapv disable -fwrapv.
12555 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
12558 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12559 etc. to 1 and not to __flash.
12560 Use LL suffix for __INT24_MAX__ with -mint8.
12561 Use ULL suffix for __UINT24_MAX__ with -mint8.
12563 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
12565 * config/avr/avr-arch.h
12566 (struct base_arch_s): Use typedef avr_arch_t instead.
12567 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12568 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12569 * config/avr/avr.c: Same.
12570 * config/avr/avr-devices.c: Same.
12571 * config/avr/driver-avr.c: Same.
12572 * config/avr/gen-avr-mmcu-texi.c: Same.
12573 * config/avr/avr-mcus.def: Adjust comment.
12575 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12577 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12578 * config/aarch64/iterators.md (VALLDI): New.
12580 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
12581 Andi Kleen <ak@linux.intel.com>
12584 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12585 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12588 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
12590 * config/avr/avr-stdint.h: Remove trailing blanks.
12591 * config/avr/avr-log.h: Same.
12592 * config/avr/avr-arch.h: Same.
12593 * config/avr/avr-devices.c: Same.
12594 * config/avr/avr-dimode.md: Same.
12595 * config/avr/predicates.md: Same.
12596 * config/avr/avr-c.c: Same. And fix typo.
12598 * config/avr/avr-protos.h: Same. And:
12599 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12600 (init_cumulative_args): Rename to avr_init_cumulative_args.
12601 (expand_prologue): Rename to avr_expand_prologue.
12602 (expand_epilogue): Rename to avr_expand_epilogue.
12603 (adjust_insn_length): Rename to avr_adjust_insn_length.
12604 (notice_update_cc): Rename to avr_notice_update_cc.
12605 (final_prescan_insn): Rename to avr_final_prescan_insn.
12606 * config/avr/avr.c: Same.
12607 * config/avr/avr.h: Same.
12608 * config/avr/avr.md: Remove trailing blanks.
12609 (prologue): Use avr_expand_prologue.
12610 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12612 2013-01-14 Richard Biener <rguenther@suse.de>
12614 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12615 verify_location, collect_subblocks): New functions.
12616 (verify_gimple_in_cfg): Verify that locations only reference
12617 BLOCKs in the functions BLOCK tree.
12619 2013-01-14 Richard Biener <rguenther@suse.de>
12621 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12623 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12625 (insert_out_of_ssa_copy_on_edge): Likewise.
12626 (rewrite_close_phi_out_of_ssa): Likewise.
12627 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12629 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12630 propagated constants.
12631 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12634 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
12636 * config/avr/avr-modes.def: Add GPL copyright notice.
12638 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
12640 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12641 MEMMODEL_MASK to determine memory model.
12642 (atomic_store<mode>): Ditto from operands[2].
12643 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12645 2013-01-13 Jakub Jelinek <jakub@redhat.com>
12648 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
12649 (fold_gimple_assign): Don't call unshare_expr here.
12650 (fold_ctor_reference): Call unshare_expr.
12652 2013-01-13 Terry Guo <terry.guo@arm.com>
12654 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12655 * doc/fragments.texi: Document MULTILIB_REUSE.
12656 * gcc.c (multilib_reuse): New internal spec.
12657 (set_multilib_dir): Also search multilib from multilib_reuse.
12658 * genmultilib (tmpmultilib3): Refactor code.
12659 (tmpmultilib4): Ditto.
12660 (multilib_reuse): New multilib argument.
12662 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12664 * Makefile.in: Update copyright.
12666 2013-01-12 Tom de Vries <tom@codesourcery.com>
12668 PR middle-end/55890
12669 * calls.c (expand_call): Check if arg_nr is valid.
12671 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12673 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12674 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
12675 documentation. Add missing '__' in front of
12676 __builtin_ia32_packssdw256.
12678 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12681 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12682 NO_REGS for larl operands.
12683 (s390_reload_larl_operand): Use s390_load_address instead of
12686 2013-01-11 Richard Biener <rguenther@suse.de>
12688 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12689 (verify_node_sharing): ... here.
12690 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12692 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12694 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12695 Substitute TREECHECKING.
12696 * configure: Regenerate.
12697 * Makefile.in (TREECHECKING): New.
12699 2013-01-11 Richard Guenther <rguenther@suse.de>
12701 PR tree-optimization/44061
12702 * tree-vrp.c (extract_range_basic): Compute zero as
12703 value-range for __builtin_constant_p of function parameters.
12705 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12707 Update copyright years.
12709 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12711 PR rtl-optimization/55672
12712 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12713 const to be eliminable.
12715 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
12717 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12718 * configure: Regenerate.
12720 2013-01-10 Richard Biener <rguenther@suse.de>
12722 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
12724 2013-01-10 Richard Biener <rguenther@suse.de>
12727 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12728 locations for virtual PHI arguments.
12729 (rewrite_update_phi_arguments): Likewise.
12731 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12733 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12736 2013-01-10 Jakub Jelinek <jakub@redhat.com>
12738 PR tree-optimization/55921
12739 * tree-complex.c (expand_complex_asm): New function.
12740 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12742 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12745 * config/s390/s390.c (s390_symref_operand_p)
12746 (s390_loadrelative_operand_p): Merge the two functions.
12747 (s390_check_qrst_address, print_operand_address): Add parameters
12748 to s390_loadrelative_operand_p invokation.
12749 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12750 (s390_reload_larl_operand, s390_secondary_reload): Use
12751 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12752 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12754 2013-01-09 Mike Stump <mikestump@comcast.net>
12756 * dse.c (record_store): Remove unnecessary assert.
12758 2013-01-09 Jan Hubicka <jh@suse.cz>
12760 PR tree-optimization/55569
12761 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12762 * cfgloop.h (scale_loop_profile): Likewise.
12764 2013-01-09 Jan Hubicka <jh@suse.cz>
12767 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12769 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12771 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12773 PR middle-end/55114
12774 * expr.h (maybe_emit_group_store): Declare.
12775 * expr.c (maybe_emit_group_store): New function.
12776 * builtins.c (expand_builtin_int_roundingfn): Call it.
12777 (expand_builtin_int_roundingfn_2): Likewise.
12779 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12781 PR rtl-optimization/55829
12782 * lra-constraints.c (match_reload): Add code for absent output.
12783 (curr_insn_transform): Add code for reloads of matched inputs
12786 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
12788 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12789 attribute of movddup insn to DF.
12790 (*vec_interleave_lowv2df): Ditto.
12791 (vec_dupv2df): Ditto.
12793 2013-01-09 Jan Hubicka <jh@suse.cz>
12795 PR tree-optimiation/55875
12796 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12797 EVERY_ITERATION parameter.
12798 (number_of_iterations_exit): Check if exit is executed every iteration.
12799 (idx_infer_loop_bounds): Similarly here.
12800 (n_of_executions_at_most): Simplify
12801 to only test for cases where statement is dominated by the
12802 particular bound; handle correctly the "postdominance" test.
12803 (scev_probably_wraps_p): Use max loop iterations info
12804 as a global bound first.
12806 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
12807 Nick Clifton <nickc@redhat.com>
12809 * config/v850/v850.md (cbranchsf4): New pattern.
12810 (cstoresf4): New pattern.
12811 (cbranchdf4): New pattern.
12812 (cstoredf4): New pattern.
12813 (movsicc): Disallow floating point comparisons.
12814 (cmpsf_le_insn): Fix order of operators.
12815 (cmpsf_lt_insn): Likewise.
12816 (cmpsf_eq_insn): Likewise.
12817 (cmpdf_le_insn): Likewise.
12818 (cmpdf_lt_insn): Likewise.
12819 (cmpdf_eq_insn): Likewise.
12820 (cmpsf_ge_insn): Use LE comparison.
12821 (cmpdf_ge_insn): Likewise.
12822 (cmpsf_gt_insn): Use LT comparison.
12823 (cmpdf_gt_insn): Likewise.
12824 (cmpsf_ne_insn): Delete pattern.
12825 (cmpdf_ne_insn): Delete pattern.
12826 * config/v850/v850.c (v850_gen_float_compare): Use
12827 gen_cmpdf_eq_insn for NE comparison.
12828 (v850_float_z_comparison_operator)
12829 (v850_float_nz_comparison_operator): Move from here ...
12830 * config/v850/predicates.md: ... to here. Move GT and GE
12831 comparisons into v850_float_z_comparison_operator.
12832 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12834 (v850_float_nz_comparison_operator): Likewise.
12836 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12838 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12839 with calls to gen_insvsi/gen_insvdi.
12841 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12843 * config/i386/i386.c (initial_ix86_tune_features): Set up
12844 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12846 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
12847 Jakub Jelinek <jakub@redhat.com>
12849 PR tree-optimization/48189
12850 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12851 If nitercst is 0, don't predict the exit edge.
12853 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12855 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12856 in asm_fprintf with reg_names.
12857 (aarch64_print_operand_address): Likewise.
12858 (aarch64_return_addr): Likewise.
12859 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12861 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12863 * config/pa/pa.h (VAL_U6_BITS_P): Define.
12864 (INT_U6_BITS): Likewise.
12865 * config/pa/predicates.md (uint6_operand): New predicate.
12866 (shift5_operand, shift6_operand): Likewise.
12867 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12869 (lshrdi3): Use shift6_operand.
12870 (shrpsi4, shrpdi4): New insn patterns.
12871 (extzv): Delete expander.
12872 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
12873 predicates in unamed zero extract patterns. Tighten common constraint.
12874 (extv): Delete expander.
12875 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
12876 predicates in unamed sign extract patterns. Tighten common constraint.
12877 (insv): Delete expander.
12878 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
12879 predicates in unamed insert patterns. Tighten common constraint.
12880 Change uint32_operand predicate to uint6_operand predicate in unamed
12881 DImode pattern to insert constant values of type 1...1xxxx.
12883 2013-01-04 Jan Hubicka <jh@suse.cz>
12885 PR tree-optimization/55823
12886 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12889 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12890 Uros Bizjak <ubizjak@gmail.com>
12892 PR rtl-optimization/55845
12893 * df-problems.c (can_move_insns_across): Stop scanning at
12894 volatile_insn_p source instruction or give up if
12895 across_from .. across_to range contains any volatile_insn_p
12898 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12900 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12901 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12903 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
12904 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
12906 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12909 * asan.c (asan_clear_shadow): New function.
12910 (asan_emit_stack_protection): Use it.
12912 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12914 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12915 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12916 with tab instead of space.
12918 2013-01-08 Nick Clifton <nickc@redhat.com>
12920 * config/rl78/rl78.c (rl78_expand_prologue): Always select
12921 register bank 0 at the start of an interrupt handler.
12922 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12925 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12927 * config/aarch64/aarch64-simd.md
12928 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12929 (aarch64_simd_bsl): Likewise.
12930 (aarch64_vcond_internal<mode>): Likewise.
12931 (vcond<mode><mode>): Likewise.
12932 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12933 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12935 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12937 * config/aarch64/aarch64-builtins.c
12938 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12940 2013-01-08 Martin Jambor <mjambor@suse.cz>
12943 * tree-sra.c (analyze_access_subtree): Return true also after
12944 potentially creating a debug-only replacement.
12946 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12948 PR middle-end/55890
12949 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12951 PR tree-optimization/54120
12952 * tree-vrp.c (range_fits_type_p): Don't allow
12953 src_precision < precision from signed vr to unsigned_p
12954 if vr->min or vr->max is negative.
12955 (simplify_float_conversion_using_ranges): Test can_float_p
12956 against CODE_FOR_nothing.
12958 2013-01-08 Jakub Jelinek <jakub@redhat.com>
12959 Richard Biener <rguenther@suse.de>
12961 PR middle-end/55851
12962 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12963 types instead of just INTEGER_TYPE types.
12965 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
12967 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12970 2013-01-07 Steve Ellcey <sellcey@mips.com>
12973 * config/mips/mips.opt: Change mad to mmad to match documentation.
12975 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12978 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12979 .progmemx.data now.
12981 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
12984 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12985 (avr_addrspace_t): Add .section_name field.
12986 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12988 (avr_addrspace): Same. Initialize .section_name. Remove last
12989 NULL entry. Put __memx into .progmemx.data.
12990 (progmem_section_prefix): Remove.
12991 (avr_asm_init_sections): No need to initialize progmem_section.
12992 (avr_asm_named_section): Use avr_addrspace[].section_name to get
12993 section name prefix.
12994 (avr_asm_select_section): Ditto. And use get_unnamed_section to
12995 retrieve the progmem section.
12996 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12997 boundary to run over avr_addrspace[].
12998 (avr_register_target_pragmas): Ditto.
13000 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13002 * varasm.c (output_constant_def_contents): For asan_protect_global
13003 protected strings, adjust DECL_ALIGN if needed, before testing for
13005 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13006 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13008 (output_object_block): For asan protected decls, emit asan padding
13009 after their contents.
13010 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13011 (asan_finish_file): Test it here instead.
13013 2013-01-07 Nick Clifton <nickc@redhat.com>
13014 Matthias Klose <doko@debian.org>
13015 Doug Kwan <dougkwan@google.com>
13016 H.J. Lu <hongjiu.lu@intel.com>
13019 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13021 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13023 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13025 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13027 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13029 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13032 * doc/install.texi (Cross-Compiler-Specific Options): Document
13035 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13037 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13038 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13039 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13040 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13041 vqmovun_high_s64): Fix source operand number and update copyright.
13043 2013-01-07 Richard Biener <rguenther@suse.de>
13045 PR middle-end/55890
13046 * gimple.h (gimple_call_builtin_p): New overload.
13047 * gimple.c (validate_call): New function.
13048 (gimple_call_builtin_p): Likewise.
13049 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13050 Use gimple_call_builtin_p.
13051 (find_func_clobbers): Likewise.
13052 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13053 (strlen_optimize_stmt): Likewise.
13055 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13057 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13058 (vld1q_dup_*): Likewise.
13059 (vld1_*): Likewise.
13060 (vld1q_*): Likewise.
13061 (vld1_lane_*): Likewise.
13062 (vld1q_lane_*): Likewise.
13064 2013-01-07 Richard Biener <rguenther@suse.de>
13066 * lto-streamer.h (LTO_minor_version): Bump to 2.
13068 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13070 * config/aarch64/aarch64-protos.h
13071 (aarch64_const_double_zero_rtx_p): Rename to...
13072 (aarch64_float_const_zero_rtx_p): ...this.
13073 (aarch64_float_const_representable_p): New.
13074 (aarch64_output_simd_mov_immediate): Likewise.
13075 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13076 move immediate case.
13077 * config/aarch64/aarch64.c
13078 (aarch64_const_double_zero_rtx_p): Rename to...
13079 (aarch64_float_const_zero_rtx_p): ...this.
13080 (aarch64_print_operand): Allow printing of new constants.
13081 (aarch64_valid_floating_const): New.
13082 (aarch64_legitimate_constant_p): Check for valid floating-point
13084 (aarch64_simd_valid_immediate): Likewise.
13085 (aarch64_vect_float_const_representable_p): New.
13086 (aarch64_float_const_representable_p): Likewise.
13087 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13088 (aarch64_output_simd_mov_immediate): New.
13089 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13090 (*movdf_aarch64): Likewise.
13091 * config/aarch64/constraints.md (Ufc): New.
13092 (Y): call aarch64_float_const_zero_rtx.
13093 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13095 2013-01-07 Richard Biener <rguenther@suse.de>
13097 PR tree-optimization/55888
13098 PR tree-optimization/55862
13099 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13100 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13101 not if it is contained therein.
13103 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13105 * config/avr/t-avr: Typo.
13107 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13110 * config/avr/t-avr: Don't automatically rebuild
13111 $(srcdir)/config/avr/t-multilib
13112 $(srcdir)/config/avr/avr-tables.opt
13113 $(srcdir)/doc/avr-mmcu.texi
13114 (avr-mcus): New phony target to build them on request.
13115 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13116 * avr/avr-mcus.def: Adjust comments.
13118 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
13120 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13122 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13124 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13126 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13128 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13130 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
13132 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13133 to generate profiling.
13134 * config/rs6000/aix64.h (LIB_SPEC): Same.
13136 2013-01-04 Andrew Pinski <apinski@cavium.com>
13138 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13140 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13142 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
13144 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13146 (ix86_expand_move): Ditto.
13147 (ix86_zero_extend_to_Pmode): Ditto.
13148 (ix86_expand_call): Ditto.
13149 (ix86_expand_special_args_builtin): Ditto.
13150 (ix86_expand_builtin): Ditto.
13152 2013-01-04 Richard Biener <rguenther@suse.de>
13154 PR tree-optimization/55862
13155 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13156 translating them through PHI nodes.
13158 2013-01-04 Martin Jambor <mjambor@suse.cz>
13160 PR tree-optimization/55755
13161 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13162 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13164 2013-01-04 Marek Polacek <polacek@redhat.com>
13166 PR middle-end/55859
13167 * opts.c (default_options_optimization): Clarify error message.
13169 2013-01-04 Richard Biener <rguenther@suse.de>
13171 PR middle-end/55863
13172 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13175 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13178 * config/pa/pa.md (movsi): Revert previous change.
13179 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13182 2013-01-03 Richard Henderson <rth@redhat.com>
13184 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13185 after eliminating TLS symbols.
13187 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
13190 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13191 * graphite-poly.c (debug_gmp_value): Likewise.
13193 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
13196 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13197 selected code model, define __code_mode_small__, __code_model_medium__,
13198 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13199 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13200 xchg temporary register with %k. Declare temporary register as
13202 [__x86_64__]: For medium and large code models, preserve %rbx register.
13204 2013-01-03 Richard Biener <rguenther@suse.de>
13206 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
13207 (dump_subscript): Adjust.
13208 (finalize_ddr_dependent): Do not dump redundant info.
13209 (analyze_siv_subscript): Adjust.
13210 (subscript_dependence_tester): Likewise.
13211 (compute_affine_dependence): Likewise.
13213 2013-01-03 Richard Biener <rguenther@suse.de>
13216 2013-01-03 Richard Biener <rguenther@suse.de>
13218 PR tree-optimization/55857
13219 * tree-vect-stmts.c (vectorizable_load): Do not setup
13220 re-alignment for invariant loads.
13222 2013-01-02 Richard Biener <rguenther@suse.de>
13224 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13225 invariant load do not generate a vector load from the scalar location.
13227 2013-01-03 Richard Biener <rguenther@suse.de>
13229 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13230 for not vectorizing.
13231 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13232 not build INDIRECT_REFs, call get_name once only.
13233 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13234 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13236 2013-01-03 Richard Biener <rguenther@suse.de>
13238 PR tree-optimization/55857
13239 * tree-vect-stmts.c (vectorizable_load): Do not setup
13240 re-alignment for invariant loads.
13242 2013-01-03 Richard Biener <rguenther@suse.de>
13245 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13246 prefer a built-in decl.
13248 2013-01-03 Jakub Jelinek <jakub@redhat.com>
13250 * gcc.c (process_command): Update copyright notice dates.
13251 * gcov.c (print_version): Likewise.
13252 * gcov-dump.c (print_version): Likewise.
13254 PR rtl-optimization/55838
13255 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13256 iv0.step, iv1.step and step.
13258 2013-01-03 Jakub Jelinek <jakub@redhat.com>
13259 Marc Glisse <marc.glisse@inria.fr>
13261 PR tree-optimization/55832
13262 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13263 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13264 integer_{one,zero}_node.
13266 2013-01-03 Jakub Jelinek <jakub@redhat.com>
13269 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13270 * var-tracking.c (reverse_op): Don't add reverse ops to
13271 VALUEs that have already
13272 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
13274 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13276 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13278 2013-01-02 Teresa Johnson <tejohnson@google.com>
13280 * dumpfile.c (dump_loc): Print filename with location.
13281 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13282 new location_t parameter to emit complete unroll message with
13283 new dump framework.
13284 (canonicalize_loop_induction_variables): Compute loops location
13285 and pass to try_unroll_loop_completely.
13286 * loop-unroll.c (report_unroll_peel): New function.
13287 (peel_loops_completely): Use new dump format with location
13288 for main dumpfile message, and invoke report_unroll_peel on success.
13289 (decide_unrolling_and_peeling): Ditto.
13290 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13291 by report_unroll_peel.
13292 (decide_peel_completely): Ditto.
13293 (decide_unroll_constant_iterations): Ditto.
13294 (decide_unroll_runtime_iterations): Ditto.
13295 (decide_peel_simple): Ditto.
13296 (decide_unroll_stupid): Ditto.
13297 * cfgloop.c (get_loop_location): New function.
13298 * cfgloop.h (get_loop_location): Declare.
13300 2013-01-02 Sriraman Tallam <tmsriram@google.com>
13302 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13305 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13307 PR middle-end/55198
13308 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13309 BLKmode objects when EXPAND_MEMORY is specified.
13311 2013-01-02 Sriraman Tallam <tmsriram@google.com>
13313 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13315 (fold_builtin_cpu): Do not share cpu model decls across statements.
13317 2013-01-02 Jason Merrill <jason@redhat.com>
13320 * tree.c (build_array_type_1): Revert earlier change.
13322 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13324 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13326 * config/aarch64/aarch64-tune.md: Re-generate.
13328 2013-01-02 Richard Biener <rguenther@suse.de>
13330 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
13331 invariant load do not generate a vector load from the scalar location.
13333 2013-01-02 Richard Biener <rguenther@suse.de>
13336 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13337 * configure: Regenerate.
13339 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13341 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13342 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13343 (expand_builtin_int_roundingfn_2): Keep the original target around
13344 for the fallback case.
13346 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13348 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13349 to be clear for sign changes.
13351 2013-01-01 Jan Hubicka <jh@suse.cz>
13353 * ipa-inline-analysis.c: Fix formatting.
13355 2013-01-01 Jakub Jelinek <jakub@redhat.com>
13357 PR tree-optimization/55831
13358 * tree-vect-loop.c (get_initial_def_for_induction): Use
13359 gsi_after_labels instead of gsi_start_bb.
13361 Copyright (C) 2013 Free Software Foundation, Inc.
13363 Copying and distribution of this file, with or without modification,
13364 are permitted in any medium without royalty provided the copyright
13365 notice and this notice are preserved.