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