1 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/aarch64/arm_neon.h
4 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
8 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
9 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
10 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
11 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
13 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
15 * config/aarch64/aarch64-simd.md
16 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
17 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
18 fix_trunc, fixuns_trunc.
19 (ftrunc<VDQF:mode>2): New.
20 * config/aarch64/iterators.md (optab): Add fix, fixuns.
21 (fix_trunc_optab): New.
23 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
25 * config/aarch64/aarch64-builtins.c
26 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27 iceilf, lround, iroundf.
29 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
32 * config/i386/i386.h (enum ix86_tune_indices)
33 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
34 New, split from X86_TUNE_INTER_UNIT_MOVES.
35 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
36 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
37 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
38 (TARGET_INTER_UNIT_MOVES): Remove.
39 * config/i386/i386.c (initial_ix86_tune_features): Update.
40 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
41 (ix86_expand_convert_uns_didf_sse): Use
42 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
43 (ix86_expand_vector_init_one_nonzero): Ditto.
44 (ix86_expand_vector_init_interleave): Ditto.
45 (inline_secondary_memory_needed): Return true for moves from SSE class
46 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
47 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
48 * config/i386/constraints.md (Yi, Ym): Depend on
49 TARGET_INTER_UNIT_MOVES_TO_VEC.
50 (Yj, Yn): New constraints.
51 * config/i386/i386.md (*movdi_internal): Change constraints of
52 operand 1 from Yi to Yj and from Ym to Yn.
53 (*movsi_internal): Ditto.
54 (*movdf_internal): Ditto.
55 (*movsf_internal): Ditto.
56 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
57 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
58 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
59 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
60 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
61 * config/i386/sse.md (movdi_to_sse): Ditto.
62 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
63 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
64 TARGET_INTER_UNIT_MOVES.
65 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
66 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
67 instead of TARGET_INTER_UNIT_MOVES.
68 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
69 operand 1 from Yi to Yj and from Ym to Yn.
71 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
73 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
74 (float_truncate_hi_): Likewise.
75 (float_extend_lo_): Likewise.
76 (float_truncate_lo_): Likewise.
77 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
78 (aarch64_float_extend_lo_v2df): Likewise.
79 (vec_unpacks_hi_v4sf): Likewise.
80 (aarch64_float_truncate_lo_v2sf): Likewise.
81 (aarch64_float_truncate_hi_v4sf): Likewise.
82 (vec_pack_trunc_v2df): Likewise.
83 (vec_pack_trunc_df): Likewise.
85 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
87 * config/aarch64/aarch64-builtins.c
88 (aarch64_fold_builtin): Fold float conversions.
89 * config/aarch64/aarch64-simd-builtins.def
90 (floatv2si, floatv4si, floatv2di): New.
91 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
92 * config/aarch64/aarch64-simd.md
93 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
94 * config/aarch64/iterators.md (FLOATUORS): New.
95 (optab): Add float, floatuns.
98 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
100 * config/aarch64/aarch64-builtins.c
101 (aarch64_builtin_vectorized_function): Use new names for
103 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
104 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
105 (fcvtzu): Split as...
106 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
107 (fcvtas): Split as...
108 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
109 (fcvtau): Split as...
110 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
111 (fcvtps): Split as...
112 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
113 (fcvtpu): Split as...
114 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
115 (fcvtms): Split as...
116 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
117 (fcvtmu): Split as...
118 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
119 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
120 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
121 (lfrintnusf, lfrintnudf): Likewise.
122 * config/aarch64/aarch64-simd.md
123 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
125 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
126 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
127 (fcvt_pattern): Likewise.
129 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
131 * config/aarch64/aarch64-simd.md
132 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
133 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
135 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
137 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
138 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
139 (vrnd<a,m,n,p>_f32): Implement using builtins.
140 (vrnd<i,x><q>_f<32, 64>): New.
142 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
144 * config/aarch64/aarch64-builtins.c
145 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
146 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
147 (frintz): Rename to...
149 (frintp): Rename to...
151 (frintm): Rename to...
153 (frinti): Rename to...
154 (nearbyint): ...this.
155 (frintx): Rename to...
157 (frinta): Rename to...
159 * config/aarch64/aarch64-simd.md
160 (aarch64_frint<frint_suffix><mode>): Delete.
161 (<frint_pattern><mode>2): Convert to insn.
162 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
163 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
164 (frint_pattern): Likewise.
165 (frint_suffix): Likewise.
167 2013-04-29 Richard Biener <rguenther@suse.de>
169 PR tree-optimization/57081
170 * loop-init.c: Include tree-flow.h.
171 (loop_optimizer_finalize): Free number of iteration estimates.
172 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
174 2013-04-29 Jakub Jelinek <jakub@redhat.com>
176 PR tree-optimization/57083
177 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
178 non-singleton shift count range, zero extend low_bound for uns case.
180 * config/i386/predicates.md (general_vector_operand): New predicate.
181 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
182 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
183 if they aren't nonimmediate operands. If their original values
184 satisfy const_vector_equal_evenodd_p, don't shift them.
185 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
186 predicates. For the SSE4.1 case force operands[{1,2}] into registers
187 if not nonimmediate_operand.
188 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
189 instead of register_operand.
190 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
192 2013-04-28 Eric Botcazou <ebotcazou@gcc.gnu.org>
194 * stor-layout.c (finalize_size_functions): Allocate a structure and
195 reset cfun before dumping the functions.
197 2013-04-27 Jakub Jelinek <jakub@redhat.com>
199 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
202 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
203 use xop_pmacsdqh if uns_p.
204 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
205 the immediate rotate count.
207 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
209 * rtl.h (struct rtx_def): Add comment for field jump.
210 (LRA_SUBREG_P): New macro.
211 * recog.c (register_operand): Check LRA_SUBREG_P.
212 * lra.c (lra): Add note at the end of RTL code. Align non-empty
214 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
215 (lra_final_code_change): Skip subreg change for operators.
216 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
217 if there are no operand changes.
218 * lra-constraints.c (curr_insn_set): New.
219 (match_reload): Set LRA_SUBREG_P.
220 (emit_spill_move): Ditto.
221 (check_and_process_move): Use curr_insn_set. Process only single
222 set insns. Don't initialize sec_mem_p and change_p.
223 (simplify_operand_subreg): Use LRA_SUBREG_P.
224 (reg_in_class_p): New function.
225 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
226 of #ifdef. Add code to remove cycling.
227 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
228 non-null disp. Reload inner instead of disp when base and index
229 are null. Try to put lo_sum into register.
230 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
231 (check_and_process_move): Move code for move cost check to
232 simple_move_p. Remove equiv_substitution.
233 (simple_move_p): New function.
234 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
235 curr_insn_set. Call check_and_process_move only for single set
236 insns. Use the new function. Move call of check_and_process_move
237 after operand equiv substitution and address process.
239 2013-04-26 Jakub Jelinek <jakub@redhat.com>
242 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
243 with nonlocal goto receivers or returns twice calls, ignore
244 unininitialized values from abnormal edges to nl goto receiver
245 or returns twice call.
247 2013-04-26 Jakub Jelinek <jakub@redhat.com>
249 PR tree-optimization/57051
250 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
251 and VEC_RSHIFT_EXPR if shift count is a multiple of element
254 2013-04-26 Richard Biener <rguenther@suse.de>
256 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
257 (expand_omp_taskreg): Likewise. Mark loops for fixup.
258 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
259 (fixup_loop_arrays_after_move): New function.
260 (move_sese_region_to_fn): Properly outline the loop tree parts
263 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
265 * config/i386/i386.md (type, unit): Fix long lines.
267 2013-04-26 Richard Biener <rguenther@suse.de>
269 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
270 (lto-streamer-out.o): Likewise.
271 * cfgloop.c (init_loops_structure): Export, add struct function
273 (flow_loops_find): Adjust.
274 * cfgloop.h (enum loop_estimation): Add EST_LAST.
275 (init_loops_structure): Declare.
276 * lto-streamer-in.c: Include cfgloop.h.
277 (input_cfg): Input the loop tree.
278 * lto-streamer-out.c: Include cfgloop.h.
279 (output_cfg): Output the loop tree.
280 (output_struct_function_base): Do not drop PROP_loops.
282 2013-03-26 Richard Biener <rguenther@suse.de>
284 * tree-cfg.c (execute_build_cfg): Build the loop tree.
285 (pass_build_cfg): Provide PROP_loops.
286 (move_sese_region_to_fn): Remove loops that are outlined into fn
288 * tree-inline.c: Include cfgloop.h.
289 (initialize_cfun): Do not drop PROP_loops.
290 (copy_loops): New function.
291 (copy_cfg_body): Copy loop structure.
292 (tree_function_versioning): Initialize destination loop tree.
293 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
294 (pass_parallelize_loops): Do IL verification.
295 * loop-init.c (loop_optimizer_init): Fixup loops if required.
296 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
297 the CFG make sure we fixup loops as well.
298 * tree-ssa-tail-merge.c: Include cfgloop.h.
299 (replace_block_by): When merging loop latches mark loops for fixup.
300 * lto-streamer-out.c (output_struct_function_base): Drop
302 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
303 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
304 * ipa-split.c: Include cfgloop.h.
305 (split_function): Add the new return block to the loop tree root.
306 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
307 whether we have removed the forwarder block.
308 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
309 * cfgloop.h (place_new_loop): Declare.
310 * cfgloopmanip.c (place_new_loop): Export.
311 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
312 (tree-switch-conversion.o): Likewise.
313 (tree-complex.o): Likewise.
314 (tree-inline.o): Likewise.
315 (tree-ssa-tailmerge.o): Likewise.
316 (ipa-split.o): Likewise.
317 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
318 (tree-ssa-copy.o): Likewise.
319 * tree-switch-conversion.c: Include cfgloop.h
320 (process_switch): If we emit a bit-test cascade, schedule loops
322 * tree-complex.c: Include cfgloop.h.
323 (expand_complex_div_wide): Properly add new basic-blocks to loops.
324 * asan.c: Include cfgloop.h.
325 (create_cond_insert_point): Properly add new basic-blocks to
326 loops, schedule loop fixup.
327 * cfgloop.c (verify_loop_structure): Check that looks are not
329 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
331 (expand_omp_for_generic): Likewise.
332 (expand_omp_sections): Likewise.
333 (expand_omp_atomic_pipeline): Schedule loops for fixup.
334 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
335 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
336 is initialized, not when loops are present.
337 * tree-parloops.c (parallelize_loops): Remove checking here.
338 * passes.c (init_optimization_passes): Schedule a copy-propagation
339 pass before complete unrolling of inner loops.
341 2013-04-26 Jakub Jelinek <jakub@redhat.com>
343 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
344 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
345 (colorize_init): Add argument to _WIN32 version.
346 * toplev.c: Include diagnostic-color.h.
347 (process_options): Default to -fdiagnostics-color=auto if
348 GCC_COLORS env var is in the environment.
349 * common.opt (fdiagnostics-color=): Add Var and Init.
350 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
351 env var is in the environment, the default is auto rather than never.
353 * diagnostic.h (file_name_as_prefix): Add context argument.
354 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
356 * langhooks.c (lhd_print_error_function): Adjust caller.
358 2013-04-25 Lawrence Crowl <crowl@google.com>
360 * var-tracking.c (shared_hash_def::htab):
361 Change type to hash_table. Update dependent calls and types.
363 2013-04-25 Lawrence Crowl <crowl@google.com>
365 * Makefile.in: Update as needed below.
367 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
368 Move declaration to after the type's method definitons.
370 * attribs.c (htab_t scoped_attributes::attribute_hash):
371 Change type to hash_table. Update dependent calls and types.
373 * bitmap.c (htab_t bitmap_desc_hash):
374 Change type to hash_table. Update dependent calls and types.
376 * cselib.c (htab_t cselib_hash_table):
377 Change type to hash_table. Update dependent calls and types.
379 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
380 (hash_string_slot_node): Move implementation into lto-streamer.h
381 struct string_slot_hasher.
382 (eq_string_slot_node): Likewise.
384 * data-streamer-out.c: Update output_block::string_hash_table
385 dependent calls and types.
387 * dwarf2cfi.c (htab_t trace_index):
388 Change type to hash_table. Update dependent calls and types.
390 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
391 Change type to hash_table. Update dependent calls and types.
392 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
393 (htab_t optimize_external_refs::map): Likewise.
394 (htab_t output_comp_unit::extern_map): Likewise.
395 (htab_t output_comdat_type_unit::extern_map): Likewise.
396 (htab_t output_macinfo::macinfo_htab): Likewise.
397 (htab_t optimize_location_lists::htab): Likewise.
398 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
400 * except.c (htab_t ehspec_hash_type):
401 Change type to hash_table. Update dependent calls and types.
402 (assign_filter_values::ttypes): Likewise.
403 (assign_filter_values::ehspec): Likewise.
404 (sjlj_assign_call_site_values::ar_hash): Likewise.
405 (convert_to_eh_region_ranges::ar_hash): Likewise.
407 * gcse.c (htab_t pre_ldst_table):
408 Change type to hash_table. Update dependent calls and types.
410 * ggc-common.c (htab_t saving_htab):
411 Change type to hash_table. Update dependent calls and types.
412 (htab_t loc_hash): Likewise.
413 (htab_t ptr_hash): Likewise.
414 (call_count): Rename ggc_call_count.
415 (call_alloc): Rename ggc_call_alloc.
416 (loc_descriptor): Rename make_loc_descriptor.
417 (add_statistics): Rename ggc_add_statistics.
419 * ggc-common.c (saving_htab):
420 Change type to hash_table. Update dependent calls and types.
422 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
423 (push_gimplify_context): Likewise.
424 (pop_gimplify_context): Likewise.
425 (struct gimple_temp_hash_elt): Added.
426 (struct gimplify_hasher): Likewise.
427 (struct gimplify_ctx.temp_htab):
428 Change type to hash_table. Update dependent calls and types.
430 * gimple-fold.c: Include gimplify-ctx.h.
432 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
433 Change type to hash_table. Update dependent calls and types.
434 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
435 avoid potential global name collision.
437 * gimplify.c: Include gimplify-ctx.h.
438 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
439 (htab_t gimplify_ctx::temp_htab):
440 Update dependent calls and types for new type hash_table.
441 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
442 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
444 * gimplify-ctx.h: New.
445 (struct gimple_temp_hash_elt): Move from gimplify.c.
446 (class gimplify_hasher): New.
447 (struct gimplify_ctx): Move from gimple.h.
448 (htab_t gimplify_ctx::temp_htab):
449 Change type to hash_table. Update dependent calls and types.
451 * graphite-clast-to-gimple.c: Include graphite-htab.h.
452 (htab_t ivs_params::newivs_index):
453 Change type to hash_table. Update dependent calls and types.
454 (htab_t ivs_params::params_index): Likewise.
455 (htab_t print_generated_program::params_index): Likewise.
456 (htab_t gloog::newivs_index): Likewise.
457 (htab_t gloog::params_index): Likewise.
459 * graphite.c: Include graphite-htab.h.
460 4htab_t graphite_transform_loops::bb_pbb_mapping):
461 Change type to hash_table. Update dependent calls and types.
463 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
464 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
465 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
467 * graphite-dependences.c: Include graphite-htab.h.
468 (loop_is_parallel_p): Change hash table type of parameter.
470 * graphite-htab.h: New.
471 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
472 (extern find_pbb_via_hash): Move from graphite-poly.h.
473 (extern loop_is_parallel_p): Move from graphite-poly.h.
474 (extern get_loop_body_pbbs): Move from graphite-poly.h.
476 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
477 (extern loop_is_parallel_p): Move to graphite-htab.h.
478 (extern get_loop_body_pbbs): Move to graphite-htab.h.
480 * haifa-sched.c (htab_t delay_htab):
481 Change type to hash_table. Update dependent calls and types.
482 (htab_t delay_htab_i2): Likewise.
484 * ira-color.c (htab_t allocno_hard_regs_htab):
485 Change type to hash_table. Update dependent calls and types.
487 * ira-costs.c (htab_t cost_classes_htab):
488 Change type to hash_table. Update dependent calls and types.
490 * loop-invariant.c (htab_t merge_identical_invariants::eq):
491 Change type to hash_table. Update dependent calls and types.
493 * loop-iv.c (htab_t bivs):
494 Change type to hash_table. Update dependent calls and types.
496 * loop-unroll.c (htab_t opt_info::insns_to_split):
497 Change type to hash_table. Update dependent calls and types.
498 (htab_t opt_info::insns_with_var_to_expand): Likewise.
500 * lto-streamer.h (struct string_slot): Move from data-streamer.h
501 (struct string_slot_hasher): New.
502 (htab_t output_block::string_hash_table):
503 Change type to hash_table. Update dependent calls and types.
505 * lto-streamer-in.c (freeing_string_slot_hasher): New.
506 (htab_t file_name_hash_table):
507 Change type to hash_table. Update dependent calls and types.
509 * lto-streamer-out.c: Update output_block::string_hash_table dependent
512 * lto-streamer.c (htab_t tree_htab):
513 Change type to hash_table. Update dependent calls and types.
515 * omp-low.c: Include gimplify-ctx.h.
517 * passes.c (htab_t name_to_pass_map):
518 Change type to hash_table. Update dependent calls and types.
519 (pass_traverse): Rename to passes_pass_traverse.
521 * plugin.c (htab_t event_tab):
522 Change type to hash_table. Update dependent calls and types.
524 * postreload-gcse.c (htab_t expr_table):
525 Change type to hash_table. Update dependent calls and types.
526 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
528 * sese.c (debug_rename_map_1): Make extern.
529 (htab_t copy_bb_and_scalar_dependences::rename_map):
530 Change type to hash_table. Update dependent calls and types.
532 * sese.h (extern debug_rename_map): Move to .c file.
534 * store-motion.c (htab_t store_motion_mems_table):
535 Change type to hash_table. Update dependent calls and types.
537 * trans-mem.c (htab_t tm_new_mem_hash):
538 Change type to hash_table. Update dependent calls and types.
540 * tree-browser.c (htab_t TB_up_ht):
541 Change type to hash_table. Update dependent calls and types.
543 * tree-cfg.c (htab_t discriminator_per_locus):
544 Change type to hash_table. Update dependent calls and types.
546 * tree-complex.c: Include tree-hasher.h
547 (htab_t complex_variable_components):
548 Change type to hash_table. Update dependent calls and types.
550 * tree-eh.c (htab_t finally_tree):
551 Change type to hash_table. Update dependent calls and types.
553 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
554 struct int_tree_hasher.
555 (extern int_tree_map_eq): Likewise.
556 (uid_decl_map_hash): Removed.
557 (extern decl_tree_map_eq): Likewise.
559 * tree-hasher.h: New.
560 (struct int_tree_hasher): New.
561 (typedef int_tree_htab_type): New.
563 * tree-inline.c: Include gimplify-ctx.h.
565 * tree-mudflap.c: Include gimplify-ctx.h.
567 * tree-parloops.c: Include tree-hasher.h.
568 (htab_t eliminate_local_variables_stmt::decl_address):
569 Change type to hash_table. Update dependent calls and types.
570 (htab_t separate_decls_in_region::decl_copies): Likewise.
572 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
573 Change type to hash_table. Update dependent calls and types.
575 * tree-sra.c (candidates):
576 Change type to hash_table. Update dependent calls and types.
578 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
580 (int_tree_map_hash): Likewise.
582 * tree-ssa-dom.c (htab_t avail_exprs):
583 Change type to hash_table. Update dependent calls and types.
585 * tree-ssa-live.c (var_map_base_init::tree_to_index):
586 Change type to hash_table. Update dependent calls and types.
588 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
589 Change type to hash_table. Update dependent calls and types.
591 * tree-ssa-phiopt.c (seen_ssa_names):
592 Change type to hash_table. Update dependent calls and types.
594 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
595 Change type to hash_table. Update dependent calls and types.
597 * tree-ssa-uncprop.c (equiv):
598 Change type to hash_table. Update dependent calls and types.
600 2013-04-25 Jakub Jelinek <jakub@redhat.com>
602 PR rtl-optimization/57003
603 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
604 call note_stores with kill_clobbered_value callback again after
605 killing regs_invalidated_by_call.
607 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
609 * config/aarch64/aarch64-simd.md
610 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
611 (aarch64_simd_bsl<mode>): Likewise.
612 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
614 2013-04-25 Marek Polacek <polacek@redhat.com>
616 PR tree-optimization/57066
617 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
619 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
621 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
623 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
625 * config/aarch64/aarch64-builtins.c
626 (aarch64_fold_builtin): New.
627 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
628 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
629 * config/aarch64/aarch64-simd-builtins.def (abs): New.
630 * config/aarch64/arm_neon.h
631 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
633 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
634 Tejas Belagod <tejas.belagod@arm.com>
636 * config/aarch64/aarch64-builtins.c
637 (aarch64_gimple_fold_builtin): New.
638 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
639 * config/aarch64/aarch64-simd-builtins.def (addv): New.
640 * config/aarch64/aarch64-simd.md (addpv4sf): New.
642 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
644 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
646 * config/aarch64/aarch64.md
647 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
649 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
651 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
652 (*ngcsi_uxtw): New pattern.
654 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
655 Julian Brown <julian@codesourcery.com>
657 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
658 (TB_DREG): Add T_V4HF.
659 (v4hf_UP): New macro.
660 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
661 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
662 Handle initialisation of V4HF. Adjust initialisation of reinterpret
664 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
665 (arm_vector_mode_supported_p): Handle V4HF.
666 (arm_mangle_map): Handle V4HFmode.
667 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
668 * config/arm/arm_neon_builtins.def: Add entries for
669 vcvtv4hfv4sf, vcvtv4sfv4hf.
670 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
671 (neon_vcvtv4hfv4sf): Likewise.
672 * config/arm/neon-gen.ml: Handle half-precision floating point
674 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
675 * config/arm/arm_neon.h: Regenerate.
676 * config/arm/neon.ml (type elts): Add F16.
677 (type vectype): Add T_float16x4, T_floatHF.
678 (type vecmode): Add V4HF.
679 (type features): Add Requires_FP_bit feature.
680 (elt_width): Handle F16.
681 (elt_class): Likewise.
682 (elt_of_class_width): Likewise.
683 (mode_of_elt): Refactor.
684 (type_for_elt): Handle F16, fix error messages.
685 (vectype_size): Handle T_float16x4.
686 (vcvt_sh): New function.
687 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
688 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
689 (string_of_mode): Handle V4HF.
690 * doc/arm-neon-intrinsics.texi: Regenerate.
692 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
694 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
695 format specifier in 'X' case.
697 2013-04-25 Alan Modra <amodra@gmail.com>
700 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
701 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
702 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
703 Repeat for many other rotate/shift and mask patterns using subregs.
705 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
708 2013-04-25 Alan Modra <amodra@gmail.com>
710 * config.gcc: Support little-endian powerpc-linux targets.
711 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
712 (LINK_OS_LINUX_SPEC): Define.
713 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
714 Preserve MASK_LITTLE_ENDIAN.
715 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
716 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
717 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
718 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
719 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
720 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
721 Correct fp word order for little-endian. Don't shift toc entries
722 smaller than a word for little-endian.
723 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
724 (bswapdi2 splits): Correct low-part subreg for little-endian.
725 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
726 low/high where such is correct only for be.
727 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
728 little-endian for -mcall-aixdesc.
730 2013-04-25 Alan Modra <amodra@gmail.com>
732 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
733 replace_equiv_address_nv.
735 2013-04-25 Alan Modra <amodra@gmail.com>
737 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
739 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
742 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
743 * rtl.h (struct rtx_def): ...
745 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
747 PR rtl-optimizations/57046
748 * lra-constraints (split_reg): Set up lra_risky_transformations_p
749 for multi-reg splits.
751 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
753 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
755 2013-04-24 Sterling Augustine <saugustine@google.com>
757 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
758 (comp_dir_string, debug_str_dwo_section): New.
759 (DEBUG_STR_DWO_SECTION): Rename to ...
760 (DEBUG_DWO_STR_SECTION): ... this.
761 (DEBUG_NORM_STR_SECTION): Delete.
762 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
763 (DEBUG_STR_DWO_SECTION_FLAGS): New.
764 (find_AT_string): Move most logic to ...
765 (find_AT_string_in_table): ... here. New.
766 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
767 add_skeleton_AT_string. Delete logic.
768 (output_skeleton_debug_sections): Remove call to
769 add_top_level_skeleton_die_attrs.
770 (add_comp_dir_attribute): Move logic to comp_dir_string.
771 (dwarf2out_init): Initialize debug_str_dwo_section.
772 (output_indirect_string): Call find_string_form.
773 (output_indirect_strings): Rewrite.
774 (prune_unused_types): Empty skeleton_debug_str_hash.
775 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
776 (dwarf2out_finish): Call output_indirect_strings.
778 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
780 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
782 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
784 * rtl.h (struct rtx_def): Add comment for field jump.
785 (LRA_SUBREG_P): New macro.
786 * recog.c (register_operand): Check LRA_SUBREG_P.
787 * lra.c (lra): Add note at the end of RTL code. Align non-empty
789 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
790 (lra_final_code_change): Skip subreg change for operators.
791 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
792 if there are no operand changes.
793 * lra-constraints.c (curr_insn_set): New.
794 (match_reload): Set LRA_SUBREG_P.
795 (emit_spill_move): Ditto.
796 (check_and_process_move): Use curr_insn_set. Process only single
797 set insns. Don't initialize sec_mem_p and change_p.
798 (simplify_operand_subreg): Use LRA_SUBREG_P.
799 (reg_in_class_p): New function.
800 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
801 of #ifdef. Add code to remove cycling.
802 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
803 non-null disp. Reload inner instead of disp when base and index
804 are null. Try to put lo_sum into register.
805 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
806 (check_and_process_move): Move code for move cost check to
807 simple_move_p. Remove equiv_substitution.
808 (simple_move_p): New function.
809 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
810 curr_insn_set. Call check_and_process_move only for single set
811 insns. Use the new function. Move call of check_and_process_move
812 after operand equiv substitution and address process.
814 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
816 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
817 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
818 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
820 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
822 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
824 2013-04-24 Marek Polacek <polacek@redhat.com>
826 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
827 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
828 (select_loops_exit_conditions): Likewise.
829 (number_of_iterations_for_all_loops): Likewise.
830 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
831 (scev_analysis): Likewise.
833 2013-04-02 Catherine Moore <clm@codesourcery.com>
834 Chao-ying Fu <fu@mips.com>
836 * config/mips/micromips.md (jraddiusp): New pattern.
837 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
838 instruction if possible.
840 2013-04-24 Alan Modra <amodra@gmail.com>
842 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
844 2013-04-24 Julian Brown <julian@codesourcery.com>
845 Chung-Lin Tang <cltang@codesourcery.com>
847 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
848 dependency behavior in enumeration type DIE generation. Add TODO note
849 to comments about future DW_FORM_sdata/udata re-work of related code.
851 2013-04-23 Lawrence Crowl <crowl@google.com>
853 * Makefile.in: Update as needed below.
855 * hash-table.h (class hash_table):
856 Correct many methods with parameter types compare_type to the correct
857 value_type. (Correct code was unlikely to notice the change.)
858 (hash_table::elements_with_deleted) New.
859 (class hashtable::iterator): New.
860 (hashtable::begin()): New.
861 (hashtable::end()): New.
862 (FOR_EACH_HASH_TABLE_ELEMENT): New.
864 * statistics.c (statistics_hashes):
865 Change type to hash_table. Update dependent calls and types.
867 * tree-into-ssa.c (var_infos):
868 Change type to hash_table. Update dependent calls and types.
870 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
871 Change type to hash_table. Update dependent calls and types.
873 * tree-ssa-loop-im.c (struct mem_ref.refs):
874 Change type to hash_table. Update dependent calls and types.
876 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
877 Change type to hash_table. Update dependent calls and types.
879 * tree-ssa-sccvn.c (vn_tables_s::nary):
880 Change type to hash_table. Update dependent calls and types.
881 (vn_tables_s::phis): Likewise.
882 (vn_tables_s::references): Likewise.
884 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
885 (vn_reference_eq): Update parameter and return types.
887 * tree-ssa-structalias.c (pointer_equiv_class_table):
888 Change type to hash_table. Update dependent calls and types.
889 (location_equiv_class_table): Likewise.
891 * tree-vect-data-refs.c: Consequential changes for making
892 peeling a hash_table.
894 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
895 (destroy_loop_vec_info): Dependent hash_table update.
897 * tree-vectorizer.h (peeling_htab):
898 Change type to hash_table. Update dependent calls and types.
900 2013-04-23 Shiva Chen <shiva0217@gmail.com>
902 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
903 to check the register content is equal or not.
904 * lra-constraints.c (match_reload): Use lra_assign_reg_val
905 to assign register content record.
906 * lra-eliminations.c (update_reg_eliminate): Use
907 lra_update_reg_val_offset to update register content offset.
908 * lra-int.h (struct lra_reg): Add offset member.
909 (lra_reg_val_equal_p): New static inline function.
910 (lra_update_reg_val_offset): New static inline function.
911 (lra_assign_reg_val): New static inline function.
912 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
913 to assign register content record.
914 (initialize_lra_reg_info_element): Initial offset to zero.
916 2013-04-23 Catherine Moore <clm@codesourcery.com>
918 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
919 operands. Record compression.
921 2013-04-23 Xinliang David Li <davidxl@google.com>
923 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
925 2013-04-23 Richard Biener <rguenther@suse.de>
928 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
929 parameter, only add abnormal goto edges from the copied body
930 if the call could perform abnormal gotos.
931 (copy_cfg_body): Adjust.
933 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
935 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
937 2013-04-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
939 * config/s390/sjlj.S: New file.
940 * config/s390/target.h: New file.
941 * configure.tgt: Set options for S/390.
943 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
945 * coretypes.h (gimple_stmt_iterator): Add struct to make
948 2013-04-23 Richard Biener <rguenther@suse.de>
950 PR tree-optimization/57026
951 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
952 from SSA names occuring in abnormal PHI nodes.
954 2013-04-22 Andi Kleen <ak@linux.intel.com>
956 * lto/lto.c (print_lto_report_1): Fix LTO report names.
958 2013-04-22 Andi Kleen <ak@linux.intel.com>
960 * lto/lto.c (print_lto_report_1): Declare early.
961 (read_cgraph_and_symbols): Call print_lto_report_1 early.
963 2013-04-22 Andi Kleen <ak@linux.intel.com>
965 * common.opt (-flto-report-wpa): Add.
966 * doc/invoke.texi (-flto-report-wpa): Add.
967 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
970 2013-04-22 Xinliang David Li <davidxl@google.com>
972 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
973 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
974 * Makefile.in: New dependency
976 David Daney <ddaney.cavm@gmail.com>
978 * configure.ac (gcc_cv_as_micromips_support): Use the
979 --fatal-warnings option.
980 * configure: Regenerate.
982 2013-04-22 Marek Polacek <polacek@redhat.com>
985 * tsan.c (instrument_expr): Don't instrument expression
986 in case its size is zero.
988 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
992 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
994 * config/alpha/alpha.c (TARGET_LRA_P): New define.
996 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
998 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
999 (gimple_stmt_iterator): New typedef.
1000 * gimple.h (gimple_stmt_iterator): Rename to...
1001 (gimple_stmt_iterator_d): ... This.
1002 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1003 trees be valid for GIMPLE and GENERIC.
1004 (TARGET_GIMPLE_FOLD_BUILTIN): New.
1005 * gimple-fold.c (gimple_fold_call): Call target hook
1006 gimple_fold_builtin.
1007 * hooks.c (hook_bool_gsiptr_false): New.
1008 * hooks.h (hook_bool_gsiptr_false): New.
1009 * target.def (fold_stmt): New.
1010 * doc/tm.texi: Regenerate.
1012 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
1015 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1016 a set sp if no stack realignment.
1018 2013-04-22 Nick Clifton <nickc@redhat.com>
1020 * config.gcc (tilegx-linux): Extend extra_objs rather than
1022 (tilepro-linux): Likewise.
1024 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1026 * config/aarch64/aarch64-builtins.c
1028 (CF0, CF1, CF2, CF3, CF4, CF10): New.
1029 (VAR<1-12>): Add MAP parameter.
1030 (BUILTIN_*): Likewise.
1031 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1032 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1033 (aarch64_ushl_n<mode>): Likewise.
1034 (aarch64_sshr_n<mode>): Likewise.
1035 (aarch64_ushr_n<mode>): Likewise.
1036 (aarch64_<maxmin><mode>): Likewise.
1037 (aarch64_sqrt<mode>): Likewise.
1038 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1039 (vshr<q>_n_*): Likewise.
1041 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
1043 * config/aarch64/aarch64-builtins.c
1044 (aarch64_simd_builtin_type_mode): Handle SF types.
1046 (BUILTIN_GPF): Define.
1047 (aarch64_init_simd_builtins): Handle SF types.
1048 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1051 * config/aarch64/aarch64-simd.md
1052 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1053 (aarch64_frecpe<mode>): New.
1054 (aarch64_frecps<mode>): Likewise.
1055 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1056 (v8type): Add frecp<esx>.
1057 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1058 (aarch64_frecps<mode>): Likewise.
1059 * config/aarch64/iterators.md (FRECP): New.
1060 (frecp_suffix): Likewise.
1061 * config/aarch64/arm_neon.h
1062 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1064 2013-04-22 Christian Bruel <christian.bruel@st.com>
1067 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1068 (REG_CLASS_NAMES): Idem.
1069 (REG_CLASS_CONTENTS): Idem.
1070 (REGCLASS_HAS_FP_REG): Idem.
1071 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1072 (sh_conditional_register_usage): Idem.
1074 2013-04-21 Jeff Law <law@redhat.com>
1076 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1077 (ssa_forward_propagate_and_combine): Use it.
1079 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1081 * lra.c: Update the flow chart diagram.
1083 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
1085 PR rtl-optimization/56847
1086 * lra-constraints.c (process_alt_operands): Discourage alternative
1087 with non-matche doffsettable memory constraint fro memory with
1090 2013-04-19 Richard Biener <rguenther@suse.de>
1092 PR tree-optimization/56982
1093 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1095 * gimplify.c (gimplify_call_expr): Notice special calls.
1096 (gimplify_modify_expr): Likewise.
1097 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1098 abnormal control flow receivers.
1099 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1100 in the same way as cfun->has_nonlocal_labels.
1101 (gimple_purge_dead_abnormal_call_edges): Likewise.
1102 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1103 receivers start a basic-block.
1105 2013-04-19 Richard Biener <rguenther@suse.de>
1107 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1109 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
1110 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1111 (SLP_TREE_LOAD_PERMUTATION): Add.
1112 (vect_transform_slp_perm_load): Adjust prototype.
1113 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1114 (vect_free_slp_instance): Likewise.
1115 (vect_create_new_slp_node): Likewise.
1116 (vect_supported_slp_permutation_p): Remove.
1117 (vect_slp_rearrange_stmts): Adjust.
1118 (vect_supported_load_permutation_p): Likewise. Inline
1119 vect_supported_slp_permutation_p here.
1120 (vect_analyze_slp_instance): Compute load permutations per
1121 slp node instead of per instance.
1122 (vect_get_slp_defs): Adjust.
1123 (vect_transform_slp_perm_load): Likewise.
1124 (vect_schedule_slp_instance): Remove redundant code.
1125 (vect_schedule_slp): Remove hack for PR56270, add it ...
1126 * tree-vect-stmts.c (vectorizable_load): ... here, do not
1127 CSE loads for SLP. Adjust.
1129 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1131 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1132 spelling in two comments.
1134 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
1137 * config/arm/arm.c (load_multiple_sequence): Require SP
1138 as base register for loads if SP is in the register list.
1140 2013-04-19 Martin Jambor <mjambor@suse.cz>
1142 PR tree-optimization/56718
1143 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1144 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1145 and made public. Adjusted all callers.
1146 (ipa_intraprocedural_devirtualization): New function.
1147 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1148 (ipa_intraprocedural_devirtualization): Likewise.
1149 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1151 2013-04-19 Richard Biener <rguenther@suse.de>
1153 PR tree-optimization/57000
1154 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1156 2013-04-19 Terry Guo <terry.guo@arm.com>
1158 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1160 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
1161 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1162 (cortex_m4_fmacs): Use new reservations.
1163 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1165 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
1167 PR rtl-optimization/56999
1168 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1170 (lra_coalesce): Remove split_origin_bitmap and related code.
1171 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1172 ranges if necessary.
1174 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
1176 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1178 (ix86_expand_call): Remove clobbered_registers array and use
1179 x86_64_ms_sysv_extra_clobbered_registers instead.
1180 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1182 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1184 * config/i386/i386.md (*call_rex64_ms_sysv): Use
1185 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
1186 (*call_value_rex64_ms_sysv): Ditto.
1188 2013-04-18 Cary Coutant <ccoutant@google.com>
1190 * dwarf2out.c (output_pubnames): Check die_perennial_p of
1191 parent instead of die_mark.
1193 2013-04-18 Diego Novillo <dnovillo@google.com>
1195 * gimple.c (create_gimple_tmp): New.
1196 (get_expr_type): New.
1197 (build_assign): New.
1198 (build_type_cast): New.
1199 * gimple.h (enum ssa_mode): Define.
1200 (gimple_seq_set_location): New.
1201 * asan.c (build_check_stmt): Change some gimple_build_* calls
1202 to use build_assign and build_type_cast.
1204 2013-04-18 Richard Biener <rguenther@suse.de>
1206 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1207 handle negative step. Remove redundant checks.
1208 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1209 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1210 for negative step and grouped loads fail to vectorize.
1212 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1214 * emit-rtl.c (reset_insn_used_flags): New function.
1215 (reset_all_used_flags): Use it.
1216 (verify_insn_sharing): New function.
1217 (verify_rtl_sharing): Fix verification for SEQUENCEs.
1219 2013-04-18 Jakub Jelinek <jakub@redhat.com>
1221 PR tree-optimization/56984
1222 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1223 and (x >> M) >= N don't register any assertion if N << M is the
1226 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
1228 * lower-subreg.c (resolve_simple_move): If called self-recursive,
1229 do not delete_insn insns that have not yet been emitted, only
1230 unlink them with remove_insn.
1231 * df-scan.c (df_insn_delete): Revert r197492.
1233 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
1235 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1236 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1238 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1240 * config/arm/arm.md (movsicc_insn): Convert define_insn into
1241 define_insn_and_split.
1242 (and_scc,ior_scc,negscc): Likewise.
1243 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1245 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
1247 * config/arm/arm.c (use_return_insn): Return 0 for targets that
1248 can benefit from using a sequence of LDRD instructions in epilogue
1249 instead of a single LDM instruction.
1251 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1254 * doc/extend.texi: Fix typo.
1256 2013-04-17 Richard Biener <rguenther@suse.de>
1258 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1259 (vect_build_slp_tree): ... here.
1260 (vect_build_slp_tree_1): Compute which stmts of the SLP group
1261 match. Remove special-casing of mismatched complex loads.
1262 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1263 re-try the match with swapped commutative operands.
1264 (vect_supported_load_permutation_p): Remove special-casing of
1265 mismatched complex loads.
1266 (vect_analyze_slp_instance): Adjust.
1268 2013-04-17 Richard Biener <rguenther@suse.de>
1270 PR rtl-optimization/56921
1271 * cfgloop.h (struct loop): Add simple_loop_desc member.
1272 (struct niter_desc): Mark with GTY(()).
1273 (simple_loop_desc): Do not use aux field but simple_loop_desc.
1274 * loop-iv.c (get_simple_loop_desc): Likewise.
1275 (free_simple_loop_desc): Likewise.
1278 2013-04-16 Richard Biener <rguenther@suse.de>
1280 PR rtl-optimization/56921
1281 * loop-init.c (pass_rtl_move_loop_invariants): Add
1282 TODO_do_not_ggc_collect to todo_flags_finish.
1283 (pass_rtl_unswitch): Same.
1284 (pass_rtl_unroll_and_peel_loops): Same.
1285 (pass_rtl_doloop): Same.
1287 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
1289 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1290 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1291 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1293 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1294 * tree-streamer.c (record_common_node): Adjust reference in comment.
1296 2013-04-17 Terry Guo <terry.guo@arm.com>
1298 * config/arm/cortex-m4.md: Add a new bypass.
1300 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1302 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1304 (*subs_<optab><mode>_multp2): New pattern.
1305 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1306 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1308 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1310 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1311 (*subs_mul_imm_<mode>): New pattern.
1313 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
1316 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1317 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
1318 (vsx_movti_32bit): Change j->wa to O->wa.
1320 2013-04-16 Richard Biener <rguenther@suse.de>
1322 PR rtl-optimization/56921
1323 * loop-init.c (pass_rtl_move_loop_invariants): Add
1324 TODO_do_not_ggc_collect to todo_flags_finish.
1325 (pass_rtl_unswitch): Same.
1326 (pass_rtl_unroll_and_peel_loops): Same.
1327 (pass_rtl_doloop): Same.
1329 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
1331 * config/arm/arm.c (emit_multi_reg_push): New declaration
1332 for an existing function.
1333 (arm_emit_strd_push): New function.
1334 (arm_expand_prologue): Used here.
1335 (arm_emit_ldrd_pop): New function.
1336 (arm_expand_epilogue): Used here.
1337 (arm_get_frame_offsets): Update condition.
1338 (arm_emit_multi_reg_pop): Add a special case for load of a single
1339 register with writeback.
1341 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
1343 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1346 2013-04-16 Richard Biener <rguenther@suse.de>
1348 PR tree-optimization/56756
1349 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1350 (first_mem_ref_loc): New.
1351 (execute_sm): Place the load temporarily before a previous
1352 access instead of in the latch edge to ensure its SSA dependencies
1353 are defined at points dominating the load.
1355 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
1357 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1358 correct fix by moving header and footer insn to the footer of
1359 the merged basic block. Clear BB_END of the merged-away block.
1362 * emit-rtl.c (make_note_raw): New function.
1363 (link_insn_into_chain): New static inline function.
1365 (add_insn_before, add_insn_after): Factor insn chain linking code...
1366 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1367 using link_insn_into_chain.
1368 (note_outside_basic_block_p): New helper function for emit_note_after
1369 and emit_note_before.
1370 (emit_note_after): Use nobb variant of add_insn_after if the note
1371 should not be contained in a basic block.
1372 (emit_note_before): Use nobb variant of add_insn_before if the note
1373 should not be contained in a basic block.
1374 (emit_note_copy): Use make_note_raw.
1375 (emit_note): Likewise.
1376 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1377 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1378 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1379 the moved barrier the tail of the basic block it follows.
1380 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1382 2013-04-15 Jakub Jelinek <jakub@redhat.com>
1384 PR tree-optimization/56962
1385 * gimple-ssa-strength-reduction.c (record_increment): Only set
1386 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1387 either rhs1 or rhs2 is equal to c->base_expr.
1389 2013-04-15 Richard Biener <rguenther@suse.de>
1391 PR tree-optimization/56933
1392 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1394 (GROUP_READ_WRITE_DEPENDENCE): Remove.
1395 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1396 * tree-vect-data-refs.c (vect_analyze_group_access): Move
1397 dependence check ...
1398 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1400 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1401 GROUP_READ_WRITE_DEPENDENCE.
1403 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1405 * emit-rtl.c (reset_all_used_flags): New function.
1406 (verify_rtl_sharing): Call reset_all_used_flags before and after
1407 performing the checks.
1409 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1411 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1412 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1413 * config/arm/constraints.md (De): New constraint.
1414 * config/arm/neon.md (anddi3_neon): Delete.
1415 (neon_vand<mode>): Expand to standard anddi3 pattern.
1416 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1417 Move earlier in the file.
1418 (neon_inv_logic_op2): Likewise.
1419 (arm_anddi_operand_neon): New predicate.
1421 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1423 * configure.ac (gcc_cv_ld_as_needed): Set
1424 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1425 Use -z ignore, -z record on *-*-solaris2*.
1426 (HAVE_LD_AS_NEEDED): Update comment.
1427 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1428 * configure: Regenerate.
1429 * config.in: Regenerate.
1430 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1431 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1432 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1433 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1434 equivalents. Fix markup.
1435 * doc/tm.texi: Regenerate.
1437 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
1439 * config/i386/i386.opt: New option mstack-protector-guard=.
1440 * config/i386/i386-opts.h: Add enum stack_protector_guard.
1441 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1442 TARGET_SSP_TLS_GUARD.
1443 * config/i386/i386.c (ix86_option_override_internal): Set
1444 ix86_stack_protector_guard.
1445 * config/i386/i386.md (stack_protect_set): Enable for
1446 TARGET_SSP_TLS_GUARD only.
1447 (stack_protect_set_<mode>): Ditto.
1448 (stack_protect_test): Ditto.
1449 (stack_protect_test_<mode>): Ditto.
1450 * doc/invoke.texi (i386 Option): Document.
1452 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
1455 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1456 (S_MODES): Set H_MODE bit.
1457 (SF_MODES): Set only S_MODE and SF_MODE bits.
1458 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1459 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1460 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1461 <MODE_FLOAT>: Likewise.
1463 2013-04-15 Joey Ye <joey.ye@arm.com>
1465 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1467 2013-04-15 Joey Ye <joey.ye@arm.com>
1469 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1471 (thumb_far_jump_used_p): Count instruction size and set
1474 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
1476 * reorg.c (fill_simple_delay_slots): Reindent block of code.
1477 * resource.c (mark_target_live_regs): Reformat conditional block.
1479 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1481 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1482 notes, they are emitted only just before final.
1483 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1485 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
1487 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1488 * cfgrtl.c (delete_insn): Call it here instead.
1489 * lra-spills.c (lra_final_code_change): Use delete_insn.
1490 * haifa-sched.c (sched_remove_insn): Likewise.
1491 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1492 returning to the nop pool.
1493 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1494 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
1496 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1498 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1499 * doc/tm.texi: Regenerated.
1501 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
1503 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1506 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
1508 * df-core.c (df_find_def): Compare register numbers.
1509 (df_find_use): Likewise.
1511 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
1514 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1515 lra_in_progress for return.
1517 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1519 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1520 define_insn into define_insn_and_split and emit movsicc patterns.
1522 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
1524 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1526 2013-04-12 Richard Biener <rguenther@suse.de>
1528 * tree-pass.h (TODO_do_not_ggc_collect): New.
1529 * passes.c (execute_one_ipa_transform_pass): Honor
1530 TODO_do_not_ggc_collect.
1531 (execute_one_pass): Likewise.
1534 2013-04-10 Richard Biener <rguenther@suse.de>
1536 * passes.c (init_optimization_passes): Remove reload pass.
1537 * ira.c (do_reload): Merge into ...
1539 (rest_of_handle_reload): Remove.
1540 (pass_reload): Likewise.
1541 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1542 of reload for vzeroupper pass placement.
1544 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1546 PR tree-optimization/56918
1547 PR tree-optimization/56920
1548 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1549 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
1550 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
1551 use wide_mul_with_sign method.
1553 2013-04-12 Richard Biener <rguenther@suse.de>
1555 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1556 not be considered a gimple constant.
1558 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
1560 * fold-const.c (const_binop): Handle vector shifts by a scalar.
1561 (fold_binary_loc): Call const_binop also for mixed vector-scalar
1564 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
1565 Jakub Jelinek <jakub@redhat.com>
1567 * opts.c: Include diagnostic-color.h.
1568 (common_handle_option): Handle OPT_fdiagnostics_color_.
1569 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1570 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1571 (diagnostic-color.o): New.
1572 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1573 (diagnostic_color_rule): New enum.
1574 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1575 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1576 the location string.
1577 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1578 either NULL, or color kind.
1579 * diagnostic-color.c: New file.
1580 * diagnostic-color.h: New file.
1581 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1583 * doc/invoke.texi (-fdiagnostics-color): Document.
1584 * pretty-print.h (pp_show_color): Define.
1585 (struct pretty_print_info): Add show_color field.
1586 * diagnostic.c: Include diagnostic-color.h.
1587 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
1588 macros. Colorize error:, warning: etc. strings and also the location
1590 (diagnostic_show_locus): Colorize the caret line.
1591 * pretty-print.c: Include diagnostic-color.h.
1592 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
1593 inside of %< %> quotes or quoted through q format modifier.
1595 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1597 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
1599 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1601 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
1603 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
1606 2013-04-11 Marek Polacek <polacek@redhat.com>
1608 PR tree-optimization/48184
1609 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
1611 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
1613 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
1614 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
1615 (skip_simple_arithmetic): Tidy up.
1616 * tree.h (skip_simple_constant_arithmetic): Declare.
1618 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1620 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1622 2013-04-11 Richard Biener <rguenther@suse.de>
1624 * tree-vect-loop.c (get_initial_def_for_induction): Properly
1625 generate vector constants.
1627 2013-04-11 Richard Biener <rguenther@suse.de>
1629 PR tree-optimization/56878
1630 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1631 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1633 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1634 Prefer to align the DR with the most invariant base address.
1636 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1638 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1641 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
1643 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1644 floating-point vector comparisons against 0.
1646 2013-04-11 Jakub Jelinek <jakub@redhat.com>
1648 PR tree-optimization/56899
1649 * fold-const.c (extract_muldiv_1): Apply distributive law
1650 only if TYPE_OVERFLOW_WRAPS (ctype).
1652 2013-04-11 Bin Cheng <bin.cheng@arm.com>
1655 * ira-costs.c (scan_one_insn): Check whether the source rtx of
1656 loading has side effect.
1658 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
1660 * config/sparc/sparc.c: Include tree-pass.h.
1661 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1662 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
1663 head of file. Change return type. Split off gate function.
1664 (sparc_gate_work_around_errata): New function.
1665 (pass_work_around_errata): New pass definition.
1666 (insert_pass_work_around_errata) New pass insert definition to
1667 insert pass_work_around_errata just after delayed-branch scheduling.
1668 (sparc_option_override): Insert the pass.
1669 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1671 2013-04-10 David S. Miller <davem@davemloft.net>
1673 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1674 or -mcpu=hypersparc.
1676 * target.def (cstore_mode): New hook.
1677 * target.h: Include insn-codes.h
1678 * targhooks.c: Likewise.
1679 (default_cstore_mode): New function.
1680 * targhooks.h: Declare it.
1681 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1682 * doc/tm.texi: Rebuild.
1683 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1684 target hook, rather than inspecting the insn_data.
1685 * config/sparc/sparc.c (sparc_cstore_mode): New function.
1686 (TARGET_CSTORE_MODE): Redefine.
1687 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1689 * config/sparc/predicates.md (cstore_result_operand): New special
1691 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1692 Use it for operand 0.
1693 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1694 (*snesi_special): Likewise.
1695 (*snesi_zero): Likewise.
1696 (*seqsi_zero): Likewise.
1697 (*sltu_insn): Likewise.
1698 (*sgeu_insn): Likewise.
1699 (*seqdi_special): Make operand 0 and comparison operation be of
1701 (*snedi_special): Likewise.
1702 (*snedi_special_vis3): Likewise.
1703 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1704 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1705 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1706 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1707 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1708 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1709 (*sltu_extend_sp64): Likewise.
1710 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1711 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1712 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1713 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1714 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1716 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
1718 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1719 (aarch64_start_file): Use the new function.
1721 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1722 Jason Merrill <jason@redhat.com>
1724 * common.opt: Add -gdwarf.
1725 * opts.c (common_handle_option): Handle it.
1726 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1728 2013-04-10 Richard Biener <rguenther@suse.de>
1730 * passes.c (execute_todo): Do not call ggc_collect conditional here.
1731 (execute_one_ipa_transform_pass): But unconditionally here.
1732 (execute_one_pass): And here.
1733 (init_optimization_passes): Remove reload pass.
1734 * tree-pass.h (TODO_ggc_collect): Remove.
1735 (pass_reload): Likewise.
1736 * ira.c (do_reload): Merge into ...
1738 (rest_of_handle_reload): Remove.
1739 (pass_reload): Likewise.
1740 * config/i386/i386.c (ix86_option_override): Refer to ira instead
1741 of reload for vzeroupper pass placement.
1742 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1743 and todo_flags_finish of all passes.
1745 2013-04-10 Richard Biener <rguenther@suse.de>
1747 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1748 first_const_oprnd field, rename first_def_type to first_op_type.
1749 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1750 (vect_get_and_check_slp_defs): Always use the type of the
1751 operand. Allow mixed vect_external_def, vect_constant_def types.
1752 (vect_get_constant_vectors): Handle mixed vect_external_def,
1753 vect_constant_def types.
1755 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
1757 PR tree-optimization/55524
1758 * tree-ssa-math-opts.c
1759 (convert_mult_to_fma): Don't use an fms construct
1760 when we don't have an fms operation, but fnma, and it looks
1761 likely that we'll be able to use the latter.
1763 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1765 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1767 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1768 inline fail caused by overwritable functions.
1770 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
1772 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1773 unnecessary bits in the constant power of two case.
1775 2013-04-10 Richard Biener <rguenther@suse.de>
1777 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1778 broken code swapping operands.
1779 (vect_build_slp_tree): Do not compute load permutations here.
1780 (vect_analyze_slp_instance): Compute load permutations here,
1781 after building the SLP tree.
1783 2013-04-09 Christian Bruel <christian.bruel@st.com>
1785 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1786 of next/prev_real_insn.
1788 2013-04-09 Jan Hubicka <jh@suse.cz>
1790 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1791 Drop aliased parameter.
1792 (function_and_variable_visibility): Do not handle alias pairs.
1793 * cgraph.c (varpool_externally_visible_p): Update prototype.
1794 * varpool.c (varpool_add_new_variable): Update.
1796 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1798 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
1800 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
1802 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
1804 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
1806 2013-04-09 Marek Polacek <polacek@redhat.com>
1808 PR tree-optimization/48762
1809 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
1811 2013-04-09 Richard Biener <rguenther@suse.de>
1813 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
1815 (vect_build_slp_tree): Likewise.
1816 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
1817 calculating the cost of a SLP instance.
1818 (vect_analyze_slp_instance): Use it from here, after building
1821 2013-04-09 Jakub Jelinek <jakub@redhat.com>
1824 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1825 expand_omp_for_static_chunk): Use simple_p = true in
1826 force_gimple_operand_gsi calls when assigning to addressable decls.
1828 2013-04-09 Jeff Law <law@redhat.com>
1830 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
1831 when the boolean was created by converting a wider object which
1832 had a boolean range.
1834 2013-04-09 Richard Biener <rguenther@suse.de>
1836 * tree-vectorizer.h (slp_void_p): Remove.
1837 (slp_tree): Typedef before _slp_tree declaration.
1838 (struct _slp_tree): Use a vector of slp_tree as children.
1839 (vect_get_place_in_interleaving_chain): Remove.
1840 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
1842 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
1844 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
1845 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1846 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1847 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
1848 Use slp_node instead of slp_void_p and adjust.
1850 2013-04-09 Richard Biener <rguenther@suse.de>
1852 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
1853 work that is not necessary.
1855 2013-04-09 Jakub Jelinek <jakub@redhat.com>
1857 PR tree-optimization/56854
1858 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
1859 forward into clobber stmts if it would change MEM_REF lhs into
1862 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
1864 * tree.c (type_hash_lookup, type_hash_add): Make static.
1865 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
1867 2013-04-09 Richard Biener <rguenther@suse.de>
1869 * tree.h (unsave_expr_now): Remove.
1870 * tree-inline.c (mark_local_for_remap_r): Remove.
1871 (unsave_expr_1): Likewise.
1872 (unsave_r): Likewise.
1873 (unsave_expr_now): Likewise.
1874 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
1875 (propagate_tree_value): Likewise.
1877 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
1879 * doc/rtl.texi (sequence): Rewrite documentation to match the
1880 current use of SEQUENCE rtl objects.
1881 * rtl.def (SEQUENCE): Likewise.
1883 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
1884 Update documentation.
1885 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
1886 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
1888 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
1890 2013-04-08 Teresa Johnson <tejohnson@google.com>
1892 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
1893 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
1895 (estimate_edge_size_and_time): Add comment to suggest using rounding
1897 (estimate_node_size_and_time): Ditto.
1898 (remap_edge_change_prob): Use helper rounding divide methods.
1899 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
1900 (gimple_mod_pow2_value_transform): Ditto.
1901 (gimple_mod_subtract_transform): Ditto.
1902 (gimple_ic_transform): Ditto.
1903 (gimple_stringops_transform): Ditto.
1904 * stmt.c (conditional_probability): Ditto.
1905 (emit_case_dispatch_table): Ditto.
1906 * lto-cgraph.c (merge_profile_summaries): Ditto.
1907 * tree-optimize.c (execute_fixup_cfg): Ditto.
1908 * cfgcleanup.c (try_forward_edges): Ditto.
1909 * cfgloopmanip.c (scale_loop_profile): Ditto.
1911 (duplicate_loop_to_header_edge): Ditto.
1912 (lv_adjust_loop_entry_edge): Ditto.
1913 * tree-vect-loop.c (vect_transform_loop): Ditto.
1914 * profile.c (compute_branch_probabilities): Ditto.
1915 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1916 * lto-streamer-in.c (input_cfg): Ditto.
1917 * gimple-streamer-in.c (input_bb): Ditto.
1918 * ipa-cp.c (update_profiling_info): Ditto.
1919 (update_specialized_profile): Ditto.
1920 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
1921 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
1923 * sched-rgn.c (compute_dom_prob_ps): Ditto.
1924 (compute_trg_info): Ditto.
1925 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1926 (purge_dead_edges): Ditto.
1927 * loop-unswitch.c (unswitch_loop): Ditto.
1928 * cgraphclones.c (cgraph_clone_edge): Ditto.
1929 (cgraph_clone_node): Ditto.
1930 * tree-inline.c (copy_bb): Ditto.
1931 (copy_edges_for_bb): Ditto.
1932 (initialize_cfun): Ditto.
1933 (copy_cfg_body): Ditto.
1934 (expand_call_inline): Ditto.
1936 2013-04-08 Kai Tietz <ktietz@redhat.com>
1938 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
1939 TARGET_CYGWIN64 by TARGET_64BIT.
1941 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
1943 * config/epiphany/epiphany.md (GPR_1): New constant.
1944 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
1945 * config/epiphany/epiphany.c (gen_compare_reg):
1946 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
1947 is already in place.
1948 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
1949 Don't require being called during rtl expansion; If y operlaps r0,
1951 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
1952 (epiphany_expand_epilogue): Likewise.
1954 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
1955 Don't use CC_FPmode for ORDERED / UNORDERED.
1956 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
1958 * config/epiphany/constraints.md (CnL): New constraint.
1959 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
1960 * config/epiphany/predicates.md (add_operand): Allow 1024.
1962 * config/epiphany/epiphany.md (logical_op): New code iterator.
1963 (op_mnc): New code attribute.
1964 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
1965 (mov_f+1, mov_f+2): New peephole2 patterns.
1967 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
1968 (cstoresi4): Also allow re-use of zero result when doing a NE
1969 comparison to a non-zero operand.
1970 Use (clobber (scratch)) for first insn if the gpr output is not needed.
1972 * config/epiphany/epiphany.md (<insn_opname>v2si3):
1973 Use gen_addsi3_i / gen_subsi3_i.
1975 2013-04-08 Jakub Jelinek <jakub@redhat.com>
1979 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
1980 contain anything but clobbers, at most one __builtin_stack_restore,
1981 optionally debug stmts and final resx, and if it has at least one
1982 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
1983 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
1984 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
1985 which isn't defaut definition, remove them.
1986 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
1987 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
1988 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
1989 with MEM_REF LHS with SSA_NAME address.
1991 2013-04-08 Jeff Law <law@redhat.com>
1993 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
1995 2013-04-08 Richard Biener <rguenther@suse.de>
1997 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
1999 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2000 determined vector type.
2001 (vect_analyze_data_refs): Likewise.
2002 (vect_get_new_vect_var): Adjust.
2003 (vect_create_destination_var): Preserve SSA name versions.
2004 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2005 not dump anything here.
2007 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
2009 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2010 Add member lr_slot_known.
2011 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2013 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2014 Remove code that sets lr_slot_offset according to what a previous
2015 version of epiphany_emit_save_restore used to do.
2016 (epiphany_emit_save_restore): When doing an lr save or restore,
2017 set/verify lr_slot_known and lr_slot_offset.
2019 2013-04-08 Xinyu Qi <xyqi@marvell.com>
2022 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2025 2013-04-08 Richard Biener <rguenther@suse.de>
2027 * alias.c (find_base_term): Fix thinko in previous change.
2029 2013-04-08 Jakub Jelinek <jakub@redhat.com>
2031 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2032 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2033 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
2034 if possible to compute val.
2035 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2036 For QImode integers don't require anything about precision. Use
2037 const_with_all_bytes_same to find out if the constant doesn't have
2038 repeated bytes in it.
2040 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2042 * config/s390/s390.c (s390_expand_insv): Only accept insertions
2045 2013-04-08 Marek Polacek <polacek@redhat.com>
2047 PR rtl-optimization/48182
2048 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2051 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2054 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2055 nuses, make sure we have a label.
2057 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2060 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2061 (rs6000_emit_swdiv_low_precision): Remove.
2062 (rs6000_emit_swdiv): Rewrite to handle between one and four
2063 iterations of Newton-Raphson generally; modify required number of
2064 iterations for some cases.
2065 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2067 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
2069 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2070 set-but-unused variable.
2072 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2073 basic blocks of released function bodies garbage-collectable.
2075 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2076 (struct rtl_opt_pass): Add TODO_df_finish.
2078 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2080 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2082 * config/arm/constraints.md (q): New constraint.
2083 * config/arm/ldrdstrd.md: New file.
2084 * config/arm/arm.md (ldrdstrd.md) New include.
2085 (arm_movdi): Use "q" instead of "r" constraint
2086 for double-word memory access.
2087 (movdf_soft_insn): Likewise.
2088 * config/arm/vfp.md (movdi_vfp): Likewise.
2089 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2090 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2091 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2092 (mem_ok_for_ldrd_strd): Likewise.
2093 (output_move_double): Update assertion.
2095 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2097 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2099 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2101 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2102 define_insn_and_split.
2103 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2105 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2107 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2108 define_insn_and_split.
2109 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2110 (shiftsi3_compare): New pattern.
2112 * config/arm/unspecs.md (UNSPEC_RRX): New.
2114 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2116 * config/arm/arm.md (negdi_extendsidi): New pattern.
2117 (negdi_zero_extendsidi): Likewise.
2119 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2121 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2122 define_insn_and_split.
2123 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2124 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2126 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2128 * config/arm/arm.md (arm_subdi3): Convert define_insn into
2129 define_insn_and_split.
2130 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2131 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2133 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2135 * config/arm/arm.md (subsi3_carryin): New pattern.
2136 (subsi3_carryin_const): Likewise.
2137 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2138 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2140 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2142 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2144 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
2146 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2147 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2149 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2151 * config/arm/arm.c (arm_expand_builtin): Change fcode
2152 type to unsigned int.
2154 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2156 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2158 2013-04-04 Ian Lance Taylor <iant@google.com>
2160 * doc/standards.texi (Standards): The Go frontend supports the Go 1
2163 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
2166 * df-scan.c (df_insn_delete): Disable failing assert.
2168 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2170 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2171 New function prototype.
2172 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2173 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2174 (arm_builtin_vectorized_function): New function.
2176 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2178 * config/arm/arm_neon_builtins.def: New file.
2179 * config/arm/arm.c (neon_builtin_data): Move contents to
2180 arm_neon_builtins.def.
2181 (enum arm_builtins): Include neon builtin definitions.
2182 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2183 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2185 2013-04-04 Marek Polacek <polacek@redhat.com>
2187 PR tree-optimization/48186
2188 * predict.c (maybe_hot_frequency_p): Return false if
2189 HOT_BB_FREQUENCY_FRACTION is 0.
2190 (cgraph_maybe_hot_edge_p): Likewise.
2192 2013-04-04 Richard Biener <rguenther@suse.de>
2194 PR tree-optimization/56826
2195 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2198 2013-04-04 Richard Biener <rguenther@suse.de>
2200 PR tree-optimization/56213
2201 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2202 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2204 2013-04-04 Richard Biener <rguenther@suse.de>
2206 PR tree-optimization/56837
2207 * tree-loop-distribution.c (classify_partition): For non-zero
2208 values require that the value has the same precision as its
2209 mode to be useful as memset value.
2211 2013-04-03 Nick Clifton <nickc@redhat.com>
2213 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2214 (fmssf4): Use fmsf.s on E3V5 architectures.
2215 (fnmasf4): Use fnmaf.s on E3V5 architectures.
2216 (fnmssf4): Use fnmsf.s on E3V5 architectures.
2218 2013-04-03 Jeff Law <law@redhat.com>
2220 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2221 (lra-eliminations.o): Likewise.
2223 2013-04-03 Teresa Johnson <tejohnson@google.com>
2225 * gcov-io.c (compute_working_sets): Moved most of body of old
2226 compute_working_sets here from profile.c.
2227 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2228 (gcov_working_set_t): Moved typedef here from basic-block.h
2229 (compute_working_set): Declare.
2230 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2231 (get_working_sets): Renamed from compute_working_set,
2232 replace most of body with call to new compute_working_sets.
2233 (get_exec_counts): Replace call to compute_working_sets
2234 to get_working_sets.
2235 * profile.h (get_working_sets): Renamed from compute_working_set.
2236 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2237 to get_working_sets.
2238 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2239 * gcov-dump.c (dump_working_sets): New function.
2241 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
2243 * hwint.c (sext_hwi, zext_hwi): New functions.
2244 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2245 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2246 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2247 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2248 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2249 (sext_hwi, zext_hwi): New functions.
2251 2013-04-03 Jeff Law <law@redhat.com>
2253 PR tree-optimization/56799
2254 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2255 back test for widening conversion erroneously dropped in prior change.
2257 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2260 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2261 instead of next_real_insn.
2263 2013-04-03 Marek Polacek <polacek@redhat.com>
2266 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2268 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2271 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2273 (thumb1_output_casesi): Likewise.
2274 (thumb2_output_casesi): Likewise.
2276 2013-04-03 Richard Biener <rguenther@suse.de>
2278 PR tree-optimization/56817
2279 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2281 (tree_unroll_loops_completely_1): ... new function to manually
2282 walk the loop tree, properly defering outer loops of unrolled
2283 loops to later iterations.
2285 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2287 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2288 (vectorizable_load): Likewise.
2289 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2290 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2292 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2294 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2297 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2299 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2301 2013-04-03 Bin Cheng <bin.cheng@arm.com>
2303 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2305 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2307 PR tree-optimization/56790
2308 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2311 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
2313 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2315 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2316 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2319 2013-04-03 Jakub Jelinek <jakub@redhat.com>
2322 * tree.h (force_folding_builtin_constant_p): New decl.
2323 * builtins.c (force_folding_builtin_constant_p): New variable.
2324 (fold_builtin_constant_p): Fold immediately also if
2325 force_folding_builtin_constant_p.
2327 2013-04-03 Richard Biener <rguenther@suse.de>
2329 PR tree-optimization/56812
2330 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2331 DRs of the same interleaving chain are independent.
2333 2013-04-02 Jason Merrill <jason@redhat.com>
2335 * gdbinit.in (pbb): Use debug fn.
2337 2013-04-02 Lawrence Crowl <crowl@google.com>
2339 * sese.h (struct ivtype_map_elt_s): Remove unused.
2340 (extern debug_ivtype_map): Remove unused.
2341 (extern eq_ivtype_map_elts): Remove unused.
2342 * sese.c (debug_ivtype_map): Removed unused.
2343 (debug_ivtype_map_1): Removed unused.
2344 (debug_ivtype_elt): Remove unused.
2345 (eq_ivtype_map_elts): Remove unused.
2348 2013-04-02 Kai Tietz <ktietz@redhat.com>
2351 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2352 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2353 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2355 (legitimize_pe_coff_symbol): Likewise.
2356 (is_imported_p): New helper-function.
2357 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2358 for Windows x64 targets.
2359 (ix86_expand_prologue): Optimize for pe-coff targets.
2360 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2361 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2362 medium/large code-model.
2363 (legitimize_pic_address): Likewise.
2364 (legitimize_tls_address): Likewise.
2365 (ix86_expand_call): Likewise.
2366 (x86_output_mi_thunk): Likewise.
2367 (get_dllimport_decl): Add new beimport argument.
2368 (construct_plt_address): Don't assert for x64 pe-coff targets.
2369 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2371 (SYMBOL_FLAG_STUBVAR): New macro.
2372 (SYMBOL_REF_STUBVAR_P): Likewise.
2373 * config/i386/winnt.c (stub_list): New structure.
2374 (stub_head): New local variable.
2375 (i386_pe_record_stub): New function.
2376 (i386_pe_file_end): Emit refptr-stubs.
2378 2013-04-02 Jakub Jelinek <jakub@redhat.com>
2380 PR rtl-optimization/56745
2381 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2382 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2385 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2386 and both of them are MEM_REFs, just compare first argument for
2387 equality and attempt to deal even with differing offsets.
2390 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2391 of gimple_clobber_p to be MEM_REF.
2392 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2393 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
2394 after gimplification.
2395 * asan.c (get_mem_ref_of_assignment): Don't instrument
2396 gimple_clobber_p stmts.
2397 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2398 gimple_clobber_p stmt if they have MEM_REF lhs and
2399 are dead because of another gimple_clobber_p stmt.
2400 * tree-ssa-live.c (clear_unused_block_pointer): Treat
2401 gimple_clobber_p stmts like debug stmts.
2402 (remove_unused_locals): Remove clobbers with MEM_REF lhs
2403 that refer to unused VAR_DECLs or uninitialized values.
2404 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2405 gimple_clobber_p stmts if they refer to removed parameters.
2406 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2409 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
2411 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2412 using SWI48 mode attribute.
2414 2013-04-02 Wei Mi <wmi@google.com>
2416 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2417 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2418 *<rotate_insn><mode>3_mask in i386.md.
2420 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
2422 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2424 2013-04-02 Richard Biener <rguenther@suse.de>
2426 PR tree-optimization/56778
2427 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2428 Runtime alias tests are not supported for gather loads.
2429 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2430 stmts referenced from SSA operands before updating SSA form.
2432 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
2433 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2435 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2436 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2437 * config/arm/cortex-a53.md: New file.
2438 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2439 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2440 * config/arm/arm.c (arm_issue_rate): Likewise.
2441 * config/arm/arm-tune.md: Regenerate
2442 * config/arm/arm-tables.opt: Regenerate.
2443 * config/arm/arm-cores.def: Add cortex-a53.
2445 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
2447 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2450 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2452 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2453 scalar load/store operations using B/H registers.
2454 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2456 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
2458 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2460 * config/aarch64/aarch64.c
2461 (aarch64_simd_scalar_immediate_valid_for_move): New.
2462 * config/aarch64/aarch64-protos.h
2463 (aarch64_simd_scalar_immediate_valid_for_move): New.
2464 * config/aarch64/constraints.md (Dh, Dq): New.
2465 * config/aarch64/iterators.md (hq): New.
2467 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
2469 * reorg.c (get_branch_condition): Deal with conditional returns.
2470 (fill_simple_delay_slots): Remove dead code dealing with jumps.
2472 2013-04-01 Wei Mi <wmi@google.com>
2474 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2475 Truncate operand 2 using %b asm operand modifier.
2476 (*<shift_insn><mode>3_mask): Ditto.
2477 (*<rotate_insn><mode>3_mask): Ditto.
2479 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
2482 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2484 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
2486 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2488 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2490 2013-03-30 Lawrence Crowl <crowl@google.com>
2492 * dse.c (clear_alias_sets): Remove never set.
2493 (disqualified_clear_alias_sets): Remove never set.
2494 (clear_alias_mode_pool): Remove never set.
2495 (dse_step0): Remove condition that is never true.
2496 (canon_address): Remove condition that is never true.
2497 (dse_step7): Remove condition that is never true.
2498 (rest_of_handle_dse): Remove condition that is never true.
2499 (rest_of_handle_dse::did_global): Remove never read from above.
2500 (dse_step2_spill): Remove never called from above.
2501 (dse_step5_spill): Remove never called from above.
2503 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
2505 * doc/md.texi (Standard Names) <casesi>: Update documentation for
2506 JUMP_TABLE_DATA changes.
2507 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2508 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2509 (Insns) <jump_table_data>: New entry.
2510 * doc/tm.texi: Regenerate.
2512 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2514 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2515 for table jump at the end of a basic block using tablejump_p.
2516 * targhooks.c (default_invalid_within_doloop): Likewise.
2517 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2518 target hook implementation that is identical to the default hook.
2519 (rs6000_invalid_within_doloop): Remove.
2521 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2522 unused variable from tablejump_p call.
2524 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2525 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2526 (INSN_DELETED_P): Likewise.
2527 (emit_jump_table_data): New prototype.
2528 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2529 after 4th as unused.
2530 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2531 * sched-vis.c (print_insn): Likewise.
2532 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2533 insn for compatibility with back ends that use next_active_insn to
2534 identify jump table data.
2535 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2536 (remove_insn): Likewise.
2537 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2539 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2540 (emit_jump_table_data): New function.
2542 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2543 basic block, a JUMP_TABLE_DATA never is.
2544 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2545 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2546 off from code handling real insns.
2547 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2548 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2549 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2550 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2551 is not a NONDEBUG_INSN_P.
2552 * ira-costs.c (scan_one_insn): Likewise.
2553 * jump.c (mark_all_labels): Likewise.
2554 (mark_jump_label_1): Likewise.
2555 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2556 * lra.c (get_insn_freq): Expect all insns reaching here to be in
2558 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2559 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2560 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2561 JUMP_TABLE_DATA_P insns.
2562 (calculate_elim_costs_all_insns): Likewise.
2563 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2564 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2565 (delete_output_reload): Code style fixups.
2566 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2567 insn flags on this non-insn.
2568 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2569 as scheduling barriers, for pre-change compatibility.
2570 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2571 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2573 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2574 redundant JUMP_TABLE_DATA_P test.
2575 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2576 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2577 (frv_for_each_packet): Likewise.
2578 * config/i386/i386.c (min_insn_size): Likewise.
2579 (ix86_avoid_jump_mispredicts): Likewise.
2580 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2581 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2582 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2583 (mips16_insn_length): Robustify.
2584 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2585 (mips16_split_long_branches): Likewise.
2586 * config/pa/pa.c (pa_combine_instructions): Likewise.
2587 * config/rs6000/rs6000.c (get_next_active_insn): Treat
2588 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
2589 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
2590 as contributing to pool range lengths.
2591 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
2592 Remove redundant JUMP_TABLE_DATA_P test.
2593 (sh_loop_align): Likewise.
2594 (split_branches): Likewise.
2595 (sh_insn_length_adjustment): Likewise.
2596 * config/spu/spu.c (get_branch_target): Likewise.
2598 2013-03-29 Jan Hubicka <jh@suse.cz>
2600 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
2601 gcov streaming; stream hot bb threshold to ltrans.
2602 * predict.c (get_hot_bb_threshold): Break out from ....
2603 (maybe_hot_count_p): ... here.
2604 (set_hot_bb_threshold): New function.
2605 * lto-section-in.c (lto_section_name): Add profile.
2606 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
2607 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
2609 (histogram_entry): New structure.
2610 (histogram, histogram_pool): New global vars.
2611 (histogram_hash): New structure.
2612 (histogram_hash::hash): New method.
2613 (histogram_hash::equal): Likewise.
2614 (account_time_size): New function.
2615 (cmp_counts): New function.
2616 (dump_histogram): New function.
2617 (ipa_profile_generate_summary): New function.
2618 (ipa_profile_write_summary): New function.
2619 (ipa_profile_read_summary): New function.
2620 (ipa_profile): Decide on threshold.
2621 (pass_ipa_profile): Add ipa_profile_write_summary and
2622 ipa_profile_read_summary.
2623 * Makefile.in (ipa.o): Update dependencies.
2624 * lto-streamer.h (LTO_section_ipa_profile): New section.
2626 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
2628 * tree.h (VAR_P): New.
2630 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
2633 * doc/invoke.texi ([-fwhole-program]): Fix typo.
2635 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
2637 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2638 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2639 (control_flow_insn_p): Likewise.
2640 * cfgrtl.c (duplicate_insn_chain): Likewise.
2641 * final.c (get_attr_length_1): Likewise.
2642 (shorten_branches): Likewise.
2643 (final_scan_insn): Likewise.
2644 * function.c (instantiate_virtual_regs): Likewise.
2645 * gcse.c (insert_insn_end_basic_block): Likewise.
2646 * ira-costs.c (scan_one_insn): Likewise.
2647 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2648 * lra.c (check_rtl): Likewise.
2649 * reload1.c (elimination_costs_in_insn): Likewise.
2650 * reorg.c (follow_jumps): Likewise.
2652 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2653 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2654 (thumb_far_jump_used_p): Likewise.
2655 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2656 (workaround_speculation): Likewise.
2657 (add_sched_insns_for_speculation): Likewise.
2658 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2659 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2660 (frv_for_each_packet): Likewise.
2661 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2662 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2663 (final_emit_insn_group_barriers): Likewise.
2664 * config/m32r/m32r.c (m32r_is_insn): Likewise.
2665 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2666 (mips16_insn_length): Likewise.
2667 * config/pa/pa.c (pa_reorg): Likewise.
2668 (pa_combine_instructions): Likewise.
2669 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2670 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2671 (sh_reorg): Likewise.
2672 (split_branches): Likewise.
2673 * config/spu/spu.c (get_branch_target): Likewise.
2675 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2678 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
2680 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2681 Fix declaration name.
2683 2013-03-28 Lawrence Crowl <crowl@google.com>
2685 * graphds.h (struct graph.indicies): Remove unused.
2686 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2687 (SCOP_ORIGINAL_PDDRS): Remove unused.
2688 * sese.h (extern insert_loop_close_phis): Removed unused.
2689 (extern insert_guard_phis): Removed unused.
2690 (extern ivtype_map_elt_info): Removed unused.
2691 (new_ivtype_map_elt): Removed unused.
2692 * sese.c (ivtype_map_elt_info): Removed unused.
2694 2013-03-28 Lawrence Crowl <crowl@google.com>
2696 * Makefile.in: Add several missing include dependences.
2698 (test-dump.o): New. This object is not added to any executable,
2699 but is present for ad-hoc testing.
2701 (debug (const bitmap_head_def &)): New.
2702 (debug (const bitmap_head_def *)): New.
2704 (extern debug (const bitmap_head_def &)): New.
2705 (extern debug (const bitmap_head_def *)): New.
2707 (debug (edge_def &)): New.
2708 (debug (edge_def *)): New.
2710 (debug (basic_block_def &)): New.
2711 (debug (basic_block_def *)): New.
2713 (dump_node (const_tree, int, FILE *)): Correct source file.
2715 (debug (die_struct &)): New.
2716 (debug (die_struct *)): New.
2718 (extern debug (die_struct &)): New.
2719 (extern debug (die_struct *)): New.
2720 * gimple-pretty-print.c
2721 (debug (gimple_statement_d &)): New.
2722 (debug (gimple_statement_d *)): New.
2723 * gimple-pretty-print.h
2724 (extern debug (gimple_statement_d &)): New.
2725 (extern debug (gimple_statement_d *)): New.
2727 (debug (ira_allocno_copy &)): New.
2728 (debug (ira_allocno_copy *)): New.
2729 (debug (ira_allocno &)): New.
2730 (debug (ira_allocno *)): New.
2732 (extern debug (ira_allocno_copy &)): New.
2733 (extern debug (ira_allocno_copy *)): New.
2734 (extern debug (ira_allocno &)): New.
2735 (extern debug (ira_allocno *)): New.
2737 (debug (live_range &)): New.
2738 (debug (live_range *)): New.
2740 (debug (lra_live_range &)): New.
2741 (debug (lra_live_range *)): New.
2743 (debug (lra_live_range &)): New.
2744 (debug (lra_live_range *)): New.
2746 (debug (omega_pb_d &)): New.
2747 (debug (omega_pb_d *)): New.
2749 (extern debug (omega_pb_d &)): New.
2750 (extern debug (omega_pb_d *)): New.
2752 (debug (const rtx_def &)): New.
2753 (debug (const rtx_def *)): New.
2755 (debug_tree (tree): Move within file.
2756 (debug_raw (const tree_node &)): New.
2757 (debug_raw (const tree_node *)): New.
2758 (dump_tree_via_hooks (const tree_node *, int)): New.
2759 (debug (const tree_node &)): New.
2760 (debug (const tree_node *)): New.
2761 (debug_verbose (const tree_node &)): New.
2762 (debug_verbose (const tree_node *)): New.
2763 (debug_head (const tree_node &)): New.
2764 (debug_head (const tree_node *)): New.
2765 (debug_body (const tree_node &)): New.
2766 (debug_body (const tree_node *)): New.
2767 (debug_vec_tree (tree): Move and reimplement in terms of dump.
2768 (debug (vec<tree, va_gc> &)): New.
2769 (debug (vec<tree, va_gc> *)): New.
2771 (extern debug (const rtx_def &)): New.
2772 (extern debug (const rtx_def *)): New.
2774 (debug_raw (simple_bitmap_def &)): New.
2775 (debug_raw (simple_bitmap_def *)): New.
2776 (debug (simple_bitmap_def &)): New.
2777 (debug (simple_bitmap_def *)): New.
2779 (extern debug (simple_bitmap_def &)): New.
2780 (extern debug (simple_bitmap_def *)): New.
2781 (extern debug_raw (simple_bitmap_def &)): New.
2782 (extern debug_raw (simple_bitmap_def *)): New.
2784 (debug (vinsn_def &)): New.
2785 (debug (vinsn_def *)): New.
2786 (debug_verbose (vinsn_def &)): New.
2787 (debug_verbose (vinsn_def *)): New.
2788 (debug (expr_def &)): New.
2789 (debug (expr_def *)): New.
2790 (debug_verbose (expr_def &)): New.
2791 (debug_verbose (expr_def *)): New.
2792 (debug (vec<rtx> &)): New.
2793 (debug (vec<rtx> *)): New.
2795 (extern debug (vinsn_def &)): New.
2796 (extern debug (vinsn_def *)): New.
2797 (extern debug_verbose (vinsn_def &)): New.
2798 (extern debug_verbose (vinsn_def *)): New.
2799 (extern debug (expr_def &)): New.
2800 (extern debug (expr_def *)): New.
2801 (extern debug_verbose (expr_def &)): New.
2802 (extern debug_verbose (expr_def *)): New.
2803 (extern debug (vec<rtx> &)): New.
2804 (extern debug (vec<rtx> *)): New.
2806 (_list_iter_cond_expr): Make inline instead of static.
2808 (debug (sreal &)): New.
2809 (debug (sreal *)): New.
2811 (extern debug (sreal &)): New.
2812 (extern debug (sreal *)): New.
2814 (extern debug_raw (const tree_node &)): New.
2815 (extern debug_raw (const tree_node *)): New.
2816 (extern debug (const tree_node &)): New.
2817 (extern debug (const tree_node *)): New.
2818 (extern debug_verbose (const tree_node &)): New.
2819 (extern debug_verbose (const tree_node *)): New.
2820 (extern debug_head (const tree_node &)): New.
2821 (extern debug_head (const tree_node *)): New.
2822 (extern debug_body (const tree_node &)): New.
2823 (extern debug_body (const tree_node *)): New.
2824 (extern debug (vec<tree, va_gc> &)): New.
2825 (extern debug (vec<tree, va_gc> *)): New.
2827 (debug (struct loop &)): New.
2828 (debug (struct loop *)): New.
2829 (debug_verbose (struct loop &)): New.
2830 (debug_verbose (struct loop *)): New.
2831 * tree-dump.c: Add header dependence.
2833 (extern debug (struct loop &)): New.
2834 (extern debug (struct loop *)): New.
2835 (extern debug_verbose (struct loop &)): New.
2836 (extern debug_verbose (struct loop *)): New.
2838 (debug (data_reference &)): New.
2839 (debug (data_reference *)): New.
2840 (debug (vec<data_reference_p> &)): New.
2841 (debug (vec<data_reference_p> *)): New.
2842 (debug (vec<ddr_p> &)): New.
2843 (debug (vec<ddr_p> *)): New.
2845 (extern debug (data_reference &)): New.
2846 (extern debug (data_reference *)): New.
2847 (extern debug (vec<data_reference_p> &)): New.
2848 (extern debug (vec<data_reference_p> *)): New.
2849 (extern debug (vec<ddr_p> &)): New.
2850 (extern debug (vec<ddr_p> *)): New.
2852 (debug (pt_solution &)): New.
2853 (debug (pt_solution *)): New.
2855 (extern debug (pt_solution &)): New.
2856 (extern debug (pt_solution *)): New.
2858 (debug (_var_map &)): New.
2859 (debug (_var_map *)): New.
2860 (debug (tree_live_info_d &)): New.
2861 (debug (tree_live_info_d *)): New.
2863 (extern debug (_var_map &)): New.
2864 (extern debug (_var_map *)): New.
2865 (extern debug (tree_live_info_d &)): New.
2866 (extern debug (tree_live_info_d *)): New.
2868 2013-03-28 Jan Hubicka <jh@suse.cz>
2870 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
2872 2013-03-28 Ian Bolton <ian.bolton@arm.com>
2874 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2875 record only when desired or required.
2877 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
2879 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
2880 *vec_extractv2di_1_rex64. Use x64 isa attribute.
2882 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2884 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
2885 (*andsi3_compare0_uxtw): New pattern.
2886 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
2887 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
2889 2013-03-28 Jan Hubicka <jh@suse.cz>
2891 * data-streamer-in.c (streamer_read_gcov_count): New function.
2892 * gimple-streamer-out.c: Include value-prof.h.
2893 (output_gimple_stmt): Output histogram.
2894 (output_bb): Use streamer_write_gcov_count.
2895 * value-prof.c: Include data-streamer.h
2896 (dump_histogram_value): Add HIST_TYPE_MAX.
2897 (stream_out_histogram_value): New function.
2898 (stream_in_histogram_value): New function.
2899 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
2900 (stream_out_histogram_value, stream_in_histogram_value): Declare.
2901 * data-streamer-out.c (streamer_write_gcov_count): New function.
2902 (streamer_write_gcov_count_stream): New function.
2903 * lto-cgraph.c (lto_output_edge): Update counter streaming.
2904 (lto_output_node): Likewise.
2905 (input_node, input_edge): Likewise.
2906 * lto-streamer-out.c (output_cfg): Update streaming.
2907 * lto-streamer-in.c (input_cfg): Likewise.
2908 * data-streamer.h (streamer_write_gcov_count,
2909 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
2910 * gimple-streamer-in.c: Include value-prof.h
2911 (input_gimple_stmt): Input histograms.
2912 (input_bb): Update profile streaming.
2914 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
2916 * genmodes.c (emit_max_int): New function.
2917 (emit_insn_modes_h): Added call to emit_max_function.
2918 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
2920 * machmode.def: Fixed comment.
2922 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
2924 * combine.c (try_combine): Removed useless assert.
2925 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2927 2013-03-28 Marek Polacek <polacek@redhat.com>
2928 Richard Biener <rguenther@suse.de>
2930 PR tree-optimization/56695
2931 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
2932 build signed result of a vector comparison.
2933 * tree-cfg.c (verify_gimple_comparison): Check that a result
2934 of a vector comparison has signed type.
2936 2013-03-28 Richard Biener <rguenther@suse.de>
2938 PR tree-optimization/37021
2939 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
2940 do not restrict gaps between groups.
2941 * tree-vect-stmts.c (vectorizable_load): Properly account for
2942 a gap between groups.
2944 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
2946 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
2947 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
2950 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
2952 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
2953 * doc/extend.texi (Named Address Spaces): Ditto.
2954 (Variable Attributes): Ditto.
2956 2013-03-27 Kai Tietz <ktietz@redhat.com>
2958 * config.build: Add support for cygwin x64 target.
2959 * config.gcc: Likewise.
2960 * config.host: Likewise.
2961 * configure.ac: Likewise
2962 * configure: Regenerated.
2964 2013-03-27 Kai Tietz <ktietz@redhat.com>
2966 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
2967 * config/i386/t-cygwin-w64: New file.
2968 * config/i386/cygwin-w64.h: New file.
2969 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
2970 and add support for x64-cygwin target.
2971 (CPP_SPEC): Likewise.
2972 (CXX_WRAP_SPEC_LIST): Undefine before define.
2973 (LIBGCJ_SONAME): Use 15 as version.
2975 2013-03-27 Richard Biener <rguenther@suse.de>
2977 PR tree-optimization/56716
2978 * tree-ssa-structalias.c (perform_var_substitution): Adjust
2979 dumping for ref nodes.
2981 2013-03-27 Martin Jambor <mjambor@suse.cz>
2983 PR tree-optimization/55334
2984 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
2985 restricted pointers to arrays.
2987 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2989 * Makefile.in (.SUFFIXES): Add .cc.
2990 (.c.o): Apply same recipe for implicit rule .cc.o.
2992 2013-03-27 Richard Biener <rguenther@suse.de>
2994 PR tree-optimization/37021
2995 * tree-vect-data-refs.c (vect_check_strided_load): Allow
2996 REALPART/IMAGPART_EXPRs around the supported refs.
2997 * tree-ssa-structalias.c (find_func_aliases): Assume that
2998 floating-point values are not used to transfer pointers.
3000 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
3002 * target.def (TARGET_HAS_IFUNC_P): New target hook.
3003 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3004 * doc/tm.texi: Regenerate.
3005 * targhooks.h (default_has_ifunc_p): New.
3006 * targhooks.c (default_has_ifunc_p): Ditto.
3007 * config/linux-protos.h: New file.
3008 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3009 this hook for linux which disables support of indirect functions in
3011 * config/linux-android.c: New file.
3012 * config/t-linux-android.c: Ditto.
3013 * config.gcc: Added new object file linux-android.o.
3014 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3015 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3016 * varasm.c (do_assemble_alias): Likewise.
3017 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3018 doesn't support indirect functions.
3019 * configure: Regenerate.
3021 2013-03-27 Bin Cheng <bin.cheng@arm.com>
3024 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3025 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3028 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3030 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3032 2013-03-27 Terry Guo <terry.guo@arm.com>
3034 * config/arm/arm-cores.def: Added core cortex-r7.
3035 * config/arm/arm-tune.md: Regenerated.
3036 * config/arm/arm-tables.opt: Regenerated.
3037 * doc/invoke.texi: Added entry for core cortex-r7.
3039 2013-03-27 Walter Lee <walt@tilera.com>
3041 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3042 double-decrement of next_scratch_regno.
3044 2013-03-27 Walter Lee <walt@tilera.com>
3046 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3048 (insn_v1mulus): Ditto.
3049 (insn_v2muls): Ditto.
3051 2013-03-27 Walter Lee <walt@tilera.com>
3053 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3054 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3056 2013-03-27 Walter Lee <walt@tilera.com>
3058 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3059 (*sibcall_value): Ditto.
3061 2013-03-27 Walter Lee <walt@tilera.com>
3063 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3064 (insn_mnz_v8qi): ... this ...
3065 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
3067 (insn_v<n>mnz): Replaced by ...
3068 (insn_v1mnz): ... this ...
3069 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
3071 (insn_mz_<mode>): Replaced by ...
3072 (insn_mz_v8qi): ... this ...
3073 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
3075 (insn_v<n>mz): Replaced by ...
3076 (insn_v1mz): ... this ...
3077 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
3080 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
3082 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3084 2013-03-26 Roland McGrath <mcgrathr@google.com>
3086 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3087 than fprintf with a non-constant, non-format string.
3089 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3091 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3092 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
3093 operand 0 predicate.
3094 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3095 attribute. Use general_x64nomem_operand as operand 1 predicate.
3096 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3097 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3098 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3099 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
3100 (mov<mode>_insv_1): Remove expander. Merge insn with
3101 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3102 Use general_x64nomem_operand as operand 1 predicate.
3103 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3104 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3105 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3106 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3107 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
3108 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3109 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
3110 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3111 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
3112 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3113 (general_x64nomem_operand): Ditto.
3115 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
3117 * config/rtems.opt: Add -pthread option.
3119 2013-03-26 Richard Biener <rguenther@suse.de>
3121 * alias.c (find_base_term): Avoid redundant and not used recursion.
3122 (base_alias_check): Get the initial base term from the caller.
3123 (true_dependence_1): Compute and pass base terms to base_alias_check.
3124 (write_dependence_p): Likewise.
3125 (may_alias_p): Likewise.
3127 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
3129 * config/aarch64/aarch64.c (aarch64_classify_address): Support
3130 PC-relative load in SI modes and above only.
3132 2013-03-26 Xinyu Qi <xyqi@marvell.com>
3134 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3135 * config/arm/iwmmxt.md (WCGR0): Update.
3136 (WCGR1, WCGR2, WCGR3): Likewise.
3138 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
3140 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3141 Use x64 and nox64 isa attributes.
3143 2013-03-26 Richard Biener <rguenther@suse.de>
3145 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3146 alignment computations and rely on get_object_alignment_1
3147 for the !TYPE_P case.
3148 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3150 2013-03-26 Walter Lee <walt@tilera.com>
3152 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3153 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3155 2013-03-25 Jeff Law <law@redhat.com>
3157 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3158 check for INTEGRAL_TYPE_P that was missing due to checking in
3159 wrong version of prior patch.
3161 2013-03-25 Walter Lee <walt@tilera.com>
3163 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3164 TILEGX_INSN_SHUFFLEBYTES1.
3165 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3167 (tilegx_builtins): Ditto.
3168 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3170 2013-03-25 Walter Lee <walt@tilera.com>
3172 * config/tilegx/tilegx.md (floatsisf2): New pattern.
3173 (floatunssisf2): New pattern.
3174 (floatsidf2): New pattern.
3175 (floatunssidf2): New pattern.
3177 2013-03-25 Walter Lee <walt@tilera.com>
3179 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3180 tests for constraint J, K, N, P.
3182 2013-03-25 Walter Lee <walt@tilera.com>
3184 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3185 Use indirect/pcrel encoding.
3186 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3189 2013-03-25 Steve Ellcey <sellcey@mips.com>
3191 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3192 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3193 * config/mips/mips.c (mips_option_override): Set IMADD default.
3194 * config/mips/mips.h (PTF_AVOID_IMADD): New.
3195 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3196 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3197 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3198 * doc/invoke.texi (-mimadd/-mno-imadd): New.
3200 2013-03-25 Jeff Law <law@redhat.com>
3202 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3203 slightly to avoid creating and folding useless trees. Simplify
3204 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3206 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
3208 * config/i386/i386.md (*zero_extendsidi2): Merge with
3209 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
3210 * config/i386/predicates.md (x86_64_zext_operand): Rename from
3211 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
3212 targets. Clarify comment.
3214 2013-03-25 Martin Jambor <mjambor@suse.cz>
3216 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3217 pass-through jump functions differently.
3218 (ipa_read_jump_function): Likewise. Also use setter functions to set
3221 2013-03-25 Martin Jambor <mjambor@suse.cz>
3223 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3224 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3226 (ipa_get_indirect_edge_target): New function.
3227 (devirtualization_time_bonus): New parameter known_aggs, pass it to
3228 ipa_get_indirect_edge_target. Update all callers.
3229 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
3230 ipa_get_indirect_edge_target_1 instead of calling
3231 ipa_get_indirect_edge_target.
3232 (create_specialized_node): Pass aggvlas to
3233 ipcp_discover_new_direct_edges.
3235 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3237 * config/arm/arm.md (f_sels, f_seld): New types.
3238 (*cmov<mode>): New pattern.
3239 * config/arm/predicates.md (arm_vsel_comparison_operator): New
3242 2013-03-25 Kai Tietz <ktietz@redhat.com>
3244 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3245 POSIX-printf for mingw-hosted builds.
3247 2013-03-25 Richard Biener <rguenther@suse.de>
3250 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3251 must-not-throw stmt location.
3253 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3255 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3256 Emit load-acquire versions when acq is true.
3257 (arm_emit_store_exclusive): Add rel parameter.
3258 Emit store-release versions when rel is true.
3259 (arm_split_compare_and_swap): Use acquire-release instructions
3261 of barriers when appropriate.
3262 (arm_split_atomic_op): Likewise.
3263 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3264 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3265 (VUNSPEC_SLX): Likewise.
3266 (VUNSPEC_LDA): Likewise.
3267 (VUNSPEC_STL): Likewise.
3268 * config/arm/sync.md (atomic_load<mode>): New pattern.
3269 (atomic_store<mode>): Likewise.
3270 (arm_load_acquire_exclusive<mode>): Likewise.
3271 (arm_load_acquire_exclusivesi): Likewise.
3272 (arm_load_acquire_exclusivedi): Likewise.
3273 (arm_store_release_exclusive<mode>): Likewise.
3275 2013-03-25 Catherine Moore <clm@codesourcery.com>
3277 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3278 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3279 * config/mip/predicates.md (lwsp_swsp_operand,
3280 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3281 sb16_operand, db4_operand, db7_operand, ib3_operand,
3282 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3283 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3284 andi16_operand): New predicates.
3285 * config/mips/mips.md (compression): New attribute.
3286 (enabled): New attribute.
3287 (length): Consider compression in computing length.
3288 (shift_compression): New code attribute.
3289 (*add<mode>3): New operands. Record compression.
3290 (sub<mode>3): Likewise.
3291 (one_cmpl<mode>2): Likewise.
3292 (*and<mode>3): Likewise.
3293 (*ior<mode>3): Likewise.
3294 (unnamed pattern for xor): Likewise.
3295 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3296 (*<optab><mode>3): Likewise.
3297 (*mov<mode>_internal: Likewise.
3298 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3299 (mips_unsigned_immediate_p): New.
3300 (umips_lwsp_swsp_address_p): New.
3301 (m16_based_address_p): New.
3302 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3303 (mips_unsigned_immediate_p): New prototype.
3304 (lwsp_swsp_address_p): New prototype.
3305 (m16_based_address_p): New prototype.
3306 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3307 (mips_signed_immediate_p): New function.
3308 (m16_based_address_p): New function.
3309 (lwsp_swsp_address_p): New function.
3310 (mips_print_operand_punctuation): Recognize short delay slot insns
3311 for microMIPS.add<mode>3"
3313 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3316 * config/arm/iterators.md (v_cmp_result): New mode attribute.
3317 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3319 2013-03-25 Richard Biener <rguenther@suse.de>
3321 PR tree-optimization/56689
3322 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3325 2013-03-25 Richard Biener <rguenther@suse.de>
3327 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3329 (memory_references): Likewise.
3330 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3331 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3332 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3333 (gather_mem_refs_in_loops): Fold into ...
3334 (analyze_memory_references): ... this. Move initialization
3335 to tree_ssa_lim_initialize.
3336 (fill_always_executed_in): Rename to ...
3337 (fill_always_executed_in_1): ... this.
3338 (fill_always_executed_in): Move contains_call computation to
3339 this new function from ...
3340 (tree_ssa_lim_initialize): ... here.
3341 (tree_ssa_lim): Call fill_always_executed_in.
3343 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3345 * postreload.c (reload_combine): Fix code detecting returns.
3347 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
3349 * function.c (emit_use_return_register_into_block): On cc0 targets,
3350 do not emit the sequence between cc0 setter and user.
3352 2013-03-25 Kai Tietz <ktietz@redhat.com>
3354 * config/i386/predicates.md (local_symbolic_operand): Interpret
3355 dll-imported symbols as none-local.
3357 2013-03-25 Richard Biener <rguenther@suse.de>
3359 * tree-ssa-loop-im.c (struct depend): Remove.
3360 (struct lim_aux_data): Make depends a vec of gimples.
3361 (free_lim_aux_data): Adjust.
3362 (add_dependency): Likewise.
3363 (set_level): Likewise.
3365 2013-03-25 Richard Biener <rguenther@suse.de>
3368 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3369 the pointer returned by calls with ECF_MALLOC set.
3371 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3373 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3375 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
3377 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3378 using MMXMODE mode iterator.
3379 (*move<mode>_internal): Merge with *movv2sf_internal and
3380 *movv2sf_internal_rex64 using MMXMODE mode iterator.
3382 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3384 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3385 (record_last_mem_set_info): Likewise.
3387 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3388 of XNEWVEC followed by memset.
3389 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3391 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
3393 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3394 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3395 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3396 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3397 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3398 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3399 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3400 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3401 BARRIER_P instead of GET_CODE.
3403 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3405 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3406 inaccuracy in the probing code.
3408 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3409 (ctrapdi4): Likewise.
3411 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3413 * calls.c (expand_call): Add missing guard to code handling return
3414 of non-BLKmode structures in MSB.
3415 * function.c (expand_function_end): Likewise.
3417 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
3419 * combine.c (try_combine): Adjust comment. Do not add the set of
3420 insn #0 if the destination indirectly is set or dies in insn #2.
3421 Tidy up code to distribute a new note.
3423 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3425 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3426 also for alternatives 16 and 17.
3428 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
3430 * config/i386/sse.md (*mov<mode>_internal): Merge with
3431 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
3432 Emit insn template depending on type attribute. Use
3433 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3434 movd instead of movq mnemonic for interunit moves. Rewrite mode
3435 attribute calculation. Remove unit attribute calculation.
3436 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3437 Set prefix_data16 attribute for DImode ssemov types.
3438 Use Ym instead of y for SSE-MMX conversion alternatives.
3439 Reorder operand constraints.
3441 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
3443 * df.h (df_insn_delete): Adjust prototype.
3444 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3445 and let it decide whether mark the basic block dirty.
3446 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3447 * df-scan.c (df_insn_info_delete): New helper function, split
3448 off from df_insn_delete.
3449 (df_scan_free_bb_info): Use it.
3450 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3452 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
3453 that the insn is actually an insn and it has a non-NULL basic block.
3454 Do not mark basic block dirty if only deleting a DEBUG_INSN.
3456 2013-03-22 Richard Biener <rguenther@suse.de>
3458 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3460 (mem_ref_alloc): Do not allocate them.
3461 (refs_independent_p): Do not query or maintain a cache.
3463 2013-03-22 Richard Biener <rguenther@suse.de>
3465 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3466 (gather_mem_refs_in_loops): Do not compute it.
3467 (analyze_memory_references): Do not allocate it.
3468 (tree_ssa_lim_finalize): Do not free it.
3469 (for_all_locs_in_loop): Do not query all_refs_in_loop.
3471 2013-03-22 Richard Biener <rguenther@suse.de>
3473 * is-a.h (as_a): Use gcc_checking_assert.
3475 2013-03-22 Ian Bolton <ian.bolton@arm.com>
3477 * config/aarch64/aarch64.c (aarch64_print_operand): New
3478 format specifier for printing a constant in hex.
3479 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3480 format specifier for printing second operand.
3482 2013-03-22 Richard Biener <rguenther@suse.de>
3484 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3486 (gather_mem_refs_in_loops): Perform store accumulation here.
3487 (create_vop_ref_mapping_loop): Remove.
3488 (create_vop_ref_mapping): Likewise.
3489 (analyze_memory_references): Initialize refs_stored_in_loop.
3490 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3491 (record_indep_loop): Remove.
3492 (record_dep_loop): New function.
3493 (ref_indep_loop_p_1): Adjust to only walk over references
3494 in the loop, not its subloops.
3495 (ref_indep_loop_p): Rename to ...
3496 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3497 maintaining a more fine-grained cache.
3498 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3499 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3501 2013-03-22 Richard Biener <rguenther@suse.de>
3503 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3504 (struct mem_ref): Make accesses_in_loop a vec of a vec of
3505 aggregate mem_ref_loc.
3506 (free_mem_ref_locs): Inline into ...
3507 (memref_free): ... this and adjust.
3508 (mem_ref_alloc): Adjust.
3509 (mem_ref_locs_alloc): Remove.
3510 (record_mem_ref_loc): Adjust.
3511 (get_all_locs_in_loop): Rewrite into ...
3512 (for_all_locs_in_loop): ... this iterator.
3513 (rewrite_mem_ref_loc): New functor.
3514 (rewrite_mem_refs): Use for_all_locs_in_loop.
3515 (sm_set_flag_if_changed): New functor.
3516 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3517 (ref_always_accessed): New functor.
3518 (ref_always_accessed_p): Use for_all_locs_in_loop.
3520 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3522 * tree-pass.h (PROP_gimple_lvec): New.
3523 * passes.c (dump_properties): Handle PROP_gimple_lvec.
3524 (init_optimization_passes): Move pass_lower_vector.
3525 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3527 (pass_lower_vector): Provide PROP_gimple_lvec.
3528 (pass_lower_vector_ssa): Likewise.
3529 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3531 2013-03-21 Mark Wielaard <mjw@redhat.com>
3533 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3535 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3537 * config/i386/i386.md (*movdi_internal): Disparage slightly
3538 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
3539 conversion alternatives.
3541 2013-03-21 Jakub Jelinek <jakub@redhat.com>
3544 * diagnostic.def (DK_WERROR): New kind.
3545 * diagnostic.h (werrorcount): Define.
3546 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3547 promoted to DK_ERROR, increment DK_WERROR counter instead of
3549 * toplev.c (toplev_main): Call print_ignored_options even if
3550 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
3551 even if just werrorcount is non-zero.
3554 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3556 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3557 (string_cst_pool_decl): New function.
3558 (optimize_one_addr_into_implicit_ptr): New function.
3559 (resolve_addr_in_expr): Optimize DWARF location expression
3560 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3561 which doesn't live in memory, but has DW_AT_location or
3562 DW_AT_const_value, or refers to a string literal, into
3563 DW_OP_GNU_implicit_pointer.
3564 (optimize_location_into_implicit_ptr): New function.
3565 (resolve_addr): If removing DW_AT_location of a variable because
3566 it was DW_OP_addr of address of the variable, but the variable doesn't
3567 live in memory, try to emit const value attribute for the initializer.
3569 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3571 * tree.h (VECTOR_TYPE_P): New macro.
3572 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3574 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3575 VEC_COND_EXPR cannot be lvalues.
3576 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3578 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
3580 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3581 Restrict the transformation to equal modes.
3583 2013-03-21 Richard Biener <rguenther@suse.de>
3585 PR tree-optimization/39326
3586 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
3587 (MEM_ANALYZABLE): Adjust.
3588 (record_mem_ref_loc): Move bitmap ops ...
3589 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
3590 unanalyzable refs, do not record locations for it.
3591 (analyze_memory_references): Allocate ref zero as shared
3593 (refs_independent_p): Do not test for unanalyzed mems here.
3594 (ref_indep_loop_p_1): Special-case disambiguation against
3596 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
3598 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
3600 * config/arm/arm-protos.h (tune_params): Add
3601 prefer_neon_for_64bits field.
3602 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
3603 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
3604 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3605 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3606 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
3607 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3608 (arm_option_override): Handle -mneon-for-64bits new option.
3609 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
3610 (prefer_neon_for_64bits): Declare new variable.
3611 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
3612 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
3613 (arch_enabled): Handle new arch types. Remove support for onlya8
3615 (one_cmpldi2): Use new arch names.
3616 (zero_extend<mode>di2, extend<mode>di2): Ditto.
3617 * config/arm/arm.opt (mneon-for-64bits): Add option.
3618 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3619 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3620 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3622 * doc/invoke.texi (-mneon-for-64bits): Document.
3624 2013-03-21 Richard Biener <rguenther@suse.de>
3626 PR tree-optimization/39326
3627 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3628 (sort_bbs_in_loop_postorder_cmp): New function.
3629 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3631 2013-03-21 Richard Biener <rguenther@suse.de>
3633 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3634 (vect_insert_into_interleaving_chain): Likewise.
3635 (vect_drs_dependent_in_basic_block): Inline ...
3636 (vect_slp_analyze_data_ref_dependence): ... here. New function,
3638 (vect_analyze_data_ref_dependence): ... here. Simplify.
3639 (vect_check_interleaving): Simplify.
3640 (vect_analyze_data_ref_dependences): Likewise. Split out ...
3641 (vect_slp_analyze_data_ref_dependences): ... this new function.
3642 (dr_group_sort_cmp): New function.
3643 (vect_analyze_data_ref_accesses): Compute data-reference groups
3644 here instead of in vect_analyze_data_ref_dependence. Use
3645 a more efficient algorithm.
3646 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3647 vect_slp_analyze_data_ref_dependences. Call
3648 vect_analyze_data_ref_accesses earlier.
3649 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3650 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3651 (vect_slp_analyze_data_ref_dependences): New prototype.
3653 2013-03-21 Richard Biener <rguenther@suse.de>
3655 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3656 ref is stored in the loop.
3657 (find_refs_for_sm): Walk only over all stores.
3658 (store_motion_loop): Allocate from lim_bitmap_obstack.
3659 (store_motion): Likewise.
3661 2013-03-21 Richard Biener <rguenther@suse.de>
3663 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3664 Update virtual SSA form.
3666 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3668 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3669 * configure: Regenerate.
3670 * config.in: Regenerate.
3671 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3672 if !HAVE_LD_EH_FRAME_CIEV3.
3674 2013-03-21 Richard Biener <rguenther@suse.de>
3676 * tree-cfg.c (verify_expr_no_block): New function.
3677 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3678 nor DECL_VALUE_EXPR have locations with associated blocks.
3679 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3680 (clear_unused_block_pointer): Remove code dealing with
3681 blocks in DECL_DEBUG_EXPR locations.
3683 2013-03-21 Richard Biener <rguenther@suse.de>
3685 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3686 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
3687 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3688 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3689 instead of DECL_DEBUG_EXPR_IS_FROM.
3690 * gimplify.c (gimplify_modify_expr): Likewise.
3691 * tree-cfg.c (verify_expr_location_1): Likewise.
3692 * tree-complex.c (create_one_component_var): Likewise.
3693 * tree-sra.c (create_access_replacement): Likewise.
3694 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3695 (clear_unused_block_pointer): Likewise.
3696 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3697 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3698 * var-tracking.c (var_debug_decl): Likewise.
3699 (track_expr_p): Likewise.
3700 * tree-inline.c (add_local_variables): Likewise. Set
3701 DECL_HAS_DEBUG_EXPR_P after copying it.
3702 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3703 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3705 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
3708 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3709 * configure: Regenerate.
3710 * config.in: Regenerate.
3711 * config/i386/i386.md (*movdf_internal): Use
3712 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3713 movd instead of movq mnemonic for interunit moves.
3714 (*movdi_internal): Ditto.
3716 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3718 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3719 (abd<mode>_3): New pattern.
3720 (aba<mode>_3): New pattern.
3721 (fabd<mode>_3): New pattern.
3723 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3725 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3726 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3727 occurrence of REGISTER_PREFIX as its empty string.
3729 2013-03-20 Jeff Law <law@redhat.com>
3731 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3732 addititional equivalences for equality comparisons between an SSA_NAME
3733 and a constant where the SSA_NAME was set from a widening conversion.
3735 2013-03-20 Walter Lee <walt@tilera.com>
3737 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3739 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3741 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3742 depending on type attribute.
3743 (*movti_internal): Ditto.
3744 (*movtf_internal): Ditto.
3745 (*movxf_internal): Ditto.
3746 (*movdf_internal): Ditto.
3747 (*movsf_internal): Ditto.
3749 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
3751 * config/i386/i386.md (*movti_internal): Set prefix attribute to
3752 maybe_vex for sselog1 and ssemov types.
3753 (*movdi_internal): Reorder operand constraints.
3754 (*movsi_internal): Ditto. Set prefix attribute to
3755 maybe_vex for sselog1 and ssemov types.
3756 (*movtf_internal): Set prefix attribute to maybe_vex
3757 for sselog1 and ssemov types.
3758 (*movdf_internal): Ditto. Set prefix_data16 attribute for
3759 DImode ssemov types. Reorder operand constraints.
3760 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
3761 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
3762 attribute for SImode ssemov types. Reorder operand constraints.
3764 2013-03-20 Martin Jambor <mjambor@suse.cz>
3766 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3767 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3769 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
3771 * config/rs6000/predicates.md (indexed_address, update_address_mem
3772 update_indexed_address_mem): New predicates.
3773 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3774 attribute for load/store instructions.
3775 * config/rs6000/dfp.md (movsd_store): Likewise.
3776 (movsd_load): Likewise.
3777 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3778 (unnamed HI->DI extend define_insn): Likewise.
3779 (unnamed SI->DI extend define_insn): Likewise.
3780 (unnamed QI->SI extend define_insn): Likewise.
3781 (unnamed QI->HI extend define_insn): Likewise.
3782 (unnamed HI->SI extend define_insn): Likewise.
3783 (unnamed HI->SI extend define_insn): Likewise.
3784 (extendsfdf2_fpr): Likewise.
3785 (movsi_internal1): Likewise.
3786 (movsi_internal1_single): Likewise.
3787 (movhi_internal): Likewise.
3788 (movqi_internal): Likewise.
3789 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
3790 attribute for load/store instructions.
3791 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
3793 (mov<mode>_softfloat): Likewise.
3794 (mov<mode>_hardfloat32): Likewise.
3795 (mov<mode>_hardfloat64): Likewise.
3796 (mov<mode>_softfloat64): Likewise.
3797 (movdi_internal32): Likewise.
3798 (movdi_internal64): Likewise.
3799 (probe_stack_<mode>): Likewise.
3801 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3803 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
3804 floating point, and decimal floating point to reload iterator.
3806 * config/rs6000/constraints.md (wl constraint): New constraints to
3807 return FLOAT_REGS if certain options are used to reduce the number
3808 of separate patterns that exist in the file.
3809 (wx constraint): Likewise.
3810 (wz constraint): Likewise.
3812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3813 -mdebug=reg, print wg, wl, wx, and wz constraints.
3814 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3815 Initialize the reload functions for 64-bit binary/decimal floating
3817 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3818 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3819 create the buffer on the stack to overcome not having a 32-bit
3821 (rs6000_emit_move): Likewise.
3822 (rs6000_secondary_memory_needed_rtx): Likewise.
3823 (rs6000_alloc_sdmode_stack_slot): Likewise.
3824 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3825 via xxlxor, just like DFmode 0.0.
3827 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
3828 define as 1 if we are running on a power7 or newer.
3829 (enum r6000_reg_class_enum): Add new constraints.
3831 * config/rs6000/dfp.md (movsd): Delete, combine with binary
3832 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3833 with other moves by using conditional constraits (wg). Use LFIWZX
3834 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
3835 (movsd splitter): Likewise.
3836 (movsd_hardfloat): Likewise.
3837 (movsd_softfloat): Likewise.
3839 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
3840 binary and decimal floating point moves.
3841 (fmove_ok): New attributes to combine binary and decimal floating
3842 point moves, and to combine power6x (mfpgpr) moves along normal
3844 (real_value_to_target): Likewise.
3851 (movsf): Combine binary and decimal floating point moves. Combine
3852 power6x (mfpgpr) moves with other moves by using conditional
3853 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
3854 (mov<mode> for SFmode/SDmode); Likewise.
3855 (SFmode/SDmode splitters): Likewise.
3856 (movsf_hardfloat): Likewise.
3857 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
3858 (movsf_softfloat): Likewise.
3859 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
3861 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
3862 wx and wz constraints.
3864 * config/rs6000/constraints.md (wg constraint): New constraint to
3865 return FLOAT_REGS if -mmfpgpr (power6x) was used.
3867 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
3870 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3871 -mdebug=reg, print wg, wl, wx, and wz constraints.
3872 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3873 Initialize the reload functions for 64-bit binary/decimal floating
3875 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3876 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3877 create the buffer on the stack to overcome not having a 32-bit
3879 (rs6000_emit_move): Likewise.
3880 (rs6000_secondary_memory_needed_rtx): Likewise.
3881 (rs6000_alloc_sdmode_stack_slot): Likewise.
3882 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3883 via xxlxor, just like DFmode 0.0.
3885 * config/rs6000/dfp.md (movdd): Delete, combine with binary
3886 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
3887 with other moves by using conditional constraits (wg). Use LFIWZX
3888 and STFIWX for loading SDmode on power7.
3889 (movdd splitters): Likewise.
3890 (movdd_hardfloat32): Likewise.
3891 (movdd_softfloat32): Likewise.
3892 (movdd_hardfloat64_mfpgpr): Likewise.
3893 (movdd_hardfloat64): Likewise.
3894 (movdd_softfloat64): Likewise.
3896 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
3897 64-bit binary and decimal floating point moves.
3898 (FMOVE64X): Likewise.
3899 (movdf): Combine 64-bit binary and decimal floating point moves.
3900 Combine power6x (mfpgpr) moves with other moves by using
3901 conditional constraits (wg).
3902 (mov<mode> for DFmode/DDmode): Likewise.
3903 (DFmode/DDmode splitters): Likewise.
3904 (movdf_hardfloat32): Likewise.
3905 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
3906 (movdf_softfloat32): Likewise.
3907 (movdf_hardfloat64_mfpgpr): Likewise.
3908 (movdf_hardfloat64): Likewise.
3909 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
3910 (movdf_softfloat64): Likewise.
3911 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
3912 (reload_<mode>_load): Move to later in the file so they aren't in
3913 the middle of the floating point move insns.
3914 (reload_<mode>_store): Likewise.
3916 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
3919 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
3920 constraint if -mdebug=reg.
3921 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
3922 Enable using dd reload support if needed.
3924 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3925 binary and decimal floating point moves in rs6000.md.
3926 (movtd_internal): Likewise.
3928 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
3929 decimal floating point moves.
3931 (movtf_internal): Likewise.
3932 (mov<mode>_internal, TDmode/TFmode): Likewise.
3933 (movtf_softfloat): Likewise.
3934 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
3936 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
3937 movdi_internal64, using wg constraint for move direct operations.
3938 (movdi_internal64): Likewise.
3940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
3941 MODES_TIEABLE_P for selected modes. Print the numerical value of
3942 the various virtual registers. Use GPR/FPR first/last values,
3943 instead of hard coding the register numbers. Print which modes
3944 have reload functions registered.
3945 (rs6000_option_override_internal): If -mdebug=reg, trace the options
3946 settings before/after setting cpu, target and subtarget settings.
3947 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
3948 and for secondary reload failures in rs6000_secondary_reload_inner.
3949 (rs6000_secondary_reload_fail): Likewise.
3950 (rs6000_secondary_reload_inner): Likewise.
3952 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
3953 macros for first/last GPR and FPR registers.
3954 (LAST_GPR_REGNO): Likewise.
3955 (FIRST_FPR_REGNO): Likewise.
3956 (LAST_FPR_REGNO): Likewise.
3958 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
3959 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
3960 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
3961 (vcond<mode><mode>): Likewise.
3962 (vcondu<mode><mode>): Likewise.
3963 (vector_gtu<mode>): Likewise.
3964 (vector_gte<mode>): Likewise.
3965 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
3966 to prevent the compiler from converting DImode operations to TImode.
3967 (ior<mode>3): Likewise.
3968 (and<mode>3): Likewise.
3969 (one_cmpl<mode>2): Likewise.
3970 (nor<mode>3): Likewise.
3971 (andc<mode>3): Likewise.
3973 * config/rs6000/constraints.md (wt constraint): New constraint
3974 that returns VSX_REGS if TImode is allowed in VSX registers.
3976 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
3979 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
3980 similar to TImode, but it is restricted to being in the GPRs.
3982 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
3983 TImode to occupy a single VSX register.
3985 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
3986 -mvsx-timode for power7/power8.
3987 (power7 cpu): Likewise.
3988 (power8 cpu): Likewise.
3990 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
3991 sure that TFmode/TDmode take up two registers if they are ever
3992 allowed in the upper VSX registers.
3993 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
3995 (rs6000_init_hard_regno_mode_ok): Likewise.
3996 (rs6000_debug_reg_global): Add debugging for PTImode and wt
3997 constraint. Print if LRA is turned on.
3998 (rs6000_option_override_internal): Give an error if -mvsx-timode
3999 and VSX is not enabled.
4000 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
4001 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4002 to reg+offset addressing. Use PTImode when checking offset
4003 addresses for validity.
4004 (reg_offset_addressing_ok_p): Likewise.
4005 (rs6000_legitimate_offset_address_p): Likewise.
4006 (rs6000_legitimize_address): Likewise.
4007 (rs6000_legitimize_reload_address): Likewise.
4008 (rs6000_legitimate_address_p): Likewise.
4009 (rs6000_eliminate_indexed_memrefs): Likewise.
4010 (rs6000_emit_move): Likewise.
4011 (rs6000_secondary_reload): Likewise.
4012 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
4013 reloads to fpr registers to continue to use reg+offset addressing,
4014 but 64-bit reloads to altivec registers need reg+reg addressing.
4015 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4016 it. Treat LO_SUM like a PLUS operation.
4017 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4018 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4019 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4020 registers to share a register with a smaller sized type, since VSX
4021 puts scalars in the upper 64-bits.
4022 (print_operand): Add support for PTImode.
4023 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4024 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4025 registers, but don't have arithmetic support.
4026 (rs6000_memory_move_cost): Add test for VSX.
4027 (rs6000_opt_masks): Add -mvsx-timode.
4029 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4032 (VSr): Use wt constraint for TImode.
4033 (VSv): Drop TImode support.
4034 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4035 (vsx_movti_64bit): Likewise.
4036 (vsx_movti_32bit): Likewise.
4037 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4038 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4039 one '?' on the appropriate output constraint. Do not allow TImode
4040 logical operations on 32-bit systems.
4041 (vsx_ior<mode>3): Likewise.
4042 (vsx_xor<mode>3): Likewise.
4043 (vsx_one_cmpl<mode>2): Likewise.
4044 (vsx_nor<mode>3): Likewise.
4045 (vsx_andc<mode>3): Likewise.
4046 (vsx_concat_<mode>): Likewise.
4047 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4049 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4050 OPTION_MASK_VSX_TIMODE.
4051 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4052 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4054 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4055 (TI2 iterator): New iterator for TImode, PTImode.
4056 (wd mode attribute): Add values for vector types.
4057 (movti_string): Replace TI move operations with operations for TImode
4058 and PTImode. Add support for TImode being allowed in VSX registers.
4059 (mov<mode>_string, TImode/PTImode): Likewise.
4060 (movti_ppc64): Likewise.
4061 (mov<mode>_ppc64, TImode/PTImode): Likewise.
4062 (TI mode splitters): Likewise.
4064 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4067 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
4069 PR tree-optimization/56355
4070 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4071 Also handle integers with undefined overflow.
4073 2013-03-20 Catherine Moore <clm@codesourcery.com>
4074 Maciej W. Rozycki <macro@codesourcery.com>
4075 Tom de Vries <tom@codesourcery.com>
4076 Nathan Sidwell <nathan@codesourcery.com>
4077 Iain Sandoe <iain@codesourcery.com>
4078 Nathan Froyd <froydnj@codesourcery.com>
4079 Chao-ying Fu <fu@mips.com>
4081 * doc/extend.texi: (micromips, nomicromips, nocompression):
4082 Document new function attributes.
4083 * doc/invoke.texi (minterlink-compressed, mmicromips,
4084 m14k, m14ke, m14kec): Document new options.
4085 (minterlink-mips16): Update documentation.
4086 * doc/md.texi (ZC, ZD): Document new constraints.
4087 * configure.ac (gcc_cv_as_micromips): Check if linker
4088 supports the .set micromips directive.
4089 * configure: Regenerate.
4090 * config.in: Regenerate.
4091 * config/mips/mips-tables.opt: Regenerate.
4092 * config/mips/micromips.md: New file.
4093 * constraints.md (ZC, ZD): New constraints.
4094 * config/mips/predicates.md (movep_src_register): New predicate.
4095 (movep_src_operand): New predicate.
4096 (non_volatile_mem_operand): New predicate.
4097 * config/mips/mips.md (multimem): New type.
4098 (length): Differentiate between 17-bit and 18-bit branch offsets.
4099 (MOVEP1, MOVEP2): New mode iterator.
4100 (mov_<load>l): Use ZC constraint.
4101 (mov_<load>r): Likewise.
4102 (mov_<store>l): Likewise.
4103 (mov_<store>r): Likewise.
4104 (*branch_equality<mode>_inverted): Add microMIPS support.
4105 (*branch_equality<mode>): Likewise.
4106 (*jump_absolute): Likewise.
4107 (indirect_jump_<mode>): Likewise.
4108 (tablejump_<mode>): Likewise.
4109 (<optab>_internal): Likewise.
4110 (sibcall_internal): Likewise.
4111 (sibcall_value_internal): Likewise.
4112 (prefetch): Use constraint ZD.
4113 * config/mips/mips.opt (minterlink-compressed): New option.
4114 (minterlink-mips16): Now an alias for minterlink-compressed.
4115 (mmicromips): New option.
4116 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4117 (compare_and_swap_12): Likewise.
4118 (sync_add<mode>): Likewise.
4119 (sync_<optab>_12): Likewise.
4120 (sync_old_<optab>_12): Likewise.
4121 (sync_new_<optab>_12): Likewise.
4122 (sync_nand_12): Likewise.
4123 (sync_old_nand_12): Likewise.
4124 (sync_new_nand_12): Likewise.
4125 (sync_sub<mode>): Likewise.
4126 (sync_old_add<mode>): Likewise.
4127 (sync_old_sub<mode>): Likewise.
4128 (sync_new_add<mode>): Likewise.
4129 (sync_new_sub<mode>): Likewise.
4130 (sync_<optab><mode>): Likewise.
4131 (sync_old_<optab><mode>): Likewise.
4132 (sync_new_<optab><mode>): Likewise.
4133 (sync_nand<mode>): Likewise.
4134 (sync_old_nand<mode>): Likewise.
4135 (sync_new_nand<mode>): Likewise.
4136 (sync_lock_test_and_set<mode>): Likewise.
4137 (test_and_set_12): Likewise.
4138 (atomic_compare_and_swap<mode>): Likewise.
4139 (atomic_exchange<mode>_llsc): Likewise.
4140 (atomic_fetch_add<mode>_llsc): Likewise.
4141 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4142 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4143 (umips_save_restore_pattern_p): Likewise.
4144 (umips_load_store_pair_p): Likewise.
4145 (umips_output_load_store_pair): Likewise.
4146 (umips_movep_target_p): Likewise.
4147 (umips_12bit_offset_address_p): Likewise.
4148 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4149 (mips_base_mips16): Rename this...
4150 (mips_base_compression_flags): ...to this. Update all uses.
4151 (mips_attribute_table): Add micromips, nomicromips and nocompression.
4152 (mips_mips16_decl_p): Delete.
4153 (mips_nomips16_decl_p): Delete.
4154 (mips_get_compress_on_flags): New function.
4155 (mips_get_compress_off_flags): New function.
4156 (mips_get_compress_mode): New function.
4157 (mips_get_compress_on_name): New function.
4158 (mips_get_compress_off_name): New function.
4159 (mips_insert_attributes): Support multiple compression types.
4160 (mips_merge_decl_attributes): Likewise.
4161 (umips_12bit_offset_address_p): New function.
4162 (mips_start_function_definition): Emit .set micromips directive.
4163 (mips_call_may_need_jalx_p): New function.
4164 (mips_function_ok_for_sibcall): Add microMIPS support.
4165 (mips_print_operand_punctuation): Support short delay slots and
4167 (umips_swm_mask, umips_swm_encoding): New.
4168 (umips_build_save_restore): New function.
4169 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4170 (was_mips16_p): Remove.
4171 (old_compression_mode): New.
4172 (mips_set_compression_mode): New function.
4173 (mips_set_current_function): Add microMIPS support.
4174 (mips_option_override): Likewise.
4175 (umips_save_restore_pattern_p): New function.
4176 (umips_output_save_restore): New function.
4177 (umips_load_store_pair_p_1): New function.
4178 (umips_load_store_pair_p): New function.
4179 (umips_output_load_store_pair_1): New function.
4180 (umips_output_load_store_pair): New function.
4181 (umips_movep_target_p) New function.
4182 (mips_prepare_pch_save): Add microMIPS support.
4183 * config/mips/mips.h (TARGET_COMPRESSION): New.
4184 (TARGET_CPU_CPP_BUILTINS): Update macro
4185 to use new compression flags and to support microMIPS.
4186 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4187 (MIPS_ARCH_FLOAT_SPEC): Likewise.
4188 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4189 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4190 (ASM_SPEC): Support mmicromips and mno-micromips.
4191 (M16STORE_REG_P): New macro.
4192 (MIPS_CALL): Support TARGET_MICROMIPS.
4193 (MICROMIPS_J): New macro.
4194 (mips_base_mips16): Rename this...
4195 (mips_base_compression_flags): ...to this.
4196 (UMIPS_12BIT_OFFSET_P): New macro.
4197 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4198 (MULTILIB_DIRNAMES): Likewise.
4199 2013-03-20 Richard Biener <rguenther@suse.de>
4201 PR tree-optimization/56661
4202 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4203 the result does not have to be distinct.
4205 2013-03-20 Richard Biener <rguenther@suse.de>
4207 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4210 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4211 Steven Bosscher <steven@gcc.gnu.org>
4213 PR rtl-optimization/56605
4214 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4216 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
4219 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4220 that require movd instead of movq.
4222 2013-03-20 Richard Biener <rguenther@suse.de>
4224 * tree-ssa-structalias.c (struct variable_info): Add pointer
4225 to the first field of an aggregate with sub-vars. Make
4226 this and the pointer to the next subfield its ID.
4227 (vi_next): New function.
4228 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4229 storedanything_id, integer_id): Increment by one.
4230 (new_var_info, get_call_vi, lookup_call_clobber_vi,
4231 get_call_clobber_vi): Adjust.
4232 (solution_set_expand): Simplify and speedup.
4233 (solution_set_add): Inline into ...
4234 (set_union_with_increment): ... this. Adjust accordingly.
4235 (do_sd_constraint): Likewise.
4236 (do_ds_constraint): Likewise.
4237 (do_complex_constraint): Simplify.
4238 (build_pred_graph): Adjust.
4239 (solve_graph): Likewise. Simplify and speedup.
4240 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4241 get_constraint_for_component_ref, get_constraint_for_1,
4242 first_vi_for_offset, first_or_preceding_vi_for_offset,
4243 create_function_info_for, create_variable_info_for_1,
4244 create_variable_info_for, intra_create_variable_infos): Adjust.
4245 (init_base_vars): Push NULL for ID zero.
4246 (compute_points_to_sets): Adjust.
4248 2013-03-20 Richard Biener <rguenther@suse.de>
4250 * cfgloop.c (verify_loop_structure): Streamline and avoid
4251 ICEing on corrupt loop tree.
4252 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4255 2013-03-20 Richard Biener <rguenther@suse.de>
4257 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4258 check whether an SSA update is needed.
4260 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
4262 * config/mips/constraints.md (T): Rename to...
4266 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4267 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4269 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4271 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4272 (*subsi3_carryin_uxtw): Likewise.
4274 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4276 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4277 (*rorsi3_insn_uxtw): Likewise.
4279 2013-03-19 Ian Bolton <ian.bolton@arm.com>
4281 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4282 (*extrsi5_insn_uxtw): Likewise.
4284 2013-03-19 Richard Biener <rguenther@suse.de>
4286 PR tree-optimization/56273
4287 * passes.c (init_optimization_passes): Move second VRP after DOM.
4289 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
4291 * config/i386/i386.md (*movti_internal): Merge from
4292 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
4293 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
4294 nox64 isa attributes.
4296 2013-03-18 Richard Biener <rguenther@suse.de>
4298 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4300 (merge_node_constraints): Likewise.
4301 (build_succ_graph): Likewise.
4302 (valid_graph_edge): Inline into single caller.
4303 (unify_nodes): Likewise. Use bitmap_set_bit return value
4305 (scc_visit): Fix formatting and variable use.
4306 (do_sd_constraint): Use gcc_checking_assert.
4307 (do_ds_constraint): Likewise.
4308 (do_complex_constraint): Likewise.
4309 (condense_visit): Likewise. Cleanup.
4310 (dump_pred_graph): New function.
4311 (perform_var_substitution): Dump the pred-graph before
4312 variable substitution.
4313 (find_equivalent_node): Use gcc_checking_assert.
4314 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4316 2013-03-18 Richard Biener <rguenther@suse.de>
4318 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4319 Remove cond_expr_stmt_list argument and do not gimplify the
4321 (vect_loop_versioning): Adjust.
4322 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4323 Cleanup to use less temporaries.
4324 (vect_create_data_ref_ptr): Cleanup.
4326 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4328 PR tree-optimization/56635
4329 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4330 require types_compatible_p types.
4332 2013-03-18 Nick Clifton <nickc@redhat.com>
4334 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4337 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4338 Add missing line to comment describing function.
4340 2013-03-18 Richard Biener <rguenther@suse.de>
4342 PR tree-optimization/56210
4343 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4344 Handle string / character search functions.
4345 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4347 2013-03-18 Richard Biener <rguenther@suse.de>
4350 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4351 and implement properly.
4352 * gimple.h (gimple_cond_single_var_p): Remove.
4354 2013-03-18 Richard Biener <rguenther@suse.de>
4356 * tree-data-ref.h (find_data_references_in_loop): Declare.
4357 * tree-data-ref.c (get_references_in_stmt): Use a stack
4358 vector pre-allocated in the callers.
4359 (find_data_references_in_stmt): Adjust.
4360 (graphite_find_data_references_in_stmt): Likewise.
4361 (create_rdg_vertices): Likewise.
4362 (find_data_references_in_loop): Export.
4363 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4364 Compute dependences here...
4365 (vect_analyze_data_refs): ...not here. When we encounter
4366 a non-vectorizable data reference in basic-block vectorization
4367 truncate the data reference vector. Do not bother to
4368 fixup data-dependence information for gather loads.
4369 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4370 of data references, as reported.
4372 2013-03-18 Richard Biener <rguenther@suse.de>
4374 PR tree-optimization/3713
4375 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
4376 has_constants and expr.
4377 (stmt_has_constants): Properly valueize SSA names when deciding
4378 whether the stmt has constants.
4380 2013-03-18 Richard Biener <rguenther@suse.de>
4382 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4383 whole function when there is nothing to do.
4384 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4385 * tree-vectorizer.c (vectorize_loops): Update virtual and
4386 loop-closed SSA once.
4387 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4389 2013-03-18 Richard Biener <rguenther@suse.de>
4392 * domwalk.c (bb_postorder): New global static.
4393 (cmp_bb_postorder): New function.
4394 (walk_dominator_tree): Replace scheme imposing an order for
4395 visiting dominator sons by one sorting them at the time they
4396 are pushed on the stack.
4398 2013-03-18 Richard Biener <rguenther@suse.de>
4400 PR tree-optimization/39326
4401 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4402 (struct mem_ref): Replace mem member with ao_ref typed member.
4403 (MEM_ANALYZABLE): Adjust.
4404 (memref_eq): Likewise.
4405 (mem_ref_alloc): Likewise.
4406 (gather_mem_refs_stmt): Likewise.
4407 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4408 (execute_sm_if_changed_flag_set): Adjust.
4409 (execute_sm): Likewise.
4410 (ref_always_accessed_p): Likewise.
4411 (refs_independent_p): Likewise.
4412 (can_sm_ref_p): Likewise.
4414 2013-03-18 Jakub Jelinek <jakub@redhat.com>
4417 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4418 return 1 even for !unsignedp.
4420 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4422 * config/i386/i386.md (isa): Add x64 and nox64.
4423 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4424 (*pushtf): Enable *roF alternative for x64 isa only.
4425 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
4426 mode attribute of integer alternatives to DImode for TARGET_64BIT.
4427 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
4428 (*movtf_internal): Merge from *movtf_internal_rex64 and
4429 *movtf_internal_sse. Use x64 and nox64 isa attributes.
4430 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
4431 nox64 isa attributes.
4432 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
4433 nox64 isa attributes.
4434 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4436 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4438 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4440 2013-03-17 Jakub Jelinek <jakub@redhat.com>
4443 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4444 class names. Remove trailing comma after "ALL_REGS".
4446 2013-03-16 Jan Hubicka <jh@suse.cz>
4448 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4449 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4450 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4451 of cgraph_get_create_node.
4452 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4454 2013-03-16 Jason Merrill <jason@redhat.com>
4457 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4458 with DW_AT_default_value.
4460 2013-03-16 Jakub Jelinek <jakub@redhat.com>
4462 * BASE-VER: Set to 4.9.0.
4464 2013-03-14 Andi Kleen <ak@linux.intel.com>
4467 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4468 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4469 Document _x* TSX intrinsics.
4471 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
4472 David Holsgrove <david.holsgrove@xilinx.com>
4474 * configure.ac: Add MicroBlaze TLS support detection.
4475 * configure: Regenerate.
4476 * config/microblaze/microblaze-protos.h
4477 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4478 symbol_mentioned_p, label_mentioned_p): Add prototypes.
4479 * config/microblaze/microblaze.c (microblaze_address_type): Add
4480 ADDRESS_TLS and tls_reloc address types.
4481 (microblaze_address_info): Add tls_reloc.
4482 (TARGET_HAVE_TLS): Define.
4483 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4484 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4485 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4486 load_tls_operand, microblaze_call_tls_get_addr,
4487 microblaze_legitimize_tls_address): New functions.
4488 (microblaze_classify_unspec): Handle UNSPEC_TLS.
4489 (get_base_reg): Use microblaze_tls_symbol_p.
4490 (microblaze_classify_address): Handle TLS.
4491 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4492 label_mentioned_p and microblaze_tls_referenced_p.
4493 (microblaze_legitimize_address): Handle TLS.
4494 (microblaze_address_insns): Handle ADDRESS_TLS.
4495 (pic_address_needs_scratch): Handle TLS.
4496 (print_operand_address): Handle TLS.
4497 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4498 (microblaze_expand_move): Handle TLS.
4499 (microblaze_legitimate_constant_p): Check
4500 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4501 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4502 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4503 (PIC_OFFSET_TABLE_REGNUM): Set.
4504 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4505 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4506 (addsi3, movsi_internal2, movdf_internal): Update constraints
4507 * config/microblaze/predicates.md (arith_plus_operand): Define
4508 (move_operand): Redefine as move_src_operand,
4509 check microblaze_tls_referenced_p.
4511 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4513 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4514 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4516 2013-03-14 Ian Bolton <ian.bolton@arm.com>
4518 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4521 2013-03-14 Jakub Jelinek <jakub@redhat.com>
4523 PR tree-optimization/53265
4524 * common.opt (Waggressive-loop-optimizations): New option.
4525 * tree-ssa-loop-niter.c: Include tree-pass.h.
4526 (do_warn_aggressive_loop_optimizations): New function.
4527 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
4528 if number_of_latch_executions returned constant.
4529 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4530 early. If number_of_latch_executions returned constant, set
4531 nb_iterations_upper_bound back to it.
4532 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4534 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4535 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4537 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4538 (MULTILIB_OSDIRNAMES): Set.
4539 * genmultilib: If defaultosdirname doesn't start with :: , set
4540 defaultosdirname2 instead, clear it and emit two . multilib_raw
4541 entries instead of just one.
4543 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
4545 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4546 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4547 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4548 (SUBTARGET_OVERRIDE_OPTIONS): New.
4550 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
4553 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4554 (musermode): Convert to Var(TARGET_USERMODE).
4555 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4556 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4557 * config/sh/sh.c (sh_option_override): Use
4558 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4559 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4561 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4563 (udivsi3_i4_single, divsi3_i4_single): Use
4564 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4566 2013-03-13 Dave Korn <dave.korn.cygwin@....>
4568 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4571 2013-03-13 Richard Biener <rguenther@suse.de>
4573 PR tree-optimization/56608
4574 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4575 calls when vectorizing basic-blocks.
4577 2013-03-13 Jakub Jelinek <jakub@redhat.com>
4580 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4583 2013-03-12 Jakub Jelinek <jakub@redhat.com>
4585 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
4587 2013-03-11 Jan Hubicka <jh@suse.cz>
4590 * lto-streamer-out.c (output_symbol_p): Skip references from
4591 constructors of external variables.
4593 2013-03-11 Jan Hubicka <jh@suse.cz>
4596 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
4598 * emit-rtl.c (verify_rtx_sharing): Likewise.
4599 (copy_insn_1): Likewise.
4600 * rtl.c (copy_rtx): Likewise.
4602 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
4605 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
4606 output_operand_lossage message.
4608 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
4611 * arm.c (shift_op): Validate RTL pattern on the fly.
4612 (arm_print_operand, case 'S'): Don't use shift_operator to validate
4615 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4618 * config/pa/pa.md (call_value): Check for calls to powf and direct to
4619 new call patterns that clobber %fr12.
4620 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4621 split and postreload patterns.
4622 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4623 registers %fr12 and %fr12R as call used.
4625 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
4627 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4628 (canon_address, record_store, replace_read, check_mem_read_rtx,
4629 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4630 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4631 rest_of_handle_dse): Likewise.
4633 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4636 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4638 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4639 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4640 (save_optabs_if_changed): Replace with...
4641 (init_tree_optimization_optabs): ...this.
4642 * optabs.c (save_optabs_if_changed): Rename to...
4643 (init_tree_optimization_optabs): ...this. Take the optimization node
4644 as argument. Do nothing if the base optabs are already correct.
4645 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4646 to recompute optabs.
4647 * function.h (function): Remove optabs field.
4648 * function.c (invoke_set_current_function_hook): Call
4649 init_tree_optimization_optabs. Use the result to initialize
4652 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
4654 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4655 if GTMA_HAS_NO_INSTRUMENTATION.
4656 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4657 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4658 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4659 * gimple-pretty-print.c (dump_gimple_transaction): Handle
4660 GTMA_HAS_NO_INSTRUMENTATION.
4662 2013-03-08 Jakub Jelinek <jakub@redhat.com>
4664 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4667 2013-03-08 Marek Polacek <polacek@redhat.com>
4668 Jakub Jelinek <jakub@redhat.com>
4670 PR tree-optimization/56478
4671 * predict.c (is_comparison_with_loop_invariant_p): Change the
4672 type of loop_step to tree.
4673 (predict_loops): Adjust.
4674 (predict_iv_comparison): Perform the computations on double_ints.
4676 2013-03-08 Richard Biener <rguenther@suse.de>
4678 PR tree-optimization/56570
4679 * tree-cfg.c (verify_expr_location_1): Verify locations for
4681 * tree-sra.c (create_access_replacement): Strip locations
4682 from DECL_DEBUG_EXPRs.
4684 2013-03-08 Richard Biener <rguenther@suse.de>
4686 * tree-inline.c (expand_call_inline): Do not associate
4687 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4688 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4690 2013-03-08 Richard Biener <rguenther@suse.de>
4692 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4693 or block changes with -Og. Fix for location / block encoding
4694 changes and PHI arguments with locations.
4696 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
4698 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4700 (struct output_info): Likewise.
4701 (register_overhead): Remove bad gcc_assert.
4702 (bitmap_find_bit): If there is only a single bitmap element, do not
4703 count a miss as a search.
4704 (print_statistics): Update for counter type changes.
4705 (dump_bitmap_statistics): Likewise. Print headers such that they
4706 are properly lined up with the printed counters.
4708 2013-03-07 Jakub Jelinek <jakub@redhat.com>
4710 PR tree-optimization/56559
4711 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4712 check that it has only a single use.
4714 2013-03-07 Richard Biener <rguenther@suse.de>
4716 * doc/invoke.texi (fwhole-program): Discourage use in combination
4719 2013-03-06 Jakub Jelinek <jakub@redhat.com>
4721 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4723 PR tree-optimization/56539
4724 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4725 instead of GSI_CONTINUE_LINKING as last argument to
4726 force_gimple_operand_gsi. Adjust function comment.
4728 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4732 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4733 promoted mode, convert the result back to the original mode.
4735 2013-03-06 Richard Biener <rguenther@suse.de>
4738 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4739 (insert_updated_phi_nodes_compare_uids): New function.
4740 (update_ssa): Sort symbols_to_rename after UID before
4741 traversing it to insert PHI nodes.
4743 2013-03-06 Richard Biener <rguenther@suse.de>
4746 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4747 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4750 2013-02-13 Richard Biener <rguenther@suse.de>
4753 * varasm.c (output_constant_def_1): Get the decl representing
4754 the constant as argument.
4755 (output_constant_def): Wrap output_constant_def_1.
4756 (make_decl_rtl): Use output_constant_def_1 with the decl
4757 representing the constant.
4758 (build_constant_desc): Optionally re-use a decl already
4759 representing the constant.
4760 (tree_output_constant_def): Adjust.
4762 2013-03-06 Joey Ye <joey.ye@arm.com>
4765 * gcc.c (convert_white_space): New function.
4766 (main): Handles white space in function name.
4768 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
4771 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4772 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
4773 to SH_DIV_CALL_TABLE for TARGET_SH2.
4774 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4776 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4779 2013-03-05 Sterling Augustine <saugustine@google.com>
4780 Cary Coutant <ccoutant@google.com>
4783 * dwarf2out.c (resolve_addr): Don't call
4784 remove_loc_list_addr_table_entries a second time for the same
4787 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4790 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4791 (avoid_complex_debug_insns): New function.
4792 (expand_debug_locations): Call it.
4794 PR rtl-optimization/56484
4795 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4796 lifetimes of hard registers on small register class machines.
4798 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4800 * config/microblaze/microblaze-protos.h: Rename
4801 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
4802 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
4804 (microblaze_fast_interrupt_function_p): New function.
4805 (microblaze_is_interrupt_handler): Rename to
4806 microblaze_is_interrupt_variant and add fast_interrupt check.
4807 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4808 (save_restore_insns): Likewise.
4809 (compute_frame_size): Likewise.
4810 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4811 (microblaze_globalize_label): Likewise.
4812 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4813 * config/microblaze/microblaze.md: Use wrapper
4814 microblaze_is_interrupt_variant.
4816 2013-03-05 Kai Tietz <ktietz@redhat.com>
4818 * sdbout.c (sdbout_one_type): Switch to current function's section
4819 supporting cold/hot.
4821 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
4823 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4826 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4829 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4830 if VALGRIND_GET_VBITS is defined, temporarily make object
4831 memory all defined, and restore previous valgrind addressability
4832 and definability afterwards. Free this_object at the end.
4835 * lra.c (lra): Call lra_clear_live_ranges if live_p,
4836 right before calling lra_create_live_ranges, also call it
4837 when clearing live_p. Only call lra_clear_live_ranges
4838 at the end if live_p.
4841 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4843 2013-03-05 Richard Biener <rguenther@suse.de>
4845 PR tree-optimization/56521
4846 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4849 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
4852 * except.h (remove_unreachable_eh_regions): New prototype.
4853 * except.c (remove_eh_handler_splicer): New function, split out
4854 of remove_eh_handler.
4855 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
4856 warning about running it on many EH regions one at a time.
4857 (remove_unreachable_eh_regions_worker): New function, walk the
4858 EH tree in depth-first order and remove non-marked regions.
4859 (remove_unreachable_eh_regions): New function.
4860 * tree-eh.c (mark_reachable_handlers): New function, split out
4861 from remove_unreachable_handlers.
4862 (remove_unreachable_handlers): Use mark_reachable_handlers and
4863 remove_unreachable_eh_regions.
4864 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4865 and remove_unreachable_eh_regions.
4867 2013-03-05 Richard Biener <rguenther@suse.de>
4870 * loop-init.c (fix_loop_structure): Remove loops in two stages,
4871 not freeing them until the end.
4873 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4875 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4877 2013-03-05 Richard Biener <rguenther@suse.de>
4879 PR tree-optimization/56270
4880 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4881 of loads after scheduling an SLP instance.
4883 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4885 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4887 (check_gcc_parallelize): Run guality.exp as a separate job from
4888 vect.exp with unsorted.exp and $(dg_target_exps) separately from
4889 struct-layout-1.exp with stackalign.exp.
4891 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4894 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4895 load_index sbitmap even if some bit in it isn't set.
4898 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4899 (discover_iteration_bound_by_body_walk): Change queues to
4900 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
4901 spelling in comment. Call safe_push on queues[bound_index] directly.
4902 Release queues[queue_index] in every iteration unconditionally.
4903 Release bounds vector.
4906 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4907 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4908 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4911 2013-03-05 Richard Biener <rguenther@suse.de>
4914 * tree-inline.c (remap_blocks_to_null): New function.
4915 (expand_call_inline): When expanding a call stmt without
4916 an associated block inline remap all callee blocks to NULL.
4918 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4920 PR rtl-optimization/56494
4921 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4922 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4923 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4926 * sel-sched-ir.c (free_sched_pools): Release
4927 succs_info_pool.stack[succs_info_pool.max_top] vectors too
4928 if succs_info_pool.max_top isn't -1.
4931 * opts.c (opts_obstack, opts_concat): Moved to...
4932 * opts-common.c (opts_obstack, opts_concat): ... here.
4934 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4937 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
4939 2013-03-04 Martin Jambor <mjambor@suse.cz>
4941 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
4942 all appropriate places.
4944 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
4946 PR tree-optimization/56424
4947 * ipa-split.c (split_function): Do not set the RSO flag if result is
4948 not by reference and its type is a register type.
4950 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
4952 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
4953 (microblaze_legitimate_pic_operand): Likewise
4954 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
4955 new function microblaze_legitimate_pic_operand
4956 * config/microblaze/microblaze-protos.h
4957 (microblaze_legitimate_pic_operand): Declare.
4959 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4961 * config/microblaze/predicates.md (call_insn_simple_operand):
4962 New predicate for supported rtx code types.
4963 * config/microblaze/microblaze.md (call_internal1): Use
4964 call_insn_simple_operand predicate.
4966 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4969 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
4970 partitions.ordered_remove.
4973 * tree-vect-stmts.c (vectorizable_conversion): Don't call
4974 vec_oprnds0.create (1) for modifier == NONE.
4977 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
4978 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
4979 vec_oprnds1 right before pushing anything to it for
4983 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
4984 set nbbs to 0 instead of having separate code path.
4985 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
4986 instead of false as last argument if returning NULL.
4988 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
4990 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4991 the attribute is now called "target" instead of "option".
4992 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
4993 * doc/tm.texi.in (Target Attributes): Likewise document the correct
4994 attribute/pragma name for TARGET_OPTION_VALID_P and
4995 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
4996 * doc/tm.texi: Regenerated.
4998 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
5000 * config/microblaze/microblaze.c:
5001 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5002 * config/microblaze/microblaze.h: Add -mxl-reorder to
5004 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5005 instructions emitted if TARGET_REORDER.
5006 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5007 or 0 for -m/-mno case, but initialises as 2 to detect default use case
5010 2013-03-01 Xinliang David Li <davidxl@google.com>
5012 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5015 2013-03-01 Jakub Jelinek <jakub@redhat.com>
5018 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5019 vector even when returning true. Fix up function comment formatting.
5022 * ira-build.c (ira_loop_nodes_count): New variable.
5023 (create_loop_tree_nodes): Initialize it.
5024 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5027 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5028 method on dr_chain and result_chain.
5029 * tree-vect-stmts.c (vectorizable_store): Only call
5030 result_chain.create if j == 0.
5033 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5034 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5035 before overwriting it.
5037 2013-03-01 Tobias Burnus <burnus@net-b.de>
5039 * doc/extended.texi (C Extensions): Change order in @menu
5041 (Other MIPS Built-in Functions): Move last MIPS entry before
5042 "picoChip Built-in Functions".
5043 (SH Built-in Functions): Move after RX Built-in Functions.
5044 * doc/gcc.texi (Introduction): Change order in @menu
5046 * doc/md.texi (Constraints): Ditto.
5047 * gty.texi (Type Information): Ditto.
5048 (User-provided marking routines for template types): Make
5050 * doc/invoke.texi (AArch64 Options): Move before
5051 "Adapteva Epiphany Options".
5053 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
5054 Jakub Jelinek <jakub@redhat.com>
5057 * asan.c (gate_asan): Lookup no_sanitize_address instead of
5058 no_address_safety_analysis attribute.
5059 * doc/extend.texi (no_address_safety_attribute): Rename to
5060 no_sanitize_address attribute, mention no_address_safety_analysis
5061 attribute as deprecated alias.
5063 2013-02-28 Jakub Jelinek <jakub@redhat.com>
5066 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5067 type to vec<vec<tree> > *.
5068 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
5069 to be vec<tree> instead of vec<tree> *, set vec_defs
5070 to vNULL and call vec_defs.create (number_of_vects), adjust other
5072 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5073 vectorizable_condition): Adjust vect_get_slp_defs callers.
5075 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5077 * config/aarch64/aarch64.c
5078 (aarch64_float_const_representable): Remove unused variable.
5080 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5082 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5084 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5086 * config/aarch64/aarch64-builtins.c
5087 (aarch64_init_simd_builtins): Make static.
5089 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
5091 * config/aarch64/aarch64.c
5092 (aarch64_simd_make_constant): Make static.
5094 2013-02-28 Martin Jambor <mjambor@suse.cz>
5096 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5097 with no initialization to the RHS of debug statements.
5099 2013-02-28 Martin Jambor <mjambor@suse.cz>
5101 PR tree-optimization/56294
5102 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5104 (get_access_replacement): Do not call create_access_replacement.
5105 Assert a replacement exists.
5106 (get_repl_default_def_ssa_name): Create the replacement declaration
5109 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5111 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5114 2013-02-28 Marek Polacek <polacek@redhat.com>
5116 PR rtl-optimization/56466
5117 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5118 if we're changing a loop.
5119 (peel_loops_completely): Likewise.
5121 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
5124 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5126 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5129 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5130 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5131 INTX_FTYPE_FX, FX_FTYPE_INTX.
5132 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5134 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5136 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5137 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5138 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5139 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5140 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5141 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5142 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5143 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5144 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5145 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5146 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5147 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5148 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5149 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5150 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5151 (avrxmega6): Increase max flash segments from 5 to 6.
5152 * config/avr/t-multilib: Regenerate.
5153 * config/avr/avr-tables.opt: Regenerate.
5154 * doc/avr-mmcu.texi: Regenerate.
5156 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
5158 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5159 (avr_device_to_arch): Rename to avr_device_to_ld.
5160 (avr_device_to_as): New prototype.
5161 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5162 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5163 * config/avr/driver-avr.c (avr_device_to_as): New.
5164 (avr_device_to_arch): Rename to avr_device_to_ld.
5166 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5169 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5170 method on dr_chain and result_chain.
5173 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5174 pointer_set_destroy on not_executed_last_iteration.
5177 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5180 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5181 FOR_EACH_DEFINED_FUNCTION when freeing state.
5184 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5186 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5190 * ipa-cp.c (decide_whether_version_node): Call vec_free on
5191 known_aggs[i].items and release known_aggs vector.
5194 * ipa-reference.c (propagate): Free node_info even for alias nodes.
5196 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5198 * config/microblaze/microblaze.c (microblaze_emit_compare):
5199 Use xor for EQ/NE comparisions.
5200 * config/microblaze/microblaze.md (cstoresf4): Add constraints
5201 (cbranchsf4): Adjust operator to comparison_operator.
5203 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5206 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5208 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5209 vec_safe_push, always update *slot.
5210 (redirect_edge_var_map_clear): Use vec_free.
5211 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5212 (free_var_map_entry): Use vec_free.
5213 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5214 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5216 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
5219 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5220 when the may_trap_p bit of the exprs being merged differs.
5221 Reorder tests for speculativeness in the logical and operator.
5223 2013-02-27 Jakub Jelinek <jakub@redhat.com>
5225 * incpath.c (add_standard_paths): Use reconcat instead of concat
5226 where appropriate and avoid leaking memory.
5228 * opts.h: Include obstack.h.
5229 (opts_concat): New prototype.
5230 (opts_obstack): New declaration.
5231 * opts.c (opts_concat): New function.
5232 (opts_obstack): New variable.
5233 (init_options_struct): Call gcc_init_obstack on opts_obstack.
5234 (finish_options): Use opts_concat instead of concat
5235 and XOBNEWVEC instead of XNEWVEC.
5236 * opts-common.c (generate_canonical_option, decode_cmdline_option,
5237 generate_option): Likewise.
5238 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5239 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5242 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5243 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5245 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5248 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5250 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5252 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5253 (arm_block_move_unaligned_straight): Likewise.
5254 (arm_adjust_block_mem): Likewise.
5256 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
5259 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5260 temp, cond and label.
5261 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5264 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5265 * config/c6x/c6x.h (dbx_register_map): Update declaration.
5268 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5269 of prologue/epilogue functions.
5272 * config/tilegx/tilegx.c (tilegx_expand_prologue):
5273 Remove unused variable cfa_offset.
5274 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5277 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5278 type promotion to unsigned.
5281 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5282 for HOST_WIDE_INT of 32 bit / same size as int.
5283 (arm_block_move_unaligned_straight): Likewise.
5284 (arm_adjust_block_mem): Likewise.
5287 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5290 2013-02-26 Marek Polacek <polacek@redhat.com>
5292 PR tree-optimization/56426
5293 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5295 2013-02-26 Richard Biener <rguenther@suse.de>
5298 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5299 unused variable loops.
5301 2013-02-26 Jakub Jelinek <jakub@redhat.com>
5303 PR tree-optimization/56448
5304 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5305 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5306 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5307 later operands of the references, or even first operand for
5308 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5310 PR tree-optimization/56443
5311 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5312 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5313 to type_for_mode langhook.
5315 2013-02-25 Matt Turner <mattst88@gmail.com>
5317 * doc/invoke.texi: Document r4700.
5319 2013-02-25 Richard Biener <rguenther@suse.de>
5321 PR tree-optimization/56175
5322 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5324 (simplify_bitwise_binary): ... here. Also guard the conversion
5325 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5327 2013-02-25 Catherine Moore <clm@codesourcery.com>
5330 2013-02-24 Catherine Moore <clm@codesourcery.com>
5331 Maciej W. Rozycki <macro@codesourcery.com>
5332 Tom de Vries <tom@codesourcery.com>
5333 Nathan Sidwell <nathan@codesourcery.com>
5334 Iain Sandoe <iain@codesourcery.com>
5335 Nathan Froyd <froydnj@codesourcery.com>
5336 Chao-ying Fu <fu@mips.com>
5338 * doc/extend.texi: (micromips, nomicromips, nocompression):
5339 Document new function attributes.
5340 * doc/invoke.texi (minterlink-compressed, mmicromips,
5341 m14k, m14ke, m14kec): Document new options.
5342 (minterlink-mips16): Update documentation.
5343 * doc/md.texi (ZC, ZD): Document new constraints.
5344 * configure.ac (gcc_cv_as_micromips): Check if linker
5345 supports the .set micromips directive.
5346 * configure: Regenerate.
5347 * config.in: Regenerate.
5348 * config/mips/mips-tables.opt: Regenerate.
5349 * config/mips/micromips.md: New file.
5350 * constraints.md (ZC, AD): New constraints.
5351 * config/mips/predicates.md (movep_src_register): New predicate.
5352 (movep_src_operand): New predicate.
5353 (non_volatile_mem_operand): New predicate.
5354 * config/mips/mips.md (multimem): New type.
5355 (length): Differentiate between 17-bit and 18-bit branch offsets.
5356 (MOVEP1, MOVEP2): New mode iterator.
5357 (mov_<load>l): Use ZC constraint.
5358 (mov_<load>r): Likewise.
5359 (mov_<store>l): Likewise.
5360 (mov_<store>r): Likewise.
5361 (*branch_equality<mode>_inverted): Add microMIPS support.
5362 (*branch_equality<mode>): Likewise.
5363 (*jump_absolute): Likewise.
5364 (indirect_jump_<mode>): Likewise.
5365 (tablejump_<mode>): Likewise.
5366 (<optab>_internal): Likewise.
5367 (sibcall_internal): Likewise.
5368 (sibcall_value_internal): Likewise.
5369 (prefetch): Use constraint ZD.
5370 * config/mips/mips.opt (minterlink-compressed): New option.
5371 (minterlink-mips16): Now an alias for minterlink-compressed.
5372 (mmicromips): New option.
5373 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5374 (compare_and_swap_12): Likewise.
5375 (sync_add<mode>): Likewise.
5376 (sync_<optab>_12): Likewise.
5377 (sync_old_<optab>_12): Likewise.
5378 (sync_new_<optab>_12): Likewise.
5379 (sync_nand_12): Likewise.
5380 (sync_old_nand_12): Likewise.
5381 (sync_new_nand_12): Likewise.
5382 (sync_sub<mode>): Likewise.
5383 (sync_old_add<mode>): Likewise.
5384 (sync_old_sub<mode>): Likewise.
5385 (sync_new_add<mode>): Likewise.
5386 (sync_new_sub<mode>): Likewise.
5387 (sync_<optab><mode>): Likewise.
5388 (sync_old_<optab><mode>): Likewise.
5389 (sync_new_<optab><mode>): Likewise.
5390 (sync_nand<mode>): Likewise.
5391 (sync_old_nand<mode>): Likewise.
5392 (sync_new_nand<mode>): Likewise.
5393 (sync_lock_test_and_set<mode>): Likewise.
5394 (test_and_set_12): Likewise.
5395 (atomic_compare_and_swap<mode>): Likewise.
5396 (atomic_exchange<mode>_llsc): Likewise.
5397 (atomic_fetch_add<mode>_llsc): Likewise.
5398 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5399 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5400 (umips_save_restore_pattern_p): Likewise.
5401 (umips_load_store_pair_p): Likewise.
5402 (umips_output_load_store_pair): Likewise.
5403 (umips_movep_target_p): Likewise.
5404 (umips_12bit_offset_address_p): Likewise.
5405 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5406 (mips_base_mips16): Rename this...
5407 (mips_base_compression_flags): ...to this. Update all uses.
5408 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5409 (mips_mips16_decl_p): Delete.
5410 (mips_nomips16_decl_p): Delete.
5411 (mips_get_compress_on_flags): New function.
5412 (mips_get_compress_off_flags): New function.
5413 (mips_get_compress_mode): New function.
5414 (mips_get_compress_on_name): New function.
5415 (mips_get_compress_off_name): New function.
5416 (mips_insert_attributes): Support multiple compression types.
5417 (mips_merge_decl_attributes): Likewise.
5418 (umips_12bit_offset_address_p): New function.
5419 (mips_start_function_definition): Emit .set micromips directive.
5420 (mips_call_may_need_jalx_p): New function.
5421 (mips_function_ok_for_sibcall): Add microMIPS support.
5422 (mips_print_operand_punctuation): Support short delay slots and
5424 (umips_swm_mask, umips_swm_encoding): New.
5425 (umips_build_save_restore): New function.
5426 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5427 (was_mips16_p): Remove.
5428 (old_compression_mode): New.
5429 (mips_set_compression_mode): New function.
5430 (mips_set_current_function): Add microMIPS support.
5431 (mips_option_override): Likewise.
5432 (umips_save_restore_pattern_p): New function.
5433 (umips_output_save_restore): New function.
5434 (umips_load_store_pair_p_1): New function.
5435 (umips_load_store_pair_p): New function.
5436 (umips_output_load_store_pair_1): New function.
5437 (umips_output_load_store_pair): New function.
5438 (umips_movep_target_p) New function.
5439 (mips_prepare_pch_save): Add microMIPS support.
5440 * config/mips/mips.h (TARGET_COMPRESSION): New.
5441 (TARGET_CPU_CPP_BUILTINS): Update macro
5442 to use new compression flags and to support microMIPS.
5443 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5444 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5445 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5446 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5447 (ASM_SPEC): Support mmicromips and mno-micromips.
5448 (M16STORE_REG_P): New macro.
5449 (MIPS_CALL): Support TARGET_MICROMIPS.
5450 (MICROMIPS_J): New macro.
5451 (mips_base_mips16): Rename this...
5452 (mips_base_compression_flags): ...to this.
5453 (UMIPS_12BIT_OFFSET_P): New macro.
5454 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5455 (MULTILIB_DIRNAMES): Likewise.
5457 2013-02-25 Tom de Vries <tom@codesourcery.com>
5459 PR rtl-optimization/56131
5460 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5461 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5462 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5464 2013-02-25 Tobias Burnus <burnus@net-b.de>
5466 * doc/invoke.texi (-fsanitize=): Move from optimization
5467 to debugging options.
5469 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5471 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5473 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
5474 Alexander Monakov <amonakov@ispras.ru>
5477 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5478 flush pending lists also on non-jumps. Adjust comment.
5480 2013-02-24 Catherine Moore <clm@codesourcery.com>
5481 Maciej W. Rozycki <macro@codesourcery.com>
5482 Tom de Vries <tom@codesourcery.com>
5483 Nathan Sidwell <nathan@codesourcery.com>
5484 Iain Sandoe <iain@codesourcery.com>
5485 Nathan Froyd <froydnj@codesourcery.com>
5486 Chao-ying Fu <fu@mips.com>
5488 * doc/extend.texi: (micromips, nomicromips, nocompression):
5489 Document new function attributes.
5490 * doc/invoke.texi (minterlink-compressed, mmicromips,
5491 m14k, m14ke, m14kec): Document new options.
5492 (minterlink-mips16): Update documentation.
5493 * doc/md.texi (ZC, ZD): Document new constraints.
5494 * configure.ac (gcc_cv_as_micromips): Check if linker
5495 supports the .set micromips directive.
5496 * configure: Regenerate.
5497 * config.in: Regenerate.
5498 * config/mips/mips-tables.opt: Regenerate.
5499 * config/mips/micromips.md: New file.
5500 * constraints.md (ZC, AD): New constraints.
5501 * config/mips/predicates.md (movep_src_register): New predicate.
5502 (movep_src_operand): New predicate.
5503 (non_volatile_mem_operand): New predicate.
5504 * config/mips/mips.md (multimem): New type.
5505 (length): Differentiate between 17-bit and 18-bit branch offsets.
5506 (MOVEP1, MOVEP2): New mode iterator.
5507 (mov_<load>l): Use ZC constraint.
5508 (mov_<load>r): Likewise.
5509 (mov_<store>l): Likewise.
5510 (mov_<store>r): Likewise.
5511 (*branch_equality<mode>_inverted): Add microMIPS support.
5512 (*branch_equality<mode>): Likewise.
5513 (*jump_absolute): Likewise.
5514 (indirect_jump_<mode>): Likewise.
5515 (tablejump_<mode>): Likewise.
5516 (<optab>_internal): Likewise.
5517 (sibcall_internal): Likewise.
5518 (sibcall_value_internal): Likewise.
5519 (prefetch): Use constraint ZD.
5520 * config/mips/mips.opt (minterlink-compressed): New option.
5521 (minterlink-mips16): Now an alias for minterlink-compressed.
5522 (mmicromips): New option.
5523 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5524 (compare_and_swap_12): Likewise.
5525 (sync_add<mode>): Likewise.
5526 (sync_<optab>_12): Likewise.
5527 (sync_old_<optab>_12): Likewise.
5528 (sync_new_<optab>_12): Likewise.
5529 (sync_nand_12): Likewise.
5530 (sync_old_nand_12): Likewise.
5531 (sync_new_nand_12): Likewise.
5532 (sync_sub<mode>): Likewise.
5533 (sync_old_add<mode>): Likewise.
5534 (sync_old_sub<mode>): Likewise.
5535 (sync_new_add<mode>): Likewise.
5536 (sync_new_sub<mode>): Likewise.
5537 (sync_<optab><mode>): Likewise.
5538 (sync_old_<optab><mode>): Likewise.
5539 (sync_new_<optab><mode>): Likewise.
5540 (sync_nand<mode>): Likewise.
5541 (sync_old_nand<mode>): Likewise.
5542 (sync_new_nand<mode>): Likewise.
5543 (sync_lock_test_and_set<mode>): Likewise.
5544 (test_and_set_12): Likewise.
5545 (atomic_compare_and_swap<mode>): Likewise.
5546 (atomic_exchange<mode>_llsc): Likewise.
5547 (atomic_fetch_add<mode>_llsc): Likewise.
5548 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5549 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5550 (umips_save_restore_pattern_p): Likewise.
5551 (umips_load_store_pair_p): Likewise.
5552 (umips_output_load_store_pair): Likewise.
5553 (umips_movep_target_p): Likewise.
5554 (umips_12bit_offset_address_p): Likewise.
5555 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5556 (mips_base_mips16): Rename this...
5557 (mips_base_compression_flags): ...to this. Update all uses.
5558 (mips_attribute_table): Add micromips, nomicromips and nocompression.
5559 (mips_mips16_decl_p): Delete.
5560 (mips_nomips16_decl_p): Delete.
5561 (mips_get_compress_on_flags): New function.
5562 (mips_get_compress_off_flags): New function.
5563 (mips_get_compress_mode): New function.
5564 (mips_get_compress_on_name): New function.
5565 (mips_get_compress_off_name): New function.
5566 (mips_insert_attributes): Support multiple compression types.
5567 (mips_merge_decl_attributes): Likewise.
5568 (umips_12bit_offset_address_p): New function.
5569 (mips_start_function_definition): Emit .set micromips directive.
5570 (mips_call_may_need_jalx_p): New function.
5571 (mips_function_ok_for_sibcall): Add microMIPS support.
5572 (mips_print_operand_punctuation): Support short delay slots and
5574 (umips_swm_mask, umips_swm_encoding): New.
5575 (umips_build_save_restore): New function.
5576 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5577 (was_mips16_p): Remove.
5578 (old_compression_mode): New.
5579 (mips_set_compression_mode): New function.
5580 (mips_set_current_function): Add microMIPS support.
5581 (mips_option_override): Likewise.
5582 (umips_save_restore_pattern_p): New function.
5583 (umips_output_save_restore): New function.
5584 (umips_load_store_pair_p_1): New function.
5585 (umips_load_store_pair_p): New function.
5586 (umips_output_load_store_pair_1): New function.
5587 (umips_output_load_store_pair): New function.
5588 (umips_movep_target_p) New function.
5589 (mips_prepare_pch_save): Add microMIPS support.
5590 * config/mips/mips.h (TARGET_COMPRESSION): New.
5591 (TARGET_CPU_CPP_BUILTINS): Update macro
5592 to use new compression flags and to support microMIPS.
5593 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5594 (MIPS_ARCH_FLOAT_SPEC): Likewise.
5595 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5596 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5597 (ASM_SPEC): Support mmicromips and mno-micromips.
5598 (M16STORE_REG_P): New macro.
5599 (MIPS_CALL): Support TARGET_MICROMIPS.
5600 (MICROMIPS_J): New macro.
5601 (mips_base_mips16): Rename this...
5602 (mips_base_compression_flags): ...to this.
5603 (UMIPS_12BIT_OFFSET_P): New macro.
5604 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5605 (MULTILIB_DIRNAMES): Likewise.
5607 2013-02-24 Jakub Jelinek <jakub@redhat.com>
5610 * target-globals.c (save_target_globals): For init_reg_sets and
5611 target_reinit remporarily set this_fn_optabs to this_target_optabs.
5613 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
5615 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
5616 * config/aarch64/t-aarch64
5617 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5619 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
5622 * lra-constraints.c (process_alt_operands): Reload operand
5623 conflicting with earlier clobber only if no more other conflicting
5626 2013-02-22 Jakub Jelinek <jakub@redhat.com>
5629 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5630 if not linking a shared library.
5632 2013-02-22 Seth LaForge <sethml@google.com>
5634 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5636 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
5638 * config/arm/arm.md (split for extendsidi): Update condition.
5639 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5640 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5641 (qhs_zextenddi_cstr): Likewise.
5643 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5646 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5647 avoid signed wrapping.
5648 (expand_mult): Handle properly multiplication by
5649 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
5650 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
5651 in the compiler if coeff is HOST_WIDE_INT_MIN.
5652 (expand_divmod): Don't make ext_op1 static, change it's type to
5653 uhwi. Avoid undefined behavior in -INTVAL (op1).
5655 PR rtl-optimization/50339
5656 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5658 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5659 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5660 into splitting_ashiftrt field.
5661 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5663 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5666 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
5669 * trans-mem.c (execute_tm_mark): Do not expand transactions that
5670 are sure to go irrevocable.
5672 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
5674 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5675 scalars are valid operands.
5677 2013-02-21 Martin Jambor <mjambor@suse.cz>
5679 PR tree-optimization/56310
5680 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5681 only matching indices and non-negative final offsets.
5682 (intersect_aggregates_with_edge): Pass src_idx to
5683 agg_replacements_to_vector. Pass src_idx insstead of index to
5684 intersect_with_agg_replacements.
5686 2013-02-21 Martin Jambor <mjambor@suse.cz>
5688 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5689 instead of hard-wired defaults.
5691 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
5693 * doc/invoke.texi (MIPS Options): Update documentation of the
5694 floating-point multiply-accumulate instruction restrictions.
5696 2013-02-21 Kostya Serebryany <kcc@google.com>
5698 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5699 asan_shadow_offset on x86_64 linux.
5701 2013-02-21 Richard Biener <rguenther@suse.de>
5703 PR tree-optimization/56415
5705 2013-02-11 Richard Biener <rguenther@suse.de>
5707 PR tree-optimization/56273
5708 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5711 2013-02-21 Jakub Jelinek <jakub@redhat.com>
5714 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5718 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5719 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5721 2013-02-20 Jan Hubicka <jh@suse.cz>
5723 PR tree-optimization/56265
5724 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5725 when target is referenced for first time.
5727 2013-02-20 Richard Biener <rguenther@suse.de>
5729 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5730 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5731 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5732 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5733 not return anything.
5734 (rename_ssa_copies): Do not remove unused locals.
5735 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5736 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5737 * passes.c (execute_function_todo): Do not schedule unused locals
5738 removal if cleanup_tree_cfg did something.
5739 * tree-ssa-live.c (remove_unused_locals): Dump statistics
5740 about the number of removed locals.
5742 2013-02-20 Richard Biener <rguenther@suse.de>
5744 PR tree-optimization/56398
5745 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
5747 2013-02-20 Martin Jambor <mjambor@suse.cz>
5749 PR tree-optimization/55334
5750 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5751 restricted pointers to arrays.
5753 2013-02-20 Richard Biener <rguenther@suse.de>
5754 Jakub Jelinek <jakub@redhat.com>
5756 PR tree-optimization/56396
5757 * tree-ssa-ccp.c (n_const_val): New static variable.
5758 (get_value): Return NULL for SSA names we don't have a lattice
5760 (ccp_initialize): Initialize n_const_val.
5761 * tree-ssa-copy.c (n_copy_of): New static variable.
5762 (init_copy_prop): Initialize n_copy_of.
5763 (get_value): Return NULL_TREE for SSA names we don't have a
5766 2013-02-20 Martin Jambor <mjambor@suse.cz>
5768 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5770 2013-02-20 Richard Biener <rguenther@suse.de>
5772 * genpreds.c (write_lookup_constraint): Do not compare first
5773 letter of the constraint again.
5775 2013-02-20 Richard Biener <rguenther@suse.de>
5777 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5779 (get_use_iv_cost): Terminate hashtable walk when coming across
5782 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
5784 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5785 reassociation for avx2 targets.
5787 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5789 * config/microblaze/microblaze.c: microblaze_has_clz = 0
5790 Add version check for v8.10.a to enable microblaze_has_clz
5791 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
5792 version and TARGET_PATTERN_COMPARE check
5793 * config/microblaze/microblaze.md: New clzsi2 instruction
5795 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5797 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
5798 function before branching.
5800 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5802 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5804 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5806 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
5809 * sel-sched.c: Include ira.h.
5810 (implicit_clobber_conflict_p): New function.
5811 (moveup_expr): Use it.
5812 * Makefile.in (sel-sched.o): Depend on ira.h.
5814 2013-02-19 Richard Biener <rguenther@suse.de>
5816 PR tree-optimization/56384
5817 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5818 (vn_hash_type): Split out from ...
5819 (vn_hash_constant_with_type): ... here.
5820 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5821 (vn_phi_eq): Compare types from vn_phi_s structure.
5822 (vn_phi_lookup): Populate vn_phi_s type.
5823 (vn_phi_insert): Likewise.
5825 2013-02-19 Jakub Jelinek <jakub@redhat.com>
5827 PR tree-optimization/56350
5828 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5829 if haven't found reduction or nested cycle operand, rather than
5830 asserting we must find it.
5832 PR tree-optimization/56381
5833 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5836 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
5837 Jakub Jelinek <jakub@redhat.com>
5840 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5841 (swap_optab_enable): Same.
5842 (init_all_optabs): Use argument instead of global.
5843 * tree.h (struct tree_optimization_option): New field target_optabs.
5844 * expr.h (init_all_optabs): Add argument to prototype.
5845 (TREE_OPTIMIZATION_OPTABS): New.
5846 (save_optabs_if_changed): Protoize.
5847 * optabs.h: Declare this_fn_optabs.
5848 * optabs.c (save_optabs_if_changed): New.
5849 Declare this_fn_optabs.
5850 (init_optabs): Add argument to init_all_optabs() call.
5851 * function.c (invoke_set_current_function_hook): Handle per
5853 * function.h (struct function): New field optabs.
5854 * config/mips/mips.c (mips_set_mips16_mode): Handle when
5855 optimization_current_node has changed.
5856 * target-globals.h (save_target_globals_default_opts): Protoize.
5857 * target-globals.c (save_target_globals_default_opts): New.
5859 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5862 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5863 registers %fr12 and %fr12R as call used.
5866 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
5867 and HImode, require all displacements to be an integer multiple of
5869 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5870 only allow QImode and HImode when reload is in progress and strict is
5871 true. Likewise for symbolic addresses. Use base14_operand to check
5872 displacements in REG+BASE addresses.
5874 2013-02-18 Richard Biener <rguenther@suse.de>
5876 PR tree-optimization/56366
5877 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5878 handle sign-conversion of outer-loop initial induction value.
5880 2013-02-18 Richard Biener <rguenther@suse.de>
5883 * cfghooks.c (merge_blocks): If we merge a latch into another
5884 block adjust references to it.
5885 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5886 (verify_loop_structure): Verify that a recorded latch is in fact
5889 2013-02-18 Richard Biener <rguenther@suse.de>
5891 PR tree-optimization/56321
5892 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5893 order SSA name release and virtual operand unlinking.
5895 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5897 * config/microblaze/microblaze.md (save_stack_block): Define.
5898 (restore_stack_block): Likewise.
5900 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5902 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5903 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5904 * config/microblaze/microblaze.c (microblaze_option_override):
5905 Bail out early for PIC modes when target does not support PIC.
5907 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
5909 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
5910 Replace with a microblaze version.
5911 (microblaze_trampoline_init): Adapt for microblaze.
5912 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
5915 2013-02-16 Jakub Jelinek <jakub@redhat.com>
5916 Dodji Seketeli <dodji@redhat.com>
5919 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
5920 (instrument_mem_region_access): Do not forget to always put
5921 instrumentation of the of 'base' and 'base + len' in a "if (len !=
5922 0) statement, even for cases where either 'base' or 'base + len'
5923 are not instrumented -- because they have been previously
5924 instrumented. Simplify the logic by putting all the statements
5925 instrument 'base + len' inside a sequence, and then insert that
5926 sequence right before the current insertion point. Then, to
5927 instrument 'base + len', just get an iterator on that statement.
5928 And do not forget to update the pointer to iterator the function
5929 received as argument.
5931 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
5933 PR rtl-optimization/56348
5934 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
5936 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
5938 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
5939 (clean_graph_dump_file): Pass base to start_graph_dump.
5941 2013-02-14 Richard Henderson <rth@redhat.com>
5944 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
5946 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
5948 * collect2-aix.h: Define F_LOADONLY.
5950 2013-02-14 Richard Biener <rguenther@suse.de>
5953 * varasm.c (output_constant_def_1): Get the decl representing
5954 the constant as argument.
5955 (output_constant_def): Wrap output_constant_def_1.
5956 (make_decl_rtl): Use output_constant_def_1 with the decl
5957 representing the constant.
5958 (build_constant_desc): Optionally re-use a decl already
5959 representing the constant.
5960 (tree_output_constant_def): Adjust.
5962 2013-02-14 Dodji Seketeli <dodji@redhat.com>
5965 * asan.c (instrument_builtin_call): Really put the length of the
5966 second source argument into src1_len.
5968 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5970 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
5971 argument. If it is false, don't create edge from then_bb to
5973 (insert_if_then_before_iter): Pass true to it.
5974 (build_check_stmt): Pass false to it.
5975 (transform_statements): Flush hash table only on extended basic
5976 block boundaries, rather than at the beginning of every bb.
5977 Don't flush hash table on nonfreeing_call_p calls.
5978 * tree-flow.h (nonfreeing_call_p): New prototype.
5979 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
5981 2013-02-13 David S. Miller <davem@davemloft.net>
5983 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
5985 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
5988 * ira.c (max_regno_before_ira): Move from ...
5990 (fix_reg_equiv_init): Use max_regno_before_ira instead of
5993 2013-02-13 Jakub Jelinek <jakub@redhat.com>
5995 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
5997 2013-02-13 Richard Biener <rguenther@suse.de>
6000 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6001 globals in MEM_REFs.
6003 2013-02-13 Richard Biener <rguenther@suse.de>
6005 * loop-init.c (loop_optimizer_init): Clear loop state when
6006 re-initializing preserved loops.
6007 * loop-unswitch.c (unswitch_single_loop): Return whether
6008 we unswitched the loop. Do not verify loop state here.
6009 (unswitch_loops): When we unswitched a loop discover new loops.
6011 2013-02-13 Kostya Serebryany <kcc@google.com>
6013 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6015 * sanitizer.def: Rename __asan_init to __asan_init_v1.
6017 2013-02-12 Dodji Seketeli <dodji@redhat.com>
6019 Avoid instrumenting duplicated memory access in the same basic block
6020 * Makefile.in (asan.o): Add new dependency on hash-table.h
6021 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6022 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6023 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6024 (free_mem_ref_resources, has_mem_ref_been_instrumented)
6025 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6026 (get_mem_ref_of_assignment): New functions.
6027 (get_mem_refs_of_builtin_call): Extract from
6028 instrument_builtin_call and tweak a little bit to make it fit with
6030 (instrument_builtin_call): Use the new
6031 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
6032 of is_gimple_builtin_call.
6033 (instrument_derefs, instrument_mem_region_access): Insert the
6034 instrumented memory reference into the hash table.
6035 (maybe_instrument_assignment): Renamed instrument_assignment into
6036 this, and change it to advance the iterator when instrumentation
6037 actually happened and return true in that case. This makes it
6038 homogeneous with maybe_instrument_assignment, and thus give a
6039 chance to callers to be more 'regular'.
6040 (transform_statements): Clear the memory reference hash table
6041 whenever we enter a new BB, when we cross a function call, or when
6042 we are done transforming statements. Use
6043 maybe_instrument_assignment instead of instrumentation. No more
6044 need to special case maybe_instrument_assignment and advance the
6045 iterator after calling it; it's now handled just like
6046 maybe_instrument_call. Update comment.
6048 2013-02-13 Richard Biener <rguenther@suse.de>
6050 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6051 Fix loop discovery code.
6053 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
6056 * lra-constraints.c (process_alt_operands): Match early clobber
6057 operand with itself. Check conflicts with earlyclobber only if
6058 the operand is not reloaded. Prefer to reload conflicting operand
6059 if earlyclobber and matching operands are the same.
6061 2013-02-12 Richard Biener <rguenther@suse.de>
6064 * lto-streamer-out.c (write_symbol): Do not output symbols
6065 for hard register variables.
6067 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
6070 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6071 (umulsidi3_insn, mulsidi3_insn): New insns.
6073 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
6075 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6076 (struct tune_params): Add vec_costs field.
6077 * config/arm/arm.c (arm_builtin_vectorization_cost)
6078 (arm_add_stmt_cost): New functions.
6079 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6080 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6081 (arm_default_vec_cost): New struct of type cpu_vec_costs.
6082 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6083 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6084 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6085 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6087 2013-02-12 Richard Biener <rguenther@suse.de>
6090 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6091 decls again if possible.
6093 2013-02-12 Richard Biener <rguenther@suse.de>
6096 * tree-ssa.c (verify_ssa_name): Fix check, move
6097 SSA_NAME_IN_FREE_LIST check up.
6099 2013-02-12 Jakub Jelinek <jakub@redhat.com>
6100 Steven Bosscher <steven@gcc.gnu.org>
6102 PR rtl-optimization/56151
6103 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6104 equal to op0 or op1, and last_insn pattern is CODE operation
6105 with MEM dest and one of the operands matches that MEM.
6107 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
6109 * doc/extend.texi: Document Function Multiversioning and "default"
6110 parameter string to target attribute.
6111 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6112 target attribute parameter is "default".
6113 (ix86_compare_version_priority): Remove checks for target attribute.
6114 (ix86_mangle_function_version_assembler_name): Change error to sorry.
6115 Remove check for target attribute equal to NULL. Add assert.
6116 (ix86_generate_version_dispatcher_body): Change error to sorry.
6118 2013-02-11 Iain Sandoe <iain@codesourcery.com>
6119 Jack Howarth <howarth@bromo.med.uc.edu>
6120 Patrick Marlier <patrick.marlier@gmail.com>
6123 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6124 define ENDFILE_SPEC as TM_DESTRUCTOR.
6125 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6127 2013-02-11 Alexander Potapenko <glider@google.com>
6128 Jack Howarth <howarth@bromo.med.uc.edu>
6129 Jakub Jelinek <jakub@redhat.com>
6132 * config/darwin.c (cdtor_record): Rename ctor_record.
6133 (sort_cdtor_records): Rename sort_ctor_records.
6134 (finalize_dtors): New routine to sort destructors by
6135 priority before use in assemble_integer.
6136 (machopic_asm_out_destructor): Use finalize_dtors if needed.
6138 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
6140 PR rtl-optimization/56275
6141 * simplify-rtx.c (avoid_constant_pool_reference): Check that
6142 offset is non-negative and less than cmode size before
6143 calling simplify_subreg.
6145 2013-02-11 Richard Biener <rguenther@suse.de>
6147 PR tree-optimization/56264
6148 * cfgloop.h (fix_loop_structure): Adjust prototype.
6149 * loop-init.c (fix_loop_structure): Return the number of
6150 newly discovered loops.
6151 * tree-cfgcleanup.c (repair_loop_structures): When new loops
6152 are discovered, do a full loop-closed SSA rewrite.
6154 2013-02-11 Richard Biener <rguenther@suse.de>
6156 PR tree-optimization/56273
6157 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6159 (check_array_ref): Fix missing newline in dumps.
6160 (search_for_addr_array): Likewise.
6162 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
6164 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6166 2013-02-09 Jakub Jelinek <jakub@redhat.com>
6169 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6171 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
6173 PR rtl-optimization/56246
6174 * lra-constraints.c (simplify_operand_subreg): Try to reuse
6176 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6177 constraints are satisfied.
6179 2013-02-08 Jeff Law <law@redhat.com>
6182 * emit-rtl.c (reg_is_parm_p): New function.
6183 * regs.h (reg_is_parm_p): New prototype.
6184 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6185 callee-clobbered registers.
6187 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
6190 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6191 If there is no implicit builtin declaration, just return NULL.
6193 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6195 * config/i386/sse.md (FMAMODEM): New mode iterator.
6196 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6197 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6199 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6201 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6202 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6203 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6205 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6207 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6208 (microblaze*-*-elf): Likewise.
6209 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6211 * config/microblaze/microblaze-c.c: Add builtin defines for
6212 _LITTLE_ENDIAN and _BIG_ENDIAN.
6213 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6214 add to TARGET_DEFAULT flags.
6215 Expand ASM_SPEC and LINK_SPEC.
6216 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6217 * config/microblaze/microblaze.md: Update extendsidi2 and
6218 movdi_internal instructions to use low-order / high-order reg
6220 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6221 options and inversemask / mask of LITTLE_ENDIAN.
6222 * config/microblaze/t-microblaze: Expand multilib options to
6223 include mlittle-endian (le) and update exceptions patterns.
6225 2013-02-08 Jakub Jelinek <jakub@redhat.com>
6227 PR rtl-optimization/56195
6228 * lra-constraints.c (get_reload_reg): Don't reuse regs
6229 if they have smaller mode than requested, if they have
6230 wider mode than requested, try to return a SUBREG.
6232 PR tree-optimization/56250
6233 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6234 if type is unsigned and code isn't MULT_EXPR.
6236 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6238 PR tree-optimization/56064
6239 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6240 bits according to mode.
6241 * fixed-value.h (fixed_from_double_int)
6242 (const_fixed_from_double_int): Adjust comments.
6244 2013-02-08 Richard Biener <rguenther@suse.de>
6247 * lto-streamer.h (struct data_in): Remove current_file, current_line
6248 and current_col members.
6249 * lto-streamer-out.c (lto_output_location): Stream changed bits
6250 en-block for efficiency.
6251 * lto-streamer-in.c (clear_line_info): Remove.
6252 (lto_input_location): Cache current file, line and column
6253 globally via local statics. Read changed bits en-block.
6254 (input_function): Do not call clear_line_info.
6255 (lto_read_body): Likewise.
6256 (lto_input_toplevel_asms): Likewise.
6258 2013-02-08 Michael Matz <matz@suse.de>
6260 PR tree-optimization/52448
6261 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6262 (nt_call_phase): New static.
6263 (add_or_mark_expr): Only mark accesses with newer phase than any
6265 (nonfreeing_call_p): New.
6266 (nt_init_block): Update nt_call_phase, mark blocks as visited.
6267 (nt_fini_block): Keep blocks marked as visited.
6268 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6270 2013-02-08 Richard Biener <rguenther@suse.de>
6272 * ira.c (ira): Free broken dominator information.
6274 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
6276 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6278 2013-02-08 Marek Polacek <polacek@redhat.com>
6280 * cfgloop.c (verify_loop_structure): Add more checking of headers.
6282 2013-02-08 Richard Biener <rguenther@suse.de>
6285 * cfgloop.h (flow_loops_find): Adjust.
6286 (bb_loop_header_p): Declare.
6287 * cfgloop.c (bb_loop_header_p): New function split out from ...
6288 (flow_loops_find): ... here. Adjust function signature,
6289 support incremental loop structure update.
6290 (verify_loop_structure): Cleanup. Verify a loop is a loop.
6291 * cfgloopmanip.c (fix_loop_structure): Move ...
6292 * loop-init.c (fix_loop_structure): ... here.
6293 (apply_loop_flags): Split out from ...
6294 (loop_optimizer_init): ... here.
6295 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
6296 in incremental mode, only remove dead loops here.
6298 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
6301 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6302 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6303 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6304 (*round<mode>3.libgcc): New insns for fixed-modes.
6305 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6306 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6307 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6308 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6309 implementations. Define to __builtin_avr_absFX,
6310 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6311 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6312 __builtin_avr_countlsFX, respectively.
6313 * config/avr/avr-c.c (target.h): Include it.
6314 (enum avr_builtin_id): New enum.
6315 (avr_resolve_overloaded_builtin): New static function.
6316 (avr_register_target_pragmas): Use it to set
6317 targetm.resolve_overloaded_builtin.
6318 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6319 tree nodes used by DEF_BUILTIN.
6320 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6321 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6322 <AVR_BUILTIN_xxBITS>: Same.
6324 2013-02-08 Richard Biener <rguenther@suse.de>
6326 * cfgloop.c (verify_loop_structure): Properly handle
6327 a loop exiting to another loop header.
6328 * ira-int.h (ira_loops): Remove.
6329 * ira.c (ira_loops): Remove.
6330 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6331 (do_reload): Use loop_optimizer_finalize.
6332 * ira-build.c (create_loop_tree_nodes): Use get_loops and
6333 number_of_loops to access the loop tree.
6334 (more_one_region_p): Likewise.
6335 (finish_loop_tree_nodes): Likewise.
6336 (rebuild_regno_allocno_maps): Likewise.
6337 (mark_loops_for_removal): Likewise.
6338 (mark_all_loops_for_removal): Likewise.
6339 (remove_unnecessary_regions): Likewise.
6340 (ira_build): Likewise.
6341 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6343 2013-02-08 Richard Biener <rguenther@suse.de>
6345 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6346 * ipa-pure-const.c (analyze_function): Avoid calling
6347 mark_irreducible_loops twice.
6348 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6350 2013-02-07 David S. Miller <davem@davemloft.net>
6352 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6354 * var-tracking.c (vt_add_function_parameter): Test the presence of
6355 HAVE_window_save properly and do not remap argument registers when
6356 we have a leaf function.
6358 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
6361 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6363 * config/i386/i386.c (ix86_print_operand): Ditto.
6365 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6367 * lra-constraints.c (process_alt_operands): Fix recently added comment.
6369 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
6371 PR rtl-optimization/56225
6372 * lra-constraints.c (process_alt_operands): Check that reload hard
6373 reg can hold value for strict_low_part.
6375 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6378 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6379 dwarf2out_end_function.
6380 (in_first_function_p, maybe_at_text_label_p,
6381 first_loclabel_num_not_at_text_label): New variables.
6382 (dwarf2out_var_location): In the first function find out
6383 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6384 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6387 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
6389 PR rtl-optimization/56178
6390 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6391 SUBREG of a register. Tidy up related block of code.
6392 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6393 note if the source is a register or a SUBREG of a register.
6395 2013-02-07 Jakub Jelinek <jakub@redhat.com>
6398 * config/rs6000/rs6000.md (ptrm): New mode attr.
6399 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6400 call_value_indirect_aix<pttrsize>,
6401 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6404 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6406 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6407 if -bnortl. Convert to strcmp and strncmp.
6409 2013-02-07 Alan Modra <amodra@gmail.com>
6412 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6413 addresses won't wrap when offsetting.
6414 (rs6000_secondary_reload): Provide secondary reloads needed for
6415 wrapping LO_SUM addresses.
6417 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
6419 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6420 MACH, just __MACH__.
6422 2013-02-06 Richard Biener <rguenther@suse.de>
6424 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6425 instead of calling fix_loop_structure.
6427 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6430 * omp-low.c (use_pointer_for_field): Return false if
6431 lower_send_shared_vars doesn't generate any copy-out code.
6433 2013-02-06 Tom de Vries <tom@codesourcery.com>
6435 PR rtl-optimization/56131
6436 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6437 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
6438 of the label is NULL. Add comment.
6440 2013-02-05 Jakub Jelinek <jakub@redhat.com>
6442 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6445 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6446 (STATIC_LIBTSAN_LIBS): Likewise.
6447 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6448 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6449 is defined, don't add anything else beyond that.
6450 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6451 (LINK_COMMAND_SPEC): Use them.
6453 PR tree-optimization/56205
6454 * tree-stdarg.c (check_all_va_list_escapes): Return true if
6455 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6456 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6458 2013-02-05 Richard Biener <rguenther@suse.de>
6460 PR tree-optimization/53342
6461 PR tree-optimization/53185
6462 * tree-vectorizer.h (vect_check_strided_load): Remove.
6463 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6464 not disallow peeling for vectorized strided loads.
6465 (vect_check_strided_load): Make static and simplify.
6466 (vect_analyze_data_refs): Adjust.
6467 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6468 correctly when vectorizing strided loads.
6470 2013-02-05 Richard Biener <rguenther@suse.de>
6472 * doc/install.texi: Refer to ISL, not PPL.
6474 2013-02-05 Jan Hubicka <jh@suse.cz>
6476 PR tree-optimization/55789
6477 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6479 2013-02-05 Jan Hubicka <jh@suse.cz>
6481 PR tree-optimization/55789
6482 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6483 the dead call anyway.
6485 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
6488 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6490 2013-02-04 Alexander Potapenko <glider@google.com>
6491 Jack Howarth <howarth@bromo.med.uc.edu>
6492 Jakub Jelinek <jakub@redhat.com>
6495 * config/darwin.c (sort_ctor_records): Stabilized qsort
6496 on constructor priority by using original position.
6497 (finalize_ctors): New routine to sort constructors by
6498 priority before use in assemble_integer.
6499 (machopic_asm_out_constructor): Use finalize_ctors if needed.
6501 2013-02-04 Jakub Jelinek <jakub@redhat.com>
6504 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6505 about visibility on artificial decls.
6506 * config/sol2.c (solaris_assemble_visibility): Likewise.
6508 2013-02-04 Kai Tietz <ktietz@redhat.com>
6511 * config/i386/i386.c (function_value_ms_64): Add additional valtype
6512 argument and improve checking of return-argument types for 16-byte
6514 (ix86_function_value_1): Add additional valtype argument on call
6515 of function_value_64.
6516 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6517 handling infunction_value_64 function.
6519 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6521 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6523 2013-02-04 Richard Biener <rguenther@suse.de>
6525 PR tree-optimization/56188
6526 * tree-ssa-structalias.c (label_visit): Consider case with
6527 initially non-empty points-to set.
6528 (perform_var_substitution): Dump node mapping and clean up.
6530 2013-02-04 Richard Guenther <rguenther@suse.de>
6533 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6534 node prevail as last resort.
6535 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6536 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6538 2013-02-04 Richard Biener <rguenther@suse.de>
6540 PR tree-optimization/56113
6541 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6543 (equiv_class_lookup_or_add): ... this.
6544 (label_visit): Adjust and fix error in previous patch.
6545 (perform_var_substitution): Adjust.
6547 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
6549 * config/sh/divtab.c: Fix formatting and comments throughout the file.
6550 * config/sh/sh4-300.md: Likewise.
6551 * config/sh/sh4a.md: Likewise.
6552 * config/sh/constraints.md: Likewise.
6553 * config/sh/sh.md: Likewise.
6554 * config/sh/netbsd-elf.h: Likewise.
6555 * config/sh/predicates.md: Likewise.
6556 * config/sh/sh-protos.h: Likewise.
6557 * config/sh/ushmedia.h: Likewise.
6558 * config/sh/linux.h: Likewise.
6559 * config/sh/sh.c: Likewise.
6560 * config/sh/superh.h: Likewise.
6561 * config/sh/elf.h: Likewise.
6562 * config/sh/sh4.md: Likewise.
6563 * config/sh/sh.h: Likewise.
6565 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6567 * config/pa/constraints.md: Adjust unused letters. Change "T"
6568 constraint to match_test floating_point_store_memory_operand().
6569 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6570 (base14_operand): New.
6571 (floating_point_store_memory_operand): New.
6572 (integer_store_memory_operand): Revise to use base14_operand and
6573 reg_plus_base_memory_operand.
6574 (move_dest_operand): Allow symbolic_memory_operands.
6575 (symbolic_memory_operand): Check for LO_SOM.
6576 (symbolic_operand): Change default case to break.
6577 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6578 CONST_DOUBLE values to be reloaded by putting them into memory when
6579 the destination is a floating point register.
6580 (movdf): Remove code to handle CONST_DOUBLE.
6582 (reload_indf_r1): New.
6583 (reload_insf_r1): New.
6584 Consistently use "Q" and "T" constraints with integer and floating
6585 point move instructions, respectively.
6586 (movdi): Remove FAIL.
6587 Change predicate for source operand unamed DImode move from
6588 general_operand to move_src_operand.
6589 (umulsidi3): Change predicate for destination operand to
6591 Likewise for similar unamed patterns.
6592 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
6593 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
6594 (hppa_legitimize_address): Simplify mask calculation.
6595 (pa_emit_move_sequence): Revised handling of secondary reloads from
6596 REG+D addresses for floating point loads and stores. Directly handle
6597 loading CONST0_RTX (mode) to a floating point register.
6598 (pa_secondary_reload): Handle reloading DF and SFmode constant values
6599 to floating point registers. Don't restrict secondary reloads to
6600 floating point registers to integer modes. Revise some comments and
6602 (TARGET_LEGITIMATE_ADDRESS_P): Define.
6603 (pa_legitimate_address_p): New.
6604 (pa_legitimize_reload_address): New.
6605 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
6606 (STRICT_REG_OK_FOR_BASE_P): New.
6607 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
6608 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
6610 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
6611 Andrew Dixie <andrewd@gentrack.com>
6613 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
6616 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
6618 * expmed.c (extract_bit_field_1): Pass the full width of the
6619 structure to get_best_reg_extraction_insn.
6621 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6624 * configure.ac (use_cxa_atexit): Add AIX.
6625 * configure: Regenerate.
6627 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6629 2013-02-01 Jakub Jelinek <jakub@redhat.com>
6632 * final.c (need_profile_function): New variable.
6633 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6634 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6635 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6636 notes, targetm.asm_out.function_prologue doesn't emit anything,
6637 HAVE_prologue and profiler should be emitted before prologue,
6638 set need_profile_function instead of emitting it.
6639 (final_scan_insn): If need_profile_function, emit
6640 profile_function on the first NOTE_INSN_BASIC_BLOCK or
6641 NOTE_INSN_FUNCTION_BEG note.
6643 2013-02-01 Richard Henderson <rth@redhat.com>
6645 * config/rs6000/rs6000.md (smulditi3): New.
6648 * config/alpha/alpha.md (umulditi3): New.
6650 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
6652 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6653 (ASM_OUTPUT_ALIGNED_LOCAL): New.
6655 2013-02-01 Richard Biener <rguenther@suse.de>
6657 PR tree-optimization/56113
6658 * tree-ssa-structalias.c (label_visit): Reduce work for
6659 single-predecessor nodes.
6661 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
6663 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6664 range isn't testing for zero.
6666 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
6669 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6671 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
6672 Nick Clifton <nickc@redhat.com>
6674 * config/v850/constraints.md (Q): Define as a memory constraint.
6675 * config/v850/predicates.md (label_ref_operand): New predicate.
6676 (e3v5_shift_operand): New predicate.
6677 (ior_operator): New predicate.
6678 * config/v850/t-v850: Add e3v5 multilib.
6679 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6680 (v850_gen_movdi): Prototype.
6681 * config/v850/v850.c: Add support for e3v5 architecture.
6682 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6684 (construct_save_jarl): Add e3v5 long JARL support.
6685 (v850_adjust_insn_length): New function. Adjust length of call
6686 insns when using e3v5 instructions.
6687 (v850_gen_movdi): New function: Generate instructions to move a
6689 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6690 (CPP_SPEC): Define __v850e3v5__ as appropriate.
6691 (TARGET_USE_FPU): Enable for e3v5.
6692 (CONST_OK_FOR_W): New macro.
6693 (ADJUST_INSN_LENGTH): Define.
6694 * config/v850/v850.md (UNSPEC_LOOP): Define.
6695 (attr cpu): Add v850e3v5.
6696 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6697 (movdi): New pattern.
6698 (movdi_internal): New pattern.
6699 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6700 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6701 (cstoresf4): Likewise.
6702 (cstoredf4): Likewise.
6703 (insv): New pattern.
6704 (rotlso3_a): New pattern.
6705 (rotlsi3_b): New pattern
6706 (rotlsi3_v850e3v5): New pattern.
6707 (doloop_begin): New pattern.
6708 (fix_loop_counter): New pattern.
6709 (doloop_end): New pattern.
6710 (branch_normal): Add e3v5 long branch support.
6711 (branch_invert): Likewise.
6712 (branch_z_normal): Likewise.
6713 (branch_z_invert): Likewise.
6714 (branch_nz_normal): Likewise.
6715 (branch_nz_invert): Likewise.
6716 (call_internal_short): Add e3v5 register-indirect JARL support.
6717 (call_internal_long): Likewise.
6718 (call_value_internal_short): Likewise.
6719 (call_value_internal_long): Likewise.
6720 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6721 (mloop): New option.
6722 * config.gcc: Add support for configuring v840e3v5 target.
6723 * doc/invoke.texi: Document new v850 specific command line options.
6725 2013-01-31 Paul Koning <ni1d@arrl.net>
6729 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6730 children if parent is a class.
6731 (prune_unused_types_prune): Don't add DW_AT_declaration.
6733 2013-01-31 Richard Biener <rguenther@suse.de>
6735 PR tree-optimization/56157
6736 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6737 match up operand with SLP child.
6739 2013-01-31 Jason Merrill <jason@redhat.com>
6742 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6743 parameters the first time.
6744 (gen_scheduled_generic_parms_dies): Check completeness here.
6746 2013-01-31 Richard Biener <rguenther@suse.de>
6749 * common.opt (faggressive-loop-optimizations): New flag,
6751 * doc/invoke.texi (faggressive-loop-optimizations): Document.
6752 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6753 infer_loop_bounds_from_undefined by it.
6755 2013-01-31 Richard Biener <rguenther@suse.de>
6757 PR tree-optimization/56150
6758 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6759 visit virtual operands.
6760 (find_uses_to_rename_bb): Likewise.
6762 2013-01-31 Richard Biener <rguenther@suse.de>
6764 PR tree-optimization/56150
6765 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6766 mixed store non-store stmts.
6768 2013-01-30 Jakub Jelinek <jakub@redhat.com>
6771 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6772 LIBASAN_EARLY_SPEC is defined.
6773 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6774 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6776 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6779 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6780 invalid args instead of ICEing on it.
6781 (ix86_valid_target_attribute_tree): Return error_mark_node if
6782 ix86_valid_target_attribute_inner_p failed.
6783 (ix86_valid_target_attribute_p): Return false only if
6784 ix86_valid_target_attribute_tree returned error_mark_node. Allow
6785 target("default") attribute.
6786 (sorted_attr_string): Change argument from const char * to tree,
6787 merge in all target attribute arguments rather than just one.
6788 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
6789 instead of free. Avoid using strcat.
6790 (ix86_mangle_function_version_assembler_name): Mangle
6791 target("default") as if no target attribute is present. Adjust
6792 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
6793 instead of xmalloc and XDELETEVEC instead of free.
6794 (ix86_function_versions): Don't return true if one of the decls
6795 doesn't have target attribute. If they don't and one of the decls
6796 is DECL_FUNCTION_VERSIONED, report an error. Adjust
6797 sorted_attr_string caller. Use XDELETEVEC instead of free.
6798 (ix86_supports_function_versions): Remove.
6799 (make_name): Fix up formatting.
6800 (make_dispatcher_decl): Remove resolver_name and its initialization.
6801 Avoid leaking memory.
6802 (is_function_default_version): Return true if there is
6803 target("default") attribute rather than no target attribute at all.
6804 (make_resolver_func): Avoid leaking memory.
6805 (ix86_generate_version_dispatcher_body): Likewise.
6806 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6807 * target.def (supports_function_versions): Remove.
6808 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6809 * doc/tm.texi: Regenerated.
6811 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
6813 PR rtl-optimization/56144
6814 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6815 for values with side effects.
6817 2013-01-30 Richard Biener <rguenther@suse.de>
6819 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6820 (sparseset_pop): Likewise.
6821 * cfganal.c (compute_idf): Likewise. Increase work-stack size
6822 to be able to use quick_push in the worker loop.
6824 2013-01-30 Marek Polacek <polacek@redhat.com>
6826 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6828 2013-01-30 Richard Biener <rguenther@suse.de>
6831 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
6833 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
6835 PR tree-optimization/56064
6836 * fixed-value.c (fixed_from_double_int): New function.
6837 * fixed-value.h (fixed_from_double_int): New prototype.
6838 (const_fixed_from_double_int): New static inline function.
6839 * fold-const.c (native_interpret_fixed): New static function.
6840 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6841 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6842 (native_encode_fixed): New static function.
6843 (native_encode_expr) <FIXED_CST>: Use it.
6844 (native_interpret_int): Move double_int worker code to...
6845 * double-int.c (double_int::from_buffer): ...this new static method.
6846 * double-int.h (double_int::from_buffer): Prototype it.
6848 2013-01-30 Richard Biener <rguenther@suse.de>
6850 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6851 New pointer-map and obstack.
6852 (init_alias_vars): Allocate pointer-map and obstack.
6853 (delete_points_to_sets): Free them.
6854 (find_what_var_points_to): Cache result.
6855 (find_what_p_points_to): Adjust for changed interface of
6856 find_what_var_points_to.
6857 (compute_points_to_sets): Likewise.
6858 (ipa_pta_execute): Likewise.
6860 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6862 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6863 * configure: Regenerate.
6864 * config.in: Regenerate.
6865 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6866 #nobits/#progbits if supported.
6868 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
6871 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6872 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6873 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6875 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6877 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6878 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
6880 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6882 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6883 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6885 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6887 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6889 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6890 * config/arm/cortex-a7.md: New bypasses using
6891 arm_mac_accumulator_is_result.
6893 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6895 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
6896 (cortex_a7_neon_mla): Likewise.
6897 (cortex_a7_fpfmad): New reservation.
6898 (cortex_a7_fpmacs): Use ffmas and update required units.
6899 (cortex_a7_fpmuld): Update required units and latency.
6900 (cortex_a7_fpmacd): Likewise.
6901 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6902 (cortex_a7_neon). Likewise.
6903 (bypass) Update participating units.
6905 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
6907 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6908 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6910 * config/arm/vfp11.md (vfp_farith): Use ffmas.
6911 (vfp_fmul): Use ffmad.
6912 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6913 (cortex_r4_fmacd): Use ffmad.
6914 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6915 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
6916 (cortex_a9_fmacd): Use ffmad.
6917 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6918 (cortex_a8_vfp_macd): Use ffmad.
6919 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6920 (cortex_a5_fpmacd): Use ffmad.
6921 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6922 (cortex_a15_vfp_macd): Use ffmad.
6923 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6925 2013-01-29 Jason Merrill <jason@redhat.com>
6928 * varasm.c (default_assemble_visibility): Don't warn about
6929 visibility on artificial decls.
6931 2013-01-29 Richard Biener <rguenther@suse.de>
6933 PR tree-optimization/56113
6934 * tree-ssa-structalias.c (equiv_class_lookup): Also return
6936 (label_visit): Free duplicate bitmaps and record the leader instead.
6937 (perform_var_substitution): Adjust.
6939 2013-01-29 Richard Biener <rguenther@suse.de>
6941 PR tree-optimization/55270
6942 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
6943 the CFG, schedule loops for fixup.
6945 2013-01-29 Nick Clifton <nickc@redhat.com>
6947 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
6950 2013-01-28 Leif Ekblad <leif@rdos.net>
6952 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
6953 * config/i386/i386.h (TARGET_RDOS): New macro.
6954 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
6955 * config/i386/i386.c (ix86_option_override_internal): For 64bit
6956 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
6957 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
6958 DEFAULT_LARGE_SECTION_THRESHOLD.
6959 * config/i386/i386.md (R14_REG, R15_REG): New constants.
6960 * config/i386/rdos.h: New file.
6961 * config/i386/rdos64.h: New file.
6963 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
6966 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
6969 2013-01-28 Jakub Jelinek <jakub@redhat.com>
6971 PR rtl-optimization/56117
6972 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
6973 call cselib_lookup_from_insn on the MEM before calling
6974 add_insn_mem_dependence.
6976 2013-01-28 Richard Biener <rguenther@suse.de>
6978 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
6979 to a stmt that didn't have one.
6980 (copy_phis_for_bb): Likewise for PHI arguments.
6981 (copy_debug_stmt): Likewise for debug stmts.
6983 2013-01-28 Richard Biener <rguenther@suse.de>
6985 PR tree-optimization/56034
6986 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
6987 (partition_builtin_p): Adjust.
6988 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
6989 it is the last partition.
6990 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
6991 up the vertex for the definition.
6992 (classify_partition): Classify whether a partition is a
6993 PKIND_REDUCTION, thus has uses outside of the loop.
6994 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
6995 Merge all PKIND_REDUCTION partitions into the last partition.
6996 (tree_loop_distribution): Seed partitions from reductions as well.
6998 2013-01-28 Jakub Jelinek <jakub@redhat.com>
7000 PR tree-optimization/56125
7001 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7002 pow(x,c) into sqrt(x) * powi(x, n/2) or
7003 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7004 optimizing for size.
7005 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7006 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7009 PR tree-optimization/56094
7010 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7011 to UNKNOWN_LOCATION while gimplifying expr.
7013 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
7016 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7017 operand 0 in movabs insn template for -masm=intel asm alternative.
7018 (*movabs<mode>_2): Ditto for operand 1.
7020 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
7023 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7026 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7028 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7031 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7033 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7034 Undef to avoid warning.
7036 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7038 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7039 * configure: Regenerate.
7041 2013-01-25 Jakub Jelinek <jakub@redhat.com>
7043 PR tree-optimization/56098
7044 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7045 for stmts with volatile ops.
7046 (cond_store_replacement): Don't optimize if assign has volatile ops.
7047 (cond_if_else_store_replacement_1): Don't optimize if either
7048 then_assign or else_assign have volatile ops.
7049 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7052 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7054 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7056 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7058 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7059 missing ':' in asm example.
7061 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
7063 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7064 entries into lane and laneq entries.
7065 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7066 Remove AdvSIMD scalar modes.
7067 (aarch64_sq<r>dmulh_laneq<mode>): New.
7068 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7070 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7071 builtin implementations to relfect changes in RTL in aarch64-simd.md.
7072 * config/aarch64/iterators.md (VCOND): New.
7075 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
7078 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7079 Add NULL LIBNAME argument to existing definitions.
7080 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7081 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7082 * config/avr/avr.c (DEF_BUILTIN): Same.
7083 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7084 (avr_expand_builtin): Expand to a vanilla call if a libgcc
7085 implementation is available (DECL_ASSEMBLER_NAME is set).
7086 (avr_fold_absfx): New static function.
7087 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7088 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7089 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7091 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7092 (abshk, absk, abslk, absllk): Provide as static inline functions.
7094 2013-01-25 Marek Polacek <polacek@redhat.com>
7096 PR tree-optimization/56035
7097 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7099 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
7101 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7102 (*movtf_internal_rex64): Add (!o,C) alternative
7103 (*movxf_internal_rex64): Ditto.
7104 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7106 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
7108 * doc/invoke.texi: fix typo.
7109 * doc/objc.texi: fix typo.
7111 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
7113 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7114 for the first two alternatives.
7116 2013-01-24 Diego Novillo <dnovillo@google.com>
7118 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
7119 (ggc-zone.o): Remove.
7120 * configure.ac: Remove option --with-gc.
7121 * configure: Re-generate.
7122 * doc/install.texi: Remove documentation for --with-gc.
7123 * gengtype.c (write_enum_defn): Remove. Update all users.
7124 (write_Types_process_field): Remove generation of gt_e_* argument.
7125 (output_type_enum): Remove. Update all users.
7126 (write_enum_defn): Remove. Update all users.
7127 (enum alloc_zone): Remove. Update all users.
7128 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7129 * ggc-common.c (ggc_splay_alloc): Remove first argument.
7131 (struct ptr_data): Remove field TYPE. Update all users.
7132 (gt_pch_note_object): Remove argument TYPE. Update all users.
7133 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7135 * ggc-none.c (ggc_alloc_typed_stat): Remove.
7136 (struct alloc_zone): Remove.
7137 (ggc_internal_alloc_zone_stat): Remove.
7138 (ggc_internal_cleared_alloc_zone_stat): Remove.
7139 * ggc-page.c (ggc_alloc_typed_stat): Remove.
7140 (ggc_pch_count_object): Remove last argument. Update all users.
7141 (ggc_pch_alloc_object): Remove last argument. Update all users.
7142 (struct alloc_zone): Remove.
7143 * ggc-zone.c: Remove.
7144 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
7145 (struct alloc_zone): Remove.
7146 (ggc_alloc_typed_stat): Remove.
7147 (ggc_alloc_typed): Remove.
7148 (ggc_splay_alloc): Remove first argument.
7149 (rtl_zone): Remove. Update all users.
7150 (tree_zone): Remove. Update all users.
7151 (tree_id_zone): Remove. Update all users.
7152 (ggc_internal_zone_alloc_stat): Remove. Update all users.
7153 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
7154 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
7155 * tree-ssanames.c: Remove references to zone allocator in comments.
7157 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
7159 * config/avr/avr.c (avr_out_fract): Make register numbers that
7160 might be outside of source operand signed.
7162 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
7164 * config/i386/constraints.md (Yf): New constraint.
7165 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7166 of f constraint to conditionaly disable x87 register preferences.
7167 (*movdf_internal): Ditto.
7168 (*movsf_internal): Ditto.
7170 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
7173 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7174 that have operands with impossible constraints.
7175 Add a FIXME for a speed-up opportunity.
7176 * lra-constraints.c (process_alt_operands): Verify that a class
7177 selected from constraints on asms is valid for the operand mode.
7178 (curr_insn_transform): Remove incorrect comment.
7180 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
7182 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7183 TOC operand is a valid symbol ref in the constant pool.
7185 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
7187 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7189 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
7192 * config/avr/stdfix.h: New file.
7193 * t-avr (stdfix-gcc.h): New rule to build it.
7194 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7196 2013-01-23 Kostya Serebryany <kcc@google.com>
7198 * config/darwin.h: remove dependency on
7199 CoreFoundation (asan on Mac OS).
7201 2013-01-23 Jakub Jelinek <jakub@redhat.com>
7204 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7205 instead of cmpdi_operand for first comparison operand.
7206 Don't assert that comparison operands aren't both constants.
7208 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7210 * doc/install.texi (Downloading the Source): Update references to
7211 downloading separate components.
7213 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
7215 * doc/extend.texi (__int128): Improve grammar.
7217 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
7220 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7221 alternative to (o,r).
7222 (*movdi_internal_rex64): Remove (!o,n) alternative.
7223 (DImode immediate->memory splitter): Remove.
7224 (DImode immediate->memory peephole2): Remove.
7225 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7226 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7227 alternative to (!o,*r).
7228 (*movtf_internal_sse): New pattern.
7229 (*movxf_internal_rex64): New pattern.
7230 (*movxf_internal): Disable for TARGET_64BIT.
7231 (*movdf_internal_rex64): Remove (!o,F) alternative.
7233 2013-01-22 Jakub Jelinek <jakub@redhat.com>
7236 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7237 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7238 * tree-vect-loop-manip.c (find_loop_location): Also ignore
7239 stmt locations where LOCATION_LOCUS of the stmt location is
7240 UNKNOWN_LOCATION or BUILTINS_LOCATION.
7243 * config/i386/i386.md (UNSPEC_STOS): New.
7244 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7245 *strsetqi_1): Add UNSPEC_STOS.
7247 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
7250 * doc/invoke.texi: Remove left over -Wsynth example.
7252 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7254 PR tree-optimization/56051
7255 * fold-const.c (fold_binary_loc): Don't fold
7256 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7257 a narrowing conversion, or widening conversion from signed
7260 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7262 PR rtl-optimization/56023
7263 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7264 dependent on debug instruction.
7266 2013-01-21 Martin Jambor <mjambor@suse.cz>
7269 * function.c (allocate_struct_function): Call
7270 invoke_set_current_function_hook earlier.
7272 2013-01-21 Jakub Jelinek <jakub@redhat.com>
7274 * reload1.c (init_reload): Only initialize reload_obstack
7275 during the first call.
7277 2013-01-21 Marek Polacek <polacek@redhat.com>
7279 * cfgloop.c (verify_loop_structure): Fix up grammar.
7281 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
7283 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7284 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7286 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7289 * config/arm/marvell-pj4.md: Update copyright year.
7290 Fix up use of alu to alu_reg and simple_alu_imm.
7292 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
7294 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7296 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
7299 * lra-constraints.c (curr_insn_transform): Don't reuse original
7300 insn for secondary memory move when memory mode should be different.
7302 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7304 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7305 atomic_storedi_1): New patterns.
7307 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7309 btver2 pipeline descriptions.
7310 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7312 * config/i386/i386.md (btver2_decode): New type attributes.
7313 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7315 * config/i386/btver2.md: New file describing btver2 pipelines.
7317 2013-01-19 Andrew Pinski <apinski@cavium.com>
7319 PR tree-optimization/52631
7320 * tree-ssa-sccvn (visit_use): Before looking up the original
7321 statement, try looking up the simplified expression.
7323 2013-01-19 Anthony Green <green@moxielogic.com>
7325 * config/moxie/moxie.c (moxie_expand_prologue): Set
7326 current_function_static_stack_size.
7328 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7330 PR tree-optimization/56029
7331 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7332 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7334 2013-01-18 Sharad Singhai <singhai@google.com>
7336 PR tree-optimization/55995
7337 * dumpfile.c (dump_loc): Print location only if available.
7338 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7340 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
7343 * lra-constraints.c (curr_insn_transform): Reuse original insn for
7344 secondary memory move.
7345 (inherit_reload_reg): Use rclass instead of cl for
7346 check_secondary_memory_needed_p.
7348 2013-01-18 Jakub Jelinek <jakub@redhat.com>
7351 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7352 the case where writing real complex part of target modifies op1.
7354 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
7356 * config/aarch64/aarch64-simd.md
7357 (aarch64_vcond_internal<mode>): Handle unordered cases.
7358 * config/aarch64/iterators.md (v_cmp_result): New.
7360 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
7361 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7363 * config/arm/marvell-pj4.md: New file.
7364 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7365 * config/arm/arm.md (generic_sched): Add marvell_pj4.
7366 (generic_vfp): Likewise.
7367 * config/arm/arm-cores.def: Add marvell-pj4.
7368 * config/arm/arm-tune.md: Regenerate.
7369 * config/arm/arm-tables.opt: Regenerate.
7370 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7371 * doc/invoke.texi: Document marvell-pj4.
7373 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
7375 * config/aarch64/arm_neon.h: Map scalar types to standard types.
7377 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7382 * var-tracking.c (negative_power_of_two_p): New.
7383 (global_get_addr_cache, local_get_addr_cache): New.
7384 (get_addr_from_global_cache, get_addr_from_local_cache): New.
7385 (vt_canonicalize_addr): Rewrite using the above. Adjust the
7387 (vt_stack_offset_p): Remove.
7388 (vt_canon_true_dep): Always canonicalize loc's address.
7389 (clobber_overlapping_mems): Make sure we have a MEM.
7390 (local_get_addr_clear_given_value): New.
7391 (val_reset): Clear local cached entries.
7392 (compute_bb_dataflow): Create and release the local cache.
7393 Disable duplicate MEMs clobbering.
7394 (emit_notes_in_bb): Clobber MEMs likewise.
7395 (vt_emit_notes): Create and release the local cache.
7396 (vt_initialize, vt_finalize): Create and release the global
7397 cache, respectively.
7398 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7400 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7403 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7404 not found in the symtab.
7406 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
7409 PR rtl-optimization/55547
7410 PR rtl-optimization/53827
7413 * alias.c (offset_overlap_p): New, factored out of...
7414 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
7415 the conservative special case for symbolic constants. Don't
7416 adjust zero sizes on alignment.
7418 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
7420 PR rtl-optimization/52573
7421 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7422 REG_UNUSED for the same register.
7424 2013-01-17 Richard Biener <rguenther@suse.de>
7425 Marek Polacek <polacek@redhat.com>
7427 PR rtl-optimization/55833
7428 * loop-unswitch.c (unswitch_loops): Move loop verification...
7429 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
7430 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7431 Set it to true when we're removing a loop from hierarchy tree in
7432 an irreducible region.
7433 (fix_bb_placements): Adjust caller.
7434 (fix_loop_placements): Likewise.
7436 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
7438 * config/avr/builtins.def (DEF_BUILTIN): Factor out
7439 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7440 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7441 Remove ID. Adjust comments.
7442 * config/avr/avr-c.c (avr_builtin_name): Remove.
7443 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7444 * config/avr/avr.c (avr_tolower): New static function.
7445 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
7446 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7447 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7450 2013-01-17 Jan Hubicka <jh@suse.cz>
7452 PR tree-optimization/55273
7453 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7455 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
7458 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7459 store through atomic_store<mode>_1.
7460 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7462 2013-01-17 Martin Jambor <mjambor@suse.cz>
7464 PR tree-optimizations/55264
7465 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7466 for virtual methods.
7467 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7468 virtual methods before inlining is over.
7469 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7471 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7474 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
7476 PR rtl-optimization/56005
7477 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7478 pending reads for prefetch.
7480 2013-01-16 Ian Bolton <ian.bolton@arm.com>
7482 * config/aarch64/aarch64.md
7483 (*cstoresi_neg_uxtw): New pattern.
7484 (*cmovsi_insn_uxtw): New pattern.
7485 (*<optab>si3_uxtw): New pattern.
7486 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7487 (*<optab>si3_insn_uxtw): New pattern.
7488 (*bswapsi2_uxtw): New pattern.
7490 2013-01-16 Richard Biener <rguenther@suse.de>
7492 * tree-inline.c (tree_function_versioning): Remove set but
7493 never used variable.
7495 2013-01-16 Richard Biener <rguenther@suse.de>
7497 PR tree-optimization/55964
7498 * tree-flow.h (rename_variables_in_loop): Remove.
7499 (rename_variables_in_bb): Likewise.
7500 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7501 (copy_loop_before): Adjust and delete update-ssa status.
7502 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7503 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
7504 (rename_variables_in_loop): Remove.
7505 (slpeel_update_phis_for_duplicate_loop): Likewise.
7506 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7507 use available cfg machinery instead of duplicating it.
7508 Update PHI nodes and perform poor-mans SSA update here.
7509 (slpeel_tree_peel_loop_to_edge): Adjust.
7511 2013-01-16 Richard Biener <rguenther@suse.de>
7513 PR tree-optimization/54767
7514 PR tree-optimization/53465
7515 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7516 (vrp_visit_phi_node): For PHI arguments coming via backedges
7517 drop all symbolical range information.
7518 (execute_vrp): Compute backedges.
7520 2013-01-16 Richard Biener <rguenther@suse.de>
7522 * doc/install.texi: Update CLooG and ISL requirements to
7525 2013-01-16 Christian Bruel <christian.bruel@st.com>
7528 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7529 (broken_move): Handle UNSPECV_SP_SWITCH_B.
7530 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7532 2013-01-16 DJ Delorie <dj@redhat.com>
7534 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7535 (UNSPECV_SP_SWITCH_E): New.
7536 (sp_switch_1): Change to an unspec.
7537 (sp_switch_2): Change to an unspec. Don't use post-inc when we
7540 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
7542 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7543 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7544 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7545 (expand_mem_thread_fence): Ditto.
7546 (expand_mem_signal_fence): Ditto.
7547 (expand_atomic_load): Ditto.
7548 (expand_atomic_store): Ditto.
7550 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
7552 PR rtl-optimization/55547
7553 PR rtl-optimization/53827
7556 * alias.c (memrefs_conflict_p): Set sizes to negative after
7559 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7562 * function.c (thread_prologue_and_epilogue_insns): Always
7563 add crtl->drap_reg to set_up_by_prologue.set, even if
7564 stack_realign_drap is false.
7566 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7568 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7569 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7570 *call): Fix indention.
7572 2013-01-15 Tom de Vries <tom@codesourcery.com>
7575 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7578 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
7580 PR rtl-optimization/55153
7581 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7583 2013-01-15 Martin Jambor <mjambor@suse.cz>
7585 PR tree-optimization/55920
7586 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
7587 accesses as grp_to_be_debug_replaced.
7589 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7591 PR tree-optimization/55920
7592 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
7593 there is non-useless type conversion needed from debug rhs to lhs,
7594 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
7596 2013-01-15 Joseph Myers <joseph@codesourcery.com>
7597 Mikael Pettersson <mikpe@it.uu.se>
7600 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
7602 (ASM_OUTPUT_CASE_LABEL): Remove.
7603 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
7604 * final.c (shorten_branches): Update alignment of labels before
7605 jump tables if CASE_VECTOR_SHORTEN_MODE.
7607 2013-01-15 Richard Biener <rguenther@suse.de>
7610 * system.h: Do not include gmp.h for building host tools.
7612 2013-01-15 Richard Biener <rguenther@suse.de>
7615 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
7616 account for bitpos when computing alignment.
7618 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
7620 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7621 (ix86_target_macros_internal): Likewise.
7623 * config/i386/i386.c (m_CORE2I7): Removed.
7624 (m_CORE_HASWELL): New macro.
7625 (m_CORE_ALL): Likewise.
7626 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7627 (initial_ix86_arch_features): Likewise.
7628 (processor_target_table): Initializations for Core avx2.
7629 (cpu_names): New names "core-avx2".
7630 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7631 PROCESSOR_CORE_HASWELL.
7632 (ix86_issue_rate): New case.
7633 (ia32_multipass_dfa_lookahead): Likewise.
7634 (ix86_sched_init_global): Likewise.
7636 * config/i386/i386.h (TARGET_HASWELL): New macro.
7637 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7638 (processor_type): New PROCESSOR_HASWELL.
7640 2013-01-15 Jakub Jelinek <jakub@redhat.com>
7642 PR tree-optimization/55955
7643 * tree-vect-loop.c (vectorizable_reduction): Give up early on
7644 *SHIFT_EXPR and *ROTATE_EXPR codes.
7646 PR tree-optimization/48766
7647 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7648 -ftrapv disable -fwrapv.
7650 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7653 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7654 etc. to 1 and not to __flash.
7655 Use LL suffix for __INT24_MAX__ with -mint8.
7656 Use ULL suffix for __UINT24_MAX__ with -mint8.
7658 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7660 * config/avr/avr-arch.h
7661 (struct base_arch_s): Use typedef avr_arch_t instead.
7662 (struct arch_info_s): Use typedef avr_arch_info_t instead.
7663 (struct mcu_type_s): Use typedef avr_mcu_t instead.
7664 * config/avr/avr.c: Same.
7665 * config/avr/avr-devices.c: Same.
7666 * config/avr/driver-avr.c: Same.
7667 * config/avr/gen-avr-mmcu-texi.c: Same.
7668 * config/avr/avr-mcus.def: Adjust comment.
7670 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
7672 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7673 * config/aarch64/iterators.md (VALLDI): New.
7675 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
7676 Andi Kleen <ak@linux.intel.com>
7679 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7680 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7683 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7685 * config/avr/avr-stdint.h: Remove trailing blanks.
7686 * config/avr/avr-log.h: Same.
7687 * config/avr/avr-arch.h: Same.
7688 * config/avr/avr-devices.c: Same.
7689 * config/avr/avr-dimode.md: Same.
7690 * config/avr/predicates.md: Same.
7691 * config/avr/avr-c.c: Same. And fix typo.
7693 * config/avr/avr-protos.h: Same. And:
7694 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7695 (init_cumulative_args): Rename to avr_init_cumulative_args.
7696 (expand_prologue): Rename to avr_expand_prologue.
7697 (expand_epilogue): Rename to avr_expand_epilogue.
7698 (adjust_insn_length): Rename to avr_adjust_insn_length.
7699 (notice_update_cc): Rename to avr_notice_update_cc.
7700 (final_prescan_insn): Rename to avr_final_prescan_insn.
7701 * config/avr/avr.c: Same.
7702 * config/avr/avr.h: Same.
7703 * config/avr/avr.md: Remove trailing blanks.
7704 (prologue): Use avr_expand_prologue.
7705 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7707 2013-01-14 Richard Biener <rguenther@suse.de>
7709 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7710 verify_location, collect_subblocks): New functions.
7711 (verify_gimple_in_cfg): Verify that locations only reference
7712 BLOCKs in the functions BLOCK tree.
7714 2013-01-14 Richard Biener <rguenther@suse.de>
7716 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7718 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7720 (insert_out_of_ssa_copy_on_edge): Likewise.
7721 (rewrite_close_phi_out_of_ssa): Likewise.
7722 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7724 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7725 propagated constants.
7726 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7729 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
7731 * config/avr/avr-modes.def: Add GPL copyright notice.
7733 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
7735 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7736 MEMMODEL_MASK to determine memory model.
7737 (atomic_store<mode>): Ditto from operands[2].
7738 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7740 2013-01-13 Jakub Jelinek <jakub@redhat.com>
7743 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7744 (fold_gimple_assign): Don't call unshare_expr here.
7745 (fold_ctor_reference): Call unshare_expr.
7747 2013-01-13 Terry Guo <terry.guo@arm.com>
7749 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7750 * doc/fragments.texi: Document MULTILIB_REUSE.
7751 * gcc.c (multilib_reuse): New internal spec.
7752 (set_multilib_dir): Also search multilib from multilib_reuse.
7753 * genmultilib (tmpmultilib3): Refactor code.
7754 (tmpmultilib4): Ditto.
7755 (multilib_reuse): New multilib argument.
7757 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
7759 * Makefile.in: Update copyright.
7761 2013-01-12 Tom de Vries <tom@codesourcery.com>
7764 * calls.c (expand_call): Check if arg_nr is valid.
7766 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7768 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7769 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7770 documentation. Add missing '__' in front of
7771 __builtin_ia32_packssdw256.
7773 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7776 * config/s390/s390.c (s390_preferred_reload_class): Do not return
7777 NO_REGS for larl operands.
7778 (s390_reload_larl_operand): Use s390_load_address instead of
7781 2013-01-11 Richard Biener <rguenther@suse.de>
7783 * tree-cfg.c (verify_node_sharing_1): Split out from ...
7784 (verify_node_sharing): ... here.
7785 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7787 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
7789 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7790 Substitute TREECHECKING.
7791 * configure: Regenerate.
7792 * Makefile.in (TREECHECKING): New.
7794 2013-01-11 Richard Guenther <rguenther@suse.de>
7796 PR tree-optimization/44061
7797 * tree-vrp.c (extract_range_basic): Compute zero as
7798 value-range for __builtin_constant_p of function parameters.
7800 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
7802 Update copyright years.
7804 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
7806 PR rtl-optimization/55672
7807 * lra-eliminations.c (mark_not_eliminable): Permit addition with
7808 const to be eliminable.
7810 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
7812 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7813 * configure: Regenerate.
7815 2013-01-10 Richard Biener <rguenther@suse.de>
7817 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
7819 2013-01-10 Richard Biener <rguenther@suse.de>
7822 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7823 locations for virtual PHI arguments.
7824 (rewrite_update_phi_arguments): Likewise.
7826 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
7828 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7831 2013-01-10 Jakub Jelinek <jakub@redhat.com>
7833 PR tree-optimization/55921
7834 * tree-complex.c (expand_complex_asm): New function.
7835 (expand_complex_operations_1): Call it for GIMPLE_ASM.
7837 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7840 * config/s390/s390.c (s390_symref_operand_p)
7841 (s390_loadrelative_operand_p): Merge the two functions.
7842 (s390_check_qrst_address, print_operand_address): Add parameters
7843 to s390_loadrelative_operand_p invokation.
7844 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7845 (s390_reload_larl_operand, s390_secondary_reload): Use
7846 s390_loadrelative_operand_p instead of s390_symref_operand_p.
7847 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7849 2013-01-09 Mike Stump <mikestump@comcast.net>
7851 * dse.c (record_store): Remove unnecessary assert.
7853 2013-01-09 Jan Hubicka <jh@suse.cz>
7855 PR tree-optimization/55569
7856 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7857 * cfgloop.h (scale_loop_profile): Likewise.
7859 2013-01-09 Jan Hubicka <jh@suse.cz>
7862 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7864 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7866 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
7869 * expr.h (maybe_emit_group_store): Declare.
7870 * expr.c (maybe_emit_group_store): New function.
7871 * builtins.c (expand_builtin_int_roundingfn): Call it.
7872 (expand_builtin_int_roundingfn_2): Likewise.
7874 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
7876 PR rtl-optimization/55829
7877 * lra-constraints.c (match_reload): Add code for absent output.
7878 (curr_insn_transform): Add code for reloads of matched inputs
7881 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
7883 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7884 attribute of movddup insn to DF.
7885 (*vec_interleave_lowv2df): Ditto.
7886 (vec_dupv2df): Ditto.
7888 2013-01-09 Jan Hubicka <jh@suse.cz>
7890 PR tree-optimiation/55875
7891 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7892 EVERY_ITERATION parameter.
7893 (number_of_iterations_exit): Check if exit is executed every iteration.
7894 (idx_infer_loop_bounds): Similarly here.
7895 (n_of_executions_at_most): Simplify
7896 to only test for cases where statement is dominated by the
7897 particular bound; handle correctly the "postdominance" test.
7898 (scev_probably_wraps_p): Use max loop iterations info
7899 as a global bound first.
7901 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
7902 Nick Clifton <nickc@redhat.com>
7904 * config/v850/v850.md (cbranchsf4): New pattern.
7905 (cstoresf4): New pattern.
7906 (cbranchdf4): New pattern.
7907 (cstoredf4): New pattern.
7908 (movsicc): Disallow floating point comparisons.
7909 (cmpsf_le_insn): Fix order of operators.
7910 (cmpsf_lt_insn): Likewise.
7911 (cmpsf_eq_insn): Likewise.
7912 (cmpdf_le_insn): Likewise.
7913 (cmpdf_lt_insn): Likewise.
7914 (cmpdf_eq_insn): Likewise.
7915 (cmpsf_ge_insn): Use LE comparison.
7916 (cmpdf_ge_insn): Likewise.
7917 (cmpsf_gt_insn): Use LT comparison.
7918 (cmpdf_gt_insn): Likewise.
7919 (cmpsf_ne_insn): Delete pattern.
7920 (cmpdf_ne_insn): Delete pattern.
7921 * config/v850/v850.c (v850_gen_float_compare): Use
7922 gen_cmpdf_eq_insn for NE comparison.
7923 (v850_float_z_comparison_operator)
7924 (v850_float_nz_comparison_operator): Move from here ...
7925 * config/v850/predicates.md: ... to here. Move GT and GE
7926 comparisons into v850_float_z_comparison_operator.
7927 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
7929 (v850_float_nz_comparison_operator): Likewise.
7931 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7933 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
7934 with calls to gen_insvsi/gen_insvdi.
7936 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7938 * config/i386/i386.c (initial_ix86_tune_features): Set up
7939 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
7941 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
7942 Jakub Jelinek <jakub@redhat.com>
7944 PR tree-optimization/48189
7945 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
7946 If nitercst is 0, don't predict the exit edge.
7948 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7950 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
7951 in asm_fprintf with reg_names.
7952 (aarch64_print_operand_address): Likewise.
7953 (aarch64_return_addr): Likewise.
7954 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
7956 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7958 * config/pa/pa.h (VAL_U6_BITS_P): Define.
7959 (INT_U6_BITS): Likewise.
7960 * config/pa/predicates.md (uint6_operand): New predicate.
7961 (shift5_operand, shift6_operand): Likewise.
7962 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
7964 (lshrdi3): Use shift6_operand.
7965 (shrpsi4, shrpdi4): New insn patterns.
7966 (extzv): Delete expander.
7967 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
7968 predicates in unamed zero extract patterns. Tighten common constraint.
7969 (extv): Delete expander.
7970 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
7971 predicates in unamed sign extract patterns. Tighten common constraint.
7972 (insv): Delete expander.
7973 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
7974 predicates in unamed insert patterns. Tighten common constraint.
7975 Change uint32_operand predicate to uint6_operand predicate in unamed
7976 DImode pattern to insert constant values of type 1...1xxxx.
7978 2013-01-04 Jan Hubicka <jh@suse.cz>
7980 PR tree-optimization/55823
7981 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
7984 2013-01-08 Jakub Jelinek <jakub@redhat.com>
7985 Uros Bizjak <ubizjak@gmail.com>
7987 PR rtl-optimization/55845
7988 * df-problems.c (can_move_insns_across): Stop scanning at
7989 volatile_insn_p source instruction or give up if
7990 across_from .. across_to range contains any volatile_insn_p
7993 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
7995 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
7996 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
7998 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7999 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8001 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8004 * asan.c (asan_clear_shadow): New function.
8005 (asan_emit_stack_protection): Use it.
8007 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
8009 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8010 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8011 with tab instead of space.
8013 2013-01-08 Nick Clifton <nickc@redhat.com>
8015 * config/rl78/rl78.c (rl78_expand_prologue): Always select
8016 register bank 0 at the start of an interrupt handler.
8017 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8020 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8022 * config/aarch64/aarch64-simd.md
8023 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8024 (aarch64_simd_bsl): Likewise.
8025 (aarch64_vcond_internal<mode>): Likewise.
8026 (vcond<mode><mode>): Likewise.
8027 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8028 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8030 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
8032 * config/aarch64/aarch64-builtins.c
8033 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8035 2013-01-08 Martin Jambor <mjambor@suse.cz>
8038 * tree-sra.c (analyze_access_subtree): Return true also after
8039 potentially creating a debug-only replacement.
8041 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8044 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8046 PR tree-optimization/54120
8047 * tree-vrp.c (range_fits_type_p): Don't allow
8048 src_precision < precision from signed vr to unsigned_p
8049 if vr->min or vr->max is negative.
8050 (simplify_float_conversion_using_ranges): Test can_float_p
8051 against CODE_FOR_nothing.
8053 2013-01-08 Jakub Jelinek <jakub@redhat.com>
8054 Richard Biener <rguenther@suse.de>
8057 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8058 types instead of just INTEGER_TYPE types.
8060 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
8062 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8065 2013-01-07 Steve Ellcey <sellcey@mips.com>
8068 * config/mips/mips.opt: Change mad to mmad to match documentation.
8070 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8073 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8076 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8079 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8080 (avr_addrspace_t): Add .section_name field.
8081 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8083 (avr_addrspace): Same. Initialize .section_name. Remove last
8084 NULL entry. Put __memx into .progmemx.data.
8085 (progmem_section_prefix): Remove.
8086 (avr_asm_init_sections): No need to initialize progmem_section.
8087 (avr_asm_named_section): Use avr_addrspace[].section_name to get
8088 section name prefix.
8089 (avr_asm_select_section): Ditto. And use get_unnamed_section to
8090 retrieve the progmem section.
8091 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8092 boundary to run over avr_addrspace[].
8093 (avr_register_target_pragmas): Ditto.
8095 2013-01-06 Jakub Jelinek <jakub@redhat.com>
8097 * varasm.c (output_constant_def_contents): For asan_protect_global
8098 protected strings, adjust DECL_ALIGN if needed, before testing for
8100 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8101 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
8103 (output_object_block): For asan protected decls, emit asan padding
8104 after their contents.
8105 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8106 (asan_finish_file): Test it here instead.
8108 2013-01-07 Nick Clifton <nickc@redhat.com>
8109 Matthias Klose <doko@debian.org>
8110 Doug Kwan <dougkwan@google.com>
8111 H.J. Lu <hongjiu.lu@intel.com>
8114 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8116 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8118 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8120 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8122 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8124 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8127 * doc/install.texi (Cross-Compiler-Specific Options): Document
8130 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
8132 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8133 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8134 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8135 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8136 vqmovun_high_s64): Fix source operand number and update copyright.
8138 2013-01-07 Richard Biener <rguenther@suse.de>
8141 * gimple.h (gimple_call_builtin_p): New overload.
8142 * gimple.c (validate_call): New function.
8143 (gimple_call_builtin_p): Likewise.
8144 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8145 Use gimple_call_builtin_p.
8146 (find_func_clobbers): Likewise.
8147 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8148 (strlen_optimize_stmt): Likewise.
8150 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8152 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8153 (vld1q_dup_*): Likewise.
8155 (vld1q_*): Likewise.
8156 (vld1_lane_*): Likewise.
8157 (vld1q_lane_*): Likewise.
8159 2013-01-07 Richard Biener <rguenther@suse.de>
8161 * lto-streamer.h (LTO_minor_version): Bump to 2.
8163 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
8165 * config/aarch64/aarch64-protos.h
8166 (aarch64_const_double_zero_rtx_p): Rename to...
8167 (aarch64_float_const_zero_rtx_p): ...this.
8168 (aarch64_float_const_representable_p): New.
8169 (aarch64_output_simd_mov_immediate): Likewise.
8170 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8171 move immediate case.
8172 * config/aarch64/aarch64.c
8173 (aarch64_const_double_zero_rtx_p): Rename to...
8174 (aarch64_float_const_zero_rtx_p): ...this.
8175 (aarch64_print_operand): Allow printing of new constants.
8176 (aarch64_valid_floating_const): New.
8177 (aarch64_legitimate_constant_p): Check for valid floating-point
8179 (aarch64_simd_valid_immediate): Likewise.
8180 (aarch64_vect_float_const_representable_p): New.
8181 (aarch64_float_const_representable_p): Likewise.
8182 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8183 (aarch64_output_simd_mov_immediate): New.
8184 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8185 (*movdf_aarch64): Likewise.
8186 * config/aarch64/constraints.md (Ufc): New.
8187 (Y): call aarch64_float_const_zero_rtx.
8188 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8190 2013-01-07 Richard Biener <rguenther@suse.de>
8192 PR tree-optimization/55888
8193 PR tree-optimization/55862
8194 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8195 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8196 not if it is contained therein.
8198 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8200 * config/avr/t-avr: Typo.
8202 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
8205 * config/avr/t-avr: Don't automatically rebuild
8206 $(srcdir)/config/avr/t-multilib
8207 $(srcdir)/config/avr/avr-tables.opt
8208 $(srcdir)/doc/avr-mmcu.texi
8209 (avr-mcus): New phony target to build them on request.
8210 (s-avr-mlib, s-avr-mmcu-texi): Remove.
8211 * avr/avr-mcus.def: Adjust comments.
8213 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
8215 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8217 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8219 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8221 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
8223 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8225 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
8227 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8228 to generate profiling.
8229 * config/rs6000/aix64.h (LIB_SPEC): Same.
8231 2013-01-04 Andrew Pinski <apinski@cavium.com>
8233 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8235 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8237 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
8239 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8241 (ix86_expand_move): Ditto.
8242 (ix86_zero_extend_to_Pmode): Ditto.
8243 (ix86_expand_call): Ditto.
8244 (ix86_expand_special_args_builtin): Ditto.
8245 (ix86_expand_builtin): Ditto.
8247 2013-01-04 Richard Biener <rguenther@suse.de>
8249 PR tree-optimization/55862
8250 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8251 translating them through PHI nodes.
8253 2013-01-04 Martin Jambor <mjambor@suse.cz>
8255 PR tree-optimization/55755
8256 * tree-sra.c (sra_modify_assign): Do not check that an access has no
8257 children when trying to avoid producing a VIEW_CONVERT_EXPR.
8259 2013-01-04 Marek Polacek <polacek@redhat.com>
8262 * opts.c (default_options_optimization): Clarify error message.
8264 2013-01-04 Richard Biener <rguenther@suse.de>
8267 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8270 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8273 * config/pa/pa.md (movsi): Revert previous change.
8274 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8277 2013-01-03 Richard Henderson <rth@redhat.com>
8279 * config/i386/i386.c (ix86_expand_move): Always assign to op1
8280 after eliminating TLS symbols.
8282 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
8285 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8286 * graphite-poly.c (debug_gmp_value): Likewise.
8288 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
8291 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8292 selected code model, define __code_mode_small__, __code_model_medium__,
8293 __code_model_large__, __code_model_32__ or __code_model_kernel__.
8294 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8295 xchg temporary register with %k. Declare temporary register as
8297 [__x86_64__]: For medium and large code models, preserve %rbx register.
8299 2013-01-03 Richard Biener <rguenther@suse.de>
8301 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8302 (dump_subscript): Adjust.
8303 (finalize_ddr_dependent): Do not dump redundant info.
8304 (analyze_siv_subscript): Adjust.
8305 (subscript_dependence_tester): Likewise.
8306 (compute_affine_dependence): Likewise.
8308 2013-01-03 Richard Biener <rguenther@suse.de>
8311 2013-01-03 Richard Biener <rguenther@suse.de>
8313 PR tree-optimization/55857
8314 * tree-vect-stmts.c (vectorizable_load): Do not setup
8315 re-alignment for invariant loads.
8317 2013-01-02 Richard Biener <rguenther@suse.de>
8319 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8320 invariant load do not generate a vector load from the scalar location.
8322 2013-01-03 Richard Biener <rguenther@suse.de>
8324 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8325 for not vectorizing.
8326 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8327 not build INDIRECT_REFs, call get_name once only.
8328 (vect_create_data_ref_ptr): Likewise. Dump base object kind
8329 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8331 2013-01-03 Richard Biener <rguenther@suse.de>
8333 PR tree-optimization/55857
8334 * tree-vect-stmts.c (vectorizable_load): Do not setup
8335 re-alignment for invariant loads.
8337 2013-01-03 Richard Biener <rguenther@suse.de>
8340 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8341 prefer a built-in decl.
8343 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8345 * gcc.c (process_command): Update copyright notice dates.
8346 * gcov.c (print_version): Likewise.
8347 * gcov-dump.c (print_version): Likewise.
8349 PR rtl-optimization/55838
8350 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8351 iv0.step, iv1.step and step.
8353 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8354 Marc Glisse <marc.glisse@inria.fr>
8356 PR tree-optimization/55832
8357 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8358 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8359 integer_{one,zero}_node.
8361 2013-01-03 Jakub Jelinek <jakub@redhat.com>
8364 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8365 * var-tracking.c (reverse_op): Don't add reverse ops to
8366 VALUEs that have already
8367 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8369 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
8371 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8373 2013-01-02 Teresa Johnson <tejohnson@google.com>
8375 * dumpfile.c (dump_loc): Print filename with location.
8376 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8377 new location_t parameter to emit complete unroll message with
8379 (canonicalize_loop_induction_variables): Compute loops location
8380 and pass to try_unroll_loop_completely.
8381 * loop-unroll.c (report_unroll_peel): New function.
8382 (peel_loops_completely): Use new dump format with location
8383 for main dumpfile message, and invoke report_unroll_peel on success.
8384 (decide_unrolling_and_peeling): Ditto.
8385 (decide_peel_once_rolling): Remove old dumpfile message subsumed
8386 by report_unroll_peel.
8387 (decide_peel_completely): Ditto.
8388 (decide_unroll_constant_iterations): Ditto.
8389 (decide_unroll_runtime_iterations): Ditto.
8390 (decide_peel_simple): Ditto.
8391 (decide_unroll_stupid): Ditto.
8392 * cfgloop.c (get_loop_location): New function.
8393 * cfgloop.h (get_loop_location): Declare.
8395 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8397 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8400 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8403 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8404 BLKmode objects when EXPAND_MEMORY is specified.
8406 2013-01-02 Sriraman Tallam <tmsriram@google.com>
8408 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8410 (fold_builtin_cpu): Do not share cpu model decls across statements.
8412 2013-01-02 Jason Merrill <jason@redhat.com>
8415 * tree.c (build_array_type_1): Revert earlier change.
8417 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
8419 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8421 * config/aarch64/aarch64-tune.md: Re-generate.
8423 2013-01-02 Richard Biener <rguenther@suse.de>
8425 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8426 invariant load do not generate a vector load from the scalar location.
8428 2013-01-02 Richard Biener <rguenther@suse.de>
8431 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8432 * configure: Regenerate.
8434 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8436 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8437 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8438 (expand_builtin_int_roundingfn_2): Keep the original target around
8439 for the fallback case.
8441 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8443 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8444 to be clear for sign changes.
8446 2013-01-01 Jan Hubicka <jh@suse.cz>
8448 * ipa-inline-analysis.c: Fix formatting.
8450 2013-01-01 Jakub Jelinek <jakub@redhat.com>
8452 PR tree-optimization/55831
8453 * tree-vect-loop.c (get_initial_def_for_induction): Use
8454 gsi_after_labels instead of gsi_start_bb.
8456 Copyright (C) 2013 Free Software Foundation, Inc.
8458 Copying and distribution of this file, with or without modification,
8459 are permitted in any medium without royalty provided the copyright
8460 notice and this notice are preserved.