* gcc.dg/vect/vect-82_64.c: Skip on AIX.
[official-gcc.git] / gcc / ChangeLog
blobe94430ad3e1f9eb471e2a1553f29fab2b22e36b5
1 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
3         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
4         the attribute is now called "target" instead of "option".
5         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
6         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
7         attribute/pragma name for TARGET_OPTION_VALID_P and
8         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
9         * doc/tm.texi: Regenerated.
11 2013-03-02  David Holsgrove <david.holsgrove@xilinx.com>
13         *  config/microblaze/microblaze.c:
14         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
15         *  config/microblaze/microblaze.h: Add -mxl-reorder to DRIVER_SELF_SPECS
16         *  config/microblaze/microblaze.md: New bswapsi2 and bswaphi2
17         instructions emitted if TARGET_REORDER
18         *  config/microblaze/microblaze.opt: New option -mxl-reorder set to 1 
19         or 0 for -m/-mno case, but initialises as 2 to detect default use case 
20         separately
22 2013-03-01  Xinliang David Li  <davidxl@google.com>
24         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
25         walk length.
27 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
29         PR middle-end/56461
30         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
31         vector even when returning true.  Fix up function comment formatting.
33         PR middle-end/56461
34         * ira-build.c (ira_loop_nodes_count): New variable.
35         (create_loop_tree_nodes): Initialize it.
36         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
38         PR middle-end/56461
39         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
40         method on dr_chain and result_chain.
41         * tree-vect-stmts.c (vectorizable_store): Only call
42         result_chain.create if j == 0.
44         PR middle-end/56461
45         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
46         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
47         before overwriting it.
49 2013-03-01  Tobias Burnus  <burnus@net-b.de>
51         * doc/extended.texi (C Extensions): Change order in @menu
52         to match @node.
53         (Other MIPS Built-in Functions): Move last MIPS entry before
54         "picoChip Built-in Functions".
55         (SH Built-in Functions): Move after RX Built-in Functions.
56         * doc/gcc.texi (Introduction): Change order in @menu
57         to match @node.
58         * doc/md.texi (Constraints): Ditto.
59         * gty.texi (Type Information): Ditto.
60         (User-provided marking routines for template types): Make
61         subsection.
62         * doc/invoke.texi (AArch64 Options): Move before
63         "Adapteva Epiphany Options".
65 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
66             Jakub Jelinek  <jakub@redhat.com>
68         PR sanitizer/56454
69         * asan.c (gate_asan): Lookup no_sanitize_address instead of
70         no_address_safety_analysis attribute.
71         * doc/extend.texi (no_address_safety_attribute): Rename to
72         no_sanitize_address attribute, mention no_address_safety_analysis
73         attribute as deprecated alias.
75 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
77         PR middle-end/56461
78         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
79         type to vec<vec<tree> > *.
80         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
81         to be vec<tree> instead of vec<tree> *, set vec_defs
82         to vNULL and call vec_defs.create (number_of_vects), adjust other
83         uses of vec_defs.
84         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
85         vectorizable_condition): Adjust vect_get_slp_defs callers.
87 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
89         * config/aarch64/aarch64.c
90         (aarch64_float_const_representable): Remove unused variable.
92 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
94         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
96 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
98         * config/aarch64/aarch64-builtins.c
99         (aarch64_init_simd_builtins): Make static.
101 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
103         * config/aarch64/aarch64.c
104         (aarch64_simd_make_constant): Make static.
106 2013-02-28  Martin Jambor  <mjambor@suse.cz>
108         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
109         with no initialization to the RHS of debug statements.
111 2013-02-28  Martin Jambor  <mjambor@suse.cz>
113         PR tree-optimization/56294
114         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
115         Adjust dumping.
116         (get_access_replacement): Do not call create_access_replacement.
117         Assert a replacement exists.
118         (get_repl_default_def_ssa_name): Create the replacement declaration
119         itself.
121 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
123         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
124         final_end_function.
126 2013-02-28  Marek Polacek  <polacek@redhat.com>
128         PR rtl-optimization/56466
129         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
130         if we're changing a loop.
131         (peel_loops_completely): Likewise.
133 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
135         PR c++/55813
136         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
138 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
140         PR target/56445
141         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
142         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
143         INTX_FTYPE_FX, FX_FTYPE_INTX.
144         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
146 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
148         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
149         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
150         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
151         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
152         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
153         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
154         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
155         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
156         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
157         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
158         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
159         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
160         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
161         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
162         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
163         (avrxmega6): Increase max flash segments from 5 to 6.
164         * config/avr/t-multilib: Regenerate.
165         * config/avr/avr-tables.opt: Regenerate.
166         * doc/avr-mmcu.texi: Regenerate.
168 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
170         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
171         (avr_device_to_arch): Rename to avr_device_to_ld.
172         (avr_device_to_as): New prototype.
173         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
174         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
175         * config/avr/driver-avr.c (avr_device_to_as): New.
176         (avr_device_to_arch): Rename to avr_device_to_ld.
178 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
180         PR middle-end/56461
181         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
182         method on dr_chain and result_chain.
184         PR middle-end/56461
185         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
186         pointer_set_destroy on not_executed_last_iteration.
188         PR middle-end/56461
189         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs
190         vector.
192         PR middle-end/56461
193         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
194         FOR_EACH_DEFINED_FUNCTION when freeing state.
196         PR middle-end/56461
197         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
198         pool_free.
199         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
200         overwriting it.
202         PR middle-end/56461
203         * ipa-cp.c (decide_whether_version_node): Call vec_free on
204         known_aggs[i].items and release known_aggs vector.
206         PR middle-end/56461
207         * ipa-reference.c (propagate): Free node_info even for alias nodes.
209 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
211         * config/microblaze/microblaze.c (microblaze_emit_compare):
212         Use xor for EQ/NE comparisions.
213         * config/microblaze/microblaze.md (cstoresf4): Add constraints
214         (cbranchsf4): Adjust operator to comparison_operator.
216 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
218         PR middle-end/56461
219         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
220         vector.
221         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
222         vec_safe_push, always update *slot.
223         (redirect_edge_var_map_clear): Use vec_free.
224         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
225         (free_var_map_entry): Use vec_free.
226         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
227         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
229 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
231         PR middle-end/45472
232         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
233         when the may_trap_p bit of the exprs being merged differs.
234         Reorder tests for speculativeness in the logical and operator.
236 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
238         * incpath.c (add_standard_paths): Use reconcat instead of concat
239         where appropriate and avoid leaking memory.
241         * opts.h: Include obstack.h.
242         (opts_concat): New prototype.
243         (opts_obstack): New declaration.
244         * opts.c (opts_concat): New function.
245         (opts_obstack): New variable.
246         (init_options_struct): Call gcc_init_obstack on opts_obstack.
247         (finish_options): Use opts_concat instead of concat
248         and XOBNEWVEC instead of XNEWVEC.
249         * opts-common.c (generate_canonical_option, decode_cmdline_option,
250         generate_option): Likewise.
251         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
252         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
254         PR target/56455
255         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
256         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
258 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
260         PR middle-end/56461
261         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
263 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
265         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
266         (arm_block_move_unaligned_straight): Likewise.
267         (arm_adjust_block_mem): Likewise.
269 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
271         PR target/48901
272         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
273         temp, cond and label.
274         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
276         PR target/52500
277         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
278         * config/c6x/c6x.h (dbx_register_map): Update declaration.
280         PR target/52501
281         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
282         of prologue/epilogue functions.
284         PR target/52550
285         * config/tilegx/tilegx.c (tilegx_expand_prologue):
286         Remove unused variable cfa_offset.
287         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
289         PR target/54639
290         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
291         type promotion to unsigned.
293         PR target/54640
294         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
295         for HOST_WIDE_INT of 32 bit / same size as int.
296         (arm_block_move_unaligned_straight): Likewise.
297         (arm_adjust_block_mem): Likewise.
299         PR target/54662
300         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
301         ALL_CFLAGS.
303 2013-02-26  Marek Polacek  <polacek@redhat.com>
305         PR tree-optimization/56426
306         * tree-ssa-loop.c (tree_ssa_loop_init): Always call
307         scev_initialize.
309 2013-02-26  Richard Biener  <rguenther@suse.de>
311         PR target/56444
312         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
313         unused variable loops.
315 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
317         PR tree-optimization/56448
318         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
319         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
320         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
321         later operands of the references, or even first operand for
322         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
324         PR tree-optimization/56443
325         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
326         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
327         to type_for_mode langhook.
329 2013-02-25  Matt Turner  <mattst88@gmail.com>
331         * doc/invoke.texi: Document r4700.
333 2013-02-25  Richard Biener  <rguenther@suse.de>
335         PR tree-optimization/56175
336         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
337         split out from ...
338         (simplify_bitwise_binary): ... here.  Also guard the conversion
339         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
341 2013-02-25  Catherine Moore  <clm@codesourcery.com>
343         Revert:
344         2013-02-24  Catherine Moore  <clm@codesourcery.com>
345             Maciej W. Rozycki  <macro@codesourcery.com>
346             Tom de Vries  <tom@codesourcery.com>
347             Nathan Sidwell <nathan@codesourcery.com>
348             Iain Sandoe  <iain@codesourcery.com>
349             Nathan Froyd  <froydnj@codesourcery.com>
350             Chao-ying Fu <fu@mips.com>
351         * doc/extend.texi: (micromips, nomicromips, nocompression):
352         Document new function attributes. 
353         * doc/invoke.texi (minterlink-compressed, mmicromips,
354         m14k, m14ke, m14kec): Document new options.
355         (minterlink-mips16): Update documentation.
356         * doc/md.texi (ZC, ZD): Document new constraints.
357         * configure.ac (gcc_cv_as_micromips): Check if linker
358         supports the .set micromips directive.
359         * configure: Regenerate.
360         * config.in: Regenerate.
361         * config/mips/mips-tables.opt: Regenerate.
362         * config/mips/micromips.md: New file.
363         * constraints.md (ZC, AD): New constraints.
364         * config/mips/predicates.md (movep_src_register): New predicate.
365         (movep_src_operand): New predicate.
366         (non_volatile_mem_operand): New predicate.
367         * config/mips/mips.md (multimem): New type.
368         (length): Differentiate between 17-bit and 18-bit branch offsets.
369         (MOVEP1, MOVEP2): New mode iterator.
370         (mov_<load>l): Use ZC constraint.
371         (mov_<load>r): Likewise.
372         (mov_<store>l): Likewise.
373         (mov_<store>r): Likewise.
374         (*branch_equality<mode>_inverted): Add microMIPS support.
375         (*branch_equality<mode>): Likewise.
376         (*jump_absolute): Likewise.
377         (indirect_jump_<mode>): Likewise.
378         (tablejump_<mode>): Likewise.
379         (<optab>_internal): Likewise.
380         (sibcall_internal): Likewise.
381         (sibcall_value_internal): Likewise.
382         (prefetch): Use constraint ZD.
383         * config/mips/mips.opt (minterlink-compressed): New option.
384         (minterlink-mips16): Now an alias for minterlink-compressed.
385         (mmicromips): New option.
386         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
387         (compare_and_swap_12): Likewise.
388         (sync_add<mode>): Likewise.
389         (sync_<optab>_12): Likewise.
390         (sync_old_<optab>_12): Likewise.
391         (sync_new_<optab>_12): Likewise.
392         (sync_nand_12): Likewise.
393         (sync_old_nand_12): Likewise.
394         (sync_new_nand_12): Likewise.
395         (sync_sub<mode>): Likewise.
396         (sync_old_add<mode>): Likewise.
397         (sync_old_sub<mode>): Likewise.
398         (sync_new_add<mode>): Likewise.
399         (sync_new_sub<mode>): Likewise.
400         (sync_<optab><mode>): Likewise.
401         (sync_old_<optab><mode>): Likewise.
402         (sync_new_<optab><mode>): Likewise.
403         (sync_nand<mode>): Likewise.
404         (sync_old_nand<mode>): Likewise.
405         (sync_new_nand<mode>): Likewise.
406         (sync_lock_test_and_set<mode>): Likewise.
407         (test_and_set_12): Likewise.
408         (atomic_compare_and_swap<mode>): Likewise.
409         (atomic_exchange<mode>_llsc): Likewise.
410         (atomic_fetch_add<mode>_llsc): Likewise.
411         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
412         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
413         (umips_save_restore_pattern_p): Likewise.
414         (umips_load_store_pair_p): Likewise.
415         (umips_output_load_store_pair): Likewise.
416         (umips_movep_target_p): Likewise.
417         (umips_12bit_offset_address_p): Likewise.
418         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
419         (mips_base_mips16): Rename this...
420         (mips_base_compression_flags): ...to this. Update all uses.
421         (mips_attribute_table): Add micromips, nomicromips and nocompression.
422         (mips_mips16_decl_p): Delete.
423         (mips_nomips16_decl_p): Delete.
424         (mips_get_compress_on_flags): New function.
425         (mips_get_compress_off_flags): New function.
426         (mips_get_compress_mode): New function.
427         (mips_get_compress_on_name): New function.
428         (mips_get_compress_off_name): New function.
429         (mips_insert_attributes): Support multiple compression types.
430         (mips_merge_decl_attributes): Likewise.
431         (umips_12bit_offset_address_p): New function.
432         (mips_start_function_definition): Emit .set micromips directive.
433         (mips_call_may_need_jalx_p): New function.
434         (mips_function_ok_for_sibcall): Add microMIPS support.
435         (mips_print_operand_punctuation): Support short delay slots and
436         compact jumps.
437         (umips_swm_mask, umips_swm_encoding): New.
438         (umips_build_save_restore): New function.
439         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
440         (was_mips16_p): Remove.
441         (old_compression_mode): New.
442         (mips_set_compression_mode): New function.
443         (mips_set_current_function): Add microMIPS support.
444         (mips_option_override): Likewise.
445         (umips_save_restore_pattern_p): New function.
446         (umips_output_save_restore): New function.
447         (umips_load_store_pair_p_1): New function.
448         (umips_load_store_pair_p): New function.
449         (umips_output_load_store_pair_1): New function.
450         (umips_output_load_store_pair): New function.
451         (umips_movep_target_p) New function.
452         (mips_prepare_pch_save): Add microMIPS support.
453         * config/mips/mips.h (TARGET_COMPRESSION): New.
454         (TARGET_CPU_CPP_BUILTINS): Update macro
455         to use new compression flags and to support microMIPS.
456         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
457         (MIPS_ARCH_FLOAT_SPEC): Likewise.
458         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
459         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
460         (ASM_SPEC): Support mmicromips and mno-micromips.
461         (M16STORE_REG_P): New macro.
462         (MIPS_CALL): Support TARGET_MICROMIPS.
463         (MICROMIPS_J): New macro.
464         (mips_base_mips16): Rename this...
465         (mips_base_compression_flags): ...to this.
466         (UMIPS_12BIT_OFFSET_P): New macro.
467         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
468         (MULTILIB_DIRNAMES): Likewise.
470 2013-02-25  Tom de Vries  <tom@codesourcery.com>
472         PR rtl-optimization/56131
473         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
474         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
475         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
477 2013-02-25  Tobias Burnus  <burnus@net-b.de>
479         * doc/invoke.texi (-fsanitize=): Move from optimization
480         to debugging options.
482 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
484         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
486 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
487             Alexander Monakov  <amonakov@ispras.ru>
489         PR middle-end/56077
490         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
491         flush pending lists also on non-jumps.  Adjust comment.
493 2013-02-24  Catherine Moore  <clm@codesourcery.com>
494             Maciej W. Rozycki  <macro@codesourcery.com>
495             Tom de Vries  <tom@codesourcery.com>
496             Nathan Sidwell <nathan@codesourcery.com>
497             Iain Sandoe  <iain@codesourcery.com>
498             Nathan Froyd  <froydnj@codesourcery.com>
499             Chao-ying Fu <fu@mips.com>
501         * doc/extend.texi: (micromips, nomicromips, nocompression):
502         Document new function attributes. 
503         * doc/invoke.texi (minterlink-compressed, mmicromips,
504         m14k, m14ke, m14kec): Document new options.
505         (minterlink-mips16): Update documentation.
506         * doc/md.texi (ZC, ZD): Document new constraints.
507         * configure.ac (gcc_cv_as_micromips): Check if linker
508         supports the .set micromips directive.
509         * configure: Regenerate.
510         * config.in: Regenerate.
511         * config/mips/mips-tables.opt: Regenerate.
512         * config/mips/micromips.md: New file.
513         * constraints.md (ZC, AD): New constraints.
514         * config/mips/predicates.md (movep_src_register): New predicate.
515         (movep_src_operand): New predicate.
516         (non_volatile_mem_operand): New predicate.
517         * config/mips/mips.md (multimem): New type.
518         (length): Differentiate between 17-bit and 18-bit branch offsets.
519         (MOVEP1, MOVEP2): New mode iterator.
520         (mov_<load>l): Use ZC constraint.
521         (mov_<load>r): Likewise.
522         (mov_<store>l): Likewise.
523         (mov_<store>r): Likewise.
524         (*branch_equality<mode>_inverted): Add microMIPS support.
525         (*branch_equality<mode>): Likewise.
526         (*jump_absolute): Likewise.
527         (indirect_jump_<mode>): Likewise.
528         (tablejump_<mode>): Likewise.
529         (<optab>_internal): Likewise.
530         (sibcall_internal): Likewise.
531         (sibcall_value_internal): Likewise.
532         (prefetch): Use constraint ZD.
533         * config/mips/mips.opt (minterlink-compressed): New option.
534         (minterlink-mips16): Now an alias for minterlink-compressed.
535         (mmicromips): New option.
536         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
537         (compare_and_swap_12): Likewise.
538         (sync_add<mode>): Likewise.
539         (sync_<optab>_12): Likewise.
540         (sync_old_<optab>_12): Likewise.
541         (sync_new_<optab>_12): Likewise.
542         (sync_nand_12): Likewise.
543         (sync_old_nand_12): Likewise.
544         (sync_new_nand_12): Likewise.
545         (sync_sub<mode>): Likewise.
546         (sync_old_add<mode>): Likewise.
547         (sync_old_sub<mode>): Likewise.
548         (sync_new_add<mode>): Likewise.
549         (sync_new_sub<mode>): Likewise.
550         (sync_<optab><mode>): Likewise.
551         (sync_old_<optab><mode>): Likewise.
552         (sync_new_<optab><mode>): Likewise.
553         (sync_nand<mode>): Likewise.
554         (sync_old_nand<mode>): Likewise.
555         (sync_new_nand<mode>): Likewise.
556         (sync_lock_test_and_set<mode>): Likewise.
557         (test_and_set_12): Likewise.
558         (atomic_compare_and_swap<mode>): Likewise.
559         (atomic_exchange<mode>_llsc): Likewise.
560         (atomic_fetch_add<mode>_llsc): Likewise.
561         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
562         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
563         (umips_save_restore_pattern_p): Likewise.
564         (umips_load_store_pair_p): Likewise.
565         (umips_output_load_store_pair): Likewise.
566         (umips_movep_target_p): Likewise.
567         (umips_12bit_offset_address_p): Likewise.
568         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
569         (mips_base_mips16): Rename this...
570         (mips_base_compression_flags): ...to this. Update all uses.
571         (mips_attribute_table): Add micromips, nomicromips and nocompression.
572         (mips_mips16_decl_p): Delete.
573         (mips_nomips16_decl_p): Delete.
574         (mips_get_compress_on_flags): New function.
575         (mips_get_compress_off_flags): New function.
576         (mips_get_compress_mode): New function.
577         (mips_get_compress_on_name): New function.
578         (mips_get_compress_off_name): New function.
579         (mips_insert_attributes): Support multiple compression types.
580         (mips_merge_decl_attributes): Likewise.
581         (umips_12bit_offset_address_p): New function.
582         (mips_start_function_definition): Emit .set micromips directive.
583         (mips_call_may_need_jalx_p): New function.
584         (mips_function_ok_for_sibcall): Add microMIPS support.
585         (mips_print_operand_punctuation): Support short delay slots and
586         compact jumps.
587         (umips_swm_mask, umips_swm_encoding): New.
588         (umips_build_save_restore): New function.
589         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
590         (was_mips16_p): Remove.
591         (old_compression_mode): New.
592         (mips_set_compression_mode): New function.
593         (mips_set_current_function): Add microMIPS support.
594         (mips_option_override): Likewise.
595         (umips_save_restore_pattern_p): New function.
596         (umips_output_save_restore): New function.
597         (umips_load_store_pair_p_1): New function.
598         (umips_load_store_pair_p): New function.
599         (umips_output_load_store_pair_1): New function.
600         (umips_output_load_store_pair): New function.
601         (umips_movep_target_p) New function.
602         (mips_prepare_pch_save): Add microMIPS support.
603         * config/mips/mips.h (TARGET_COMPRESSION): New.
604         (TARGET_CPU_CPP_BUILTINS): Update macro
605         to use new compression flags and to support microMIPS.
606         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
607         (MIPS_ARCH_FLOAT_SPEC): Likewise.
608         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
609         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
610         (ASM_SPEC): Support mmicromips and mno-micromips.
611         (M16STORE_REG_P): New macro.
612         (MIPS_CALL): Support TARGET_MICROMIPS.
613         (MICROMIPS_J): New macro.
614         (mips_base_mips16): Rename this...
615         (mips_base_compression_flags): ...to this.
616         (UMIPS_12BIT_OFFSET_P): New macro.
617         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
618         (MULTILIB_DIRNAMES): Likewise.
620 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
622         PR target/52555
623         * target-globals.c (save_target_globals): For init_reg_sets and
624         target_reinit remporarily set this_fn_optabs to this_target_optabs.
626 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
628         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
629         * config/aarch64/t-aarch64
630         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
632 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
634         PR inline-asm/56148
635         * lra-constraints.c (process_alt_operands): Reload operand
636         conflicting with earlier clobber only if no more other conflicting
637         operands.
639 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
641         PR sanitizer/56393
642         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
643         if not linking a shared library.
645 2013-02-22  Seth LaForge  <sethml@google.com>
647         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
649 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
651         * config/arm/arm.md (split for extendsidi): Update condition.
652         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
653         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
654         (qhs_zextenddi_cstr): Likewise.
656 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
658         PR middle-end/56420
659         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
660         avoid signed wrapping.
661         (expand_mult): Handle properly multiplication by
662         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
663         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
664         in the compiler if coeff is HOST_WIDE_INT_MIN.
665         (expand_divmod): Don't make ext_op1 static, change it's type to
666         uhwi.  Avoid undefined behavior in -INTVAL (op1).
668         PR rtl-optimization/50339
669         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
670         field.
671         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
672         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
673         into splitting_ashiftrt field.
674         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
675         ASHIFTRT.
676         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
677         choices.
679 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
681         PR middle-end/56108
682         * trans-mem.c (execute_tm_mark): Do not expand transactions that
683         are sure to go irrevocable.
685 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
687         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
688         scalars are valid operands.
690 2013-02-21  Martin Jambor  <mjambor@suse.cz>
692         PR tree-optimization/56310
693         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
694         only matching indices and non-negative final offsets.
695         (intersect_aggregates_with_edge): Pass src_idx to
696         agg_replacements_to_vector.  Pass src_idx insstead of index to
697         intersect_with_agg_replacements.
699 2013-02-21  Martin Jambor  <mjambor@suse.cz>
701         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
702         instead of hard-wired defaults.
704 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
706         * doc/invoke.texi (MIPS Options): Update documentation of the
707         floating-point multiply-accumulate instruction restrictions.
709 2013-02-21  Kostya Serebryany  <kcc@google.com>
711         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
712         asan_shadow_offset on x86_64 linux.
714 2013-02-21  Richard Biener  <rguenther@suse.de>
716         PR tree-optimization/56415
717         Revert
718         2013-02-11  Richard Biener  <rguenther@suse.de>
720         PR tree-optimization/56273
721         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
722         first VRP run.
724 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
726         PR bootstrap/56258
727         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
728         instead of @itemx.
730         PR inline-asm/56405
731         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
732         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
734 2013-02-20  Jan Hubicka  <jh@suse.cz>
736         PR tree-optimization/56265
737         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when target is
738         referenced for firs ttime.
740 2013-02-20  Richard Biener  <rguenther@suse.de>
742         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
743         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
744         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
745         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
746         not return anything.
747         (rename_ssa_copies): Do not remove unused locals.
748         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
749         * tree-ssanames.c (pass_release_ssa_names): Remove unused
750         locals first.
751         * passes.c (execute_function_todo): Do not schedule unused locals
752         removal if cleanup_tree_cfg did something.
753         * tree-ssa-live.c (remove_unused_locals): Dump statistics
754         about the number of removed locals.
756 2013-02-20  Richard Biener  <rguenther@suse.de>
758         PR tree-optimization/56398
759         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
760         SSA default defs.
762 2013-02-20  Martin Jambor  <mjambor@suse.cz>
764         PR tree-optimization/55334
765         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
766         restricted pointers to arrays.
768 2013-02-20  Richard Biener  <rguenther@suse.de>
769         Jakub Jelinek  <jakub@redhat.com>
771         PR tree-optimization/56396
772         * tree-ssa-ccp.c (n_const_val): New static variable.
773         (get_value): Return NULL for SSA names we don't have a lattice
774         entry for.
775         (ccp_initialize): Initialize n_const_val.
776         * tree-ssa-copy.c (n_copy_of): New static variable.
777         (init_copy_prop): Initialize n_copy_of.
778         (get_value): Return NULL_TREE for SSA names we don't have a
779         lattice entry for.
781 2013-02-20  Martin Jambor  <mjambor@suse.cz>
783         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
785 2013-02-20  Richard Biener  <rguenther@suse.de>
787         * genpreds.c (write_lookup_constraint): Do not compare first
788         letter of the constraint again.
790 2013-02-20  Richard Biener  <rguenther@suse.de>
792         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
793         and ceil_log2.
794         (get_use_iv_cost): Terminate hashtable walk when coming across
795         an empty entry.
797 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
799         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
800         reassociation for avx2 targets.
802 2012-02-19  Edgar E. Iglesias <edgar.iglesias@gmail.com>
804         * config/microblaze/microblaze.c: microblaze_has_clz = 0
805         Add version check for v8.10.a to enable microblaze_has_clz
806         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined 
807         version and TARGET_PATTERN_COMPARE check
808         * config/microblaze/microblaze.md: New clzsi2 instruction
810 2012-02-19  Edgar E. Iglesias <edgar.iglesias@gmail.com>
812         *  config/microblaze/microblaze.md (call_value_intern): Check symbol is 
813         function before branching.
815 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
817         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
818         DUMP_INSN_RTX_UID.
819         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
821 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
823         PR middle-end/55889
825         * sel-sched.c: Include ira.h.
826         (implicit_clobber_conflict_p): New function.
827         (moveup_expr): Use it.
828         * Makefile.in (sel-sched.o): Depend on ira.h. 
830 2013-02-19  Richard Biener  <rguenther@suse.de>
832         PR tree-optimization/56384
833         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
834         (vn_hash_type): Split out from ...
835         (vn_hash_constant_with_type): ... here.
836         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
837         (vn_phi_eq): Compare types from vn_phi_s structure.
838         (vn_phi_lookup): Populate vn_phi_s type.
839         (vn_phi_insert): Likewise.
841 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
843         PR tree-optimization/56350
844         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
845         if haven't found reduction or nested cycle operand, rather than
846         asserting we must find it.
848         PR tree-optimization/56381
849         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
850         to fold_build3.
852 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
853             Jakub Jelinek  <jakub@redhat.com>
855         PR target/52555
856         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
857         (swap_optab_enable): Same.
858         (init_all_optabs): Use argument instead of global.
859         * tree.h (struct tree_optimization_option): New field
860         target_optabs.
861         * expr.h (init_all_optabs): Add argument to prototype.
862         (TREE_OPTIMIZATION_OPTABS): New.
863         (save_optabs_if_changed): Protoize.
864         * optabs.h: Declare this_fn_optabs.
865         * optabs.c (save_optabs_if_changed): New.
866         Declare this_fn_optabs.
867         (init_optabs): Add argument to init_all_optabs() call.
868         * function.c (invoke_set_current_function_hook): Handle per
869         function optabs.
870         * function.h (struct function): New field optabs.
871         * config/mips/mips.c (mips_set_mips16_mode): Handle when
872         optimization_current_node has changed.
873         * target-globals.h (save_target_globals_default_opts): Protoize.
874         * target-globals.c (save_target_globals_default_opts): New.
876 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
878         PR target/56347
879         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
880         registers %fr12 and %fr12R as call used.
882         PR target/56214
883         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
884         and HImode, require all displacements to be an integer multiple of their
885         mode size.
886         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
887         only allow QImode and HImode when reload is in progress and strict is
888         true.  Likewise for symbolic addresses.  Use base14_operand to check
889         displacements in REG+BASE addresses.
891 2013-02-18  Richard Biener  <rguenther@suse.de>
893         PR tree-optimization/56366
894         * tree-vect-loop.c (get_initial_def_for_induction): Properly
895         handle sign-conversion of outer-loop initial induction value.
897 2013-02-18  Richard Biener  <rguenther@suse.de>
899         PR middle-end/56349
900         * cfghooks.c (merge_blocks): If we merge a latch into another
901         block adjust references to it.
902         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
903         (verify_loop_structure): Verify that a recorded latch is in fact
904         a latch.
906 2013-02-18  Richard Biener  <rguenther@suse.de>
908         PR tree-optimization/56321
909         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
910         order SSA name release and virtual operand unlinking.
912 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
914         * config/microblaze/microblaze.md (save_stack_block): Define.
915         (restore_stack_block): Likewise.
917 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
919         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
920         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
921         * config/microblaze/microblaze.c (microblaze_option_override):
922         Bail out early for PIC modes when target does not support PIC.
924 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
926         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template): 
927         Replace with a microblaze version.
928         (microblaze_trampoline_init): Adapt for microblaze.
929         * gcc/config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for 
930         microblaze.
932 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
933             Dodji Seketeli  <dodji@redhat.com>
935         PR asan/56330
936         * asan.c (get_mem_refs_of_builtin_call): White space and style
937         cleanup.
938         (instrument_mem_region_access): Do not forget to always put
939         instrumentation of the of 'base' and 'base + len' in a "if (len !=
940         0) statement, even for cases where either 'base' or 'base + len'
941         are not instrumented -- because they have been previously
942         instrumented.  Simplify the logic by putting all the statements
943         instrument 'base + len' inside a sequence, and then insert that
944         sequence right before the current insertion point.  Then, to
945         instrument 'base + len', just get an iterator on that statement.
946         And do not forget to update the pointer to iterator the function
947         received as argument.
949 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
951         PR rtl-optimization/56348
952         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
954 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
956         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
957         (clean_graph_dump_file): Pass base to start_graph_dump.
959 2013-02-14  Richard Henderson  <rth@redhat.com>
961         PR target/55941
962         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
964 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
966         * collect2-aix.h: Define F_LOADONLY.
968 2013-02-14  Richard Biener  <rguenther@suse.de>
970         PR lto/50494
971         * varasm.c (output_constant_def_1): Get the decl representing
972         the constant as argument.
973         (output_constant_def): Wrap output_constant_def_1.
974         (make_decl_rtl): Use output_constant_def_1 with the decl
975         representing the constant.
976         (build_constant_desc): Optionally re-use a decl already
977         representing the constant.
978         (tree_output_constant_def): Adjust.
980 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
982         Fix an asan crash
983         * asan.c (instrument_builtin_call):  Really put the length of the
984         second source argument into src1_len.
986 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
988         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
989         argument.  If it is false, don't create edge from then_bb to
990         fallthru_bb.
991         (insert_if_then_before_iter): Pass true to it.
992         (build_check_stmt): Pass false to it.
993         (transform_statements): Flush hash table only on extended basic
994         block boundaries, rather than at the beginning of every bb.
995         Don't flush hash table on nonfreeing_call_p calls.
996         * tree-flow.h (nonfreeing_call_p): New prototype.
997         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
999 2013-02-13  David S. Miller  <davem@davemloft.net>
1001         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
1003 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
1005         PR target/56184
1006         * ira.c (max_regno_before_ira): Move from ...
1007         (ira): ... here.
1008         (fix_reg_equiv_init): Use max_regno_before_ira instead of
1009         vec_safe_length.
1011 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
1013         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
1015 2013-02-13  Richard Biener  <rguenther@suse.de>
1017         PR lto/56295
1018         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
1019         globals in MEM_REFs.
1021 2013-02-13  Richard Biener  <rguenther@suse.de>
1023         * loop-init.c (loop_optimizer_init): Clear loop state when
1024         re-initializing preserved loops.
1025         * loop-unswitch.c (unswitch_single_loop): Return whether
1026         we unswitched the loop.  Do not verify loop state here.
1027         (unswitch_loops): When we unswitched a loop discover new
1028         loops.
1030 2013-02-13  Kostya Serebryany  <kcc@google.com>
1032         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
1033         linux.
1034         * sanitizer.def: Rename __asan_init to __asan_init_v1.
1036 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
1038         Avoid instrumenting duplicated memory access in the same basic block
1039         * Makefile.in (asan.o): Add new dependency on hash-table.h
1040         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
1041         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
1042         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
1043         (free_mem_ref_resources, has_mem_ref_been_instrumented)
1044         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
1045         (get_mem_ref_of_assignment): New functions.
1046         (get_mem_refs_of_builtin_call): Extract from
1047         instrument_builtin_call and tweak a little bit to make it fit with
1048         the new signature.
1049         (instrument_builtin_call): Use the new
1050         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
1051         of is_gimple_builtin_call.
1052         (instrument_derefs, instrument_mem_region_access): Insert the
1053         instrumented memory reference into the hash table.
1054         (maybe_instrument_assignment): Renamed instrument_assignment into
1055         this, and change it to advance the iterator when instrumentation
1056         actually happened and return true in that case.  This makes it
1057         homogeneous with maybe_instrument_assignment, and thus give a
1058         chance to callers to be more 'regular'.
1059         (transform_statements): Clear the memory reference hash table
1060         whenever we enter a new BB, when we cross a function call, or when
1061         we are done transforming statements.  Use
1062         maybe_instrument_assignment instead of instrumentation.  No more
1063         need to special case maybe_instrument_assignment and advance the
1064         iterator after calling it; it's now handled just like
1065         maybe_instrument_call.  Update comment.
1067 2013-02-13  Richard Biener  <rguenther@suse.de>
1069         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1070         Fix loop discovery code.
1072 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
1074         PR inline-asm/56148
1075         * lra-constraints.c (process_alt_operands): Match early clobber
1076         operand with itself.  Check conflicts with earlyclobber only if
1077         the operand is not reloaded.  Prefer to reload conflicting operand
1078         if earlyclobber and matching operands are the same.
1080 2013-02-12  Richard Biener  <rguenther@suse.de>
1082         PR lto/56297
1083         * lto-streamer-out.c (write_symbol): Do not output symbols
1084         for hard register variables.
1086 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
1088         PR target/54222
1089         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
1090         (umulsidi3_insn, mulsidi3_insn): New insns.
1092 2013-02-12  Christophe Lyon <christophe.lyon@linaro.org>
1094         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
1095         (struct tune_params): Add vec_costs field.
1096         * config/arm/arm.c (arm_builtin_vectorization_cost)
1097         (arm_add_stmt_cost): New functions.
1098         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
1099         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
1100         (arm_default_vec_cost): New struct of type cpu_vec_costs.
1101         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
1102         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
1103         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
1104         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
1106 2013-02-12  Richard Biener  <rguenther@suse.de>
1108         PR lto/56295
1109         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
1110         decls again if possible.
1112 2013-02-12  Richard Biener  <rguenther@suse.de>
1114         PR middle-end/56288
1115         * tree-ssa.c (verify_ssa_name): Fix check, move
1116         SSA_NAME_IN_FREE_LIST check up.
1118 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
1119             Steven Bosscher   <steven@gcc.gnu.org>
1121         PR rtl-optimization/56151
1122         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
1123         equal to op0 or op1, and last_insn pattern is CODE operation
1124         with MEM dest and one of the operands matches that MEM.
1126 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
1128         * doc/extend.texi: Document Function Multiversioning and "default"
1129         parameter string to target attribute.
1130         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
1131         target attribute parameter is "default".
1132         (ix86_compare_version_priority): Remove checks for target attribute.
1133         (ix86_mangle_function_version_assembler_name): Change error to sorry.
1134         Remove check for target attribute equal to NULL. Add assert.
1135         (ix86_generate_version_dispatcher_body): Change error to sorry.
1137 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
1138             Jack Howarth  <howarth@bromo.med.uc.edu>
1139             Patrick Marlier  <patrick.marlier@gmail.com>
1141         PR libitm/55693
1142         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
1143         define ENDFILE_SPEC as TM_DESTRUCTOR.
1144         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
1146 2013-02-11  Alexander Potapenko <glider@google.com>
1147             Jack Howarth  <howarth@bromo.med.uc.edu>
1148             Jakub Jelinek  <jakub@redhat.com>
1150         PR sanitizer/55617
1151         * config/darwin.c (cdtor_record): Rename ctor_record.
1152         (sort_cdtor_records): Rename sort_ctor_records.
1153         (finalize_dtors): New routine to sort destructors by
1154         priority before use in assemble_integer.
1155         (machopic_asm_out_destructor): Use finalize_dtors if needed.
1157 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
1159         PR rtl-optimization/56275
1160         * simplify-rtx.c (avoid_constant_pool_reference): Check that
1161         offset is non-negative and less than cmode size before
1162         calling simplify_subreg.
1164 2013-02-11  Richard Biener  <rguenther@suse.de>
1166         PR tree-optimization/56264
1167         * cfgloop.h (fix_loop_structure): Adjust prototype.
1168         * loop-init.c (fix_loop_structure): Return the number of
1169         newly discovered loops.
1170         * tree-cfgcleanup.c (repair_loop_structures): When new loops
1171         are discovered, do a full loop-closed SSA rewrite.
1173 2013-02-11  Richard Biener  <rguenther@suse.de>
1175         PR tree-optimization/56273
1176         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
1177         first VRP run.
1178         (check_array_ref): Fix missing newline in dumps.
1179         (search_for_addr_array): Likewise.
1181 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
1183         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
1185 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
1187         PR target/56256
1188         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
1190 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
1192         PR rtl-optimization/56246
1193         * lra-constraints.c (simplify_operand_subreg): Try to reuse
1194         reload pseudo.
1195         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
1196         constraints are satisfied.
1198 2013-02-08  Jeff Law  <law@redhat.com>
1200         PR debug/53948
1201         * emit-rtl.c (reg_is_parm_p): New function.
1202         * regs.h (reg_is_parm_p): New prototype.
1203         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
1204         callee-clobbered registers.
1206 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1208         PR target/56043
1209         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
1210         If there is no implicit builtin declaration, just return NULL.
1212 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1214         * config/i386/sse.md (FMAMODEM): New mode iterator.
1215         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
1216         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
1218 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1220         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
1221         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
1222         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
1224 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1226         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
1227         (microblaze*-*-elf): Likewise.
1228         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
1229         LINK_SPEC.
1230         * config/microblaze/microblaze-c.c: Add builtin defines for
1231         _LITTLE_ENDIAN and _BIG_ENDIAN.
1232         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
1233         add to TARGET_DEFAULT flags.
1234         Expand ASM_SPEC and LINK_SPEC.
1235         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
1236         * config/microblaze/microblaze.md: Update extendsidi2 and
1237         movdi_internal instructions to use low-order / high-order reg
1238         print_operands.
1239         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
1240         options and inversemask / mask of LITTLE_ENDIAN.
1241         * config/microblaze/t-microblaze: Expand multilib options to
1242         include mlittle-endian (le) and update exceptions patterns.
1244 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
1246         PR rtl-optimization/56195
1247         * lra-constraints.c (get_reload_reg): Don't reuse regs
1248         if they have smaller mode than requested, if they have
1249         wider mode than requested, try to return a SUBREG.
1251         PR tree-optimization/56250
1252         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
1253         if type is unsigned and code isn't MULT_EXPR.
1255 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
1257         PR tree-optimization/56064
1258         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
1259         bits according to mode.
1260         * fixed-value.h (fixed_from_double_int)
1261         (const_fixed_from_double_int): Adjust comments.
1263 2013-02-08  Richard Biener  <rguenther@suse.de>
1265         PR lto/56231
1266         * lto-streamer.h (struct data_in): Remove current_file, current_line
1267         and current_col members.
1268         * lto-streamer-out.c (lto_output_location): Stream changed bits
1269         en-block for efficiency.
1270         * lto-streamer-in.c (clear_line_info): Remove.
1271         (lto_input_location): Cache current file, line and column
1272         globally via local statics.  Read changed bits en-block.
1273         (input_function): Do not call clear_line_info.
1274         (lto_read_body): Likewise.
1275         (lto_input_toplevel_asms): Likewise.
1277 2013-02-08  Michael Matz  <matz@suse.de>
1279         PR tree-optimization/52448
1280         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
1281         (nt_call_phase): New static.
1282         (add_or_mark_expr): Only mark accesses with newer phase than any
1283         call seen.
1284         (nonfreeing_call_p): New.
1285         (nt_init_block): Update nt_call_phase, mark blocks as visited.
1286         (nt_fini_block): Keep blocks marked as visited.
1287         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
1289 2013-02-08  Richard Biener  <rguenther@suse.de>
1291         * ira.c (ira): Free broken dominator information.
1293 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
1295         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
1297 2013-02-08  Marek Polacek  <polacek@redhat.com>
1299         * cfgloop.c (verify_loop_structure): Add more checking of headers.
1301 2013-02-08  Richard Biener  <rguenther@suse.de>
1303         PR middle-end/56181
1304         * cfgloop.h (flow_loops_find): Adjust.
1305         (bb_loop_header_p): Declare.
1306         * cfgloop.c (bb_loop_header_p): New function split out from ...
1307         (flow_loops_find): ... here.  Adjust function signature,
1308         support incremental loop structure update.
1309         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
1310         * cfgloopmanip.c (fix_loop_structure): Move ...
1311         * loop-init.c (fix_loop_structure): ... here.
1312         (apply_loop_flags): Split out from ...
1313         (loop_optimizer_init): ... here.
1314         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
1315         in incremental mode, only remove dead loops here.
1317 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
1319         PR target/54222
1320         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
1321         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
1322         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
1323         (*round<mode>3.libgcc): New insns for fixed-modes.
1324         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
1325         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
1326         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
1327         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
1328         implementations.  Define to __builtin_avr_absFX,
1329         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
1330         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
1331         __builtin_avr_countlsFX, respectively.
1332         * config/avr/avr-c.c (target.h): Include it.
1333         (enum avr_builtin_id): New enum.
1334         (avr_resolve_overloaded_builtin): New static function.
1335         (avr_register_target_pragmas): Use it to set
1336         targetm.resolve_overloaded_builtin.
1337         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
1338         tree nodes used by DEF_BUILTIN.
1339         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
1340         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
1341         <AVR_BUILTIN_xxBITS>: Same.
1343 2013-02-08  Richard Biener  <rguenther@suse.de>
1345         * cfgloop.c (verify_loop_structure): Properly handle
1346         a loop exiting to another loop header.
1347         * ira-int.h (ira_loops): Remove.
1348         * ira.c (ira_loops): Remove.
1349         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
1350         (do_reload): Use loop_optimizer_finalize.
1351         * ira-build.c (create_loop_tree_nodes): Use get_loops and
1352         number_of_loops to access the loop tree.
1353         (more_one_region_p): Likewise.
1354         (finish_loop_tree_nodes): Likewise.
1355         (rebuild_regno_allocno_maps): Likewise.
1356         (mark_loops_for_removal): Likewise.
1357         (mark_all_loops_for_removal): Likewise.
1358         (remove_unnecessary_regions): Likewise.
1359         (ira_build): Likewise.
1360         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
1362 2013-02-08  Richard Biener  <rguenther@suse.de>
1364         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
1365         * ipa-pure-const.c (analyze_function): Avoid calling
1366         mark_irreducible_loops twice.
1367         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
1369 2013-02-07  David S. Miller  <davem@davemloft.net>
1371         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
1372         on 'reg'.
1373         * var-tracking.c (vt_add_function_parameter): Test the presence of
1374         HAVE_window_save properly and do not remap argument registers when
1375         we have a leaf function.
1377 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
1379         PR bootstrap/56227
1380         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
1381         instead of "ll".
1382         * config/i386/i386.c (ix86_print_operand): Ditto.
1384 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
1386         * lra-constraints.c (process_alt_operands): Fix recently added comment.
1388 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
1390         PR rtl-optimization/56225
1391         * lra-constraints.c (process_alt_operands): Check that reload hard
1392         reg can hold value for strict_low_part.
1394 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
1396         PR debug/56154
1397         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
1398         dwarf2out_end_function.
1399         (in_first_function_p, maybe_at_text_label_p,
1400         first_loclabel_num_not_at_text_label): New variables.
1401         (dwarf2out_var_location): In the first function find out
1402         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
1403         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
1404         functions.
1406 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
1408         PR rtl-optimization/56178
1409         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
1410         SUBREG of a register.  Tidy up related block of code.
1411         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
1412         note if the source is a register or a SUBREG of a register.
1414 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
1416         PR target/56228
1417         * config/rs6000/rs6000.md (ptrm): New mode attr.
1418         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
1419         call_value_indirect_aix<pttrsize>,
1420         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
1421         m in constraints.
1423 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1425         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
1426         if -bnortl. Convert to strcmp and strncmp.
1428 2013-02-07  Alan Modra  <amodra@gmail.com>
1430         PR target/54009
1431         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
1432         addresses won't wrap when offsetting.
1433         (rs6000_secondary_reload): Provide secondary reloads needed for
1434         wrapping LO_SUM addresses.
1436 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
1438         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
1439         MACH, just __MACH__.
1441 2013-02-06  Richard Biener  <rguenther@suse.de>
1443         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
1444         instead of calling fix_loop_structure.
1446 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1448         PR middle-end/56217
1449         * omp-low.c (use_pointer_for_field): Return false if
1450         lower_send_shared_vars doesn't generate any copy-out code.
1452 2013-02-06  Tom de Vries  <tom@codesourcery.com>
1454         PR rtl-optimization/56131
1455         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
1456         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
1457         of the label is NULL.  Add comment.
1459 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
1461         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
1463         PR sanitizer/55374
1464         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
1465         (STATIC_LIBTSAN_LIBS): Likewise.
1466         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
1467         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
1468         is defined, don't add anything else beyond that.
1469         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
1470         (LINK_COMMAND_SPEC): Use them.
1472         PR tree-optimization/56205
1473         * tree-stdarg.c (check_all_va_list_escapes): Return true if
1474         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
1475         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
1477 2013-02-05  Richard Biener  <rguenther@suse.de>
1479         PR tree-optimization/53342
1480         PR tree-optimization/53185
1481         * tree-vectorizer.h (vect_check_strided_load): Remove.
1482         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
1483         not disallow peeling for vectorized strided loads.
1484         (vect_check_strided_load): Make static and simplify.
1485         (vect_analyze_data_refs): Adjust.
1486         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
1487         correctly when vectorizing strided loads.
1489 2013-02-05  Richard Biener  <rguenther@suse.de>
1491         * doc/install.texi: Refer to ISL, not PPL.
1493 2013-02-05  Jan Hubicka  <jh@suse.cz>
1495         PR tree-optimization/55789
1496         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
1498 2013-02-05  Jan Hubicka  <jh@suse.cz>
1500         PR tree-optimization/55789
1501         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
1502         the dead call anyway.
1504 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
1506         PR sanitizer/55374
1507         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
1509 2013-02-04  Alexander Potapenko  <glider@google.com>
1510             Jack Howarth  <howarth@bromo.med.uc.edu>
1511             Jakub Jelinek  <jakub@redhat.com>
1513         PR sanitizer/55617
1514         * config/darwin.c (sort_ctor_records): Stabilized qsort
1515         on constructor priority by using original position.
1516         (finalize_ctors): New routine to sort constructors by
1517         priority before use in assemble_integer.
1518         (machopic_asm_out_constructor): Use finalize_ctors if needed.
1520 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
1522         PR libstdc++/54314
1523         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
1524         about visibility on artificial decls.
1525         * config/sol2.c (solaris_assemble_visibility): Likewise.
1527 2013-02-04  Kai Tietz  <ktietz@redhat.com>
1529         PR target/56186
1530         * config/i386/i386.c (function_value_ms_64): Add additional valtype
1531         argument and improve checking of return-argument types for 16-byte
1532         modes.
1533         (ix86_function_value_1): Add additional valtype argument on call
1534         of function_value_64.
1535         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
1536         handling infunction_value_64 function.
1538 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
1540         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
1542 2013-02-04  Richard Biener  <rguenther@suse.de>
1544         PR tree-optimization/56188
1545         * tree-ssa-structalias.c (label_visit): Consider case with
1546         initially non-empty points-to set.
1547         (perform_var_substitution): Dump node mapping and clean up.
1549 2013-02-04  Richard Guenther  <rguenther@suse.de>
1551         PR lto/56168
1552         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
1553         node prevail as last resort.
1554         (lto_symtab_merge_decls): Remove guard on LTRANS here.
1555         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
1557 2013-02-04  Richard Biener  <rguenther@suse.de>
1559         PR tree-optimization/56113
1560         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
1561         Merge into ...
1562         (equiv_class_lookup_or_add): ... this.
1563         (label_visit): Adjust and fix error in previous patch.
1564         (perform_var_substitution): Adjust.
1566 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
1568         * config/sh/divtab.c: Fix formatting and comments throughout the file.
1569         * config/sh/sh4-300.md: Likewise.
1570         * config/sh/sh4a.md: Likewise.
1571         * config/sh/constraints.md: Likewise.
1572         * config/sh/sh.md: Likewise.
1573         * config/sh/netbsd-elf.h: Likewise.
1574         * config/sh/predicates.md: Likewise.
1575         * config/sh/sh-protos.h: Likewise.
1576         * config/sh/ushmedia.h: Likewise.
1577         * config/sh/linux.h: Likewise.
1578         * config/sh/sh.c: Likewise.
1579         * config/sh/superh.h: Likewise.
1580         * config/sh/elf.h: Likewise.
1581         * config/sh/sh4.md: Likewise.
1582         * config/sh/sh.h: Likewise.
1584 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1586         * config/pa/constraints.md: Adjust unused letters.  Change "T"
1587         constraint to match_test floating_point_store_memory_operand().
1588         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
1589         (base14_operand): New.
1590         (floating_point_store_memory_operand): New.
1591         (integer_store_memory_operand): Revise to use base14_operand and
1592         reg_plus_base_memory_operand.
1593         (move_dest_operand): Allow symbolic_memory_operands.
1594         (symbolic_memory_operand): Check for LO_SOM.
1595         (symbolic_operand): Change default case to break.
1596         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
1597         CONST_DOUBLE values to be reloaded by putting them into memory when
1598         the destination is a floating point register.
1599         (movdf): Remove code to handle CONST_DOUBLE.
1600         (movsf): Likewise.
1601         (reload_indf_r1): New.
1602         (reload_insf_r1): New.
1603         Consistently use "Q" and "T" constraints with integer and floating
1604         point move instructions, respectively.
1605         (movdi): Remove FAIL.
1606         Change predicate for source operand unamed DImode move from
1607         general_operand to move_src_operand.
1608         (umulsidi3): Change predicate for destination operand to
1609         register_operand.
1610         Likewise for similar unamed patterns.
1611         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
1612         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
1613         (hppa_legitimize_address): Simplify mask calculation.
1614         (pa_emit_move_sequence): Revised handling of secondary reloads from
1615         REG+D addresses for floating point loads and stores.  Directly handle
1616         loading CONST0_RTX (mode) to a floating point register.
1617         (pa_secondary_reload): Handle reloading DF and SFmode constant values
1618         to floating point registers.  Don't restrict secondary reloads to
1619         floating point registers to integer modes.  Revise some comments and
1620         cleanup some code.
1621         (TARGET_LEGITIMATE_ADDRESS_P): Define.
1622         (pa_legitimate_address_p): New.
1623         (pa_legitimize_reload_address): New.
1624         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
1625         (STRICT_REG_OK_FOR_BASE_P): New.
1626         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
1627         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
1629 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
1630             Andrew Dixie  <andrewd@gentrack.com>
1632         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
1633         flag set.
1635 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
1637         * expmed.c (extract_bit_field_1): Pass the full width of the
1638         structure to get_best_reg_extraction_insn.
1640 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
1642         PR target/54601
1643         * configure.ac (use_cxa_atexit): Add AIX.
1644         * configure: Regenerate.
1646         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
1648 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
1650         PR debug/54793
1651         * final.c (need_profile_function): New variable.
1652         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
1653         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
1654         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
1655         notes, targetm.asm_out.function_prologue doesn't emit anything,
1656         HAVE_prologue and profiler should be emitted before prologue,
1657         set need_profile_function instead of emitting it.
1658         (final_scan_insn): If need_profile_function, emit
1659         profile_function on the first NOTE_INSN_BASIC_BLOCK or
1660         NOTE_INSN_FUNCTION_BEG note.
1662 2013-02-01  Richard Henderson  <rth@redhat.com>
1664         * config/rs6000/rs6000.md (smulditi3): New.
1665         (umulditi3): New.
1667         * config/alpha/alpha.md (umulditi3): New.
1669 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
1671         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
1672         (ASM_OUTPUT_ALIGNED_LOCAL): New.
1674 2013-02-01  Richard Biener  <rguenther@suse.de>
1676         PR tree-optimization/56113
1677         * tree-ssa-structalias.c (label_visit): Reduce work for
1678         single-predecessor nodes.
1680 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
1682         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
1683         range isn't testing for zero.
1685 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
1687         PR middle-end/56113
1688         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
1690 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
1691             Nick Clifton  <nickc@redhat.com>
1693         * config/v850/constraints.md (Q): Define as a memory constraint.
1694         * config/v850/predicates.md (label_ref_operand): New predicate.
1695         (e3v5_shift_operand): New predicate.
1696         (ior_operator): New predicate.
1697         * config/v850/t-v850: Add e3v5 multilib.
1698         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
1699         (v850_gen_movdi): Prototype.
1700         * config/v850/v850.c: Add support for e3v5 architecture.
1701         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
1702         TARGET_V850E_UP.
1703         (construct_save_jarl): Add e3v5 long JARL support.
1704         (v850_adjust_insn_length): New function.  Adjust length of call
1705         insns when using e3v5 instructions.
1706         (v850_gen_movdi): New function: Generate instructions to move a
1707         DImode value.
1708         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
1709         (CPP_SPEC): Define __v850e3v5__ as appropriate.
1710         (TARGET_USE_FPU): Enable for e3v5.
1711         (CONST_OK_FOR_W): New macro.
1712         (ADJUST_INSN_LENGTH): Define.
1713         * config/v850/v850.md (UNSPEC_LOOP): Define.
1714         (attr cpu): Add v850e3v5.
1715         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
1716         (movdi): New pattern.
1717         (movdi_internal): New pattern.
1718         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
1719         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
1720         (cstoresf4): Likewise.
1721         (cstoredf4): Likewise.
1722         (insv): New pattern.
1723         (rotlso3_a): New pattern.
1724         (rotlsi3_b): New pattern
1725         (rotlsi3_v850e3v5): New pattern.
1726         (doloop_begin): New pattern.
1727         (fix_loop_counter): New pattern.
1728         (doloop_end): New pattern.
1729         (branch_normal): Add e3v5 long branch support.
1730         (branch_invert): Likewise.
1731         (branch_z_normal): Likewise.
1732         (branch_z_invert): Likewise.
1733         (branch_nz_normal): Likewise.
1734         (branch_nz_invert): Likewise.
1735         (call_internal_short): Add e3v5 register-indirect JARL support.
1736         (call_internal_long): Likewise.
1737         (call_value_internal_short): Likewise.
1738         (call_value_internal_long): Likewise.
1739         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
1740         (mloop): New option.
1741         * config.gcc: Add support for configuring v840e3v5 target.
1742         * doc/invoke.texi: Document new v850 specific command line options.
1744 2013-01-31  Paul Koning  <ni1d@arrl.net>
1746         PR debug/55059
1747         PR debug/54508
1748         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
1749         children if parent is a class.
1750         (prune_unused_types_prune): Don't add DW_AT_declaration.
1752 2013-01-31  Richard Biener  <rguenther@suse.de>
1754         PR tree-optimization/56157
1755         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
1756         match up operand with SLP child.
1758 2013-01-31  Jason Merrill  <jason@redhat.com>
1760         PR debug/54410
1761         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
1762         parameters the first time.
1763         (gen_scheduled_generic_parms_dies): Check completeness here.
1765 2013-01-31  Richard Biener  <rguenther@suse.de>
1767         PR middle-end/53073
1768         * common.opt (faggressive-loop-optimizations): New flag,
1769         enabled by default.
1770         * doc/invoke.texi (faggressive-loop-optimizations): Document.
1771         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
1772         infer_loop_bounds_from_undefined by it.
1774 2013-01-31  Richard Biener  <rguenther@suse.de>
1776         PR tree-optimization/56150
1777         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
1778         visit virtual operands.
1779         (find_uses_to_rename_bb): Likewise.
1781 2013-01-31  Richard Biener  <rguenther@suse.de>
1783         PR tree-optimization/56150
1784         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
1785         mixed store non-store stmts.
1787 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
1789         PR sanitizer/55374
1790         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
1791         LIBASAN_EARLY_SPEC is defined.
1792         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
1793         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
1794         before %o.
1795         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
1797         PR c++/55742
1798         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
1799         invalid args instead of ICEing on it.
1800         (ix86_valid_target_attribute_tree): Return error_mark_node if
1801         ix86_valid_target_attribute_inner_p failed.
1802         (ix86_valid_target_attribute_p): Return false only if
1803         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
1804         target("default") attribute.
1805         (sorted_attr_string): Change argument from const char * to tree,
1806         merge in all target attribute arguments rather than just one.
1807         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
1808         instead of free.  Avoid using strcat.
1809         (ix86_mangle_function_version_assembler_name): Mangle
1810         target("default") as if no target attribute is present.  Adjust
1811         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
1812         instead of xmalloc and XDELETEVEC instead of free.
1813         (ix86_function_versions): Don't return true if one of the decls
1814         doesn't have target attribute.  If they don't and one of the decls
1815         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
1816         sorted_attr_string caller.  Use XDELETEVEC instead of free.
1817         (ix86_supports_function_versions): Remove.
1818         (make_name): Fix up formatting.
1819         (make_dispatcher_decl): Remove resolver_name and its initialization.
1820         Avoid leaking memory.
1821         (is_function_default_version): Return true if there is
1822         target("default") attribute rather than no target attribute at all.
1823         (make_resolver_func): Avoid leaking memory.
1824         (ix86_generate_version_dispatcher_body): Likewise.
1825         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
1826         * target.def (supports_function_versions): Remove.
1827         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
1828         * doc/tm.texi: Regenerated.
1830 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
1832         PR rtl-optimization/56144
1833         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
1834         for values with side effects.
1836 2013-01-30  Richard Biener  <rguenther@suse.de>
1838         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
1839         (sparseset_pop): Likewise.
1840         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
1841         to be able to use quick_push in the worker loop.
1843 2013-01-30  Marek Polacek  <polacek@redhat.com>
1845         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
1847 2013-01-30  Richard Biener  <rguenther@suse.de>
1849         PR lto/56147
1850         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
1852 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
1854         PR tree-optimization/56064
1855         * fixed-value.c (fixed_from_double_int): New function.
1856         * fixed-value.h (fixed_from_double_int): New prototype.
1857         (const_fixed_from_double_int): New static inline function.
1858         * fold-const.c (native_interpret_fixed): New static function.
1859         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
1860         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
1861         (native_encode_fixed): New static function.
1862         (native_encode_expr) <FIXED_CST>: Use it.
1863         (native_interpret_int): Move double_int worker code to...
1864         * double-int.c (double_int::from_buffer): ...this new static method.
1865         * double-int.h (double_int::from_buffer): Prototype it.
1867 2013-01-30  Richard Biener  <rguenther@suse.de>
1869         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
1870         New pointer-map and obstack.
1871         (init_alias_vars): Allocate pointer-map and obstack.
1872         (delete_points_to_sets): Free them.
1873         (find_what_var_points_to): Cache result.
1874         (find_what_p_points_to): Adjust for changed interface of
1875         find_what_var_points_to.
1876         (compute_points_to_sets): Likewise.
1877         (ipa_pta_execute): Likewise.
1879 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1881         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
1882         * configure: Regenerate.
1883         * config.in: Regenerate.
1884         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
1885         #nobits/#progbits if supported.
1887 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
1889         PR target/56121
1890         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
1891         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
1892         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
1894 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1896         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
1897         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
1899 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1901         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
1902         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
1904 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1906         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
1907         declaration.
1908         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
1909         * config/arm/cortex-a7.md: New bypasses using
1910         arm_mac_accumulator_is_result.
1912 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1914         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
1915         (cortex_a7_neon_mla): Likewise.
1916         (cortex_a7_fpfmad): New reservation.
1917         (cortex_a7_fpmacs): Use ffmas and update required units.
1918         (cortex_a7_fpmuld): Update required units and latency.
1919         (cortex_a7_fpmacd): Likewise.
1920         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
1921         (cortex_a7_neon). Likewise.
1922         (bypass) Update participating units.
1924 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
1926         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
1927         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
1928         from fmac to ffma.
1929         * config/arm/vfp11.md (vfp_farith): Use ffmas.
1930         (vfp_fmul): Use ffmad.
1931         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
1932         (cortex_r4_fmacd): Use ffmad.
1933         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
1934         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
1935         (cortex_a9_fmacd): Use ffmad.
1936         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
1937         (cortex_a8_vfp_macd): Use ffmad.
1938         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
1939         (cortex_a5_fpmacd): Use ffmad.
1940         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
1941         (cortex_a15_vfp_macd): Use ffmad.
1942         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
1944 2013-01-29  Jason Merrill  <jason@redhat.com>
1946         PR libstdc++/54314
1947         * varasm.c (default_assemble_visibility): Don't warn about
1948         visibility on artificial decls.
1950 2013-01-29  Richard Biener  <rguenther@suse.de>
1952         PR tree-optimization/56113
1953         * tree-ssa-structalias.c (equiv_class_lookup): Also return
1954         the bitmap leader.
1955         (label_visit): Free duplicate bitmaps and record the leader instead.
1956         (perform_var_substitution): Adjust.
1958 2013-01-29  Richard Biener  <rguenther@suse.de>
1960         PR tree-optimization/55270
1961         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
1962         the CFG, schedule loops for fixup.
1964 2013-01-29  Nick Clifton  <nickc@redhat.com>
1966         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
1967         SP_REG.
1969 2013-01-28  Leif Ekblad  <leif@rdos.net>
1971         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
1972         * config/i386/i386.h (TARGET_RDOS): New macro.
1973         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
1974         * config/i386/i386.c (ix86_option_override_internal): For 64bit
1975         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
1976         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
1977         DEFAULT_LARGE_SECTION_THRESHOLD.
1978         * config/i386/i386.md (R14_REG, R15_REG): New constants.
1979         * config/i386/rdos.h: New file.
1980         * config/i386/rdos64.h: New file.
1982 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
1984         PR other/54814
1985         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
1986         TEST_HARD_REG_BIT.
1988 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1990         PR rtl-optimization/56117
1991         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
1992         call cselib_lookup_from_insn on the MEM before calling
1993         add_insn_mem_dependence.
1995 2013-01-28  Richard Biener  <rguenther@suse.de>
1997         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
1998         to a stmt that didn't have one.
1999         (copy_phis_for_bb): Likewise for PHI arguments.
2000         (copy_debug_stmt): Likewise for debug stmts.
2002 2013-01-28  Richard Biener  <rguenther@suse.de>
2004         PR tree-optimization/56034
2005         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
2006         (partition_builtin_p): Adjust.
2007         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
2008         it is the last partition.
2009         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
2010         up the vertex for the definition.
2011         (classify_partition): Classify whether a partition is a
2012         PKIND_REDUCTION, thus has uses outside of the loop.
2013         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
2014         Merge all PKIND_REDUCTION partitions into the last partition.
2015         (tree_loop_distribution): Seed partitions from reductions as well.
2017 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
2019         PR tree-optimization/56125
2020         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
2021         pow(x,c) into sqrt(x) * powi(x, n/2) or
2022         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
2023         optimizing for size.
2024         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
2025         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
2026         integer.
2028         PR tree-optimization/56094
2029         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
2030         to UNKNOWN_LOCATION while gimplifying expr.
2032 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
2034         PR target/56114
2035         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
2036         operand 0 in movabs insn template for -masm=intel asm alternative.
2037         (*movabs<mode>_2): Ditto for operand 1.
2039 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
2041         PR target/54663
2042         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
2043         of microblaze-c.o
2045 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2047         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
2048         tm_file.
2050 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2052         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
2053         Undef to avoid warning.
2055 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2057         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
2058         * configure: Regenerate.
2060 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
2062         PR tree-optimization/56098
2063         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
2064         for stmts with volatile ops.
2065         (cond_store_replacement): Don't optimize if assign has volatile ops.
2066         (cond_if_else_store_replacement_1): Don't optimize if either
2067         then_assign or else_assign have volatile ops.
2068         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
2069         volatile ops.
2071 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2073         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
2075 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2077         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
2078         missing ':' in asm example.
2080 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
2082         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
2083         entries into lane and laneq entries.
2084         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
2085         Remove AdvSIMD scalar modes.
2086         (aarch64_sq<r>dmulh_laneq<mode>): New.
2087         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
2088         modes.
2089         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
2090         builtin implementations to relfect changes in RTL in aarch64-simd.md.
2091         * config/aarch64/iterators.md (VCOND): New.
2092         (VCONQ): New.
2094 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
2096         PR target/54222
2097         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
2098         Add NULL LIBNAME argument to existing definitions.
2099         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
2100         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
2101         * config/avr/avr.c (DEF_BUILTIN): Same.
2102         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
2103         (avr_expand_builtin): Expand to a vanilla call if a libgcc
2104         implementation is available (DECL_ASSEMBLER_NAME is set).
2105         (avr_fold_absfx): New static function.
2106         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
2107         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
2108         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
2109         AVR_BUILTIN_ABSLLK.
2110         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
2111         (abshk, absk, abslk, absllk): Provide as static inline functions.
2113 2013-01-25  Marek Polacek  <polacek@redhat.com>
2115         PR tree-optimization/56035
2116         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
2118 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
2120         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
2121         (*movtf_internal_rex64): Add (!o,C) alternative
2122         (*movxf_internal_rex64): Ditto.
2123         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
2125 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
2127         * doc/invoke.texi: fix typo.
2128         * doc/objc.texi: fix typo.
2130 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
2132         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
2133         for the first two alternatives.
2135 2013-01-24  Diego Novillo  <dnovillo@google.com>
2137         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
2138         (ggc-zone.o): Remove.
2139         * configure.ac: Remove option --with-gc.
2140         * configure: Re-generate.
2141         * doc/install.texi: Remove documentation for --with-gc.
2142         * gengtype.c (write_enum_defn): Remove.  Update all users.
2143         (write_Types_process_field): Remove generation of gt_e_* argument.
2144         (output_type_enum): Remove.  Update all users.
2145         (write_enum_defn): Remove.  Update all users.
2146         (enum alloc_zone): Remove.  Update all users.
2147         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
2148         * ggc-common.c (ggc_splay_alloc): Remove first argument.
2149         Update all callers.
2150         (struct ptr_data): Remove field TYPE.  Update all users.
2151         (gt_pch_note_object): Remove argument TYPE.  Update all users.
2152         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
2153         Update all users.
2154         * ggc-none.c (ggc_alloc_typed_stat): Remove.
2155         (struct alloc_zone): Remove.
2156         (ggc_internal_alloc_zone_stat): Remove.
2157         (ggc_internal_cleared_alloc_zone_stat): Remove.
2158         * ggc-page.c (ggc_alloc_typed_stat): Remove.
2159         (ggc_pch_count_object): Remove last argument.  Update all users.
2160         (ggc_pch_alloc_object): Remove last argument.  Update all users.
2161         (struct alloc_zone): Remove.
2162         * ggc-zone.c: Remove.
2163         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
2164         (struct alloc_zone): Remove.
2165         (ggc_alloc_typed_stat): Remove.
2166         (ggc_alloc_typed): Remove.
2167         (ggc_splay_alloc): Remove first argument.
2168         (rtl_zone): Remove.  Update all users.
2169         (tree_zone): Remove.  Update all users.
2170         (tree_id_zone): Remove.  Update all users.
2171         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
2172         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
2173         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
2174         * tree-ssanames.c: Remove references to zone allocator in comments.
2176 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
2178         * config/avr/avr.c (avr_out_fract): Make register numbers that
2179         might be outside of source operand signed.
2181 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
2183         * config/i386/constraints.md (Yf): New constraint.
2184         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
2185         of f constraint to conditionaly disable x87 register preferences.
2186         (*movdf_internal): Ditto.
2187         (*movsf_internal): Ditto.
2189 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
2191         PR inline-asm/55934
2192         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
2193         that have operands with impossible constraints.
2194         Add a FIXME for a speed-up opportunity.
2195         * lra-constraints.c (process_alt_operands): Verify that a class
2196         selected from constraints on asms is valid for the operand mode.
2197         (curr_insn_transform): Remove incorrect comment.
2199 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
2201         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
2202         TOC operand is a valid symbol ref in the constant pool.
2204 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2206         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
2208 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
2210         PR target/54222
2211         * config/avr/stdfix.h: New file.
2212         * t-avr (stdfix-gcc.h): New rule to build it.
2213         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
2215 2013-01-23  Kostya Serebryany  <kcc@google.com>
2217         * config/darwin.h: remove dependency on
2218         CoreFoundation (asan on Mac OS).
2220 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
2222         PR target/49069
2223         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
2224         instead of cmpdi_operand for first comparison operand.
2225         Don't assert that comparison operands aren't both constants.
2227 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
2229         * doc/install.texi (Downloading the Source): Update references to
2230         downloading separate components.
2232 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
2234         * doc/extend.texi (__int128): Improve grammar.
2236 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
2238         PR target/56028
2239         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
2240         alternative to (o,r).
2241         (*movdi_internal_rex64): Remove (!o,n) alternative.
2242         (DImode immediate->memory splitter): Remove.
2243         (DImode immediate->memory peephole2): Remove.
2244         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
2245         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
2246         alternative to (!o,*r).
2247         (*movtf_internal_sse): New pattern.
2248         (*movxf_internal_rex64): New pattern.
2249         (*movxf_internal): Disable for TARGET_64BIT.
2250         (*movdf_internal_rex64): Remove (!o,F) alternative.
2252 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
2254         PR middle-end/56074
2255         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
2256         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
2257         * tree-vect-loop-manip.c (find_loop_location): Also ignore
2258         stmt locations where LOCATION_LOCUS of the stmt location is
2259         UNKNOWN_LOCATION or BUILTINS_LOCATION.
2261         PR target/55686
2262         * config/i386/i386.md (UNSPEC_STOS): New.
2263         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
2264         *strsetqi_1): Add UNSPEC_STOS.
2266 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
2268         PR c++/56067
2269         * doc/invoke.texi: Remove left over -Wsynth example.
2271 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
2273         PR tree-optimization/56051
2274         * fold-const.c (fold_binary_loc): Don't fold
2275         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
2276         a narrowing conversion, or widening conversion from signed
2277         to unsigned.
2279 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
2281         PR rtl-optimization/56023
2282         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
2283         dependent on debug instruction.
2285 2013-01-21  Martin Jambor  <mjambor@suse.cz>
2287         PR middle-end/56022
2288         * function.c (allocate_struct_function): Call
2289         invoke_set_current_function_hook earlier.
2291 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
2293         * reload1.c (init_reload): Only initialize reload_obstack
2294         during the first call.
2296 2013-01-21  Marek Polacek  <polacek@redhat.com>
2298         * cfgloop.c (verify_loop_structure): Fix up grammar.
2300 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
2302         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
2303         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
2305 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2307         PR target/56058
2308         * config/arm/marvell-pj4.md: Update copyright year.
2309         Fix up use of alu to alu_reg and simple_alu_imm.
2311 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
2313         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
2315 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
2317         PR target/55433
2318         * lra-constraints.c (curr_insn_transform): Don't reuse original
2319         insn for secondary memory move when memory mode should be different.
2321 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2323         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
2324         atomic_storedi_1): New patterns.
2326 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2328         btver2 pipeline descriptions.
2329         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
2330         descriptions.
2331         * config/i386/i386.md (btver2_decode): New type attributes.
2332         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
2333         type attributes.
2334         * config/i386/btver2.md: New file describing btver2 pipelines.
2336 2013-01-19  Andrew Pinski  <apinski@cavium.com>
2338         PR tree-optimization/52631
2339         * tree-ssa-sccvn (visit_use): Before looking up the original
2340         statement, try looking up the simplified expression.
2342 2013-01-19  Anthony Green  <green@moxielogic.com>
2344         * config/moxie/moxie.c (moxie_expand_prologue): Set
2345         current_function_static_stack_size.
2347 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
2349         PR tree-optimization/56029
2350         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
2351         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
2353 2013-01-18  Sharad Singhai  <singhai@google.com>
2355         PR tree-optimization/55995
2356         * dumpfile.c (dump_loc): Print location only if available.
2357         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
2359 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
2361         PR target/55433
2362         * lra-constraints.c (curr_insn_transform): Reuse original insn for
2363         secondary memory move.
2364         (inherit_reload_reg): Use rclass instead of cl for
2365         check_secondary_memory_needed_p.
2367 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
2369         PR middle-end/56015
2370         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
2371         the case where writing real complex part of target modifies op1.
2373 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
2375         * config/aarch64/aarch64-simd.md
2376         (aarch64_vcond_internal<mode>): Handle unordered cases.
2377         * config/aarch64/iterators.md (v_cmp_result): New.
2379 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
2380             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2382         * config/arm/marvell-pj4.md: New file.
2383         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
2384         * config/arm/arm.md (generic_sched): Add marvell_pj4.
2385         (generic_vfp): Likewise.
2386         * config/arm/arm-cores.def: Add marvell-pj4.
2387         * config/arm/arm-tune.md: Regenerate.
2388         * config/arm/arm-tables.opt: Regenerate.
2389         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
2390         * doc/invoke.texi: Document marvell-pj4.
2392 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
2394         * config/aarch64/arm_neon.h: Map scalar types to standard types.
2396 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2398         PR debug/54114
2399         PR debug/54402
2400         PR debug/49888
2401         * var-tracking.c (negative_power_of_two_p): New.
2402         (global_get_addr_cache, local_get_addr_cache): New.
2403         (get_addr_from_global_cache, get_addr_from_local_cache): New.
2404         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
2405         heading comment.
2406         (vt_stack_offset_p): Remove.
2407         (vt_canon_true_dep): Always canonicalize loc's address.
2408         (clobber_overlapping_mems): Make sure we have a MEM.
2409         (local_get_addr_clear_given_value): New.
2410         (val_reset): Clear local cached entries.
2411         (compute_bb_dataflow): Create and release the local cache.
2412         Disable duplicate MEMs clobbering.
2413         (emit_notes_in_bb): Clobber MEMs likewise.
2414         (vt_emit_notes): Create and release the local cache.
2415         (vt_initialize, vt_finalize): Create and release the global
2416         cache, respectively.
2417         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
2419 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2421         PR libmudflap/53359
2422         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
2423         not found in the symtab.
2425 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
2427         PR debug/56006
2428         PR rtl-optimization/55547
2429         PR rtl-optimization/53827
2430         PR debug/53671
2431         PR debug/49888
2432         * alias.c (offset_overlap_p): New, factored out of...
2433         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
2434         the conservative special case for symbolic constants.  Don't
2435         adjust zero sizes on alignment.
2437 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
2439         PR rtl-optimization/52573
2440         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
2441         REG_UNUSED for the same register.
2443 2013-01-17  Richard Biener  <rguenther@suse.de>
2444             Marek Polacek  <polacek@redhat.com>
2446         PR rtl-optimization/55833
2447         * loop-unswitch.c (unswitch_loops): Move loop verification...
2448         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
2449         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
2450         Set it to true when we're removing a loop from hierarchy tree in
2451         an irreducible region.
2452         (fix_bb_placements): Adjust caller.
2453         (fix_loop_placements): Likewise.
2455 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
2457         * config/avr/builtins.def (DEF_BUILTIN): Factor out
2458         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
2459         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
2460         Remove ID.  Adjust comments.
2461         * config/avr/avr-c.c (avr_builtin_name): Remove.
2462         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
2463         * config/avr/avr.c (avr_tolower): New static function.
2464         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
2465         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
2466         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
2467         default expansion.
2469 2013-01-17  Jan Hubicka  <jh@suse.cz>
2471         PR tree-optimization/55273
2472         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
2474 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
2476         PR target/55981
2477         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
2478         store through atomic_store<mode>_1.
2479         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
2481 2013-01-17  Martin Jambor  <mjambor@suse.cz>
2483         PR tree-optimizations/55264
2484         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
2485         for virtual methods.
2486         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
2487         virtual methods before inlining is over.
2488         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
2489         virtual functions.
2490         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
2491         non-virtual.
2493 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
2495         PR rtl-optimization/56005
2496         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
2497         pending reads for prefetch.
2499 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
2501         * config/aarch64/aarch64.md
2502         (*cstoresi_neg_uxtw): New pattern.
2503         (*cmovsi_insn_uxtw): New pattern.
2504         (*<optab>si3_uxtw): New pattern.
2505         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
2506         (*<optab>si3_insn_uxtw): New pattern.
2507         (*bswapsi2_uxtw): New pattern.
2509 2013-01-16  Richard Biener  <rguenther@suse.de>
2511         * tree-inline.c (tree_function_versioning): Remove set but
2512         never used variable.
2514 2013-01-16  Richard Biener  <rguenther@suse.de>
2516         PR tree-optimization/55964
2517         * tree-flow.h (rename_variables_in_loop): Remove.
2518         (rename_variables_in_bb): Likewise.
2519         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
2520         (copy_loop_before): Adjust and delete update-ssa status.
2521         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
2522         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
2523         (rename_variables_in_loop): Remove.
2524         (slpeel_update_phis_for_duplicate_loop): Likewise.
2525         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
2526         use available cfg machinery instead of duplicating it.
2527         Update PHI nodes and perform poor-mans SSA update here.
2528         (slpeel_tree_peel_loop_to_edge): Adjust.
2530 2013-01-16  Richard Biener  <rguenther@suse.de>
2532         PR tree-optimization/54767
2533         PR tree-optimization/53465
2534         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
2535         (vrp_visit_phi_node): For PHI arguments coming via backedges
2536         drop all symbolical range information.
2537         (execute_vrp): Compute backedges.
2539 2013-01-16  Richard Biener  <rguenther@suse.de>
2541         * doc/install.texi: Update CLooG and ISL requirements to
2542         0.18.0 and 0.11.1.
2544 2013-01-16  Christian Bruel  <christian.bruel@st.com>
2546         PR target/55301
2547         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
2548         (broken_move): Handle UNSPECV_SP_SWITCH_B.
2549         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
2551 2013-01-16  DJ Delorie  <dj@redhat.com>
2553         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
2554         (UNSPECV_SP_SWITCH_E): New.
2555         (sp_switch_1): Change to an unspec.
2556         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
2557         replace $r15.
2559 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
2561         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
2562         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
2563         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
2564         (expand_mem_thread_fence): Ditto.
2565         (expand_mem_signal_fence): Ditto.
2566         (expand_atomic_load): Ditto.
2567         (expand_atomic_store): Ditto.
2569 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
2571         PR rtl-optimization/55547
2572         PR rtl-optimization/53827
2573         PR debug/53671
2574         PR debug/49888
2575         * alias.c (memrefs_conflict_p): Set sizes to negative after
2576         AND adjustments.
2578 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2580         PR target/55940
2581         * function.c (thread_prologue_and_epilogue_insns): Always
2582         add crtl->drap_reg to set_up_by_prologue.set, even if
2583         stack_realign_drap is false.
2585 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2587         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
2588         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
2589         *call): Fix indention.
2591 2013-01-15  Tom de Vries  <tom@codesourcery.com>
2593         PR target/55876
2594         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
2595         Update comment.
2597 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
2599         PR rtl-optimization/55153
2600         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
2602 2013-01-15  Martin Jambor  <mjambor@suse.cz>
2604         PR tree-optimization/55920
2605         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
2606         accesses as grp_to_be_debug_replaced.
2608 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2610         PR tree-optimization/55920
2611         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
2612         there is non-useless type conversion needed from debug rhs to lhs,
2613         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
2615 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
2616             Mikael Pettersson  <mikpe@it.uu.se>
2618         PR target/43961
2619         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
2620         Thumb.
2621         (ASM_OUTPUT_CASE_LABEL): Remove.
2622         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
2623         * final.c (shorten_branches): Update alignment of labels before
2624         jump tables if CASE_VECTOR_SHORTEN_MODE.
2626 2013-01-15  Richard Biener  <rguenther@suse.de>
2628         PR bootstrap/55961
2629         * system.h: Do not include gmp.h for building host tools.
2631 2013-01-15  Richard Biener  <rguenther@suse.de>
2633         PR middle-end/55882
2634         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
2635         account for bitpos when computing alignment.
2637 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
2639         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
2640         (ix86_target_macros_internal): Likewise.
2642         * config/i386/i386.c (m_CORE2I7): Removed.
2643         (m_CORE_HASWELL): New macro.
2644         (m_CORE_ALL): Likewise.
2645         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
2646         (initial_ix86_arch_features): Likewise.
2647         (processor_target_table): Initializations for Core avx2.
2648         (cpu_names): New names "core-avx2".
2649         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
2650         PROCESSOR_CORE_HASWELL.
2651         (ix86_issue_rate): New case.
2652         (ia32_multipass_dfa_lookahead): Likewise.
2653         (ix86_sched_init_global): Likewise.
2655         * config/i386/i386.h (TARGET_HASWELL): New macro.
2656         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
2657         (processor_type): New PROCESSOR_HASWELL.
2659 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
2661         PR tree-optimization/55955
2662         * tree-vect-loop.c (vectorizable_reduction): Give up early on
2663         *SHIFT_EXPR and *ROTATE_EXPR codes.
2665         PR tree-optimization/48766
2666         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
2667         -ftrapv disable -fwrapv.
2669 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2671         PR target/55974
2672         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
2673         etc. to 1 and not to __flash.
2674         Use LL suffix for __INT24_MAX__ with -mint8.
2675         Use ULL suffix for __UINT24_MAX__ with -mint8.
2677 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2679         * config/avr/avr-arch.h
2680         (struct base_arch_s): Use typedef avr_arch_t instead.
2681         (struct arch_info_s): Use typedef avr_arch_info_t instead.
2682         (struct mcu_type_s): Use typedef avr_mcu_t instead.
2683         * config/avr/avr.c: Same.
2684         * config/avr/avr-devices.c: Same.
2685         * config/avr/driver-avr.c: Same.
2686         * config/avr/gen-avr-mmcu-texi.c: Same.
2687         * config/avr/avr-mcus.def: Adjust comment.
2689 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
2691         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
2692         * config/aarch64/iterators.md (VALLDI): New.
2694 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
2695             Andi Kleen  <ak@linux.intel.com>
2697         PR target/55948
2698         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
2699         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
2700         memmodel flag.
2702 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2704         * config/avr/avr-stdint.h: Remove trailing blanks.
2705         * config/avr/avr-log.h: Same.
2706         * config/avr/avr-arch.h: Same.
2707         * config/avr/avr-devices.c: Same.
2708         * config/avr/avr-dimode.md: Same.
2709         * config/avr/predicates.md: Same.
2710         * config/avr/avr-c.c: Same.  And fix typo.
2712         * config/avr/avr-protos.h: Same.  And:
2713         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
2714         (init_cumulative_args): Rename to avr_init_cumulative_args.
2715         (expand_prologue): Rename to avr_expand_prologue.
2716         (expand_epilogue): Rename to avr_expand_epilogue.
2717         (adjust_insn_length): Rename to avr_adjust_insn_length.
2718         (notice_update_cc): Rename to avr_notice_update_cc.
2719         (final_prescan_insn): Rename to avr_final_prescan_insn.
2720         * config/avr/avr.c: Same.
2721         * config/avr/avr.h: Same.
2722         * config/avr/avr.md: Remove trailing blanks.
2723         (prologue): Use avr_expand_prologue.
2724         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
2726 2013-01-14  Richard Biener  <rguenther@suse.de>
2728         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
2729         verify_location, collect_subblocks): New functions.
2730         (verify_gimple_in_cfg): Verify that locations only reference
2731         BLOCKs in the functions BLOCK tree.
2733 2013-01-14  Richard Biener  <rguenther@suse.de>
2735         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
2736         PHI argument.
2737         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
2738         unshare reference.
2739         (insert_out_of_ssa_copy_on_edge): Likewise.
2740         (rewrite_close_phi_out_of_ssa): Likewise.
2741         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
2742         debug expressions.
2743         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
2744         propagated constants.
2745         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
2746         can not be shared.
2748 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
2750         * config/avr/avr-modes.def: Add GPL copyright notice.
2752 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
2754         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
2755         MEMMODEL_MASK to determine memory model.
2756         (atomic_store<mode>): Ditto from operands[2].
2757         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
2759 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
2761         PR fortran/55935
2762         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
2763         (fold_gimple_assign): Don't call unshare_expr here.
2764         (fold_ctor_reference): Call unshare_expr.
2766 2013-01-13  Terry Guo  <terry.guo@arm.com>
2768         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
2769         * doc/fragments.texi: Document MULTILIB_REUSE.
2770         * gcc.c (multilib_reuse): New internal spec.
2771         (set_multilib_dir): Also search multilib from multilib_reuse.
2772         * genmultilib (tmpmultilib3): Refactor code.
2773         (tmpmultilib4): Ditto.
2774         (multilib_reuse): New multilib argument.
2776 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
2778         * Makefile.in: Update copyright.
2780 2013-01-12  Tom de Vries  <tom@codesourcery.com>
2782         PR middle-end/55890
2783         * calls.c (expand_call): Check if arg_nr is valid.
2785 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2787         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
2788         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
2789         documentation.  Add missing '__' in front of
2790         __builtin_ia32_packssdw256.
2792 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2794         PR target/55719
2795         * config/s390/s390.c (s390_preferred_reload_class): Do not return
2796         NO_REGS for larl operands.
2797         (s390_reload_larl_operand): Use s390_load_address instead of
2798         emit_move_insn.
2800 2013-01-11  Richard Biener  <rguenther@suse.de>
2802         * tree-cfg.c (verify_node_sharing_1): Split out from ...
2803         (verify_node_sharing): ... here.
2804         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
2806 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
2808         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
2809         Substitute TREECHECKING.
2810         * configure: Regenerate.
2811         * Makefile.in (TREECHECKING): New.
2813 2013-01-11  Richard Guenther  <rguenther@suse.de>
2815         PR tree-optimization/44061
2816         * tree-vrp.c (extract_range_basic): Compute zero as
2817         value-range for __builtin_constant_p of function parameters.
2819 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
2821         Update copyright years.
2823 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
2825         PR rtl-optimization/55672
2826         * lra-eliminations.c (mark_not_eliminable): Permit addition with
2827         const to be eliminable.
2829 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
2831         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
2832         * configure: Regenerate.
2834 2013-01-10  Richard Biener  <rguenther@suse.de>
2836         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
2838 2013-01-10  Richard Biener  <rguenther@suse.de>
2840         PR bootstrap/55792
2841         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
2842         locations for virtual PHI arguments.
2843         (rewrite_update_phi_arguments): Likewise.
2845 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
2847         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
2848         on to assembler.
2850 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
2852         PR tree-optimization/55921
2853         * tree-complex.c (expand_complex_asm): New function.
2854         (expand_complex_operations_1): Call it for GIMPLE_ASM.
2856 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2858         PR target/55718
2859         * config/s390/s390.c (s390_symref_operand_p)
2860         (s390_loadrelative_operand_p): Merge the two functions.
2861         (s390_check_qrst_address, print_operand_address): Add parameters
2862         to s390_loadrelative_operand_p invokation.
2863         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
2864         (s390_reload_larl_operand, s390_secondary_reload): Use
2865         s390_loadrelative_operand_p instead of s390_symref_operand_p.
2866         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
2868 2013-01-09  Mike Stump  <mikestump@comcast.net>
2870         * dse.c (record_store): Remove unnecessary assert.
2872 2013-01-09  Jan Hubicka  <jh@suse.cz>
2874         PR tree-optimization/55569
2875         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
2876         * cfgloop.h (scale_loop_profile): Likewise.
2878 2013-01-09  Jan Hubicka  <jh@suse.cz>
2880         PR lto/45375
2881         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
2882         functions.
2883         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
2885 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
2887         PR middle-end/55114
2888         * expr.h (maybe_emit_group_store): Declare.
2889         * expr.c (maybe_emit_group_store): New function.
2890         * builtins.c (expand_builtin_int_roundingfn): Call it.
2891         (expand_builtin_int_roundingfn_2): Likewise.
2893 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
2895         PR rtl-optimization/55829
2896         * lra-constraints.c (match_reload): Add code for absent output.
2897         (curr_insn_transform): Add code for reloads of matched inputs
2898         without output.
2900 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
2902         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
2903         attribute of movddup insn to DF.
2904         (*vec_interleave_lowv2df): Ditto.
2905         (vec_dupv2df): Ditto.
2907 2013-01-09  Jan Hubicka  <jh@suse.cz>
2909         PR tree-optimiation/55875
2910         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
2911         EVERY_ITERATION parameter.
2912         (number_of_iterations_exit): Check if exit is executed every iteration.
2913         (idx_infer_loop_bounds): Similarly here.
2914         (n_of_executions_at_most): Simplify
2915         to only test for cases where statement is dominated by the
2916         particular bound; handle correctly the "postdominance" test.
2917         (scev_probably_wraps_p): Use max loop iterations info
2918         as a global bound first.
2920 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
2921             Nick Clifton  <nickc@redhat.com>
2923         * config/v850/v850.md (cbranchsf4): New pattern.
2924         (cstoresf4): New pattern.
2925         (cbranchdf4): New pattern.
2926         (cstoredf4): New pattern.
2927         (movsicc): Disallow floating point comparisons.
2928         (cmpsf_le_insn): Fix order of operators.
2929         (cmpsf_lt_insn): Likewise.
2930         (cmpsf_eq_insn): Likewise.
2931         (cmpdf_le_insn): Likewise.
2932         (cmpdf_lt_insn): Likewise.
2933         (cmpdf_eq_insn): Likewise.
2934         (cmpsf_ge_insn): Use LE comparison.
2935         (cmpdf_ge_insn): Likewise.
2936         (cmpsf_gt_insn): Use LT comparison.
2937         (cmpdf_gt_insn): Likewise.
2938         (cmpsf_ne_insn): Delete pattern.
2939         (cmpdf_ne_insn): Delete pattern.
2940         * config/v850/v850.c (v850_gen_float_compare): Use
2941         gen_cmpdf_eq_insn for NE comparison.
2942         (v850_float_z_comparison_operator)
2943         (v850_float_nz_comparison_operator): Move from here ...
2944         * config/v850/predicates.md: ... to here.  Move GT and GE
2945         comparisons into v850_float_z_comparison_operator.
2946         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
2947         Delete prototype.
2948         (v850_float_nz_comparison_operator): Likewise.
2950 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2952         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
2953         with calls to gen_insvsi/gen_insvdi.
2955 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
2957         * config/i386/i386.c (initial_ix86_tune_features): Set up
2958         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
2960 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
2961             Jakub Jelinek  <jakub@redhat.com>
2963         PR tree-optimization/48189
2964         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
2965         If nitercst is 0, don't predict the exit edge.
2967 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2969         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
2970         in asm_fprintf with reg_names.
2971         (aarch64_print_operand_address): Likewise.
2972         (aarch64_return_addr): Likewise.
2973         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
2975 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2977         * config/pa/pa.h (VAL_U6_BITS_P): Define.
2978         (INT_U6_BITS): Likewise.
2979         * config/pa/predicates.md (uint6_operand): New predicate.
2980         (shift5_operand, shift6_operand): Likewise.
2981         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
2982         arith32_operand.
2983         (lshrdi3): Use shift6_operand.
2984         (shrpsi4, shrpdi4): New insn patterns.
2985         (extzv): Delete expander.
2986         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
2987         predicates in unamed zero extract patterns.  Tighten common constraint.
2988         (extv): Delete expander.
2989         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
2990         predicates in unamed sign extract patterns.  Tighten common constraint.
2991         (insv): Delete expander.
2992         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
2993         predicates in unamed insert patterns.  Tighten common constraint.
2994         Change uint32_operand predicate to uint6_operand predicate in unamed
2995         DImode pattern to insert constant values of type 1...1xxxx.
2997 2013-01-04  Jan Hubicka  <jh@suse.cz>
2999         PR tree-optimization/55823
3000         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
3001         issue.
3003 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3004             Uros Bizjak  <ubizjak@gmail.com>
3006         PR rtl-optimization/55845
3007         * df-problems.c (can_move_insns_across): Stop scanning at
3008         volatile_insn_p source instruction or give up if
3009         across_from .. across_to range contains any volatile_insn_p
3010         instructions.
3012 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
3014         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
3015         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
3016         Declare.
3017         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
3018         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
3020 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3022         PR fortran/55341
3023         * asan.c (asan_clear_shadow): New function.
3024         (asan_emit_stack_protection): Use it.
3026 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
3028         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
3029         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
3030         with tab instead of space.
3032 2013-01-08  Nick Clifton  <nickc@redhat.com>
3034         * config/rl78/rl78.c (rl78_expand_prologue): Always select
3035         register bank 0 at the start of an interrupt handler.
3036         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
3037         MDBH registers.
3039 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
3041         * config/aarch64/aarch64-simd.md
3042         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
3043         (aarch64_simd_bsl): Likewise.
3044         (aarch64_vcond_internal<mode>): Likewise.
3045         (vcond<mode><mode>): Likewise.
3046         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
3047         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
3049 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
3051         * config/aarch64/aarch64-builtins.c
3052         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
3054 2013-01-08  Martin Jambor  <mjambor@suse.cz>
3056         PR debug/55579
3057         * tree-sra.c (analyze_access_subtree): Return true also after
3058         potentially creating a debug-only replacement.
3060 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3062         PR middle-end/55890
3063         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
3065         PR tree-optimization/54120
3066         * tree-vrp.c (range_fits_type_p): Don't allow
3067         src_precision < precision from signed vr to unsigned_p
3068         if vr->min or vr->max is negative.
3069         (simplify_float_conversion_using_ranges): Test can_float_p
3070         against CODE_FOR_nothing.
3072 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
3073             Richard Biener  <rguenther@suse.de>
3075         PR middle-end/55851
3076         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
3077         types instead of just INTEGER_TYPE types.
3079 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
3081         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
3082         TF_SIZE): Define.
3084 2013-01-07  Steve Ellcey  <sellcey@mips.com>
3086         PR target/42661
3087         * config/mips/mips.opt: Change mad to mmad to match documentation.
3089 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3091         PR target/55897
3092         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
3093         .progmemx.data now.
3095 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3097         PR target/55897
3098         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
3099         (avr_addrspace_t): Add .section_name field.
3100         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
3101         array size.
3102         (avr_addrspace): Same.  Initialize .section_name.  Remove last
3103         NULL entry.  Put __memx into .progmemx.data.
3104         (progmem_section_prefix): Remove.
3105         (avr_asm_init_sections): No need to initialize progmem_section.
3106         (avr_asm_named_section): Use avr_addrspace[].section_name to get
3107         section name prefix.
3108         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
3109         retrieve the progmem section.
3110         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
3111         boundary to run over avr_addrspace[].
3112         (avr_register_target_pragmas): Ditto.
3114 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
3116         * varasm.c (output_constant_def_contents): For asan_protect_global
3117         protected strings, adjust DECL_ALIGN if needed, before testing for
3118         anchored symbols.
3119         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
3120         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
3121         normal decls.
3122         (output_object_block): For asan protected decls, emit asan padding
3123         after their contents.
3124         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
3125         (asan_finish_file): Test it here instead.
3127 2013-01-07  Nick Clifton  <nickc@redhat.com>
3128             Matthias Klose  <doko@debian.org>
3129             Doug Kwan  <dougkwan@google.com>
3130             H.J. Lu  <hongjiu.lu@intel.com>
3132         PR driver/55470
3133         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
3135         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
3137         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
3139         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
3141         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
3143 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3145         PR target/54461
3146         * doc/install.texi (Cross-Compiler-Specific Options): Document
3147         --with-avrlibc.
3149 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
3151         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
3152         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
3153         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
3154         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
3155         vqmovun_high_s64): Fix source operand number and update copyright.
3157 2013-01-07  Richard Biener  <rguenther@suse.de>
3159         PR middle-end/55890
3160         * gimple.h (gimple_call_builtin_p): New overload.
3161         * gimple.c (validate_call): New function.
3162         (gimple_call_builtin_p): Likewise.
3163         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3164         Use gimple_call_builtin_p.
3165         (find_func_clobbers): Likewise.
3166         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
3167         (strlen_optimize_stmt): Likewise.
3169 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
3171         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
3172         (vld1q_dup_*): Likewise.
3173         (vld1_*): Likewise.
3174         (vld1q_*): Likewise.
3175         (vld1_lane_*): Likewise.
3176         (vld1q_lane_*): Likewise.
3178 2013-01-07  Richard Biener  <rguenther@suse.de>
3180         * lto-streamer.h (LTO_minor_version): Bump to 2.
3182 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
3184         * config/aarch64/aarch64-protos.h
3185         (aarch64_const_double_zero_rtx_p): Rename to...
3186         (aarch64_float_const_zero_rtx_p): ...this.
3187         (aarch64_float_const_representable_p): New.
3188         (aarch64_output_simd_mov_immediate): Likewise.
3189         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
3190         move immediate case.
3191         * config/aarch64/aarch64.c
3192         (aarch64_const_double_zero_rtx_p): Rename to...
3193         (aarch64_float_const_zero_rtx_p): ...this.
3194         (aarch64_print_operand): Allow printing of new constants.
3195         (aarch64_valid_floating_const): New.
3196         (aarch64_legitimate_constant_p): Check for valid floating-point
3197         constants.
3198         (aarch64_simd_valid_immediate): Likewise.
3199         (aarch64_vect_float_const_representable_p): New.
3200         (aarch64_float_const_representable_p): Likewise.
3201         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
3202         (aarch64_output_simd_mov_immediate): New.
3203         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
3204         (*movdf_aarch64): Likewise.
3205         * config/aarch64/constraints.md (Ufc): New.
3206         (Y): call aarch64_float_const_zero_rtx.
3207         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
3209 2013-01-07  Richard Biener  <rguenther@suse.de>
3211         PR tree-optimization/55888
3212         PR tree-optimization/55862
3213         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
3214         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
3215         not if it is contained therein.
3217 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3219         * config/avr/t-avr: Typo.
3221 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
3223         PR55243
3224         * config/avr/t-avr: Don't automatically rebuild
3225         $(srcdir)/config/avr/t-multilib
3226         $(srcdir)/config/avr/avr-tables.opt
3227         $(srcdir)/doc/avr-mmcu.texi
3228         (avr-mcus): New phony target to build them on request.
3229         (s-avr-mlib, s-avr-mmcu-texi): Remove.
3230         * avr/avr-mcus.def: Adjust comments.
3232 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
3234         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
3236 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
3238         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
3240 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
3242         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
3244 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
3246         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
3247         to generate profiling.
3248         * config/rs6000/aix64.h (LIB_SPEC): Same.
3250 2013-01-04  Andrew Pinski  <apinski@cavium.com>
3252         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
3253         New function.
3254         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3256 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
3258         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
3259         unconditionally.
3260         (ix86_expand_move): Ditto.
3261         (ix86_zero_extend_to_Pmode): Ditto.
3262         (ix86_expand_call): Ditto.
3263         (ix86_expand_special_args_builtin): Ditto.
3264         (ix86_expand_builtin): Ditto.
3266 2013-01-04  Richard Biener  <rguenther@suse.de>
3268         PR tree-optimization/55862
3269         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
3270         translating them through PHI nodes.
3272 2013-01-04  Martin Jambor  <mjambor@suse.cz>
3274         PR tree-optimization/55755
3275         * tree-sra.c (sra_modify_assign): Do not check that an access has no
3276         children when trying to avoid producing a VIEW_CONVERT_EXPR.
3278 2013-01-04  Marek Polacek  <polacek@redhat.com>
3280         PR middle-end/55859
3281         * opts.c (default_options_optimization): Clarify error message.
3283 2013-01-04  Richard Biener  <rguenther@suse.de>
3285         PR middle-end/55863
3286         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
3287         reassociation.
3289 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3291         PR target/53789
3292         * config/pa/pa.md (movsi): Revert previous change.
3293         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
3294         references.
3296 2013-01-03  Richard Henderson  <rth@redhat.com>
3298         * config/i386/i386.c (ix86_expand_move): Always assign to op1
3299         after eliminating TLS symbols.
3301 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
3303         PR bootstrap/50167
3304         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
3305         * graphite-poly.c (debug_gmp_value): Likewise.
3307 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
3309         PR target/55712
3310         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
3311         selected code model, define __code_mode_small__, __code_model_medium__,
3312         __code_model_large__, __code_model_32__ or __code_model_kernel__.
3313         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
3314         xchg temporary register with %k.  Declare temporary register as
3315         early clobbered.
3316         [__x86_64__]: For medium and large code models, preserve %rbx register.
3318 2013-01-03  Richard Biener  <rguenther@suse.de>
3320         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
3321         (dump_subscript): Adjust.
3322         (finalize_ddr_dependent): Do not dump redundant info.
3323         (analyze_siv_subscript): Adjust.
3324         (subscript_dependence_tester): Likewise.
3325         (compute_affine_dependence): Likewise.
3327 2013-01-03  Richard Biener  <rguenther@suse.de>
3329         Revert
3330         2013-01-03  Richard Biener  <rguenther@suse.de>
3332         PR tree-optimization/55857
3333         * tree-vect-stmts.c (vectorizable_load): Do not setup
3334         re-alignment for invariant loads.
3336         2013-01-02  Richard Biener  <rguenther@suse.de>
3338         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3339         invariant load do not generate a vector load from the scalar location.
3341 2013-01-03  Richard Biener  <rguenther@suse.de>
3343         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
3344         for not vectorizing.
3345         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
3346         not build INDIRECT_REFs, call get_name once only.
3347         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
3348         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
3350 2013-01-03  Richard Biener  <rguenther@suse.de>
3352         PR tree-optimization/55857
3353         * tree-vect-stmts.c (vectorizable_load): Do not setup
3354         re-alignment for invariant loads.
3356 2013-01-03  Richard Biener  <rguenther@suse.de>
3358         PR lto/55848
3359         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
3360         prefer a built-in decl.
3362 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3364         * gcc.c (process_command): Update copyright notice dates.
3365         * gcov.c (print_version): Likewise.
3366         * gcov-dump.c (print_version): Likewise.
3368         PR rtl-optimization/55838
3369         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
3370         iv0.step, iv1.step and step.
3372 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3373             Marc Glisse  <marc.glisse@inria.fr>
3375         PR tree-optimization/55832
3376         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
3377         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
3378         integer_{one,zero}_node.
3380 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
3382         PR debug/54402
3383         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
3384         * var-tracking.c (reverse_op): Don't add reverse ops to
3385         VALUEs that have already
3386         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
3388 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
3390         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
3392 2013-01-02  Teresa Johnson  <tejohnson@google.com>
3394         * dumpfile.c (dump_loc): Print filename with location.
3395         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
3396         new location_t parameter to emit complete unroll message with
3397         new dump framework.
3398         (canonicalize_loop_induction_variables): Compute loops location
3399         and pass to try_unroll_loop_completely.
3400         * loop-unroll.c (report_unroll_peel): New function.
3401         (peel_loops_completely): Use new dump format with location
3402         for main dumpfile message, and invoke report_unroll_peel on success.
3403         (decide_unrolling_and_peeling): Ditto.
3404         (decide_peel_once_rolling): Remove old dumpfile message subsumed
3405         by report_unroll_peel.
3406         (decide_peel_completely): Ditto.
3407         (decide_unroll_constant_iterations): Ditto.
3408         (decide_unroll_runtime_iterations): Ditto.
3409         (decide_peel_simple): Ditto.
3410         (decide_unroll_stupid): Ditto.
3411         * cfgloop.c (get_loop_location): New function.
3412         * cfgloop.h (get_loop_location): Declare.
3414 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
3416         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
3417         NULL.
3419 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3421         PR middle-end/55198
3422         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
3423         BLKmode objects when EXPAND_MEMORY is specified.
3425 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
3427         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
3428         in loop predicate.
3429         (fold_builtin_cpu): Do not share cpu model decls across statements.
3431 2013-01-02  Jason Merrill  <jason@redhat.com>
3433         PR c++/55804
3434         * tree.c (build_array_type_1): Revert earlier change.
3436 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
3438         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
3439         "cortex-a57".
3440         * config/aarch64/aarch64-tune.md: Re-generate.
3442 2013-01-02  Richard Biener  <rguenther@suse.de>
3444         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
3445         invariant load do not generate a vector load from the scalar location.
3447 2013-01-02  Richard Biener  <rguenther@suse.de>
3449         PR bootstrap/55784
3450         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
3451         * configure: Regenerate.
3453 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3455         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
3456         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
3457         (expand_builtin_int_roundingfn_2): Keep the original target around
3458         for the fallback case.
3460 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
3462         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
3463         to be clear for sign changes.
3465 2013-01-01  Jan Hubicka  <jh@suse.cz>
3467         * ipa-inline-analysis.c: Fix formatting.
3469 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
3471         PR tree-optimization/55831
3472         * tree-vect-loop.c (get_initial_def_for_induction): Use
3473         gsi_after_labels instead of gsi_start_bb.
3475 Copyright (C) 2013 Free Software Foundation, Inc.
3477 Copying and distribution of this file, with or without modification,
3478 are permitted in any medium without royalty provided the copyright
3479 notice and this notice are preserved.