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