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