2013-04-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob38074dab23fad34ab4d6b96a4b6d62539d1c4507
1 2013-04-29  Richard Biener  <rguenther@suse.de>
3         PR middle-end/57075
4         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5         even if not adding abnormal edges for calls that can make
6         abnormal gotos.
8 2013-04-29  Richard Biener  <rguenther@suse.de>
10         PR middle-end/57103
11         * tree-cfg.c (move_stmt_op): Fix condition under which to update
12         TREE_BLOCK.
13         (move_stmt_r): Remove redundant checking.
15 2013-04-29  Teresa Johnson  <tejohnson@google.com>
17         PR bootstrap/57077
18         * basic-block.h (apply_scale): New function.
19         (apply_probability): Use apply_scale.
20         * gimple-streamer-in.c (input_bb): Ditto.
21         * lto-streamer-in.c (input_cfg): Ditto.
22         * lto-cgraph.c (merge_profile_summaries): Ditto.
23         * tree-optimize.c (execute_fixup_cfg): Ditto.
24         * tree-inline.c (copy_bb): Update comment to use
25         apply_scale.
26         (copy_edges_for_bb): Ditto.
27         (copy_cfg_body): Ditto.
29 2013-04-29  Tom de Vries  <tom@codesourcery.com>
31         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
32         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
33         (tail_merge_optimize): Handle current_loops == NULL.
35 2013-04-26  Jeff Law  <law@redhat.com>
37         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
38         (simplify_cond_using_ranges): Generalize code to simplify
39         COND_EXPRs where one argument is a constant and the other
40         is an SSA_NAME created by an integral type conversion.
42 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
44         * config/arm/arm.md (store_minmaxsi): Use only when
45         optimize_insn_for_size_p.
47 2013-04-29  Christian Bruel  <christian.bruel@st.com>
49         PR target/57108
50         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
52 2013-04-29  Richard Biener  <rguenther@suse.de>
54         PR middle-end/57089
55         * omp-low.c (expand_omp_taskreg): If the parent function had
56         a broken loop tree make sure to schedule a fixup for the child
57         as well.
58         (expand_omp_for_generic): Properly add loops.
59         (expand_omp_for_static_nochunk): Likewise.
60         (expand_omp_for_static_chunk): Likewise.
61         (expand_omp_for): For the degenerate case fixup loops.
62         (expand_omp_sections): Fix default bb placement in loops.
63         (expand_omp_atomic_pipeline): Properly add loops.
65 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
67         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
69 2013-04-29  Tom de Vries  <tom@codesourcery.com>
71         * tree-ssa-tail-merge.c: Update header comment.
73 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
75         * config/aarch64/arm_neon.h
76         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
77         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
78         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
79         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
80         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
81         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
82         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
83         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
85 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
87         * config/aarch64/aarch64-simd.md
88         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
89         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
90         fix_trunc, fixuns_trunc.
91         (ftrunc<VDQF:mode>2): New.
92         * config/aarch64/iterators.md (optab): Add fix, fixuns.
93         (fix_trunc_optab): New.
95 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
97         * config/aarch64/aarch64-builtins.c
98         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
99         iceilf, lround, iroundf.
101 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
103         PR target/54349
104         * config/i386/i386.h (enum ix86_tune_indices)
105         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
106         New, split from X86_TUNE_INTER_UNIT_MOVES.
107         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
108         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
109         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
110         (TARGET_INTER_UNIT_MOVES): Remove.
111         * config/i386/i386.c (initial_ix86_tune_features): Update.
112         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
113         (ix86_expand_convert_uns_didf_sse): Use
114         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
115         (ix86_expand_vector_init_one_nonzero): Ditto.
116         (ix86_expand_vector_init_interleave): Ditto.
117         (inline_secondary_memory_needed): Return true for moves from SSE class
118         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
119         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
120         * config/i386/constraints.md (Yi, Ym): Depend on
121         TARGET_INTER_UNIT_MOVES_TO_VEC.
122         (Yj, Yn): New constraints.
123         * config/i386/i386.md (*movdi_internal): Change constraints of
124         operand 1 from Yi to Yj and from Ym to Yn.
125         (*movsi_internal): Ditto.
126         (*movdf_internal): Ditto.
127         (*movsf_internal): Ditto.
128         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
129         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
130         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
131         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
132         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
133         * config/i386/sse.md (movdi_to_sse): Ditto.
134         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
135         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
136         TARGET_INTER_UNIT_MOVES.
137         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
138         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
139         instead of TARGET_INTER_UNIT_MOVES.
140         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
141         operand 1 from Yi to Yj and from Ym to Yn.
143 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
145         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
146         (float_truncate_hi_): Likewise.
147         (float_extend_lo_): Likewise.
148         (float_truncate_lo_): Likewise.
149         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
150         (aarch64_float_extend_lo_v2df): Likewise.
151         (vec_unpacks_hi_v4sf): Likewise.
152         (aarch64_float_truncate_lo_v2sf): Likewise.
153         (aarch64_float_truncate_hi_v4sf): Likewise.
154         (vec_pack_trunc_v2df): Likewise.
155         (vec_pack_trunc_df): Likewise.
157 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
159         * config/aarch64/aarch64-builtins.c
160         (aarch64_fold_builtin): Fold float conversions.
161         * config/aarch64/aarch64-simd-builtins.def
162         (floatv2si, floatv4si, floatv2di): New.
163         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
164         * config/aarch64/aarch64-simd.md
165         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
166         * config/aarch64/iterators.md (FLOATUORS): New.
167         (optab): Add float, floatuns.
168         (su_optab): Likewise.
170 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
172         * config/aarch64/aarch64-builtins.c
173         (aarch64_builtin_vectorized_function): Use new names for
174         fcvt builtins.
175         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
176         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
177         (fcvtzu): Split as...
178         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
179         (fcvtas): Split as...
180         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
181         (fcvtau): Split as...
182         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
183         (fcvtps): Split as...
184         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
185         (fcvtpu): Split as...
186         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
187         (fcvtms): Split as...
188         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
189         (fcvtmu): Split as...
190         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
191         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
192         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
193         (lfrintnusf, lfrintnudf): Likewise.
194         * config/aarch64/aarch64-simd.md
195         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
196         define_insn.
197         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
198         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
199         (fcvt_pattern): Likewise.
201 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
203         * config/aarch64/aarch64-simd.md
204         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
205         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
207 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
209         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
210         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
211         (vrnd<a,m,n,p>_f32): Implement using builtins.
212         (vrnd<i,x><q>_f<32, 64>): New.
214 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
216         * config/aarch64/aarch64-builtins.c
217         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
218         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
219         (frintz): Rename to...
220         (btrunc): ...this.
221         (frintp): Rename to...
222         (ceil): ...this.
223         (frintm): Rename to...
224         (floor): ...this.
225         (frinti): Rename to...
226         (nearbyint): ...this.
227         (frintx): Rename to...
228         (rint): ...this.
229         (frinta): Rename to...
230         (round): ...this.
231         * config/aarch64/aarch64-simd.md
232         (aarch64_frint<frint_suffix><mode>): Delete.
233         (<frint_pattern><mode>2): Convert to insn.
234         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
235         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
236         (frint_pattern): Likewise.
237         (frint_suffix): Likewise.
239 2013-04-29  Richard Biener  <rguenther@suse.de>
241         PR tree-optimization/57081
242         * loop-init.c: Include tree-flow.h.
243         (loop_optimizer_finalize): Free number of iteration estimates.
244         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
246 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
248         PR tree-optimization/57083
249         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
250         non-singleton shift count range, zero extend low_bound for uns case.
252         * config/i386/predicates.md (general_vector_operand): New predicate.
253         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
254         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
255         if they aren't nonimmediate operands.  If their original values
256         satisfy const_vector_equal_evenodd_p, don't shift them.
257         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
258         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
259         if not nonimmediate_operand.
260         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
261         instead of register_operand.
262         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
264 2013-04-28  Eric Botcazou  <ebotcazou@gcc.gnu.org>
266         * stor-layout.c (finalize_size_functions): Allocate a structure and
267         reset cfun before dumping the functions.
269 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
271         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
273         PR target/56866
274         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
275         use xop_pmacsdqh if uns_p.
276         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
277         the immediate rotate count.
279 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
281         * rtl.h (struct rtx_def): Add comment for field jump.
282         (LRA_SUBREG_P): New macro.
283         * recog.c (register_operand): Check LRA_SUBREG_P.
284         * lra.c (lra): Add note at the end of RTL code. Align non-empty
285         stack frame.
286         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
287         (lra_final_code_change): Skip subreg change for operators.
288         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
289         if there are no operand changes.
290         * lra-constraints.c (curr_insn_set): New.
291         (match_reload): Set LRA_SUBREG_P.
292         (emit_spill_move): Ditto.
293         (check_and_process_move): Use curr_insn_set. Process only single
294         set insns.  Don't initialize sec_mem_p and change_p.
295         (simplify_operand_subreg): Use LRA_SUBREG_P.
296         (reg_in_class_p): New function.
297         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
298         of #ifdef.  Add code to remove cycling.
299         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
300         non-null disp.  Reload inner instead of disp when base and index
301         are null.  Try to put lo_sum into register.
302         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
303         (check_and_process_move): Move code for move cost check to
304         simple_move_p.  Remove equiv_substitution.
305         (simple_move_p): New function.
306         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
307         curr_insn_set.  Call check_and_process_move only for single set
308         insns.  Use the new function.  Move call of check_and_process_move
309         after operand equiv substitution and address process.
311 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
313         PR go/57045
314         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
315         with nonlocal goto receivers or returns twice calls, ignore
316         unininitialized values from abnormal edges to nl goto receiver
317         or returns twice call.
319 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
321         PR tree-optimization/57051
322         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
323         and VEC_RSHIFT_EXPR if shift count is a multiple of element
324         bitsize.
326 2013-04-26  Richard Biener  <rguenther@suse.de>
328         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
329         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
330         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
331         (fixup_loop_arrays_after_move): New function.
332         (move_sese_region_to_fn): Properly outline the loop tree parts
333         of the SESE region.
335 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
337         * config/i386/i386.md (type, unit): Fix long lines.
339 2013-04-26  Richard Biener  <rguenther@suse.de>
341         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
342         (lto-streamer-out.o): Likewise.
343         * cfgloop.c (init_loops_structure): Export, add struct function
344         argument and adjust.
345         (flow_loops_find): Adjust.
346         * cfgloop.h (enum loop_estimation): Add EST_LAST.
347         (init_loops_structure): Declare.
348         * lto-streamer-in.c: Include cfgloop.h.
349         (input_cfg): Input the loop tree.
350         * lto-streamer-out.c: Include cfgloop.h.
351         (output_cfg): Output the loop tree.
352         (output_struct_function_base): Do not drop PROP_loops.
354 2013-03-26  Richard Biener  <rguenther@suse.de>
356         * tree-cfg.c (execute_build_cfg): Build the loop tree.
357         (pass_build_cfg): Provide PROP_loops.
358         (move_sese_region_to_fn): Remove loops that are outlined into fn
359         for now.
360         * tree-inline.c: Include cfgloop.h.
361         (initialize_cfun): Do not drop PROP_loops.
362         (copy_loops): New function.
363         (copy_cfg_body): Copy loop structure.
364         (tree_function_versioning): Initialize destination loop tree.
365         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
366         (pass_parallelize_loops): Do IL verification.
367         * loop-init.c (loop_optimizer_init): Fixup loops if required.
368         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
369         the CFG make sure we fixup loops as well.
370         * tree-ssa-tail-merge.c: Include cfgloop.h.
371         (replace_block_by): When merging loop latches mark loops for fixup.
372         * lto-streamer-out.c (output_struct_function_base): Drop
373         PROP_loops for now.
374         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
375         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
376         * ipa-split.c: Include cfgloop.h.
377         (split_function): Add the new return block to the loop tree root.
378         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
379         whether we have removed the forwarder block.
380         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
381         * cfgloop.h (place_new_loop): Declare.
382         * cfgloopmanip.c (place_new_loop): Export.
383         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
384         (tree-switch-conversion.o): Likewise.
385         (tree-complex.o): Likewise.
386         (tree-inline.o): Likewise.
387         (tree-ssa-tailmerge.o): Likewise.
388         (ipa-split.o): Likewise.
389         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
390         (tree-ssa-copy.o): Likewise.
391         * tree-switch-conversion.c: Include cfgloop.h
392         (process_switch): If we emit a bit-test cascade, schedule loops
393         for fixup.
394         * tree-complex.c: Include cfgloop.h.
395         (expand_complex_div_wide): Properly add new basic-blocks to loops.
396         * asan.c: Include cfgloop.h.
397         (create_cond_insert_point): Properly add new basic-blocks to
398         loops, schedule loop fixup.
399         * cfgloop.c (verify_loop_structure): Check that looks are not
400         marked for fixup.
401         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
402         to loops.
403         (expand_omp_for_generic): Likewise.
404         (expand_omp_sections): Likewise.
405         (expand_omp_atomic_pipeline): Schedule loops for fixup.
406         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
407         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
408         is initialized, not when loops are present.
409         * tree-parloops.c (parallelize_loops): Remove checking here.
410         * passes.c (init_optimization_passes): Schedule a copy-propagation
411         pass before complete unrolling of inner loops.
413 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
415         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
416         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
417         (colorize_init): Add argument to _WIN32 version.
418         * toplev.c: Include diagnostic-color.h.
419         (process_options): Default to -fdiagnostics-color=auto if
420         GCC_COLORS env var is in the environment.
421         * common.opt (fdiagnostics-color=): Add Var and Init.
422         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
423         env var is in the environment, the default is auto rather than never.
425         * diagnostic.h (file_name_as_prefix): Add context argument.
426         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
427         the string as locus.
428         * langhooks.c (lhd_print_error_function): Adjust caller.
430 2013-04-25  Lawrence Crowl  <crowl@google.com>
432         * var-tracking.c (shared_hash_def::htab):
433         Change type to hash_table.  Update dependent calls and types.
435 2013-04-25  Lawrence Crowl  <crowl@google.com>
437         * Makefile.in: Update as needed below.
439         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
440         Move declaration to after the type's method definitons.
442         * attribs.c (htab_t scoped_attributes::attribute_hash):
443         Change type to hash_table.  Update dependent calls and types.
445         * bitmap.c (htab_t bitmap_desc_hash):
446         Change type to hash_table.  Update dependent calls and types.
448         * cselib.c (htab_t cselib_hash_table):
449         Change type to hash_table.  Update dependent calls and types.
451         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
452         (hash_string_slot_node): Move implementation into lto-streamer.h
453         struct string_slot_hasher.
454         (eq_string_slot_node): Likewise.
456         * data-streamer-out.c: Update output_block::string_hash_table
457         dependent calls and types.
459         * dwarf2cfi.c (htab_t trace_index):
460         Change type to hash_table.  Update dependent calls and types.
462         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
463         Change type to hash_table.  Update dependent calls and types.
464         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
465         (htab_t optimize_external_refs::map): Likewise.
466         (htab_t output_comp_unit::extern_map): Likewise.
467         (htab_t output_comdat_type_unit::extern_map): Likewise.
468         (htab_t output_macinfo::macinfo_htab): Likewise.
469         (htab_t optimize_location_lists::htab): Likewise.
470         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
472         * except.c (htab_t ehspec_hash_type):
473         Change type to hash_table.  Update dependent calls and types.
474         (assign_filter_values::ttypes): Likewise.
475         (assign_filter_values::ehspec): Likewise.
476         (sjlj_assign_call_site_values::ar_hash): Likewise.
477         (convert_to_eh_region_ranges::ar_hash): Likewise.
479         * gcse.c (htab_t pre_ldst_table):
480         Change type to hash_table.  Update dependent calls and types.
482         * ggc-common.c (htab_t saving_htab):
483         Change type to hash_table.  Update dependent calls and types.
484         (htab_t loc_hash): Likewise.
485         (htab_t ptr_hash): Likewise.
486         (call_count): Rename ggc_call_count.
487         (call_alloc): Rename ggc_call_alloc.
488         (loc_descriptor): Rename make_loc_descriptor.
489         (add_statistics): Rename ggc_add_statistics.
491         * ggc-common.c (saving_htab):
492         Change type to hash_table.  Update dependent calls and types.
494         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
495         (push_gimplify_context): Likewise.
496         (pop_gimplify_context): Likewise.
497         (struct gimple_temp_hash_elt): Added.
498         (struct gimplify_hasher): Likewise.
499         (struct gimplify_ctx.temp_htab):
500         Change type to hash_table.  Update dependent calls and types.
502         * gimple-fold.c: Include gimplify-ctx.h.
504         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
505         Change type to hash_table.  Update dependent calls and types.
506         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
507         avoid potential global name collision.
509         * gimplify.c: Include gimplify-ctx.h.
510         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
511         (htab_t gimplify_ctx::temp_htab):
512         Update dependent calls and types for new type hash_table.
513         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
514         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
516         * gimplify-ctx.h: New.
517         (struct gimple_temp_hash_elt): Move from gimplify.c.
518         (class gimplify_hasher): New.
519         (struct gimplify_ctx): Move from gimple.h.
520         (htab_t gimplify_ctx::temp_htab):
521         Change type to hash_table.  Update dependent calls and types.
523         * graphite-clast-to-gimple.c: Include graphite-htab.h.
524         (htab_t ivs_params::newivs_index):
525         Change type to hash_table.  Update dependent calls and types.
526         (htab_t ivs_params::params_index): Likewise.
527         (htab_t print_generated_program::params_index): Likewise.
528         (htab_t gloog::newivs_index): Likewise.
529         (htab_t gloog::params_index): Likewise.
531         * graphite.c: Include graphite-htab.h.
532         4htab_t graphite_transform_loops::bb_pbb_mapping):
533         Change type to hash_table.  Update dependent calls and types.
535         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
536         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
537         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
539         * graphite-dependences.c: Include graphite-htab.h.
540         (loop_is_parallel_p): Change hash table type of parameter.
542         * graphite-htab.h: New.
543         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
544         (extern find_pbb_via_hash): Move from graphite-poly.h.
545         (extern loop_is_parallel_p): Move from graphite-poly.h.
546         (extern get_loop_body_pbbs): Move from graphite-poly.h.
548         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
549         (extern loop_is_parallel_p): Move to graphite-htab.h.
550         (extern get_loop_body_pbbs): Move to graphite-htab.h.
552         * haifa-sched.c (htab_t delay_htab):
553         Change type to hash_table.  Update dependent calls and types.
554         (htab_t delay_htab_i2): Likewise.
556         * ira-color.c (htab_t allocno_hard_regs_htab):
557         Change type to hash_table.  Update dependent calls and types.
559         * ira-costs.c (htab_t cost_classes_htab):
560         Change type to hash_table.  Update dependent calls and types.
562         * loop-invariant.c (htab_t merge_identical_invariants::eq):
563         Change type to hash_table.  Update dependent calls and types.
565         * loop-iv.c (htab_t bivs):
566         Change type to hash_table.  Update dependent calls and types.
568         * loop-unroll.c (htab_t opt_info::insns_to_split):
569         Change type to hash_table.  Update dependent calls and types.
570         (htab_t opt_info::insns_with_var_to_expand): Likewise.
572         * lto-streamer.h (struct string_slot): Move from data-streamer.h
573         (struct string_slot_hasher): New.
574         (htab_t output_block::string_hash_table):
575         Change type to hash_table.  Update dependent calls and types.
577         * lto-streamer-in.c (freeing_string_slot_hasher): New.
578         (htab_t file_name_hash_table):
579         Change type to hash_table.  Update dependent calls and types.
581         * lto-streamer-out.c: Update output_block::string_hash_table dependent
582         calls and types.
584         * lto-streamer.c (htab_t tree_htab):
585         Change type to hash_table.  Update dependent calls and types.
587         * omp-low.c: Include gimplify-ctx.h.
589         * passes.c (htab_t name_to_pass_map):
590         Change type to hash_table.  Update dependent calls and types.
591         (pass_traverse): Rename to passes_pass_traverse.
593         * plugin.c (htab_t event_tab):
594         Change type to hash_table.  Update dependent calls and types.
596         * postreload-gcse.c (htab_t expr_table):
597         Change type to hash_table.  Update dependent calls and types.
598         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
600         * sese.c (debug_rename_map_1): Make extern.
601         (htab_t copy_bb_and_scalar_dependences::rename_map):
602         Change type to hash_table.  Update dependent calls and types.
604         * sese.h (extern debug_rename_map): Move to .c file.
606         * store-motion.c (htab_t store_motion_mems_table):
607         Change type to hash_table.  Update dependent calls and types.
609         * trans-mem.c (htab_t tm_new_mem_hash):
610         Change type to hash_table.  Update dependent calls and types.
612         * tree-browser.c (htab_t TB_up_ht):
613         Change type to hash_table.  Update dependent calls and types.
615         * tree-cfg.c (htab_t discriminator_per_locus):
616         Change type to hash_table.  Update dependent calls and types.
618         * tree-complex.c: Include tree-hasher.h
619         (htab_t complex_variable_components):
620         Change type to hash_table.  Update dependent calls and types.
622         * tree-eh.c (htab_t finally_tree):
623         Change type to hash_table.  Update dependent calls and types.
625         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
626         struct int_tree_hasher.
627         (extern int_tree_map_eq): Likewise.
628         (uid_decl_map_hash): Removed.
629         (extern decl_tree_map_eq): Likewise.
631         * tree-hasher.h: New.
632         (struct int_tree_hasher): New.
633         (typedef int_tree_htab_type): New.
635         * tree-inline.c: Include gimplify-ctx.h.
637         * tree-mudflap.c: Include gimplify-ctx.h.
639         * tree-parloops.c: Include tree-hasher.h.
640         (htab_t eliminate_local_variables_stmt::decl_address):
641         Change type to hash_table.  Update dependent calls and types.
642         (htab_t separate_decls_in_region::decl_copies): Likewise.
644         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
645         Change type to hash_table.  Update dependent calls and types.
647         * tree-sra.c (candidates):
648         Change type to hash_table.  Update dependent calls and types.
650         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
651         in tree-flow.h.
652         (int_tree_map_hash): Likewise.
654         * tree-ssa-dom.c (htab_t avail_exprs):
655         Change type to hash_table.  Update dependent calls and types.
657         * tree-ssa-live.c (var_map_base_init::tree_to_index):
658         Change type to hash_table.  Update dependent calls and types.
660         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
661         Change type to hash_table.  Update dependent calls and types.
663         * tree-ssa-phiopt.c (seen_ssa_names):
664         Change type to hash_table.  Update dependent calls and types.
666         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
667         Change type to hash_table.  Update dependent calls and types.
669         * tree-ssa-uncprop.c (equiv):
670         Change type to hash_table.  Update dependent calls and types.
672 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
674         PR rtl-optimization/57003
675         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
676         call note_stores with kill_clobbered_value callback again after
677         killing regs_invalidated_by_call.
679 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
681         * config/aarch64/aarch64-simd.md
682         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
683         (aarch64_simd_bsl<mode>): Likewise.
684         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
686 2013-04-25  Marek Polacek  <polacek@redhat.com>
688         PR tree-optimization/57066
689         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
691 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
693         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
695 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
697         * config/aarch64/aarch64-builtins.c
698         (aarch64_fold_builtin): New.
699         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
700         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
701         * config/aarch64/aarch64-simd-builtins.def (abs): New.
702         * config/aarch64/arm_neon.h
703         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
705 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
706             Tejas Belagod  <tejas.belagod@arm.com>
708         * config/aarch64/aarch64-builtins.c
709         (aarch64_gimple_fold_builtin): New.
710         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
711         * config/aarch64/aarch64-simd-builtins.def (addv): New.
712         * config/aarch64/aarch64-simd.md (addpv4sf): New.
713         (addvv4sf): Update.
714         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
716 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
718         * config/aarch64/aarch64.md
719         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
721 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
723         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
724         (*ngcsi_uxtw): New pattern.
726 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
727             Julian Brown  <julian@codesourcery.com>
729         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
730         (TB_DREG): Add T_V4HF.
731         (v4hf_UP): New macro.
732         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
733         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
734         Handle initialisation of V4HF. Adjust initialisation of reinterpret
735         built-ins.
736         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
737         (arm_vector_mode_supported_p): Handle V4HF.
738         (arm_mangle_map): Handle V4HFmode.
739         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
740         * config/arm/arm_neon_builtins.def: Add entries for
741         vcvtv4hfv4sf, vcvtv4sfv4hf.
742         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
743         (neon_vcvtv4hfv4sf): Likewise.
744         * config/arm/neon-gen.ml: Handle half-precision floating point
745         features.
746         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
747         * config/arm/arm_neon.h: Regenerate.
748         * config/arm/neon.ml (type elts): Add F16.
749         (type vectype): Add T_float16x4, T_floatHF.
750         (type vecmode): Add V4HF.
751         (type features): Add Requires_FP_bit feature.
752         (elt_width): Handle F16.
753         (elt_class): Likewise.
754         (elt_of_class_width): Likewise.
755         (mode_of_elt): Refactor.
756         (type_for_elt): Handle F16, fix error messages.
757         (vectype_size): Handle T_float16x4.
758         (vcvt_sh): New function.
759         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
760         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
761         (string_of_mode): Handle V4HF.
762         * doc/arm-neon-intrinsics.texi: Regenerate.
764 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
766         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
767         format specifier in 'X' case.
769 2013-04-25  Alan Modra  <amodra@gmail.com>
771         PR target/57052
772         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
773         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
774         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
775         Repeat for many other rotate/shift and mask patterns using subregs.
776         Name lshiftrt insns.
777         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
778         on WORDS_BIG_ENDIAN.
780 2013-04-25  Alan Modra  <amodra@gmail.com>
782         * config.gcc: Support little-endian powerpc-linux targets.
783         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
784         (LINK_OS_LINUX_SPEC): Define.
785         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
786         Preserve MASK_LITTLE_ENDIAN.
787         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
788         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
789         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
790         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
791         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
792         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
793         Correct fp word order for little-endian.  Don't shift toc entries
794         smaller than a word for little-endian.
795         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
796         (bswapdi2 splits): Correct low-part subreg for little-endian.
797         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
798         low/high where such is correct only for be.
799         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
800         little-endian for -mcall-aixdesc.
802 2013-04-25  Alan Modra  <amodra@gmail.com>
804         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
805         replace_equiv_address_nv.
807 2013-04-25  Alan Modra  <amodra@gmail.com>
809         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
811 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
813         Revert:
814         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
815         * rtl.h (struct rtx_def): ...
817 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
819         PR rtl-optimizations/57046
820         * lra-constraints (split_reg): Set up lra_risky_transformations_p
821         for multi-reg splits.
823 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
825         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
827 2013-04-24  Sterling Augustine  <saugustine@google.com>
829         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
830         (comp_dir_string, debug_str_dwo_section): New.
831         (DEBUG_STR_DWO_SECTION): Rename to ...
832         (DEBUG_DWO_STR_SECTION): ... this.
833         (DEBUG_NORM_STR_SECTION): Delete.
834         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
835         (DEBUG_STR_DWO_SECTION_FLAGS): New.
836         (find_AT_string): Move most logic to ...
837         (find_AT_string_in_table): ... here.  New.
838         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
839         add_skeleton_AT_string.  Delete logic.
840         (output_skeleton_debug_sections): Remove call to
841         add_top_level_skeleton_die_attrs.
842         (add_comp_dir_attribute): Move logic to comp_dir_string.
843         (dwarf2out_init): Initialize debug_str_dwo_section.
844         (output_indirect_string): Call find_string_form.
845         (output_indirect_strings): Rewrite.
846         (prune_unused_types): Empty skeleton_debug_str_hash.
847         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
848         (dwarf2out_finish):  Call output_indirect_strings.
850 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
852         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
854 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
856         * rtl.h (struct rtx_def): Add comment for field jump.
857         (LRA_SUBREG_P): New macro.
858         * recog.c (register_operand): Check LRA_SUBREG_P.
859         * lra.c (lra): Add note at the end of RTL code. Align non-empty
860         stack frame.
861         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
862         (lra_final_code_change): Skip subreg change for operators.
863         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
864         if there are no operand changes.
865         * lra-constraints.c (curr_insn_set): New.
866         (match_reload): Set LRA_SUBREG_P.
867         (emit_spill_move): Ditto.
868         (check_and_process_move): Use curr_insn_set. Process only single
869         set insns.  Don't initialize sec_mem_p and change_p.
870         (simplify_operand_subreg): Use LRA_SUBREG_P.
871         (reg_in_class_p): New function.
872         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
873         of #ifdef.  Add code to remove cycling.
874         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
875         non-null disp.  Reload inner instead of disp when base and index
876         are null.  Try to put lo_sum into register.
877         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
878         (check_and_process_move): Move code for move cost check to
879         simple_move_p.  Remove equiv_substitution.
880         (simple_move_p): New function.
881         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
882         curr_insn_set.  Call check_and_process_move only for single set
883         insns.  Use the new function.  Move call of check_and_process_move
884         after operand equiv substitution and address process.
886 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
888         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
889         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
890         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
892 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
894         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
896 2013-04-24  Marek Polacek  <polacek@redhat.com>
898         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
899         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
900         (select_loops_exit_conditions): Likewise.
901         (number_of_iterations_for_all_loops): Likewise.
902         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
903         (scev_analysis): Likewise.
905 2013-04-02  Catherine Moore  <clm@codesourcery.com>
906             Chao-ying Fu <fu@mips.com>
908         * config/mips/micromips.md (jraddiusp): New pattern.
909         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
910         instruction if possible.
912 2013-04-24  Alan Modra  <amodra@gmail.com>
914         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
916 2013-04-24  Julian Brown  <julian@codesourcery.com>
917             Chung-Lin Tang  <cltang@codesourcery.com>
919         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
920         dependency behavior in enumeration type DIE generation. Add TODO note
921         to comments about future DW_FORM_sdata/udata re-work of related code.
923 2013-04-23  Lawrence Crowl  <crowl@google.com>
925         * Makefile.in: Update as needed below.
927         * hash-table.h (class hash_table):
928         Correct many methods with parameter types compare_type to the correct
929         value_type.  (Correct code was unlikely to notice the change.)
930         (hash_table::elements_with_deleted) New.
931         (class hashtable::iterator): New.
932         (hashtable::begin()): New.
933         (hashtable::end()): New.
934         (FOR_EACH_HASH_TABLE_ELEMENT): New.
936         * statistics.c (statistics_hashes):
937         Change type to hash_table.  Update dependent calls and types.
939         * tree-into-ssa.c (var_infos):
940         Change type to hash_table.  Update dependent calls and types.
942         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
943         Change type to hash_table.  Update dependent calls and types.
945         * tree-ssa-loop-im.c (struct mem_ref.refs):
946         Change type to hash_table.  Update dependent calls and types.
948         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
949         Change type to hash_table.  Update dependent calls and types.
951         * tree-ssa-sccvn.c (vn_tables_s::nary):
952         Change type to hash_table.  Update dependent calls and types.
953         (vn_tables_s::phis): Likewise.
954         (vn_tables_s::references): Likewise.
956         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
957         (vn_reference_eq): Update parameter and return types.
959         * tree-ssa-structalias.c (pointer_equiv_class_table):
960         Change type to hash_table.  Update dependent calls and types.
961         (location_equiv_class_table): Likewise.
963         * tree-vect-data-refs.c: Consequential changes for making
964         peeling a hash_table.
966         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
967         (destroy_loop_vec_info): Dependent hash_table update.
969         * tree-vectorizer.h (peeling_htab):
970         Change type to hash_table.  Update dependent calls and types.
972 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
974         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
975         to check the register content is equal or not.
976         * lra-constraints.c (match_reload): Use lra_assign_reg_val
977         to assign register content record.
978         * lra-eliminations.c (update_reg_eliminate): Use
979         lra_update_reg_val_offset to update register content offset.
980         * lra-int.h (struct lra_reg): Add offset member.
981         (lra_reg_val_equal_p): New static inline function.
982         (lra_update_reg_val_offset): New static inline function.
983         (lra_assign_reg_val): New static inline function.
984         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
985         to assign register content record.
986         (initialize_lra_reg_info_element): Initial offset to zero.
988 2013-04-23  Catherine Moore  <clm@codesourcery.com>
990         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
991         operands.  Record compression.
993 2013-04-23  Xinliang David Li  <davidxl@google.com>
995         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
997 2013-04-23  Richard Biener  <rguenther@suse.de>
999         PR middle-end/57036
1000         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
1001         parameter, only add abnormal goto edges from the copied body
1002         if the call could perform abnormal gotos.
1003         (copy_cfg_body): Adjust.
1005 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
1007         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
1009 2013-04-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1011         * config/s390/sjlj.S: New file.
1012         * config/s390/target.h: New file.
1013         * configure.tgt: Set options for S/390.
1015 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
1017         * coretypes.h (gimple_stmt_iterator): Add struct to make
1018         compatible with C.
1020 2013-04-23  Richard Biener  <rguenther@suse.de>
1022         PR tree-optimization/57026
1023         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
1024         from SSA names occuring in abnormal PHI nodes.
1026 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1028         * lto/lto.c (print_lto_report_1): Fix LTO report names.
1030 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1032         * lto/lto.c (print_lto_report_1): Declare early.
1033         (read_cgraph_and_symbols): Call print_lto_report_1 early.
1035 2013-04-22  Andi Kleen  <ak@linux.intel.com>
1037         * common.opt (-flto-report-wpa): Add.
1038         * doc/invoke.texi (-flto-report-wpa): Add.
1039         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
1040         (lto_main): dito.
1042 2013-04-22  Xinliang David Li  <davidxl@google.com>
1044         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
1045         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
1046         * Makefile.in: New dependency
1048             David Daney <ddaney.cavm@gmail.com>
1050         * configure.ac (gcc_cv_as_micromips_support):  Use the
1051         --fatal-warnings option.
1052         * configure: Regenerate.
1054 2013-04-22  Marek Polacek  <polacek@redhat.com>
1056         PR sanitizer/56990
1057         * tsan.c (instrument_expr): Don't instrument expression
1058         in case its size is zero.
1060 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
1062         PR target/57032
1063         Revert:
1064         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
1066         * config/alpha/alpha.c (TARGET_LRA_P): New define.
1068 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1070         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
1071         (gimple_stmt_iterator): New typedef.
1072         * gimple.h (gimple_stmt_iterator): Rename to...
1073         (gimple_stmt_iterator_d): ... This.
1074         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
1075         trees be valid for GIMPLE and GENERIC.
1076         (TARGET_GIMPLE_FOLD_BUILTIN): New.
1077         * gimple-fold.c (gimple_fold_call): Call target hook
1078         gimple_fold_builtin.
1079         * hooks.c (hook_bool_gsiptr_false): New.
1080         * hooks.h (hook_bool_gsiptr_false): New.
1081         * target.def (fold_stmt): New.
1082         * doc/tm.texi: Regenerate.
1084 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
1086         PR target/57018
1087         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1088         a set sp if no stack realignment.
1090 2013-04-22  Nick Clifton  <nickc@redhat.com>
1092         * config.gcc (tilegx-linux): Extend extra_objs rather than
1093         overwriting it.
1094         (tilepro-linux): Likewise.
1096 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1098         * config/aarch64/aarch64-builtins.c
1099         (CF): Remove.
1100         (CF0, CF1, CF2, CF3, CF4, CF10): New.
1101         (VAR<1-12>): Add MAP parameter.
1102         (BUILTIN_*): Likewise.
1103         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
1104         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
1105         (aarch64_ushl_n<mode>): Likewise.
1106         (aarch64_sshr_n<mode>): Likewise.
1107         (aarch64_ushr_n<mode>): Likewise.
1108         (aarch64_<maxmin><mode>): Likewise.
1109         (aarch64_sqrt<mode>): Likewise.
1110         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
1111         (vshr<q>_n_*): Likewise.
1113 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
1115         * config/aarch64/aarch64-builtins.c
1116         (aarch64_simd_builtin_type_mode): Handle SF types.
1117         (sf_UP): Define.
1118         (BUILTIN_GPF): Define.
1119         (aarch64_init_simd_builtins): Handle SF types.
1120         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
1121         (frecps): Likewise.
1122         (frecpx): Likewise.
1123         * config/aarch64/aarch64-simd.md
1124         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
1125         (aarch64_frecpe<mode>): New.
1126         (aarch64_frecps<mode>): Likewise.
1127         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
1128         (v8type): Add frecp<esx>.
1129         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
1130         (aarch64_frecps<mode>): Likewise.
1131         * config/aarch64/iterators.md (FRECP): New.
1132         (frecp_suffix): Likewise.
1133         * config/aarch64/arm_neon.h
1134         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
1136 2013-04-22  Christian Bruel  <christian.bruel@st.com>
1138         PR target/56995
1139         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
1140         (REG_CLASS_NAMES): Idem.
1141         (REG_CLASS_CONTENTS): Idem.
1142         (REGCLASS_HAS_FP_REG): Idem.
1143         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
1144         (sh_conditional_register_usage): Idem.
1146 2013-04-21  Jeff Law  <law@redhat.com>
1148         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
1149         (ssa_forward_propagate_and_combine): Use it.
1151 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1153         * lra.c: Update the flow chart diagram.
1155 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1157         PR rtl-optimization/56847
1158         * lra-constraints.c (process_alt_operands): Discourage alternative
1159         with non-matche doffsettable memory constraint fro memory with
1160         known offset.
1162 2013-04-19  Richard Biener  <rguenther@suse.de>
1164         PR tree-optimization/56982
1165         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
1166         function.
1167         * gimplify.c (gimplify_call_expr): Notice special calls.
1168         (gimplify_modify_expr): Likewise.
1169         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
1170         abnormal control flow receivers.
1171         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
1172         in the same way as cfun->has_nonlocal_labels.
1173         (gimple_purge_dead_abnormal_call_edges): Likewise.
1174         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
1175         receivers start a basic-block.
1177 2013-04-19  Richard Biener  <rguenther@suse.de>
1179         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
1180         member ...
1181         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
1182         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
1183         (SLP_TREE_LOAD_PERMUTATION): Add.
1184         (vect_transform_slp_perm_load): Adjust prototype.
1185         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
1186         (vect_free_slp_instance): Likewise.
1187         (vect_create_new_slp_node): Likewise.
1188         (vect_supported_slp_permutation_p): Remove.
1189         (vect_slp_rearrange_stmts): Adjust.
1190         (vect_supported_load_permutation_p): Likewise.  Inline
1191         vect_supported_slp_permutation_p here.
1192         (vect_analyze_slp_instance): Compute load permutations per
1193         slp node instead of per instance.
1194         (vect_get_slp_defs): Adjust.
1195         (vect_transform_slp_perm_load): Likewise.
1196         (vect_schedule_slp_instance): Remove redundant code.
1197         (vect_schedule_slp): Remove hack for PR56270, add it ...
1198         * tree-vect-stmts.c (vectorizable_load): ... here, do not
1199         CSE loads for SLP.  Adjust.
1201 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
1203         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
1204         spelling in two comments.
1206 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
1208         PR target/56797
1209         * config/arm/arm.c (load_multiple_sequence): Require SP
1210         as base register for loads if SP is in the register list.
1212 2013-04-19  Martin Jambor  <mjambor@suse.cz>
1214         PR tree-optimization/56718
1215         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
1216         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
1217         and made public.  Adjusted all callers.
1218         (ipa_intraprocedural_devirtualization): New function.
1219         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
1220         (ipa_intraprocedural_devirtualization): Likewise.
1221         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
1223 2013-04-19  Richard Biener  <rguenther@suse.de>
1225         PR tree-optimization/57000
1226         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1228 2013-04-19  Terry Guo  <terry.guo@arm.com>
1230         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
1231         Replace with ...
1232         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
1233         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
1234         (cortex_m4_fmacs): Use new reservations.
1235         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
1237 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
1239         PR rtl-optimization/56999
1240         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1241         related code.
1242         (lra_coalesce): Remove split_origin_bitmap and related code.
1243         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
1244         ranges if necessary.
1246 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
1248         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
1249         New array.
1250         (ix86_expand_call): Remove clobbered_registers array and use
1251         x86_64_ms_sysv_extra_clobbered_registers instead.
1252         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
1253         Declare here.
1254         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
1255         predicate.
1256         * config/i386/i386.md (*call_rex64_ms_sysv): Use
1257         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
1258         (*call_value_rex64_ms_sysv): Ditto.
1260 2013-04-18  Cary Coutant  <ccoutant@google.com>
1262         * dwarf2out.c (output_pubnames): Check die_perennial_p of
1263         parent instead of die_mark.
1265 2013-04-18  Diego Novillo  <dnovillo@google.com>
1267         * gimple.c (create_gimple_tmp): New.
1268         (get_expr_type): New.
1269         (build_assign): New.
1270         (build_type_cast): New.
1271         * gimple.h (enum ssa_mode): Define.
1272         (gimple_seq_set_location): New.
1273         * asan.c (build_check_stmt): Change some gimple_build_* calls
1274         to use build_assign and build_type_cast.
1276 2013-04-18  Richard Biener  <rguenther@suse.de>
1278         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
1279         handle negative step.  Remove redundant checks.
1280         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
1281         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
1282         for negative step and grouped loads fail to vectorize.
1284 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1286         * emit-rtl.c (reset_insn_used_flags): New function.
1287         (reset_all_used_flags): Use it.
1288         (verify_insn_sharing): New function.
1289         (verify_rtl_sharing): Fix verification for SEQUENCEs.
1291 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
1293         PR tree-optimization/56984
1294         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1295         and (x >> M) >= N don't register any assertion if N << M is the
1296         minimum value.
1298 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1300         * lower-subreg.c (resolve_simple_move): If called self-recursive,
1301         do not delete_insn insns that have not yet been emitted, only
1302         unlink them with remove_insn.
1303         * df-scan.c (df_insn_delete): Revert r197492.
1305 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
1307         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
1308         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
1310 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
1312         * config/arm/arm.md (movsicc_insn): Convert define_insn into
1313         define_insn_and_split.
1314         (and_scc,ior_scc,negscc): Likewise.
1315         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
1317 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
1319         * config/arm/arm.c (use_return_insn): Return 0 for targets that
1320         can benefit from using a sequence of LDRD instructions in epilogue
1321         instead of a single LDM instruction.
1323 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1325         PR 45688
1326         * doc/extend.texi: Fix typo.
1328 2013-04-17  Richard Biener  <rguenther@suse.de>
1330         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
1331         (vect_build_slp_tree): ... here.
1332         (vect_build_slp_tree_1): Compute which stmts of the SLP group
1333         match.  Remove special-casing of mismatched complex loads.
1334         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
1335         re-try the match with swapped commutative operands.
1336         (vect_supported_load_permutation_p): Remove special-casing of
1337         mismatched complex loads.
1338         (vect_analyze_slp_instance): Adjust.
1340 2013-04-17  Richard Biener  <rguenther@suse.de>
1342         PR rtl-optimization/56921
1343         * cfgloop.h (struct loop): Add simple_loop_desc member.
1344         (struct niter_desc): Mark with GTY(()).
1345         (simple_loop_desc): Do not use aux field but simple_loop_desc.
1346         * loop-iv.c (get_simple_loop_desc): Likewise.
1347         (free_simple_loop_desc): Likewise.
1349         Revert
1350         2013-04-16  Richard Biener  <rguenther@suse.de>
1352         PR rtl-optimization/56921
1353         * loop-init.c (pass_rtl_move_loop_invariants): Add
1354         TODO_do_not_ggc_collect to todo_flags_finish.
1355         (pass_rtl_unswitch): Same.
1356         (pass_rtl_unroll_and_peel_loops): Same.
1357         (pass_rtl_doloop): Same.
1359 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1361         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
1362         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
1363         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
1364         references.
1365         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
1366         * tree-streamer.c (record_common_node): Adjust reference in comment.
1368 2013-04-17  Terry Guo  <terry.guo@arm.com>
1370         * config/arm/cortex-m4.md: Add a new bypass.
1372 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1374         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
1375         New pattern.
1376         (*subs_<optab><mode>_multp2): New pattern.
1377         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1378         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
1380 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1382         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
1383         (*subs_mul_imm_<mode>): New pattern.
1385 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
1387         PR target/56948
1388         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1389         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
1390         (vsx_movti_32bit): Change j->wa to O->wa.
1392 2013-04-16  Richard Biener  <rguenther@suse.de>
1394         PR rtl-optimization/56921
1395         * loop-init.c (pass_rtl_move_loop_invariants): Add
1396         TODO_do_not_ggc_collect to todo_flags_finish.
1397         (pass_rtl_unswitch): Same.
1398         (pass_rtl_unroll_and_peel_loops): Same.
1399         (pass_rtl_doloop): Same.
1401 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
1403         * config/arm/arm.c (emit_multi_reg_push): New declaration
1404         for an existing function.
1405         (arm_emit_strd_push): New function.
1406         (arm_expand_prologue): Used here.
1407         (arm_emit_ldrd_pop): New function.
1408         (arm_expand_epilogue): Used here.
1409         (arm_get_frame_offsets): Update condition.
1410         (arm_emit_multi_reg_pop): Add a special case for load of a single
1411         register with writeback.
1413 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
1415         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
1416         description.
1418 2013-04-16  Richard Biener  <rguenther@suse.de>
1420         PR tree-optimization/56756
1421         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
1422         (first_mem_ref_loc): New.
1423         (execute_sm): Place the load temporarily before a previous
1424         access instead of in the latch edge to ensure its SSA dependencies
1425         are defined at points dominating the load.
1427 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
1429         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
1430         correct fix by moving header and footer insn to the footer of
1431         the merged basic block.  Clear BB_END of the merged-away block.
1433         PR middle-end/43631
1434         * emit-rtl.c (make_note_raw): New function.
1435         (link_insn_into_chain): New static inline function.
1436         (add_insn): Use it.
1437         (add_insn_before, add_insn_after): Factor insn chain linking code...
1438         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
1439         using link_insn_into_chain.
1440         (note_outside_basic_block_p): New helper function for emit_note_after
1441         and emit_note_before.
1442         (emit_note_after): Use nobb variant of add_insn_after if the note
1443         should not be contained in a basic block.
1444         (emit_note_before): Use nobb variant of add_insn_before if the note
1445         should not be contained in a basic block.
1446         (emit_note_copy): Use make_note_raw.
1447         (emit_note): Likewise.
1448         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
1449         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
1450         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
1451         the moved barrier the tail of the basic block it follows.
1452         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
1454 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
1456         PR tree-optimization/56962
1457         * gimple-ssa-strength-reduction.c (record_increment): Only set
1458         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1459         either rhs1 or rhs2 is equal to c->base_expr.
1461 2013-04-15  Richard Biener  <rguenther@suse.de>
1463         PR tree-optimization/56933
1464         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
1465         member.
1466         (GROUP_READ_WRITE_DEPENDENCE): Remove.
1467         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
1468         * tree-vect-data-refs.c (vect_analyze_group_access): Move
1469         dependence check ...
1470         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
1471         ... here.
1472         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
1473         GROUP_READ_WRITE_DEPENDENCE.
1475 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1477         * emit-rtl.c (reset_all_used_flags): New function.
1478         (verify_rtl_sharing): Call reset_all_used_flags before and after
1479         performing the checks.
1481 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1483         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
1484         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
1485         * config/arm/constraints.md (De): New constraint.
1486         * config/arm/neon.md (anddi3_neon): Delete.
1487         (neon_vand<mode>): Expand to standard anddi3 pattern.
1488         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
1489         Move earlier in the file.
1490         (neon_inv_logic_op2): Likewise.
1491         (arm_anddi_operand_neon): New predicate.
1493 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1495         * configure.ac (gcc_cv_ld_as_needed): Set
1496         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
1497         Use -z ignore, -z record on *-*-solaris2*.
1498         (HAVE_LD_AS_NEEDED): Update comment.
1499         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
1500         * configure: Regenerate.
1501         * config.in: Regenerate.
1502         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
1503         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
1504         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
1505         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
1506         equivalents.  Fix markup.
1507         * doc/tm.texi: Regenerate.
1509 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
1511         * config/i386/i386.opt: New option mstack-protector-guard=.
1512         * config/i386/i386-opts.h: Add enum stack_protector_guard.
1513         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
1514         TARGET_SSP_TLS_GUARD.
1515         * config/i386/i386.c (ix86_option_override_internal): Set
1516         ix86_stack_protector_guard.
1517         * config/i386/i386.md (stack_protect_set): Enable for
1518         TARGET_SSP_TLS_GUARD only.
1519         (stack_protect_set_<mode>): Ditto.
1520         (stack_protect_test): Ditto.
1521         (stack_protect_test_<mode>): Ditto.
1522         * doc/invoke.texi (i386 Option): Document.
1524 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1526         PR target/56890
1527         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1528         (S_MODES): Set H_MODE bit.
1529         (SF_MODES): Set only S_MODE and SF_MODE bits.
1530         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1531         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1532         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1533         <MODE_FLOAT>: Likewise.
1535 2013-04-15  Joey Ye  <joey.ye@arm.com>
1537         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
1539 2013-04-15  Joey Ye  <joey.ye@arm.com>
1541         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
1542         for real far jump.
1543         (thumb_far_jump_used_p): Count instruction size and set
1544         far_jump_used.
1546 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
1548         * reorg.c (fill_simple_delay_slots): Reindent block of code.
1549         * resource.c (mark_target_live_regs): Reformat conditional block.
1551 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1553         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
1554         notes, they are emitted only just before final.
1555         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
1557 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
1559         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
1560         * cfgrtl.c (delete_insn): Call it here instead.
1561         * lra-spills.c (lra_final_code_change): Use delete_insn.
1562         * haifa-sched.c (sched_remove_insn): Likewise.
1563         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
1564         returning to the nop pool.
1565         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
1566         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
1568 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
1570         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
1571         * doc/tm.texi: Regenerated.
1573 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
1575         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
1576         QImode checks.
1578 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
1580         * df-core.c (df_find_def): Compare register numbers.
1581         (df_find_use): Likewise.
1583 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
1585         PR target/56903
1586         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1587         lra_in_progress for return.
1589 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
1591         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
1592         define_insn into define_insn_and_split and emit movsicc patterns.
1594 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
1596         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
1598 2013-04-12  Richard Biener  <rguenther@suse.de>
1600         * tree-pass.h (TODO_do_not_ggc_collect): New.
1601         * passes.c (execute_one_ipa_transform_pass): Honor
1602         TODO_do_not_ggc_collect.
1603         (execute_one_pass): Likewise.
1605         Revert
1606         2013-04-10  Richard Biener  <rguenther@suse.de>
1608         * passes.c (init_optimization_passes): Remove reload pass.
1609         * ira.c (do_reload): Merge into ...
1610         (ira): ... this.
1611         (rest_of_handle_reload): Remove.
1612         (pass_reload): Likewise.
1613         * config/i386/i386.c (ix86_option_override): Refer to ira instead
1614         of reload for vzeroupper pass placement.
1616 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1618         PR tree-optimization/56918
1619         PR tree-optimization/56920
1620         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1621         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
1622         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
1623         use wide_mul_with_sign method.
1625 2013-04-12  Richard Biener  <rguenther@suse.de>
1627         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
1628         not be considered a gimple constant.
1630 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
1632         * fold-const.c (const_binop): Handle vector shifts by a scalar.
1633         (fold_binary_loc): Call const_binop also for mixed vector-scalar
1634         operations.
1636 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1637             Jakub Jelinek  <jakub@redhat.com>
1639         * opts.c: Include diagnostic-color.h.
1640         (common_handle_option): Handle OPT_fdiagnostics_color_.
1641         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
1642         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
1643         (diagnostic-color.o): New.
1644         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
1645         (diagnostic_color_rule): New enum.
1646         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
1647         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
1648         the location string.
1649         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
1650         either NULL, or color kind.
1651         * diagnostic-color.c: New file.
1652         * diagnostic-color.h: New file.
1653         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
1654         arguments.
1655         * doc/invoke.texi (-fdiagnostics-color): Document.
1656         * pretty-print.h (pp_show_color): Define.
1657         (struct pretty_print_info): Add show_color field.
1658         * diagnostic.c: Include diagnostic-color.h.
1659         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
1660         macros.  Colorize error:, warning: etc. strings and also the location
1661         string.
1662         (diagnostic_show_locus): Colorize the caret line.
1663         * pretty-print.c: Include diagnostic-color.h.
1664         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
1665         inside of %< %> quotes or quoted through q format modifier.
1667 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1669         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
1671 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1673         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
1674         code in CC_NZ mode.
1675         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
1676         pattern.
1678 2013-04-11  Marek Polacek  <polacek@redhat.com>
1680         PR tree-optimization/48184
1681         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
1683 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1685         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
1686         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
1687         (skip_simple_arithmetic): Tidy up.
1688         * tree.h (skip_simple_constant_arithmetic): Declare.
1690 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1692         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
1694 2013-04-11  Richard Biener  <rguenther@suse.de>
1696         * tree-vect-loop.c (get_initial_def_for_induction): Properly
1697         generate vector constants.
1699 2013-04-11  Richard Biener  <rguenther@suse.de>
1701         PR tree-optimization/56878
1702         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
1703         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
1704         New function.
1705         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1706         Prefer to align the DR with the most invariant base address.
1708 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1710         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
1711         comment.
1713 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
1715         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1716         floating-point vector comparisons against 0.
1718 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
1720         PR tree-optimization/56899
1721         * fold-const.c (extract_muldiv_1): Apply distributive law
1722         only if TYPE_OVERFLOW_WRAPS (ctype).
1724 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
1726         PR target/56124
1727         * ira-costs.c (scan_one_insn): Check whether the source rtx of
1728         loading has side effect.
1730 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
1732         * config/sparc/sparc.c: Include tree-pass.h.
1733         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
1734         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
1735         head of file.  Change return type.  Split off gate function.
1736         (sparc_gate_work_around_errata): New function.
1737         (pass_work_around_errata): New pass definition.
1738         (insert_pass_work_around_errata) New pass insert definition to
1739         insert pass_work_around_errata just after delayed-branch scheduling.
1740         (sparc_option_override): Insert the pass.
1741         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
1743 2013-04-10  David S. Miller  <davem@davemloft.net>
1745         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1746         or -mcpu=hypersparc.
1748         * target.def (cstore_mode): New hook.
1749         * target.h: Include insn-codes.h
1750         * targhooks.c: Likewise.
1751         (default_cstore_mode): New function.
1752         * targhooks.h: Declare it.
1753         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
1754         * doc/tm.texi: Rebuild.
1755         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
1756         target hook, rather than inspecting the insn_data.
1757         * config/sparc/sparc.c (sparc_cstore_mode): New function.
1758         (TARGET_CSTORE_MODE): Redefine.
1759         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
1760         result patterns.
1761         * config/sparc/predicates.md (cstore_result_operand): New special
1762         predicate.
1763         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
1764         Use it for operand 0.
1765         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
1766         (*snesi_special): Likewise.
1767         (*snesi_zero): Likewise.
1768         (*seqsi_zero): Likewise.
1769         (*sltu_insn): Likewise.
1770         (*sgeu_insn): Likewise.
1771         (*seqdi_special): Make operand 0 and comparison operation be of
1772         DImode.
1773         (*snedi_special): Likewise.
1774         (*snedi_special_vis3): Likewise.
1775         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
1776         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
1777         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
1778         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
1779         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
1780         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
1781         (*sltu_extend_sp64): Likewise.
1782         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
1783         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
1784         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
1785         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
1786         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
1788 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
1790         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1791         (aarch64_start_file): Use the new function.
1793 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
1794             Jason Merrill  <jason@redhat.com>
1796         * common.opt: Add -gdwarf.
1797         * opts.c (common_handle_option): Handle it.
1798         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
1800 2013-04-10  Richard Biener  <rguenther@suse.de>
1802         * passes.c (execute_todo): Do not call ggc_collect conditional here.
1803         (execute_one_ipa_transform_pass): But unconditionally here.
1804         (execute_one_pass): And here.
1805         (init_optimization_passes): Remove reload pass.
1806         * tree-pass.h (TODO_ggc_collect): Remove.
1807         (pass_reload): Likewise.
1808         * ira.c (do_reload): Merge into ...
1809         (ira): ... this.
1810         (rest_of_handle_reload): Remove.
1811         (pass_reload): Likewise.
1812         * config/i386/i386.c (ix86_option_override): Refer to ira instead
1813         of reload for vzeroupper pass placement.
1814         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
1815         and todo_flags_finish of all passes.
1817 2013-04-10  Richard Biener  <rguenther@suse.de>
1819         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
1820         first_const_oprnd field, rename first_def_type to first_op_type.
1821         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
1822         (vect_get_and_check_slp_defs): Always use the type of the
1823         operand.  Allow mixed vect_external_def, vect_constant_def types.
1824         (vect_get_constant_vectors): Handle mixed vect_external_def,
1825         vect_constant_def types.
1827 2013-04-10  Joern Rennecke <joern.rennecke@embecosm.com>
1829         PR tree-optimization/55524
1830         * tree-ssa-math-opts.c
1831         (convert_mult_to_fma): Don't use an fms construct
1832         when we don't have an fms operation, but fnma, and it looks
1833         likely that we'll be able to use the latter.
1835 2013-04-10  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1837         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
1838         function.
1839         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
1840         inline fail caused by overwritable functions.
1842 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
1844         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
1845         unnecessary bits in the constant power of two case.
1847 2013-04-10  Richard Biener  <rguenther@suse.de>
1849         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
1850         broken code swapping operands.
1851         (vect_build_slp_tree): Do not compute load permutations here.
1852         (vect_analyze_slp_instance): Compute load permutations here,
1853         after building the SLP tree.
1855 2013-04-09  Christian Bruel  <christian.bruel@st.com>
1857         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
1858         of next/prev_real_insn.
1860 2013-04-09  Jan Hubicka  <jh@suse.cz>
1862         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1863         Drop aliased parameter.
1864         (function_and_variable_visibility): Do not handle alias pairs.
1865         * cgraph.c (varpool_externally_visible_p): Update prototype.
1866         * varpool.c (varpool_add_new_variable): Update.
1868 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1870         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
1872 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
1874         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
1876         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
1878 2013-04-09  Marek Polacek  <polacek@redhat.com>
1880         PR tree-optimization/48762
1881         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
1883 2013-04-09  Richard Biener  <rguenther@suse.de>
1885         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
1886         dealing with cost.
1887         (vect_build_slp_tree): Likewise.
1888         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
1889         calculating the cost of a SLP instance.
1890         (vect_analyze_slp_instance): Use it from here, after building
1891         the SLP tree.
1893 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
1895         PR middle-end/56883
1896         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1897         expand_omp_for_static_chunk): Use simple_p = true in
1898         force_gimple_operand_gsi calls when assigning to addressable decls.
1900 2013-04-09  Jeff Law  <law@redhat.com>
1902         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
1903         when the boolean was created by converting a wider object which
1904         had a boolean range.
1906 2013-04-09  Richard Biener  <rguenther@suse.de>
1908         * tree-vectorizer.h (slp_void_p): Remove.
1909         (slp_tree): Typedef before _slp_tree declaration.
1910         (struct _slp_tree): Use a vector of slp_tree as children.
1911         (vect_get_place_in_interleaving_chain): Remove.
1912         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
1913         Move ...
1914         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
1915         and make static.
1916         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
1917         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
1918         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
1919         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
1920         Use slp_node instead of slp_void_p and adjust.
1922 2013-04-09  Richard Biener  <rguenther@suse.de>
1924         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
1925         work that is not necessary.
1927 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
1929         PR tree-optimization/56854
1930         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
1931         forward into clobber stmts if it would change MEM_REF lhs into
1932         non-MEM_REF.
1934 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
1936         * tree.c (type_hash_lookup, type_hash_add): Make static.
1937         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
1939 2013-04-09  Richard Biener  <rguenther@suse.de>
1941         * tree.h (unsave_expr_now): Remove.
1942         * tree-inline.c (mark_local_for_remap_r): Remove.
1943         (unsave_expr_1): Likewise.
1944         (unsave_r): Likewise.
1945         (unsave_expr_now): Likewise.
1946         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
1947         (propagate_tree_value): Likewise.
1949 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
1951         * doc/rtl.texi (sequence): Rewrite documentation to match the
1952         current use of SEQUENCE rtl objects.
1953         * rtl.def (SEQUENCE): Likewise.
1955         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
1956         Update documentation.
1957         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
1958         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
1960         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
1962 2013-04-08  Teresa Johnson  <tejohnson@google.com>
1964         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
1965         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
1966         methods.
1967         (estimate_edge_size_and_time): Add comment to suggest using rounding
1968         methods.
1969         (estimate_node_size_and_time): Ditto.
1970         (remap_edge_change_prob): Use helper rounding divide methods.
1971         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
1972         (gimple_mod_pow2_value_transform): Ditto.
1973         (gimple_mod_subtract_transform): Ditto.
1974         (gimple_ic_transform): Ditto.
1975         (gimple_stringops_transform): Ditto.
1976         * stmt.c (conditional_probability): Ditto.
1977         (emit_case_dispatch_table): Ditto.
1978         * lto-cgraph.c (merge_profile_summaries): Ditto.
1979         * tree-optimize.c (execute_fixup_cfg): Ditto.
1980         * cfgcleanup.c (try_forward_edges): Ditto.
1981         * cfgloopmanip.c (scale_loop_profile): Ditto.
1982         (loopify): Ditto.
1983         (duplicate_loop_to_header_edge): Ditto.
1984         (lv_adjust_loop_entry_edge): Ditto.
1985         * tree-vect-loop.c (vect_transform_loop): Ditto.
1986         * profile.c (compute_branch_probabilities): Ditto.
1987         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1988         * lto-streamer-in.c (input_cfg): Ditto.
1989         * gimple-streamer-in.c (input_bb): Ditto.
1990         * ipa-cp.c (update_profiling_info): Ditto.
1991         (update_specialized_profile): Ditto.
1992         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
1993         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
1994         rounding methods.
1995         * sched-rgn.c (compute_dom_prob_ps): Ditto.
1996         (compute_trg_info): Ditto.
1997         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
1998         (purge_dead_edges): Ditto.
1999         * loop-unswitch.c (unswitch_loop): Ditto.
2000         * cgraphclones.c (cgraph_clone_edge): Ditto.
2001         (cgraph_clone_node): Ditto.
2002         * tree-inline.c (copy_bb): Ditto.
2003         (copy_edges_for_bb): Ditto.
2004         (initialize_cfun): Ditto.
2005         (copy_cfg_body): Ditto.
2006         (expand_call_inline): Ditto.
2008 2013-04-08  Kai Tietz  <ktietz@redhat.com>
2010         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
2011         TARGET_CYGWIN64 by TARGET_64BIT.
2013 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2015         * config/epiphany/epiphany.md (GPR_1): New constant.
2016         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
2017         * config/epiphany/epiphany.c (gen_compare_reg):
2018         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
2019         is already in place.
2020         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
2021         Don't require being called during rtl expansion; If y operlaps r0,
2022         return 0.
2023         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
2024         (epiphany_expand_epilogue): Likewise.
2026         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
2027         Don't use CC_FPmode for ORDERED / UNORDERED.
2028         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
2030         * config/epiphany/constraints.md (CnL): New constraint.
2031         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
2032         * config/epiphany/predicates.md (add_operand): Allow 1024.
2034         * config/epiphany/epiphany.md (logical_op): New code iterator.
2035         (op_mnc): New code attribute.
2036         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
2037         (mov_f+1, mov_f+2): New peephole2 patterns.
2039         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
2040         (cstoresi4): Also allow re-use of zero result when doing a NE
2041         comparison to a non-zero operand.
2042         Use (clobber (scratch)) for first insn if the gpr output is not needed.
2044         * config/epiphany/epiphany.md (<insn_opname>v2si3):
2045         Use gen_addsi3_i / gen_subsi3_i.
2047 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
2049         PR c++/34949
2050         PR c++/50243
2051         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
2052         contain anything but clobbers, at most one __builtin_stack_restore,
2053         optionally debug stmts and final resx, and if it has at least one
2054         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
2055         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
2056         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
2057         which isn't defaut definition, remove them.
2058         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
2059         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
2060         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
2061         with MEM_REF LHS with SSA_NAME address.
2063 2013-04-08  Jeff Law  <law@redhat.com>
2065         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
2067 2013-04-08  Richard Biener  <rguenther@suse.de>
2069         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
2070         extra newline.
2071         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
2072         determined vector type.
2073         (vect_analyze_data_refs): Likewise.
2074         (vect_get_new_vect_var): Adjust.
2075         (vect_create_destination_var): Preserve SSA name versions.
2076         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
2077         not dump anything here.
2079 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
2081         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
2082         Add member lr_slot_known.
2083         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
2084         if necessary.
2085         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
2086         Remove code that sets lr_slot_offset according to what a previous
2087         version of epiphany_emit_save_restore used to do.
2088         (epiphany_emit_save_restore): When doing an lr save or restore,
2089         set/verify lr_slot_known and lr_slot_offset.
2091 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
2093         PR target/54338
2094         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
2095         in ALL_REGS.
2097 2013-04-08  Richard Biener  <rguenther@suse.de>
2099         * alias.c (find_base_term): Fix thinko in previous change.
2101 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
2103         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
2104         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
2105         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
2106         if possible to compute val.
2107         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
2108         For QImode integers don't require anything about precision.  Use
2109         const_with_all_bytes_same to find out if the constant doesn't have
2110         repeated bytes in it.
2112 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2114         * config/s390/s390.c (s390_expand_insv): Only accept insertions
2115         within mode size.
2117 2013-04-08  Marek Polacek  <polacek@redhat.com>
2119         PR rtl-optimization/48182
2120         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
2121         value to 1.
2123 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2125         PR target/55487
2126         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
2127         nuses, make sure we have a label.
2129 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2131         PR target/56843
2132         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
2133         (rs6000_emit_swdiv_low_precision): Remove.
2134         (rs6000_emit_swdiv): Rewrite to handle between one and four
2135         iterations of Newton-Raphson generally; modify required number of
2136         iterations for some cases.
2137         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
2139 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2141         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
2142         set-but-unused variable.
2144         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
2145         basic blocks of released function bodies garbage-collectable.
2147         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
2148         (struct rtl_opt_pass): Add TODO_df_finish.
2150         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
2152 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2154         * config/arm/constraints.md (q): New constraint.
2155         * config/arm/ldrdstrd.md: New file.
2156         * config/arm/arm.md (ldrdstrd.md) New include.
2157         (arm_movdi): Use "q" instead of "r" constraint
2158         for double-word memory access.
2159         (movdf_soft_insn): Likewise.
2160         * config/arm/vfp.md (movdi_vfp): Likewise.
2161         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
2162         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
2163         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
2164         (mem_ok_for_ldrd_strd): Likewise.
2165         (output_move_double): Update assertion.
2167 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2169         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
2171 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2173         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
2174         define_insn_and_split.
2175         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
2177 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2179         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
2180         define_insn_and_split.
2181         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
2182         (shiftsi3_compare): New pattern.
2183         (rrx): New pattern.
2184         * config/arm/unspecs.md (UNSPEC_RRX): New.
2186 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2188         * config/arm/arm.md (negdi_extendsidi): New pattern.
2189         (negdi_zero_extendsidi): Likewise.
2191 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2193         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
2194         define_insn_and_split.
2195         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
2196         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
2198 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2200         * config/arm/arm.md (arm_subdi3): Convert define_insn into
2201         define_insn_and_split.
2202         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
2203         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
2205 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2207         * config/arm/arm.md (subsi3_carryin): New pattern.
2208         (subsi3_carryin_const): Likewise.
2209         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
2210         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
2212 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2214         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
2216 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
2218         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
2219         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
2221 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2223         * config/arm/arm.c (arm_expand_builtin): Change fcode
2224         type to unsigned int.
2226 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2228         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
2230 2013-04-04  Ian Lance Taylor  <iant@google.com>
2232         * doc/standards.texi (Standards): The Go frontend supports the Go 1
2233         language standard.
2235 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
2237         PR middle-end/56729
2238         * df-scan.c (df_insn_delete): Disable failing assert.
2240 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2242         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
2243         New function prototype.
2244         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
2245         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
2246         (arm_builtin_vectorized_function): New function.
2248 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2250         * config/arm/arm_neon_builtins.def: New file.
2251         * config/arm/arm.c (neon_builtin_data): Move contents to
2252         arm_neon_builtins.def.
2253         (enum arm_builtins): Include neon builtin definitions.
2254         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
2255         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
2257 2013-04-04  Marek Polacek  <polacek@redhat.com>
2259         PR tree-optimization/48186
2260         * predict.c (maybe_hot_frequency_p): Return false if
2261         HOT_BB_FREQUENCY_FRACTION is 0.
2262         (cgraph_maybe_hot_edge_p): Likewise.
2264 2013-04-04  Richard Biener  <rguenther@suse.de>
2266         PR tree-optimization/56826
2267         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
2268         more accurately.
2270 2013-04-04  Richard Biener  <rguenther@suse.de>
2272         PR tree-optimization/56213
2273         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
2274         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
2276 2013-04-04  Richard Biener  <rguenther@suse.de>
2278         PR tree-optimization/56837
2279         * tree-loop-distribution.c (classify_partition): For non-zero
2280         values require that the value has the same precision as its
2281         mode to be useful as memset value.
2283 2013-04-03  Nick Clifton  <nickc@redhat.com>
2285         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
2286         (fmssf4): Use fmsf.s on E3V5 architectures.
2287         (fnmasf4): Use fnmaf.s on E3V5 architectures.
2288         (fnmssf4): Use fnmsf.s on E3V5 architectures.
2290 2013-04-03  Jeff Law  <law@redhat.com>
2292         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
2293         (lra-eliminations.o): Likewise.
2295 2013-04-03  Teresa Johnson  <tejohnson@google.com>
2297         * gcov-io.c (compute_working_sets): Moved most of body of old
2298         compute_working_sets here from profile.c.
2299         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
2300         (gcov_working_set_t): Moved typedef here from basic-block.h
2301         (compute_working_set): Declare.
2302         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
2303         (get_working_sets): Renamed from compute_working_set,
2304         replace most of body with call to new compute_working_sets.
2305         (get_exec_counts): Replace call to compute_working_sets
2306         to get_working_sets.
2307         * profile.h (get_working_sets): Renamed from compute_working_set.
2308         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
2309         to get_working_sets.
2310         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
2311         * gcov-dump.c (dump_working_sets): New function.
2313 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
2315         * hwint.c (sext_hwi, zext_hwi): New functions.
2316         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
2317         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
2318         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
2319         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
2320         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
2321         (sext_hwi, zext_hwi): New functions.
2323 2013-04-03  Jeff Law  <law@redhat.com>
2325         PR tree-optimization/56799
2326         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
2327         back test for widening conversion erroneously dropped in prior change.
2329 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2331         PR target/56809
2332         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
2333         instead of next_real_insn.
2335 2013-04-03  Marek Polacek  <polacek@redhat.com>
2337         PR sanitizer/55702
2338         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
2340 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2342         PR target/56809
2343         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
2344         next_real_insn.
2345         (thumb1_output_casesi): Likewise.
2346         (thumb2_output_casesi): Likewise.
2348 2013-04-03  Richard Biener  <rguenther@suse.de>
2350         PR tree-optimization/56817
2351         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
2352         Split out ...
2353         (tree_unroll_loops_completely_1): ... new function to manually
2354         walk the loop tree, properly defering outer loops of unrolled
2355         loops to later iterations.
2357 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
2359         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
2360         (vectorizable_load): Likewise.
2361         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
2362         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
2364 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
2366         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
2367         BIT_FIELD_REF.
2369 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2371         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
2373 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
2375         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
2377 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
2379         PR tree-optimization/56790
2380         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
2381         folding.
2383 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
2385         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
2386         Handle VEC_MERGE.
2387         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
2388         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
2389         equal arguments.
2391 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
2393         PR c/19449
2394         * tree.h (force_folding_builtin_constant_p): New decl.
2395         * builtins.c (force_folding_builtin_constant_p): New variable.
2396         (fold_builtin_constant_p): Fold immediately also if
2397         force_folding_builtin_constant_p.
2399 2013-04-03  Richard Biener  <rguenther@suse.de>
2401         PR tree-optimization/56812
2402         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
2403         DRs of the same interleaving chain are independent.
2405 2013-04-02  Jason Merrill  <jason@redhat.com>
2407         * gdbinit.in (pbb): Use debug fn.
2409 2013-04-02  Lawrence Crowl  <crowl@google.com>
2411         * sese.h (struct ivtype_map_elt_s): Remove unused.
2412         (extern debug_ivtype_map): Remove unused.
2413         (extern eq_ivtype_map_elts): Remove unused.
2414         * sese.c (debug_ivtype_map): Removed unused.
2415         (debug_ivtype_map_1): Removed unused.
2416         (debug_ivtype_elt): Remove unused.
2417         (eq_ivtype_map_elts): Remove unused.
2420 2013-04-02  Kai Tietz  <ktietz@redhat.com>
2422         PR target/52790
2423         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
2424         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
2425         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
2426         function.
2427         (legitimize_pe_coff_symbol): Likewise.
2428         (is_imported_p): New helper-function.
2429         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
2430         for Windows x64 targets.
2431         (ix86_expand_prologue): Optimize for pe-coff targets.
2432         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
2433         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
2434         medium/large code-model.
2435         (legitimize_pic_address): Likewise.
2436         (legitimize_tls_address): Likewise.
2437         (ix86_expand_call): Likewise.
2438         (x86_output_mi_thunk): Likewise.
2439         (get_dllimport_decl): Add new beimport argument.
2440         (construct_plt_address): Don't assert for x64 pe-coff targets.
2441         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
2442         targets.
2443         (SYMBOL_FLAG_STUBVAR): New macro.
2444         (SYMBOL_REF_STUBVAR_P): Likewise.
2445         * config/i386/winnt.c (stub_list): New structure.
2446         (stub_head): New local variable.
2447         (i386_pe_record_stub): New function.
2448         (i386_pe_file_end): Emit refptr-stubs.
2450 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
2452         PR rtl-optimization/56745
2453         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
2454         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
2456         PR c++/34949
2457         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
2458         and both of them are MEM_REFs, just compare first argument for
2459         equality and attempt to deal even with differing offsets.
2461         PR c++/34949
2462         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
2463         of gimple_clobber_p to be MEM_REF.
2464         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
2465         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
2466         after gimplification.
2467         * asan.c (get_mem_ref_of_assignment): Don't instrument
2468         gimple_clobber_p stmts.
2469         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
2470         gimple_clobber_p stmt if they have MEM_REF lhs and
2471         are dead because of another gimple_clobber_p stmt.
2472         * tree-ssa-live.c (clear_unused_block_pointer): Treat
2473         gimple_clobber_p stmts like debug stmts.
2474         (remove_unused_locals): Remove clobbers with MEM_REF lhs
2475         that refer to unused VAR_DECLs or uninitialized values.
2476         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
2477         gimple_clobber_p stmts if they refer to removed parameters.
2478         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
2479         formatting.
2481 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
2483         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
2484         using SWI48 mode attribute.
2486 2013-04-02  Wei Mi  <wmi@google.com>
2488         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
2489         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
2490         *<rotate_insn><mode>3_mask in i386.md.
2492 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2494         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
2496 2013-04-02  Richard Biener  <rguenther@suse.de>
2498         PR tree-optimization/56778
2499         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2500         Runtime alias tests are not supported for gather loads.
2501         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
2502         stmts referenced from SSA operands before updating SSA form.
2504 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
2505             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2507         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
2508         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
2509         * config/arm/cortex-a53.md: New file.
2510         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
2511         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
2512         * config/arm/arm.c (arm_issue_rate): Likewise.
2513         * config/arm/arm-tune.md: Regenerate
2514         * config/arm/arm-tables.opt: Regenerate.
2515         * config/arm/arm-cores.def: Add cortex-a53.
2517 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
2519         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
2520         non-static link.
2522 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
2524         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
2525         scalar load/store operations using B/H registers.
2526         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
2528 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
2530         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
2531         scalar move.
2532         * config/aarch64/aarch64.c
2533         (aarch64_simd_scalar_immediate_valid_for_move): New.
2534         * config/aarch64/aarch64-protos.h
2535         (aarch64_simd_scalar_immediate_valid_for_move): New.
2536         * config/aarch64/constraints.md (Dh, Dq): New.
2537         * config/aarch64/iterators.md (hq): New.
2539 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
2541         * reorg.c (get_branch_condition): Deal with conditional returns.
2542         (fill_simple_delay_slots): Remove dead code dealing with jumps.
2544 2013-04-01  Wei Mi  <wmi@google.com>
2546         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
2547         Truncate operand 2 using %b asm operand modifier.
2548         (*<shift_insn><mode>3_mask): Ditto.
2549         (*<rotate_insn><mode>3_mask): Ditto.
2551 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
2553         PR middle-end/56798
2554         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
2556 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2558         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
2559         of next_real_insn.
2560         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
2562 2013-03-30  Lawrence Crowl  <crowl@google.com>
2564         * dse.c (clear_alias_sets): Remove never set.
2565         (disqualified_clear_alias_sets): Remove never set.
2566         (clear_alias_mode_pool): Remove never set.
2567         (dse_step0): Remove condition that is never true.
2568         (canon_address): Remove condition that is never true.
2569         (dse_step7): Remove condition that is never true.
2570         (rest_of_handle_dse): Remove condition that is never true.
2571         (rest_of_handle_dse::did_global): Remove never read from above.
2572         (dse_step2_spill): Remove never called from above.
2573         (dse_step5_spill): Remove never called from above.
2575 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
2577         * doc/md.texi (Standard Names) <casesi>: Update documentation for
2578         JUMP_TABLE_DATA changes.
2579         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
2580         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
2581         (Insns) <jump_table_data>: New entry.
2582         * doc/tm.texi: Regenerate.
2584         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
2586         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
2587         for table jump at the end of a basic block using tablejump_p.
2588         * targhooks.c (default_invalid_within_doloop): Likewise.
2589         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
2590         target hook implementation that is identical to the default hook.
2591         (rs6000_invalid_within_doloop): Remove.
2593         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
2594         unused variable from tablejump_p call.
2596         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
2597         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
2598         (INSN_DELETED_P): Likewise.
2599         (emit_jump_table_data): New prototype.
2600         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
2601         after 4th as unused.
2602         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
2603         * sched-vis.c (print_insn): Likewise.
2604         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
2605         insn for compatibility with back ends that use next_active_insn to
2606         identify jump table data.
2607         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
2608         (remove_insn): Likewise.
2609         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
2610         to be emitted.
2611         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
2612         (emit_jump_table_data): New function.
2614         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
2615         basic block, a JUMP_TABLE_DATA never is.
2616         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
2617         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
2618         off from code handling real insns.
2619         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
2620         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
2621         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
2622         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
2623         is not a NONDEBUG_INSN_P.
2624         * ira-costs.c (scan_one_insn): Likewise.
2625         * jump.c (mark_all_labels): Likewise.
2626         (mark_jump_label_1): Likewise.
2627         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2628         * lra.c (get_insn_freq): Expect all insns reaching here to be in
2629         a basic block.
2630         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
2631         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
2632         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
2633         JUMP_TABLE_DATA_P insns.
2634         (calculate_elim_costs_all_insns): Likewise.
2635         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
2636         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
2637         (delete_output_reload): Code style fixups.
2638         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
2639         insn flags on this non-insn.
2640         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
2641         as scheduling barriers, for pre-change compatibility.
2642         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
2643         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
2645         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
2646         redundant JUMP_TABLE_DATA_P test.
2647         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
2648         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2649         (frv_for_each_packet): Likewise.
2650         * config/i386/i386.c (min_insn_size): Likewise.
2651         (ix86_avoid_jump_mispredicts): Likewise.
2652         * config/m32r/m32r.c (m32r_is_insn): Likewise.
2653         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
2654         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2655         (mips16_insn_length): Robustify.
2656         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
2657         (mips16_split_long_branches): Likewise.
2658         * config/pa/pa.c (pa_combine_instructions): Likewise.
2659         * config/rs6000/rs6000.c (get_next_active_insn): Treat
2660         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
2661         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
2662         as contributing to pool range lengths.
2663         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
2664         Remove redundant JUMP_TABLE_DATA_P test.
2665         (sh_loop_align): Likewise.
2666         (split_branches): Likewise.
2667         (sh_insn_length_adjustment): Likewise.
2668         * config/spu/spu.c (get_branch_target): Likewise.
2670 2013-03-29  Jan Hubicka  <jh@suse.cz>
2672         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
2673         gcov streaming; stream hot bb threshold to ltrans.
2674         * predict.c (get_hot_bb_threshold): Break out from ....
2675         (maybe_hot_count_p): ... here.
2676         (set_hot_bb_threshold): New function.
2677         * lto-section-in.c (lto_section_name): Add profile.
2678         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
2679         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
2680         and data-streamer.h
2681         (histogram_entry): New structure.
2682         (histogram, histogram_pool): New global vars.
2683         (histogram_hash): New structure.
2684         (histogram_hash::hash): New method.
2685         (histogram_hash::equal): Likewise.
2686         (account_time_size): New function.
2687         (cmp_counts): New function.
2688         (dump_histogram): New function.
2689         (ipa_profile_generate_summary): New function.
2690         (ipa_profile_write_summary): New function.
2691         (ipa_profile_read_summary): New function.
2692         (ipa_profile): Decide on threshold.
2693         (pass_ipa_profile): Add ipa_profile_write_summary and
2694         ipa_profile_read_summary.
2695         * Makefile.in (ipa.o): Update dependencies.
2696         * lto-streamer.h (LTO_section_ipa_profile): New section.
2698 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2700         * tree.h (VAR_P): New.
2702 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
2704         PR lto/56777
2705         * doc/invoke.texi ([-fwhole-program]): Fix typo.
2707 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
2709         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
2710         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2711         (control_flow_insn_p): Likewise.
2712         * cfgrtl.c (duplicate_insn_chain): Likewise.
2713         * final.c (get_attr_length_1): Likewise.
2714         (shorten_branches): Likewise.
2715         (final_scan_insn): Likewise.
2716         * function.c (instantiate_virtual_regs): Likewise.
2717         * gcse.c (insert_insn_end_basic_block): Likewise.
2718         * ira-costs.c (scan_one_insn): Likewise.
2719         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
2720         * lra.c (check_rtl): Likewise.
2721         * reload1.c (elimination_costs_in_insn): Likewise.
2722         * reorg.c (follow_jumps): Likewise.
2724         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
2725         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
2726         (thumb_far_jump_used_p): Likewise.
2727         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
2728         (workaround_speculation): Likewise.
2729         (add_sched_insns_for_speculation): Likewise.
2730         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
2731         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
2732         (frv_for_each_packet): Likewise.
2733         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
2734         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
2735         (final_emit_insn_group_barriers): Likewise.
2736         * config/m32r/m32r.c (m32r_is_insn): Likewise.
2737         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
2738         (mips16_insn_length): Likewise.
2739         * config/pa/pa.c (pa_reorg): Likewise.
2740         (pa_combine_instructions): Likewise.
2741         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
2742         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
2743         (sh_reorg): Likewise.
2744         (split_branches): Likewise.
2745         * config/spu/spu.c (get_branch_target): Likewise.
2747         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
2748         JUMP_TABLE_DATA_P.
2750 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
2752         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
2753         Fix declaration name.
2755 2013-03-28  Lawrence Crowl  <crowl@google.com>
2757         * graphds.h (struct graph.indicies): Remove unused.
2758         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
2759         (SCOP_ORIGINAL_PDDRS): Remove unused.
2760         * sese.h (extern insert_loop_close_phis): Removed unused.
2761         (extern insert_guard_phis): Removed unused.
2762         (extern ivtype_map_elt_info): Removed unused.
2763         (new_ivtype_map_elt): Removed unused.
2764         * sese.c (ivtype_map_elt_info): Removed unused.
2766 2013-03-28  Lawrence Crowl  <crowl@google.com>
2768         * Makefile.in: Add several missing include dependences.
2769         (DUMPFILE_H): New.
2770         (test-dump.o): New.  This object is not added to any executable,
2771         but is present for ad-hoc testing.
2772         * bitmap.c
2773         (debug (const bitmap_head_def &)): New.
2774         (debug (const bitmap_head_def *)): New.
2775         * bitmap.h
2776         (extern debug (const bitmap_head_def &)): New.
2777         (extern debug (const bitmap_head_def *)): New.
2778         * cfg.c
2779         (debug (edge_def &)): New.
2780         (debug (edge_def *)): New.
2781         * cfghooks.c
2782         (debug (basic_block_def &)): New.
2783         (debug (basic_block_def *)): New.
2784         * dumpfile.h
2785         (dump_node (const_tree, int, FILE *)): Correct source file.
2786         * dwarf2out.c
2787         (debug (die_struct &)): New.
2788         (debug (die_struct *)): New.
2789         * dwarf2out.h
2790         (extern debug (die_struct &)): New.
2791         (extern debug (die_struct *)): New.
2792         * gimple-pretty-print.c
2793         (debug (gimple_statement_d &)): New.
2794         (debug (gimple_statement_d *)): New.
2795         * gimple-pretty-print.h
2796         (extern debug (gimple_statement_d &)): New.
2797         (extern debug (gimple_statement_d *)): New.
2798         * ira-build.c
2799         (debug (ira_allocno_copy &)): New.
2800         (debug (ira_allocno_copy *)): New.
2801         (debug (ira_allocno &)): New.
2802         (debug (ira_allocno *)): New.
2803         * ira-int.h
2804         (extern debug (ira_allocno_copy &)): New.
2805         (extern debug (ira_allocno_copy *)): New.
2806         (extern debug (ira_allocno &)): New.
2807         (extern debug (ira_allocno *)): New.
2808         * ira-lives.c
2809         (debug (live_range &)): New.
2810         (debug (live_range *)): New.
2811         * lra-int.h
2812         (debug (lra_live_range &)): New.
2813         (debug (lra_live_range *)): New.
2814         * lra-lives.c
2815         (debug (lra_live_range &)): New.
2816         (debug (lra_live_range *)): New.
2817         * omega.c
2818         (debug (omega_pb_d &)): New.
2819         (debug (omega_pb_d *)): New.
2820         * omega.h
2821         (extern debug (omega_pb_d &)): New.
2822         (extern debug (omega_pb_d *)): New.
2823         * print-rtl.c
2824         (debug (const rtx_def &)): New.
2825         (debug (const rtx_def *)): New.
2826         * print-tree.c
2827         (debug_tree (tree): Move within file.
2828         (debug_raw (const tree_node &)): New.
2829         (debug_raw (const tree_node *)): New.
2830         (dump_tree_via_hooks (const tree_node *, int)): New.
2831         (debug (const tree_node &)): New.
2832         (debug (const tree_node *)): New.
2833         (debug_verbose (const tree_node &)): New.
2834         (debug_verbose (const tree_node *)): New.
2835         (debug_head (const tree_node &)): New.
2836         (debug_head (const tree_node *)): New.
2837         (debug_body (const tree_node &)): New.
2838         (debug_body (const tree_node *)): New.
2839         (debug_vec_tree (tree): Move and reimplement in terms of dump.
2840         (debug (vec<tree, va_gc> &)): New.
2841         (debug (vec<tree, va_gc> *)): New.
2842         * rtl.h
2843         (extern debug (const rtx_def &)): New.
2844         (extern debug (const rtx_def *)): New.
2845         * sbitmap.c
2846         (debug_raw (simple_bitmap_def &)): New.
2847         (debug_raw (simple_bitmap_def *)): New.
2848         (debug (simple_bitmap_def &)): New.
2849         (debug (simple_bitmap_def *)): New.
2850         * sbitmap.h
2851         (extern debug (simple_bitmap_def &)): New.
2852         (extern debug (simple_bitmap_def *)): New.
2853         (extern debug_raw (simple_bitmap_def &)): New.
2854         (extern debug_raw (simple_bitmap_def *)): New.
2855         * sel-sched-dump.c
2856         (debug (vinsn_def &)): New.
2857         (debug (vinsn_def *)): New.
2858         (debug_verbose (vinsn_def &)): New.
2859         (debug_verbose (vinsn_def *)): New.
2860         (debug (expr_def &)): New.
2861         (debug (expr_def *)): New.
2862         (debug_verbose (expr_def &)): New.
2863         (debug_verbose (expr_def *)): New.
2864         (debug (vec<rtx> &)): New.
2865         (debug (vec<rtx> *)): New.
2866         * sel-sched-dump.h
2867         (extern debug (vinsn_def &)): New.
2868         (extern debug (vinsn_def *)): New.
2869         (extern debug_verbose (vinsn_def &)): New.
2870         (extern debug_verbose (vinsn_def *)): New.
2871         (extern debug (expr_def &)): New.
2872         (extern debug (expr_def *)): New.
2873         (extern debug_verbose (expr_def &)): New.
2874         (extern debug_verbose (expr_def *)): New.
2875         (extern debug (vec<rtx> &)): New.
2876         (extern debug (vec<rtx> *)): New.
2877         * sel-sched-ir.h
2878         (_list_iter_cond_expr): Make inline instead of static.
2879         * sreal.c
2880         (debug (sreal &)): New.
2881         (debug (sreal *)): New.
2882         * sreal.h
2883         (extern debug (sreal &)): New.
2884         (extern debug (sreal *)): New.
2885         * tree.h
2886         (extern debug_raw (const tree_node &)): New.
2887         (extern debug_raw (const tree_node *)): New.
2888         (extern debug (const tree_node &)): New.
2889         (extern debug (const tree_node *)): New.
2890         (extern debug_verbose (const tree_node &)): New.
2891         (extern debug_verbose (const tree_node *)): New.
2892         (extern debug_head (const tree_node &)): New.
2893         (extern debug_head (const tree_node *)): New.
2894         (extern debug_body (const tree_node &)): New.
2895         (extern debug_body (const tree_node *)): New.
2896         (extern debug (vec<tree, va_gc> &)): New.
2897         (extern debug (vec<tree, va_gc> *)): New.
2898         * tree-cfg.c
2899         (debug (struct loop &)): New.
2900         (debug (struct loop *)): New.
2901         (debug_verbose (struct loop &)): New.
2902         (debug_verbose (struct loop *)): New.
2903         * tree-dump.c: Add header dependence.
2904         * tree-flow.h
2905         (extern debug (struct loop &)): New.
2906         (extern debug (struct loop *)): New.
2907         (extern debug_verbose (struct loop &)): New.
2908         (extern debug_verbose (struct loop *)): New.
2909         * tree-data-ref.c
2910         (debug (data_reference &)): New.
2911         (debug (data_reference *)): New.
2912         (debug (vec<data_reference_p> &)): New.
2913         (debug (vec<data_reference_p> *)): New.
2914         (debug (vec<ddr_p> &)): New.
2915         (debug (vec<ddr_p> *)): New.
2916         * tree-data-ref.h
2917         (extern debug (data_reference &)): New.
2918         (extern debug (data_reference *)): New.
2919         (extern debug (vec<data_reference_p> &)): New.
2920         (extern debug (vec<data_reference_p> *)): New.
2921         (extern debug (vec<ddr_p> &)): New.
2922         (extern debug (vec<ddr_p> *)): New.
2923         * tree-ssa-alias.c
2924         (debug (pt_solution &)): New.
2925         (debug (pt_solution *)): New.
2926         * tree-ssa-alias.h
2927         (extern debug (pt_solution &)): New.
2928         (extern debug (pt_solution *)): New.
2929         * tree-ssa-alias.c
2930         (debug (_var_map &)): New.
2931         (debug (_var_map *)): New.
2932         (debug (tree_live_info_d &)): New.
2933         (debug (tree_live_info_d *)): New.
2934         * tree-ssa-alias.h
2935         (extern debug (_var_map &)): New.
2936         (extern debug (_var_map *)): New.
2937         (extern debug (tree_live_info_d &)): New.
2938         (extern debug (tree_live_info_d *)): New.
2940 2013-03-28  Jan Hubicka  <jh@suse.cz>
2942         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
2944 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
2946         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
2947         record only when desired or required.
2949 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
2951         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
2952         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
2954 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2956         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
2957         (*andsi3_compare0_uxtw): New pattern.
2958         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
2959         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
2961 2013-03-28  Jan Hubicka  <jh@suse.cz>
2963         * data-streamer-in.c (streamer_read_gcov_count): New function.
2964         * gimple-streamer-out.c: Include value-prof.h.
2965         (output_gimple_stmt): Output histogram.
2966         (output_bb): Use streamer_write_gcov_count.
2967         * value-prof.c: Include data-streamer.h
2968         (dump_histogram_value): Add HIST_TYPE_MAX.
2969         (stream_out_histogram_value): New function.
2970         (stream_in_histogram_value): New function.
2971         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
2972         (stream_out_histogram_value, stream_in_histogram_value): Declare.
2973         * data-streamer-out.c (streamer_write_gcov_count): New function.
2974         (streamer_write_gcov_count_stream): New function.
2975         * lto-cgraph.c (lto_output_edge): Update counter streaming.
2976         (lto_output_node): Likewise.
2977         (input_node, input_edge): Likewise.
2978         * lto-streamer-out.c (output_cfg): Update streaming.
2979         * lto-streamer-in.c (input_cfg): Likewise.
2980         * data-streamer.h (streamer_write_gcov_count,
2981         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
2982         * gimple-streamer-in.c: Include value-prof.h
2983         (input_gimple_stmt): Input histograms.
2984         (input_bb): Update profile streaming.
2986 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
2988         * genmodes.c (emit_max_int): New function.
2989         (emit_insn_modes_h): Added call to emit_max_function.
2990         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
2991         Added doc.
2992         * machmode.def: Fixed comment.
2994 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
2996         * combine.c (try_combine): Removed useless assert.
2997         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
2999 2013-03-28  Marek Polacek  <polacek@redhat.com>
3000             Richard Biener  <rguenther@suse.de>
3002         PR tree-optimization/56695
3003         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
3004         build signed result of a vector comparison.
3005         * tree-cfg.c (verify_gimple_comparison): Check that a result
3006         of a vector comparison has signed type.
3008 2013-03-28  Richard Biener  <rguenther@suse.de>
3010         PR tree-optimization/37021
3011         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
3012         do not restrict gaps between groups.
3013         * tree-vect-stmts.c (vectorizable_load): Properly account for
3014         a gap between groups.
3016 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3018         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
3019         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
3020         is not enabled.
3022 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
3024         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
3025         * doc/extend.texi (Named Address Spaces): Ditto.
3026         (Variable Attributes): Ditto.
3028 2013-03-27  Kai Tietz  <ktietz@redhat.com>
3030         * config.build: Add support for cygwin x64 target.
3031         * config.gcc: Likewise.
3032         * config.host: Likewise.
3033         * configure.ac: Likewise
3034         * configure: Regenerated.
3036 2013-03-27 Kai Tietz  <ktietz@redhat.com>
3038         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
3039         * config/i386/t-cygwin-w64: New file.
3040         * config/i386/cygwin-w64.h: New file.
3041         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
3042         and add support for x64-cygwin target.
3043         (CPP_SPEC): Likewise.
3044         (CXX_WRAP_SPEC_LIST): Undefine before define.
3045         (LIBGCJ_SONAME): Use 15 as version.
3047 2013-03-27  Richard Biener  <rguenther@suse.de>
3049         PR tree-optimization/56716
3050         * tree-ssa-structalias.c (perform_var_substitution): Adjust
3051         dumping for ref nodes.
3053 2013-03-27  Martin Jambor  <mjambor@suse.cz>
3055         PR tree-optimization/55334
3056         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
3057         restricted pointers to arrays.
3059 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3061         * Makefile.in (.SUFFIXES): Add .cc.
3062         (.c.o): Apply same recipe for implicit rule .cc.o.
3064 2013-03-27  Richard Biener  <rguenther@suse.de>
3066         PR tree-optimization/37021
3067         * tree-vect-data-refs.c (vect_check_strided_load): Allow
3068         REALPART/IMAGPART_EXPRs around the supported refs.
3069         * tree-ssa-structalias.c (find_func_aliases): Assume that
3070         floating-point values are not used to transfer pointers.
3072 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3074         * target.def (TARGET_HAS_IFUNC_P): New target hook.
3075         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
3076         * doc/tm.texi: Regenerate.
3077         * targhooks.h (default_has_ifunc_p): New.
3078         * targhooks.c (default_has_ifunc_p): Ditto.
3079         * config/linux-protos.h: New file.
3080         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
3081         this hook for linux which disables support of indirect functions in
3082         android.
3083         * config/linux-android.c: New file.
3084         * config/t-linux-android.c: Ditto.
3085         * config.gcc: Added new object file linux-android.o.
3086         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
3087         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
3088         * varasm.c (do_assemble_alias): Likewise.
3089         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
3090         doesn't support indirect functions.
3091         * configure: Regenerate.
3093 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
3095         PR target/56102
3096         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
3097         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
3098         mult-word mode.
3100 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3102         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
3104 2013-03-27  Terry Guo  <terry.guo@arm.com>
3106         * config/arm/arm-cores.def: Added core cortex-r7.
3107         * config/arm/arm-tune.md: Regenerated.
3108         * config/arm/arm-tables.opt: Regenerated.
3109         * doc/invoke.texi: Added entry for core cortex-r7.
3111 2013-03-27  Walter Lee  <walt@tilera.com>
3113         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
3114         double-decrement of next_scratch_regno.
3116 2013-03-27  Walter Lee  <walt@tilera.com>
3118         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
3119         input operands.
3120         (insn_v1mulus): Ditto.
3121         (insn_v2muls): Ditto.
3123 2013-03-27  Walter Lee  <walt@tilera.com>
3125         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
3126         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
3128 2013-03-27  Walter Lee  <walt@tilera.com>
3130         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
3131         (*sibcall_value): Ditto.
3133 2013-03-27  Walter Lee  <walt@tilera.com>
3135         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
3136         (insn_mnz_v8qi): ... this ...
3137         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
3138         vector equivalent.
3139         (insn_v<n>mnz): Replaced by ...
3140         (insn_v1mnz): ... this ...
3141         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
3142         equivalent.
3143         (insn_mz_<mode>): Replaced by ...
3144         (insn_mz_v8qi): ... this ...
3145         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
3146         vector equivalent.
3147         (insn_v<n>mz): Replaced by ...
3148         (insn_v1mz): ... this ...
3149         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
3150         equivalent.
3152 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
3154         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
3156 2013-03-26  Roland McGrath  <mcgrathr@google.com>
3158         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
3159         than fprintf with a non-constant, non-format string.
3161 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
3163         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
3164         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
3165         operand 0 predicate.
3166         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
3167         attribute.  Use general_x64nomem_operand as operand 1 predicate.
3168         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
3169         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
3170         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
3171         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
3172         (mov<mode>_insv_1): Remove expander.  Merge insn with
3173         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
3174         Use general_x64nomem_operand as operand 1 predicate.
3175         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
3176         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
3177         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
3178         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
3179         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
3180         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
3181         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
3182         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
3183         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
3184         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
3185         (general_x64nomem_operand): Ditto.
3187 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3189         * config/rtems.opt: Add -pthread option.
3191 2013-03-26  Richard Biener  <rguenther@suse.de>
3193         * alias.c (find_base_term): Avoid redundant and not used recursion.
3194         (base_alias_check): Get the initial base term from the caller.
3195         (true_dependence_1): Compute and pass base terms to base_alias_check.
3196         (write_dependence_p): Likewise.
3197         (may_alias_p): Likewise.
3199 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
3201         * config/aarch64/aarch64.c (aarch64_classify_address): Support
3202         PC-relative load in SI modes and above only.
3204 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
3206         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
3207         * config/arm/iwmmxt.md (WCGR0): Update.
3208         (WCGR1, WCGR2, WCGR3): Likewise.
3210 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
3212         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
3213         Use x64 and nox64 isa attributes.
3215 2013-03-26  Richard Biener  <rguenther@suse.de>
3217         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3218         alignment computations and rely on get_object_alignment_1
3219         for the !TYPE_P case.
3220         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
3222 2013-03-26  Walter Lee  <walt@tilera.com>
3224         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
3225         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
3227 2013-03-25  Jeff Law  <law@redhat.com>
3229         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
3230         check for INTEGRAL_TYPE_P that was missing due to checking in
3231         wrong version of prior patch.
3233 2013-03-25  Walter Lee  <walt@tilera.com>
3235         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
3236         TILEGX_INSN_SHUFFLEBYTES1.
3237         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
3238         shufflebytes1.
3239         (tilegx_builtins): Ditto.
3240         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
3242 2013-03-25  Walter Lee  <walt@tilera.com>
3244         * config/tilegx/tilegx.md (floatsisf2): New pattern.
3245         (floatunssisf2): New pattern.
3246         (floatsidf2): New pattern.
3247         (floatunssidf2): New pattern.
3249 2013-03-25  Walter Lee  <walt@tilera.com>
3251         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
3252         tests for constraint J, K, N, P.
3254 2013-03-25  Walter Lee  <walt@tilera.com>
3256         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
3257         Use indirect/pcrel encoding.
3258         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
3259         Ditto.
3261 2013-03-25  Steve Ellcey  <sellcey@mips.com>
3263         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
3264         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
3265         * config/mips/mips.c (mips_option_override): Set IMADD default.
3266         * config/mips/mips.h (PTF_AVOID_IMADD): New.
3267         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
3268         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
3269         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
3270         * doc/invoke.texi (-mimadd/-mno-imadd): New.
3272 2013-03-25  Jeff Law  <law@redhat.com>
3274         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
3275         slightly to avoid creating and folding useless trees.  Simplify
3276         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
3278 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
3280         * config/i386/i386.md (*zero_extendsidi2): Merge with
3281         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
3282         * config/i386/predicates.md (x86_64_zext_operand): Rename from
3283         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
3284         targets.  Clarify comment.
3286 2013-03-25  Martin Jambor  <mjambor@suse.cz>
3288         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
3289         pass-through jump functions differently.
3290         (ipa_read_jump_function): Likewise.  Also use setter functions to set
3291         up jump functions.
3293 2013-03-25  Martin Jambor  <mjambor@suse.cz>
3295         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
3296         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
3297         process it.
3298         (ipa_get_indirect_edge_target): New function.
3299         (devirtualization_time_bonus): New parameter known_aggs, pass it to
3300         ipa_get_indirect_edge_target.  Update all callers.
3301         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
3302         ipa_get_indirect_edge_target_1 instead of calling
3303         ipa_get_indirect_edge_target.
3304         (create_specialized_node): Pass aggvlas to
3305         ipcp_discover_new_direct_edges.
3307 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3309         * config/arm/arm.md (f_sels, f_seld): New types.
3310         (*cmov<mode>): New pattern.
3311         * config/arm/predicates.md (arm_vsel_comparison_operator): New
3312         predicate.
3314 2013-03-25  Kai Tietz  <ktietz@redhat.com>
3316         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
3317         POSIX-printf for mingw-hosted  builds.
3319 2013-03-25  Richard Biener  <rguenther@suse.de>
3321         PR middle-end/56694
3322         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
3323         must-not-throw stmt location.
3325 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3327         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
3328         Emit load-acquire versions when acq is true.
3329         (arm_emit_store_exclusive): Add rel parameter.
3330         Emit store-release versions when rel is true.
3331         (arm_split_compare_and_swap): Use acquire-release instructions
3332         instead.
3333         of barriers when appropriate.
3334         (arm_split_atomic_op): Likewise.
3335         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
3336         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
3337         (VUNSPEC_SLX): Likewise.
3338         (VUNSPEC_LDA): Likewise.
3339         (VUNSPEC_STL): Likewise.
3340         * config/arm/sync.md (atomic_load<mode>): New pattern.
3341         (atomic_store<mode>): Likewise.
3342         (arm_load_acquire_exclusive<mode>): Likewise.
3343         (arm_load_acquire_exclusivesi): Likewise.
3344         (arm_load_acquire_exclusivedi): Likewise.
3345         (arm_store_release_exclusive<mode>): Likewise.
3347 2013-03-25  Catherine Moore  <clm@codesourcery.com>
3349         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
3350         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
3351         * config/mip/predicates.md (lwsp_swsp_operand,
3352         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
3353         sb16_operand, db4_operand, db7_operand, ib3_operand,
3354         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
3355         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
3356         andi16_operand): New predicates.
3357         * config/mips/mips.md (compression): New attribute.
3358         (enabled): New attribute.
3359         (length): Consider compression in computing length.
3360         (shift_compression): New code attribute.
3361         (*add<mode>3): New operands. Record compression.
3362         (sub<mode>3): Likewise.
3363         (one_cmpl<mode>2): Likewise.
3364         (*and<mode>3): Likewise.
3365         (*ior<mode>3): Likewise.
3366         (unnamed pattern for xor): Likewise.
3367         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
3368         (*<optab><mode>3): Likewise.
3369         (*mov<mode>_internal: Likewise.
3370         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
3371         (mips_unsigned_immediate_p): New.
3372         (umips_lwsp_swsp_address_p): New.
3373         (m16_based_address_p): New.
3374         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
3375         (mips_unsigned_immediate_p): New prototype.
3376         (lwsp_swsp_address_p): New prototype.
3377         (m16_based_address_p): New prototype.
3378         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
3379         (mips_signed_immediate_p): New function.
3380         (m16_based_address_p): New function.
3381         (lwsp_swsp_address_p): New function.
3382         (mips_print_operand_punctuation): Recognize short delay slot insns
3383         for microMIPS.add<mode>3"
3385 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3387         PR target/56720
3388         * config/arm/iterators.md (v_cmp_result): New mode attribute.
3389         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
3391 2013-03-25  Richard Biener  <rguenther@suse.de>
3393         PR tree-optimization/56689
3394         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
3395         any edge.
3397 2013-03-25  Richard Biener  <rguenther@suse.de>
3399         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
3400         of bitmap.
3401         (memory_references): Likewise.
3402         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
3403         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
3404         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
3405         (gather_mem_refs_in_loops): Fold into ...
3406         (analyze_memory_references): ... this.  Move initialization
3407         to tree_ssa_lim_initialize.
3408         (fill_always_executed_in): Rename to ...
3409         (fill_always_executed_in_1): ... this.
3410         (fill_always_executed_in): Move contains_call computation to
3411         this new function from ...
3412         (tree_ssa_lim_initialize): ... here.
3413         (tree_ssa_lim): Call fill_always_executed_in.
3415 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
3417         * postreload.c (reload_combine): Fix code detecting returns.
3419 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
3421         * function.c (emit_use_return_register_into_block): On cc0 targets,
3422         do not emit the sequence between cc0 setter and user.
3424 2013-03-25  Kai Tietz  <ktietz@redhat.com>
3426         * config/i386/predicates.md (local_symbolic_operand): Interpret
3427         dll-imported symbols as none-local.
3429 2013-03-25  Richard Biener  <rguenther@suse.de>
3431         * tree-ssa-loop-im.c (struct depend): Remove.
3432         (struct lim_aux_data): Make depends a vec of gimples.
3433         (free_lim_aux_data): Adjust.
3434         (add_dependency): Likewise.
3435         (set_level): Likewise.
3437 2013-03-25  Richard Biener  <rguenther@suse.de>
3439         PR middle-end/56434
3440         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
3441         the pointer returned by calls with ECF_MALLOC set.
3443 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
3445         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
3447 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
3449         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
3450         using MMXMODE mode iterator.
3451         (*move<mode>_internal): Merge with *movv2sf_internal and
3452         *movv2sf_internal_rex64 using MMXMODE mode iterator.
3454 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
3456         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
3457         (record_last_mem_set_info): Likewise.
3459         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
3460         of XNEWVEC followed by memset.
3461         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
3463 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
3465         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
3466         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
3467         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
3468         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
3469         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
3470         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
3471         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
3472         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
3473         BARRIER_P instead of GET_CODE.
3475 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
3477         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
3478         inaccuracy in the probing code.
3480         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
3481         (ctrapdi4): Likewise.
3483 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
3485         * calls.c (expand_call): Add missing guard to code handling return
3486         of non-BLKmode structures in MSB.
3487         * function.c (expand_function_end): Likewise.
3489 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
3491         * combine.c (try_combine): Adjust comment.  Do not add the set of
3492         insn #0 if the destination indirectly is set or dies in insn #2.
3493         Tidy up code to distribute a new note.
3495 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
3497         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
3498         also for alternatives 16 and 17.
3500 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
3502         * config/i386/sse.md (*mov<mode>_internal): Merge with
3503         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
3504         Emit insn template depending on type attribute.  Use
3505         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3506         movd instead of movq mnemonic for interunit moves.  Rewrite mode
3507         attribute calculation.  Remove unit attribute calculation.
3508         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
3509         Set prefix_data16 attribute for DImode ssemov types.
3510         Use Ym instead of y for SSE-MMX conversion alternatives.
3511         Reorder operand constraints.
3513 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
3515         * df.h (df_insn_delete): Adjust prototype.
3516         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
3517         and let it decide whether mark the basic block dirty.
3518         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
3519         * df-scan.c (df_insn_info_delete): New helper function, split
3520         off from df_insn_delete.
3521         (df_scan_free_bb_info): Use it.
3522         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
3523         Likewise.
3524         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
3525         that the insn is actually an insn and it has a non-NULL basic block.
3526         Do not mark basic block dirty if only deleting a DEBUG_INSN.
3528 2013-03-22  Richard Biener  <rguenther@suse.de>
3530         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
3531         dep_ref members.
3532         (mem_ref_alloc): Do not allocate them.
3533         (refs_independent_p): Do not query or maintain a cache.
3535 2013-03-22  Richard Biener  <rguenther@suse.de>
3537         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
3538         (gather_mem_refs_in_loops): Do not compute it.
3539         (analyze_memory_references): Do not allocate it.
3540         (tree_ssa_lim_finalize): Do not free it.
3541         (for_all_locs_in_loop): Do not query all_refs_in_loop.
3543 2013-03-22  Richard Biener  <rguenther@suse.de>
3545         * is-a.h (as_a): Use gcc_checking_assert.
3547 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
3549         * config/aarch64/aarch64.c (aarch64_print_operand): New
3550         format specifier for printing a constant in hex.
3551         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
3552         format specifier for printing second operand.
3554 2013-03-22  Richard Biener  <rguenther@suse.de>
3556         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
3557         bitmaps.
3558         (gather_mem_refs_in_loops): Perform store accumulation here.
3559         (create_vop_ref_mapping_loop): Remove.
3560         (create_vop_ref_mapping): Likewise.
3561         (analyze_memory_references): Initialize refs_stored_in_loop.
3562         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
3563         (record_indep_loop): Remove.
3564         (record_dep_loop): New function.
3565         (ref_indep_loop_p_1): Adjust to only walk over references
3566         in the loop, not its subloops.
3567         (ref_indep_loop_p): Rename to ...
3568         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
3569         maintaining a more fine-grained cache.
3570         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
3571         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
3573 2013-03-22  Richard Biener  <rguenther@suse.de>
3575         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
3576         (struct mem_ref): Make accesses_in_loop a vec of a vec of
3577         aggregate mem_ref_loc.
3578         (free_mem_ref_locs): Inline into ...
3579         (memref_free): ... this and adjust.
3580         (mem_ref_alloc): Adjust.
3581         (mem_ref_locs_alloc): Remove.
3582         (record_mem_ref_loc): Adjust.
3583         (get_all_locs_in_loop): Rewrite into ...
3584         (for_all_locs_in_loop): ... this iterator.
3585         (rewrite_mem_ref_loc): New functor.
3586         (rewrite_mem_refs): Use for_all_locs_in_loop.
3587         (sm_set_flag_if_changed): New functor.
3588         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
3589         (ref_always_accessed): New functor.
3590         (ref_always_accessed_p): Use for_all_locs_in_loop.
3592 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
3594         * tree-pass.h (PROP_gimple_lvec): New.
3595         * passes.c (dump_properties): Handle PROP_gimple_lvec.
3596         (init_optimization_passes): Move pass_lower_vector.
3597         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
3598         PROP_gimple_lvec.
3599         (pass_lower_vector): Provide PROP_gimple_lvec.
3600         (pass_lower_vector_ssa): Likewise.
3601         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
3603 2013-03-21  Mark Wielaard  <mjw@redhat.com>
3605         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
3607 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
3609         * config/i386/i386.md (*movdi_internal): Disparage slightly
3610         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
3611         conversion alternatives.
3613 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
3615         PR middle-end/48087
3616         * diagnostic.def (DK_WERROR): New kind.
3617         * diagnostic.h (werrorcount): Define.
3618         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
3619         promoted to DK_ERROR, increment DK_WERROR counter instead of
3620         DK_ERROR counter.
3621         * toplev.c (toplev_main): Call print_ignored_options even if
3622         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
3623         even if just werrorcount is non-zero.
3625         PR debug/55608
3626         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
3627         on failure.
3628         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
3629         (string_cst_pool_decl): New function.
3630         (optimize_one_addr_into_implicit_ptr): New function.
3631         (resolve_addr_in_expr): Optimize DWARF location expression
3632         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
3633         which doesn't live in memory, but has DW_AT_location or
3634         DW_AT_const_value, or refers to a string literal, into
3635         DW_OP_GNU_implicit_pointer.
3636         (optimize_location_into_implicit_ptr): New function.
3637         (resolve_addr): If removing DW_AT_location of a variable because
3638         it was DW_OP_addr of address of the variable, but the variable doesn't
3639         live in memory, try to emit const value attribute for the initializer.
3641 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
3643         * tree.h (VECTOR_TYPE_P): New macro.
3644         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
3645         TYPE_MODE): Use it.
3646         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
3647         VEC_COND_EXPR cannot be lvalues.
3648         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
3650 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
3652         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
3653         Restrict the transformation to equal modes.
3655 2013-03-21  Richard Biener  <rguenther@suse.de>
3657         PR tree-optimization/39326
3658         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
3659         (MEM_ANALYZABLE): Adjust.
3660         (record_mem_ref_loc): Move bitmap ops ...
3661         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
3662         unanalyzable refs, do not record locations for it.
3663         (analyze_memory_references): Allocate ref zero as shared
3664         unanalyzable ref.
3665         (refs_independent_p): Do not test for unanalyzed mems here.
3666         (ref_indep_loop_p_1): Special-case disambiguation against
3667         the unanalyzed ref.
3668         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
3670 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
3672         * config/arm/arm-protos.h (tune_params): Add
3673         prefer_neon_for_64bits field.
3674         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
3675         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
3676         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
3677         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
3678         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
3679         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
3680         (arm_option_override): Handle -mneon-for-64bits new option.
3681         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
3682         (prefer_neon_for_64bits): Declare new variable.
3683         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
3684         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
3685         (arch_enabled): Handle new arch types. Remove support for onlya8
3686         and nota8.
3687         (one_cmpldi2): Use new arch names.
3688         (zero_extend<mode>di2, extend<mode>di2): Ditto.
3689         * config/arm/arm.opt (mneon-for-64bits): Add option.
3690         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
3691         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
3692         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
3693         of onlya8.
3694         * doc/invoke.texi (-mneon-for-64bits): Document.
3696 2013-03-21  Richard Biener  <rguenther@suse.de>
3698         PR tree-optimization/39326
3699         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
3700         (sort_bbs_in_loop_postorder_cmp): New function.
3701         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
3703 2013-03-21  Richard Biener  <rguenther@suse.de>
3705         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
3706         (vect_insert_into_interleaving_chain): Likewise.
3707         (vect_drs_dependent_in_basic_block): Inline ...
3708         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
3709         split out from ...
3710         (vect_analyze_data_ref_dependence): ... here.  Simplify.
3711         (vect_check_interleaving): Simplify.
3712         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
3713         (vect_slp_analyze_data_ref_dependences): ... this new function.
3714         (dr_group_sort_cmp): New function.
3715         (vect_analyze_data_ref_accesses): Compute data-reference groups
3716         here instead of in vect_analyze_data_ref_dependence.  Use
3717         a more efficient algorithm.
3718         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
3719         vect_slp_analyze_data_ref_dependences.  Call
3720         vect_analyze_data_ref_accesses earlier.
3721         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3722         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
3723         (vect_slp_analyze_data_ref_dependences): New prototype.
3725 2013-03-21  Richard Biener  <rguenther@suse.de>
3727         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
3728         ref is stored in the loop.
3729         (find_refs_for_sm): Walk only over all stores.
3730         (store_motion_loop): Allocate from lim_bitmap_obstack.
3731         (store_motion): Likewise.
3733 2013-03-21  Richard Biener  <rguenther@suse.de>
3735         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
3736         Update virtual SSA form.
3738 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3740         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
3741         * configure: Regenerate.
3742         * config.in: Regenerate.
3743         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
3744         if !HAVE_LD_EH_FRAME_CIEV3.
3746 2013-03-21  Richard Biener  <rguenther@suse.de>
3748         * tree-cfg.c (verify_expr_no_block): New function.
3749         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
3750         nor DECL_VALUE_EXPR have locations with associated blocks.
3751         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
3752         (clear_unused_block_pointer): Remove code dealing with
3753         blocks in DECL_DEBUG_EXPR locations.
3755 2013-03-21  Richard Biener  <rguenther@suse.de>
3757         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
3758         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
3759         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
3760         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
3761         instead of DECL_DEBUG_EXPR_IS_FROM.
3762         * gimplify.c (gimplify_modify_expr): Likewise.
3763         * tree-cfg.c (verify_expr_location_1): Likewise.
3764         * tree-complex.c (create_one_component_var): Likewise.
3765         * tree-sra.c (create_access_replacement): Likewise.
3766         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
3767         (clear_unused_block_pointer): Likewise.
3768         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
3769         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3770         * var-tracking.c (var_debug_decl): Likewise.
3771         (track_expr_p): Likewise.
3772         * tree-inline.c (add_local_variables): Likewise.  Set
3773         DECL_HAS_DEBUG_EXPR_P after copying it.
3774         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3775         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
3777 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
3779         PR bootstrap/56656
3780         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
3781         * configure: Regenerate.
3782         * config.in: Regenerate.
3783         * config/i386/i386.md (*movdf_internal): Use
3784         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
3785         movd instead of movq mnemonic for interunit moves.
3786         (*movdi_internal): Ditto.
3788 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3790         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
3791         (abd<mode>_3): New pattern.
3792         (aba<mode>_3): New pattern.
3793         (fabd<mode>_3): New pattern.
3795 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
3797         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
3798         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
3799         occurrence of REGISTER_PREFIX as its empty string.
3801 2013-03-20  Jeff Law  <law@redhat.com>
3803         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
3804         addititional equivalences for equality comparisons between an SSA_NAME
3805         and a constant where the SSA_NAME was set from a widening conversion.
3807 2013-03-20  Walter Lee  <walt@tilera.com>
3809         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
3811 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3813         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
3814         depending on type attribute.
3815         (*movti_internal): Ditto.
3816         (*movtf_internal): Ditto.
3817         (*movxf_internal): Ditto.
3818         (*movdf_internal): Ditto.
3819         (*movsf_internal): Ditto.
3821 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
3823         * config/i386/i386.md (*movti_internal): Set prefix attribute to
3824         maybe_vex for sselog1 and ssemov types.
3825         (*movdi_internal): Reorder operand constraints.
3826         (*movsi_internal): Ditto.  Set prefix attribute to
3827         maybe_vex for sselog1 and ssemov types.
3828         (*movtf_internal): Set prefix attribute to maybe_vex
3829         for sselog1 and ssemov types.
3830         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
3831         DImode ssemov types.  Reorder operand constraints.
3832         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
3833         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
3834         attribute for SImode ssemov types.  Reorder operand constraints.
3836 2013-03-20  Martin Jambor  <mjambor@suse.cz>
3838         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
3839         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
3841 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
3843         * config/rs6000/predicates.md (indexed_address, update_address_mem
3844         update_indexed_address_mem): New predicates.
3845         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
3846         attribute for load/store instructions.
3847         * config/rs6000/dfp.md (movsd_store): Likewise.
3848         (movsd_load): Likewise.
3849         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
3850         (unnamed HI->DI extend define_insn): Likewise.
3851         (unnamed SI->DI extend define_insn): Likewise.
3852         (unnamed QI->SI extend define_insn): Likewise.
3853         (unnamed QI->HI extend define_insn): Likewise.
3854         (unnamed HI->SI extend define_insn): Likewise.
3855         (unnamed HI->SI extend define_insn): Likewise.
3856         (extendsfdf2_fpr): Likewise.
3857         (movsi_internal1): Likewise.
3858         (movsi_internal1_single): Likewise.
3859         (movhi_internal): Likewise.
3860         (movqi_internal): Likewise.
3861         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
3862         attribute for load/store instructions.
3863         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
3864         instructions.
3865         (mov<mode>_softfloat): Likewise.
3866         (mov<mode>_hardfloat32): Likewise.
3867         (mov<mode>_hardfloat64): Likewise.
3868         (mov<mode>_softfloat64): Likewise.
3869         (movdi_internal32): Likewise.
3870         (movdi_internal64): Likewise.
3871         (probe_stack_<mode>): Likewise.
3873 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3875         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
3876         floating point, and decimal floating point to reload iterator.
3878         * config/rs6000/constraints.md (wl constraint): New constraints to
3879         return FLOAT_REGS if certain options are used to reduce the number
3880         of separate patterns that exist in the file.
3881         (wx constraint): Likewise.
3882         (wz constraint): Likewise.
3884         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3885         -mdebug=reg, print wg, wl, wx, and wz constraints.
3886         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3887         Initialize the reload functions for 64-bit binary/decimal floating
3888         point types.
3889         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3890         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3891         create the buffer on the stack to overcome not having a 32-bit
3892         load and store.
3893         (rs6000_emit_move): Likewise.
3894         (rs6000_secondary_memory_needed_rtx): Likewise.
3895         (rs6000_alloc_sdmode_stack_slot): Likewise.
3896         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3897         via xxlxor, just like DFmode 0.0.
3899         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
3900         define as 1 if we are running on a power7 or newer.
3901         (enum r6000_reg_class_enum): Add new constraints.
3903         * config/rs6000/dfp.md (movsd): Delete, combine with binary
3904         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
3905         with other moves by using conditional constraits (wg).  Use LFIWZX
3906         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
3907         (movsd splitter): Likewise.
3908         (movsd_hardfloat): Likewise.
3909         (movsd_softfloat): Likewise.
3911         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
3912         binary and decimal floating point moves.
3913         (fmove_ok): New attributes to combine binary and decimal floating
3914         point moves, and to combine power6x (mfpgpr) moves along normal
3915         floating moves.
3916         (real_value_to_target): Likewise.
3917         (f32_lr): Likewise.
3918         (f32_lm): Likewise.
3919         (f32_li): Likewise.
3920         (f32_sr): Likewise.
3921         (f32_sm): Likewise.
3922         (f32_si): Likewise.
3923         (movsf): Combine binary and decimal floating point moves.  Combine
3924         power6x (mfpgpr) moves with other moves by using conditional
3925         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
3926         (mov<mode> for SFmode/SDmode); Likewise.
3927         (SFmode/SDmode splitters): Likewise.
3928         (movsf_hardfloat): Likewise.
3929         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
3930         (movsf_softfloat): Likewise.
3931         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
3933         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
3934         wx and wz constraints.
3936         * config/rs6000/constraints.md (wg constraint): New constraint to
3937         return FLOAT_REGS if -mmfpgpr (power6x) was used.
3939         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
3940         constraint.
3942         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
3943         -mdebug=reg, print wg, wl, wx, and wz constraints.
3944         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
3945         Initialize the reload functions for 64-bit binary/decimal floating
3946         point types.
3947         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
3948         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
3949         create the buffer on the stack to overcome not having a 32-bit
3950         load and store.
3951         (rs6000_emit_move): Likewise.
3952         (rs6000_secondary_memory_needed_rtx): Likewise.
3953         (rs6000_alloc_sdmode_stack_slot): Likewise.
3954         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
3955         via xxlxor, just like DFmode 0.0.
3957         * config/rs6000/dfp.md (movdd): Delete, combine with binary
3958         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
3959         with other moves by using conditional constraits (wg).  Use LFIWZX
3960         and STFIWX for loading SDmode on power7.
3961         (movdd splitters): Likewise.
3962         (movdd_hardfloat32): Likewise.
3963         (movdd_softfloat32): Likewise.
3964         (movdd_hardfloat64_mfpgpr): Likewise.
3965         (movdd_hardfloat64): Likewise.
3966         (movdd_softfloat64): Likewise.
3968         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
3969         64-bit binary and decimal floating point moves.
3970         (FMOVE64X): Likewise.
3971         (movdf): Combine 64-bit binary and decimal floating point moves.
3972         Combine power6x (mfpgpr) moves with other moves by using
3973         conditional constraits (wg).
3974         (mov<mode> for DFmode/DDmode): Likewise.
3975         (DFmode/DDmode splitters): Likewise.
3976         (movdf_hardfloat32): Likewise.
3977         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
3978         (movdf_softfloat32): Likewise.
3979         (movdf_hardfloat64_mfpgpr): Likewise.
3980         (movdf_hardfloat64): Likewise.
3981         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
3982         (movdf_softfloat64): Likewise.
3983         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
3984         (reload_<mode>_load): Move to later in the file so they aren't in
3985         the middle of the floating point move insns.
3986         (reload_<mode>_store): Likewise.
3988         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
3989         constraint.
3991         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
3992         constraint if -mdebug=reg.
3993         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
3994         Enable using dd reload support if needed.
3996         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
3997         binary and decimal floating point moves in rs6000.md.
3998         (movtd_internal): Likewise.
4000         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
4001         decimal floating point moves.
4002         (movtf): Likewise.
4003         (movtf_internal): Likewise.
4004         (mov<mode>_internal, TDmode/TFmode): Likewise.
4005         (movtf_softfloat): Likewise.
4006         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
4008         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
4009         movdi_internal64, using wg constraint for move direct operations.
4010         (movdi_internal64): Likewise.
4012         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
4013         MODES_TIEABLE_P for selected modes.  Print the numerical value of
4014         the various virtual registers. Use GPR/FPR first/last values,
4015         instead of hard coding the register numbers.  Print which modes
4016         have reload functions registered.
4017         (rs6000_option_override_internal): If -mdebug=reg, trace the options
4018         settings before/after setting cpu, target and subtarget settings.
4019         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
4020         and for secondary reload failures in rs6000_secondary_reload_inner.
4021         (rs6000_secondary_reload_fail): Likewise.
4022         (rs6000_secondary_reload_inner): Likewise.
4024         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
4025         macros for first/last GPR and FPR registers.
4026         (LAST_GPR_REGNO): Likewise.
4027         (FIRST_FPR_REGNO): Likewise.
4028         (LAST_FPR_REGNO): Likewise.
4030         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
4031         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
4032         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
4033         (vcond<mode><mode>): Likewise.
4034         (vcondu<mode><mode>): Likewise.
4035         (vector_gtu<mode>): Likewise.
4036         (vector_gte<mode>): Likewise.
4037         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
4038         to prevent the compiler from converting DImode operations to TImode.
4039         (ior<mode>3): Likewise.
4040         (and<mode>3): Likewise.
4041         (one_cmpl<mode>2): Likewise.
4042         (nor<mode>3): Likewise.
4043         (andc<mode>3): Likewise.
4045         * config/rs6000/constraints.md (wt constraint): New constraint
4046         that returns VSX_REGS if TImode is allowed in VSX registers.
4048         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
4049         constant under VSX.
4051         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
4052         similar to TImode, but it is restricted to being in the GPRs.
4054         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
4055         TImode to occupy a single VSX register.
4057         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
4058         -mvsx-timode for power7/power8.
4059         (power7 cpu): Likewise.
4060         (power8 cpu): Likewise.
4062         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
4063         sure that TFmode/TDmode take up two registers if they are ever
4064         allowed in the upper VSX registers.
4065         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
4066         registers.
4067         (rs6000_init_hard_regno_mode_ok): Likewise.
4068         (rs6000_debug_reg_global): Add debugging for PTImode and wt
4069         constraint.  Print if LRA is turned on.
4070         (rs6000_option_override_internal): Give an error if -mvsx-timode
4071         and VSX is not enabled.
4072         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
4073         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
4074         to reg+offset addressing.  Use PTImode when checking offset
4075         addresses for validity.
4076         (reg_offset_addressing_ok_p): Likewise.
4077         (rs6000_legitimate_offset_address_p): Likewise.
4078         (rs6000_legitimize_address): Likewise.
4079         (rs6000_legitimize_reload_address): Likewise.
4080         (rs6000_legitimate_address_p): Likewise.
4081         (rs6000_eliminate_indexed_memrefs): Likewise.
4082         (rs6000_emit_move): Likewise.
4083         (rs6000_secondary_reload): Likewise.
4084         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
4085         reloads to fpr registers to continue to use reg+offset addressing,
4086         but 64-bit reloads to altivec registers need reg+reg addressing.
4087         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
4088         it.  Treat LO_SUM like a PLUS operation.
4089         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
4090         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
4091         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
4092         registers to share a register with a smaller sized type, since VSX
4093         puts scalars in the upper 64-bits.
4094         (print_operand): Add support for PTImode.
4095         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
4096         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
4097         registers, but don't have arithmetic support.
4098         (rs6000_memory_move_cost): Add test for VSX.
4099         (rs6000_opt_masks): Add -mvsx-timode.
4101         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
4102         for TImode.
4103         (VSs): Likewise.
4104         (VSr): Use wt constraint for TImode.
4105         (VSv): Drop TImode support.
4106         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
4107         (vsx_movti_64bit): Likewise.
4108         (vsx_movti_32bit): Likewise.
4109         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
4110         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
4111         one '?' on the appropriate output constraint.  Do not allow TImode
4112         logical operations on 32-bit systems.
4113         (vsx_ior<mode>3): Likewise.
4114         (vsx_xor<mode>3): Likewise.
4115         (vsx_one_cmpl<mode>2): Likewise.
4116         (vsx_nor<mode>3): Likewise.
4117         (vsx_andc<mode>3): Likewise.
4118         (vsx_concat_<mode>): Likewise.
4119         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
4121         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
4122         OPTION_MASK_VSX_TIMODE.
4123         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
4124         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
4126         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
4127         (TI2 iterator): New iterator for TImode, PTImode.
4128         (wd mode attribute): Add values for vector types.
4129         (movti_string): Replace TI move operations with operations for TImode
4130         and PTImode.  Add support for TImode being allowed in VSX registers.
4131         (mov<mode>_string, TImode/PTImode): Likewise.
4132         (movti_ppc64): Likewise.
4133         (mov<mode>_ppc64, TImode/PTImode): Likewise.
4134         (TI mode splitters): Likewise.
4136         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
4137         constraint.
4139 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
4141         PR tree-optimization/56355
4142         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
4143         Also handle integers with undefined overflow.
4145 2013-03-20  Catherine Moore  <clm@codesourcery.com>
4146             Maciej W. Rozycki  <macro@codesourcery.com>
4147             Tom de Vries  <tom@codesourcery.com>
4148             Nathan Sidwell <nathan@codesourcery.com>
4149             Iain Sandoe  <iain@codesourcery.com>
4150             Nathan Froyd  <froydnj@codesourcery.com>
4151             Chao-ying Fu <fu@mips.com>
4153         * doc/extend.texi: (micromips, nomicromips, nocompression):
4154         Document new function attributes.
4155         * doc/invoke.texi (minterlink-compressed, mmicromips,
4156         m14k, m14ke, m14kec): Document new options.
4157         (minterlink-mips16): Update documentation.
4158         * doc/md.texi (ZC, ZD): Document new constraints.
4159         * configure.ac (gcc_cv_as_micromips): Check if linker
4160         supports the .set micromips directive.
4161         * configure: Regenerate.
4162         * config.in: Regenerate.
4163         * config/mips/mips-tables.opt: Regenerate.
4164         * config/mips/micromips.md: New file.
4165         * constraints.md (ZC, ZD): New constraints.
4166         * config/mips/predicates.md (movep_src_register): New predicate.
4167         (movep_src_operand): New predicate.
4168         (non_volatile_mem_operand): New predicate.
4169         * config/mips/mips.md (multimem): New type.
4170         (length): Differentiate between 17-bit and 18-bit branch offsets.
4171         (MOVEP1, MOVEP2): New mode iterator.
4172         (mov_<load>l): Use ZC constraint.
4173         (mov_<load>r): Likewise.
4174         (mov_<store>l): Likewise.
4175         (mov_<store>r): Likewise.
4176         (*branch_equality<mode>_inverted): Add microMIPS support.
4177         (*branch_equality<mode>): Likewise.
4178         (*jump_absolute): Likewise.
4179         (indirect_jump_<mode>): Likewise.
4180         (tablejump_<mode>): Likewise.
4181         (<optab>_internal): Likewise.
4182         (sibcall_internal): Likewise.
4183         (sibcall_value_internal): Likewise.
4184         (prefetch): Use constraint ZD.
4185         * config/mips/mips.opt (minterlink-compressed): New option.
4186         (minterlink-mips16): Now an alias for minterlink-compressed.
4187         (mmicromips): New option.
4188         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
4189         (compare_and_swap_12): Likewise.
4190         (sync_add<mode>): Likewise.
4191         (sync_<optab>_12): Likewise.
4192         (sync_old_<optab>_12): Likewise.
4193         (sync_new_<optab>_12): Likewise.
4194         (sync_nand_12): Likewise.
4195         (sync_old_nand_12): Likewise.
4196         (sync_new_nand_12): Likewise.
4197         (sync_sub<mode>): Likewise.
4198         (sync_old_add<mode>): Likewise.
4199         (sync_old_sub<mode>): Likewise.
4200         (sync_new_add<mode>): Likewise.
4201         (sync_new_sub<mode>): Likewise.
4202         (sync_<optab><mode>): Likewise.
4203         (sync_old_<optab><mode>): Likewise.
4204         (sync_new_<optab><mode>): Likewise.
4205         (sync_nand<mode>): Likewise.
4206         (sync_old_nand<mode>): Likewise.
4207         (sync_new_nand<mode>): Likewise.
4208         (sync_lock_test_and_set<mode>): Likewise.
4209         (test_and_set_12): Likewise.
4210         (atomic_compare_and_swap<mode>): Likewise.
4211         (atomic_exchange<mode>_llsc): Likewise.
4212         (atomic_fetch_add<mode>_llsc): Likewise.
4213         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
4214         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
4215         (umips_save_restore_pattern_p): Likewise.
4216         (umips_load_store_pair_p): Likewise.
4217         (umips_output_load_store_pair): Likewise.
4218         (umips_movep_target_p): Likewise.
4219         (umips_12bit_offset_address_p): Likewise.
4220         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
4221         (mips_base_mips16): Rename this...
4222         (mips_base_compression_flags): ...to this. Update all uses.
4223         (mips_attribute_table): Add micromips, nomicromips and nocompression.
4224         (mips_mips16_decl_p): Delete.
4225         (mips_nomips16_decl_p): Delete.
4226         (mips_get_compress_on_flags): New function.
4227         (mips_get_compress_off_flags): New function.
4228         (mips_get_compress_mode): New function.
4229         (mips_get_compress_on_name): New function.
4230         (mips_get_compress_off_name): New function.
4231         (mips_insert_attributes): Support multiple compression types.
4232         (mips_merge_decl_attributes): Likewise.
4233         (umips_12bit_offset_address_p): New function.
4234         (mips_start_function_definition): Emit .set micromips directive.
4235         (mips_call_may_need_jalx_p): New function.
4236         (mips_function_ok_for_sibcall): Add microMIPS support.
4237         (mips_print_operand_punctuation): Support short delay slots and
4238         compact jumps.
4239         (umips_swm_mask, umips_swm_encoding): New.
4240         (umips_build_save_restore): New function.
4241         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
4242         (was_mips16_p): Remove.
4243         (old_compression_mode): New.
4244         (mips_set_compression_mode): New function.
4245         (mips_set_current_function): Add microMIPS support.
4246         (mips_option_override): Likewise.
4247         (umips_save_restore_pattern_p): New function.
4248         (umips_output_save_restore): New function.
4249         (umips_load_store_pair_p_1): New function.
4250         (umips_load_store_pair_p): New function.
4251         (umips_output_load_store_pair_1): New function.
4252         (umips_output_load_store_pair): New function.
4253         (umips_movep_target_p) New function.
4254         (mips_prepare_pch_save): Add microMIPS support.
4255         * config/mips/mips.h (TARGET_COMPRESSION): New.
4256         (TARGET_CPU_CPP_BUILTINS): Update macro
4257         to use new compression flags and to support microMIPS.
4258         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
4259         (MIPS_ARCH_FLOAT_SPEC): Likewise.
4260         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
4261         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
4262         (ASM_SPEC): Support mmicromips and mno-micromips.
4263         (M16STORE_REG_P): New macro.
4264         (MIPS_CALL): Support TARGET_MICROMIPS.
4265         (MICROMIPS_J): New macro.
4266         (mips_base_mips16): Rename this...
4267         (mips_base_compression_flags): ...to this.
4268         (UMIPS_12BIT_OFFSET_P): New macro.
4269         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
4270         (MULTILIB_DIRNAMES): Likewise.
4271 2013-03-20  Richard Biener  <rguenther@suse.de>
4273         PR tree-optimization/56661
4274         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
4275         the result does not have to be distinct.
4277 2013-03-20  Richard Biener  <rguenther@suse.de>
4279         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
4280         remap_gimple_op_r.
4282 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4283             Steven Bosscher <steven@gcc.gnu.org>
4285         PR rtl-optimization/56605
4286         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
4288 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
4290         PR bootstrap/56656
4291         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
4292         that require movd instead of movq.
4294 2013-03-20  Richard Biener  <rguenther@suse.de>
4296         * tree-ssa-structalias.c (struct variable_info): Add pointer
4297         to the first field of an aggregate with sub-vars.  Make
4298         this and the pointer to the next subfield its ID.
4299         (vi_next): New function.
4300         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
4301         storedanything_id, integer_id): Increment by one.
4302         (new_var_info, get_call_vi, lookup_call_clobber_vi,
4303         get_call_clobber_vi): Adjust.
4304         (solution_set_expand): Simplify and speedup.
4305         (solution_set_add): Inline into ...
4306         (set_union_with_increment): ... this.  Adjust accordingly.
4307         (do_sd_constraint): Likewise.
4308         (do_ds_constraint): Likewise.
4309         (do_complex_constraint): Simplify.
4310         (build_pred_graph): Adjust.
4311         (solve_graph): Likewise.  Simplify and speedup.
4312         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
4313         get_constraint_for_component_ref, get_constraint_for_1,
4314         first_vi_for_offset, first_or_preceding_vi_for_offset,
4315         create_function_info_for, create_variable_info_for_1,
4316         create_variable_info_for, intra_create_variable_infos): Adjust.
4317         (init_base_vars): Push NULL for ID zero.
4318         (compute_points_to_sets): Adjust.
4320 2013-03-20  Richard Biener  <rguenther@suse.de>
4322         * cfgloop.c (verify_loop_structure): Streamline and avoid
4323         ICEing on corrupt loop tree.
4324         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
4325         loop tree.
4327 2013-03-20  Richard Biener  <rguenther@suse.de>
4329         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
4330         check whether an SSA update is needed.
4332 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
4334         * config/mips/constraints.md (T): Rename to...
4335         (Yf): ...this.
4336         (U): Rename to...
4337         (Yd): ...this.
4338         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
4339         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
4341 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
4343         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
4344         (*subsi3_carryin_uxtw): Likewise.
4346 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
4348         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
4349         (*rorsi3_insn_uxtw): Likewise.
4351 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
4353         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
4354         (*extrsi5_insn_uxtw): Likewise.
4356 2013-03-19  Richard Biener  <rguenther@suse.de>
4358         PR tree-optimization/56273
4359         * passes.c (init_optimization_passes): Move second VRP after DOM.
4361 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
4363         * config/i386/i386.md (*movti_internal): Merge from
4364         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
4365         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
4366         nox64 isa attributes.
4368 2013-03-18  Richard Biener  <rguenther@suse.de>
4370         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
4371         (unite): Likewise.
4372         (merge_node_constraints): Likewise.
4373         (build_succ_graph): Likewise.
4374         (valid_graph_edge): Inline into single caller.
4375         (unify_nodes): Likewise.  Use bitmap_set_bit return value
4376         and cache varinfo.
4377         (scc_visit): Fix formatting and variable use.
4378         (do_sd_constraint): Use gcc_checking_assert.
4379         (do_ds_constraint): Likewise.
4380         (do_complex_constraint): Likewise.
4381         (condense_visit): Likewise.  Cleanup.
4382         (dump_pred_graph): New function.
4383         (perform_var_substitution): Dump the pred-graph before
4384         variable substitution.
4385         (find_equivalent_node): Use gcc_checking_assert.
4386         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
4388 2013-03-18  Richard Biener  <rguenther@suse.de>
4390         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4391         Remove cond_expr_stmt_list argument and do not gimplify the
4392         built expression.
4393         (vect_loop_versioning): Adjust.
4394         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4395         Cleanup to use less temporaries.
4396         (vect_create_data_ref_ptr): Cleanup.
4398 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
4400         PR tree-optimization/56635
4401         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
4402         require types_compatible_p types.
4404 2013-03-18  Nick Clifton  <nickc@redhat.com>
4406         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
4407         spurious backslash.
4409         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
4410         Add missing line to comment describing function.
4412 2013-03-18  Richard Biener  <rguenther@suse.de>
4414         PR tree-optimization/56210
4415         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4416         Handle string / character search functions.
4417         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4419 2013-03-18  Richard Biener  <rguenther@suse.de>
4421         PR middle-end/56483
4422         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
4423         and implement properly.
4424         * gimple.h (gimple_cond_single_var_p): Remove.
4426 2013-03-18  Richard Biener  <rguenther@suse.de>
4428         * tree-data-ref.h (find_data_references_in_loop): Declare.
4429         * tree-data-ref.c (get_references_in_stmt): Use a stack
4430         vector pre-allocated in the callers.
4431         (find_data_references_in_stmt): Adjust.
4432         (graphite_find_data_references_in_stmt): Likewise.
4433         (create_rdg_vertices): Likewise.
4434         (find_data_references_in_loop): Export.
4435         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
4436         Compute dependences here...
4437         (vect_analyze_data_refs): ...not here.  When we encounter
4438         a non-vectorizable data reference in basic-block vectorization
4439         truncate the data reference vector.  Do not bother to
4440         fixup data-dependence information for gather loads.
4441         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
4442         of data references, as reported.
4444 2013-03-18  Richard Biener  <rguenther@suse.de>
4446         PR tree-optimization/3713
4447         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
4448         has_constants and expr.
4449         (stmt_has_constants): Properly valueize SSA names when deciding
4450         whether the stmt has constants.
4452 2013-03-18  Richard Biener  <rguenther@suse.de>
4454         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
4455         whole function when there is nothing to do.
4456         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
4457         * tree-vectorizer.c (vectorize_loops): Update virtual and
4458         loop-closed SSA once.
4459         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
4461 2013-03-18  Richard Biener  <rguenther@suse.de>
4463         PR middle-end/56113
4464         * domwalk.c (bb_postorder): New global static.
4465         (cmp_bb_postorder): New function.
4466         (walk_dominator_tree): Replace scheme imposing an order for
4467         visiting dominator sons by one sorting them at the time they
4468         are pushed on the stack.
4470 2013-03-18  Richard Biener  <rguenther@suse.de>
4472         PR tree-optimization/39326
4473         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
4474         (struct mem_ref): Replace mem member with ao_ref typed member.
4475         (MEM_ANALYZABLE): Adjust.
4476         (memref_eq): Likewise.
4477         (mem_ref_alloc): Likewise.
4478         (gather_mem_refs_stmt): Likewise.
4479         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
4480         (execute_sm_if_changed_flag_set): Adjust.
4481         (execute_sm): Likewise.
4482         (ref_always_accessed_p): Likewise.
4483         (refs_independent_p): Likewise.
4484         (can_sm_ref_p): Likewise.
4486 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
4488         PR c/56566
4489         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
4490         return 1 even for !unsignedp.
4492 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
4494         * config/i386/i386.md (isa): Add x64 and nox64.
4495         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
4496         (*pushtf): Enable *roF alternative for x64 isa only.
4497         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
4498         mode attribute of integer alternatives to DImode for TARGET_64BIT.
4499         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
4500         (*movtf_internal): Merge from *movtf_internal_rex64 and
4501         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
4502         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
4503         nox64 isa attributes.
4504         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
4505         nox64 isa attributes.
4506         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
4508 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
4510         * config/alpha/alpha.c (TARGET_LRA_P): New define.
4512 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
4514         PR target/56640
4515         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
4516         class names.  Remove trailing comma after "ALL_REGS".
4518 2013-03-16  Jan Hubicka  <jh@suse.cz>
4520         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
4521         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
4522         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
4523         of cgraph_get_create_node.
4524         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4526 2013-03-16  Jason Merrill  <jason@redhat.com>
4528         PR debug/49090
4529         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
4530         with DW_AT_default_value.
4532 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
4534         * BASE-VER: Set to 4.9.0.
4536 2013-03-14  Andi Kleen  <ak@linux.intel.com>
4538         PR target/56619
4539         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
4540         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
4541         Document _x* TSX intrinsics.
4543 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
4544             David Holsgrove  <david.holsgrove@xilinx.com>
4546         * configure.ac: Add MicroBlaze TLS support detection.
4547         * configure: Regenerate.
4548         * config/microblaze/microblaze-protos.h
4549         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
4550         symbol_mentioned_p, label_mentioned_p): Add prototypes.
4551         * config/microblaze/microblaze.c (microblaze_address_type): Add
4552         ADDRESS_TLS and tls_reloc address types.
4553         (microblaze_address_info): Add tls_reloc.
4554         (TARGET_HAVE_TLS): Define.
4555         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
4556          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
4557          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
4558         load_tls_operand,  microblaze_call_tls_get_addr,
4559         microblaze_legitimize_tls_address): New functions.
4560         (microblaze_classify_unspec): Handle UNSPEC_TLS.
4561         (get_base_reg): Use microblaze_tls_symbol_p.
4562         (microblaze_classify_address): Handle TLS.
4563         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
4564         label_mentioned_p and microblaze_tls_referenced_p.
4565         (microblaze_legitimize_address): Handle TLS.
4566         (microblaze_address_insns): Handle ADDRESS_TLS.
4567         (pic_address_needs_scratch): Handle TLS.
4568         (print_operand_address): Handle TLS.
4569         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
4570         (microblaze_expand_move): Handle TLS.
4571         (microblaze_legitimate_constant_p): Check
4572         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
4573         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
4574         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
4575         (PIC_OFFSET_TABLE_REGNUM): Set.
4576         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
4577         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
4578         (addsi3, movsi_internal2, movdf_internal): Update constraints
4579         * config/microblaze/predicates.md (arith_plus_operand): Define
4580         (move_operand): Redefine as move_src_operand,
4581         check microblaze_tls_referenced_p.
4583 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
4585         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
4586         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
4588 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
4590         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
4591         CC mode for AND.
4593 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
4595         PR tree-optimization/53265
4596         * common.opt (Waggressive-loop-optimizations): New option.
4597         * tree-ssa-loop-niter.c: Include tree-pass.h.
4598         (do_warn_aggressive_loop_optimizations): New function.
4599         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
4600         if number_of_latch_executions returned constant.
4601         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
4602         early.  If number_of_latch_executions returned constant, set
4603         nb_iterations_upper_bound back to it.
4604         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
4605         field.
4606         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
4607         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
4609         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
4610         (MULTILIB_OSDIRNAMES): Set.
4611         * genmultilib: If defaultosdirname doesn't start with :: , set
4612         defaultosdirname2 instead, clear it and emit two . multilib_raw
4613         entries instead of just one.
4615 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
4617         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4618         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
4619         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
4620         (SUBTARGET_OVERRIDE_OPTIONS): New.
4622 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
4624         PR target/49880
4625         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
4626         (musermode): Convert to Var(TARGET_USERMODE).
4627         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
4628         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
4629         * config/sh/sh.c (sh_option_override): Use
4630         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
4631         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
4632         condition.
4633         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
4634         TARGET_SH4.
4635         (udivsi3_i4_single, divsi3_i4_single): Use
4636         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
4638 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
4640         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
4641         default setting.
4643 2013-03-13  Richard Biener  <rguenther@suse.de>
4645         PR tree-optimization/56608
4646         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
4647         calls when vectorizing basic-blocks.
4649 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
4651         PR plugins/45078
4652         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
4653         tm_file.
4655 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
4657         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
4659 2013-03-11  Jan Hubicka  <jh@suse.cz>
4661         PR lto/56557
4662         * lto-streamer-out.c (output_symbol_p): Skip references from
4663         constructors of external variables.
4665 2013-03-11  Jan Hubicka  <jh@suse.cz>
4667         PR middle-end/56571
4668         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
4669         from pseudos.
4670         * emit-rtl.c (verify_rtx_sharing): Likewise.
4671         (copy_insn_1): Likewise.
4672         * rtl.c (copy_rtx): Likewise.
4674 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
4676         PR target/56591
4677         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
4678         output_operand_lossage message.
4680 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
4682         PR target/56470
4683         * arm.c (shift_op): Validate RTL pattern on the fly.
4684         (arm_print_operand, case 'S'): Don't use shift_operator to validate
4685         the RTL.
4687 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4689         PR target/56347
4690         * config/pa/pa.md (call_value): Check for calls to powf and direct to
4691         new call patterns that clobber %fr12.
4692         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
4693         split and postreload patterns.
4694         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
4695         registers %fr12 and %fr12R as call used.
4697 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
4699         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
4700         (canon_address, record_store, replace_read, check_mem_read_rtx,
4701         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
4702         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
4703         rest_of_handle_dse): Likewise.
4705 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
4707         PR middle-end/56524
4708         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
4709         Add base_optabs.
4710         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
4711         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
4712         (save_optabs_if_changed): Replace with...
4713         (init_tree_optimization_optabs): ...this.
4714         * optabs.c (save_optabs_if_changed): Rename to...
4715         (init_tree_optimization_optabs): ...this.  Take the optimization node
4716         as argument.  Do nothing if the base optabs are already correct.
4717         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
4718         to recompute optabs.
4719         * function.h (function): Remove optabs field.
4720         * function.c (invoke_set_current_function_hook): Call
4721         init_tree_optimization_optabs.  Use the result to initialize
4722         this_fn_optabs.
4724 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
4726         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
4727         if GTMA_HAS_NO_INSTRUMENTATION.
4728         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
4729         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
4730         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
4731         * gimple-pretty-print.c (dump_gimple_transaction): Handle
4732         GTMA_HAS_NO_INSTRUMENTATION.
4734 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
4736         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
4737         libasan_preinit.o.
4739 2013-03-08  Marek Polacek  <polacek@redhat.com>
4740             Jakub Jelinek  <jakub@redhat.com>
4742         PR tree-optimization/56478
4743         * predict.c (is_comparison_with_loop_invariant_p): Change the
4744         type of loop_step to tree.
4745         (predict_loops): Adjust.
4746         (predict_iv_comparison): Perform the computations on double_ints.
4748 2013-03-08  Richard Biener  <rguenther@suse.de>
4750         PR tree-optimization/56570
4751         * tree-cfg.c (verify_expr_location_1): Verify locations for
4752         DECL_DEBUG_EXPR.
4753         * tree-sra.c (create_access_replacement): Strip locations
4754         from DECL_DEBUG_EXPRs.
4756 2013-03-08  Richard Biener  <rguenther@suse.de>
4758         * tree-inline.c (expand_call_inline): Do not associate
4759         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
4760         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
4762 2013-03-08  Richard Biener  <rguenther@suse.de>
4764         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
4765         or block changes with -Og.  Fix for location / block encoding
4766         changes and PHI arguments with locations.
4768 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
4770         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
4771         for all counters.
4772         (struct output_info): Likewise.
4773         (register_overhead): Remove bad gcc_assert.
4774         (bitmap_find_bit): If there is only a single bitmap element, do not
4775         count a miss as a search.
4776         (print_statistics): Update for counter type changes.
4777         (dump_bitmap_statistics): Likewise.  Print headers such that they
4778         are properly lined up with the printed counters.
4780 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
4782         PR tree-optimization/56559
4783         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
4784         check that it has only a single use.
4786 2013-03-07  Richard Biener  <rguenther@suse.de>
4788         * doc/invoke.texi (fwhole-program): Discourage use in combination
4789         with -flto.
4791 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
4793         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
4795         PR tree-optimization/56539
4796         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
4797         instead of GSI_CONTINUE_LINKING as last argument to
4798         force_gimple_operand_gsi.  Adjust function comment.
4800         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
4801         aarch64-cores.def.
4803         PR middle-end/56548
4804         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
4805         promoted mode, convert the result back to the original mode.
4807 2013-03-06  Richard Biener  <rguenther@suse.de>
4809         PR middle-end/56294
4810         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
4811         (insert_updated_phi_nodes_compare_uids): New function.
4812         (update_ssa): Sort symbols_to_rename after UID before
4813         traversing it to insert PHI nodes.
4815 2013-03-06  Richard Biener  <rguenther@suse.de>
4817         PR middle-end/50494
4818         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
4819         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
4821         Revert
4822         2013-02-13  Richard Biener  <rguenther@suse.de>
4824         PR lto/50494
4825         * varasm.c (output_constant_def_1): Get the decl representing
4826         the constant as argument.
4827         (output_constant_def): Wrap output_constant_def_1.
4828         (make_decl_rtl): Use output_constant_def_1 with the decl
4829         representing the constant.
4830         (build_constant_desc): Optionally re-use a decl already
4831         representing the constant.
4832         (tree_output_constant_def): Adjust.
4834 2013-03-06  Joey Ye  <joey.ye@arm.com>
4836         PR lto/50293
4837         * gcc.c (convert_white_space): New function.
4838         (main): Handles white space in function name.
4840 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
4842         PR target/56529
4843         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
4844         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
4845         to SH_DIV_CALL_TABLE for TARGET_SH2.
4846         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
4847         list.
4848         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
4849         call-table options.
4851 2013-03-05  Sterling Augustine  <saugustine@google.com>
4852             Cary Coutant  <ccoutant@google.com>
4854         PR debug/55364
4855         * dwarf2out.c (resolve_addr): Don't call
4856         remove_loc_list_addr_table_entries a second time for the same
4857         expression.
4859 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4861         PR debug/56510
4862         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
4863         (avoid_complex_debug_insns): New function.
4864         (expand_debug_locations): Call it.
4866         PR rtl-optimization/56484
4867         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
4868         lifetimes of hard registers on small register class machines.
4870 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
4872         * config/microblaze/microblaze-protos.h: Rename
4873         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
4874         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
4875         fast_interrupt.
4876         (microblaze_fast_interrupt_function_p): New function.
4877         (microblaze_is_interrupt_handler): Rename to
4878         microblaze_is_interrupt_variant and add fast_interrupt check.
4879         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
4880         (save_restore_insns): Likewise.
4881         (compute_frame_size): Likewise.
4882         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
4883         (microblaze_globalize_label): Likewise.
4884         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
4885         * config/microblaze/microblaze.md: Use wrapper
4886         microblaze_is_interrupt_variant.
4888 2013-03-05  Kai Tietz  <ktietz@redhat.com>
4890         * sdbout.c (sdbout_one_type): Switch to current function's section
4891         supporting cold/hot.
4893 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
4895         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
4896         -mxl-reorder.
4898 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4900         PR middle-end/56461
4901         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
4902         if VALGRIND_GET_VBITS is defined, temporarily make object
4903         memory all defined, and restore previous valgrind addressability
4904         and definability afterwards.  Free this_object at the end.
4906         PR middle-end/56461
4907         * lra.c (lra): Call lra_clear_live_ranges if live_p,
4908         right before calling lra_create_live_ranges, also call it
4909         when clearing live_p.  Only call lra_clear_live_ranges
4910         at the end if live_p.
4912         PR middle-end/56461
4913         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
4915 2013-03-05  Richard Biener  <rguenther@suse.de>
4917         PR tree-optimization/56521
4918         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
4919         value-id.
4921 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
4923         PR c++/55135
4924         * except.h (remove_unreachable_eh_regions): New prototype.
4925         * except.c (remove_eh_handler_splicer): New function, split out
4926         of remove_eh_handler.
4927         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
4928         warning about running it on many EH regions one at a time.
4929         (remove_unreachable_eh_regions_worker): New function, walk the
4930         EH tree in depth-first order and remove non-marked regions.
4931         (remove_unreachable_eh_regions): New function.
4932         * tree-eh.c (mark_reachable_handlers): New function, split out
4933         from remove_unreachable_handlers.
4934         (remove_unreachable_handlers): Use mark_reachable_handlers and
4935         remove_unreachable_eh_regions.
4936         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
4937         and remove_unreachable_eh_regions.
4939 2013-03-05  Richard Biener  <rguenther@suse.de>
4941         PR middle-end/56525
4942         * loop-init.c (fix_loop_structure): Remove loops in two stages,
4943         not freeing them until the end.
4945 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4947         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
4949 2013-03-05  Richard Biener  <rguenther@suse.de>
4951         PR tree-optimization/56270
4952         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
4953         of loads after scheduling an SLP instance.
4955 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4957         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
4958         tic6x.exp.
4959         (check_gcc_parallelize): Run guality.exp as a separate job from
4960         vect.exp with unsorted.exp and $(dg_target_exps) separately from
4961         struct-layout-1.exp with stackalign.exp.
4963         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
4965         PR middle-end/56461
4966         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
4967         load_index sbitmap even if some bit in it isn't set.
4969         PR middle-end/56461
4970         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
4971         (discover_iteration_bound_by_body_walk): Change queues to
4972         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
4973         spelling in comment.  Call safe_push on queues[bound_index] directly.
4974         Release queues[queue_index] in every iteration unconditionally.
4975         Release bounds vector.
4977         PR middle-end/56461
4978         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
4979         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
4980         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
4981         inner_phis vector.
4983 2013-03-05  Richard Biener  <rguenther@suse.de>
4985         PR lto/56515
4986         * tree-inline.c (remap_blocks_to_null): New function.
4987         (expand_call_inline): When expanding a call stmt without
4988         an associated block inline remap all callee blocks to NULL.
4990 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
4992         PR rtl-optimization/56494
4993         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
4994         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
4995         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
4997         PR middle-end/56461
4998         * sel-sched-ir.c (free_sched_pools): Release
4999         succs_info_pool.stack[succs_info_pool.max_top] vectors too
5000         if succs_info_pool.max_top isn't -1.
5002         PR bootstrap/56509
5003         * opts.c (opts_obstack, opts_concat): Moved to...
5004         * opts-common.c (opts_obstack, opts_concat): ... here.
5006 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
5008         PR middle-end/56461
5009         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
5011 2013-03-04  Martin Jambor  <mjambor@suse.cz>
5013         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
5014         all appropriate places.
5016 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
5018         PR tree-optimization/56424
5019         * ipa-split.c (split_function): Do not set the RSO flag if result is
5020         not by reference and its type is a register type.
5022 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
5024         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
5025         (microblaze_legitimate_pic_operand): Likewise
5026         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
5027         new function microblaze_legitimate_pic_operand
5028         * config/microblaze/microblaze-protos.h
5029         (microblaze_legitimate_pic_operand): Declare.
5031 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5033         * config/microblaze/predicates.md (call_insn_simple_operand):
5034         New predicate for supported rtx code types.
5035         * config/microblaze/microblaze.md (call_internal1): Use
5036         call_insn_simple_operand predicate.
5038 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
5040         PR middle-end/56461
5041         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
5042         partitions.ordered_remove.
5044         PR middle-end/56461
5045         * tree-vect-stmts.c (vectorizable_conversion): Don't call
5046         vec_oprnds0.create (1) for modifier == NONE.
5048         PR middle-end/56461
5049         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
5050         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
5051         vec_oprnds1 right before pushing anything to it for
5052         scalar_shift_arg.
5054         PR middle-end/56461
5055         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
5056         set nbbs to 0 instead of having separate code path.
5057         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
5058         instead of false as last argument if returning NULL.
5060 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
5062         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
5063         the attribute is now called "target" instead of "option".
5064         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
5065         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
5066         attribute/pragma name for TARGET_OPTION_VALID_P and
5067         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
5068         * doc/tm.texi: Regenerated.
5070 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
5072         * config/microblaze/microblaze.c:
5073         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
5074         * config/microblaze/microblaze.h: Add -mxl-reorder to
5075         DRIVER_SELF_SPECS.
5076         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
5077         instructions emitted if TARGET_REORDER.
5078         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
5079         or 0 for -m/-mno case, but initialises as 2 to detect default use case
5080         separately.
5082 2013-03-01  Xinliang David Li  <davidxl@google.com>
5084         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
5085         walk length.
5087 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
5089         PR middle-end/56461
5090         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
5091         vector even when returning true.  Fix up function comment formatting.
5093         PR middle-end/56461
5094         * ira-build.c (ira_loop_nodes_count): New variable.
5095         (create_loop_tree_nodes): Initialize it.
5096         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
5098         PR middle-end/56461
5099         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
5100         method on dr_chain and result_chain.
5101         * tree-vect-stmts.c (vectorizable_store): Only call
5102         result_chain.create if j == 0.
5104         PR middle-end/56461
5105         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
5106         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
5107         before overwriting it.
5109 2013-03-01  Tobias Burnus  <burnus@net-b.de>
5111         * doc/extended.texi (C Extensions): Change order in @menu
5112         to match @node.
5113         (Other MIPS Built-in Functions): Move last MIPS entry before
5114         "picoChip Built-in Functions".
5115         (SH Built-in Functions): Move after RX Built-in Functions.
5116         * doc/gcc.texi (Introduction): Change order in @menu
5117         to match @node.
5118         * doc/md.texi (Constraints): Ditto.
5119         * gty.texi (Type Information): Ditto.
5120         (User-provided marking routines for template types): Make
5121         subsection.
5122         * doc/invoke.texi (AArch64 Options): Move before
5123         "Adapteva Epiphany Options".
5125 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
5126             Jakub Jelinek  <jakub@redhat.com>
5128         PR sanitizer/56454
5129         * asan.c (gate_asan): Lookup no_sanitize_address instead of
5130         no_address_safety_analysis attribute.
5131         * doc/extend.texi (no_address_safety_attribute): Rename to
5132         no_sanitize_address attribute, mention no_address_safety_analysis
5133         attribute as deprecated alias.
5135 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
5137         PR middle-end/56461
5138         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
5139         type to vec<vec<tree> > *.
5140         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
5141         to be vec<tree> instead of vec<tree> *, set vec_defs
5142         to vNULL and call vec_defs.create (number_of_vects), adjust other
5143         uses of vec_defs.
5144         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
5145         vectorizable_condition): Adjust vect_get_slp_defs callers.
5147 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5149         * config/aarch64/aarch64.c
5150         (aarch64_float_const_representable): Remove unused variable.
5152 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5154         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
5156 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5158         * config/aarch64/aarch64-builtins.c
5159         (aarch64_init_simd_builtins): Make static.
5161 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
5163         * config/aarch64/aarch64.c
5164         (aarch64_simd_make_constant): Make static.
5166 2013-02-28  Martin Jambor  <mjambor@suse.cz>
5168         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
5169         with no initialization to the RHS of debug statements.
5171 2013-02-28  Martin Jambor  <mjambor@suse.cz>
5173         PR tree-optimization/56294
5174         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
5175         Adjust dumping.
5176         (get_access_replacement): Do not call create_access_replacement.
5177         Assert a replacement exists.
5178         (get_repl_default_def_ssa_name): Create the replacement declaration
5179         itself.
5181 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5183         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
5184         final_end_function.
5186 2013-02-28  Marek Polacek  <polacek@redhat.com>
5188         PR rtl-optimization/56466
5189         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
5190         if we're changing a loop.
5191         (peel_loops_completely): Likewise.
5193 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
5195         PR c++/55813
5196         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
5198 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5200         PR target/56445
5201         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
5202         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
5203         INTX_FTYPE_FX, FX_FTYPE_INTX.
5204         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
5206 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5208         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
5209         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
5210         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
5211         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
5212         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
5213         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
5214         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
5215         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
5216         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
5217         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
5218         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
5219         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
5220         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
5221         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
5222         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
5223         (avrxmega6): Increase max flash segments from 5 to 6.
5224         * config/avr/t-multilib: Regenerate.
5225         * config/avr/avr-tables.opt: Regenerate.
5226         * doc/avr-mmcu.texi: Regenerate.
5228 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
5230         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
5231         (avr_device_to_arch): Rename to avr_device_to_ld.
5232         (avr_device_to_as): New prototype.
5233         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
5234         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
5235         * config/avr/driver-avr.c (avr_device_to_as): New.
5236         (avr_device_to_arch): Rename to avr_device_to_ld.
5238 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5240         PR middle-end/56461
5241         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
5242         method on dr_chain and result_chain.
5244         PR middle-end/56461
5245         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
5246         pointer_set_destroy on not_executed_last_iteration.
5248         PR middle-end/56461
5249         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
5251         PR middle-end/56461
5252         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
5253         FOR_EACH_DEFINED_FUNCTION when freeing state.
5255         PR middle-end/56461
5256         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
5257         pool_free.
5258         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
5259         overwriting it.
5261         PR middle-end/56461
5262         * ipa-cp.c (decide_whether_version_node): Call vec_free on
5263         known_aggs[i].items and release known_aggs vector.
5265         PR middle-end/56461
5266         * ipa-reference.c (propagate): Free node_info even for alias nodes.
5268 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5270         * config/microblaze/microblaze.c (microblaze_emit_compare):
5271         Use xor for EQ/NE comparisions.
5272         * config/microblaze/microblaze.md (cstoresf4): Add constraints
5273         (cbranchsf4): Adjust operator to comparison_operator.
5275 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5277         PR middle-end/56461
5278         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
5279         vector.
5280         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
5281         vec_safe_push, always update *slot.
5282         (redirect_edge_var_map_clear): Use vec_free.
5283         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
5284         (free_var_map_entry): Use vec_free.
5285         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
5286         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
5288 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
5290         PR middle-end/45472
5291         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
5292         when the may_trap_p bit of the exprs being merged differs.
5293         Reorder tests for speculativeness in the logical and operator.
5295 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
5297         * incpath.c (add_standard_paths): Use reconcat instead of concat
5298         where appropriate and avoid leaking memory.
5300         * opts.h: Include obstack.h.
5301         (opts_concat): New prototype.
5302         (opts_obstack): New declaration.
5303         * opts.c (opts_concat): New function.
5304         (opts_obstack): New variable.
5305         (init_options_struct): Call gcc_init_obstack on opts_obstack.
5306         (finish_options): Use opts_concat instead of concat
5307         and XOBNEWVEC instead of XNEWVEC.
5308         * opts-common.c (generate_canonical_option, decode_cmdline_option,
5309         generate_option): Likewise.
5310         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
5311         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
5313         PR target/56455
5314         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
5315         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
5317 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
5319         PR middle-end/56461
5320         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
5322 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
5324         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
5325         (arm_block_move_unaligned_straight): Likewise.
5326         (arm_adjust_block_mem): Likewise.
5328 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
5330         PR target/48901
5331         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5332         temp, cond and label.
5333         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
5335         PR target/52500
5336         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
5337         * config/c6x/c6x.h (dbx_register_map): Update declaration.
5339         PR target/52501
5340         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
5341         of prologue/epilogue functions.
5343         PR target/52550
5344         * config/tilegx/tilegx.c (tilegx_expand_prologue):
5345         Remove unused variable cfa_offset.
5346         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
5348         PR target/54639
5349         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
5350         type promotion to unsigned.
5352         PR target/54640
5353         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
5354         for HOST_WIDE_INT of 32 bit / same size as int.
5355         (arm_block_move_unaligned_straight): Likewise.
5356         (arm_adjust_block_mem): Likewise.
5358         PR target/54662
5359         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
5360         ALL_CFLAGS.
5362 2013-02-26  Marek Polacek  <polacek@redhat.com>
5364         PR tree-optimization/56426
5365         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
5367 2013-02-26  Richard Biener  <rguenther@suse.de>
5369         PR target/56444
5370         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
5371         unused variable loops.
5373 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
5375         PR tree-optimization/56448
5376         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
5377         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
5378         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
5379         later operands of the references, or even first operand for
5380         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
5382         PR tree-optimization/56443
5383         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
5384         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
5385         to type_for_mode langhook.
5387 2013-02-25  Matt Turner  <mattst88@gmail.com>
5389         * doc/invoke.texi: Document r4700.
5391 2013-02-25  Richard Biener  <rguenther@suse.de>
5393         PR tree-optimization/56175
5394         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
5395         split out from ...
5396         (simplify_bitwise_binary): ... here.  Also guard the conversion
5397         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
5399 2013-02-25  Catherine Moore  <clm@codesourcery.com>
5401         Revert:
5402         2013-02-24  Catherine Moore  <clm@codesourcery.com>
5403             Maciej W. Rozycki  <macro@codesourcery.com>
5404             Tom de Vries  <tom@codesourcery.com>
5405             Nathan Sidwell  <nathan@codesourcery.com>
5406             Iain Sandoe  <iain@codesourcery.com>
5407             Nathan Froyd  <froydnj@codesourcery.com>
5408             Chao-ying Fu  <fu@mips.com>
5410         * doc/extend.texi: (micromips, nomicromips, nocompression):
5411         Document new function attributes.
5412         * doc/invoke.texi (minterlink-compressed, mmicromips,
5413         m14k, m14ke, m14kec): Document new options.
5414         (minterlink-mips16): Update documentation.
5415         * doc/md.texi (ZC, ZD): Document new constraints.
5416         * configure.ac (gcc_cv_as_micromips): Check if linker
5417         supports the .set micromips directive.
5418         * configure: Regenerate.
5419         * config.in: Regenerate.
5420         * config/mips/mips-tables.opt: Regenerate.
5421         * config/mips/micromips.md: New file.
5422         * constraints.md (ZC, AD): New constraints.
5423         * config/mips/predicates.md (movep_src_register): New predicate.
5424         (movep_src_operand): New predicate.
5425         (non_volatile_mem_operand): New predicate.
5426         * config/mips/mips.md (multimem): New type.
5427         (length): Differentiate between 17-bit and 18-bit branch offsets.
5428         (MOVEP1, MOVEP2): New mode iterator.
5429         (mov_<load>l): Use ZC constraint.
5430         (mov_<load>r): Likewise.
5431         (mov_<store>l): Likewise.
5432         (mov_<store>r): Likewise.
5433         (*branch_equality<mode>_inverted): Add microMIPS support.
5434         (*branch_equality<mode>): Likewise.
5435         (*jump_absolute): Likewise.
5436         (indirect_jump_<mode>): Likewise.
5437         (tablejump_<mode>): Likewise.
5438         (<optab>_internal): Likewise.
5439         (sibcall_internal): Likewise.
5440         (sibcall_value_internal): Likewise.
5441         (prefetch): Use constraint ZD.
5442         * config/mips/mips.opt (minterlink-compressed): New option.
5443         (minterlink-mips16): Now an alias for minterlink-compressed.
5444         (mmicromips): New option.
5445         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5446         (compare_and_swap_12): Likewise.
5447         (sync_add<mode>): Likewise.
5448         (sync_<optab>_12): Likewise.
5449         (sync_old_<optab>_12): Likewise.
5450         (sync_new_<optab>_12): Likewise.
5451         (sync_nand_12): Likewise.
5452         (sync_old_nand_12): Likewise.
5453         (sync_new_nand_12): Likewise.
5454         (sync_sub<mode>): Likewise.
5455         (sync_old_add<mode>): Likewise.
5456         (sync_old_sub<mode>): Likewise.
5457         (sync_new_add<mode>): Likewise.
5458         (sync_new_sub<mode>): Likewise.
5459         (sync_<optab><mode>): Likewise.
5460         (sync_old_<optab><mode>): Likewise.
5461         (sync_new_<optab><mode>): Likewise.
5462         (sync_nand<mode>): Likewise.
5463         (sync_old_nand<mode>): Likewise.
5464         (sync_new_nand<mode>): Likewise.
5465         (sync_lock_test_and_set<mode>): Likewise.
5466         (test_and_set_12): Likewise.
5467         (atomic_compare_and_swap<mode>): Likewise.
5468         (atomic_exchange<mode>_llsc): Likewise.
5469         (atomic_fetch_add<mode>_llsc): Likewise.
5470         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5471         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5472         (umips_save_restore_pattern_p): Likewise.
5473         (umips_load_store_pair_p): Likewise.
5474         (umips_output_load_store_pair): Likewise.
5475         (umips_movep_target_p): Likewise.
5476         (umips_12bit_offset_address_p): Likewise.
5477         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5478         (mips_base_mips16): Rename this...
5479         (mips_base_compression_flags): ...to this. Update all uses.
5480         (mips_attribute_table): Add micromips, nomicromips and nocompression.
5481         (mips_mips16_decl_p): Delete.
5482         (mips_nomips16_decl_p): Delete.
5483         (mips_get_compress_on_flags): New function.
5484         (mips_get_compress_off_flags): New function.
5485         (mips_get_compress_mode): New function.
5486         (mips_get_compress_on_name): New function.
5487         (mips_get_compress_off_name): New function.
5488         (mips_insert_attributes): Support multiple compression types.
5489         (mips_merge_decl_attributes): Likewise.
5490         (umips_12bit_offset_address_p): New function.
5491         (mips_start_function_definition): Emit .set micromips directive.
5492         (mips_call_may_need_jalx_p): New function.
5493         (mips_function_ok_for_sibcall): Add microMIPS support.
5494         (mips_print_operand_punctuation): Support short delay slots and
5495         compact jumps.
5496         (umips_swm_mask, umips_swm_encoding): New.
5497         (umips_build_save_restore): New function.
5498         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5499         (was_mips16_p): Remove.
5500         (old_compression_mode): New.
5501         (mips_set_compression_mode): New function.
5502         (mips_set_current_function): Add microMIPS support.
5503         (mips_option_override): Likewise.
5504         (umips_save_restore_pattern_p): New function.
5505         (umips_output_save_restore): New function.
5506         (umips_load_store_pair_p_1): New function.
5507         (umips_load_store_pair_p): New function.
5508         (umips_output_load_store_pair_1): New function.
5509         (umips_output_load_store_pair): New function.
5510         (umips_movep_target_p) New function.
5511         (mips_prepare_pch_save): Add microMIPS support.
5512         * config/mips/mips.h (TARGET_COMPRESSION): New.
5513         (TARGET_CPU_CPP_BUILTINS): Update macro
5514         to use new compression flags and to support microMIPS.
5515         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5516         (MIPS_ARCH_FLOAT_SPEC): Likewise.
5517         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5518         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5519         (ASM_SPEC): Support mmicromips and mno-micromips.
5520         (M16STORE_REG_P): New macro.
5521         (MIPS_CALL): Support TARGET_MICROMIPS.
5522         (MICROMIPS_J): New macro.
5523         (mips_base_mips16): Rename this...
5524         (mips_base_compression_flags): ...to this.
5525         (UMIPS_12BIT_OFFSET_P): New macro.
5526         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5527         (MULTILIB_DIRNAMES): Likewise.
5529 2013-02-25  Tom de Vries  <tom@codesourcery.com>
5531         PR rtl-optimization/56131
5532         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
5533         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
5534         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
5536 2013-02-25  Tobias Burnus  <burnus@net-b.de>
5538         * doc/invoke.texi (-fsanitize=): Move from optimization
5539         to debugging options.
5541 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
5543         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
5545 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
5546             Alexander Monakov  <amonakov@ispras.ru>
5548         PR middle-end/56077
5549         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
5550         flush pending lists also on non-jumps.  Adjust comment.
5552 2013-02-24  Catherine Moore  <clm@codesourcery.com>
5553             Maciej W. Rozycki  <macro@codesourcery.com>
5554             Tom de Vries  <tom@codesourcery.com>
5555             Nathan Sidwell  <nathan@codesourcery.com>
5556             Iain Sandoe  <iain@codesourcery.com>
5557             Nathan Froyd  <froydnj@codesourcery.com>
5558             Chao-ying Fu  <fu@mips.com>
5560         * doc/extend.texi: (micromips, nomicromips, nocompression):
5561         Document new function attributes.
5562         * doc/invoke.texi (minterlink-compressed, mmicromips,
5563         m14k, m14ke, m14kec): Document new options.
5564         (minterlink-mips16): Update documentation.
5565         * doc/md.texi (ZC, ZD): Document new constraints.
5566         * configure.ac (gcc_cv_as_micromips): Check if linker
5567         supports the .set micromips directive.
5568         * configure: Regenerate.
5569         * config.in: Regenerate.
5570         * config/mips/mips-tables.opt: Regenerate.
5571         * config/mips/micromips.md: New file.
5572         * constraints.md (ZC, AD): New constraints.
5573         * config/mips/predicates.md (movep_src_register): New predicate.
5574         (movep_src_operand): New predicate.
5575         (non_volatile_mem_operand): New predicate.
5576         * config/mips/mips.md (multimem): New type.
5577         (length): Differentiate between 17-bit and 18-bit branch offsets.
5578         (MOVEP1, MOVEP2): New mode iterator.
5579         (mov_<load>l): Use ZC constraint.
5580         (mov_<load>r): Likewise.
5581         (mov_<store>l): Likewise.
5582         (mov_<store>r): Likewise.
5583         (*branch_equality<mode>_inverted): Add microMIPS support.
5584         (*branch_equality<mode>): Likewise.
5585         (*jump_absolute): Likewise.
5586         (indirect_jump_<mode>): Likewise.
5587         (tablejump_<mode>): Likewise.
5588         (<optab>_internal): Likewise.
5589         (sibcall_internal): Likewise.
5590         (sibcall_value_internal): Likewise.
5591         (prefetch): Use constraint ZD.
5592         * config/mips/mips.opt (minterlink-compressed): New option.
5593         (minterlink-mips16): Now an alias for minterlink-compressed.
5594         (mmicromips): New option.
5595         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
5596         (compare_and_swap_12): Likewise.
5597         (sync_add<mode>): Likewise.
5598         (sync_<optab>_12): Likewise.
5599         (sync_old_<optab>_12): Likewise.
5600         (sync_new_<optab>_12): Likewise.
5601         (sync_nand_12): Likewise.
5602         (sync_old_nand_12): Likewise.
5603         (sync_new_nand_12): Likewise.
5604         (sync_sub<mode>): Likewise.
5605         (sync_old_add<mode>): Likewise.
5606         (sync_old_sub<mode>): Likewise.
5607         (sync_new_add<mode>): Likewise.
5608         (sync_new_sub<mode>): Likewise.
5609         (sync_<optab><mode>): Likewise.
5610         (sync_old_<optab><mode>): Likewise.
5611         (sync_new_<optab><mode>): Likewise.
5612         (sync_nand<mode>): Likewise.
5613         (sync_old_nand<mode>): Likewise.
5614         (sync_new_nand<mode>): Likewise.
5615         (sync_lock_test_and_set<mode>): Likewise.
5616         (test_and_set_12): Likewise.
5617         (atomic_compare_and_swap<mode>): Likewise.
5618         (atomic_exchange<mode>_llsc): Likewise.
5619         (atomic_fetch_add<mode>_llsc): Likewise.
5620         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
5621         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
5622         (umips_save_restore_pattern_p): Likewise.
5623         (umips_load_store_pair_p): Likewise.
5624         (umips_output_load_store_pair): Likewise.
5625         (umips_movep_target_p): Likewise.
5626         (umips_12bit_offset_address_p): Likewise.
5627         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
5628         (mips_base_mips16): Rename this...
5629         (mips_base_compression_flags): ...to this. Update all uses.
5630         (mips_attribute_table): Add micromips, nomicromips and nocompression.
5631         (mips_mips16_decl_p): Delete.
5632         (mips_nomips16_decl_p): Delete.
5633         (mips_get_compress_on_flags): New function.
5634         (mips_get_compress_off_flags): New function.
5635         (mips_get_compress_mode): New function.
5636         (mips_get_compress_on_name): New function.
5637         (mips_get_compress_off_name): New function.
5638         (mips_insert_attributes): Support multiple compression types.
5639         (mips_merge_decl_attributes): Likewise.
5640         (umips_12bit_offset_address_p): New function.
5641         (mips_start_function_definition): Emit .set micromips directive.
5642         (mips_call_may_need_jalx_p): New function.
5643         (mips_function_ok_for_sibcall): Add microMIPS support.
5644         (mips_print_operand_punctuation): Support short delay slots and
5645         compact jumps.
5646         (umips_swm_mask, umips_swm_encoding): New.
5647         (umips_build_save_restore): New function.
5648         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
5649         (was_mips16_p): Remove.
5650         (old_compression_mode): New.
5651         (mips_set_compression_mode): New function.
5652         (mips_set_current_function): Add microMIPS support.
5653         (mips_option_override): Likewise.
5654         (umips_save_restore_pattern_p): New function.
5655         (umips_output_save_restore): New function.
5656         (umips_load_store_pair_p_1): New function.
5657         (umips_load_store_pair_p): New function.
5658         (umips_output_load_store_pair_1): New function.
5659         (umips_output_load_store_pair): New function.
5660         (umips_movep_target_p) New function.
5661         (mips_prepare_pch_save): Add microMIPS support.
5662         * config/mips/mips.h (TARGET_COMPRESSION): New.
5663         (TARGET_CPU_CPP_BUILTINS): Update macro
5664         to use new compression flags and to support microMIPS.
5665         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
5666         (MIPS_ARCH_FLOAT_SPEC): Likewise.
5667         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
5668         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
5669         (ASM_SPEC): Support mmicromips and mno-micromips.
5670         (M16STORE_REG_P): New macro.
5671         (MIPS_CALL): Support TARGET_MICROMIPS.
5672         (MICROMIPS_J): New macro.
5673         (mips_base_mips16): Rename this...
5674         (mips_base_compression_flags): ...to this.
5675         (UMIPS_12BIT_OFFSET_P): New macro.
5676         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
5677         (MULTILIB_DIRNAMES): Likewise.
5679 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
5681         PR target/52555
5682         * target-globals.c (save_target_globals): For init_reg_sets and
5683         target_reinit remporarily set this_fn_optabs to this_target_optabs.
5685 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
5687         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
5688         * config/aarch64/t-aarch64
5689         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
5691 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5693         PR inline-asm/56148
5694         * lra-constraints.c (process_alt_operands): Reload operand
5695         conflicting with earlier clobber only if no more other conflicting
5696         operands.
5698 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
5700         PR sanitizer/56393
5701         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
5702         if not linking a shared library.
5704 2013-02-22  Seth LaForge  <sethml@google.com>
5706         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
5708 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
5710         * config/arm/arm.md (split for extendsidi): Update condition.
5711         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
5712         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
5713         (qhs_zextenddi_cstr): Likewise.
5715 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
5717         PR middle-end/56420
5718         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
5719         avoid signed wrapping.
5720         (expand_mult): Handle properly multiplication by
5721         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
5722         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
5723         in the compiler if coeff is HOST_WIDE_INT_MIN.
5724         (expand_divmod): Don't make ext_op1 static, change it's type to
5725         uhwi.  Avoid undefined behavior in -INTVAL (op1).
5727         PR rtl-optimization/50339
5728         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
5729         field.
5730         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
5731         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
5732         into splitting_ashiftrt field.
5733         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
5734         ASHIFTRT.
5735         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
5736         choices.
5738 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
5740         PR middle-end/56108
5741         * trans-mem.c (execute_tm_mark): Do not expand transactions that
5742         are sure to go irrevocable.
5744 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
5746         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
5747         scalars are valid operands.
5749 2013-02-21  Martin Jambor  <mjambor@suse.cz>
5751         PR tree-optimization/56310
5752         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
5753         only matching indices and non-negative final offsets.
5754         (intersect_aggregates_with_edge): Pass src_idx to
5755         agg_replacements_to_vector.  Pass src_idx insstead of index to
5756         intersect_with_agg_replacements.
5758 2013-02-21  Martin Jambor  <mjambor@suse.cz>
5760         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
5761         instead of hard-wired defaults.
5763 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
5765         * doc/invoke.texi (MIPS Options): Update documentation of the
5766         floating-point multiply-accumulate instruction restrictions.
5768 2013-02-21  Kostya Serebryany  <kcc@google.com>
5770         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
5771         asan_shadow_offset on x86_64 linux.
5773 2013-02-21  Richard Biener  <rguenther@suse.de>
5775         PR tree-optimization/56415
5776         Revert
5777         2013-02-11  Richard Biener  <rguenther@suse.de>
5779         PR tree-optimization/56273
5780         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
5781         first VRP run.
5783 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
5785         PR bootstrap/56258
5786         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
5787         instead of @itemx.
5789         PR inline-asm/56405
5790         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
5791         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
5793 2013-02-20  Jan Hubicka  <jh@suse.cz>
5795         PR tree-optimization/56265
5796         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
5797         when target is referenced for first time.
5799 2013-02-20  Richard Biener  <rguenther@suse.de>
5801         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
5802         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
5803         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
5804         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
5805         not return anything.
5806         (rename_ssa_copies): Do not remove unused locals.
5807         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
5808         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
5809         * passes.c (execute_function_todo): Do not schedule unused locals
5810         removal if cleanup_tree_cfg did something.
5811         * tree-ssa-live.c (remove_unused_locals): Dump statistics
5812         about the number of removed locals.
5814 2013-02-20  Richard Biener  <rguenther@suse.de>
5816         PR tree-optimization/56398
5817         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
5819 2013-02-20  Martin Jambor  <mjambor@suse.cz>
5821         PR tree-optimization/55334
5822         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
5823         restricted pointers to arrays.
5825 2013-02-20  Richard Biener  <rguenther@suse.de>
5826             Jakub Jelinek  <jakub@redhat.com>
5828         PR tree-optimization/56396
5829         * tree-ssa-ccp.c (n_const_val): New static variable.
5830         (get_value): Return NULL for SSA names we don't have a lattice
5831         entry for.
5832         (ccp_initialize): Initialize n_const_val.
5833         * tree-ssa-copy.c (n_copy_of): New static variable.
5834         (init_copy_prop): Initialize n_copy_of.
5835         (get_value): Return NULL_TREE for SSA names we don't have a
5836         lattice entry for.
5838 2013-02-20  Martin Jambor  <mjambor@suse.cz>
5840         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
5842 2013-02-20  Richard Biener  <rguenther@suse.de>
5844         * genpreds.c (write_lookup_constraint): Do not compare first
5845         letter of the constraint again.
5847 2013-02-20  Richard Biener  <rguenther@suse.de>
5849         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
5850         and ceil_log2.
5851         (get_use_iv_cost): Terminate hashtable walk when coming across
5852         an empty entry.
5854 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
5856         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
5857         reassociation for avx2 targets.
5859 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5861         * config/microblaze/microblaze.c: microblaze_has_clz = 0
5862         Add version check for v8.10.a to enable microblaze_has_clz
5863         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
5864         version and TARGET_PATTERN_COMPARE check
5865         * config/microblaze/microblaze.md: New clzsi2 instruction
5867 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5869         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
5870         function before branching.
5872 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
5874         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
5875         DUMP_INSN_RTX_UID.
5876         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
5878 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
5880         PR middle-end/55889
5881         * sel-sched.c: Include ira.h.
5882         (implicit_clobber_conflict_p): New function.
5883         (moveup_expr): Use it.
5884         * Makefile.in (sel-sched.o): Depend on ira.h.
5886 2013-02-19  Richard Biener  <rguenther@suse.de>
5888         PR tree-optimization/56384
5889         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
5890         (vn_hash_type): Split out from ...
5891         (vn_hash_constant_with_type): ... here.
5892         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
5893         (vn_phi_eq): Compare types from vn_phi_s structure.
5894         (vn_phi_lookup): Populate vn_phi_s type.
5895         (vn_phi_insert): Likewise.
5897 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
5899         PR tree-optimization/56350
5900         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
5901         if haven't found reduction or nested cycle operand, rather than
5902         asserting we must find it.
5904         PR tree-optimization/56381
5905         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
5906         to fold_build3.
5908 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
5909             Jakub Jelinek  <jakub@redhat.com>
5911         PR target/52555
5912         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
5913         (swap_optab_enable): Same.
5914         (init_all_optabs): Use argument instead of global.
5915         * tree.h (struct tree_optimization_option): New field target_optabs.
5916         * expr.h (init_all_optabs): Add argument to prototype.
5917         (TREE_OPTIMIZATION_OPTABS): New.
5918         (save_optabs_if_changed): Protoize.
5919         * optabs.h: Declare this_fn_optabs.
5920         * optabs.c (save_optabs_if_changed): New.
5921         Declare this_fn_optabs.
5922         (init_optabs): Add argument to init_all_optabs() call.
5923         * function.c (invoke_set_current_function_hook): Handle per
5924         function optabs.
5925         * function.h (struct function): New field optabs.
5926         * config/mips/mips.c (mips_set_mips16_mode): Handle when
5927         optimization_current_node has changed.
5928         * target-globals.h (save_target_globals_default_opts): Protoize.
5929         * target-globals.c (save_target_globals_default_opts): New.
5931 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5933         PR target/56347
5934         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
5935         registers %fr12 and %fr12R as call used.
5937         PR target/56214
5938         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
5939         and HImode, require all displacements to be an integer multiple of
5940         their mode size.
5941         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
5942         only allow QImode and HImode when reload is in progress and strict is
5943         true.  Likewise for symbolic addresses.  Use base14_operand to check
5944         displacements in REG+BASE addresses.
5946 2013-02-18  Richard Biener  <rguenther@suse.de>
5948         PR tree-optimization/56366
5949         * tree-vect-loop.c (get_initial_def_for_induction): Properly
5950         handle sign-conversion of outer-loop initial induction value.
5952 2013-02-18  Richard Biener  <rguenther@suse.de>
5954         PR middle-end/56349
5955         * cfghooks.c (merge_blocks): If we merge a latch into another
5956         block adjust references to it.
5957         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
5958         (verify_loop_structure): Verify that a recorded latch is in fact
5959         a latch.
5961 2013-02-18  Richard Biener  <rguenther@suse.de>
5963         PR tree-optimization/56321
5964         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
5965         order SSA name release and virtual operand unlinking.
5967 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5969         * config/microblaze/microblaze.md (save_stack_block): Define.
5970         (restore_stack_block): Likewise.
5972 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5974         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
5975         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
5976         * config/microblaze/microblaze.c (microblaze_option_override):
5977         Bail out early for PIC modes when target does not support PIC.
5979 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5981         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
5982         Replace with a microblaze version.
5983         (microblaze_trampoline_init): Adapt for microblaze.
5984         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
5985         microblaze.
5987 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
5988             Dodji Seketeli  <dodji@redhat.com>
5990         PR asan/56330
5991         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
5992         (instrument_mem_region_access): Do not forget to always put
5993         instrumentation of the of 'base' and 'base + len' in a "if (len !=
5994         0) statement, even for cases where either 'base' or 'base + len'
5995         are not instrumented -- because they have been previously
5996         instrumented.  Simplify the logic by putting all the statements
5997         instrument 'base + len' inside a sequence, and then insert that
5998         sequence right before the current insertion point.  Then, to
5999         instrument 'base + len', just get an iterator on that statement.
6000         And do not forget to update the pointer to iterator the function
6001         received as argument.
6003 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
6005         PR rtl-optimization/56348
6006         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
6008 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
6010         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
6011         (clean_graph_dump_file): Pass base to start_graph_dump.
6013 2013-02-14  Richard Henderson  <rth@redhat.com>
6015         PR target/55941
6016         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
6018 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
6020         * collect2-aix.h: Define F_LOADONLY.
6022 2013-02-14  Richard Biener  <rguenther@suse.de>
6024         PR lto/50494
6025         * varasm.c (output_constant_def_1): Get the decl representing
6026         the constant as argument.
6027         (output_constant_def): Wrap output_constant_def_1.
6028         (make_decl_rtl): Use output_constant_def_1 with the decl
6029         representing the constant.
6030         (build_constant_desc): Optionally re-use a decl already
6031         representing the constant.
6032         (tree_output_constant_def): Adjust.
6034 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
6036         Fix an asan crash
6037         * asan.c (instrument_builtin_call):  Really put the length of the
6038         second source argument into src1_len.
6040 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
6042         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
6043         argument.  If it is false, don't create edge from then_bb to
6044         fallthru_bb.
6045         (insert_if_then_before_iter): Pass true to it.
6046         (build_check_stmt): Pass false to it.
6047         (transform_statements): Flush hash table only on extended basic
6048         block boundaries, rather than at the beginning of every bb.
6049         Don't flush hash table on nonfreeing_call_p calls.
6050         * tree-flow.h (nonfreeing_call_p): New prototype.
6051         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
6053 2013-02-13  David S. Miller  <davem@davemloft.net>
6055         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
6057 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
6059         PR target/56184
6060         * ira.c (max_regno_before_ira): Move from ...
6061         (ira): ... here.
6062         (fix_reg_equiv_init): Use max_regno_before_ira instead of
6063         vec_safe_length.
6065 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
6067         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
6069 2013-02-13  Richard Biener  <rguenther@suse.de>
6071         PR lto/56295
6072         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
6073         globals in MEM_REFs.
6075 2013-02-13  Richard Biener  <rguenther@suse.de>
6077         * loop-init.c (loop_optimizer_init): Clear loop state when
6078         re-initializing preserved loops.
6079         * loop-unswitch.c (unswitch_single_loop): Return whether
6080         we unswitched the loop.  Do not verify loop state here.
6081         (unswitch_loops): When we unswitched a loop discover new loops.
6083 2013-02-13  Kostya Serebryany  <kcc@google.com>
6085         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
6086         on x86_64 linux.
6087         * sanitizer.def: Rename __asan_init to __asan_init_v1.
6089 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
6091         Avoid instrumenting duplicated memory access in the same basic block
6092         * Makefile.in (asan.o): Add new dependency on hash-table.h
6093         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
6094         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
6095         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
6096         (free_mem_ref_resources, has_mem_ref_been_instrumented)
6097         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
6098         (get_mem_ref_of_assignment): New functions.
6099         (get_mem_refs_of_builtin_call): Extract from
6100         instrument_builtin_call and tweak a little bit to make it fit with
6101         the new signature.
6102         (instrument_builtin_call): Use the new
6103         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
6104         of is_gimple_builtin_call.
6105         (instrument_derefs, instrument_mem_region_access): Insert the
6106         instrumented memory reference into the hash table.
6107         (maybe_instrument_assignment): Renamed instrument_assignment into
6108         this, and change it to advance the iterator when instrumentation
6109         actually happened and return true in that case.  This makes it
6110         homogeneous with maybe_instrument_assignment, and thus give a
6111         chance to callers to be more 'regular'.
6112         (transform_statements): Clear the memory reference hash table
6113         whenever we enter a new BB, when we cross a function call, or when
6114         we are done transforming statements.  Use
6115         maybe_instrument_assignment instead of instrumentation.  No more
6116         need to special case maybe_instrument_assignment and advance the
6117         iterator after calling it; it's now handled just like
6118         maybe_instrument_call.  Update comment.
6120 2013-02-13  Richard Biener  <rguenther@suse.de>
6122         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6123         Fix loop discovery code.
6125 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
6127         PR inline-asm/56148
6128         * lra-constraints.c (process_alt_operands): Match early clobber
6129         operand with itself.  Check conflicts with earlyclobber only if
6130         the operand is not reloaded.  Prefer to reload conflicting operand
6131         if earlyclobber and matching operands are the same.
6133 2013-02-12  Richard Biener  <rguenther@suse.de>
6135         PR lto/56297
6136         * lto-streamer-out.c (write_symbol): Do not output symbols
6137         for hard register variables.
6139 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
6141         PR target/54222
6142         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
6143         (umulsidi3_insn, mulsidi3_insn): New insns.
6145 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
6147         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
6148         (struct tune_params): Add vec_costs field.
6149         * config/arm/arm.c (arm_builtin_vectorization_cost)
6150         (arm_add_stmt_cost): New functions.
6151         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
6152         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
6153         (arm_default_vec_cost): New struct of type cpu_vec_costs.
6154         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
6155         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
6156         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
6157         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
6159 2013-02-12  Richard Biener  <rguenther@suse.de>
6161         PR lto/56295
6162         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
6163         decls again if possible.
6165 2013-02-12  Richard Biener  <rguenther@suse.de>
6167         PR middle-end/56288
6168         * tree-ssa.c (verify_ssa_name): Fix check, move
6169         SSA_NAME_IN_FREE_LIST check up.
6171 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
6172             Steven Bosscher   <steven@gcc.gnu.org>
6174         PR rtl-optimization/56151
6175         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
6176         equal to op0 or op1, and last_insn pattern is CODE operation
6177         with MEM dest and one of the operands matches that MEM.
6179 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
6181         * doc/extend.texi: Document Function Multiversioning and "default"
6182         parameter string to target attribute.
6183         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
6184         target attribute parameter is "default".
6185         (ix86_compare_version_priority): Remove checks for target attribute.
6186         (ix86_mangle_function_version_assembler_name): Change error to sorry.
6187         Remove check for target attribute equal to NULL. Add assert.
6188         (ix86_generate_version_dispatcher_body): Change error to sorry.
6190 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
6191             Jack Howarth  <howarth@bromo.med.uc.edu>
6192             Patrick Marlier  <patrick.marlier@gmail.com>
6194         PR libitm/55693
6195         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
6196         define ENDFILE_SPEC as TM_DESTRUCTOR.
6197         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
6199 2013-02-11  Alexander Potapenko  <glider@google.com>
6200             Jack Howarth  <howarth@bromo.med.uc.edu>
6201             Jakub Jelinek  <jakub@redhat.com>
6203         PR sanitizer/55617
6204         * config/darwin.c (cdtor_record): Rename ctor_record.
6205         (sort_cdtor_records): Rename sort_ctor_records.
6206         (finalize_dtors): New routine to sort destructors by
6207         priority before use in assemble_integer.
6208         (machopic_asm_out_destructor): Use finalize_dtors if needed.
6210 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
6212         PR rtl-optimization/56275
6213         * simplify-rtx.c (avoid_constant_pool_reference): Check that
6214         offset is non-negative and less than cmode size before
6215         calling simplify_subreg.
6217 2013-02-11  Richard Biener  <rguenther@suse.de>
6219         PR tree-optimization/56264
6220         * cfgloop.h (fix_loop_structure): Adjust prototype.
6221         * loop-init.c (fix_loop_structure): Return the number of
6222         newly discovered loops.
6223         * tree-cfgcleanup.c (repair_loop_structures): When new loops
6224         are discovered, do a full loop-closed SSA rewrite.
6226 2013-02-11  Richard Biener  <rguenther@suse.de>
6228         PR tree-optimization/56273
6229         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
6230         first VRP run.
6231         (check_array_ref): Fix missing newline in dumps.
6232         (search_for_addr_array): Likewise.
6234 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
6236         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
6238 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
6240         PR target/56256
6241         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
6243 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
6245         PR rtl-optimization/56246
6246         * lra-constraints.c (simplify_operand_subreg): Try to reuse
6247         reload pseudo.
6248         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
6249         constraints are satisfied.
6251 2013-02-08  Jeff Law  <law@redhat.com>
6253         PR debug/53948
6254         * emit-rtl.c (reg_is_parm_p): New function.
6255         * regs.h (reg_is_parm_p): New prototype.
6256         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
6257         callee-clobbered registers.
6259 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
6261         PR target/56043
6262         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
6263         If there is no implicit builtin declaration, just return NULL.
6265 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
6267         * config/i386/sse.md (FMAMODEM): New mode iterator.
6268         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
6269         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
6271 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
6273         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
6274         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
6275         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
6277 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
6279         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
6280         (microblaze*-*-elf): Likewise.
6281         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
6282         LINK_SPEC.
6283         * config/microblaze/microblaze-c.c: Add builtin defines for
6284         _LITTLE_ENDIAN and _BIG_ENDIAN.
6285         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
6286         add to TARGET_DEFAULT flags.
6287         Expand ASM_SPEC and LINK_SPEC.
6288         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
6289         * config/microblaze/microblaze.md: Update extendsidi2 and
6290         movdi_internal instructions to use low-order / high-order reg
6291         print_operands.
6292         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
6293         options and inversemask / mask of LITTLE_ENDIAN.
6294         * config/microblaze/t-microblaze: Expand multilib options to
6295         include mlittle-endian (le) and update exceptions patterns.
6297 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
6299         PR rtl-optimization/56195
6300         * lra-constraints.c (get_reload_reg): Don't reuse regs
6301         if they have smaller mode than requested, if they have
6302         wider mode than requested, try to return a SUBREG.
6304         PR tree-optimization/56250
6305         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
6306         if type is unsigned and code isn't MULT_EXPR.
6308 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
6310         PR tree-optimization/56064
6311         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
6312         bits according to mode.
6313         * fixed-value.h (fixed_from_double_int)
6314         (const_fixed_from_double_int): Adjust comments.
6316 2013-02-08  Richard Biener  <rguenther@suse.de>
6318         PR lto/56231
6319         * lto-streamer.h (struct data_in): Remove current_file, current_line
6320         and current_col members.
6321         * lto-streamer-out.c (lto_output_location): Stream changed bits
6322         en-block for efficiency.
6323         * lto-streamer-in.c (clear_line_info): Remove.
6324         (lto_input_location): Cache current file, line and column
6325         globally via local statics.  Read changed bits en-block.
6326         (input_function): Do not call clear_line_info.
6327         (lto_read_body): Likewise.
6328         (lto_input_toplevel_asms): Likewise.
6330 2013-02-08  Michael Matz  <matz@suse.de>
6332         PR tree-optimization/52448
6333         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
6334         (nt_call_phase): New static.
6335         (add_or_mark_expr): Only mark accesses with newer phase than any
6336         call seen.
6337         (nonfreeing_call_p): New.
6338         (nt_init_block): Update nt_call_phase, mark blocks as visited.
6339         (nt_fini_block): Keep blocks marked as visited.
6340         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
6342 2013-02-08  Richard Biener  <rguenther@suse.de>
6344         * ira.c (ira): Free broken dominator information.
6346 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
6348         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
6350 2013-02-08  Marek Polacek  <polacek@redhat.com>
6352         * cfgloop.c (verify_loop_structure): Add more checking of headers.
6354 2013-02-08  Richard Biener  <rguenther@suse.de>
6356         PR middle-end/56181
6357         * cfgloop.h (flow_loops_find): Adjust.
6358         (bb_loop_header_p): Declare.
6359         * cfgloop.c (bb_loop_header_p): New function split out from ...
6360         (flow_loops_find): ... here.  Adjust function signature,
6361         support incremental loop structure update.
6362         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
6363         * cfgloopmanip.c (fix_loop_structure): Move ...
6364         * loop-init.c (fix_loop_structure): ... here.
6365         (apply_loop_flags): Split out from ...
6366         (loop_optimizer_init): ... here.
6367         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
6368         in incremental mode, only remove dead loops here.
6370 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
6372         PR target/54222
6373         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
6374         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
6375         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
6376         (*round<mode>3.libgcc): New insns for fixed-modes.
6377         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
6378         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
6379         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
6380         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
6381         implementations.  Define to __builtin_avr_absFX,
6382         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
6383         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
6384         __builtin_avr_countlsFX, respectively.
6385         * config/avr/avr-c.c (target.h): Include it.
6386         (enum avr_builtin_id): New enum.
6387         (avr_resolve_overloaded_builtin): New static function.
6388         (avr_register_target_pragmas): Use it to set
6389         targetm.resolve_overloaded_builtin.
6390         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
6391         tree nodes used by DEF_BUILTIN.
6392         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
6393         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
6394         <AVR_BUILTIN_xxBITS>: Same.
6396 2013-02-08  Richard Biener  <rguenther@suse.de>
6398         * cfgloop.c (verify_loop_structure): Properly handle
6399         a loop exiting to another loop header.
6400         * ira-int.h (ira_loops): Remove.
6401         * ira.c (ira_loops): Remove.
6402         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
6403         (do_reload): Use loop_optimizer_finalize.
6404         * ira-build.c (create_loop_tree_nodes): Use get_loops and
6405         number_of_loops to access the loop tree.
6406         (more_one_region_p): Likewise.
6407         (finish_loop_tree_nodes): Likewise.
6408         (rebuild_regno_allocno_maps): Likewise.
6409         (mark_loops_for_removal): Likewise.
6410         (mark_all_loops_for_removal): Likewise.
6411         (remove_unnecessary_regions): Likewise.
6412         (ira_build): Likewise.
6413         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
6415 2013-02-08  Richard Biener  <rguenther@suse.de>
6417         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
6418         * ipa-pure-const.c (analyze_function): Avoid calling
6419         mark_irreducible_loops twice.
6420         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
6422 2013-02-07  David S. Miller  <davem@davemloft.net>
6424         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
6425         on 'reg'.
6426         * var-tracking.c (vt_add_function_parameter): Test the presence of
6427         HAVE_window_save properly and do not remap argument registers when
6428         we have a leaf function.
6430 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
6432         PR bootstrap/56227
6433         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
6434         instead of "ll".
6435         * config/i386/i386.c (ix86_print_operand): Ditto.
6437 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
6439         * lra-constraints.c (process_alt_operands): Fix recently added comment.
6441 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
6443         PR rtl-optimization/56225
6444         * lra-constraints.c (process_alt_operands): Check that reload hard
6445         reg can hold value for strict_low_part.
6447 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
6449         PR debug/56154
6450         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
6451         dwarf2out_end_function.
6452         (in_first_function_p, maybe_at_text_label_p,
6453         first_loclabel_num_not_at_text_label): New variables.
6454         (dwarf2out_var_location): In the first function find out
6455         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
6456         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
6457         functions.
6459 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
6461         PR rtl-optimization/56178
6462         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
6463         SUBREG of a register.  Tidy up related block of code.
6464         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
6465         note if the source is a register or a SUBREG of a register.
6467 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
6469         PR target/56228
6470         * config/rs6000/rs6000.md (ptrm): New mode attr.
6471         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
6472         call_value_indirect_aix<pttrsize>,
6473         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
6474         m in constraints.
6476 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
6478         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
6479         if -bnortl. Convert to strcmp and strncmp.
6481 2013-02-07  Alan Modra  <amodra@gmail.com>
6483         PR target/54009
6484         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
6485         addresses won't wrap when offsetting.
6486         (rs6000_secondary_reload): Provide secondary reloads needed for
6487         wrapping LO_SUM addresses.
6489 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
6491         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
6492         MACH, just __MACH__.
6494 2013-02-06  Richard Biener  <rguenther@suse.de>
6496         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
6497         instead of calling fix_loop_structure.
6499 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
6501         PR middle-end/56217
6502         * omp-low.c (use_pointer_for_field): Return false if
6503         lower_send_shared_vars doesn't generate any copy-out code.
6505 2013-02-06  Tom de Vries  <tom@codesourcery.com>
6507         PR rtl-optimization/56131
6508         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
6509         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
6510         of the label is NULL.  Add comment.
6512 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
6514         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
6516         PR sanitizer/55374
6517         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
6518         (STATIC_LIBTSAN_LIBS): Likewise.
6519         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
6520         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
6521         is defined, don't add anything else beyond that.
6522         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
6523         (LINK_COMMAND_SPEC): Use them.
6525         PR tree-optimization/56205
6526         * tree-stdarg.c (check_all_va_list_escapes): Return true if
6527         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
6528         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
6530 2013-02-05  Richard Biener  <rguenther@suse.de>
6532         PR tree-optimization/53342
6533         PR tree-optimization/53185
6534         * tree-vectorizer.h (vect_check_strided_load): Remove.
6535         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
6536         not disallow peeling for vectorized strided loads.
6537         (vect_check_strided_load): Make static and simplify.
6538         (vect_analyze_data_refs): Adjust.
6539         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
6540         correctly when vectorizing strided loads.
6542 2013-02-05  Richard Biener  <rguenther@suse.de>
6544         * doc/install.texi: Refer to ISL, not PPL.
6546 2013-02-05  Jan Hubicka  <jh@suse.cz>
6548         PR tree-optimization/55789
6549         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
6551 2013-02-05  Jan Hubicka  <jh@suse.cz>
6553         PR tree-optimization/55789
6554         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
6555         the dead call anyway.
6557 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
6559         PR sanitizer/55374
6560         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
6562 2013-02-04  Alexander Potapenko  <glider@google.com>
6563             Jack Howarth  <howarth@bromo.med.uc.edu>
6564             Jakub Jelinek  <jakub@redhat.com>
6566         PR sanitizer/55617
6567         * config/darwin.c (sort_ctor_records): Stabilized qsort
6568         on constructor priority by using original position.
6569         (finalize_ctors): New routine to sort constructors by
6570         priority before use in assemble_integer.
6571         (machopic_asm_out_constructor): Use finalize_ctors if needed.
6573 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
6575         PR libstdc++/54314
6576         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
6577         about visibility on artificial decls.
6578         * config/sol2.c (solaris_assemble_visibility): Likewise.
6580 2013-02-04  Kai Tietz  <ktietz@redhat.com>
6582         PR target/56186
6583         * config/i386/i386.c (function_value_ms_64): Add additional valtype
6584         argument and improve checking of return-argument types for 16-byte
6585         modes.
6586         (ix86_function_value_1): Add additional valtype argument on call
6587         of function_value_64.
6588         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
6589         handling infunction_value_64 function.
6591 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
6593         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
6595 2013-02-04  Richard Biener  <rguenther@suse.de>
6597         PR tree-optimization/56188
6598         * tree-ssa-structalias.c (label_visit): Consider case with
6599         initially non-empty points-to set.
6600         (perform_var_substitution): Dump node mapping and clean up.
6602 2013-02-04  Richard Guenther  <rguenther@suse.de>
6604         PR lto/56168
6605         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
6606         node prevail as last resort.
6607         (lto_symtab_merge_decls): Remove guard on LTRANS here.
6608         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
6610 2013-02-04  Richard Biener  <rguenther@suse.de>
6612         PR tree-optimization/56113
6613         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
6614         Merge into ...
6615         (equiv_class_lookup_or_add): ... this.
6616         (label_visit): Adjust and fix error in previous patch.
6617         (perform_var_substitution): Adjust.
6619 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
6621         * config/sh/divtab.c: Fix formatting and comments throughout the file.
6622         * config/sh/sh4-300.md: Likewise.
6623         * config/sh/sh4a.md: Likewise.
6624         * config/sh/constraints.md: Likewise.
6625         * config/sh/sh.md: Likewise.
6626         * config/sh/netbsd-elf.h: Likewise.
6627         * config/sh/predicates.md: Likewise.
6628         * config/sh/sh-protos.h: Likewise.
6629         * config/sh/ushmedia.h: Likewise.
6630         * config/sh/linux.h: Likewise.
6631         * config/sh/sh.c: Likewise.
6632         * config/sh/superh.h: Likewise.
6633         * config/sh/elf.h: Likewise.
6634         * config/sh/sh4.md: Likewise.
6635         * config/sh/sh.h: Likewise.
6637 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6639         * config/pa/constraints.md: Adjust unused letters.  Change "T"
6640         constraint to match_test floating_point_store_memory_operand().
6641         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
6642         (base14_operand): New.
6643         (floating_point_store_memory_operand): New.
6644         (integer_store_memory_operand): Revise to use base14_operand and
6645         reg_plus_base_memory_operand.
6646         (move_dest_operand): Allow symbolic_memory_operands.
6647         (symbolic_memory_operand): Check for LO_SOM.
6648         (symbolic_operand): Change default case to break.
6649         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
6650         CONST_DOUBLE values to be reloaded by putting them into memory when
6651         the destination is a floating point register.
6652         (movdf): Remove code to handle CONST_DOUBLE.
6653         (movsf): Likewise.
6654         (reload_indf_r1): New.
6655         (reload_insf_r1): New.
6656         Consistently use "Q" and "T" constraints with integer and floating
6657         point move instructions, respectively.
6658         (movdi): Remove FAIL.
6659         Change predicate for source operand unamed DImode move from
6660         general_operand to move_src_operand.
6661         (umulsidi3): Change predicate for destination operand to
6662         register_operand.
6663         Likewise for similar unamed patterns.
6664         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
6665         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
6666         (hppa_legitimize_address): Simplify mask calculation.
6667         (pa_emit_move_sequence): Revised handling of secondary reloads from
6668         REG+D addresses for floating point loads and stores.  Directly handle
6669         loading CONST0_RTX (mode) to a floating point register.
6670         (pa_secondary_reload): Handle reloading DF and SFmode constant values
6671         to floating point registers.  Don't restrict secondary reloads to
6672         floating point registers to integer modes.  Revise some comments and
6673         cleanup some code.
6674         (TARGET_LEGITIMATE_ADDRESS_P): Define.
6675         (pa_legitimate_address_p): New.
6676         (pa_legitimize_reload_address): New.
6677         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
6678         (STRICT_REG_OK_FOR_BASE_P): New.
6679         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
6680         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
6682 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
6683             Andrew Dixie  <andrewd@gentrack.com>
6685         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
6686         flag set.
6688 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
6690         * expmed.c (extract_bit_field_1): Pass the full width of the
6691         structure to get_best_reg_extraction_insn.
6693 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
6695         PR target/54601
6696         * configure.ac (use_cxa_atexit): Add AIX.
6697         * configure: Regenerate.
6699         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
6701 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
6703         PR debug/54793
6704         * final.c (need_profile_function): New variable.
6705         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
6706         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
6707         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
6708         notes, targetm.asm_out.function_prologue doesn't emit anything,
6709         HAVE_prologue and profiler should be emitted before prologue,
6710         set need_profile_function instead of emitting it.
6711         (final_scan_insn): If need_profile_function, emit
6712         profile_function on the first NOTE_INSN_BASIC_BLOCK or
6713         NOTE_INSN_FUNCTION_BEG note.
6715 2013-02-01  Richard Henderson  <rth@redhat.com>
6717         * config/rs6000/rs6000.md (smulditi3): New.
6718         (umulditi3): New.
6720         * config/alpha/alpha.md (umulditi3): New.
6722 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
6724         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
6725         (ASM_OUTPUT_ALIGNED_LOCAL): New.
6727 2013-02-01  Richard Biener  <rguenther@suse.de>
6729         PR tree-optimization/56113
6730         * tree-ssa-structalias.c (label_visit): Reduce work for
6731         single-predecessor nodes.
6733 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
6735         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
6736         range isn't testing for zero.
6738 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
6740         PR middle-end/56113
6741         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
6743 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
6744             Nick Clifton  <nickc@redhat.com>
6746         * config/v850/constraints.md (Q): Define as a memory constraint.
6747         * config/v850/predicates.md (label_ref_operand): New predicate.
6748         (e3v5_shift_operand): New predicate.
6749         (ior_operator): New predicate.
6750         * config/v850/t-v850: Add e3v5 multilib.
6751         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
6752         (v850_gen_movdi): Prototype.
6753         * config/v850/v850.c: Add support for e3v5 architecture.
6754         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
6755         TARGET_V850E_UP.
6756         (construct_save_jarl): Add e3v5 long JARL support.
6757         (v850_adjust_insn_length): New function.  Adjust length of call
6758         insns when using e3v5 instructions.
6759         (v850_gen_movdi): New function: Generate instructions to move a
6760         DImode value.
6761         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
6762         (CPP_SPEC): Define __v850e3v5__ as appropriate.
6763         (TARGET_USE_FPU): Enable for e3v5.
6764         (CONST_OK_FOR_W): New macro.
6765         (ADJUST_INSN_LENGTH): Define.
6766         * config/v850/v850.md (UNSPEC_LOOP): Define.
6767         (attr cpu): Add v850e3v5.
6768         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
6769         (movdi): New pattern.
6770         (movdi_internal): New pattern.
6771         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
6772         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
6773         (cstoresf4): Likewise.
6774         (cstoredf4): Likewise.
6775         (insv): New pattern.
6776         (rotlso3_a): New pattern.
6777         (rotlsi3_b): New pattern
6778         (rotlsi3_v850e3v5): New pattern.
6779         (doloop_begin): New pattern.
6780         (fix_loop_counter): New pattern.
6781         (doloop_end): New pattern.
6782         (branch_normal): Add e3v5 long branch support.
6783         (branch_invert): Likewise.
6784         (branch_z_normal): Likewise.
6785         (branch_z_invert): Likewise.
6786         (branch_nz_normal): Likewise.
6787         (branch_nz_invert): Likewise.
6788         (call_internal_short): Add e3v5 register-indirect JARL support.
6789         (call_internal_long): Likewise.
6790         (call_value_internal_short): Likewise.
6791         (call_value_internal_long): Likewise.
6792         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
6793         (mloop): New option.
6794         * config.gcc: Add support for configuring v840e3v5 target.
6795         * doc/invoke.texi: Document new v850 specific command line options.
6797 2013-01-31  Paul Koning  <ni1d@arrl.net>
6799         PR debug/55059
6800         PR debug/54508
6801         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
6802         children if parent is a class.
6803         (prune_unused_types_prune): Don't add DW_AT_declaration.
6805 2013-01-31  Richard Biener  <rguenther@suse.de>
6807         PR tree-optimization/56157
6808         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
6809         match up operand with SLP child.
6811 2013-01-31  Jason Merrill  <jason@redhat.com>
6813         PR debug/54410
6814         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
6815         parameters the first time.
6816         (gen_scheduled_generic_parms_dies): Check completeness here.
6818 2013-01-31  Richard Biener  <rguenther@suse.de>
6820         PR middle-end/53073
6821         * common.opt (faggressive-loop-optimizations): New flag,
6822         enabled by default.
6823         * doc/invoke.texi (faggressive-loop-optimizations): Document.
6824         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
6825         infer_loop_bounds_from_undefined by it.
6827 2013-01-31  Richard Biener  <rguenther@suse.de>
6829         PR tree-optimization/56150
6830         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
6831         visit virtual operands.
6832         (find_uses_to_rename_bb): Likewise.
6834 2013-01-31  Richard Biener  <rguenther@suse.de>
6836         PR tree-optimization/56150
6837         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
6838         mixed store non-store stmts.
6840 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
6842         PR sanitizer/55374
6843         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
6844         LIBASAN_EARLY_SPEC is defined.
6845         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
6846         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
6847         before %o.
6848         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
6850         PR c++/55742
6851         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
6852         invalid args instead of ICEing on it.
6853         (ix86_valid_target_attribute_tree): Return error_mark_node if
6854         ix86_valid_target_attribute_inner_p failed.
6855         (ix86_valid_target_attribute_p): Return false only if
6856         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
6857         target("default") attribute.
6858         (sorted_attr_string): Change argument from const char * to tree,
6859         merge in all target attribute arguments rather than just one.
6860         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
6861         instead of free.  Avoid using strcat.
6862         (ix86_mangle_function_version_assembler_name): Mangle
6863         target("default") as if no target attribute is present.  Adjust
6864         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
6865         instead of xmalloc and XDELETEVEC instead of free.
6866         (ix86_function_versions): Don't return true if one of the decls
6867         doesn't have target attribute.  If they don't and one of the decls
6868         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
6869         sorted_attr_string caller.  Use XDELETEVEC instead of free.
6870         (ix86_supports_function_versions): Remove.
6871         (make_name): Fix up formatting.
6872         (make_dispatcher_decl): Remove resolver_name and its initialization.
6873         Avoid leaking memory.
6874         (is_function_default_version): Return true if there is
6875         target("default") attribute rather than no target attribute at all.
6876         (make_resolver_func): Avoid leaking memory.
6877         (ix86_generate_version_dispatcher_body): Likewise.
6878         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
6879         * target.def (supports_function_versions): Remove.
6880         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
6881         * doc/tm.texi: Regenerated.
6883 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
6885         PR rtl-optimization/56144
6886         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
6887         for values with side effects.
6889 2013-01-30  Richard Biener  <rguenther@suse.de>
6891         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
6892         (sparseset_pop): Likewise.
6893         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
6894         to be able to use quick_push in the worker loop.
6896 2013-01-30  Marek Polacek  <polacek@redhat.com>
6898         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
6900 2013-01-30  Richard Biener  <rguenther@suse.de>
6902         PR lto/56147
6903         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
6905 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
6907         PR tree-optimization/56064
6908         * fixed-value.c (fixed_from_double_int): New function.
6909         * fixed-value.h (fixed_from_double_int): New prototype.
6910         (const_fixed_from_double_int): New static inline function.
6911         * fold-const.c (native_interpret_fixed): New static function.
6912         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
6913         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
6914         (native_encode_fixed): New static function.
6915         (native_encode_expr) <FIXED_CST>: Use it.
6916         (native_interpret_int): Move double_int worker code to...
6917         * double-int.c (double_int::from_buffer): ...this new static method.
6918         * double-int.h (double_int::from_buffer): Prototype it.
6920 2013-01-30  Richard Biener  <rguenther@suse.de>
6922         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
6923         New pointer-map and obstack.
6924         (init_alias_vars): Allocate pointer-map and obstack.
6925         (delete_points_to_sets): Free them.
6926         (find_what_var_points_to): Cache result.
6927         (find_what_p_points_to): Adjust for changed interface of
6928         find_what_var_points_to.
6929         (compute_points_to_sets): Likewise.
6930         (ipa_pta_execute): Likewise.
6932 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6934         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
6935         * configure: Regenerate.
6936         * config.in: Regenerate.
6937         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
6938         #nobits/#progbits if supported.
6940 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
6942         PR target/56121
6943         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
6944         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
6945         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
6947 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6949         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
6950         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
6952 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6954         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
6955         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
6957 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6959         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
6960         declaration.
6961         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
6962         * config/arm/cortex-a7.md: New bypasses using
6963         arm_mac_accumulator_is_result.
6965 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6967         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
6968         (cortex_a7_neon_mla): Likewise.
6969         (cortex_a7_fpfmad): New reservation.
6970         (cortex_a7_fpmacs): Use ffmas and update required units.
6971         (cortex_a7_fpmuld): Update required units and latency.
6972         (cortex_a7_fpmacd): Likewise.
6973         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
6974         (cortex_a7_neon). Likewise.
6975         (bypass) Update participating units.
6977 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
6979         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
6980         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
6981         from fmac to ffma.
6982         * config/arm/vfp11.md (vfp_farith): Use ffmas.
6983         (vfp_fmul): Use ffmad.
6984         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
6985         (cortex_r4_fmacd): Use ffmad.
6986         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
6987         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
6988         (cortex_a9_fmacd): Use ffmad.
6989         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
6990         (cortex_a8_vfp_macd): Use ffmad.
6991         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
6992         (cortex_a5_fpmacd): Use ffmad.
6993         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
6994         (cortex_a15_vfp_macd): Use ffmad.
6995         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
6997 2013-01-29  Jason Merrill  <jason@redhat.com>
6999         PR libstdc++/54314
7000         * varasm.c (default_assemble_visibility): Don't warn about
7001         visibility on artificial decls.
7003 2013-01-29  Richard Biener  <rguenther@suse.de>
7005         PR tree-optimization/56113
7006         * tree-ssa-structalias.c (equiv_class_lookup): Also return
7007         the bitmap leader.
7008         (label_visit): Free duplicate bitmaps and record the leader instead.
7009         (perform_var_substitution): Adjust.
7011 2013-01-29  Richard Biener  <rguenther@suse.de>
7013         PR tree-optimization/55270
7014         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
7015         the CFG, schedule loops for fixup.
7017 2013-01-29  Nick Clifton  <nickc@redhat.com>
7019         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
7020         SP_REG.
7022 2013-01-28  Leif Ekblad  <leif@rdos.net>
7024         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
7025         * config/i386/i386.h (TARGET_RDOS): New macro.
7026         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
7027         * config/i386/i386.c (ix86_option_override_internal): For 64bit
7028         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
7029         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
7030         DEFAULT_LARGE_SECTION_THRESHOLD.
7031         * config/i386/i386.md (R14_REG, R15_REG): New constants.
7032         * config/i386/rdos.h: New file.
7033         * config/i386/rdos64.h: New file.
7035 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
7037         PR other/54814
7038         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
7039         TEST_HARD_REG_BIT.
7041 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
7043         PR rtl-optimization/56117
7044         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
7045         call cselib_lookup_from_insn on the MEM before calling
7046         add_insn_mem_dependence.
7048 2013-01-28  Richard Biener  <rguenther@suse.de>
7050         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
7051         to a stmt that didn't have one.
7052         (copy_phis_for_bb): Likewise for PHI arguments.
7053         (copy_debug_stmt): Likewise for debug stmts.
7055 2013-01-28  Richard Biener  <rguenther@suse.de>
7057         PR tree-optimization/56034
7058         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
7059         (partition_builtin_p): Adjust.
7060         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
7061         it is the last partition.
7062         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
7063         up the vertex for the definition.
7064         (classify_partition): Classify whether a partition is a
7065         PKIND_REDUCTION, thus has uses outside of the loop.
7066         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
7067         Merge all PKIND_REDUCTION partitions into the last partition.
7068         (tree_loop_distribution): Seed partitions from reductions as well.
7070 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
7072         PR tree-optimization/56125
7073         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
7074         pow(x,c) into sqrt(x) * powi(x, n/2) or
7075         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
7076         optimizing for size.
7077         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
7078         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
7079         integer.
7081         PR tree-optimization/56094
7082         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
7083         to UNKNOWN_LOCATION while gimplifying expr.
7085 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
7087         PR target/56114
7088         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
7089         operand 0 in movabs insn template for -masm=intel asm alternative.
7090         (*movabs<mode>_2): Ditto for operand 1.
7092 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
7094         PR target/54663
7095         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
7096         of microblaze-c.o
7098 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7100         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
7101         tm_file.
7103 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
7105         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
7106         Undef to avoid warning.
7108 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7110         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
7111         * configure: Regenerate.
7113 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
7115         PR tree-optimization/56098
7116         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
7117         for stmts with volatile ops.
7118         (cond_store_replacement): Don't optimize if assign has volatile ops.
7119         (cond_if_else_store_replacement_1): Don't optimize if either
7120         then_assign or else_assign have volatile ops.
7121         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
7122         volatile ops.
7124 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7126         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
7128 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7130         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
7131         missing ':' in asm example.
7133 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
7135         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
7136         entries into lane and laneq entries.
7137         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
7138         Remove AdvSIMD scalar modes.
7139         (aarch64_sq<r>dmulh_laneq<mode>): New.
7140         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
7141         modes.
7142         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
7143         builtin implementations to relfect changes in RTL in aarch64-simd.md.
7144         * config/aarch64/iterators.md (VCOND): New.
7145         (VCONQ): New.
7147 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
7149         PR target/54222
7150         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
7151         Add NULL LIBNAME argument to existing definitions.
7152         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
7153         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
7154         * config/avr/avr.c (DEF_BUILTIN): Same.
7155         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
7156         (avr_expand_builtin): Expand to a vanilla call if a libgcc
7157         implementation is available (DECL_ASSEMBLER_NAME is set).
7158         (avr_fold_absfx): New static function.
7159         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
7160         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
7161         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
7162         AVR_BUILTIN_ABSLLK.
7163         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
7164         (abshk, absk, abslk, absllk): Provide as static inline functions.
7166 2013-01-25  Marek Polacek  <polacek@redhat.com>
7168         PR tree-optimization/56035
7169         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
7171 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
7173         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
7174         (*movtf_internal_rex64): Add (!o,C) alternative
7175         (*movxf_internal_rex64): Ditto.
7176         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
7178 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
7180         * doc/invoke.texi: fix typo.
7181         * doc/objc.texi: fix typo.
7183 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
7185         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
7186         for the first two alternatives.
7188 2013-01-24  Diego Novillo  <dnovillo@google.com>
7190         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
7191         (ggc-zone.o): Remove.
7192         * configure.ac: Remove option --with-gc.
7193         * configure: Re-generate.
7194         * doc/install.texi: Remove documentation for --with-gc.
7195         * gengtype.c (write_enum_defn): Remove.  Update all users.
7196         (write_Types_process_field): Remove generation of gt_e_* argument.
7197         (output_type_enum): Remove.  Update all users.
7198         (write_enum_defn): Remove.  Update all users.
7199         (enum alloc_zone): Remove.  Update all users.
7200         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
7201         * ggc-common.c (ggc_splay_alloc): Remove first argument.
7202         Update all callers.
7203         (struct ptr_data): Remove field TYPE.  Update all users.
7204         (gt_pch_note_object): Remove argument TYPE.  Update all users.
7205         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
7206         Update all users.
7207         * ggc-none.c (ggc_alloc_typed_stat): Remove.
7208         (struct alloc_zone): Remove.
7209         (ggc_internal_alloc_zone_stat): Remove.
7210         (ggc_internal_cleared_alloc_zone_stat): Remove.
7211         * ggc-page.c (ggc_alloc_typed_stat): Remove.
7212         (ggc_pch_count_object): Remove last argument.  Update all users.
7213         (ggc_pch_alloc_object): Remove last argument.  Update all users.
7214         (struct alloc_zone): Remove.
7215         * ggc-zone.c: Remove.
7216         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
7217         (struct alloc_zone): Remove.
7218         (ggc_alloc_typed_stat): Remove.
7219         (ggc_alloc_typed): Remove.
7220         (ggc_splay_alloc): Remove first argument.
7221         (rtl_zone): Remove.  Update all users.
7222         (tree_zone): Remove.  Update all users.
7223         (tree_id_zone): Remove.  Update all users.
7224         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
7225         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
7226         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
7227         * tree-ssanames.c: Remove references to zone allocator in comments.
7229 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
7231         * config/avr/avr.c (avr_out_fract): Make register numbers that
7232         might be outside of source operand signed.
7234 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
7236         * config/i386/constraints.md (Yf): New constraint.
7237         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
7238         of f constraint to conditionaly disable x87 register preferences.
7239         (*movdf_internal): Ditto.
7240         (*movsf_internal): Ditto.
7242 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
7244         PR inline-asm/55934
7245         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
7246         that have operands with impossible constraints.
7247         Add a FIXME for a speed-up opportunity.
7248         * lra-constraints.c (process_alt_operands): Verify that a class
7249         selected from constraints on asms is valid for the operand mode.
7250         (curr_insn_transform): Remove incorrect comment.
7252 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
7254         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
7255         TOC operand is a valid symbol ref in the constant pool.
7257 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
7259         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
7261 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
7263         PR target/54222
7264         * config/avr/stdfix.h: New file.
7265         * t-avr (stdfix-gcc.h): New rule to build it.
7266         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
7268 2013-01-23  Kostya Serebryany  <kcc@google.com>
7270         * config/darwin.h: remove dependency on
7271         CoreFoundation (asan on Mac OS).
7273 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
7275         PR target/49069
7276         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
7277         instead of cmpdi_operand for first comparison operand.
7278         Don't assert that comparison operands aren't both constants.
7280 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
7282         * doc/install.texi (Downloading the Source): Update references to
7283         downloading separate components.
7285 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
7287         * doc/extend.texi (__int128): Improve grammar.
7289 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
7291         PR target/56028
7292         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
7293         alternative to (o,r).
7294         (*movdi_internal_rex64): Remove (!o,n) alternative.
7295         (DImode immediate->memory splitter): Remove.
7296         (DImode immediate->memory peephole2): Remove.
7297         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
7298         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
7299         alternative to (!o,*r).
7300         (*movtf_internal_sse): New pattern.
7301         (*movxf_internal_rex64): New pattern.
7302         (*movxf_internal): Disable for TARGET_64BIT.
7303         (*movdf_internal_rex64): Remove (!o,F) alternative.
7305 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
7307         PR middle-end/56074
7308         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
7309         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
7310         * tree-vect-loop-manip.c (find_loop_location): Also ignore
7311         stmt locations where LOCATION_LOCUS of the stmt location is
7312         UNKNOWN_LOCATION or BUILTINS_LOCATION.
7314         PR target/55686
7315         * config/i386/i386.md (UNSPEC_STOS): New.
7316         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
7317         *strsetqi_1): Add UNSPEC_STOS.
7319 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
7321         PR c++/56067
7322         * doc/invoke.texi: Remove left over -Wsynth example.
7324 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
7326         PR tree-optimization/56051
7327         * fold-const.c (fold_binary_loc): Don't fold
7328         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
7329         a narrowing conversion, or widening conversion from signed
7330         to unsigned.
7332 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
7334         PR rtl-optimization/56023
7335         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
7336         dependent on debug instruction.
7338 2013-01-21  Martin Jambor  <mjambor@suse.cz>
7340         PR middle-end/56022
7341         * function.c (allocate_struct_function): Call
7342         invoke_set_current_function_hook earlier.
7344 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
7346         * reload1.c (init_reload): Only initialize reload_obstack
7347         during the first call.
7349 2013-01-21  Marek Polacek  <polacek@redhat.com>
7351         * cfgloop.c (verify_loop_structure): Fix up grammar.
7353 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
7355         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
7356         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
7358 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7360         PR target/56058
7361         * config/arm/marvell-pj4.md: Update copyright year.
7362         Fix up use of alu to alu_reg and simple_alu_imm.
7364 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
7366         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
7368 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
7370         PR target/55433
7371         * lra-constraints.c (curr_insn_transform): Don't reuse original
7372         insn for secondary memory move when memory mode should be different.
7374 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7376         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
7377         atomic_storedi_1): New patterns.
7379 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7381         btver2 pipeline descriptions.
7382         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
7383         descriptions.
7384         * config/i386/i386.md (btver2_decode): New type attributes.
7385         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
7386         type attributes.
7387         * config/i386/btver2.md: New file describing btver2 pipelines.
7389 2013-01-19  Andrew Pinski  <apinski@cavium.com>
7391         PR tree-optimization/52631
7392         * tree-ssa-sccvn (visit_use): Before looking up the original
7393         statement, try looking up the simplified expression.
7395 2013-01-19  Anthony Green  <green@moxielogic.com>
7397         * config/moxie/moxie.c (moxie_expand_prologue): Set
7398         current_function_static_stack_size.
7400 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
7402         PR tree-optimization/56029
7403         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
7404         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
7406 2013-01-18  Sharad Singhai  <singhai@google.com>
7408         PR tree-optimization/55995
7409         * dumpfile.c (dump_loc): Print location only if available.
7410         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
7412 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
7414         PR target/55433
7415         * lra-constraints.c (curr_insn_transform): Reuse original insn for
7416         secondary memory move.
7417         (inherit_reload_reg): Use rclass instead of cl for
7418         check_secondary_memory_needed_p.
7420 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
7422         PR middle-end/56015
7423         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
7424         the case where writing real complex part of target modifies op1.
7426 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
7428         * config/aarch64/aarch64-simd.md
7429         (aarch64_vcond_internal<mode>): Handle unordered cases.
7430         * config/aarch64/iterators.md (v_cmp_result): New.
7432 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
7433             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7435         * config/arm/marvell-pj4.md: New file.
7436         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
7437         * config/arm/arm.md (generic_sched): Add marvell_pj4.
7438         (generic_vfp): Likewise.
7439         * config/arm/arm-cores.def: Add marvell-pj4.
7440         * config/arm/arm-tune.md: Regenerate.
7441         * config/arm/arm-tables.opt: Regenerate.
7442         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
7443         * doc/invoke.texi: Document marvell-pj4.
7445 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
7447         * config/aarch64/arm_neon.h: Map scalar types to standard types.
7449 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
7451         PR debug/54114
7452         PR debug/54402
7453         PR debug/49888
7454         * var-tracking.c (negative_power_of_two_p): New.
7455         (global_get_addr_cache, local_get_addr_cache): New.
7456         (get_addr_from_global_cache, get_addr_from_local_cache): New.
7457         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
7458         heading comment.
7459         (vt_stack_offset_p): Remove.
7460         (vt_canon_true_dep): Always canonicalize loc's address.
7461         (clobber_overlapping_mems): Make sure we have a MEM.
7462         (local_get_addr_clear_given_value): New.
7463         (val_reset): Clear local cached entries.
7464         (compute_bb_dataflow): Create and release the local cache.
7465         Disable duplicate MEMs clobbering.
7466         (emit_notes_in_bb): Clobber MEMs likewise.
7467         (vt_emit_notes): Create and release the local cache.
7468         (vt_initialize, vt_finalize): Create and release the global
7469         cache, respectively.
7470         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
7472 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
7474         PR libmudflap/53359
7475         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
7476         not found in the symtab.
7478 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
7480         PR debug/56006
7481         PR rtl-optimization/55547
7482         PR rtl-optimization/53827
7483         PR debug/53671
7484         PR debug/49888
7485         * alias.c (offset_overlap_p): New, factored out of...
7486         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
7487         the conservative special case for symbolic constants.  Don't
7488         adjust zero sizes on alignment.
7490 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
7492         PR rtl-optimization/52573
7493         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
7494         REG_UNUSED for the same register.
7496 2013-01-17  Richard Biener  <rguenther@suse.de>
7497             Marek Polacek  <polacek@redhat.com>
7499         PR rtl-optimization/55833
7500         * loop-unswitch.c (unswitch_loops): Move loop verification...
7501         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
7502         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
7503         Set it to true when we're removing a loop from hierarchy tree in
7504         an irreducible region.
7505         (fix_bb_placements): Adjust caller.
7506         (fix_loop_placements): Likewise.
7508 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
7510         * config/avr/builtins.def (DEF_BUILTIN): Factor out
7511         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
7512         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
7513         Remove ID.  Adjust comments.
7514         * config/avr/avr-c.c (avr_builtin_name): Remove.
7515         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
7516         * config/avr/avr.c (avr_tolower): New static function.
7517         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
7518         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
7519         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
7520         default expansion.
7522 2013-01-17  Jan Hubicka  <jh@suse.cz>
7524         PR tree-optimization/55273
7525         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
7527 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
7529         PR target/55981
7530         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
7531         store through atomic_store<mode>_1.
7532         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
7534 2013-01-17  Martin Jambor  <mjambor@suse.cz>
7536         PR tree-optimizations/55264
7537         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
7538         for virtual methods.
7539         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
7540         virtual methods before inlining is over.
7541         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
7542         virtual functions.
7543         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
7544         non-virtual.
7546 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
7548         PR rtl-optimization/56005
7549         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
7550         pending reads for prefetch.
7552 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
7554         * config/aarch64/aarch64.md
7555         (*cstoresi_neg_uxtw): New pattern.
7556         (*cmovsi_insn_uxtw): New pattern.
7557         (*<optab>si3_uxtw): New pattern.
7558         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
7559         (*<optab>si3_insn_uxtw): New pattern.
7560         (*bswapsi2_uxtw): New pattern.
7562 2013-01-16  Richard Biener  <rguenther@suse.de>
7564         * tree-inline.c (tree_function_versioning): Remove set but
7565         never used variable.
7567 2013-01-16  Richard Biener  <rguenther@suse.de>
7569         PR tree-optimization/55964
7570         * tree-flow.h (rename_variables_in_loop): Remove.
7571         (rename_variables_in_bb): Likewise.
7572         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
7573         (copy_loop_before): Adjust and delete update-ssa status.
7574         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
7575         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
7576         (rename_variables_in_loop): Remove.
7577         (slpeel_update_phis_for_duplicate_loop): Likewise.
7578         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
7579         use available cfg machinery instead of duplicating it.
7580         Update PHI nodes and perform poor-mans SSA update here.
7581         (slpeel_tree_peel_loop_to_edge): Adjust.
7583 2013-01-16  Richard Biener  <rguenther@suse.de>
7585         PR tree-optimization/54767
7586         PR tree-optimization/53465
7587         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
7588         (vrp_visit_phi_node): For PHI arguments coming via backedges
7589         drop all symbolical range information.
7590         (execute_vrp): Compute backedges.
7592 2013-01-16  Richard Biener  <rguenther@suse.de>
7594         * doc/install.texi: Update CLooG and ISL requirements to
7595         0.18.0 and 0.11.1.
7597 2013-01-16  Christian Bruel  <christian.bruel@st.com>
7599         PR target/55301
7600         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
7601         (broken_move): Handle UNSPECV_SP_SWITCH_B.
7602         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
7604 2013-01-16  DJ Delorie  <dj@redhat.com>
7606         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
7607         (UNSPECV_SP_SWITCH_E): New.
7608         (sp_switch_1): Change to an unspec.
7609         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
7610         replace $r15.
7612 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
7614         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
7615         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
7616         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
7617         (expand_mem_thread_fence): Ditto.
7618         (expand_mem_signal_fence): Ditto.
7619         (expand_atomic_load): Ditto.
7620         (expand_atomic_store): Ditto.
7622 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
7624         PR rtl-optimization/55547
7625         PR rtl-optimization/53827
7626         PR debug/53671
7627         PR debug/49888
7628         * alias.c (memrefs_conflict_p): Set sizes to negative after
7629         AND adjustments.
7631 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
7633         PR target/55940
7634         * function.c (thread_prologue_and_epilogue_insns): Always
7635         add crtl->drap_reg to set_up_by_prologue.set, even if
7636         stack_realign_drap is false.
7638 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7640         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
7641         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
7642         *call): Fix indention.
7644 2013-01-15  Tom de Vries  <tom@codesourcery.com>
7646         PR target/55876
7647         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
7648         Update comment.
7650 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
7652         PR rtl-optimization/55153
7653         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
7655 2013-01-15  Martin Jambor  <mjambor@suse.cz>
7657         PR tree-optimization/55920
7658         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
7659         accesses as grp_to_be_debug_replaced.
7661 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
7663         PR tree-optimization/55920
7664         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
7665         there is non-useless type conversion needed from debug rhs to lhs,
7666         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
7668 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
7669             Mikael Pettersson  <mikpe@it.uu.se>
7671         PR target/43961
7672         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
7673         Thumb.
7674         (ASM_OUTPUT_CASE_LABEL): Remove.
7675         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
7676         * final.c (shorten_branches): Update alignment of labels before
7677         jump tables if CASE_VECTOR_SHORTEN_MODE.
7679 2013-01-15  Richard Biener  <rguenther@suse.de>
7681         PR bootstrap/55961
7682         * system.h: Do not include gmp.h for building host tools.
7684 2013-01-15  Richard Biener  <rguenther@suse.de>
7686         PR middle-end/55882
7687         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
7688         account for bitpos when computing alignment.
7690 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
7692         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
7693         (ix86_target_macros_internal): Likewise.
7695         * config/i386/i386.c (m_CORE2I7): Removed.
7696         (m_CORE_HASWELL): New macro.
7697         (m_CORE_ALL): Likewise.
7698         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
7699         (initial_ix86_arch_features): Likewise.
7700         (processor_target_table): Initializations for Core avx2.
7701         (cpu_names): New names "core-avx2".
7702         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
7703         PROCESSOR_CORE_HASWELL.
7704         (ix86_issue_rate): New case.
7705         (ia32_multipass_dfa_lookahead): Likewise.
7706         (ix86_sched_init_global): Likewise.
7708         * config/i386/i386.h (TARGET_HASWELL): New macro.
7709         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
7710         (processor_type): New PROCESSOR_HASWELL.
7712 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
7714         PR tree-optimization/55955
7715         * tree-vect-loop.c (vectorizable_reduction): Give up early on
7716         *SHIFT_EXPR and *ROTATE_EXPR codes.
7718         PR tree-optimization/48766
7719         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
7720         -ftrapv disable -fwrapv.
7722 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7724         PR target/55974
7725         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
7726         etc. to 1 and not to __flash.
7727         Use LL suffix for __INT24_MAX__ with -mint8.
7728         Use ULL suffix for __UINT24_MAX__ with -mint8.
7730 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7732         * config/avr/avr-arch.h
7733         (struct base_arch_s): Use typedef avr_arch_t instead.
7734         (struct arch_info_s): Use typedef avr_arch_info_t instead.
7735         (struct mcu_type_s): Use typedef avr_mcu_t instead.
7736         * config/avr/avr.c: Same.
7737         * config/avr/avr-devices.c: Same.
7738         * config/avr/driver-avr.c: Same.
7739         * config/avr/gen-avr-mmcu-texi.c: Same.
7740         * config/avr/avr-mcus.def: Adjust comment.
7742 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
7744         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
7745         * config/aarch64/iterators.md (VALLDI): New.
7747 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
7748             Andi Kleen  <ak@linux.intel.com>
7750         PR target/55948
7751         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
7752         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
7753         memmodel flag.
7755 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7757         * config/avr/avr-stdint.h: Remove trailing blanks.
7758         * config/avr/avr-log.h: Same.
7759         * config/avr/avr-arch.h: Same.
7760         * config/avr/avr-devices.c: Same.
7761         * config/avr/avr-dimode.md: Same.
7762         * config/avr/predicates.md: Same.
7763         * config/avr/avr-c.c: Same.  And fix typo.
7765         * config/avr/avr-protos.h: Same.  And:
7766         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
7767         (init_cumulative_args): Rename to avr_init_cumulative_args.
7768         (expand_prologue): Rename to avr_expand_prologue.
7769         (expand_epilogue): Rename to avr_expand_epilogue.
7770         (adjust_insn_length): Rename to avr_adjust_insn_length.
7771         (notice_update_cc): Rename to avr_notice_update_cc.
7772         (final_prescan_insn): Rename to avr_final_prescan_insn.
7773         * config/avr/avr.c: Same.
7774         * config/avr/avr.h: Same.
7775         * config/avr/avr.md: Remove trailing blanks.
7776         (prologue): Use avr_expand_prologue.
7777         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
7779 2013-01-14  Richard Biener  <rguenther@suse.de>
7781         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
7782         verify_location, collect_subblocks): New functions.
7783         (verify_gimple_in_cfg): Verify that locations only reference
7784         BLOCKs in the functions BLOCK tree.
7786 2013-01-14  Richard Biener  <rguenther@suse.de>
7788         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
7789         PHI argument.
7790         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
7791         unshare reference.
7792         (insert_out_of_ssa_copy_on_edge): Likewise.
7793         (rewrite_close_phi_out_of_ssa): Likewise.
7794         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
7795         debug expressions.
7796         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
7797         propagated constants.
7798         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
7799         can not be shared.
7801 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
7803         * config/avr/avr-modes.def: Add GPL copyright notice.
7805 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
7807         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
7808         MEMMODEL_MASK to determine memory model.
7809         (atomic_store<mode>): Ditto from operands[2].
7810         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
7812 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
7814         PR fortran/55935
7815         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
7816         (fold_gimple_assign): Don't call unshare_expr here.
7817         (fold_ctor_reference): Call unshare_expr.
7819 2013-01-13  Terry Guo  <terry.guo@arm.com>
7821         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
7822         * doc/fragments.texi: Document MULTILIB_REUSE.
7823         * gcc.c (multilib_reuse): New internal spec.
7824         (set_multilib_dir): Also search multilib from multilib_reuse.
7825         * genmultilib (tmpmultilib3): Refactor code.
7826         (tmpmultilib4): Ditto.
7827         (multilib_reuse): New multilib argument.
7829 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
7831         * Makefile.in: Update copyright.
7833 2013-01-12  Tom de Vries  <tom@codesourcery.com>
7835         PR middle-end/55890
7836         * calls.c (expand_call): Check if arg_nr is valid.
7838 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
7840         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
7841         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
7842         documentation.  Add missing '__' in front of
7843         __builtin_ia32_packssdw256.
7845 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7847         PR target/55719
7848         * config/s390/s390.c (s390_preferred_reload_class): Do not return
7849         NO_REGS for larl operands.
7850         (s390_reload_larl_operand): Use s390_load_address instead of
7851         emit_move_insn.
7853 2013-01-11  Richard Biener  <rguenther@suse.de>
7855         * tree-cfg.c (verify_node_sharing_1): Split out from ...
7856         (verify_node_sharing): ... here.
7857         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
7859 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
7861         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
7862         Substitute TREECHECKING.
7863         * configure: Regenerate.
7864         * Makefile.in (TREECHECKING): New.
7866 2013-01-11  Richard Guenther  <rguenther@suse.de>
7868         PR tree-optimization/44061
7869         * tree-vrp.c (extract_range_basic): Compute zero as
7870         value-range for __builtin_constant_p of function parameters.
7872 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
7874         Update copyright years.
7876 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
7878         PR rtl-optimization/55672
7879         * lra-eliminations.c (mark_not_eliminable): Permit addition with
7880         const to be eliminable.
7882 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
7884         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
7885         * configure: Regenerate.
7887 2013-01-10  Richard Biener  <rguenther@suse.de>
7889         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
7891 2013-01-10  Richard Biener  <rguenther@suse.de>
7893         PR bootstrap/55792
7894         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
7895         locations for virtual PHI arguments.
7896         (rewrite_update_phi_arguments): Likewise.
7898 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
7900         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
7901         on to assembler.
7903 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
7905         PR tree-optimization/55921
7906         * tree-complex.c (expand_complex_asm): New function.
7907         (expand_complex_operations_1): Call it for GIMPLE_ASM.
7909 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7911         PR target/55718
7912         * config/s390/s390.c (s390_symref_operand_p)
7913         (s390_loadrelative_operand_p): Merge the two functions.
7914         (s390_check_qrst_address, print_operand_address): Add parameters
7915         to s390_loadrelative_operand_p invokation.
7916         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
7917         (s390_reload_larl_operand, s390_secondary_reload): Use
7918         s390_loadrelative_operand_p instead of s390_symref_operand_p.
7919         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
7921 2013-01-09  Mike Stump  <mikestump@comcast.net>
7923         * dse.c (record_store): Remove unnecessary assert.
7925 2013-01-09  Jan Hubicka  <jh@suse.cz>
7927         PR tree-optimization/55569
7928         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
7929         * cfgloop.h (scale_loop_profile): Likewise.
7931 2013-01-09  Jan Hubicka  <jh@suse.cz>
7933         PR lto/45375
7934         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
7935         functions.
7936         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
7938 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
7940         PR middle-end/55114
7941         * expr.h (maybe_emit_group_store): Declare.
7942         * expr.c (maybe_emit_group_store): New function.
7943         * builtins.c (expand_builtin_int_roundingfn): Call it.
7944         (expand_builtin_int_roundingfn_2): Likewise.
7946 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
7948         PR rtl-optimization/55829
7949         * lra-constraints.c (match_reload): Add code for absent output.
7950         (curr_insn_transform): Add code for reloads of matched inputs
7951         without output.
7953 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
7955         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
7956         attribute of movddup insn to DF.
7957         (*vec_interleave_lowv2df): Ditto.
7958         (vec_dupv2df): Ditto.
7960 2013-01-09  Jan Hubicka  <jh@suse.cz>
7962         PR tree-optimiation/55875
7963         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
7964         EVERY_ITERATION parameter.
7965         (number_of_iterations_exit): Check if exit is executed every iteration.
7966         (idx_infer_loop_bounds): Similarly here.
7967         (n_of_executions_at_most): Simplify
7968         to only test for cases where statement is dominated by the
7969         particular bound; handle correctly the "postdominance" test.
7970         (scev_probably_wraps_p): Use max loop iterations info
7971         as a global bound first.
7973 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
7974             Nick Clifton  <nickc@redhat.com>
7976         * config/v850/v850.md (cbranchsf4): New pattern.
7977         (cstoresf4): New pattern.
7978         (cbranchdf4): New pattern.
7979         (cstoredf4): New pattern.
7980         (movsicc): Disallow floating point comparisons.
7981         (cmpsf_le_insn): Fix order of operators.
7982         (cmpsf_lt_insn): Likewise.
7983         (cmpsf_eq_insn): Likewise.
7984         (cmpdf_le_insn): Likewise.
7985         (cmpdf_lt_insn): Likewise.
7986         (cmpdf_eq_insn): Likewise.
7987         (cmpsf_ge_insn): Use LE comparison.
7988         (cmpdf_ge_insn): Likewise.
7989         (cmpsf_gt_insn): Use LT comparison.
7990         (cmpdf_gt_insn): Likewise.
7991         (cmpsf_ne_insn): Delete pattern.
7992         (cmpdf_ne_insn): Delete pattern.
7993         * config/v850/v850.c (v850_gen_float_compare): Use
7994         gen_cmpdf_eq_insn for NE comparison.
7995         (v850_float_z_comparison_operator)
7996         (v850_float_nz_comparison_operator): Move from here ...
7997         * config/v850/predicates.md: ... to here.  Move GT and GE
7998         comparisons into v850_float_z_comparison_operator.
7999         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
8000         Delete prototype.
8001         (v850_float_nz_comparison_operator): Likewise.
8003 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8005         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
8006         with calls to gen_insvsi/gen_insvdi.
8008 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8010         * config/i386/i386.c (initial_ix86_tune_features): Set up
8011         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
8013 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
8014             Jakub Jelinek  <jakub@redhat.com>
8016         PR tree-optimization/48189
8017         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
8018         If nitercst is 0, don't predict the exit edge.
8020 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8022         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
8023         in asm_fprintf with reg_names.
8024         (aarch64_print_operand_address): Likewise.
8025         (aarch64_return_addr): Likewise.
8026         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
8028 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8030         * config/pa/pa.h (VAL_U6_BITS_P): Define.
8031         (INT_U6_BITS): Likewise.
8032         * config/pa/predicates.md (uint6_operand): New predicate.
8033         (shift5_operand, shift6_operand): Likewise.
8034         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
8035         arith32_operand.
8036         (lshrdi3): Use shift6_operand.
8037         (shrpsi4, shrpdi4): New insn patterns.
8038         (extzv): Delete expander.
8039         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
8040         predicates in unamed zero extract patterns.  Tighten common constraint.
8041         (extv): Delete expander.
8042         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
8043         predicates in unamed sign extract patterns.  Tighten common constraint.
8044         (insv): Delete expander.
8045         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
8046         predicates in unamed insert patterns.  Tighten common constraint.
8047         Change uint32_operand predicate to uint6_operand predicate in unamed
8048         DImode pattern to insert constant values of type 1...1xxxx.
8050 2013-01-04  Jan Hubicka  <jh@suse.cz>
8052         PR tree-optimization/55823
8053         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
8054         issue.
8056 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8057             Uros Bizjak  <ubizjak@gmail.com>
8059         PR rtl-optimization/55845
8060         * df-problems.c (can_move_insns_across): Stop scanning at
8061         volatile_insn_p source instruction or give up if
8062         across_from .. across_to range contains any volatile_insn_p
8063         instructions.
8065 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
8067         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
8068         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
8069         Declare.
8070         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
8071         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
8073 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8075         PR fortran/55341
8076         * asan.c (asan_clear_shadow): New function.
8077         (asan_emit_stack_protection): Use it.
8079 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
8081         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
8082         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
8083         with tab instead of space.
8085 2013-01-08  Nick Clifton  <nickc@redhat.com>
8087         * config/rl78/rl78.c (rl78_expand_prologue): Always select
8088         register bank 0 at the start of an interrupt handler.
8089         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
8090         MDBH registers.
8092 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
8094         * config/aarch64/aarch64-simd.md
8095         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
8096         (aarch64_simd_bsl): Likewise.
8097         (aarch64_vcond_internal<mode>): Likewise.
8098         (vcond<mode><mode>): Likewise.
8099         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
8100         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
8102 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
8104         * config/aarch64/aarch64-builtins.c
8105         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
8107 2013-01-08  Martin Jambor  <mjambor@suse.cz>
8109         PR debug/55579
8110         * tree-sra.c (analyze_access_subtree): Return true also after
8111         potentially creating a debug-only replacement.
8113 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8115         PR middle-end/55890
8116         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
8118         PR tree-optimization/54120
8119         * tree-vrp.c (range_fits_type_p): Don't allow
8120         src_precision < precision from signed vr to unsigned_p
8121         if vr->min or vr->max is negative.
8122         (simplify_float_conversion_using_ranges): Test can_float_p
8123         against CODE_FOR_nothing.
8125 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
8126             Richard Biener  <rguenther@suse.de>
8128         PR middle-end/55851
8129         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
8130         types instead of just INTEGER_TYPE types.
8132 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
8134         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
8135         TF_SIZE): Define.
8137 2013-01-07  Steve Ellcey  <sellcey@mips.com>
8139         PR target/42661
8140         * config/mips/mips.opt: Change mad to mmad to match documentation.
8142 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8144         PR target/55897
8145         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
8146         .progmemx.data now.
8148 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8150         PR target/55897
8151         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
8152         (avr_addrspace_t): Add .section_name field.
8153         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
8154         array size.
8155         (avr_addrspace): Same.  Initialize .section_name.  Remove last
8156         NULL entry.  Put __memx into .progmemx.data.
8157         (progmem_section_prefix): Remove.
8158         (avr_asm_init_sections): No need to initialize progmem_section.
8159         (avr_asm_named_section): Use avr_addrspace[].section_name to get
8160         section name prefix.
8161         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
8162         retrieve the progmem section.
8163         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
8164         boundary to run over avr_addrspace[].
8165         (avr_register_target_pragmas): Ditto.
8167 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
8169         * varasm.c (output_constant_def_contents): For asan_protect_global
8170         protected strings, adjust DECL_ALIGN if needed, before testing for
8171         anchored symbols.
8172         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
8173         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
8174         normal decls.
8175         (output_object_block): For asan protected decls, emit asan padding
8176         after their contents.
8177         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
8178         (asan_finish_file): Test it here instead.
8180 2013-01-07  Nick Clifton  <nickc@redhat.com>
8181             Matthias Klose  <doko@debian.org>
8182             Doug Kwan  <dougkwan@google.com>
8183             H.J. Lu  <hongjiu.lu@intel.com>
8185         PR driver/55470
8186         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
8188         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
8190         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
8192         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
8194         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
8196 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8198         PR target/54461
8199         * doc/install.texi (Cross-Compiler-Specific Options): Document
8200         --with-avrlibc.
8202 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
8204         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
8205         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
8206         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
8207         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
8208         vqmovun_high_s64): Fix source operand number and update copyright.
8210 2013-01-07  Richard Biener  <rguenther@suse.de>
8212         PR middle-end/55890
8213         * gimple.h (gimple_call_builtin_p): New overload.
8214         * gimple.c (validate_call): New function.
8215         (gimple_call_builtin_p): Likewise.
8216         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8217         Use gimple_call_builtin_p.
8218         (find_func_clobbers): Likewise.
8219         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
8220         (strlen_optimize_stmt): Likewise.
8222 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
8224         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
8225         (vld1q_dup_*): Likewise.
8226         (vld1_*): Likewise.
8227         (vld1q_*): Likewise.
8228         (vld1_lane_*): Likewise.
8229         (vld1q_lane_*): Likewise.
8231 2013-01-07  Richard Biener  <rguenther@suse.de>
8233         * lto-streamer.h (LTO_minor_version): Bump to 2.
8235 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
8237         * config/aarch64/aarch64-protos.h
8238         (aarch64_const_double_zero_rtx_p): Rename to...
8239         (aarch64_float_const_zero_rtx_p): ...this.
8240         (aarch64_float_const_representable_p): New.
8241         (aarch64_output_simd_mov_immediate): Likewise.
8242         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
8243         move immediate case.
8244         * config/aarch64/aarch64.c
8245         (aarch64_const_double_zero_rtx_p): Rename to...
8246         (aarch64_float_const_zero_rtx_p): ...this.
8247         (aarch64_print_operand): Allow printing of new constants.
8248         (aarch64_valid_floating_const): New.
8249         (aarch64_legitimate_constant_p): Check for valid floating-point
8250         constants.
8251         (aarch64_simd_valid_immediate): Likewise.
8252         (aarch64_vect_float_const_representable_p): New.
8253         (aarch64_float_const_representable_p): Likewise.
8254         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
8255         (aarch64_output_simd_mov_immediate): New.
8256         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
8257         (*movdf_aarch64): Likewise.
8258         * config/aarch64/constraints.md (Ufc): New.
8259         (Y): call aarch64_float_const_zero_rtx.
8260         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
8262 2013-01-07  Richard Biener  <rguenther@suse.de>
8264         PR tree-optimization/55888
8265         PR tree-optimization/55862
8266         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
8267         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
8268         not if it is contained therein.
8270 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8272         * config/avr/t-avr: Typo.
8274 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
8276         PR55243
8277         * config/avr/t-avr: Don't automatically rebuild
8278         $(srcdir)/config/avr/t-multilib
8279         $(srcdir)/config/avr/avr-tables.opt
8280         $(srcdir)/doc/avr-mmcu.texi
8281         (avr-mcus): New phony target to build them on request.
8282         (s-avr-mlib, s-avr-mmcu-texi): Remove.
8283         * avr/avr-mcus.def: Adjust comments.
8285 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
8287         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
8289 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8291         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
8293 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
8295         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
8297 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
8299         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
8300         to generate profiling.
8301         * config/rs6000/aix64.h (LIB_SPEC): Same.
8303 2013-01-04  Andrew Pinski  <apinski@cavium.com>
8305         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
8306         New function.
8307         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8309 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
8311         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
8312         unconditionally.
8313         (ix86_expand_move): Ditto.
8314         (ix86_zero_extend_to_Pmode): Ditto.
8315         (ix86_expand_call): Ditto.
8316         (ix86_expand_special_args_builtin): Ditto.
8317         (ix86_expand_builtin): Ditto.
8319 2013-01-04  Richard Biener  <rguenther@suse.de>
8321         PR tree-optimization/55862
8322         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
8323         translating them through PHI nodes.
8325 2013-01-04  Martin Jambor  <mjambor@suse.cz>
8327         PR tree-optimization/55755
8328         * tree-sra.c (sra_modify_assign): Do not check that an access has no
8329         children when trying to avoid producing a VIEW_CONVERT_EXPR.
8331 2013-01-04  Marek Polacek  <polacek@redhat.com>
8333         PR middle-end/55859
8334         * opts.c (default_options_optimization): Clarify error message.
8336 2013-01-04  Richard Biener  <rguenther@suse.de>
8338         PR middle-end/55863
8339         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
8340         reassociation.
8342 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8344         PR target/53789
8345         * config/pa/pa.md (movsi): Revert previous change.
8346         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
8347         references.
8349 2013-01-03  Richard Henderson  <rth@redhat.com>
8351         * config/i386/i386.c (ix86_expand_move): Always assign to op1
8352         after eliminating TLS symbols.
8354 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
8356         PR bootstrap/50167
8357         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
8358         * graphite-poly.c (debug_gmp_value): Likewise.
8360 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
8362         PR target/55712
8363         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
8364         selected code model, define __code_mode_small__, __code_model_medium__,
8365         __code_model_large__, __code_model_32__ or __code_model_kernel__.
8366         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
8367         xchg temporary register with %k.  Declare temporary register as
8368         early clobbered.
8369         [__x86_64__]: For medium and large code models, preserve %rbx register.
8371 2013-01-03  Richard Biener  <rguenther@suse.de>
8373         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
8374         (dump_subscript): Adjust.
8375         (finalize_ddr_dependent): Do not dump redundant info.
8376         (analyze_siv_subscript): Adjust.
8377         (subscript_dependence_tester): Likewise.
8378         (compute_affine_dependence): Likewise.
8380 2013-01-03  Richard Biener  <rguenther@suse.de>
8382         Revert
8383         2013-01-03  Richard Biener  <rguenther@suse.de>
8385         PR tree-optimization/55857
8386         * tree-vect-stmts.c (vectorizable_load): Do not setup
8387         re-alignment for invariant loads.
8389         2013-01-02  Richard Biener  <rguenther@suse.de>
8391         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8392         invariant load do not generate a vector load from the scalar location.
8394 2013-01-03  Richard Biener  <rguenther@suse.de>
8396         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
8397         for not vectorizing.
8398         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
8399         not build INDIRECT_REFs, call get_name once only.
8400         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
8401         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
8403 2013-01-03  Richard Biener  <rguenther@suse.de>
8405         PR tree-optimization/55857
8406         * tree-vect-stmts.c (vectorizable_load): Do not setup
8407         re-alignment for invariant loads.
8409 2013-01-03  Richard Biener  <rguenther@suse.de>
8411         PR lto/55848
8412         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
8413         prefer a built-in decl.
8415 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
8417         * gcc.c (process_command): Update copyright notice dates.
8418         * gcov.c (print_version): Likewise.
8419         * gcov-dump.c (print_version): Likewise.
8421         PR rtl-optimization/55838
8422         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
8423         iv0.step, iv1.step and step.
8425 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
8426             Marc Glisse  <marc.glisse@inria.fr>
8428         PR tree-optimization/55832
8429         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
8430         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
8431         integer_{one,zero}_node.
8433 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
8435         PR debug/54402
8436         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
8437         * var-tracking.c (reverse_op): Don't add reverse ops to
8438         VALUEs that have already
8439         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8441 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
8443         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
8445 2013-01-02  Teresa Johnson  <tejohnson@google.com>
8447         * dumpfile.c (dump_loc): Print filename with location.
8448         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
8449         new location_t parameter to emit complete unroll message with
8450         new dump framework.
8451         (canonicalize_loop_induction_variables): Compute loops location
8452         and pass to try_unroll_loop_completely.
8453         * loop-unroll.c (report_unroll_peel): New function.
8454         (peel_loops_completely): Use new dump format with location
8455         for main dumpfile message, and invoke report_unroll_peel on success.
8456         (decide_unrolling_and_peeling): Ditto.
8457         (decide_peel_once_rolling): Remove old dumpfile message subsumed
8458         by report_unroll_peel.
8459         (decide_peel_completely): Ditto.
8460         (decide_unroll_constant_iterations): Ditto.
8461         (decide_unroll_runtime_iterations): Ditto.
8462         (decide_peel_simple): Ditto.
8463         (decide_unroll_stupid): Ditto.
8464         * cfgloop.c (get_loop_location): New function.
8465         * cfgloop.h (get_loop_location): Declare.
8467 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
8469         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
8470         NULL.
8472 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8474         PR middle-end/55198
8475         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
8476         BLKmode objects when EXPAND_MEMORY is specified.
8478 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
8480         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
8481         in loop predicate.
8482         (fold_builtin_cpu): Do not share cpu model decls across statements.
8484 2013-01-02  Jason Merrill  <jason@redhat.com>
8486         PR c++/55804
8487         * tree.c (build_array_type_1): Revert earlier change.
8489 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
8491         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
8492         "cortex-a57".
8493         * config/aarch64/aarch64-tune.md: Re-generate.
8495 2013-01-02  Richard Biener  <rguenther@suse.de>
8497         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
8498         invariant load do not generate a vector load from the scalar location.
8500 2013-01-02  Richard Biener  <rguenther@suse.de>
8502         PR bootstrap/55784
8503         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
8504         * configure: Regenerate.
8506 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8508         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
8509         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
8510         (expand_builtin_int_roundingfn_2): Keep the original target around
8511         for the fallback case.
8513 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
8515         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
8516         to be clear for sign changes.
8518 2013-01-01  Jan Hubicka  <jh@suse.cz>
8520         * ipa-inline-analysis.c: Fix formatting.
8522 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
8524         PR tree-optimization/55831
8525         * tree-vect-loop.c (get_initial_def_for_induction): Use
8526         gsi_after_labels instead of gsi_start_bb.
8528 Copyright (C) 2013 Free Software Foundation, Inc.
8530 Copying and distribution of this file, with or without modification,
8531 are permitted in any medium without royalty provided the copyright
8532 notice and this notice are preserved.