PR target/48901
[official-gcc.git] / gcc / ChangeLog
blob444a2ff3c589cdf2fa20d2e451578887286b98ec
1 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3         PR target/48901
4         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
5         temp, cond and label.
6         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8 2013-02-26  Marek Polacek  <polacek@redhat.com>
10         PR tree-optimization/56426
11         * tree-ssa-loop.c (tree_ssa_loop_init): Always call
12         scev_initialize.
14 2013-02-26  Richard Biener  <rguenther@suse.de>
16         PR target/56444
17         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
18         unused variable loops.
20 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
22         PR tree-optimization/56448
23         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
24         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
25         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
26         later operands of the references, or even first operand for
27         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
29         PR tree-optimization/56443
30         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
31         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32         to type_for_mode langhook.
34 2013-02-25  Matt Turner  <mattst88@gmail.com>
36         * doc/invoke.texi: Document r4700.
38 2013-02-25  Richard Biener  <rguenther@suse.de>
40         PR tree-optimization/56175
41         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
42         split out from ...
43         (simplify_bitwise_binary): ... here.  Also guard the conversion
44         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
46 2013-02-25  Catherine Moore  <clm@codesourcery.com>
48         Revert:
49         2013-02-24  Catherine Moore  <clm@codesourcery.com>
50             Maciej W. Rozycki  <macro@codesourcery.com>
51             Tom de Vries  <tom@codesourcery.com>
52             Nathan Sidwell <nathan@codesourcery.com>
53             Iain Sandoe  <iain@codesourcery.com>
54             Nathan Froyd  <froydnj@codesourcery.com>
55             Chao-ying Fu <fu@mips.com>
56         * doc/extend.texi: (micromips, nomicromips, nocompression):
57         Document new function attributes. 
58         * doc/invoke.texi (minterlink-compressed, mmicromips,
59         m14k, m14ke, m14kec): Document new options.
60         (minterlink-mips16): Update documentation.
61         * doc/md.texi (ZC, ZD): Document new constraints.
62         * configure.ac (gcc_cv_as_micromips): Check if linker
63         supports the .set micromips directive.
64         * configure: Regenerate.
65         * config.in: Regenerate.
66         * config/mips/mips-tables.opt: Regenerate.
67         * config/mips/micromips.md: New file.
68         * constraints.md (ZC, AD): New constraints.
69         * config/mips/predicates.md (movep_src_register): New predicate.
70         (movep_src_operand): New predicate.
71         (non_volatile_mem_operand): New predicate.
72         * config/mips/mips.md (multimem): New type.
73         (length): Differentiate between 17-bit and 18-bit branch offsets.
74         (MOVEP1, MOVEP2): New mode iterator.
75         (mov_<load>l): Use ZC constraint.
76         (mov_<load>r): Likewise.
77         (mov_<store>l): Likewise.
78         (mov_<store>r): Likewise.
79         (*branch_equality<mode>_inverted): Add microMIPS support.
80         (*branch_equality<mode>): Likewise.
81         (*jump_absolute): Likewise.
82         (indirect_jump_<mode>): Likewise.
83         (tablejump_<mode>): Likewise.
84         (<optab>_internal): Likewise.
85         (sibcall_internal): Likewise.
86         (sibcall_value_internal): Likewise.
87         (prefetch): Use constraint ZD.
88         * config/mips/mips.opt (minterlink-compressed): New option.
89         (minterlink-mips16): Now an alias for minterlink-compressed.
90         (mmicromips): New option.
91         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
92         (compare_and_swap_12): Likewise.
93         (sync_add<mode>): Likewise.
94         (sync_<optab>_12): Likewise.
95         (sync_old_<optab>_12): Likewise.
96         (sync_new_<optab>_12): Likewise.
97         (sync_nand_12): Likewise.
98         (sync_old_nand_12): Likewise.
99         (sync_new_nand_12): Likewise.
100         (sync_sub<mode>): Likewise.
101         (sync_old_add<mode>): Likewise.
102         (sync_old_sub<mode>): Likewise.
103         (sync_new_add<mode>): Likewise.
104         (sync_new_sub<mode>): Likewise.
105         (sync_<optab><mode>): Likewise.
106         (sync_old_<optab><mode>): Likewise.
107         (sync_new_<optab><mode>): Likewise.
108         (sync_nand<mode>): Likewise.
109         (sync_old_nand<mode>): Likewise.
110         (sync_new_nand<mode>): Likewise.
111         (sync_lock_test_and_set<mode>): Likewise.
112         (test_and_set_12): Likewise.
113         (atomic_compare_and_swap<mode>): Likewise.
114         (atomic_exchange<mode>_llsc): Likewise.
115         (atomic_fetch_add<mode>_llsc): Likewise.
116         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
117         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
118         (umips_save_restore_pattern_p): Likewise.
119         (umips_load_store_pair_p): Likewise.
120         (umips_output_load_store_pair): Likewise.
121         (umips_movep_target_p): Likewise.
122         (umips_12bit_offset_address_p): Likewise.
123         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
124         (mips_base_mips16): Rename this...
125         (mips_base_compression_flags): ...to this. Update all uses.
126         (mips_attribute_table): Add micromips, nomicromips and nocompression.
127         (mips_mips16_decl_p): Delete.
128         (mips_nomips16_decl_p): Delete.
129         (mips_get_compress_on_flags): New function.
130         (mips_get_compress_off_flags): New function.
131         (mips_get_compress_mode): New function.
132         (mips_get_compress_on_name): New function.
133         (mips_get_compress_off_name): New function.
134         (mips_insert_attributes): Support multiple compression types.
135         (mips_merge_decl_attributes): Likewise.
136         (umips_12bit_offset_address_p): New function.
137         (mips_start_function_definition): Emit .set micromips directive.
138         (mips_call_may_need_jalx_p): New function.
139         (mips_function_ok_for_sibcall): Add microMIPS support.
140         (mips_print_operand_punctuation): Support short delay slots and
141         compact jumps.
142         (umips_swm_mask, umips_swm_encoding): New.
143         (umips_build_save_restore): New function.
144         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
145         (was_mips16_p): Remove.
146         (old_compression_mode): New.
147         (mips_set_compression_mode): New function.
148         (mips_set_current_function): Add microMIPS support.
149         (mips_option_override): Likewise.
150         (umips_save_restore_pattern_p): New function.
151         (umips_output_save_restore): New function.
152         (umips_load_store_pair_p_1): New function.
153         (umips_load_store_pair_p): New function.
154         (umips_output_load_store_pair_1): New function.
155         (umips_output_load_store_pair): New function.
156         (umips_movep_target_p) New function.
157         (mips_prepare_pch_save): Add microMIPS support.
158         * config/mips/mips.h (TARGET_COMPRESSION): New.
159         (TARGET_CPU_CPP_BUILTINS): Update macro
160         to use new compression flags and to support microMIPS.
161         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
162         (MIPS_ARCH_FLOAT_SPEC): Likewise.
163         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
164         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
165         (ASM_SPEC): Support mmicromips and mno-micromips.
166         (M16STORE_REG_P): New macro.
167         (MIPS_CALL): Support TARGET_MICROMIPS.
168         (MICROMIPS_J): New macro.
169         (mips_base_mips16): Rename this...
170         (mips_base_compression_flags): ...to this.
171         (UMIPS_12BIT_OFFSET_P): New macro.
172         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
173         (MULTILIB_DIRNAMES): Likewise.
175 2013-02-25  Tom de Vries  <tom@codesourcery.com>
177         PR rtl-optimization/56131
178         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
179         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
180         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
182 2013-02-25  Tobias Burnus  <burnus@net-b.de>
184         * doc/invoke.texi (-fsanitize=): Move from optimization
185         to debugging options.
187 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
189         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
191 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
192             Alexander Monakov  <amonakov@ispras.ru>
194         PR middle-end/56077
195         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
196         flush pending lists also on non-jumps.  Adjust comment.
198 2013-02-24  Catherine Moore  <clm@codesourcery.com>
199             Maciej W. Rozycki  <macro@codesourcery.com>
200             Tom de Vries  <tom@codesourcery.com>
201             Nathan Sidwell <nathan@codesourcery.com>
202             Iain Sandoe  <iain@codesourcery.com>
203             Nathan Froyd  <froydnj@codesourcery.com>
204             Chao-ying Fu <fu@mips.com>
206         * doc/extend.texi: (micromips, nomicromips, nocompression):
207         Document new function attributes. 
208         * doc/invoke.texi (minterlink-compressed, mmicromips,
209         m14k, m14ke, m14kec): Document new options.
210         (minterlink-mips16): Update documentation.
211         * doc/md.texi (ZC, ZD): Document new constraints.
212         * configure.ac (gcc_cv_as_micromips): Check if linker
213         supports the .set micromips directive.
214         * configure: Regenerate.
215         * config.in: Regenerate.
216         * config/mips/mips-tables.opt: Regenerate.
217         * config/mips/micromips.md: New file.
218         * constraints.md (ZC, AD): New constraints.
219         * config/mips/predicates.md (movep_src_register): New predicate.
220         (movep_src_operand): New predicate.
221         (non_volatile_mem_operand): New predicate.
222         * config/mips/mips.md (multimem): New type.
223         (length): Differentiate between 17-bit and 18-bit branch offsets.
224         (MOVEP1, MOVEP2): New mode iterator.
225         (mov_<load>l): Use ZC constraint.
226         (mov_<load>r): Likewise.
227         (mov_<store>l): Likewise.
228         (mov_<store>r): Likewise.
229         (*branch_equality<mode>_inverted): Add microMIPS support.
230         (*branch_equality<mode>): Likewise.
231         (*jump_absolute): Likewise.
232         (indirect_jump_<mode>): Likewise.
233         (tablejump_<mode>): Likewise.
234         (<optab>_internal): Likewise.
235         (sibcall_internal): Likewise.
236         (sibcall_value_internal): Likewise.
237         (prefetch): Use constraint ZD.
238         * config/mips/mips.opt (minterlink-compressed): New option.
239         (minterlink-mips16): Now an alias for minterlink-compressed.
240         (mmicromips): New option.
241         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
242         (compare_and_swap_12): Likewise.
243         (sync_add<mode>): Likewise.
244         (sync_<optab>_12): Likewise.
245         (sync_old_<optab>_12): Likewise.
246         (sync_new_<optab>_12): Likewise.
247         (sync_nand_12): Likewise.
248         (sync_old_nand_12): Likewise.
249         (sync_new_nand_12): Likewise.
250         (sync_sub<mode>): Likewise.
251         (sync_old_add<mode>): Likewise.
252         (sync_old_sub<mode>): Likewise.
253         (sync_new_add<mode>): Likewise.
254         (sync_new_sub<mode>): Likewise.
255         (sync_<optab><mode>): Likewise.
256         (sync_old_<optab><mode>): Likewise.
257         (sync_new_<optab><mode>): Likewise.
258         (sync_nand<mode>): Likewise.
259         (sync_old_nand<mode>): Likewise.
260         (sync_new_nand<mode>): Likewise.
261         (sync_lock_test_and_set<mode>): Likewise.
262         (test_and_set_12): Likewise.
263         (atomic_compare_and_swap<mode>): Likewise.
264         (atomic_exchange<mode>_llsc): Likewise.
265         (atomic_fetch_add<mode>_llsc): Likewise.
266         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
267         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
268         (umips_save_restore_pattern_p): Likewise.
269         (umips_load_store_pair_p): Likewise.
270         (umips_output_load_store_pair): Likewise.
271         (umips_movep_target_p): Likewise.
272         (umips_12bit_offset_address_p): Likewise.
273         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
274         (mips_base_mips16): Rename this...
275         (mips_base_compression_flags): ...to this. Update all uses.
276         (mips_attribute_table): Add micromips, nomicromips and nocompression.
277         (mips_mips16_decl_p): Delete.
278         (mips_nomips16_decl_p): Delete.
279         (mips_get_compress_on_flags): New function.
280         (mips_get_compress_off_flags): New function.
281         (mips_get_compress_mode): New function.
282         (mips_get_compress_on_name): New function.
283         (mips_get_compress_off_name): New function.
284         (mips_insert_attributes): Support multiple compression types.
285         (mips_merge_decl_attributes): Likewise.
286         (umips_12bit_offset_address_p): New function.
287         (mips_start_function_definition): Emit .set micromips directive.
288         (mips_call_may_need_jalx_p): New function.
289         (mips_function_ok_for_sibcall): Add microMIPS support.
290         (mips_print_operand_punctuation): Support short delay slots and
291         compact jumps.
292         (umips_swm_mask, umips_swm_encoding): New.
293         (umips_build_save_restore): New function.
294         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
295         (was_mips16_p): Remove.
296         (old_compression_mode): New.
297         (mips_set_compression_mode): New function.
298         (mips_set_current_function): Add microMIPS support.
299         (mips_option_override): Likewise.
300         (umips_save_restore_pattern_p): New function.
301         (umips_output_save_restore): New function.
302         (umips_load_store_pair_p_1): New function.
303         (umips_load_store_pair_p): New function.
304         (umips_output_load_store_pair_1): New function.
305         (umips_output_load_store_pair): New function.
306         (umips_movep_target_p) New function.
307         (mips_prepare_pch_save): Add microMIPS support.
308         * config/mips/mips.h (TARGET_COMPRESSION): New.
309         (TARGET_CPU_CPP_BUILTINS): Update macro
310         to use new compression flags and to support microMIPS.
311         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
312         (MIPS_ARCH_FLOAT_SPEC): Likewise.
313         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
314         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
315         (ASM_SPEC): Support mmicromips and mno-micromips.
316         (M16STORE_REG_P): New macro.
317         (MIPS_CALL): Support TARGET_MICROMIPS.
318         (MICROMIPS_J): New macro.
319         (mips_base_mips16): Rename this...
320         (mips_base_compression_flags): ...to this.
321         (UMIPS_12BIT_OFFSET_P): New macro.
322         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
323         (MULTILIB_DIRNAMES): Likewise.
325 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
327         PR target/52555
328         * target-globals.c (save_target_globals): For init_reg_sets and
329         target_reinit remporarily set this_fn_optabs to this_target_optabs.
331 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
333         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
334         * config/aarch64/t-aarch64
335         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
337 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
339         PR inline-asm/56148
340         * lra-constraints.c (process_alt_operands): Reload operand
341         conflicting with earlier clobber only if no more other conflicting
342         operands.
344 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
346         PR sanitizer/56393
347         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
348         if not linking a shared library.
350 2013-02-22  Seth LaForge  <sethml@google.com>
352         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
354 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
356         * config/arm/arm.md (split for extendsidi): Update condition.
357         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
358         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
359         (qhs_zextenddi_cstr): Likewise.
361 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
363         PR middle-end/56420
364         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
365         avoid signed wrapping.
366         (expand_mult): Handle properly multiplication by
367         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
368         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
369         in the compiler if coeff is HOST_WIDE_INT_MIN.
370         (expand_divmod): Don't make ext_op1 static, change it's type to
371         uhwi.  Avoid undefined behavior in -INTVAL (op1).
373         PR rtl-optimization/50339
374         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
375         field.
376         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
377         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
378         into splitting_ashiftrt field.
379         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
380         ASHIFTRT.
381         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
382         choices.
384 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
386         PR middle-end/56108
387         * trans-mem.c (execute_tm_mark): Do not expand transactions that
388         are sure to go irrevocable.
390 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
392         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
393         scalars are valid operands.
395 2013-02-21  Martin Jambor  <mjambor@suse.cz>
397         PR tree-optimization/56310
398         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
399         only matching indices and non-negative final offsets.
400         (intersect_aggregates_with_edge): Pass src_idx to
401         agg_replacements_to_vector.  Pass src_idx insstead of index to
402         intersect_with_agg_replacements.
404 2013-02-21  Martin Jambor  <mjambor@suse.cz>
406         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
407         instead of hard-wired defaults.
409 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
411         * doc/invoke.texi (MIPS Options): Update documentation of the
412         floating-point multiply-accumulate instruction restrictions.
414 2013-02-21  Kostya Serebryany  <kcc@google.com>
416         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
417         asan_shadow_offset on x86_64 linux.
419 2013-02-21  Richard Biener  <rguenther@suse.de>
421         PR tree-optimization/56415
422         Revert
423         2013-02-11  Richard Biener  <rguenther@suse.de>
425         PR tree-optimization/56273
426         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
427         first VRP run.
429 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
431         PR bootstrap/56258
432         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
433         instead of @itemx.
435         PR inline-asm/56405
436         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
437         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
439 2013-02-20  Jan Hubicka  <jh@suse.cz>
441         PR tree-optimization/56265
442         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is
443         referenced for firs ttime.
445 2013-02-20  Richard Biener  <rguenther@suse.de>
447         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
448         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
449         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
450         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
451         not return anything.
452         (rename_ssa_copies): Do not remove unused locals.
453         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
454         * tree-ssanames.c (pass_release_ssa_names): Remove unused
455         locals first.
456         * passes.c (execute_function_todo): Do not schedule unused locals
457         removal if cleanup_tree_cfg did something.
458         * tree-ssa-live.c (remove_unused_locals): Dump statistics
459         about the number of removed locals.
461 2013-02-20  Richard Biener  <rguenther@suse.de>
463         PR tree-optimization/56398
464         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
465         SSA default defs.
467 2013-02-20  Martin Jambor  <mjambor@suse.cz>
469         PR tree-optimization/55334
470         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
471         restricted pointers to arrays.
473 2013-02-20  Richard Biener  <rguenther@suse.de>
474         Jakub Jelinek  <jakub@redhat.com>
476         PR tree-optimization/56396
477         * tree-ssa-ccp.c (n_const_val): New static variable.
478         (get_value): Return NULL for SSA names we don't have a lattice
479         entry for.
480         (ccp_initialize): Initialize n_const_val.
481         * tree-ssa-copy.c (n_copy_of): New static variable.
482         (init_copy_prop): Initialize n_copy_of.
483         (get_value): Return NULL_TREE for SSA names we don't have a
484         lattice entry for.
486 2013-02-20  Martin Jambor  <mjambor@suse.cz>
488         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
490 2013-02-20  Richard Biener  <rguenther@suse.de>
492         * genpreds.c (write_lookup_constraint): Do not compare first
493         letter of the constraint again.
495 2013-02-20  Richard Biener  <rguenther@suse.de>
497         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
498         and ceil_log2.
499         (get_use_iv_cost): Terminate hashtable walk when coming across
500         an empty entry.
502 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
504         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
505         reassociation for avx2 targets.
507 2012-02-19  Edgar E. Iglesias <edgar.iglesias@gmail.com>
509         * config/microblaze/microblaze.c: microblaze_has_clz = 0
510         Add version check for v8.10.a to enable microblaze_has_clz
511         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined 
512         version and TARGET_PATTERN_COMPARE check
513         * config/microblaze/microblaze.md: New clzsi2 instruction
515 2012-02-19  Edgar E. Iglesias <edgar.iglesias@gmail.com>
517         *  config/microblaze/microblaze.md (call_value_intern): Check symbol is 
518         function before branching.
520 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
522         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
523         DUMP_INSN_RTX_UID.
524         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
526 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
528         PR middle-end/55889
530         * sel-sched.c: Include ira.h.
531         (implicit_clobber_conflict_p): New function.
532         (moveup_expr): Use it.
533         * Makefile.in (sel-sched.o): Depend on ira.h. 
535 2013-02-19  Richard Biener  <rguenther@suse.de>
537         PR tree-optimization/56384
538         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
539         (vn_hash_type): Split out from ...
540         (vn_hash_constant_with_type): ... here.
541         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
542         (vn_phi_eq): Compare types from vn_phi_s structure.
543         (vn_phi_lookup): Populate vn_phi_s type.
544         (vn_phi_insert): Likewise.
546 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
548         PR tree-optimization/56350
549         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
550         if haven't found reduction or nested cycle operand, rather than
551         asserting we must find it.
553         PR tree-optimization/56381
554         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
555         to fold_build3.
557 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
558             Jakub Jelinek  <jakub@redhat.com>
560         PR target/52555
561         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
562         (swap_optab_enable): Same.
563         (init_all_optabs): Use argument instead of global.
564         * tree.h (struct tree_optimization_option): New field
565         target_optabs.
566         * expr.h (init_all_optabs): Add argument to prototype.
567         (TREE_OPTIMIZATION_OPTABS): New.
568         (save_optabs_if_changed): Protoize.
569         * optabs.h: Declare this_fn_optabs.
570         * optabs.c (save_optabs_if_changed): New.
571         Declare this_fn_optabs.
572         (init_optabs): Add argument to init_all_optabs() call.
573         * function.c (invoke_set_current_function_hook): Handle per
574         function optabs.
575         * function.h (struct function): New field optabs.
576         * config/mips/mips.c (mips_set_mips16_mode): Handle when
577         optimization_current_node has changed.
578         * target-globals.h (save_target_globals_default_opts): Protoize.
579         * target-globals.c (save_target_globals_default_opts): New.
581 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
583         PR target/56347
584         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
585         registers %fr12 and %fr12R as call used.
587         PR target/56214
588         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
589         and HImode, require all displacements to be an integer multiple of their
590         mode size.
591         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
592         only allow QImode and HImode when reload is in progress and strict is
593         true.  Likewise for symbolic addresses.  Use base14_operand to check
594         displacements in REG+BASE addresses.
596 2013-02-18  Richard Biener  <rguenther@suse.de>
598         PR tree-optimization/56366
599         * tree-vect-loop.c (get_initial_def_for_induction): Properly
600         handle sign-conversion of outer-loop initial induction value.
602 2013-02-18  Richard Biener  <rguenther@suse.de>
604         PR middle-end/56349
605         * cfghooks.c (merge_blocks): If we merge a latch into another
606         block adjust references to it.
607         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
608         (verify_loop_structure): Verify that a recorded latch is in fact
609         a latch.
611 2013-02-18  Richard Biener  <rguenther@suse.de>
613         PR tree-optimization/56321
614         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
615         order SSA name release and virtual operand unlinking.
617 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
619         * config/microblaze/microblaze.md (save_stack_block): Define.
620         (restore_stack_block): Likewise.
622 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
624         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
625         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
626         * config/microblaze/microblaze.c (microblaze_option_override):
627         Bail out early for PIC modes when target does not support PIC.
629 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
631         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template): 
632         Replace with a microblaze version.
633         (microblaze_trampoline_init): Adapt for microblaze.
634         * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for 
635         microblaze.
637 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
638             Dodji Seketeli  <dodji@redhat.com>
640         PR asan/56330
641         * asan.c (get_mem_refs_of_builtin_call): White space and style
642         cleanup.
643         (instrument_mem_region_access): Do not forget to always put
644         instrumentation of the of 'base' and 'base + len' in a "if (len !=
645         0) statement, even for cases where either 'base' or 'base + len'
646         are not instrumented -- because they have been previously
647         instrumented.  Simplify the logic by putting all the statements
648         instrument 'base + len' inside a sequence, and then insert that
649         sequence right before the current insertion point.  Then, to
650         instrument 'base + len', just get an iterator on that statement.
651         And do not forget to update the pointer to iterator the function
652         received as argument.
654 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
656         PR rtl-optimization/56348
657         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
659 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
661         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
662         (clean_graph_dump_file): Pass base to start_graph_dump.
664 2013-02-14  Richard Henderson  <rth@redhat.com>
666         PR target/55941
667         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
669 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
671         * collect2-aix.h: Define F_LOADONLY.
673 2013-02-14  Richard Biener  <rguenther@suse.de>
675         PR lto/50494
676         * varasm.c (output_constant_def_1): Get the decl representing
677         the constant as argument.
678         (output_constant_def): Wrap output_constant_def_1.
679         (make_decl_rtl): Use output_constant_def_1 with the decl
680         representing the constant.
681         (build_constant_desc): Optionally re-use a decl already
682         representing the constant.
683         (tree_output_constant_def): Adjust.
685 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
687         Fix an asan crash
688         * asan.c (instrument_builtin_call):  Really put the length of the
689         second source argument into src1_len.
691 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
693         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
694         argument.  If it is false, don't create edge from then_bb to
695         fallthru_bb.
696         (insert_if_then_before_iter): Pass true to it.
697         (build_check_stmt): Pass false to it.
698         (transform_statements): Flush hash table only on extended basic
699         block boundaries, rather than at the beginning of every bb.
700         Don't flush hash table on nonfreeing_call_p calls.
701         * tree-flow.h (nonfreeing_call_p): New prototype.
702         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
704 2013-02-13  David S. Miller  <davem@davemloft.net>
706         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
708 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
710         PR target/56184
711         * ira.c (max_regno_before_ira): Move from ...
712         (ira): ... here.
713         (fix_reg_equiv_init): Use max_regno_before_ira instead of
714         vec_safe_length.
716 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
718         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
720 2013-02-13  Richard Biener  <rguenther@suse.de>
722         PR lto/56295
723         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
724         globals in MEM_REFs.
726 2013-02-13  Richard Biener  <rguenther@suse.de>
728         * loop-init.c (loop_optimizer_init): Clear loop state when
729         re-initializing preserved loops.
730         * loop-unswitch.c (unswitch_single_loop): Return whether
731         we unswitched the loop.  Do not verify loop state here.
732         (unswitch_loops): When we unswitched a loop discover new
733         loops.
735 2013-02-13  Kostya Serebryany  <kcc@google.com>
737         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
738         linux.
739         * sanitizer.def: Rename __asan_init to __asan_init_v1.
741 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
743         Avoid instrumenting duplicated memory access in the same basic block
744         * Makefile.in (asan.o): Add new dependency on hash-table.h
745         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
746         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
747         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
748         (free_mem_ref_resources, has_mem_ref_been_instrumented)
749         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
750         (get_mem_ref_of_assignment): New functions.
751         (get_mem_refs_of_builtin_call): Extract from
752         instrument_builtin_call and tweak a little bit to make it fit with
753         the new signature.
754         (instrument_builtin_call): Use the new
755         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
756         of is_gimple_builtin_call.
757         (instrument_derefs, instrument_mem_region_access): Insert the
758         instrumented memory reference into the hash table.
759         (maybe_instrument_assignment): Renamed instrument_assignment into
760         this, and change it to advance the iterator when instrumentation
761         actually happened and return true in that case.  This makes it
762         homogeneous with maybe_instrument_assignment, and thus give a
763         chance to callers to be more 'regular'.
764         (transform_statements): Clear the memory reference hash table
765         whenever we enter a new BB, when we cross a function call, or when
766         we are done transforming statements.  Use
767         maybe_instrument_assignment instead of instrumentation.  No more
768         need to special case maybe_instrument_assignment and advance the
769         iterator after calling it; it's now handled just like
770         maybe_instrument_call.  Update comment.
772 2013-02-13  Richard Biener  <rguenther@suse.de>
774         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
775         Fix loop discovery code.
777 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
779         PR inline-asm/56148
780         * lra-constraints.c (process_alt_operands): Match early clobber
781         operand with itself.  Check conflicts with earlyclobber only if
782         the operand is not reloaded.  Prefer to reload conflicting operand
783         if earlyclobber and matching operands are the same.
785 2013-02-12  Richard Biener  <rguenther@suse.de>
787         PR lto/56297
788         * lto-streamer-out.c (write_symbol): Do not output symbols
789         for hard register variables.
791 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
793         PR target/54222
794         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
795         (umulsidi3_insn, mulsidi3_insn): New insns.
797 2013-02-12  Christophe Lyon <christophe.lyon@linaro.org>
799         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
800         (struct tune_params): Add vec_costs field.
801         * config/arm/arm.c (arm_builtin_vectorization_cost)
802         (arm_add_stmt_cost): New functions.
803         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
804         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
805         (arm_default_vec_cost): New struct of type cpu_vec_costs.
806         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
807         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
808         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
809         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
811 2013-02-12  Richard Biener  <rguenther@suse.de>
813         PR lto/56295
814         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
815         decls again if possible.
817 2013-02-12  Richard Biener  <rguenther@suse.de>
819         PR middle-end/56288
820         * tree-ssa.c (verify_ssa_name): Fix check, move
821         SSA_NAME_IN_FREE_LIST check up.
823 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
824             Steven Bosscher   <steven@gcc.gnu.org>
826         PR rtl-optimization/56151
827         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
828         equal to op0 or op1, and last_insn pattern is CODE operation
829         with MEM dest and one of the operands matches that MEM.
831 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
833         * doc/extend.texi: Document Function Multiversioning and "default"
834         parameter string to target attribute.
835         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
836         target attribute parameter is "default".
837         (ix86_compare_version_priority): Remove checks for target attribute.
838         (ix86_mangle_function_version_assembler_name): Change error to sorry.
839         Remove check for target attribute equal to NULL. Add assert.
840         (ix86_generate_version_dispatcher_body): Change error to sorry.
842 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
843             Jack Howarth  <howarth@bromo.med.uc.edu>
844             Patrick Marlier  <patrick.marlier@gmail.com>
846         PR libitm/55693
847         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
848         define ENDFILE_SPEC as TM_DESTRUCTOR.
849         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
851 2013-02-11  Alexander Potapenko <glider@google.com>
852             Jack Howarth  <howarth@bromo.med.uc.edu>
853             Jakub Jelinek  <jakub@redhat.com>
855         PR sanitizer/55617
856         * config/darwin.c (cdtor_record): Rename ctor_record.
857         (sort_cdtor_records): Rename sort_ctor_records.
858         (finalize_dtors): New routine to sort destructors by
859         priority before use in assemble_integer.
860         (machopic_asm_out_destructor): Use finalize_dtors if needed.
862 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
864         PR rtl-optimization/56275
865         * simplify-rtx.c (avoid_constant_pool_reference): Check that
866         offset is non-negative and less than cmode size before
867         calling simplify_subreg.
869 2013-02-11  Richard Biener  <rguenther@suse.de>
871         PR tree-optimization/56264
872         * cfgloop.h (fix_loop_structure): Adjust prototype.
873         * loop-init.c (fix_loop_structure): Return the number of
874         newly discovered loops.
875         * tree-cfgcleanup.c (repair_loop_structures): When new loops
876         are discovered, do a full loop-closed SSA rewrite.
878 2013-02-11  Richard Biener  <rguenther@suse.de>
880         PR tree-optimization/56273
881         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
882         first VRP run.
883         (check_array_ref): Fix missing newline in dumps.
884         (search_for_addr_array): Likewise.
886 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
888         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
890 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
892         PR target/56256
893         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
895 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
897         PR rtl-optimization/56246
898         * lra-constraints.c (simplify_operand_subreg): Try to reuse
899         reload pseudo.
900         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
901         constraints are satisfied.
903 2013-02-08  Jeff Law  <law@redhat.com>
905         PR debug/53948
906         * emit-rtl.c (reg_is_parm_p): New function.
907         * regs.h (reg_is_parm_p): New prototype.
908         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
909         callee-clobbered registers.
911 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
913         PR target/56043
914         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
915         If there is no implicit builtin declaration, just return NULL.
917 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
919         * config/i386/sse.md (FMAMODEM): New mode iterator.
920         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
921         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
923 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
925         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
926         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
927         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
929 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
931         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
932         (microblaze*-*-elf): Likewise.
933         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
934         LINK_SPEC.
935         * config/microblaze/microblaze-c.c: Add builtin defines for
936         _LITTLE_ENDIAN and _BIG_ENDIAN.
937         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
938         add to TARGET_DEFAULT flags.
939         Expand ASM_SPEC and LINK_SPEC.
940         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
941         * config/microblaze/microblaze.md: Update extendsidi2 and
942         movdi_internal instructions to use low-order / high-order reg
943         print_operands.
944         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
945         options and inversemask / mask of LITTLE_ENDIAN.
946         * config/microblaze/t-microblaze: Expand multilib options to
947         include mlittle-endian (le) and update exceptions patterns.
949 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
951         PR rtl-optimization/56195
952         * lra-constraints.c (get_reload_reg): Don't reuse regs
953         if they have smaller mode than requested, if they have
954         wider mode than requested, try to return a SUBREG.
956         PR tree-optimization/56250
957         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
958         if type is unsigned and code isn't MULT_EXPR.
960 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
962         PR tree-optimization/56064
963         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
964         bits according to mode.
965         * fixed-value.h (fixed_from_double_int)
966         (const_fixed_from_double_int): Adjust comments.
968 2013-02-08  Richard Biener  <rguenther@suse.de>
970         PR lto/56231
971         * lto-streamer.h (struct data_in): Remove current_file, current_line
972         and current_col members.
973         * lto-streamer-out.c (lto_output_location): Stream changed bits
974         en-block for efficiency.
975         * lto-streamer-in.c (clear_line_info): Remove.
976         (lto_input_location): Cache current file, line and column
977         globally via local statics.  Read changed bits en-block.
978         (input_function): Do not call clear_line_info.
979         (lto_read_body): Likewise.
980         (lto_input_toplevel_asms): Likewise.
982 2013-02-08  Michael Matz  <matz@suse.de>
984         PR tree-optimization/52448
985         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
986         (nt_call_phase): New static.
987         (add_or_mark_expr): Only mark accesses with newer phase than any
988         call seen.
989         (nonfreeing_call_p): New.
990         (nt_init_block): Update nt_call_phase, mark blocks as visited.
991         (nt_fini_block): Keep blocks marked as visited.
992         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
994 2013-02-08  Richard Biener  <rguenther@suse.de>
996         * ira.c (ira): Free broken dominator information.
998 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1000         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1002 2013-02-08  Marek Polacek  <polacek@redhat.com>
1004         * cfgloop.c (verify_loop_structure): Add more checking of headers.
1006 2013-02-08  Richard Biener  <rguenther@suse.de>
1008         PR middle-end/56181
1009         * cfgloop.h (flow_loops_find): Adjust.
1010         (bb_loop_header_p): Declare.
1011         * cfgloop.c (bb_loop_header_p): New function split out from ...
1012         (flow_loops_find): ... here.  Adjust function signature,
1013         support incremental loop structure update.
1014         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
1015         * cfgloopmanip.c (fix_loop_structure): Move ...
1016         * loop-init.c (fix_loop_structure): ... here.
1017         (apply_loop_flags): Split out from ...
1018         (loop_optimizer_init): ... here.
1019         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
1020         in incremental mode, only remove dead loops here.
1022 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
1024         PR target/54222
1025         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
1026         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
1027         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
1028         (*round<mode>3.libgcc): New insns for fixed-modes.
1029         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
1030         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
1031         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
1032         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
1033         implementations.  Define to __builtin_avr_absFX,
1034         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
1035         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
1036         __builtin_avr_countlsFX, respectively.
1037         * config/avr/avr-c.c (target.h): Include it.
1038         (enum avr_builtin_id): New enum.
1039         (avr_resolve_overloaded_builtin): New static function.
1040         (avr_register_target_pragmas): Use it to set
1041         targetm.resolve_overloaded_builtin.
1042         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
1043         tree nodes used by DEF_BUILTIN.
1044         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
1045         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
1046         <AVR_BUILTIN_xxBITS>: Same.
1048 2013-02-08  Richard Biener  <rguenther@suse.de>
1050         * cfgloop.c (verify_loop_structure): Properly handle
1051         a loop exiting to another loop header.
1052         * ira-int.h (ira_loops): Remove.
1053         * ira.c (ira_loops): Remove.
1054         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
1055         (do_reload): Use loop_optimizer_finalize.
1056         * ira-build.c (create_loop_tree_nodes): Use get_loops and
1057         number_of_loops to access the loop tree.
1058         (more_one_region_p): Likewise.
1059         (finish_loop_tree_nodes): Likewise.
1060         (rebuild_regno_allocno_maps): Likewise.
1061         (mark_loops_for_removal): Likewise.
1062         (mark_all_loops_for_removal): Likewise.
1063         (remove_unnecessary_regions): Likewise.
1064         (ira_build): Likewise.
1065         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1067 2013-02-08  Richard Biener  <rguenther@suse.de>
1069         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
1070         * ipa-pure-const.c (analyze_function): Avoid calling
1071         mark_irreducible_loops twice.
1072         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
1074 2013-02-07  David S. Miller  <davem@davemloft.net>
1076         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1077         on 'reg'.
1078         * var-tracking.c (vt_add_function_parameter): Test the presence of
1079         HAVE_window_save properly and do not remap argument registers when
1080         we have a leaf function.
1082 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
1084         PR bootstrap/56227
1085         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1086         instead of "ll".
1087         * config/i386/i386.c (ix86_print_operand): Ditto.
1089 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
1091         * lra-constraints.c (process_alt_operands): Fix recently added comment.
1093 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
1095         PR rtl-optimization/56225
1096         * lra-constraints.c (process_alt_operands): Check that reload hard
1097         reg can hold value for strict_low_part.
1099 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
1101         PR debug/56154
1102         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
1103         dwarf2out_end_function.
1104         (in_first_function_p, maybe_at_text_label_p,
1105         first_loclabel_num_not_at_text_label): New variables.
1106         (dwarf2out_var_location): In the first function find out
1107         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
1108         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
1109         functions.
1111 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
1113         PR rtl-optimization/56178
1114         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
1115         SUBREG of a register.  Tidy up related block of code.
1116         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
1117         note if the source is a register or a SUBREG of a register.
1119 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
1121         PR target/56228
1122         * config/rs6000/rs6000.md (ptrm): New mode attr.
1123         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
1124         call_value_indirect_aix<pttrsize>,
1125         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
1126         m in constraints.
1128 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1130         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
1131         if -bnortl. Convert to strcmp and strncmp.
1133 2013-02-07  Alan Modra  <amodra@gmail.com>
1135         PR target/54009
1136         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
1137         addresses won't wrap when offsetting.
1138         (rs6000_secondary_reload): Provide secondary reloads needed for
1139         wrapping LO_SUM addresses.
1141 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
1143         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
1144         MACH, just __MACH__.
1146 2013-02-06  Richard Biener  <rguenther@suse.de>
1148         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
1149         instead of calling fix_loop_structure.
1151 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1153         PR middle-end/56217
1154         * omp-low.c (use_pointer_for_field): Return false if
1155         lower_send_shared_vars doesn't generate any copy-out code.
1157 2013-02-06  Tom de Vries  <tom@codesourcery.com>
1159         PR rtl-optimization/56131
1160         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
1161         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
1162         of the label is NULL.  Add comment.
1164 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1166         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
1168         PR sanitizer/55374
1169         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
1170         (STATIC_LIBTSAN_LIBS): Likewise.
1171         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
1172         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
1173         is defined, don't add anything else beyond that.
1174         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
1175         (LINK_COMMAND_SPEC): Use them.
1177         PR tree-optimization/56205
1178         * tree-stdarg.c (check_all_va_list_escapes): Return true if
1179         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
1180         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
1182 2013-02-05  Richard Biener  <rguenther@suse.de>
1184         PR tree-optimization/53342
1185         PR tree-optimization/53185
1186         * tree-vectorizer.h (vect_check_strided_load): Remove.
1187         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
1188         not disallow peeling for vectorized strided loads.
1189         (vect_check_strided_load): Make static and simplify.
1190         (vect_analyze_data_refs): Adjust.
1191         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
1192         correctly when vectorizing strided loads.
1194 2013-02-05  Richard Biener  <rguenther@suse.de>
1196         * doc/install.texi: Refer to ISL, not PPL.
1198 2013-02-05  Jan Hubicka  <jh@suse.cz>
1200         PR tree-optimization/55789
1201         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
1203 2013-02-05  Jan Hubicka  <jh@suse.cz>
1205         PR tree-optimization/55789
1206         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
1207         the dead call anyway.
1209 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
1211         PR sanitizer/55374
1212         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
1214 2013-02-04  Alexander Potapenko  <glider@google.com>
1215             Jack Howarth  <howarth@bromo.med.uc.edu>
1216             Jakub Jelinek  <jakub@redhat.com>
1218         PR sanitizer/55617
1219         * config/darwin.c (sort_ctor_records): Stabilized qsort
1220         on constructor priority by using original position.
1221         (finalize_ctors): New routine to sort constructors by
1222         priority before use in assemble_integer.
1223         (machopic_asm_out_constructor): Use finalize_ctors if needed.
1225 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
1227         PR libstdc++/54314
1228         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
1229         about visibility on artificial decls.
1230         * config/sol2.c (solaris_assemble_visibility): Likewise.
1232 2013-02-04  Kai Tietz  <ktietz@redhat.com>
1234         PR target/56186
1235         * config/i386/i386.c (function_value_ms_64): Add additional valtype
1236         argument and improve checking of return-argument types for 16-byte
1237         modes.
1238         (ix86_function_value_1): Add additional valtype argument on call
1239         of function_value_64.
1240         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
1241         handling infunction_value_64 function.
1243 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1245         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
1247 2013-02-04  Richard Biener  <rguenther@suse.de>
1249         PR tree-optimization/56188
1250         * tree-ssa-structalias.c (label_visit): Consider case with
1251         initially non-empty points-to set.
1252         (perform_var_substitution): Dump node mapping and clean up.
1254 2013-02-04  Richard Guenther  <rguenther@suse.de>
1256         PR lto/56168
1257         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
1258         node prevail as last resort.
1259         (lto_symtab_merge_decls): Remove guard on LTRANS here.
1260         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
1262 2013-02-04  Richard Biener  <rguenther@suse.de>
1264         PR tree-optimization/56113
1265         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
1266         Merge into ...
1267         (equiv_class_lookup_or_add): ... this.
1268         (label_visit): Adjust and fix error in previous patch.
1269         (perform_var_substitution): Adjust.
1271 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
1273         * config/sh/divtab.c: Fix formatting and comments throughout the file.
1274         * config/sh/sh4-300.md: Likewise.
1275         * config/sh/sh4a.md: Likewise.
1276         * config/sh/constraints.md: Likewise.
1277         * config/sh/sh.md: Likewise.
1278         * config/sh/netbsd-elf.h: Likewise.
1279         * config/sh/predicates.md: Likewise.
1280         * config/sh/sh-protos.h: Likewise.
1281         * config/sh/ushmedia.h: Likewise.
1282         * config/sh/linux.h: Likewise.
1283         * config/sh/sh.c: Likewise.
1284         * config/sh/superh.h: Likewise.
1285         * config/sh/elf.h: Likewise.
1286         * config/sh/sh4.md: Likewise.
1287         * config/sh/sh.h: Likewise.
1289 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1291         * config/pa/constraints.md: Adjust unused letters.  Change "T"
1292         constraint to match_test floating_point_store_memory_operand().
1293         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
1294         (base14_operand): New.
1295         (floating_point_store_memory_operand): New.
1296         (integer_store_memory_operand): Revise to use base14_operand and
1297         reg_plus_base_memory_operand.
1298         (move_dest_operand): Allow symbolic_memory_operands.
1299         (symbolic_memory_operand): Check for LO_SOM.
1300         (symbolic_operand): Change default case to break.
1301         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
1302         CONST_DOUBLE values to be reloaded by putting them into memory when
1303         the destination is a floating point register.
1304         (movdf): Remove code to handle CONST_DOUBLE.
1305         (movsf): Likewise.
1306         (reload_indf_r1): New.
1307         (reload_insf_r1): New.
1308         Consistently use "Q" and "T" constraints with integer and floating
1309         point move instructions, respectively.
1310         (movdi): Remove FAIL.
1311         Change predicate for source operand unamed DImode move from
1312         general_operand to move_src_operand.
1313         (umulsidi3): Change predicate for destination operand to
1314         register_operand.
1315         Likewise for similar unamed patterns.
1316         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
1317         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
1318         (hppa_legitimize_address): Simplify mask calculation.
1319         (pa_emit_move_sequence): Revised handling of secondary reloads from
1320         REG+D addresses for floating point loads and stores.  Directly handle
1321         loading CONST0_RTX (mode) to a floating point register.
1322         (pa_secondary_reload): Handle reloading DF and SFmode constant values
1323         to floating point registers.  Don't restrict secondary reloads to
1324         floating point registers to integer modes.  Revise some comments and
1325         cleanup some code.
1326         (TARGET_LEGITIMATE_ADDRESS_P): Define.
1327         (pa_legitimate_address_p): New.
1328         (pa_legitimize_reload_address): New.
1329         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
1330         (STRICT_REG_OK_FOR_BASE_P): New.
1331         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
1332         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
1334 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
1335             Andrew Dixie  <andrewd@gentrack.com>
1337         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
1338         flag set.
1340 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1342         * expmed.c (extract_bit_field_1): Pass the full width of the
1343         structure to get_best_reg_extraction_insn.
1345 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
1347         PR target/54601
1348         * configure.ac (use_cxa_atexit): Add AIX.
1349         * configure: Regenerate.
1351         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
1353 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
1355         PR debug/54793
1356         * final.c (need_profile_function): New variable.
1357         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
1358         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
1359         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
1360         notes, targetm.asm_out.function_prologue doesn't emit anything,
1361         HAVE_prologue and profiler should be emitted before prologue,
1362         set need_profile_function instead of emitting it.
1363         (final_scan_insn): If need_profile_function, emit
1364         profile_function on the first NOTE_INSN_BASIC_BLOCK or
1365         NOTE_INSN_FUNCTION_BEG note.
1367 2013-02-01  Richard Henderson  <rth@redhat.com>
1369         * config/rs6000/rs6000.md (smulditi3): New.
1370         (umulditi3): New.
1372         * config/alpha/alpha.md (umulditi3): New.
1374 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
1376         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
1377         (ASM_OUTPUT_ALIGNED_LOCAL): New.
1379 2013-02-01  Richard Biener  <rguenther@suse.de>
1381         PR tree-optimization/56113
1382         * tree-ssa-structalias.c (label_visit): Reduce work for
1383         single-predecessor nodes.
1385 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
1387         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
1388         range isn't testing for zero.
1390 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
1392         PR middle-end/56113
1393         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
1395 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
1396             Nick Clifton  <nickc@redhat.com>
1398         * config/v850/constraints.md (Q): Define as a memory constraint.
1399         * config/v850/predicates.md (label_ref_operand): New predicate.
1400         (e3v5_shift_operand): New predicate.
1401         (ior_operator): New predicate.
1402         * config/v850/t-v850: Add e3v5 multilib.
1403         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
1404         (v850_gen_movdi): Prototype.
1405         * config/v850/v850.c: Add support for e3v5 architecture.
1406         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
1407         TARGET_V850E_UP.
1408         (construct_save_jarl): Add e3v5 long JARL support.
1409         (v850_adjust_insn_length): New function.  Adjust length of call
1410         insns when using e3v5 instructions.
1411         (v850_gen_movdi): New function: Generate instructions to move a
1412         DImode value.
1413         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
1414         (CPP_SPEC): Define __v850e3v5__ as appropriate.
1415         (TARGET_USE_FPU): Enable for e3v5.
1416         (CONST_OK_FOR_W): New macro.
1417         (ADJUST_INSN_LENGTH): Define.
1418         * config/v850/v850.md (UNSPEC_LOOP): Define.
1419         (attr cpu): Add v850e3v5.
1420         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
1421         (movdi): New pattern.
1422         (movdi_internal): New pattern.
1423         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
1424         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
1425         (cstoresf4): Likewise.
1426         (cstoredf4): Likewise.
1427         (insv): New pattern.
1428         (rotlso3_a): New pattern.
1429         (rotlsi3_b): New pattern
1430         (rotlsi3_v850e3v5): New pattern.
1431         (doloop_begin): New pattern.
1432         (fix_loop_counter): New pattern.
1433         (doloop_end): New pattern.
1434         (branch_normal): Add e3v5 long branch support.
1435         (branch_invert): Likewise.
1436         (branch_z_normal): Likewise.
1437         (branch_z_invert): Likewise.
1438         (branch_nz_normal): Likewise.
1439         (branch_nz_invert): Likewise.
1440         (call_internal_short): Add e3v5 register-indirect JARL support.
1441         (call_internal_long): Likewise.
1442         (call_value_internal_short): Likewise.
1443         (call_value_internal_long): Likewise.
1444         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
1445         (mloop): New option.
1446         * config.gcc: Add support for configuring v840e3v5 target.
1447         * doc/invoke.texi: Document new v850 specific command line options.
1449 2013-01-31  Paul Koning  <ni1d@arrl.net>
1451         PR debug/55059
1452         PR debug/54508
1453         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
1454         children if parent is a class.
1455         (prune_unused_types_prune): Don't add DW_AT_declaration.
1457 2013-01-31  Richard Biener  <rguenther@suse.de>
1459         PR tree-optimization/56157
1460         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
1461         match up operand with SLP child.
1463 2013-01-31  Jason Merrill  <jason@redhat.com>
1465         PR debug/54410
1466         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
1467         parameters the first time.
1468         (gen_scheduled_generic_parms_dies): Check completeness here.
1470 2013-01-31  Richard Biener  <rguenther@suse.de>
1472         PR middle-end/53073
1473         * common.opt (faggressive-loop-optimizations): New flag,
1474         enabled by default.
1475         * doc/invoke.texi (faggressive-loop-optimizations): Document.
1476         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
1477         infer_loop_bounds_from_undefined by it.
1479 2013-01-31  Richard Biener  <rguenther@suse.de>
1481         PR tree-optimization/56150
1482         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
1483         visit virtual operands.
1484         (find_uses_to_rename_bb): Likewise.
1486 2013-01-31  Richard Biener  <rguenther@suse.de>
1488         PR tree-optimization/56150
1489         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
1490         mixed store non-store stmts.
1492 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1494         PR sanitizer/55374
1495         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
1496         LIBASAN_EARLY_SPEC is defined.
1497         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
1498         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
1499         before %o.
1500         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
1502         PR c++/55742
1503         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
1504         invalid args instead of ICEing on it.
1505         (ix86_valid_target_attribute_tree): Return error_mark_node if
1506         ix86_valid_target_attribute_inner_p failed.
1507         (ix86_valid_target_attribute_p): Return false only if
1508         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
1509         target("default") attribute.
1510         (sorted_attr_string): Change argument from const char * to tree,
1511         merge in all target attribute arguments rather than just one.
1512         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
1513         instead of free.  Avoid using strcat.
1514         (ix86_mangle_function_version_assembler_name): Mangle
1515         target("default") as if no target attribute is present.  Adjust
1516         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
1517         instead of xmalloc and XDELETEVEC instead of free.
1518         (ix86_function_versions): Don't return true if one of the decls
1519         doesn't have target attribute.  If they don't and one of the decls
1520         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
1521         sorted_attr_string caller.  Use XDELETEVEC instead of free.
1522         (ix86_supports_function_versions): Remove.
1523         (make_name): Fix up formatting.
1524         (make_dispatcher_decl): Remove resolver_name and its initialization.
1525         Avoid leaking memory.
1526         (is_function_default_version): Return true if there is
1527         target("default") attribute rather than no target attribute at all.
1528         (make_resolver_func): Avoid leaking memory.
1529         (ix86_generate_version_dispatcher_body): Likewise.
1530         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
1531         * target.def (supports_function_versions): Remove.
1532         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
1533         * doc/tm.texi: Regenerated.
1535 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1537         PR rtl-optimization/56144
1538         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
1539         for values with side effects.
1541 2013-01-30  Richard Biener  <rguenther@suse.de>
1543         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
1544         (sparseset_pop): Likewise.
1545         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
1546         to be able to use quick_push in the worker loop.
1548 2013-01-30  Marek Polacek  <polacek@redhat.com>
1550         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
1552 2013-01-30  Richard Biener  <rguenther@suse.de>
1554         PR lto/56147
1555         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
1557 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
1559         PR tree-optimization/56064
1560         * fixed-value.c (fixed_from_double_int): New function.
1561         * fixed-value.h (fixed_from_double_int): New prototype.
1562         (const_fixed_from_double_int): New static inline function.
1563         * fold-const.c (native_interpret_fixed): New static function.
1564         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
1565         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
1566         (native_encode_fixed): New static function.
1567         (native_encode_expr) <FIXED_CST>: Use it.
1568         (native_interpret_int): Move double_int worker code to...
1569         * double-int.c (double_int::from_buffer): ...this new static method.
1570         * double-int.h (double_int::from_buffer): Prototype it.
1572 2013-01-30  Richard Biener  <rguenther@suse.de>
1574         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
1575         New pointer-map and obstack.
1576         (init_alias_vars): Allocate pointer-map and obstack.
1577         (delete_points_to_sets): Free them.
1578         (find_what_var_points_to): Cache result.
1579         (find_what_p_points_to): Adjust for changed interface of
1580         find_what_var_points_to.
1581         (compute_points_to_sets): Likewise.
1582         (ipa_pta_execute): Likewise.
1584 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1586         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
1587         * configure: Regenerate.
1588         * config.in: Regenerate.
1589         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
1590         #nobits/#progbits if supported.
1592 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
1594         PR target/56121
1595         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
1596         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
1597         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
1599 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1601         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
1602         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
1604 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1606         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
1607         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
1609 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1611         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
1612         declaration.
1613         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
1614         * config/arm/cortex-a7.md: New bypasses using
1615         arm_mac_accumulator_is_result.
1617 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1619         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
1620         (cortex_a7_neon_mla): Likewise.
1621         (cortex_a7_fpfmad): New reservation.
1622         (cortex_a7_fpmacs): Use ffmas and update required units.
1623         (cortex_a7_fpmuld): Update required units and latency.
1624         (cortex_a7_fpmacd): Likewise.
1625         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
1626         (cortex_a7_neon). Likewise.
1627         (bypass) Update participating units.
1629 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1631         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
1632         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
1633         from fmac to ffma.
1634         * config/arm/vfp11.md (vfp_farith): Use ffmas.
1635         (vfp_fmul): Use ffmad.
1636         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
1637         (cortex_r4_fmacd): Use ffmad.
1638         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
1639         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
1640         (cortex_a9_fmacd): Use ffmad.
1641         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
1642         (cortex_a8_vfp_macd): Use ffmad.
1643         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
1644         (cortex_a5_fpmacd): Use ffmad.
1645         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
1646         (cortex_a15_vfp_macd): Use ffmad.
1647         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
1649 2013-01-29  Jason Merrill  <jason@redhat.com>
1651         PR libstdc++/54314
1652         * varasm.c (default_assemble_visibility): Don't warn about
1653         visibility on artificial decls.
1655 2013-01-29  Richard Biener  <rguenther@suse.de>
1657         PR tree-optimization/56113
1658         * tree-ssa-structalias.c (equiv_class_lookup): Also return
1659         the bitmap leader.
1660         (label_visit): Free duplicate bitmaps and record the leader instead.
1661         (perform_var_substitution): Adjust.
1663 2013-01-29  Richard Biener  <rguenther@suse.de>
1665         PR tree-optimization/55270
1666         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
1667         the CFG, schedule loops for fixup.
1669 2013-01-29  Nick Clifton  <nickc@redhat.com>
1671         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
1672         SP_REG.
1674 2013-01-28  Leif Ekblad  <leif@rdos.net>
1676         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
1677         * config/i386/i386.h (TARGET_RDOS): New macro.
1678         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
1679         * config/i386/i386.c (ix86_option_override_internal): For 64bit
1680         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
1681         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
1682         DEFAULT_LARGE_SECTION_THRESHOLD.
1683         * config/i386/i386.md (R14_REG, R15_REG): New constants.
1684         * config/i386/rdos.h: New file.
1685         * config/i386/rdos64.h: New file.
1687 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
1689         PR other/54814
1690         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
1691         TEST_HARD_REG_BIT.
1693 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1695         PR rtl-optimization/56117
1696         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
1697         call cselib_lookup_from_insn on the MEM before calling
1698         add_insn_mem_dependence.
1700 2013-01-28  Richard Biener  <rguenther@suse.de>
1702         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
1703         to a stmt that didn't have one.
1704         (copy_phis_for_bb): Likewise for PHI arguments.
1705         (copy_debug_stmt): Likewise for debug stmts.
1707 2013-01-28  Richard Biener  <rguenther@suse.de>
1709         PR tree-optimization/56034
1710         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
1711         (partition_builtin_p): Adjust.
1712         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
1713         it is the last partition.
1714         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
1715         up the vertex for the definition.
1716         (classify_partition): Classify whether a partition is a
1717         PKIND_REDUCTION, thus has uses outside of the loop.
1718         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
1719         Merge all PKIND_REDUCTION partitions into the last partition.
1720         (tree_loop_distribution): Seed partitions from reductions as well.
1722 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1724         PR tree-optimization/56125
1725         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
1726         pow(x,c) into sqrt(x) * powi(x, n/2) or
1727         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
1728         optimizing for size.
1729         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
1730         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
1731         integer.
1733         PR tree-optimization/56094
1734         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
1735         to UNKNOWN_LOCATION while gimplifying expr.
1737 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
1739         PR target/56114
1740         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
1741         operand 0 in movabs insn template for -masm=intel asm alternative.
1742         (*movabs<mode>_2): Ditto for operand 1.
1744 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
1746         PR target/54663
1747         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
1748         of microblaze-c.o
1750 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1752         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
1753         tm_file.
1755 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1757         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
1758         Undef to avoid warning.
1760 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1762         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
1763         * configure: Regenerate.
1765 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
1767         PR tree-optimization/56098
1768         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
1769         for stmts with volatile ops.
1770         (cond_store_replacement): Don't optimize if assign has volatile ops.
1771         (cond_if_else_store_replacement_1): Don't optimize if either
1772         then_assign or else_assign have volatile ops.
1773         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
1774         volatile ops.
1776 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1778         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
1780 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1782         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
1783         missing ':' in asm example.
1785 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
1787         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
1788         entries into lane and laneq entries.
1789         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
1790         Remove AdvSIMD scalar modes.
1791         (aarch64_sq<r>dmulh_laneq<mode>): New.
1792         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
1793         modes.
1794         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
1795         builtin implementations to relfect changes in RTL in aarch64-simd.md.
1796         * config/aarch64/iterators.md (VCOND): New.
1797         (VCONQ): New.
1799 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1801         PR target/54222
1802         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
1803         Add NULL LIBNAME argument to existing definitions.
1804         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
1805         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
1806         * config/avr/avr.c (DEF_BUILTIN): Same.
1807         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
1808         (avr_expand_builtin): Expand to a vanilla call if a libgcc
1809         implementation is available (DECL_ASSEMBLER_NAME is set).
1810         (avr_fold_absfx): New static function.
1811         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
1812         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
1813         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
1814         AVR_BUILTIN_ABSLLK.
1815         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
1816         (abshk, absk, abslk, absllk): Provide as static inline functions.
1818 2013-01-25  Marek Polacek  <polacek@redhat.com>
1820         PR tree-optimization/56035
1821         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
1823 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1825         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
1826         (*movtf_internal_rex64): Add (!o,C) alternative
1827         (*movxf_internal_rex64): Ditto.
1828         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
1830 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
1832         * doc/invoke.texi: fix typo.
1833         * doc/objc.texi: fix typo.
1835 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
1837         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
1838         for the first two alternatives.
1840 2013-01-24  Diego Novillo  <dnovillo@google.com>
1842         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
1843         (ggc-zone.o): Remove.
1844         * configure.ac: Remove option --with-gc.
1845         * configure: Re-generate.
1846         * doc/install.texi: Remove documentation for --with-gc.
1847         * gengtype.c (write_enum_defn): Remove.  Update all users.
1848         (write_Types_process_field): Remove generation of gt_e_* argument.
1849         (output_type_enum): Remove.  Update all users.
1850         (write_enum_defn): Remove.  Update all users.
1851         (enum alloc_zone): Remove.  Update all users.
1852         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
1853         * ggc-common.c (ggc_splay_alloc): Remove first argument.
1854         Update all callers.
1855         (struct ptr_data): Remove field TYPE.  Update all users.
1856         (gt_pch_note_object): Remove argument TYPE.  Update all users.
1857         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
1858         Update all users.
1859         * ggc-none.c (ggc_alloc_typed_stat): Remove.
1860         (struct alloc_zone): Remove.
1861         (ggc_internal_alloc_zone_stat): Remove.
1862         (ggc_internal_cleared_alloc_zone_stat): Remove.
1863         * ggc-page.c (ggc_alloc_typed_stat): Remove.
1864         (ggc_pch_count_object): Remove last argument.  Update all users.
1865         (ggc_pch_alloc_object): Remove last argument.  Update all users.
1866         (struct alloc_zone): Remove.
1867         * ggc-zone.c: Remove.
1868         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
1869         (struct alloc_zone): Remove.
1870         (ggc_alloc_typed_stat): Remove.
1871         (ggc_alloc_typed): Remove.
1872         (ggc_splay_alloc): Remove first argument.
1873         (rtl_zone): Remove.  Update all users.
1874         (tree_zone): Remove.  Update all users.
1875         (tree_id_zone): Remove.  Update all users.
1876         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
1877         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
1878         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
1879         * tree-ssanames.c: Remove references to zone allocator in comments.
1881 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
1883         * config/avr/avr.c (avr_out_fract): Make register numbers that
1884         might be outside of source operand signed.
1886 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
1888         * config/i386/constraints.md (Yf): New constraint.
1889         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
1890         of f constraint to conditionaly disable x87 register preferences.
1891         (*movdf_internal): Ditto.
1892         (*movsf_internal): Ditto.
1894 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
1896         PR inline-asm/55934
1897         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
1898         that have operands with impossible constraints.
1899         Add a FIXME for a speed-up opportunity.
1900         * lra-constraints.c (process_alt_operands): Verify that a class
1901         selected from constraints on asms is valid for the operand mode.
1902         (curr_insn_transform): Remove incorrect comment.
1904 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
1906         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
1907         TOC operand is a valid symbol ref in the constant pool.
1909 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1911         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
1913 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
1915         PR target/54222
1916         * config/avr/stdfix.h: New file.
1917         * t-avr (stdfix-gcc.h): New rule to build it.
1918         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
1920 2013-01-23  Kostya Serebryany  <kcc@google.com>
1922         * config/darwin.h: remove dependency on
1923         CoreFoundation (asan on Mac OS).
1925 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
1927         PR target/49069
1928         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
1929         instead of cmpdi_operand for first comparison operand.
1930         Don't assert that comparison operands aren't both constants.
1932 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1934         * doc/install.texi (Downloading the Source): Update references to
1935         downloading separate components.
1937 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1939         * doc/extend.texi (__int128): Improve grammar.
1941 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
1943         PR target/56028
1944         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
1945         alternative to (o,r).
1946         (*movdi_internal_rex64): Remove (!o,n) alternative.
1947         (DImode immediate->memory splitter): Remove.
1948         (DImode immediate->memory peephole2): Remove.
1949         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
1950         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
1951         alternative to (!o,*r).
1952         (*movtf_internal_sse): New pattern.
1953         (*movxf_internal_rex64): New pattern.
1954         (*movxf_internal): Disable for TARGET_64BIT.
1955         (*movdf_internal_rex64): Remove (!o,F) alternative.
1957 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
1959         PR middle-end/56074
1960         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
1961         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
1962         * tree-vect-loop-manip.c (find_loop_location): Also ignore
1963         stmt locations where LOCATION_LOCUS of the stmt location is
1964         UNKNOWN_LOCATION or BUILTINS_LOCATION.
1966         PR target/55686
1967         * config/i386/i386.md (UNSPEC_STOS): New.
1968         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
1969         *strsetqi_1): Add UNSPEC_STOS.
1971 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
1973         PR c++/56067
1974         * doc/invoke.texi: Remove left over -Wsynth example.
1976 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1978         PR tree-optimization/56051
1979         * fold-const.c (fold_binary_loc): Don't fold
1980         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
1981         a narrowing conversion, or widening conversion from signed
1982         to unsigned.
1984 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1986         PR rtl-optimization/56023
1987         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
1988         dependent on debug instruction.
1990 2013-01-21  Martin Jambor  <mjambor@suse.cz>
1992         PR middle-end/56022
1993         * function.c (allocate_struct_function): Call
1994         invoke_set_current_function_hook earlier.
1996 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1998         * reload1.c (init_reload): Only initialize reload_obstack
1999         during the first call.
2001 2013-01-21  Marek Polacek  <polacek@redhat.com>
2003         * cfgloop.c (verify_loop_structure): Fix up grammar.
2005 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
2007         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2008         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2010 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2012         PR target/56058
2013         * config/arm/marvell-pj4.md: Update copyright year.
2014         Fix up use of alu to alu_reg and simple_alu_imm.
2016 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
2018         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
2020 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
2022         PR target/55433
2023         * lra-constraints.c (curr_insn_transform): Don't reuse original
2024         insn for secondary memory move when memory mode should be different.
2026 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2028         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
2029         atomic_storedi_1): New patterns.
2031 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2033         btver2 pipeline descriptions.
2034         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
2035         descriptions.
2036         * config/i386/i386.md (btver2_decode): New type attributes.
2037         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
2038         type attributes.
2039         * config/i386/btver2.md: New file describing btver2 pipelines.
2041 2013-01-19  Andrew Pinski  <apinski@cavium.com>
2043         PR tree-optimization/52631
2044         * tree-ssa-sccvn (visit_use): Before looking up the original
2045         statement, try looking up the simplified expression.
2047 2013-01-19  Anthony Green  <green@moxielogic.com>
2049         * config/moxie/moxie.c (moxie_expand_prologue): Set
2050         current_function_static_stack_size.
2052 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
2054         PR tree-optimization/56029
2055         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
2056         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
2058 2013-01-18  Sharad Singhai  <singhai@google.com>
2060         PR tree-optimization/55995
2061         * dumpfile.c (dump_loc): Print location only if available.
2062         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
2064 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
2066         PR target/55433
2067         * lra-constraints.c (curr_insn_transform): Reuse original insn for
2068         secondary memory move.
2069         (inherit_reload_reg): Use rclass instead of cl for
2070         check_secondary_memory_needed_p.
2072 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
2074         PR middle-end/56015
2075         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
2076         the case where writing real complex part of target modifies op1.
2078 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
2080         * config/aarch64/aarch64-simd.md
2081         (aarch64_vcond_internal<mode>): Handle unordered cases.
2082         * config/aarch64/iterators.md (v_cmp_result): New.
2084 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
2085             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2087         * config/arm/marvell-pj4.md: New file.
2088         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
2089         * config/arm/arm.md (generic_sched): Add marvell_pj4.
2090         (generic_vfp): Likewise.
2091         * config/arm/arm-cores.def: Add marvell-pj4.
2092         * config/arm/arm-tune.md: Regenerate.
2093         * config/arm/arm-tables.opt: Regenerate.
2094         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
2095         * doc/invoke.texi: Document marvell-pj4.
2097 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
2099         * config/aarch64/arm_neon.h: Map scalar types to standard types.
2101 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2103         PR debug/54114
2104         PR debug/54402
2105         PR debug/49888
2106         * var-tracking.c (negative_power_of_two_p): New.
2107         (global_get_addr_cache, local_get_addr_cache): New.
2108         (get_addr_from_global_cache, get_addr_from_local_cache): New.
2109         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
2110         heading comment.
2111         (vt_stack_offset_p): Remove.
2112         (vt_canon_true_dep): Always canonicalize loc's address.
2113         (clobber_overlapping_mems): Make sure we have a MEM.
2114         (local_get_addr_clear_given_value): New.
2115         (val_reset): Clear local cached entries.
2116         (compute_bb_dataflow): Create and release the local cache.
2117         Disable duplicate MEMs clobbering.
2118         (emit_notes_in_bb): Clobber MEMs likewise.
2119         (vt_emit_notes): Create and release the local cache.
2120         (vt_initialize, vt_finalize): Create and release the global
2121         cache, respectively.
2122         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
2124 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2126         PR libmudflap/53359
2127         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
2128         not found in the symtab.
2130 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2132         PR debug/56006
2133         PR rtl-optimization/55547
2134         PR rtl-optimization/53827
2135         PR debug/53671
2136         PR debug/49888
2137         * alias.c (offset_overlap_p): New, factored out of...
2138         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
2139         the conservative special case for symbolic constants.  Don't
2140         adjust zero sizes on alignment.
2142 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
2144         PR rtl-optimization/52573
2145         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
2146         REG_UNUSED for the same register.
2148 2013-01-17  Richard Biener  <rguenther@suse.de>
2149             Marek Polacek  <polacek@redhat.com>
2151         PR rtl-optimization/55833
2152         * loop-unswitch.c (unswitch_loops): Move loop verification...
2153         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
2154         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
2155         Set it to true when we're removing a loop from hierarchy tree in
2156         an irreducible region.
2157         (fix_bb_placements): Adjust caller.
2158         (fix_loop_placements): Likewise.
2160 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
2162         * config/avr/builtins.def (DEF_BUILTIN): Factor out
2163         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
2164         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
2165         Remove ID.  Adjust comments.
2166         * config/avr/avr-c.c (avr_builtin_name): Remove.
2167         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
2168         * config/avr/avr.c (avr_tolower): New static function.
2169         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
2170         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
2171         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
2172         default expansion.
2174 2013-01-17  Jan Hubicka  <jh@suse.cz>
2176         PR tree-optimization/55273
2177         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
2179 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
2181         PR target/55981
2182         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
2183         store through atomic_store<mode>_1.
2184         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
2186 2013-01-17  Martin Jambor  <mjambor@suse.cz>
2188         PR tree-optimizations/55264
2189         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
2190         for virtual methods.
2191         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
2192         virtual methods before inlining is over.
2193         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
2194         virtual functions.
2195         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
2196         non-virtual.
2198 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
2200         PR rtl-optimization/56005
2201         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
2202         pending reads for prefetch.
2204 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
2206         * config/aarch64/aarch64.md
2207         (*cstoresi_neg_uxtw): New pattern.
2208         (*cmovsi_insn_uxtw): New pattern.
2209         (*<optab>si3_uxtw): New pattern.
2210         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
2211         (*<optab>si3_insn_uxtw): New pattern.
2212         (*bswapsi2_uxtw): New pattern.
2214 2013-01-16  Richard Biener  <rguenther@suse.de>
2216         * tree-inline.c (tree_function_versioning): Remove set but
2217         never used variable.
2219 2013-01-16  Richard Biener  <rguenther@suse.de>
2221         PR tree-optimization/55964
2222         * tree-flow.h (rename_variables_in_loop): Remove.
2223         (rename_variables_in_bb): Likewise.
2224         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
2225         (copy_loop_before): Adjust and delete update-ssa status.
2226         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
2227         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
2228         (rename_variables_in_loop): Remove.
2229         (slpeel_update_phis_for_duplicate_loop): Likewise.
2230         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
2231         use available cfg machinery instead of duplicating it.
2232         Update PHI nodes and perform poor-mans SSA update here.
2233         (slpeel_tree_peel_loop_to_edge): Adjust.
2235 2013-01-16  Richard Biener  <rguenther@suse.de>
2237         PR tree-optimization/54767
2238         PR tree-optimization/53465
2239         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
2240         (vrp_visit_phi_node): For PHI arguments coming via backedges
2241         drop all symbolical range information.
2242         (execute_vrp): Compute backedges.
2244 2013-01-16  Richard Biener  <rguenther@suse.de>
2246         * doc/install.texi: Update CLooG and ISL requirements to
2247         0.18.0 and 0.11.1.
2249 2013-01-16  Christian Bruel  <christian.bruel@st.com>
2251         PR target/55301
2252         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
2253         (broken_move): Handle UNSPECV_SP_SWITCH_B.
2254         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
2256 2013-01-16  DJ Delorie  <dj@redhat.com>
2258         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
2259         (UNSPECV_SP_SWITCH_E): New.
2260         (sp_switch_1): Change to an unspec.
2261         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
2262         replace $r15.
2264 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
2266         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
2267         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
2268         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
2269         (expand_mem_thread_fence): Ditto.
2270         (expand_mem_signal_fence): Ditto.
2271         (expand_atomic_load): Ditto.
2272         (expand_atomic_store): Ditto.
2274 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
2276         PR rtl-optimization/55547
2277         PR rtl-optimization/53827
2278         PR debug/53671
2279         PR debug/49888
2280         * alias.c (memrefs_conflict_p): Set sizes to negative after
2281         AND adjustments.
2283 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2285         PR target/55940
2286         * function.c (thread_prologue_and_epilogue_insns): Always
2287         add crtl->drap_reg to set_up_by_prologue.set, even if
2288         stack_realign_drap is false.
2290 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2292         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
2293         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
2294         *call): Fix indention.
2296 2013-01-15  Tom de Vries  <tom@codesourcery.com>
2298         PR target/55876
2299         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
2300         Update comment.
2302 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
2304         PR rtl-optimization/55153
2305         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
2307 2013-01-15  Martin Jambor  <mjambor@suse.cz>
2309         PR tree-optimization/55920
2310         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
2311         accesses as grp_to_be_debug_replaced.
2313 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2315         PR tree-optimization/55920
2316         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
2317         there is non-useless type conversion needed from debug rhs to lhs,
2318         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
2320 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
2321             Mikael Pettersson  <mikpe@it.uu.se>
2323         PR target/43961
2324         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
2325         Thumb.
2326         (ASM_OUTPUT_CASE_LABEL): Remove.
2327         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
2328         * final.c (shorten_branches): Update alignment of labels before
2329         jump tables if CASE_VECTOR_SHORTEN_MODE.
2331 2013-01-15  Richard Biener  <rguenther@suse.de>
2333         PR bootstrap/55961
2334         * system.h: Do not include gmp.h for building host tools.
2336 2013-01-15  Richard Biener  <rguenther@suse.de>
2338         PR middle-end/55882
2339         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
2340         account for bitpos when computing alignment.
2342 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
2344         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
2345         (ix86_target_macros_internal): Likewise.
2347         * config/i386/i386.c (m_CORE2I7): Removed.
2348         (m_CORE_HASWELL): New macro.
2349         (m_CORE_ALL): Likewise.
2350         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
2351         (initial_ix86_arch_features): Likewise.
2352         (processor_target_table): Initializations for Core avx2.
2353         (cpu_names): New names "core-avx2".
2354         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
2355         PROCESSOR_CORE_HASWELL.
2356         (ix86_issue_rate): New case.
2357         (ia32_multipass_dfa_lookahead): Likewise.
2358         (ix86_sched_init_global): Likewise.
2360         * config/i386/i386.h (TARGET_HASWELL): New macro.
2361         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
2362         (processor_type): New PROCESSOR_HASWELL.
2364 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2366         PR tree-optimization/55955
2367         * tree-vect-loop.c (vectorizable_reduction): Give up early on
2368         *SHIFT_EXPR and *ROTATE_EXPR codes.
2370         PR tree-optimization/48766
2371         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
2372         -ftrapv disable -fwrapv.
2374 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2376         PR target/55974
2377         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
2378         etc. to 1 and not to __flash.
2379         Use LL suffix for __INT24_MAX__ with -mint8.
2380         Use ULL suffix for __UINT24_MAX__ with -mint8.
2382 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2384         * config/avr/avr-arch.h
2385         (struct base_arch_s): Use typedef avr_arch_t instead.
2386         (struct arch_info_s): Use typedef avr_arch_info_t instead.
2387         (struct mcu_type_s): Use typedef avr_mcu_t instead.
2388         * config/avr/avr.c: Same.
2389         * config/avr/avr-devices.c: Same.
2390         * config/avr/driver-avr.c: Same.
2391         * config/avr/gen-avr-mmcu-texi.c: Same.
2392         * config/avr/avr-mcus.def: Adjust comment.
2394 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
2396         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
2397         * config/aarch64/iterators.md (VALLDI): New.
2399 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
2400             Andi Kleen  <ak@linux.intel.com>
2402         PR target/55948
2403         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
2404         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
2405         memmodel flag.
2407 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2409         * config/avr/avr-stdint.h: Remove trailing blanks.
2410         * config/avr/avr-log.h: Same.
2411         * config/avr/avr-arch.h: Same.
2412         * config/avr/avr-devices.c: Same.
2413         * config/avr/avr-dimode.md: Same.
2414         * config/avr/predicates.md: Same.
2415         * config/avr/avr-c.c: Same.  And fix typo.
2417         * config/avr/avr-protos.h: Same.  And:
2418         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
2419         (init_cumulative_args): Rename to avr_init_cumulative_args.
2420         (expand_prologue): Rename to avr_expand_prologue.
2421         (expand_epilogue): Rename to avr_expand_epilogue.
2422         (adjust_insn_length): Rename to avr_adjust_insn_length.
2423         (notice_update_cc): Rename to avr_notice_update_cc.
2424         (final_prescan_insn): Rename to avr_final_prescan_insn.
2425         * config/avr/avr.c: Same.
2426         * config/avr/avr.h: Same.
2427         * config/avr/avr.md: Remove trailing blanks.
2428         (prologue): Use avr_expand_prologue.
2429         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
2431 2013-01-14  Richard Biener  <rguenther@suse.de>
2433         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
2434         verify_location, collect_subblocks): New functions.
2435         (verify_gimple_in_cfg): Verify that locations only reference
2436         BLOCKs in the functions BLOCK tree.
2438 2013-01-14  Richard Biener  <rguenther@suse.de>
2440         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
2441         PHI argument.
2442         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
2443         unshare reference.
2444         (insert_out_of_ssa_copy_on_edge): Likewise.
2445         (rewrite_close_phi_out_of_ssa): Likewise.
2446         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
2447         debug expressions.
2448         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
2449         propagated constants.
2450         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
2451         can not be shared.
2453 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2455         * config/avr/avr-modes.def: Add GPL copyright notice.
2457 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
2459         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
2460         MEMMODEL_MASK to determine memory model.
2461         (atomic_store<mode>): Ditto from operands[2].
2462         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
2464 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
2466         PR fortran/55935
2467         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
2468         (fold_gimple_assign): Don't call unshare_expr here.
2469         (fold_ctor_reference): Call unshare_expr.
2471 2013-01-13  Terry Guo  <terry.guo@arm.com>
2473         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
2474         * doc/fragments.texi: Document MULTILIB_REUSE.
2475         * gcc.c (multilib_reuse): New internal spec.
2476         (set_multilib_dir): Also search multilib from multilib_reuse.
2477         * genmultilib (tmpmultilib3): Refactor code.
2478         (tmpmultilib4): Ditto.
2479         (multilib_reuse): New multilib argument.
2481 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
2483         * Makefile.in: Update copyright.
2485 2013-01-12  Tom de Vries  <tom@codesourcery.com>
2487         PR middle-end/55890
2488         * calls.c (expand_call): Check if arg_nr is valid.
2490 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2492         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
2493         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
2494         documentation.  Add missing '__' in front of
2495         __builtin_ia32_packssdw256.
2497 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2499         PR target/55719
2500         * config/s390/s390.c (s390_preferred_reload_class): Do not return
2501         NO_REGS for larl operands.
2502         (s390_reload_larl_operand): Use s390_load_address instead of
2503         emit_move_insn.
2505 2013-01-11  Richard Biener  <rguenther@suse.de>
2507         * tree-cfg.c (verify_node_sharing_1): Split out from ...
2508         (verify_node_sharing): ... here.
2509         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
2511 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
2513         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
2514         Substitute TREECHECKING.
2515         * configure: Regenerate.
2516         * Makefile.in (TREECHECKING): New.
2518 2013-01-11  Richard Guenther  <rguenther@suse.de>
2520         PR tree-optimization/44061
2521         * tree-vrp.c (extract_range_basic): Compute zero as
2522         value-range for __builtin_constant_p of function parameters.
2524 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
2526         Update copyright years.
2528 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
2530         PR rtl-optimization/55672
2531         * lra-eliminations.c (mark_not_eliminable): Permit addition with
2532         const to be eliminable.
2534 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
2536         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
2537         * configure: Regenerate.
2539 2013-01-10  Richard Biener  <rguenther@suse.de>
2541         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
2543 2013-01-10  Richard Biener  <rguenther@suse.de>
2545         PR bootstrap/55792
2546         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
2547         locations for virtual PHI arguments.
2548         (rewrite_update_phi_arguments): Likewise.
2550 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
2552         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
2553         on to assembler.
2555 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
2557         PR tree-optimization/55921
2558         * tree-complex.c (expand_complex_asm): New function.
2559         (expand_complex_operations_1): Call it for GIMPLE_ASM.
2561 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2563         PR target/55718
2564         * config/s390/s390.c (s390_symref_operand_p)
2565         (s390_loadrelative_operand_p): Merge the two functions.
2566         (s390_check_qrst_address, print_operand_address): Add parameters
2567         to s390_loadrelative_operand_p invokation.
2568         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
2569         (s390_reload_larl_operand, s390_secondary_reload): Use
2570         s390_loadrelative_operand_p instead of s390_symref_operand_p.
2571         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
2573 2013-01-09  Mike Stump  <mikestump@comcast.net>
2575         * dse.c (record_store): Remove unnecessary assert.
2577 2013-01-09  Jan Hubicka  <jh@suse.cz>
2579         PR tree-optimization/55569
2580         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
2581         * cfgloop.h (scale_loop_profile): Likewise.
2583 2013-01-09  Jan Hubicka  <jh@suse.cz>
2585         PR lto/45375
2586         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
2587         functions.
2588         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
2590 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
2592         PR middle-end/55114
2593         * expr.h (maybe_emit_group_store): Declare.
2594         * expr.c (maybe_emit_group_store): New function.
2595         * builtins.c (expand_builtin_int_roundingfn): Call it.
2596         (expand_builtin_int_roundingfn_2): Likewise.
2598 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
2600         PR rtl-optimization/55829
2601         * lra-constraints.c (match_reload): Add code for absent output.
2602         (curr_insn_transform): Add code for reloads of matched inputs
2603         without output.
2605 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
2607         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
2608         attribute of movddup insn to DF.
2609         (*vec_interleave_lowv2df): Ditto.
2610         (vec_dupv2df): Ditto.
2612 2013-01-09  Jan Hubicka  <jh@suse.cz>
2614         PR tree-optimiation/55875
2615         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
2616         EVERY_ITERATION parameter.
2617         (number_of_iterations_exit): Check if exit is executed every iteration.
2618         (idx_infer_loop_bounds): Similarly here.
2619         (n_of_executions_at_most): Simplify
2620         to only test for cases where statement is dominated by the
2621         particular bound; handle correctly the "postdominance" test.
2622         (scev_probably_wraps_p): Use max loop iterations info
2623         as a global bound first.
2625 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
2626             Nick Clifton  <nickc@redhat.com>
2628         * config/v850/v850.md (cbranchsf4): New pattern.
2629         (cstoresf4): New pattern.
2630         (cbranchdf4): New pattern.
2631         (cstoredf4): New pattern.
2632         (movsicc): Disallow floating point comparisons.
2633         (cmpsf_le_insn): Fix order of operators.
2634         (cmpsf_lt_insn): Likewise.
2635         (cmpsf_eq_insn): Likewise.
2636         (cmpdf_le_insn): Likewise.
2637         (cmpdf_lt_insn): Likewise.
2638         (cmpdf_eq_insn): Likewise.
2639         (cmpsf_ge_insn): Use LE comparison.
2640         (cmpdf_ge_insn): Likewise.
2641         (cmpsf_gt_insn): Use LT comparison.
2642         (cmpdf_gt_insn): Likewise.
2643         (cmpsf_ne_insn): Delete pattern.
2644         (cmpdf_ne_insn): Delete pattern.
2645         * config/v850/v850.c (v850_gen_float_compare): Use
2646         gen_cmpdf_eq_insn for NE comparison.
2647         (v850_float_z_comparison_operator)
2648         (v850_float_nz_comparison_operator): Move from here ...
2649         * config/v850/predicates.md: ... to here.  Move GT and GE
2650         comparisons into v850_float_z_comparison_operator.
2651         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
2652         Delete prototype.
2653         (v850_float_nz_comparison_operator): Likewise.
2655 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2657         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
2658         with calls to gen_insvsi/gen_insvdi.
2660 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2662         * config/i386/i386.c (initial_ix86_tune_features): Set up
2663         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
2665 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
2666             Jakub Jelinek  <jakub@redhat.com>
2668         PR tree-optimization/48189
2669         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
2670         If nitercst is 0, don't predict the exit edge.
2672 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2674         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
2675         in asm_fprintf with reg_names.
2676         (aarch64_print_operand_address): Likewise.
2677         (aarch64_return_addr): Likewise.
2678         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
2680 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2682         * config/pa/pa.h (VAL_U6_BITS_P): Define.
2683         (INT_U6_BITS): Likewise.
2684         * config/pa/predicates.md (uint6_operand): New predicate.
2685         (shift5_operand, shift6_operand): Likewise.
2686         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
2687         arith32_operand.
2688         (lshrdi3): Use shift6_operand.
2689         (shrpsi4, shrpdi4): New insn patterns.
2690         (extzv): Delete expander.
2691         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
2692         predicates in unamed zero extract patterns.  Tighten common constraint.
2693         (extv): Delete expander.
2694         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
2695         predicates in unamed sign extract patterns.  Tighten common constraint.
2696         (insv): Delete expander.
2697         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
2698         predicates in unamed insert patterns.  Tighten common constraint.
2699         Change uint32_operand predicate to uint6_operand predicate in unamed
2700         DImode pattern to insert constant values of type 1...1xxxx.
2702 2013-01-04  Jan Hubicka  <jh@suse.cz>
2704         PR tree-optimization/55823
2705         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
2706         issue.
2708 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2709             Uros Bizjak  <ubizjak@gmail.com>
2711         PR rtl-optimization/55845
2712         * df-problems.c (can_move_insns_across): Stop scanning at
2713         volatile_insn_p source instruction or give up if
2714         across_from .. across_to range contains any volatile_insn_p
2715         instructions.
2717 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
2719         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
2720         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
2721         Declare.
2722         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
2723         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
2725 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2727         PR fortran/55341
2728         * asan.c (asan_clear_shadow): New function.
2729         (asan_emit_stack_protection): Use it.
2731 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
2733         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
2734         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
2735         with tab instead of space.
2737 2013-01-08  Nick Clifton  <nickc@redhat.com>
2739         * config/rl78/rl78.c (rl78_expand_prologue): Always select
2740         register bank 0 at the start of an interrupt handler.
2741         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
2742         MDBH registers.
2744 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
2746         * config/aarch64/aarch64-simd.md
2747         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
2748         (aarch64_simd_bsl): Likewise.
2749         (aarch64_vcond_internal<mode>): Likewise.
2750         (vcond<mode><mode>): Likewise.
2751         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
2752         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
2754 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
2756         * config/aarch64/aarch64-builtins.c
2757         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
2759 2013-01-08  Martin Jambor  <mjambor@suse.cz>
2761         PR debug/55579
2762         * tree-sra.c (analyze_access_subtree): Return true also after
2763         potentially creating a debug-only replacement.
2765 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2767         PR middle-end/55890
2768         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
2770         PR tree-optimization/54120
2771         * tree-vrp.c (range_fits_type_p): Don't allow
2772         src_precision < precision from signed vr to unsigned_p
2773         if vr->min or vr->max is negative.
2774         (simplify_float_conversion_using_ranges): Test can_float_p
2775         against CODE_FOR_nothing.
2777 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2778             Richard Biener  <rguenther@suse.de>
2780         PR middle-end/55851
2781         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
2782         types instead of just INTEGER_TYPE types.
2784 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
2786         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
2787         TF_SIZE): Define.
2789 2013-01-07  Steve Ellcey  <sellcey@mips.com>
2791         PR target/42661
2792         * config/mips/mips.opt: Change mad to mmad to match documentation.
2794 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2796         PR target/55897
2797         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
2798         .progmemx.data now.
2800 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2802         PR target/55897
2803         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
2804         (avr_addrspace_t): Add .section_name field.
2805         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
2806         array size.
2807         (avr_addrspace): Same.  Initialize .section_name.  Remove last
2808         NULL entry.  Put __memx into .progmemx.data.
2809         (progmem_section_prefix): Remove.
2810         (avr_asm_init_sections): No need to initialize progmem_section.
2811         (avr_asm_named_section): Use avr_addrspace[].section_name to get
2812         section name prefix.
2813         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
2814         retrieve the progmem section.
2815         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
2816         boundary to run over avr_addrspace[].
2817         (avr_register_target_pragmas): Ditto.
2819 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
2821         * varasm.c (output_constant_def_contents): For asan_protect_global
2822         protected strings, adjust DECL_ALIGN if needed, before testing for
2823         anchored symbols.
2824         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
2825         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
2826         normal decls.
2827         (output_object_block): For asan protected decls, emit asan padding
2828         after their contents.
2829         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
2830         (asan_finish_file): Test it here instead.
2832 2013-01-07  Nick Clifton  <nickc@redhat.com>
2833             Matthias Klose  <doko@debian.org>
2834             Doug Kwan  <dougkwan@google.com>
2835             H.J. Lu  <hongjiu.lu@intel.com>
2837         PR driver/55470
2838         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
2840         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
2842         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
2844         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
2846         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
2848 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2850         PR target/54461
2851         * doc/install.texi (Cross-Compiler-Specific Options): Document
2852         --with-avrlibc.
2854 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
2856         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
2857         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
2858         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
2859         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
2860         vqmovun_high_s64): Fix source operand number and update copyright.
2862 2013-01-07  Richard Biener  <rguenther@suse.de>
2864         PR middle-end/55890
2865         * gimple.h (gimple_call_builtin_p): New overload.
2866         * gimple.c (validate_call): New function.
2867         (gimple_call_builtin_p): Likewise.
2868         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2869         Use gimple_call_builtin_p.
2870         (find_func_clobbers): Likewise.
2871         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
2872         (strlen_optimize_stmt): Likewise.
2874 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2876         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
2877         (vld1q_dup_*): Likewise.
2878         (vld1_*): Likewise.
2879         (vld1q_*): Likewise.
2880         (vld1_lane_*): Likewise.
2881         (vld1q_lane_*): Likewise.
2883 2013-01-07  Richard Biener  <rguenther@suse.de>
2885         * lto-streamer.h (LTO_minor_version): Bump to 2.
2887 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2889         * config/aarch64/aarch64-protos.h
2890         (aarch64_const_double_zero_rtx_p): Rename to...
2891         (aarch64_float_const_zero_rtx_p): ...this.
2892         (aarch64_float_const_representable_p): New.
2893         (aarch64_output_simd_mov_immediate): Likewise.
2894         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
2895         move immediate case.
2896         * config/aarch64/aarch64.c
2897         (aarch64_const_double_zero_rtx_p): Rename to...
2898         (aarch64_float_const_zero_rtx_p): ...this.
2899         (aarch64_print_operand): Allow printing of new constants.
2900         (aarch64_valid_floating_const): New.
2901         (aarch64_legitimate_constant_p): Check for valid floating-point
2902         constants.
2903         (aarch64_simd_valid_immediate): Likewise.
2904         (aarch64_vect_float_const_representable_p): New.
2905         (aarch64_float_const_representable_p): Likewise.
2906         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
2907         (aarch64_output_simd_mov_immediate): New.
2908         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
2909         (*movdf_aarch64): Likewise.
2910         * config/aarch64/constraints.md (Ufc): New.
2911         (Y): call aarch64_float_const_zero_rtx.
2912         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
2914 2013-01-07  Richard Biener  <rguenther@suse.de>
2916         PR tree-optimization/55888
2917         PR tree-optimization/55862
2918         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
2919         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
2920         not if it is contained therein.
2922 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2924         * config/avr/t-avr: Typo.
2926 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2928         PR55243
2929         * config/avr/t-avr: Don't automatically rebuild
2930         $(srcdir)/config/avr/t-multilib
2931         $(srcdir)/config/avr/avr-tables.opt
2932         $(srcdir)/doc/avr-mmcu.texi
2933         (avr-mcus): New phony target to build them on request.
2934         (s-avr-mlib, s-avr-mmcu-texi): Remove.
2935         * avr/avr-mcus.def: Adjust comments.
2937 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
2939         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
2941 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2943         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
2945 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2947         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
2949 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
2951         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
2952         to generate profiling.
2953         * config/rs6000/aix64.h (LIB_SPEC): Same.
2955 2013-01-04  Andrew Pinski  <apinski@cavium.com>
2957         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
2958         New function.
2959         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
2961 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
2963         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
2964         unconditionally.
2965         (ix86_expand_move): Ditto.
2966         (ix86_zero_extend_to_Pmode): Ditto.
2967         (ix86_expand_call): Ditto.
2968         (ix86_expand_special_args_builtin): Ditto.
2969         (ix86_expand_builtin): Ditto.
2971 2013-01-04  Richard Biener  <rguenther@suse.de>
2973         PR tree-optimization/55862
2974         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
2975         translating them through PHI nodes.
2977 2013-01-04  Martin Jambor  <mjambor@suse.cz>
2979         PR tree-optimization/55755
2980         * tree-sra.c (sra_modify_assign): Do not check that an access has no
2981         children when trying to avoid producing a VIEW_CONVERT_EXPR.
2983 2013-01-04  Marek Polacek  <polacek@redhat.com>
2985         PR middle-end/55859
2986         * opts.c (default_options_optimization): Clarify error message.
2988 2013-01-04  Richard Biener  <rguenther@suse.de>
2990         PR middle-end/55863
2991         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
2992         reassociation.
2994 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2996         PR target/53789
2997         * config/pa/pa.md (movsi): Revert previous change.
2998         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
2999         references.
3001 2013-01-03  Richard Henderson  <rth@redhat.com>
3003         * config/i386/i386.c (ix86_expand_move): Always assign to op1
3004         after eliminating TLS symbols.
3006 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
3008         PR bootstrap/50167
3009         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3010         * graphite-poly.c (debug_gmp_value): Likewise.
3012 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
3014         PR target/55712
3015         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
3016         selected code model, define __code_mode_small__, __code_model_medium__,
3017         __code_model_large__, __code_model_32__ or __code_model_kernel__.
3018         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
3019         xchg temporary register with %k.  Declare temporary register as
3020         early clobbered.
3021         [__x86_64__]: For medium and large code models, preserve %rbx register.
3023 2013-01-03  Richard Biener  <rguenther@suse.de>
3025         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
3026         (dump_subscript): Adjust.
3027         (finalize_ddr_dependent): Do not dump redundant info.
3028         (analyze_siv_subscript): Adjust.
3029         (subscript_dependence_tester): Likewise.
3030         (compute_affine_dependence): Likewise.
3032 2013-01-03  Richard Biener  <rguenther@suse.de>
3034         Revert
3035         2013-01-03  Richard Biener  <rguenther@suse.de>
3037         PR tree-optimization/55857
3038         * tree-vect-stmts.c (vectorizable_load): Do not setup
3039         re-alignment for invariant loads.
3041         2013-01-02  Richard Biener  <rguenther@suse.de>
3043         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3044         invariant load do not generate a vector load from the scalar location.
3046 2013-01-03  Richard Biener  <rguenther@suse.de>
3048         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
3049         for not vectorizing.
3050         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3051         not build INDIRECT_REFs, call get_name once only.
3052         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
3053         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
3055 2013-01-03  Richard Biener  <rguenther@suse.de>
3057         PR tree-optimization/55857
3058         * tree-vect-stmts.c (vectorizable_load): Do not setup
3059         re-alignment for invariant loads.
3061 2013-01-03  Richard Biener  <rguenther@suse.de>
3063         PR lto/55848
3064         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
3065         prefer a built-in decl.
3067 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3069         * gcc.c (process_command): Update copyright notice dates.
3070         * gcov.c (print_version): Likewise.
3071         * gcov-dump.c (print_version): Likewise.
3073         PR rtl-optimization/55838
3074         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
3075         iv0.step, iv1.step and step.
3077 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3078             Marc Glisse  <marc.glisse@inria.fr>
3080         PR tree-optimization/55832
3081         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
3082         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
3083         integer_{one,zero}_node.
3085 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3087         PR debug/54402
3088         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
3089         * var-tracking.c (reverse_op): Don't add reverse ops to
3090         VALUEs that have already
3091         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
3093 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
3095         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
3097 2013-01-02  Teresa Johnson  <tejohnson@google.com>
3099         * dumpfile.c (dump_loc): Print filename with location.
3100         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
3101         new location_t parameter to emit complete unroll message with
3102         new dump framework.
3103         (canonicalize_loop_induction_variables): Compute loops location
3104         and pass to try_unroll_loop_completely.
3105         * loop-unroll.c (report_unroll_peel): New function.
3106         (peel_loops_completely): Use new dump format with location
3107         for main dumpfile message, and invoke report_unroll_peel on success.
3108         (decide_unrolling_and_peeling): Ditto.
3109         (decide_peel_once_rolling): Remove old dumpfile message subsumed
3110         by report_unroll_peel.
3111         (decide_peel_completely): Ditto.
3112         (decide_unroll_constant_iterations): Ditto.
3113         (decide_unroll_runtime_iterations): Ditto.
3114         (decide_peel_simple): Ditto.
3115         (decide_unroll_stupid): Ditto.
3116         * cfgloop.c (get_loop_location): New function.
3117         * cfgloop.h (get_loop_location): Declare.
3119 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
3121         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
3122         NULL.
3124 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3126         PR middle-end/55198
3127         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
3128         BLKmode objects when EXPAND_MEMORY is specified.
3130 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
3132         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
3133         in loop predicate.
3134         (fold_builtin_cpu): Do not share cpu model decls across statements.
3136 2013-01-02  Jason Merrill  <jason@redhat.com>
3138         PR c++/55804
3139         * tree.c (build_array_type_1): Revert earlier change.
3141 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
3143         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
3144         "cortex-a57".
3145         * config/aarch64/aarch64-tune.md: Re-generate.
3147 2013-01-02  Richard Biener  <rguenther@suse.de>
3149         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3150         invariant load do not generate a vector load from the scalar location.
3152 2013-01-02  Richard Biener  <rguenther@suse.de>
3154         PR bootstrap/55784
3155         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
3156         * configure: Regenerate.
3158 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3160         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
3161         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
3162         (expand_builtin_int_roundingfn_2): Keep the original target around
3163         for the fallback case.
3165 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3167         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
3168         to be clear for sign changes.
3170 2013-01-01  Jan Hubicka  <jh@suse.cz>
3172         * ipa-inline-analysis.c: Fix formatting.
3174 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
3176         PR tree-optimization/55831
3177         * tree-vect-loop.c (get_initial_def_for_induction): Use
3178         gsi_after_labels instead of gsi_start_bb.
3180 Copyright (C) 2013 Free Software Foundation, Inc.
3182 Copying and distribution of this file, with or without modification,
3183 are permitted in any medium without royalty provided the copyright
3184 notice and this notice are preserved.