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