2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[official-gcc.git] / gcc / ChangeLog
blobbb7076c0dd3f70a3a9fd5971af6d455d3966c3d3
1 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3         * config/s390/s390.c (s390_expand_insv): Only accept insertions
4         within mode size.
6 2013-04-08  Marek Polacek  <polacek@redhat.com>
8         PR rtl-optimization/48182
9         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
10         value to 1.
12 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14         PR target/55487
15         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
16         nuses, make sure we have a label.
18 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20         PR target/56843
21         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
22         (rs6000_emit_swdiv_low_precision): Remove.
23         (rs6000_emit_swdiv): Rewrite to handle between one and four
24         iterations of Newton-Raphson generally; modify required number of
25         iterations for some cases.
26         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
28 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
31         set-but-unused variable.
33         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
34         basic blocks of released function bodies garbage-collectable.
36         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
37         (struct rtl_opt_pass): Add TODO_df_finish.
39         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
41 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
43         * config/arm/constraints.md (q): New constraint.
44         * config/arm/ldrdstrd.md: New file.
45         * config/arm/arm.md (ldrdstrd.md) New include.
46         (arm_movdi): Use "q" instead of "r" constraint
47         for double-word memory access.
48         (movdf_soft_insn): Likewise.
49         * config/arm/vfp.md (movdi_vfp): Likewise.
50         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
51         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
52         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
53         (mem_ok_for_ldrd_strd): Likewise.
54         (output_move_double): Update assertion.
56 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
58         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
60 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
62         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
63         define_insn_and_split.
64         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
66 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
68         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
69         define_insn_and_split.
70         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
71         (shiftsi3_compare): New pattern.
72         (rrx): New pattern.
73         * config/arm/unspecs.md (UNSPEC_RRX): New.
75 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
77         * config/arm/arm.md (negdi_extendsidi): New pattern.
78         (negdi_zero_extendsidi): Likewise.
80 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
82         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
83         define_insn_and_split.
84         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
85         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
87 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
89         * config/arm/arm.md (arm_subdi3): Convert define_insn into
90         define_insn_and_split.
91         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
92         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
94 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
96         * config/arm/arm.md (subsi3_carryin): New pattern.
97         (subsi3_carryin_const): Likewise.
98         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
99         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
101 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
103         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
105 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
107         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
108         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
110 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
112         * config/arm/arm.c (arm_expand_builtin): Change fcode
113         type to unsigned int.
115 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
117         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
119 2013-04-04  Ian Lance Taylor  <iant@google.com>
121         * doc/standards.texi (Standards): The Go frontend supports the Go
122         1 language standard.
124 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
126         PR middle-end/56729
127         * df-scan.c (df_insn_delete): Disable failing assert.
129 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
131         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
132         New function prototype.
133         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
134         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
135         (arm_builtin_vectorized_function): New function.
137 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
139         * config/arm/arm_neon_builtins.def: New file.
140         * config/arm/arm.c (neon_builtin_data): Move contents to
141         arm_neon_builtins.def.
142         (enum arm_builtins): Include neon builtin definitions.
143         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
144         * config/arm/t-arm (arm.o): Add dependency on
145         arm_neon_builtins.def.
147 2013-04-04  Marek Polacek  <polacek@redhat.com>
149         PR tree-optimization/48186
150         * predict.c (maybe_hot_frequency_p): Return false if
151         HOT_BB_FREQUENCY_FRACTION is 0.
152         (cgraph_maybe_hot_edge_p): Likewise.
154 2013-04-04  Richard Biener  <rguenther@suse.de>
156         PR tree-optimization/56826
157         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
158         more accurately.
160 2013-04-04  Richard Biener  <rguenther@suse.de>
162         PR tree-optimization/56213
163         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
164         (vect_analyze_data_refs): Allow all non-nested loads as
165         strided loads.
167 2013-04-04  Richard Biener  <rguenther@suse.de>
169         PR tree-optimization/56837
170         * tree-loop-distribution.c (classify_partition): For non-zero
171         values require that the value has the same precision as its
172         mode to be useful as memset value.
174 2013-04-03  Nick Clifton  <nickc@redhat.com>
176         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5
177         architectures.
178         (fmssf4): Use fmsf.s on E3V5 architectures.
179         (fnmasf4): Use fnmaf.s on E3V5 architectures.
180         (fnmssf4): Use fnmsf.s on E3V5 architectures.
182 2013-04-03  Jeff Law  <law@redhat.com>
184         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
185         (lra-eliminations.o): Likewise.
187 2013-04-03  Teresa Johnson  <tejohnson@google.com>
189         * gcov-io.c (compute_working_sets): Moved most of body of old
190         compute_working_sets here from profile.c.
191         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
192         (gcov_working_set_t): Moved typedef here from basic-block.h
193         (compute_working_set): Declare.
194         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
195         (get_working_sets): Renamed from compute_working_set,
196         replace most of body with call to new compute_working_sets.
197         (get_exec_counts): Replace call to compute_working_sets
198         to get_working_sets.
199         * profile.h (get_working_sets): Renamed from
200         compute_working_set.
201         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
202         to get_working_sets.
203         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
204         * gcov-dump.c (dump_working_sets): New function.
206 2013-04-03  Kenneth Zadeck <zadeck@naturalbridge.com>
208         * hwint.c (sext_hwi, zext_hwi): New functions.
209         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
210         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
211         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
212         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
213         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
214         (sext_hwi, zext_hwi): New functions.
216 2013-04-03  Jeff Law  <law@redhat.com>
218         PR tree-optimization/56799
219         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
220         back test for widening conversion erroneously dropped in prior
221         change.
223 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
225         PR target/56809
226         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
227         instead of next_real_insn.
229 2013-04-03  Marek Polacek  <polacek@redhat.com>
231         PR sanitizer/55702
232         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
233         functions.
235 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
237         PR target/56809
238         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
239         next_real_insn.
240         (thumb1_output_casesi): Likewise.
241         (thumb2_output_casesi): Likewise.
243 2013-04-03  Richard Biener  <rguenther@suse.de>
245         PR tree-optimization/56817
246         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
247         Split out ...
248         (tree_unroll_loops_completely_1): ... new function to manually
249         walk the loop tree, properly defering outer loops of unrolled
250         loops to later iterations.
252 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
254         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
255         (vectorizable_load): Likewise.
256         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
257         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
259 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
261         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
262         BIT_FIELD_REF.
264 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
266         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
268 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
270         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
272 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
274         PR tree-optimization/56790
275         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant folding.
277 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
279         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
280         Handle VEC_MERGE.
281         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
282         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
283         equal arguments.
285 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
287         PR c/19449
288         * tree.h (force_folding_builtin_constant_p): New decl.
289         * builtins.c (force_folding_builtin_constant_p): New variable.
290         (fold_builtin_constant_p): Fold immediately also if
291         force_folding_builtin_constant_p.
293 2013-04-03  Richard Biener  <rguenther@suse.de>
295         PR tree-optimization/56812
296         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
297         DRs of the same interleaving chain are independent.
299 2013-04-02  Jason Merrill  <jason@redhat.com>
301         * gdbinit.in (pbb): Use debug fn.
303 2013-04-02  Lawrence Crowl  <crowl@google.com>
305         * sese.h (struct ivtype_map_elt_s): Remove unused.
306         (extern debug_ivtype_map): Remove unused.
307         (extern eq_ivtype_map_elts): Remove unused.
308         * sese.c (debug_ivtype_map): Removed unused.
309         (debug_ivtype_map_1): Removed unused.
310         (debug_ivtype_elt): Remove unused.
311         (eq_ivtype_map_elts): Remove unused.
314 2013-04-02  Kai Tietz  <ktietz@redhat.com>
316         PR target/52790
317         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
318         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
319         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static function.
320         (legitimize_pe_coff_symbol): Likewise.
321         (is_imported_p): New helper-function.
322         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
323         for Windows x64 targets.
324         (ix86_expand_prologue): Optimize for pe-coff targets.
325         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
326         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
327         medium/large code-model.
328         (legitimize_pic_address): Likewise.
329         (legitimize_tls_address): Likewise.
330         (ix86_expand_call): Likewise.
331         (x86_output_mi_thunk): Likewise.
332         (get_dllimport_decl): Add new beimport argument.
333         (construct_plt_address): Don't assert for x64 pe-coff targets.
334         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
335         targets.
336         (SYMBOL_FLAG_STUBVAR): New macro.
337         (SYMBOL_REF_STUBVAR_P): Likewise.
338         * config/i386/winnt.c (stub_list): New structure.
339         (stub_head): New local variable.
340         (i386_pe_record_stub): New function.
341         (i386_pe_file_end): Emit refptr-stubs.
343 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
345         PR rtl-optimization/56745
346         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
347         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
349         PR c++/34949
350         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
351         and both of them are MEM_REFs, just compare first argument for
352         equality and attempt to deal even with differing offsets.
354         PR c++/34949
355         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
356         of gimple_clobber_p to be MEM_REF.
357         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
358         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
359         after gimplification.
360         * asan.c (get_mem_ref_of_assignment): Don't instrument
361         gimple_clobber_p stmts.
362         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
363         gimple_clobber_p stmt if they have MEM_REF lhs and
364         are dead because of another gimple_clobber_p stmt.
365         * tree-ssa-live.c (clear_unused_block_pointer): Treat
366         gimple_clobber_p stmts like debug stmts.
367         (remove_unused_locals): Remove clobbers with MEM_REF lhs
368         that refer to unused VAR_DECLs or uninitialized values.
369         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
370         gimple_clobber_p stmts if they refer to removed parameters.
371         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
372         formatting.
374 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
376         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
377         using SWI48 mode attribute.
379 2013-04-02  Wei Mi  <wmi@google.com>
381         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
382         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
383         *<rotate_insn><mode>3_mask in i386.md.
385 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
387         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
389 2013-04-02  Richard Biener  <rguenther@suse.de>
391         PR tree-optimization/56778
392         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
393         Runtime alias tests are not supported for gather loads.
394         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
395         stmts referenced from SSA operands before updating SSA form.
397 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
398             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
400         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
401         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
402         * config/arm/cortex-a53.md: New file.
403         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
404         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
405         * config/arm/arm.c (arm_issue_rate): Likewise.
406         * config/arm/arm-tune.md: Regenerate
407         * config/arm/arm-tables.opt: Regenerate.
408         * config/arm/arm-cores.def: Add cortex-a53.
410 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
412         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
413         non-static link.
415 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
417         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
418         scalar load/store operations using B/H registers.
419         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
421 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
423         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
424         scalar move.
425         * config/aarch64/aarch64.c
426         (aarch64_simd_scalar_immediate_valid_for_move): New.
427         * config/aarch64/aarch64-protos.h
428         (aarch64_simd_scalar_immediate_valid_for_move): New.
429         * config/aarch64/constraints.md (Dh, Dq): New.
430         * config/aarch64/iterators.md (hq): New.
432 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
434         * reorg.c (get_branch_condition): Deal with conditional returns.
435         (fill_simple_delay_slots): Remove dead code dealing with jumps.
437 2013-04-01  Wei Mi  <wmi@google.com>
439         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
440         Truncate operand 2 using %b asm operand modifier.
441         (*<shift_insn><mode>3_mask): Ditto.
442         (*<rotate_insn><mode>3_mask): Ditto.
444 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
446         PR middle-end/56798
447         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
449 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
451         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
452         of next_real_insn.
453         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
455 2013-03-30  Lawrence Crowl  <crowl@google.com>
457         * dse.c (clear_alias_sets): Remove never set.
458         (disqualified_clear_alias_sets): Remove never set.
459         (clear_alias_mode_pool): Remove never set.
460         (dse_step0): Remove condition that is never true.
461         (canon_address): Remove condition that is never true.
462         (dse_step7): Remove condition that is never true.
463         (rest_of_handle_dse): Remove condition that is never true.
464         (rest_of_handle_dse::did_global): Remove never read from above.
465         (dse_step2_spill): Remove never called from above.
466         (dse_step5_spill): Remove never called from above.
468 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
470         * doc/md.texi (Standard Names) <casesi>: Update documentation for
471         JUMP_TABLE_DATA changes.
472         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
473         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
474         (Insns) <jump_table_data>: New entry.
475         * doc/tm.texi: Regenerate.
477         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
479         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
480         for table jump at the end of a basic block using tablejump_p.
481         * targhooks.c (default_invalid_within_doloop): Likewise.
482         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
483         target hook implementation that is identical to the default hook.
484         (rs6000_invalid_within_doloop): Remove.
486         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
487         unused variable from tablejump_p call.
489         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
490         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
491         (INSN_DELETED_P): Likewise.
492         (emit_jump_table_data): New prototype.
493         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
494         after 4th as unused.
495         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
496         * sched-vis.c (print_insn): Likewise.
497         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
498         insn for compatibility with back ends that use next_active_insn to
499         identify jump table data.
500         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
501         (remove_insn): Likewise.
502         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
503         to be emitted.
504         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
505         (emit_jump_table_data): New function.
507         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
508         basic block, a JUMP_TABLE_DATA never is.
509         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
510         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
511         off from code handling real insns.
512         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
513         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
514         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
515         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
516         is not a NONDEBUG_INSN_P.
517         * ira-costs.c (scan_one_insn): Likewise.
518         * jump.c (mark_all_labels): Likewise.
519         (mark_jump_label_1): Likewise.
520         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
521         * lra.c (get_insn_freq): Expect all insns reaching here to be in
522         a basic block.
523         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
524         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
525         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
526         JUMP_TABLE_DATA_P insns.
527         (calculate_elim_costs_all_insns): Likewise.
528         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
529         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
530         (delete_output_reload): Code style fixups.
531         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
532         insn flags on this non-insn.
533         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
534         as scheduling barriers, for pre-change compatibility.
535         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
536         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
538         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
539         redundant JUMP_TABLE_DATA_P test.
540         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
541         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
542         (frv_for_each_packet): Likewise.
543         * config/i386/i386.c (min_insn_size): Likewise.
544         (ix86_avoid_jump_mispredicts): Likewise.
545         * config/m32r/m32r.c (m32r_is_insn): Likewise.
546         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
547         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
548         (mips16_insn_length): Robustify.
549         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
550         (mips16_split_long_branches): Likewise.
551         * config/pa/pa.c (pa_combine_instructions): Likewise.
552         * config/rs6000/rs6000.c (get_next_active_insn): Treat
553         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
554         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
555         as contributing to pool range lengths.
556         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
557         Remove redundant JUMP_TABLE_DATA_P test.
558         (sh_loop_align): Likewise.
559         (split_branches): Likewise.
560         (sh_insn_length_adjustment): Likewise.
561         * config/spu/spu.c (get_branch_target): Likewise.
563 2013-03-29  Jan Hubicka  <jh@suse.cz>
565         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
566         gcov streaming; stream hot bb threshold to ltrans.
567         * predict.c (get_hot_bb_threshold): Break out from ....
568         (maybe_hot_count_p): ... here.
569         (set_hot_bb_threshold): New function.
570         * lto-section-in.c (lto_section_name): Add profile.
571         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
572         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
573         and data-streamer.h
574         (histogram_entry): New structure.
575         (histogram, histogram_pool): New global vars.
576         (histogram_hash): New structure.
577         (histogram_hash::hash): New method.
578         (histogram_hash::equal): Likewise.
579         (account_time_size): New function.
580         (cmp_counts): New function.
581         (dump_histogram): New function.
582         (ipa_profile_generate_summary): New function.
583         (ipa_profile_write_summary): New function.
584         (ipa_profile_read_summary): New function.
585         (ipa_profile): Decide on threshold.
586         (pass_ipa_profile): Add ipa_profile_write_summary and
587         ipa_profile_read_summary.
588         * Makefile.in (ipa.o): Update dependencies.
589         * lto-streamer.h (LTO_section_ipa_profile): New section.
591 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
593         * tree.h (VAR_P): New.
595 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
597         PR lto/56777
598         * doc/invoke.texi ([-fwhole-program]): Fix typo.
600 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
602         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
603         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
604         (control_flow_insn_p): Likewise.
605         * cfgrtl.c (duplicate_insn_chain): Likewise.
606         * final.c (get_attr_length_1): Likewise.
607         (shorten_branches): Likewise.
608         (final_scan_insn): Likewise.
609         * function.c (instantiate_virtual_regs): Likewise.
610         * gcse.c (insert_insn_end_basic_block): Likewise.
611         * ira-costs.c (scan_one_insn): Likewise.
612         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
613         * lra.c (check_rtl): Likewise.
614         * reload1.c (elimination_costs_in_insn): Likewise.
615         * reorg.c (follow_jumps): Likewise.
617         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
618         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
619         (thumb_far_jump_used_p): Likewise.
620         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
621         (workaround_speculation): Likewise.
622         (add_sched_insns_for_speculation): Likewise.
623         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
624         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
625         (frv_for_each_packet): Likewise.
626         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
627         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
628         (final_emit_insn_group_barriers): Likewise.
629         * config/m32r/m32r.c (m32r_is_insn): Likewise.
630         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
631         (mips16_insn_length): Likewise.
632         * config/pa/pa.c (pa_reorg): Likewise.
633         (pa_combine_instructions): Likewise.
634         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
635         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
636         (sh_reorg): Likewise.
637         (split_branches): Likewise.
638         * config/spu/spu.c (get_branch_target): Likewise.
640         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
641         JUMP_TABLE_DATA_P.
643 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
645         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
646         Fix declaration name.
648 2013-03-28  Lawrence Crowl  <crowl@google.com>
650         * graphds.h (struct graph.indicies): Remove unused.
651         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
652         (SCOP_ORIGINAL_PDDRS): Remove unused.
653         * sese.h (extern insert_loop_close_phis): Removed unused.
654         (extern insert_guard_phis): Removed unused.
655         (extern ivtype_map_elt_info): Removed unused.
656         (new_ivtype_map_elt): Removed unused.
657         * sese.c (ivtype_map_elt_info): Removed unused.
659 2013-03-28  Lawrence Crowl  <crowl@google.com>
661         * Makefile.in: Add several missing include dependences.
662         (DUMPFILE_H): New.
663         (test-dump.o): New.  This object is not added to any executable,
664         but is present for ad-hoc testing.
665         * bitmap.c
666         (debug (const bitmap_head_def &)): New.
667         (debug (const bitmap_head_def *)): New.
668         * bitmap.h
669         (extern debug (const bitmap_head_def &)): New.
670         (extern debug (const bitmap_head_def *)): New.
671         * cfg.c
672         (debug (edge_def &)): New.
673         (debug (edge_def *)): New.
674         * cfghooks.c
675         (debug (basic_block_def &)): New.
676         (debug (basic_block_def *)): New.
677         * dumpfile.h
678         (dump_node (const_tree, int, FILE *)): Correct source file.
679         * dwarf2out.c
680         (debug (die_struct &)): New.
681         (debug (die_struct *)): New.
682         * dwarf2out.h
683         (extern debug (die_struct &)): New.
684         (extern debug (die_struct *)): New.
685         * gimple-pretty-print.c
686         (debug (gimple_statement_d &)): New.
687         (debug (gimple_statement_d *)): New.
688         * gimple-pretty-print.h
689         (extern debug (gimple_statement_d &)): New.
690         (extern debug (gimple_statement_d *)): New.
691         * ira-build.c
692         (debug (ira_allocno_copy &)): New.
693         (debug (ira_allocno_copy *)): New.
694         (debug (ira_allocno &)): New.
695         (debug (ira_allocno *)): New.
696         * ira-int.h
697         (extern debug (ira_allocno_copy &)): New.
698         (extern debug (ira_allocno_copy *)): New.
699         (extern debug (ira_allocno &)): New.
700         (extern debug (ira_allocno *)): New.
701         * ira-lives.c
702         (debug (live_range &)): New.
703         (debug (live_range *)): New.
704         * lra-int.h
705         (debug (lra_live_range &)): New.
706         (debug (lra_live_range *)): New.
707         * lra-lives.c
708         (debug (lra_live_range &)): New.
709         (debug (lra_live_range *)): New.
710         * omega.c
711         (debug (omega_pb_d &)): New.
712         (debug (omega_pb_d *)): New.
713         * omega.h
714         (extern debug (omega_pb_d &)): New.
715         (extern debug (omega_pb_d *)): New.
716         * print-rtl.c
717         (debug (const rtx_def &)): New.
718         (debug (const rtx_def *)): New.
719         * print-tree.c
720         (debug_tree (tree): Move within file.
721         (debug_raw (const tree_node &)): New.
722         (debug_raw (const tree_node *)): New.
723         (dump_tree_via_hooks (const tree_node *, int)): New.
724         (debug (const tree_node &)): New.
725         (debug (const tree_node *)): New.
726         (debug_verbose (const tree_node &)): New.
727         (debug_verbose (const tree_node *)): New.
728         (debug_head (const tree_node &)): New.
729         (debug_head (const tree_node *)): New.
730         (debug_body (const tree_node &)): New.
731         (debug_body (const tree_node *)): New.
732         (debug_vec_tree (tree): Move and reimplement in terms of dump.
733         (debug (vec<tree, va_gc> &)): New.
734         (debug (vec<tree, va_gc> *)): New.
735         * rtl.h
736         (extern debug (const rtx_def &)): New.
737         (extern debug (const rtx_def *)): New.
738         * sbitmap.c
739         (debug_raw (simple_bitmap_def &)): New.
740         (debug_raw (simple_bitmap_def *)): New.
741         (debug (simple_bitmap_def &)): New.
742         (debug (simple_bitmap_def *)): New.
743         * sbitmap.h
744         (extern debug (simple_bitmap_def &)): New.
745         (extern debug (simple_bitmap_def *)): New.
746         (extern debug_raw (simple_bitmap_def &)): New.
747         (extern debug_raw (simple_bitmap_def *)): New.
748         * sel-sched-dump.c
749         (debug (vinsn_def &)): New.
750         (debug (vinsn_def *)): New.
751         (debug_verbose (vinsn_def &)): New.
752         (debug_verbose (vinsn_def *)): New.
753         (debug (expr_def &)): New.
754         (debug (expr_def *)): New.
755         (debug_verbose (expr_def &)): New.
756         (debug_verbose (expr_def *)): New.
757         (debug (vec<rtx> &)): New.
758         (debug (vec<rtx> *)): New.
759         * sel-sched-dump.h
760         (extern debug (vinsn_def &)): New.
761         (extern debug (vinsn_def *)): New.
762         (extern debug_verbose (vinsn_def &)): New.
763         (extern debug_verbose (vinsn_def *)): New.
764         (extern debug (expr_def &)): New.
765         (extern debug (expr_def *)): New.
766         (extern debug_verbose (expr_def &)): New.
767         (extern debug_verbose (expr_def *)): New.
768         (extern debug (vec<rtx> &)): New.
769         (extern debug (vec<rtx> *)): New.
770         * sel-sched-ir.h
771         (_list_iter_cond_expr): Make inline instead of static.
772         * sreal.c
773         (debug (sreal &)): New.
774         (debug (sreal *)): New.
775         * sreal.h
776         (extern debug (sreal &)): New.
777         (extern debug (sreal *)): New.
778         * tree.h
779         (extern debug_raw (const tree_node &)): New.
780         (extern debug_raw (const tree_node *)): New.
781         (extern debug (const tree_node &)): New.
782         (extern debug (const tree_node *)): New.
783         (extern debug_verbose (const tree_node &)): New.
784         (extern debug_verbose (const tree_node *)): New.
785         (extern debug_head (const tree_node &)): New.
786         (extern debug_head (const tree_node *)): New.
787         (extern debug_body (const tree_node &)): New.
788         (extern debug_body (const tree_node *)): New.
789         (extern debug (vec<tree, va_gc> &)): New.
790         (extern debug (vec<tree, va_gc> *)): New.
791         * tree-cfg.c
792         (debug (struct loop &)): New.
793         (debug (struct loop *)): New.
794         (debug_verbose (struct loop &)): New.
795         (debug_verbose (struct loop *)): New.
796         * tree-dump.c: Add header dependence.
797         * tree-flow.h
798         (extern debug (struct loop &)): New.
799         (extern debug (struct loop *)): New.
800         (extern debug_verbose (struct loop &)): New.
801         (extern debug_verbose (struct loop *)): New.
802         * tree-data-ref.c
803         (debug (data_reference &)): New.
804         (debug (data_reference *)): New.
805         (debug (vec<data_reference_p> &)): New.
806         (debug (vec<data_reference_p> *)): New.
807         (debug (vec<ddr_p> &)): New.
808         (debug (vec<ddr_p> *)): New.
809         * tree-data-ref.h
810         (extern debug (data_reference &)): New.
811         (extern debug (data_reference *)): New.
812         (extern debug (vec<data_reference_p> &)): New.
813         (extern debug (vec<data_reference_p> *)): New.
814         (extern debug (vec<ddr_p> &)): New.
815         (extern debug (vec<ddr_p> *)): New.
816         * tree-ssa-alias.c
817         (debug (pt_solution &)): New.
818         (debug (pt_solution *)): New.
819         * tree-ssa-alias.h
820         (extern debug (pt_solution &)): New.
821         (extern debug (pt_solution *)): New.
822         * tree-ssa-alias.c
823         (debug (_var_map &)): New.
824         (debug (_var_map *)): New.
825         (debug (tree_live_info_d &)): New.
826         (debug (tree_live_info_d *)): New.
827         * tree-ssa-alias.h
828         (extern debug (_var_map &)): New.
829         (extern debug (_var_map *)): New.
830         (extern debug (tree_live_info_d &)): New.
831         (extern debug (tree_live_info_d *)): New.
833 2013-03-28  Jan Hubicka  <jh@suse.cz>
835         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
837 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
839         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
840         record only when desired or required.
842 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
844         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
845         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
847 2013-03-28   Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
849         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
850         (*andsi3_compare0_uxtw): New pattern.
851         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
852         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
854 2013-03-28  Jan Hubicka  <jh@suse.cz>
856         * data-streamer-in.c (streamer_read_gcov_count): New function.
857         * gimple-streamer-out.c: Include value-prof.h.
858         (output_gimple_stmt): Output histogram.
859         (output_bb): Use streamer_write_gcov_count.
860         * value-prof.c: Include data-streamer.h
861         (dump_histogram_value): Add HIST_TYPE_MAX.
862         (stream_out_histogram_value): New function.
863         (stream_in_histogram_value): New function.
864         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
865         (stream_out_histogram_value, stream_in_histogram_value): Declare.
866         * data-streamer-out.c (streamer_write_gcov_count): New function.
867         (streamer_write_gcov_count_stream): New function.
868         * lto-cgraph.c (lto_output_edge): Update counter streaming.
869         (lto_output_node): Likewise.
870         (input_node, input_edge): Likewise.
871         * lto-streamer-out.c (output_cfg): Update streaming.
872         * lto-streamer-in.c (input_cfg): Likewise.
873         * data-streamer.h (streamer_write_gcov_count,
874         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
875         * gimple-streamer-in.c: Include value-prof.h
876         (input_gimple_stmt): Input histograms.
877         (input_bb): Update profile streaming.
879 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
881         * genmodes.c (emit_max_int): New function.
882         (emit_insn_modes_h): Added call to emit_max_function.
883         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
884         Added doc.
885         * machmode.def: Fixed comment.
887 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
889         * combine.c (try_combine): Removed useless assert.
890         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
892 2013-03-28  Marek Polacek  <polacek@redhat.com>
893             Richard Biener  <rguenther@suse.de>
895         PR tree-optimization/56695
896         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
897         build signed result of a vector comparison.
898         * tree-cfg.c (verify_gimple_comparison): Check that a result
899         of a vector comparison has signed type.
901 2013-03-28  Richard Biener  <rguenther@suse.de>
903         PR tree-optimization/37021
904         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
905         do not restrict gaps between groups.
906         * tree-vect-stmts.c (vectorizable_load): Properly account for
907         a gap between groups.
909 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
911         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
912         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
913         is not enabled.
915 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
917         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
918         * doc/extend.texi (Named Address Spaces): Ditto.
919         (Variable Attributes): Ditto.
921 2013-03-27  Kai Tietz  <ktietz@redhat.com>
923         * config.build: Add support for cygwin x64 target.
924         * config.gcc: Likewise.
925         * config.host: Likewise.
926         * configure.ac: Likewise
927         * configure: Regenerated.
929 2013-03-27 Kai Tietz  <ktietz@redhat.com>
931         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
932         * config/i386/t-cygwin-w64: New file.
933         * config/i386/cygwin-w64.h: New file.
934         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
935         and add support for x64-cygwin target.
936         (CPP_SPEC): Likewise.
937         (CXX_WRAP_SPEC_LIST): Undefine before define.
938         (LIBGCJ_SONAME): Use 15 as version.
940 2013-03-27  Richard Biener  <rguenther@suse.de>
942         PR tree-optimization/56716
943         * tree-ssa-structalias.c (perform_var_substitution): Adjust
944         dumping for ref nodes.
946 2013-03-27  Martin Jambor  <mjambor@suse.cz>
948         PR tree-optimization/55334
949         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
950         restricted pointers to arrays.
952 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
954         * Makefile.in (.SUFFIXES): Add .cc.
955         (.c.o): Apply same recipe for implicit rule .cc.o.
957 2013-03-27  Richard Biener  <rguenther@suse.de>
959         PR tree-optimization/37021
960         * tree-vect-data-refs.c (vect_check_strided_load): Allow
961         REALPART/IMAGPART_EXPRs around the supported refs.
962         * tree-ssa-structalias.c (find_func_aliases): Assume that
963         floating-point values are not used to transfer pointers.
965 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
967         * target.def (TARGET_HAS_IFUNC_P): New target hook.
968         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
969         * doc/tm.texi: Regenerate.
970         * targhooks.h (default_has_ifunc_p): New.
971         * targhooks.c (default_has_ifunc_p): Ditto.
972         * config/linux-protos.h: New file.
973         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
974         this hook for linux which disables support of indirect functions in
975         android.
976         * config/linux-android.c: New file.
977         * config/t-linux-android.c: Ditto.
978         * config.gcc: Added new object file linux-android.o.
979         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
980         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
981         * varasm.c (do_assemble_alias): Likewise.
982         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
983         doesn't support indirect functions.
984         * configure: Regenerate.
986 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
988         PR target/56102
989         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
990         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
991         mult-word mode.
993 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
995         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
997 2013-03-27  Terry Guo  <terry.guo@arm.com>
999         * config/arm/arm-cores.def: Added core cortex-r7.
1000         * config/arm/arm-tune.md: Regenerated.
1001         * config/arm/arm-tables.opt: Regenerated.
1002         * doc/invoke.texi: Added entry for core cortex-r7.
1004 2013-03-27  Walter Lee  <walt@tilera.com>
1006         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1007         double-decrement of next_scratch_regno.
1009 2013-03-27  Walter Lee  <walt@tilera.com>
1011         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1012         input operands.
1013         (insn_v1mulus): Ditto.
1014         (insn_v2muls): Ditto.
1016 2013-03-27  Walter Lee  <walt@tilera.com>
1018         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
1019         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1021 2013-03-27  Walter Lee  <walt@tilera.com>
1023         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1024         (*sibcall_value): Ditto.
1026 2013-03-27  Walter Lee  <walt@tilera.com>
1028         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1029         (insn_mnz_v8qi): ... this ...
1030         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
1031         vector equivalent.
1032         (insn_v<n>mnz): Replaced by ...
1033         (insn_v1mnz): ... this ...
1034         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
1035         equivalent.
1036         (insn_mz_<mode>): Replaced by ...
1037         (insn_mz_v8qi): ... this ...
1038         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
1039         vector equivalent.
1040         (insn_v<n>mz): Replaced by ...
1041         (insn_v1mz): ... this ...
1042         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
1043         equivalent.
1045 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1047         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1049 2013-03-26  Roland McGrath  <mcgrathr@google.com>
1051         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1052         than fprintf with a non-constant, non-format string.
1054 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1056         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
1057         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
1058         operand 0 predicate.
1059         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
1060         attribute.  Use general_x64nomem_operand as operand 1 predicate.
1061         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
1062         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1063         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
1064         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
1065         (mov<mode>_insv_1): Remove expander.  Merge insn with
1066         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
1067         Use general_x64nomem_operand as operand 1 predicate.
1068         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
1069         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
1070         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1071         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
1072         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
1073         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
1074         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
1075         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
1076         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
1077         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
1078         (general_x64nomem_operand): Ditto.
1080 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1082         * config/rtems.opt: Add -pthread option.
1084 2013-03-26  Richard Biener  <rguenther@suse.de>
1086         * alias.c (find_base_term): Avoid redundant and not used recursion.
1087         (base_alias_check): Get the initial base term from the caller.
1088         (true_dependence_1): Compute and pass base terms to base_alias_check.
1089         (write_dependence_p): Likewise.
1090         (may_alias_p): Likewise.
1092 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
1094         * config/aarch64/aarch64.c (aarch64_classify_address): Support
1095         PC-relative load in SI modes and above only.
1097 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
1099         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
1100         * config/arm/iwmmxt.md (WCGR0): Update.
1101         (WCGR1, WCGR2, WCGR3): Likewise.
1103 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
1105         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
1106         Use x64 and nox64 isa attributes.
1108 2013-03-26  Richard Biener  <rguenther@suse.de>
1110         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
1111         alignment computations and rely on get_object_alignment_1
1112         for the !TYPE_P case.
1113         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
1115 2013-03-26  Walter Lee  <walt@tilera.com>
1117         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1118         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1120 2013-03-25  Jeff Law  <law@redhat.com>
1122         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
1123         check for INTEGRAL_TYPE_P that was missing due to checking in
1124         wrong version of prior patch.
1126 2013-03-25  Walter Lee  <walt@tilera.com>
1128         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1129         TILEGX_INSN_SHUFFLEBYTES1.
1130         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1131         shufflebytes1.
1132         (tilegx_builtins): Ditto.
1133         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1135 2013-03-25  Walter Lee  <walt@tilera.com>
1137         * config/tilegx/tilegx.md (floatsisf2): New pattern.
1138         (floatunssisf2): New pattern.
1139         (floatsidf2): New pattern.
1140         (floatunssidf2): New pattern.
1142 2013-03-25  Walter Lee  <walt@tilera.com>
1144         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1145         tests for constraint J, K, N, P.
1147 2013-03-25  Walter Lee  <walt@tilera.com>
1149         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1150         Use indirect/pcrel encoding.
1151         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1152         Ditto.
1154 2013-03-25  Steve Ellcey  <sellcey@mips.com>
1156         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
1157         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
1158         * config/mips/mips.c (mips_option_override): Set IMADD default.
1159         * config/mips/mips.h (PTF_AVOID_IMADD): New.
1160         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
1161         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
1162         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
1163         * doc/invoke.texi (-mimadd/-mno-imadd): New.
1165 2013-03-25  Jeff Law  <law@redhat.com>
1167         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
1168         slightly to avoid creating and folding useless trees.  Simplify
1169         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
1171 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
1173         * config/i386/i386.md (*zero_extendsidi2): Merge with
1174         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
1175         * config/i386/predicates.md (x86_64_zext_operand): Rename from
1176         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
1177         targets.  Clarify comment.
1179 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1181         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
1182         pass-through jump functions differently.
1183         (ipa_read_jump_function): Likewise.  Also use setter functions to set
1184         up jump functions.
1186 2013-03-25  Martin Jambor  <mjambor@suse.cz>
1188         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
1189         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
1190         process it.
1191         (ipa_get_indirect_edge_target): New function.
1192         (devirtualization_time_bonus): New parameter known_aggs, pass it to
1193         ipa_get_indirect_edge_target.  Update all callers.
1194         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
1195         ipa_get_indirect_edge_target_1 instead of calling
1196         ipa_get_indirect_edge_target.
1197         (create_specialized_node): Pass aggvlas to
1198         ipcp_discover_new_direct_edges.
1200 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1202         * config/arm/arm.md (f_sels, f_seld): New types.
1203         (*cmov<mode>): New pattern.
1204         * config/arm/predicates.md (arm_vsel_comparison_operator): New
1205         predicate.
1207 2013-03-25  Kai Tietz  <ktietz@redhat.com>
1209         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
1210         POSIX-printf for mingw-hosted  builds.
1212 2013-03-25  Richard Biener  <rguenther@suse.de>
1214         PR middle-end/56694
1215         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1216         must-not-throw stmt location.
1218 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1220         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
1221         Emit load-acquire versions when acq is true.
1222         (arm_emit_store_exclusive): Add rel parameter.
1223         Emit store-release versions when rel is true.
1224         (arm_split_compare_and_swap): Use acquire-release instructions
1225         instead.
1226         of barriers when appropriate.
1227         (arm_split_atomic_op): Likewise.
1228         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
1229         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
1230         (VUNSPEC_SLX): Likewise.
1231         (VUNSPEC_LDA): Likewise.
1232         (VUNSPEC_STL): Likewise.
1233         * config/arm/sync.md (atomic_load<mode>): New pattern.
1234         (atomic_store<mode>): Likewise.
1235         (arm_load_acquire_exclusive<mode>): Likewise.
1236         (arm_load_acquire_exclusivesi): Likewise.
1237         (arm_load_acquire_exclusivedi): Likewise.
1238         (arm_store_release_exclusive<mode>): Likewise.
1240 2013-03-25  Catherine Moore  <clm@codesourcery.com>
1242         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
1243         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
1244         * config/mip/predicates.md (lwsp_swsp_operand,
1245         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
1246         sb16_operand, db4_operand, db7_operand, ib3_operand,
1247         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
1248         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
1249         andi16_operand): New predicates.
1250         * config/mips/mips.md (compression): New attribute.
1251         (enabled): New attribute.
1252         (length): Consider compression in computing length.
1253         (shift_compression): New code attribute.
1254         (*add<mode>3): New operands. Record compression.
1255         (sub<mode>3): Likewise.
1256         (one_cmpl<mode>2): Likewise.
1257         (*and<mode>3): Likewise.
1258         (*ior<mode>3): Likewise.
1259         (unnamed pattern for xor): Likewise.
1260         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
1261         (*<optab><mode>3): Likewise.
1262         (*mov<mode>_internal: Likewise.
1263         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
1264         (mips_unsigned_immediate_p): New.
1265         (umips_lwsp_swsp_address_p): New.
1266         (m16_based_address_p): New.
1267         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
1268         (mips_unsigned_immediate_p): New prototype.
1269         (lwsp_swsp_address_p): New prototype.
1270         (m16_based_address_p): New prototype.
1271         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
1272         (mips_signed_immediate_p): New function.
1273         (m16_based_address_p): New function.
1274         (lwsp_swsp_address_p): New function.
1275         (mips_print_operand_punctuation): Recognize short delay slot insns
1276         for microMIPS.add<mode>3"
1278 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1280         PR target/56720
1281         * config/arm/iterators.md (v_cmp_result): New mode attribute.
1282         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1284 2013-03-25  Richard Biener  <rguenther@suse.de>
1286         PR tree-optimization/56689
1287         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
1288         any edge.
1290 2013-03-25  Richard Biener  <rguenther@suse.de>
1292         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
1293         of bitmap.
1294         (memory_references): Likewise.
1295         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
1296         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
1297         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
1298         (gather_mem_refs_in_loops): Fold into ...
1299         (analyze_memory_references): ... this.  Move initialization
1300         to tree_ssa_lim_initialize.
1301         (fill_always_executed_in): Rename to ...
1302         (fill_always_executed_in_1): ... this.
1303         (fill_always_executed_in): Move contains_call computation to
1304         this new function from ...
1305         (tree_ssa_lim_initialize): ... here.
1306         (tree_ssa_lim): Call fill_always_executed_in.
1308 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1310         * postreload.c (reload_combine): Fix code detecting returns.
1312 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
1314         * function.c (emit_use_return_register_into_block): On cc0 targets,
1315         do not emit the sequence between cc0 setter and user.
1317 2013-03-25  Kai Tietz  <ktietz@redhat.com>
1319         * config/i386/predicates.md (local_symbolic_operand): Interpret
1320         dll-imported symbols as none-local.
1322 2013-03-25  Richard Biener  <rguenther@suse.de>
1324         * tree-ssa-loop-im.c (struct depend): Remove.
1325         (struct lim_aux_data): Make depends a vec of gimples.
1326         (free_lim_aux_data): Adjust.
1327         (add_dependency): Likewise.
1328         (set_level): Likewise.
1330 2013-03-25  Richard Biener  <rguenther@suse.de>
1332         PR middle-end/56434
1333         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
1334         the pointer returned by calls with ECF_MALLOC set.
1336 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
1338         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
1340 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
1342         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
1343         using MMXMODE mode iterator.
1344         (*move<mode>_internal): Merge with *movv2sf_internal and
1345         *movv2sf_internal_rex64 using MMXMODE mode iterator.
1347 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
1349         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
1350         (record_last_mem_set_info): Likewise.
1352         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
1353         of XNEWVEC followed by memset.
1354         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
1356 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
1358         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
1359         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
1360         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
1361         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
1362         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
1363         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
1364         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
1365         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
1366         BARRIER_P instead of GET_CODE.
1368 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1370         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
1371         inaccuracy in the probing code.
1373         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
1374         (ctrapdi4): Likewise.
1376 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1378         * calls.c (expand_call): Add missing guard to code handling return
1379         of non-BLKmode structures in MSB.
1380         * function.c (expand_function_end): Likewise.
1382 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
1384         * combine.c (try_combine): Adjust comment.  Do not add the set of
1385         insn #0 if the destination indirectly is set or dies in insn #2.
1386         Tidy up code to distribute a new note.
1388 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
1390         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
1391         also for alternatives 16 and 17.
1393 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
1395         * config/i386/sse.md (*mov<mode>_internal): Merge with
1396         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
1397         Emit insn template depending on type attribute.  Use
1398         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1399         movd instead of movq mnemonic for interunit moves.  Rewrite mode
1400         attribute calculation.  Remove unit attribute calculation.
1401         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
1402         Set prefix_data16 attribute for DImode ssemov types.
1403         Use Ym instead of y for SSE-MMX conversion alternatives.
1404         Reorder operand constraints.
1406 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
1408         * df.h (df_insn_delete): Adjust prototype.
1409         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
1410         and let it decide whether mark the basic block dirty.
1411         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
1412         * df-scan.c (df_insn_info_delete): New helper function, split
1413         off from df_insn_delete.
1414         (df_scan_free_bb_info): Use it.
1415         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
1416         Likewise.
1417         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
1418         that the insn is actually an insn and it has a non-NULL basic block.
1419         Do not mark basic block dirty if only deleting a DEBUG_INSN.
1421 2013-03-22  Richard Biener  <rguenther@suse.de>
1423         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
1424         dep_ref members.
1425         (mem_ref_alloc): Do not allocate them.
1426         (refs_independent_p): Do not query or maintain a cache.
1428 2013-03-22  Richard Biener  <rguenther@suse.de>
1430         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
1431         (gather_mem_refs_in_loops): Do not compute it.
1432         (analyze_memory_references): Do not allocate it.
1433         (tree_ssa_lim_finalize): Do not free it.
1434         (for_all_locs_in_loop): Do not query all_refs_in_loop.
1436 2013-03-22  Richard Biener  <rguenther@suse.de>
1438         * is-a.h (as_a): Use gcc_checking_assert.
1440 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
1442         * config/aarch64/aarch64.c (aarch64_print_operand): New
1443         format specifier for printing a constant in hex.
1444         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1445         format specifier for printing second operand.
1447 2013-03-22  Richard Biener  <rguenther@suse.de>
1449         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
1450         bitmaps.
1451         (gather_mem_refs_in_loops): Perform store accumulation here.
1452         (create_vop_ref_mapping_loop): Remove.
1453         (create_vop_ref_mapping): Likewise.
1454         (analyze_memory_references): Initialize refs_stored_in_loop.
1455         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
1456         (record_indep_loop): Remove.
1457         (record_dep_loop): New function.
1458         (ref_indep_loop_p_1): Adjust to only walk over references
1459         in the loop, not its subloops.
1460         (ref_indep_loop_p): Rename to ...
1461         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
1462         maintaining a more fine-grained cache.
1463         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
1464         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
1466 2013-03-22  Richard Biener  <rguenther@suse.de>
1468         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
1469         (struct mem_ref): Make accesses_in_loop a vec of a vec of
1470         aggregate mem_ref_loc.
1471         (free_mem_ref_locs): Inline into ...
1472         (memref_free): ... this and adjust.
1473         (mem_ref_alloc): Adjust.
1474         (mem_ref_locs_alloc): Remove.
1475         (record_mem_ref_loc): Adjust.
1476         (get_all_locs_in_loop): Rewrite into ...
1477         (for_all_locs_in_loop): ... this iterator.
1478         (rewrite_mem_ref_loc): New functor.
1479         (rewrite_mem_refs): Use for_all_locs_in_loop.
1480         (sm_set_flag_if_changed): New functor.
1481         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
1482         (ref_always_accessed): New functor.
1483         (ref_always_accessed_p): Use for_all_locs_in_loop.
1485 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1487         * tree-pass.h (PROP_gimple_lvec): New.
1488         * passes.c (dump_properties): Handle PROP_gimple_lvec.
1489         (init_optimization_passes): Move pass_lower_vector.
1490         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
1491         PROP_gimple_lvec.
1492         (pass_lower_vector): Provide PROP_gimple_lvec.
1493         (pass_lower_vector_ssa): Likewise.
1494         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
1496 2013-03-21  Mark Wielaard  <mjw@redhat.com>
1498         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1500 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
1502         * config/i386/i386.md (*movdi_internal): Disparage slightly
1503         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
1504         conversion alternatives.
1506 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
1508         PR middle-end/48087
1509         * diagnostic.def (DK_WERROR): New kind.
1510         * diagnostic.h (werrorcount): Define.
1511         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
1512         promoted to DK_ERROR, increment DK_WERROR counter instead of
1513         DK_ERROR counter.
1514         * toplev.c (toplev_main): Call print_ignored_options even if
1515         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
1516         even if just werrorcount is non-zero.
1518         PR debug/55608
1519         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
1520         on failure.
1521         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
1522         (string_cst_pool_decl): New function.
1523         (optimize_one_addr_into_implicit_ptr): New function.
1524         (resolve_addr_in_expr): Optimize DWARF location expression
1525         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
1526         which doesn't live in memory, but has DW_AT_location or
1527         DW_AT_const_value, or refers to a string literal, into
1528         DW_OP_GNU_implicit_pointer.
1529         (optimize_location_into_implicit_ptr): New function.
1530         (resolve_addr): If removing DW_AT_location of a variable because
1531         it was DW_OP_addr of address of the variable, but the variable doesn't
1532         live in memory, try to emit const value attribute for the initializer.
1534 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1536         * tree.h (VECTOR_TYPE_P): New macro.
1537         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
1538         TYPE_MODE): Use it.
1539         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
1540         VEC_COND_EXPR cannot be lvalues.
1541         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
1543 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
1545         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
1546         Restrict the transformation to equal modes.
1548 2013-03-21  Richard Biener  <rguenther@suse.de>
1550         PR tree-optimization/39326
1551         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
1552         (MEM_ANALYZABLE): Adjust.
1553         (record_mem_ref_loc): Move bitmap ops ...
1554         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
1555         unanalyzable refs, do not record locations for it.
1556         (analyze_memory_references): Allocate ref zero as shared
1557         unanalyzable ref.
1558         (refs_independent_p): Do not test for unanalyzed mems here.
1559         (ref_indep_loop_p_1): Special-case disambiguation against
1560         the unanalyzed ref.
1561         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
1563 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
1565         * config/arm/arm-protos.h (tune_params): Add
1566         prefer_neon_for_64bits field.
1567         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
1568         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
1569         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1570         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1571         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
1572         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1573         (arm_option_override): Handle -mneon-for-64bits new option.
1574         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
1575         (prefer_neon_for_64bits): Declare new variable.
1576         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
1577         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
1578         (arch_enabled): Handle new arch types. Remove support for onlya8
1579         and nota8.
1580         (one_cmpldi2): Use new arch names.
1581         (zero_extend<mode>di2, extend<mode>di2): Ditto.
1582         * config/arm/arm.opt (mneon-for-64bits): Add option.
1583         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
1584         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
1585         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
1586         of onlya8.
1587         * doc/invoke.texi (-mneon-for-64bits): Document.
1589 2013-03-21  Richard Biener  <rguenther@suse.de>
1591         PR tree-optimization/39326
1592         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
1593         (sort_bbs_in_loop_postorder_cmp): New function.
1594         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
1596 2013-03-21  Richard Biener  <rguenther@suse.de>
1598         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
1599         (vect_insert_into_interleaving_chain): Likewise.
1600         (vect_drs_dependent_in_basic_block): Inline ...
1601         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
1602         split out from ...
1603         (vect_analyze_data_ref_dependence): ... here.  Simplify.
1604         (vect_check_interleaving): Simplify.
1605         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
1606         (vect_slp_analyze_data_ref_dependences): ... this new function.
1607         (dr_group_sort_cmp): New function.
1608         (vect_analyze_data_ref_accesses): Compute data-reference groups
1609         here instead of in vect_analyze_data_ref_dependence.  Use
1610         a more efficient algorithm.
1611         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
1612         vect_slp_analyze_data_ref_dependences.  Call
1613         vect_analyze_data_ref_accesses earlier.
1614         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1615         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
1616         (vect_slp_analyze_data_ref_dependences): New prototype.
1618 2013-03-21  Richard Biener  <rguenther@suse.de>
1620         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
1621         ref is stored in the loop.
1622         (find_refs_for_sm): Walk only over all stores.
1623         (store_motion_loop): Allocate from lim_bitmap_obstack.
1624         (store_motion): Likewise.
1626 2013-03-21  Richard Biener  <rguenther@suse.de>
1628         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
1629         Update virtual SSA form.
1631 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1633         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
1634         * configure: Regenerate.
1635         * config.in: Regenerate.
1636         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
1637         if !HAVE_LD_EH_FRAME_CIEV3.
1639 2013-03-21  Richard Biener  <rguenther@suse.de>
1641         * tree-cfg.c (verify_expr_no_block): New function.
1642         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
1643         nor DECL_VALUE_EXPR have locations with associated blocks.
1644         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
1645         (clear_unused_block_pointer): Remove code dealing with
1646         blocks in DECL_DEBUG_EXPR locations.
1648 2013-03-21  Richard Biener  <rguenther@suse.de>
1650         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
1651         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
1652         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
1653         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
1654         instead of DECL_DEBUG_EXPR_IS_FROM.
1655         * gimplify.c (gimplify_modify_expr): Likewise.
1656         * tree-cfg.c (verify_expr_location_1): Likewise.
1657         * tree-complex.c (create_one_component_var): Likewise.
1658         * tree-sra.c (create_access_replacement): Likewise.
1659         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
1660         (clear_unused_block_pointer): Likewise.
1661         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1662         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1663         * var-tracking.c (var_debug_decl): Likewise.
1664         (track_expr_p): Likewise.
1665         * tree-inline.c (add_local_variables): Likewise.  Set
1666         DECL_HAS_DEBUG_EXPR_P after copying it.
1667         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1668         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
1670 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
1672         PR bootstrap/56656
1673         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
1674         * configure: Regenerate.
1675         * config.in: Regenerate.
1676         * config/i386/i386.md (*movdf_internal): Use
1677         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
1678         movd instead of movq mnemonic for interunit moves.
1679         (*movdi_internal): Ditto.
1681 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1683         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
1684         (abd<mode>_3): New pattern.
1685         (aba<mode>_3): New pattern.
1686         (fabd<mode>_3): New pattern.
1688 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1690         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
1691         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
1692         occurrence of REGISTER_PREFIX as its empty string.
1694 2013-03-20  Jeff Law  <law@redhat.com>
1696         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
1697         addititional equivalences for equality comparisons between an SSA_NAME
1698         and a constant where the SSA_NAME was set from a widening conversion.
1700 2013-03-20  Walter Lee  <walt@tilera.com>
1702         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1704 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
1706         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
1707         depending on type attribute.
1708         (*movti_internal): Ditto.
1709         (*movtf_internal): Ditto.
1710         (*movxf_internal): Ditto.
1711         (*movdf_internal): Ditto.
1712         (*movsf_internal): Ditto.
1714 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
1716         * config/i386/i386.md (*movti_internal): Set prefix attribute to
1717         maybe_vex for sselog1 and ssemov types.
1718         (*movdi_internal): Reorder operand constraints.
1719         (*movsi_internal): Ditto.  Set prefix attribute to
1720         maybe_vex for sselog1 and ssemov types.
1721         (*movtf_internal): Set prefix attribute to maybe_vex
1722         for sselog1 and ssemov types.
1723         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
1724         DImode ssemov types.  Reorder operand constraints.
1725         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
1726         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
1727         attribute for SImode ssemov types.  Reorder operand constraints.
1729 2013-03-20  Martin Jambor  <mjambor@suse.cz>
1731         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
1732         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
1734 2013-03-20  Pat Haugen <pthaugen@us.ibm.com>
1736         * config/rs6000/predicates.md (indexed_address, update_address_mem
1737         update_indexed_address_mem): New predicates.
1738         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
1739         attribute for load/store instructions.
1740         * config/rs6000/dfp.md (movsd_store): Likewise.
1741         (movsd_load): Likewise.
1742         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
1743         (unnamed HI->DI extend define_insn): Likewise.
1744         (unnamed SI->DI extend define_insn): Likewise.
1745         (unnamed QI->SI extend define_insn): Likewise.
1746         (unnamed QI->HI extend define_insn): Likewise.
1747         (unnamed HI->SI extend define_insn): Likewise.
1748         (unnamed HI->SI extend define_insn): Likewise.
1749         (extendsfdf2_fpr): Likewise.
1750         (movsi_internal1): Likewise.
1751         (movsi_internal1_single): Likewise.
1752         (movhi_internal): Likewise.
1753         (movqi_internal): Likewise.
1754         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
1755         attribute for load/store instructions.
1756         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
1757         instructions.
1758         (mov<mode>_softfloat): Likewise.
1759         (mov<mode>_hardfloat32): Likewise.
1760         (mov<mode>_hardfloat64): Likewise.
1761         (mov<mode>_softfloat64): Likewise.
1762         (movdi_internal32): Likewise.
1763         (movdi_internal64): Likewise.
1764         (probe_stack_<mode>): Likewise.
1766 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1768         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
1769         floating point, and decimal floating point to reload iterator.
1771         * config/rs6000/constraints.md (wl constraint): New constraints to
1772         return FLOAT_REGS if certain options are used to reduce the number
1773         of separate patterns that exist in the file.
1774         (wx constraint): Likewise.
1775         (wz constraint): Likewise.
1777         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1778         -mdebug=reg, print wg, wl, wx, and wz constraints.
1779         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1780         Initialize the reload functions for 64-bit binary/decimal floating
1781         point types.
1782         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1783         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1784         create the buffer on the stack to overcome not having a 32-bit
1785         load and store.
1786         (rs6000_emit_move): Likewise.
1787         (rs6000_secondary_memory_needed_rtx): Likewise.
1788         (rs6000_alloc_sdmode_stack_slot): Likewise.
1789         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1790         via xxlxor, just like DFmode 0.0.
1792         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
1793         define as 1 if we are running on a power7 or newer.
1794         (enum r6000_reg_class_enum): Add new constraints.
1796         * config/rs6000/dfp.md (movsd): Delete, combine with binary
1797         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
1798         with other moves by using conditional constraits (wg).  Use LFIWZX
1799         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
1800         (movsd splitter): Likewise.
1801         (movsd_hardfloat): Likewise.
1802         (movsd_softfloat): Likewise.
1804         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
1805         binary and decimal floating point moves.
1806         (fmove_ok): New attributes to combine binary and decimal floating
1807         point moves, and to combine power6x (mfpgpr) moves along normal
1808         floating moves.
1809         (real_value_to_target): Likewise.
1810         (f32_lr): Likewise.
1811         (f32_lm): Likewise.
1812         (f32_li): Likewise.
1813         (f32_sr): Likewise.
1814         (f32_sm): Likewise.
1815         (f32_si): Likewise.
1816         (movsf): Combine binary and decimal floating point moves.  Combine
1817         power6x (mfpgpr) moves with other moves by using conditional
1818         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
1819         (mov<mode> for SFmode/SDmode); Likewise.
1820         (SFmode/SDmode splitters): Likewise.
1821         (movsf_hardfloat): Likewise.
1822         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
1823         (movsf_softfloat): Likewise.
1824         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
1826         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
1827         wx and wz constraints.
1829         * config/rs6000/constraints.md (wg constraint): New constraint to
1830         return FLOAT_REGS if -mmfpgpr (power6x) was used.
1832         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
1833         constraint.
1835         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
1836         -mdebug=reg, print wg, wl, wx, and wz constraints.
1837         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
1838         Initialize the reload functions for 64-bit binary/decimal floating
1839         point types.
1840         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
1841         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
1842         create the buffer on the stack to overcome not having a 32-bit
1843         load and store.
1844         (rs6000_emit_move): Likewise.
1845         (rs6000_secondary_memory_needed_rtx): Likewise.
1846         (rs6000_alloc_sdmode_stack_slot): Likewise.
1847         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
1848         via xxlxor, just like DFmode 0.0.
1850         * config/rs6000/dfp.md (movdd): Delete, combine with binary
1851         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
1852         with other moves by using conditional constraits (wg).  Use LFIWZX
1853         and STFIWX for loading SDmode on power7.
1854         (movdd splitters): Likewise.
1855         (movdd_hardfloat32): Likewise.
1856         (movdd_softfloat32): Likewise.
1857         (movdd_hardfloat64_mfpgpr): Likewise.
1858         (movdd_hardfloat64): Likewise.
1859         (movdd_softfloat64): Likewise.
1861         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
1862         64-bit binary and decimal floating point moves.
1863         (FMOVE64X): Likewise.
1864         (movdf): Combine 64-bit binary and decimal floating point moves.
1865         Combine power6x (mfpgpr) moves with other moves by using
1866         conditional constraits (wg).
1867         (mov<mode> for DFmode/DDmode): Likewise.
1868         (DFmode/DDmode splitters): Likewise.
1869         (movdf_hardfloat32): Likewise.
1870         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
1871         (movdf_softfloat32): Likewise.
1872         (movdf_hardfloat64_mfpgpr): Likewise.
1873         (movdf_hardfloat64): Likewise.
1874         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
1875         (movdf_softfloat64): Likewise.
1876         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
1877         (reload_<mode>_load): Move to later in the file so they aren't in
1878         the middle of the floating point move insns.
1879         (reload_<mode>_store): Likewise.
1881         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
1882         constraint.
1884         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
1885         constraint if -mdebug=reg.
1886         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
1887         Enable using dd reload support if needed.
1889         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
1890         binary and decimal floating point moves in rs6000.md.
1891         (movtd_internal): Likewise.
1893         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
1894         decimal floating point moves.
1895         (movtf): Likewise.
1896         (movtf_internal): Likewise.
1897         (mov<mode>_internal, TDmode/TFmode): Likewise.
1898         (movtf_softfloat): Likewise.
1899         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
1901         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
1902         movdi_internal64, using wg constraint for move direct operations.
1903         (movdi_internal64): Likewise.
1905         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
1906         MODES_TIEABLE_P for selected modes.  Print the numerical value of
1907         the various virtual registers. Use GPR/FPR first/last values,
1908         instead of hard coding the register numbers.  Print which modes
1909         have reload functions registered.
1910         (rs6000_option_override_internal): If -mdebug=reg, trace the options
1911         settings before/after setting cpu, target and subtarget settings.
1912         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
1913         and for secondary reload failures in rs6000_secondary_reload_inner.
1914         (rs6000_secondary_reload_fail): Likewise.
1915         (rs6000_secondary_reload_inner): Likewise.
1917         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
1918         macros for first/last GPR and FPR registers.
1919         (LAST_GPR_REGNO): Likewise.
1920         (FIRST_FPR_REGNO): Likewise.
1921         (LAST_FPR_REGNO): Likewise.
1923         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
1924         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
1925         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
1926         (vcond<mode><mode>): Likewise.
1927         (vcondu<mode><mode>): Likewise.
1928         (vector_gtu<mode>): Likewise.
1929         (vector_gte<mode>): Likewise.
1930         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
1931         to prevent the compiler from converting DImode operations to TImode.
1932         (ior<mode>3): Likewise.
1933         (and<mode>3): Likewise.
1934         (one_cmpl<mode>2): Likewise.
1935         (nor<mode>3): Likewise.
1936         (andc<mode>3): Likewise.
1938         * config/rs6000/constraints.md (wt constraint): New constraint
1939         that returns VSX_REGS if TImode is allowed in VSX registers.
1941         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
1942         constant under VSX.
1944         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
1945         similar to TImode, but it is restricted to being in the GPRs.
1947         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
1948         TImode to occupy a single VSX register.
1950         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
1951         -mvsx-timode for power7/power8.
1952         (power7 cpu): Likewise.
1953         (power8 cpu): Likewise.
1955         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
1956         sure that TFmode/TDmode take up two registers if they are ever
1957         allowed in the upper VSX registers.
1958         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
1959         registers.
1960         (rs6000_init_hard_regno_mode_ok): Likewise.
1961         (rs6000_debug_reg_global): Add debugging for PTImode and wt
1962         constraint.  Print if LRA is turned on.
1963         (rs6000_option_override_internal): Give an error if -mvsx-timode
1964         and VSX is not enabled.
1965         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
1966         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1967         to reg+offset addressing.  Use PTImode when checking offset
1968         addresses for validity.
1969         (reg_offset_addressing_ok_p): Likewise.
1970         (rs6000_legitimate_offset_address_p): Likewise.
1971         (rs6000_legitimize_address): Likewise.
1972         (rs6000_legitimize_reload_address): Likewise.
1973         (rs6000_legitimate_address_p): Likewise.
1974         (rs6000_eliminate_indexed_memrefs): Likewise.
1975         (rs6000_emit_move): Likewise.
1976         (rs6000_secondary_reload): Likewise.
1977         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
1978         reloads to fpr registers to continue to use reg+offset addressing,
1979         but 64-bit reloads to altivec registers need reg+reg addressing.
1980         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1981         it.  Treat LO_SUM like a PLUS operation.
1982         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1983         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1984         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1985         registers to share a register with a smaller sized type, since VSX
1986         puts scalars in the upper 64-bits.
1987         (print_operand): Add support for PTImode.
1988         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1989         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1990         registers, but don't have arithmetic support.
1991         (rs6000_memory_move_cost): Add test for VSX.
1992         (rs6000_opt_masks): Add -mvsx-timode.
1994         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1995         for TImode.
1996         (VSs): Likewise.
1997         (VSr): Use wt constraint for TImode.
1998         (VSv): Drop TImode support.
1999         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
2000         (vsx_movti_64bit): Likewise.
2001         (vsx_movti_32bit): Likewise.
2002         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
2003         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
2004         one '?' on the appropriate output constraint.  Do not allow TImode
2005         logical operations on 32-bit systems.
2006         (vsx_ior<mode>3): Likewise.
2007         (vsx_xor<mode>3): Likewise.
2008         (vsx_one_cmpl<mode>2): Likewise.
2009         (vsx_nor<mode>3): Likewise.
2010         (vsx_andc<mode>3): Likewise.
2011         (vsx_concat_<mode>): Likewise.
2012         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
2014         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
2015         OPTION_MASK_VSX_TIMODE.
2016         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
2017         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
2019         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
2020         (TI2 iterator): New iterator for TImode, PTImode.
2021         (wd mode attribute): Add values for vector types.
2022         (movti_string): Replace TI move operations with operations for TImode
2023         and PTImode.  Add support for TImode being allowed in VSX registers.
2024         (mov<mode>_string, TImode/PTImode): Likewise.
2025         (movti_ppc64): Likewise.
2026         (mov<mode>_ppc64, TImode/PTImode): Likewise.
2027         (TI mode splitters): Likewise.
2029         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
2030         constraint.
2032 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
2034         PR tree-optimization/56355
2035         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
2036         Also handle integers with undefined overflow.
2038 2013-03-20  Catherine Moore  <clm@codesourcery.com>
2039             Maciej W. Rozycki  <macro@codesourcery.com>
2040             Tom de Vries  <tom@codesourcery.com>
2041             Nathan Sidwell <nathan@codesourcery.com>
2042             Iain Sandoe  <iain@codesourcery.com>
2043             Nathan Froyd  <froydnj@codesourcery.com>
2044             Chao-ying Fu <fu@mips.com>
2046         * doc/extend.texi: (micromips, nomicromips, nocompression):
2047         Document new function attributes.
2048         * doc/invoke.texi (minterlink-compressed, mmicromips,
2049         m14k, m14ke, m14kec): Document new options.
2050         (minterlink-mips16): Update documentation.
2051         * doc/md.texi (ZC, ZD): Document new constraints.
2052         * configure.ac (gcc_cv_as_micromips): Check if linker
2053         supports the .set micromips directive.
2054         * configure: Regenerate.
2055         * config.in: Regenerate.
2056         * config/mips/mips-tables.opt: Regenerate.
2057         * config/mips/micromips.md: New file.
2058         * constraints.md (ZC, ZD): New constraints.
2059         * config/mips/predicates.md (movep_src_register): New predicate.
2060         (movep_src_operand): New predicate.
2061         (non_volatile_mem_operand): New predicate.
2062         * config/mips/mips.md (multimem): New type.
2063         (length): Differentiate between 17-bit and 18-bit branch offsets.
2064         (MOVEP1, MOVEP2): New mode iterator.
2065         (mov_<load>l): Use ZC constraint.
2066         (mov_<load>r): Likewise.
2067         (mov_<store>l): Likewise.
2068         (mov_<store>r): Likewise.
2069         (*branch_equality<mode>_inverted): Add microMIPS support.
2070         (*branch_equality<mode>): Likewise.
2071         (*jump_absolute): Likewise.
2072         (indirect_jump_<mode>): Likewise.
2073         (tablejump_<mode>): Likewise.
2074         (<optab>_internal): Likewise.
2075         (sibcall_internal): Likewise.
2076         (sibcall_value_internal): Likewise.
2077         (prefetch): Use constraint ZD.
2078         * config/mips/mips.opt (minterlink-compressed): New option.
2079         (minterlink-mips16): Now an alias for minterlink-compressed.
2080         (mmicromips): New option.
2081         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2082         (compare_and_swap_12): Likewise.
2083         (sync_add<mode>): Likewise.
2084         (sync_<optab>_12): Likewise.
2085         (sync_old_<optab>_12): Likewise.
2086         (sync_new_<optab>_12): Likewise.
2087         (sync_nand_12): Likewise.
2088         (sync_old_nand_12): Likewise.
2089         (sync_new_nand_12): Likewise.
2090         (sync_sub<mode>): Likewise.
2091         (sync_old_add<mode>): Likewise.
2092         (sync_old_sub<mode>): Likewise.
2093         (sync_new_add<mode>): Likewise.
2094         (sync_new_sub<mode>): Likewise.
2095         (sync_<optab><mode>): Likewise.
2096         (sync_old_<optab><mode>): Likewise.
2097         (sync_new_<optab><mode>): Likewise.
2098         (sync_nand<mode>): Likewise.
2099         (sync_old_nand<mode>): Likewise.
2100         (sync_new_nand<mode>): Likewise.
2101         (sync_lock_test_and_set<mode>): Likewise.
2102         (test_and_set_12): Likewise.
2103         (atomic_compare_and_swap<mode>): Likewise.
2104         (atomic_exchange<mode>_llsc): Likewise.
2105         (atomic_fetch_add<mode>_llsc): Likewise.
2106         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2107         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2108         (umips_save_restore_pattern_p): Likewise.
2109         (umips_load_store_pair_p): Likewise.
2110         (umips_output_load_store_pair): Likewise.
2111         (umips_movep_target_p): Likewise.
2112         (umips_12bit_offset_address_p): Likewise.
2113         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2114         (mips_base_mips16): Rename this...
2115         (mips_base_compression_flags): ...to this. Update all uses.
2116         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2117         (mips_mips16_decl_p): Delete.
2118         (mips_nomips16_decl_p): Delete.
2119         (mips_get_compress_on_flags): New function.
2120         (mips_get_compress_off_flags): New function.
2121         (mips_get_compress_mode): New function.
2122         (mips_get_compress_on_name): New function.
2123         (mips_get_compress_off_name): New function.
2124         (mips_insert_attributes): Support multiple compression types.
2125         (mips_merge_decl_attributes): Likewise.
2126         (umips_12bit_offset_address_p): New function.
2127         (mips_start_function_definition): Emit .set micromips directive.
2128         (mips_call_may_need_jalx_p): New function.
2129         (mips_function_ok_for_sibcall): Add microMIPS support.
2130         (mips_print_operand_punctuation): Support short delay slots and
2131         compact jumps.
2132         (umips_swm_mask, umips_swm_encoding): New.
2133         (umips_build_save_restore): New function.
2134         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2135         (was_mips16_p): Remove.
2136         (old_compression_mode): New.
2137         (mips_set_compression_mode): New function.
2138         (mips_set_current_function): Add microMIPS support.
2139         (mips_option_override): Likewise.
2140         (umips_save_restore_pattern_p): New function.
2141         (umips_output_save_restore): New function.
2142         (umips_load_store_pair_p_1): New function.
2143         (umips_load_store_pair_p): New function.
2144         (umips_output_load_store_pair_1): New function.
2145         (umips_output_load_store_pair): New function.
2146         (umips_movep_target_p) New function.
2147         (mips_prepare_pch_save): Add microMIPS support.
2148         * config/mips/mips.h (TARGET_COMPRESSION): New.
2149         (TARGET_CPU_CPP_BUILTINS): Update macro
2150         to use new compression flags and to support microMIPS.
2151         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2152         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2153         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2154         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2155         (ASM_SPEC): Support mmicromips and mno-micromips.
2156         (M16STORE_REG_P): New macro.
2157         (MIPS_CALL): Support TARGET_MICROMIPS.
2158         (MICROMIPS_J): New macro.
2159         (mips_base_mips16): Rename this...
2160         (mips_base_compression_flags): ...to this.
2161         (UMIPS_12BIT_OFFSET_P): New macro.
2162         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2163         (MULTILIB_DIRNAMES): Likewise.
2164 2013-03-20  Richard Biener  <rguenther@suse.de>
2166         PR tree-optimization/56661
2167         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
2168         the result does not have to be distinct.
2170 2013-03-20  Richard Biener  <rguenther@suse.de>
2172         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
2173         remap_gimple_op_r.
2175 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2176             Steven Bosscher <steven@gcc.gnu.org>
2178         PR rtl-optimization/56605
2179         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
2181 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
2183         PR bootstrap/56656
2184         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
2185         that require movd instead of movq.
2187 2013-03-20  Richard Biener  <rguenther@suse.de>
2189         * tree-ssa-structalias.c (struct variable_info): Add pointer
2190         to the first field of an aggregate with sub-vars.  Make
2191         this and the pointer to the next subfield its ID.
2192         (vi_next): New function.
2193         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
2194         storedanything_id, integer_id): Increment by one.
2195         (new_var_info, get_call_vi, lookup_call_clobber_vi,
2196         get_call_clobber_vi): Adjust.
2197         (solution_set_expand): Simplify and speedup.
2198         (solution_set_add): Inline into ...
2199         (set_union_with_increment): ... this.  Adjust accordingly.
2200         (do_sd_constraint): Likewise.
2201         (do_ds_constraint): Likewise.
2202         (do_complex_constraint): Simplify.
2203         (build_pred_graph): Adjust.
2204         (solve_graph): Likewise.  Simplify and speedup.
2205         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
2206         get_constraint_for_component_ref, get_constraint_for_1,
2207         first_vi_for_offset, first_or_preceding_vi_for_offset,
2208         create_function_info_for, create_variable_info_for_1,
2209         create_variable_info_for, intra_create_variable_infos): Adjust.
2210         (init_base_vars): Push NULL for ID zero.
2211         (compute_points_to_sets): Adjust.
2213 2013-03-20  Richard Biener  <rguenther@suse.de>
2215         * cfgloop.c (verify_loop_structure): Streamline and avoid
2216         ICEing on corrupt loop tree.
2217         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
2218         loop tree.
2220 2013-03-20  Richard Biener  <rguenther@suse.de>
2222         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
2223         check whether an SSA update is needed.
2225 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
2227         * config/mips/constraints.md (T): Rename to...
2228         (Yf): ...this.
2229         (U): Rename to...
2230         (Yd): ...this.
2231         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
2232         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
2234 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2236         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
2237         (*subsi3_carryin_uxtw): Likewise.
2239 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2241         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
2242         (*rorsi3_insn_uxtw): Likewise.
2244 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
2246         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
2247         (*extrsi5_insn_uxtw): Likewise.
2249 2013-03-19  Richard Biener  <rguenther@suse.de>
2251         PR tree-optimization/56273
2252         * passes.c (init_optimization_passes): Move second VRP after DOM.
2254 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
2256         * config/i386/i386.md (*movti_internal): Merge from
2257         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
2258         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
2259         nox64 isa attributes.
2261 2013-03-18  Richard Biener  <rguenther@suse.de>
2263         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
2264         (unite): Likewise.
2265         (merge_node_constraints): Likewise.
2266         (build_succ_graph): Likewise.
2267         (valid_graph_edge): Inline into single caller.
2268         (unify_nodes): Likewise.  Use bitmap_set_bit return value
2269         and cache varinfo.
2270         (scc_visit): Fix formatting and variable use.
2271         (do_sd_constraint): Use gcc_checking_assert.
2272         (do_ds_constraint): Likewise.
2273         (do_complex_constraint): Likewise.
2274         (condense_visit): Likewise.  Cleanup.
2275         (dump_pred_graph): New function.
2276         (perform_var_substitution): Dump the pred-graph before
2277         variable substitution.
2278         (find_equivalent_node): Use gcc_checking_assert.
2279         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
2281 2013-03-18  Richard Biener  <rguenther@suse.de>
2283         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2284         Remove cond_expr_stmt_list argument and do not gimplify the
2285         built expression.
2286         (vect_loop_versioning): Adjust.
2287         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
2288         Cleanup to use less temporaries.
2289         (vect_create_data_ref_ptr): Cleanup.
2291 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
2293         PR tree-optimization/56635
2294         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
2295         require types_compatible_p types.
2297 2013-03-18  Nick Clifton  <nickc@redhat.com>
2299         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
2300         spurious backslash.
2302         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
2303         Add missing line to comment describing function.
2305 2013-03-18  Richard Biener  <rguenther@suse.de>
2307         PR tree-optimization/56210
2308         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2309         Handle string / character search functions.
2310         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2312 2013-03-18  Richard Biener  <rguenther@suse.de>
2314         PR middle-end/56483
2315         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
2316         and implement properly.
2317         * gimple.h (gimple_cond_single_var_p): Remove.
2319 2013-03-18  Richard Biener  <rguenther@suse.de>
2321         * tree-data-ref.h (find_data_references_in_loop): Declare.
2322         * tree-data-ref.c (get_references_in_stmt): Use a stack
2323         vector pre-allocated in the callers.
2324         (find_data_references_in_stmt): Adjust.
2325         (graphite_find_data_references_in_stmt): Likewise.
2326         (create_rdg_vertices): Likewise.
2327         (find_data_references_in_loop): Export.
2328         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
2329         Compute dependences here...
2330         (vect_analyze_data_refs): ...not here.  When we encounter
2331         a non-vectorizable data reference in basic-block vectorization
2332         truncate the data reference vector.  Do not bother to
2333         fixup data-dependence information for gather loads.
2334         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
2335         of data references, as reported.
2337 2013-03-18  Richard Biener  <rguenther@suse.de>
2339         PR tree-optimization/3713
2340         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
2341         has_constants and expr.
2342         (stmt_has_constants): Properly valueize SSA names when deciding
2343         whether the stmt has constants.
2345 2013-03-18  Richard Biener  <rguenther@suse.de>
2347         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
2348         whole function when there is nothing to do.
2349         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
2350         * tree-vectorizer.c (vectorize_loops): Update virtual and
2351         loop-closed SSA once.
2352         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
2354 2013-03-18  Richard Biener  <rguenther@suse.de>
2356         PR middle-end/56113
2357         * domwalk.c (bb_postorder): New global static.
2358         (cmp_bb_postorder): New function.
2359         (walk_dominator_tree): Replace scheme imposing an order for
2360         visiting dominator sons by one sorting them at the time they
2361         are pushed on the stack.
2363 2013-03-18  Richard Biener  <rguenther@suse.de>
2365         PR tree-optimization/39326
2366         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
2367         (struct mem_ref): Replace mem member with ao_ref typed member.
2368         (MEM_ANALYZABLE): Adjust.
2369         (memref_eq): Likewise.
2370         (mem_ref_alloc): Likewise.
2371         (gather_mem_refs_stmt): Likewise.
2372         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
2373         (execute_sm_if_changed_flag_set): Adjust.
2374         (execute_sm): Likewise.
2375         (ref_always_accessed_p): Likewise.
2376         (refs_independent_p): Likewise.
2377         (can_sm_ref_p): Likewise.
2379 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
2381         PR c/56566
2382         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
2383         return 1 even for !unsignedp.
2385 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2387         * config/i386/i386.md (isa): Add x64 and nox64.
2388         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
2389         (*pushtf): Enable *roF alternative for x64 isa only.
2390         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
2391         mode attribute of integer alternatives to DImode for TARGET_64BIT.
2392         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
2393         (*movtf_internal): Merge from *movtf_internal_rex64 and
2394         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
2395         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
2396         nox64 isa attributes.
2397         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
2398         nox64 isa attributes.
2399         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
2401 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
2403         * config/alpha/alpha.c (TARGET_LRA_P): New define.
2405 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
2407         PR target/56640
2408         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
2409         class names.  Remove trailing comma after "ALL_REGS".
2411 2013-03-16  Jan Hubicka  <jh@suse.cz>
2413         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
2414         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
2415         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
2416         of cgraph_get_create_node.
2417         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2419 2013-03-16  Jason Merrill  <jason@redhat.com>
2421         PR debug/49090
2422         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
2423         with DW_AT_default_value.
2425 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
2427         * BASE-VER: Set to 4.9.0.
2429 2013-03-14  Andi Kleen  <ak@linux.intel.com>
2431         PR target/56619
2432         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
2433         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
2434         Document _x* TSX intrinsics.
2436 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
2437             David Holsgrove  <david.holsgrove@xilinx.com>
2439         * configure.ac: Add MicroBlaze TLS support detection.
2440         * configure: Regenerate.
2441         * config/microblaze/microblaze-protos.h
2442         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
2443         symbol_mentioned_p, label_mentioned_p): Add prototypes.
2444         * config/microblaze/microblaze.c (microblaze_address_type): Add
2445         ADDRESS_TLS and tls_reloc address types.
2446         (microblaze_address_info): Add tls_reloc.
2447         (TARGET_HAVE_TLS): Define.
2448         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
2449          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
2450          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
2451         load_tls_operand,  microblaze_call_tls_get_addr,
2452         microblaze_legitimize_tls_address): New functions.
2453         (microblaze_classify_unspec): Handle UNSPEC_TLS.
2454         (get_base_reg): Use microblaze_tls_symbol_p.
2455         (microblaze_classify_address): Handle TLS.
2456         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
2457         label_mentioned_p and microblaze_tls_referenced_p.
2458         (microblaze_legitimize_address): Handle TLS.
2459         (microblaze_address_insns): Handle ADDRESS_TLS.
2460         (pic_address_needs_scratch): Handle TLS.
2461         (print_operand_address): Handle TLS.
2462         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
2463         (microblaze_expand_move): Handle TLS.
2464         (microblaze_legitimate_constant_p): Check
2465         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
2466         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2467         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
2468         (PIC_OFFSET_TABLE_REGNUM): Set.
2469         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
2470         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
2471         (addsi3, movsi_internal2, movdf_internal): Update constraints
2472         * config/microblaze/predicates.md (arith_plus_operand): Define
2473         (move_operand): Redefine as move_src_operand,
2474         check microblaze_tls_referenced_p.
2476 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
2478         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
2479         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
2481 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
2483         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
2484         CC mode for AND.
2486 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
2488         PR tree-optimization/53265
2489         * common.opt (Waggressive-loop-optimizations): New option.
2490         * tree-ssa-loop-niter.c: Include tree-pass.h.
2491         (do_warn_aggressive_loop_optimizations): New function.
2492         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
2493         if number_of_latch_executions returned constant.
2494         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
2495         early.  If number_of_latch_executions returned constant, set
2496         nb_iterations_upper_bound back to it.
2497         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
2498         field.
2499         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
2500         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
2502         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
2503         (MULTILIB_OSDIRNAMES): Set.
2504         * genmultilib: If defaultosdirname doesn't start with :: , set
2505         defaultosdirname2 instead, clear it and emit two . multilib_raw
2506         entries instead of just one.
2508 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2510         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2511         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
2512         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
2513         (SUBTARGET_OVERRIDE_OPTIONS): New.
2515 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
2517         PR target/49880
2518         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
2519         (musermode): Convert to Var(TARGET_USERMODE).
2520         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
2521         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
2522         * config/sh/sh.c (sh_option_override): Use
2523         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
2524         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
2525         condition.
2526         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
2527         TARGET_SH4.
2528         (udivsi3_i4_single, divsi3_i4_single): Use
2529         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
2531 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
2533         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
2534         default setting.
2536 2013-03-13  Richard Biener  <rguenther@suse.de>
2538         PR tree-optimization/56608
2539         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
2540         calls when vectorizing basic-blocks.
2542 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
2544         PR plugins/45078
2545         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
2546         tm_file.
2548 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
2550         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
2552 2013-03-11  Jan Hubicka  <jh@suse.cz>
2554         PR lto/56557
2555         * lto-streamer-out.c (output_symbol_p): Skip references from
2556         constructors of external variables.
2558 2013-03-11  Jan Hubicka  <jh@suse.cz>
2560         PR middle-end/56571
2561         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
2562         from pseudos.
2563         * emit-rtl.c (verify_rtx_sharing): Likewise.
2564         (copy_insn_1): Likewise.
2565         * rtl.c (copy_rtx): Likewise.
2567 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
2569         PR target/56591
2570         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
2571         output_operand_lossage message.
2573 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
2575         PR target/56470
2576         * arm.c (shift_op): Validate RTL pattern on the fly.
2577         (arm_print_operand, case 'S'): Don't use shift_operator to validate
2578         the RTL.
2580 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2582         PR target/56347
2583         * config/pa/pa.md (call_value): Check for calls to powf and direct to
2584         new call patterns that clobber %fr12.
2585         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
2586         split and postreload patterns.
2587         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
2588         registers %fr12 and %fr12R as call used.
2590 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
2592         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
2593         (canon_address, record_store, replace_read, check_mem_read_rtx,
2594         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
2595         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
2596         rest_of_handle_dse): Likewise.
2598 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
2600         PR middle-end/56524
2601         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
2602         Add base_optabs.
2603         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
2604         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
2605         (save_optabs_if_changed): Replace with...
2606         (init_tree_optimization_optabs): ...this.
2607         * optabs.c (save_optabs_if_changed): Rename to...
2608         (init_tree_optimization_optabs): ...this.  Take the optimization node
2609         as argument.  Do nothing if the base optabs are already correct.
2610         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
2611         to recompute optabs.
2612         * function.h (function): Remove optabs field.
2613         * function.c (invoke_set_current_function_hook): Call
2614         init_tree_optimization_optabs.  Use the result to initialize
2615         this_fn_optabs.
2617 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
2619         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
2620         if GTMA_HAS_NO_INSTRUMENTATION.
2621         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
2622         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
2623         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
2624         * gimple-pretty-print.c (dump_gimple_transaction): Handle
2625         GTMA_HAS_NO_INSTRUMENTATION.
2627 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
2629         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
2630         libasan_preinit.o.
2632 2013-03-08  Marek Polacek  <polacek@redhat.com>
2633             Jakub Jelinek  <jakub@redhat.com>
2635         PR tree-optimization/56478
2636         * predict.c (is_comparison_with_loop_invariant_p): Change the
2637         type of loop_step to tree.
2638         (predict_loops): Adjust.
2639         (predict_iv_comparison): Perform the computations on double_ints.
2641 2013-03-08  Richard Biener  <rguenther@suse.de>
2643         PR tree-optimization/56570
2644         * tree-cfg.c (verify_expr_location_1): Verify locations for
2645         DECL_DEBUG_EXPR.
2646         * tree-sra.c (create_access_replacement): Strip locations
2647         from DECL_DEBUG_EXPRs.
2649 2013-03-08  Richard Biener  <rguenther@suse.de>
2651         * tree-inline.c (expand_call_inline): Do not associate
2652         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
2653         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
2655 2013-03-08  Richard Biener  <rguenther@suse.de>
2657         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
2658         or block changes with -Og.  Fix for location / block encoding
2659         changes and PHI arguments with locations.
2661 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
2663         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
2664         for all counters.
2665         (struct output_info): Likewise.
2666         (register_overhead): Remove bad gcc_assert.
2667         (bitmap_find_bit): If there is only a single bitmap element, do not
2668         count a miss as a search.
2669         (print_statistics): Update for counter type changes.
2670         (dump_bitmap_statistics): Likewise.  Print headers such that they
2671         are properly lined up with the printed counters.
2673 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
2675         PR tree-optimization/56559
2676         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
2677         check that it has only a single use.
2679 2013-03-07  Richard Biener  <rguenther@suse.de>
2681         * doc/invoke.texi (fwhole-program): Discourage use in combination
2682         with -flto.
2684 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
2686         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
2688         PR tree-optimization/56539
2689         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
2690         instead of GSI_CONTINUE_LINKING as last argument to
2691         force_gimple_operand_gsi.  Adjust function comment.
2693         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
2694         aarch64-cores.def.
2696         PR middle-end/56548
2697         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
2698         promoted mode, convert the result back to the original mode.
2700 2013-03-06  Richard Biener  <rguenther@suse.de>
2702         PR middle-end/56294
2703         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
2704         (insert_updated_phi_nodes_compare_uids): New function.
2705         (update_ssa): Sort symbols_to_rename after UID before
2706         traversing it to insert PHI nodes.
2708 2013-03-06  Richard Biener  <rguenther@suse.de>
2710         PR middle-end/50494
2711         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2712         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2714         Revert
2715         2013-02-13  Richard Biener  <rguenther@suse.de>
2717         PR lto/50494
2718         * varasm.c (output_constant_def_1): Get the decl representing
2719         the constant as argument.
2720         (output_constant_def): Wrap output_constant_def_1.
2721         (make_decl_rtl): Use output_constant_def_1 with the decl
2722         representing the constant.
2723         (build_constant_desc): Optionally re-use a decl already
2724         representing the constant.
2725         (tree_output_constant_def): Adjust.
2727 2013-03-06  Joey Ye  <joey.ye@arm.com>
2729         PR lto/50293
2730         * gcc.c (convert_white_space): New function.
2731         (main): Handles white space in function name.
2733 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
2735         PR target/56529
2736         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2737         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
2738         to SH_DIV_CALL_TABLE for TARGET_SH2.
2739         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2740         list.
2741         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2742         call-table options.
2744 2013-03-05  Sterling Augustine  <saugustine@google.com>
2745             Cary Coutant  <ccoutant@google.com>
2747         PR debug/55364
2748         * dwarf2out.c (resolve_addr): Don't call
2749         remove_loc_list_addr_table_entries a second time for the same
2750         expression.
2752 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2754         PR debug/56510
2755         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2756         (avoid_complex_debug_insns): New function.
2757         (expand_debug_locations): Call it.
2759         PR rtl-optimization/56484
2760         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2761         lifetimes of hard registers on small register class machines.
2763 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
2765         * config/microblaze/microblaze-protos.h: Rename
2766         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2767         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2768         fast_interrupt.
2769         (microblaze_fast_interrupt_function_p): New function.
2770         (microblaze_is_interrupt_handler): Rename to
2771         microblaze_is_interrupt_variant and add fast_interrupt check.
2772         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2773         (save_restore_insns): Likewise.
2774         (compute_frame_size): Likewise.
2775         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2776         (microblaze_globalize_label): Likewise.
2777         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2778         * config/microblaze/microblaze.md: Use wrapper
2779         microblaze_is_interrupt_variant.
2781 2013-03-05  Kai Tietz  <ktietz@redhat.com>
2783         * sdbout.c (sdbout_one_type): Switch to current function's section
2784         supporting cold/hot.
2786 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
2788         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2789         -mxl-reorder.
2791 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2793         PR middle-end/56461
2794         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2795         if VALGRIND_GET_VBITS is defined, temporarily make object
2796         memory all defined, and restore previous valgrind addressability
2797         and definability afterwards.  Free this_object at the end.
2799         PR middle-end/56461
2800         * lra.c (lra): Call lra_clear_live_ranges if live_p,
2801         right before calling lra_create_live_ranges, also call it
2802         when clearing live_p.  Only call lra_clear_live_ranges
2803         at the end if live_p.
2805         PR middle-end/56461
2806         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2808 2013-03-05  Richard Biener  <rguenther@suse.de>
2810         PR tree-optimization/56521
2811         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2812         value-id.
2814 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
2816         PR c++/55135
2817         * except.h (remove_unreachable_eh_regions): New prototype.
2818         * except.c (remove_eh_handler_splicer): New function, split out
2819         of remove_eh_handler.
2820         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
2821         warning about running it on many EH regions one at a time.
2822         (remove_unreachable_eh_regions_worker): New function, walk the
2823         EH tree in depth-first order and remove non-marked regions.
2824         (remove_unreachable_eh_regions): New function.
2825         * tree-eh.c (mark_reachable_handlers): New function, split out
2826         from remove_unreachable_handlers.
2827         (remove_unreachable_handlers): Use mark_reachable_handlers and
2828         remove_unreachable_eh_regions.
2829         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2830         and remove_unreachable_eh_regions.
2832 2013-03-05  Richard Biener  <rguenther@suse.de>
2834         PR middle-end/56525
2835         * loop-init.c (fix_loop_structure): Remove loops in two stages,
2836         not freeing them until the end.
2838 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2840         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2842 2013-03-05  Richard Biener  <rguenther@suse.de>
2844         PR tree-optimization/56270
2845         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2846         of loads after scheduling an SLP instance.
2848 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2850         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2851         tic6x.exp.
2852         (check_gcc_parallelize): Run guality.exp as a separate job from
2853         vect.exp with unsorted.exp and $(dg_target_exps) separately from
2854         struct-layout-1.exp with stackalign.exp.
2856         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2858         PR middle-end/56461
2859         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2860         load_index sbitmap even if some bit in it isn't set.
2862         PR middle-end/56461
2863         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2864         (discover_iteration_bound_by_body_walk): Change queues to
2865         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
2866         spelling in comment.  Call safe_push on queues[bound_index] directly.
2867         Release queues[queue_index] in every iteration unconditionally.
2868         Release bounds vector.
2870         PR middle-end/56461
2871         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2872         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2873         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2874         inner_phis vector.
2876 2013-03-05  Richard Biener  <rguenther@suse.de>
2878         PR lto/56515
2879         * tree-inline.c (remap_blocks_to_null): New function.
2880         (expand_call_inline): When expanding a call stmt without
2881         an associated block inline remap all callee blocks to NULL.
2883 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2885         PR rtl-optimization/56494
2886         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2887         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2888         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2890         PR middle-end/56461
2891         * sel-sched-ir.c (free_sched_pools): Release
2892         succs_info_pool.stack[succs_info_pool.max_top] vectors too
2893         if succs_info_pool.max_top isn't -1.
2895         PR bootstrap/56509
2896         * opts.c (opts_obstack, opts_concat): Moved to...
2897         * opts-common.c (opts_obstack, opts_concat): ... here.
2899 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2901         PR middle-end/56461
2902         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2904 2013-03-04  Martin Jambor  <mjambor@suse.cz>
2906         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2907         all appropriate places.
2909 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
2911         PR tree-optimization/56424
2912         * ipa-split.c (split_function): Do not set the RSO flag if result is
2913         not by reference and its type is a register type.
2915 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
2917         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
2918         (microblaze_legitimate_pic_operand): Likewise
2919         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
2920         new function microblaze_legitimate_pic_operand
2921         * config/microblaze/microblaze-protos.h
2922         (microblaze_legitimate_pic_operand): Declare.
2924 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2926         * config/microblaze/predicates.md (call_insn_simple_operand):
2927         New predicate for supported rtx code types.
2928         * config/microblaze/microblaze.md (call_internal1): Use
2929         call_insn_simple_operand predicate.
2931 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2933         PR middle-end/56461
2934         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2935         partitions.ordered_remove.
2937         PR middle-end/56461
2938         * tree-vect-stmts.c (vectorizable_conversion): Don't call
2939         vec_oprnds0.create (1) for modifier == NONE.
2941         PR middle-end/56461
2942         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2943         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2944         vec_oprnds1 right before pushing anything to it for
2945         scalar_shift_arg.
2947         PR middle-end/56461
2948         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2949         set nbbs to 0 instead of having separate code path.
2950         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2951         instead of false as last argument if returning NULL.
2953 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
2955         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2956         the attribute is now called "target" instead of "option".
2957         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2958         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
2959         attribute/pragma name for TARGET_OPTION_VALID_P and
2960         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
2961         * doc/tm.texi: Regenerated.
2963 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
2965         * config/microblaze/microblaze.c:
2966         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2967         * config/microblaze/microblaze.h: Add -mxl-reorder to
2968         DRIVER_SELF_SPECS.
2969         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2970         instructions emitted if TARGET_REORDER.
2971         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2972         or 0 for -m/-mno case, but initialises as 2 to detect default use case
2973         separately.
2975 2013-03-01  Xinliang David Li  <davidxl@google.com>
2977         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2978         walk length.
2980 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
2982         PR middle-end/56461
2983         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2984         vector even when returning true.  Fix up function comment formatting.
2986         PR middle-end/56461
2987         * ira-build.c (ira_loop_nodes_count): New variable.
2988         (create_loop_tree_nodes): Initialize it.
2989         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2991         PR middle-end/56461
2992         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2993         method on dr_chain and result_chain.
2994         * tree-vect-stmts.c (vectorizable_store): Only call
2995         result_chain.create if j == 0.
2997         PR middle-end/56461
2998         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2999         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
3000         before overwriting it.
3002 2013-03-01  Tobias Burnus  <burnus@net-b.de>
3004         * doc/extended.texi (C Extensions): Change order in @menu
3005         to match @node.
3006         (Other MIPS Built-in Functions): Move last MIPS entry before
3007         "picoChip Built-in Functions".
3008         (SH Built-in Functions): Move after RX Built-in Functions.
3009         * doc/gcc.texi (Introduction): Change order in @menu
3010         to match @node.
3011         * doc/md.texi (Constraints): Ditto.
3012         * gty.texi (Type Information): Ditto.
3013         (User-provided marking routines for template types): Make
3014         subsection.
3015         * doc/invoke.texi (AArch64 Options): Move before
3016         "Adapteva Epiphany Options".
3018 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
3019             Jakub Jelinek  <jakub@redhat.com>
3021         PR sanitizer/56454
3022         * asan.c (gate_asan): Lookup no_sanitize_address instead of
3023         no_address_safety_analysis attribute.
3024         * doc/extend.texi (no_address_safety_attribute): Rename to
3025         no_sanitize_address attribute, mention no_address_safety_analysis
3026         attribute as deprecated alias.
3028 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
3030         PR middle-end/56461
3031         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
3032         type to vec<vec<tree> > *.
3033         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
3034         to be vec<tree> instead of vec<tree> *, set vec_defs
3035         to vNULL and call vec_defs.create (number_of_vects), adjust other
3036         uses of vec_defs.
3037         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
3038         vectorizable_condition): Adjust vect_get_slp_defs callers.
3040 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3042         * config/aarch64/aarch64.c
3043         (aarch64_float_const_representable): Remove unused variable.
3045 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3047         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
3049 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3051         * config/aarch64/aarch64-builtins.c
3052         (aarch64_init_simd_builtins): Make static.
3054 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
3056         * config/aarch64/aarch64.c
3057         (aarch64_simd_make_constant): Make static.
3059 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3061         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
3062         with no initialization to the RHS of debug statements.
3064 2013-02-28  Martin Jambor  <mjambor@suse.cz>
3066         PR tree-optimization/56294
3067         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
3068         Adjust dumping.
3069         (get_access_replacement): Do not call create_access_replacement.
3070         Assert a replacement exists.
3071         (get_repl_default_def_ssa_name): Create the replacement declaration
3072         itself.
3074 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3076         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
3077         final_end_function.
3079 2013-02-28  Marek Polacek  <polacek@redhat.com>
3081         PR rtl-optimization/56466
3082         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
3083         if we're changing a loop.
3084         (peel_loops_completely): Likewise.
3086 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
3088         PR c++/55813
3089         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
3091 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3093         PR target/56445
3094         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
3095         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
3096         INTX_FTYPE_FX, FX_FTYPE_INTX.
3097         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
3099 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3101         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
3102         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
3103         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
3104         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
3105         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
3106         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
3107         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
3108         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
3109         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
3110         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
3111         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
3112         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
3113         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
3114         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
3115         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
3116         (avrxmega6): Increase max flash segments from 5 to 6.
3117         * config/avr/t-multilib: Regenerate.
3118         * config/avr/avr-tables.opt: Regenerate.
3119         * doc/avr-mmcu.texi: Regenerate.
3121 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
3123         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
3124         (avr_device_to_arch): Rename to avr_device_to_ld.
3125         (avr_device_to_as): New prototype.
3126         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
3127         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
3128         * config/avr/driver-avr.c (avr_device_to_as): New.
3129         (avr_device_to_arch): Rename to avr_device_to_ld.
3131 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3133         PR middle-end/56461
3134         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
3135         method on dr_chain and result_chain.
3137         PR middle-end/56461
3138         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
3139         pointer_set_destroy on not_executed_last_iteration.
3141         PR middle-end/56461
3142         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
3144         PR middle-end/56461
3145         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
3146         FOR_EACH_DEFINED_FUNCTION when freeing state.
3148         PR middle-end/56461
3149         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
3150         pool_free.
3151         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
3152         overwriting it.
3154         PR middle-end/56461
3155         * ipa-cp.c (decide_whether_version_node): Call vec_free on
3156         known_aggs[i].items and release known_aggs vector.
3158         PR middle-end/56461
3159         * ipa-reference.c (propagate): Free node_info even for alias nodes.
3161 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3163         * config/microblaze/microblaze.c (microblaze_emit_compare):
3164         Use xor for EQ/NE comparisions.
3165         * config/microblaze/microblaze.md (cstoresf4): Add constraints
3166         (cbranchsf4): Adjust operator to comparison_operator.
3168 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3170         PR middle-end/56461
3171         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
3172         vector.
3173         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
3174         vec_safe_push, always update *slot.
3175         (redirect_edge_var_map_clear): Use vec_free.
3176         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
3177         (free_var_map_entry): Use vec_free.
3178         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
3179         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
3181 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
3183         PR middle-end/45472
3184         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
3185         when the may_trap_p bit of the exprs being merged differs.
3186         Reorder tests for speculativeness in the logical and operator.
3188 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
3190         * incpath.c (add_standard_paths): Use reconcat instead of concat
3191         where appropriate and avoid leaking memory.
3193         * opts.h: Include obstack.h.
3194         (opts_concat): New prototype.
3195         (opts_obstack): New declaration.
3196         * opts.c (opts_concat): New function.
3197         (opts_obstack): New variable.
3198         (init_options_struct): Call gcc_init_obstack on opts_obstack.
3199         (finish_options): Use opts_concat instead of concat
3200         and XOBNEWVEC instead of XNEWVEC.
3201         * opts-common.c (generate_canonical_option, decode_cmdline_option,
3202         generate_option): Likewise.
3203         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
3204         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
3206         PR target/56455
3207         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
3208         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
3210 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
3212         PR middle-end/56461
3213         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
3215 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3217         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
3218         (arm_block_move_unaligned_straight): Likewise.
3219         (arm_adjust_block_mem): Likewise.
3221 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
3223         PR target/48901
3224         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
3225         temp, cond and label.
3226         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
3228         PR target/52500
3229         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
3230         * config/c6x/c6x.h (dbx_register_map): Update declaration.
3232         PR target/52501
3233         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
3234         of prologue/epilogue functions.
3236         PR target/52550
3237         * config/tilegx/tilegx.c (tilegx_expand_prologue):
3238         Remove unused variable cfa_offset.
3239         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
3241         PR target/54639
3242         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
3243         type promotion to unsigned.
3245         PR target/54640
3246         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
3247         for HOST_WIDE_INT of 32 bit / same size as int.
3248         (arm_block_move_unaligned_straight): Likewise.
3249         (arm_adjust_block_mem): Likewise.
3251         PR target/54662
3252         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
3253         ALL_CFLAGS.
3255 2013-02-26  Marek Polacek  <polacek@redhat.com>
3257         PR tree-optimization/56426
3258         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
3260 2013-02-26  Richard Biener  <rguenther@suse.de>
3262         PR target/56444
3263         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
3264         unused variable loops.
3266 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
3268         PR tree-optimization/56448
3269         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
3270         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
3271         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
3272         later operands of the references, or even first operand for
3273         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
3275         PR tree-optimization/56443
3276         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
3277         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
3278         to type_for_mode langhook.
3280 2013-02-25  Matt Turner  <mattst88@gmail.com>
3282         * doc/invoke.texi: Document r4700.
3284 2013-02-25  Richard Biener  <rguenther@suse.de>
3286         PR tree-optimization/56175
3287         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
3288         split out from ...
3289         (simplify_bitwise_binary): ... here.  Also guard the conversion
3290         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
3292 2013-02-25  Catherine Moore  <clm@codesourcery.com>
3294         Revert:
3295         2013-02-24  Catherine Moore  <clm@codesourcery.com>
3296             Maciej W. Rozycki  <macro@codesourcery.com>
3297             Tom de Vries  <tom@codesourcery.com>
3298             Nathan Sidwell  <nathan@codesourcery.com>
3299             Iain Sandoe  <iain@codesourcery.com>
3300             Nathan Froyd  <froydnj@codesourcery.com>
3301             Chao-ying Fu  <fu@mips.com>
3303         * doc/extend.texi: (micromips, nomicromips, nocompression):
3304         Document new function attributes.
3305         * doc/invoke.texi (minterlink-compressed, mmicromips,
3306         m14k, m14ke, m14kec): Document new options.
3307         (minterlink-mips16): Update documentation.
3308         * doc/md.texi (ZC, ZD): Document new constraints.
3309         * configure.ac (gcc_cv_as_micromips): Check if linker
3310         supports the .set micromips directive.
3311         * configure: Regenerate.
3312         * config.in: Regenerate.
3313         * config/mips/mips-tables.opt: Regenerate.
3314         * config/mips/micromips.md: New file.
3315         * constraints.md (ZC, AD): New constraints.
3316         * config/mips/predicates.md (movep_src_register): New predicate.
3317         (movep_src_operand): New predicate.
3318         (non_volatile_mem_operand): New predicate.
3319         * config/mips/mips.md (multimem): New type.
3320         (length): Differentiate between 17-bit and 18-bit branch offsets.
3321         (MOVEP1, MOVEP2): New mode iterator.
3322         (mov_<load>l): Use ZC constraint.
3323         (mov_<load>r): Likewise.
3324         (mov_<store>l): Likewise.
3325         (mov_<store>r): Likewise.
3326         (*branch_equality<mode>_inverted): Add microMIPS support.
3327         (*branch_equality<mode>): Likewise.
3328         (*jump_absolute): Likewise.
3329         (indirect_jump_<mode>): Likewise.
3330         (tablejump_<mode>): Likewise.
3331         (<optab>_internal): Likewise.
3332         (sibcall_internal): Likewise.
3333         (sibcall_value_internal): Likewise.
3334         (prefetch): Use constraint ZD.
3335         * config/mips/mips.opt (minterlink-compressed): New option.
3336         (minterlink-mips16): Now an alias for minterlink-compressed.
3337         (mmicromips): New option.
3338         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3339         (compare_and_swap_12): Likewise.
3340         (sync_add<mode>): Likewise.
3341         (sync_<optab>_12): Likewise.
3342         (sync_old_<optab>_12): Likewise.
3343         (sync_new_<optab>_12): Likewise.
3344         (sync_nand_12): Likewise.
3345         (sync_old_nand_12): Likewise.
3346         (sync_new_nand_12): Likewise.
3347         (sync_sub<mode>): Likewise.
3348         (sync_old_add<mode>): Likewise.
3349         (sync_old_sub<mode>): Likewise.
3350         (sync_new_add<mode>): Likewise.
3351         (sync_new_sub<mode>): Likewise.
3352         (sync_<optab><mode>): Likewise.
3353         (sync_old_<optab><mode>): Likewise.
3354         (sync_new_<optab><mode>): Likewise.
3355         (sync_nand<mode>): Likewise.
3356         (sync_old_nand<mode>): Likewise.
3357         (sync_new_nand<mode>): Likewise.
3358         (sync_lock_test_and_set<mode>): Likewise.
3359         (test_and_set_12): Likewise.
3360         (atomic_compare_and_swap<mode>): Likewise.
3361         (atomic_exchange<mode>_llsc): Likewise.
3362         (atomic_fetch_add<mode>_llsc): Likewise.
3363         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3364         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3365         (umips_save_restore_pattern_p): Likewise.
3366         (umips_load_store_pair_p): Likewise.
3367         (umips_output_load_store_pair): Likewise.
3368         (umips_movep_target_p): Likewise.
3369         (umips_12bit_offset_address_p): Likewise.
3370         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3371         (mips_base_mips16): Rename this...
3372         (mips_base_compression_flags): ...to this. Update all uses.
3373         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3374         (mips_mips16_decl_p): Delete.
3375         (mips_nomips16_decl_p): Delete.
3376         (mips_get_compress_on_flags): New function.
3377         (mips_get_compress_off_flags): New function.
3378         (mips_get_compress_mode): New function.
3379         (mips_get_compress_on_name): New function.
3380         (mips_get_compress_off_name): New function.
3381         (mips_insert_attributes): Support multiple compression types.
3382         (mips_merge_decl_attributes): Likewise.
3383         (umips_12bit_offset_address_p): New function.
3384         (mips_start_function_definition): Emit .set micromips directive.
3385         (mips_call_may_need_jalx_p): New function.
3386         (mips_function_ok_for_sibcall): Add microMIPS support.
3387         (mips_print_operand_punctuation): Support short delay slots and
3388         compact jumps.
3389         (umips_swm_mask, umips_swm_encoding): New.
3390         (umips_build_save_restore): New function.
3391         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3392         (was_mips16_p): Remove.
3393         (old_compression_mode): New.
3394         (mips_set_compression_mode): New function.
3395         (mips_set_current_function): Add microMIPS support.
3396         (mips_option_override): Likewise.
3397         (umips_save_restore_pattern_p): New function.
3398         (umips_output_save_restore): New function.
3399         (umips_load_store_pair_p_1): New function.
3400         (umips_load_store_pair_p): New function.
3401         (umips_output_load_store_pair_1): New function.
3402         (umips_output_load_store_pair): New function.
3403         (umips_movep_target_p) New function.
3404         (mips_prepare_pch_save): Add microMIPS support.
3405         * config/mips/mips.h (TARGET_COMPRESSION): New.
3406         (TARGET_CPU_CPP_BUILTINS): Update macro
3407         to use new compression flags and to support microMIPS.
3408         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3409         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3410         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3411         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3412         (ASM_SPEC): Support mmicromips and mno-micromips.
3413         (M16STORE_REG_P): New macro.
3414         (MIPS_CALL): Support TARGET_MICROMIPS.
3415         (MICROMIPS_J): New macro.
3416         (mips_base_mips16): Rename this...
3417         (mips_base_compression_flags): ...to this.
3418         (UMIPS_12BIT_OFFSET_P): New macro.
3419         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3420         (MULTILIB_DIRNAMES): Likewise.
3422 2013-02-25  Tom de Vries  <tom@codesourcery.com>
3424         PR rtl-optimization/56131
3425         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
3426         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
3427         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
3429 2013-02-25  Tobias Burnus  <burnus@net-b.de>
3431         * doc/invoke.texi (-fsanitize=): Move from optimization
3432         to debugging options.
3434 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
3436         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
3438 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
3439             Alexander Monakov  <amonakov@ispras.ru>
3441         PR middle-end/56077
3442         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
3443         flush pending lists also on non-jumps.  Adjust comment.
3445 2013-02-24  Catherine Moore  <clm@codesourcery.com>
3446             Maciej W. Rozycki  <macro@codesourcery.com>
3447             Tom de Vries  <tom@codesourcery.com>
3448             Nathan Sidwell  <nathan@codesourcery.com>
3449             Iain Sandoe  <iain@codesourcery.com>
3450             Nathan Froyd  <froydnj@codesourcery.com>
3451             Chao-ying Fu  <fu@mips.com>
3453         * doc/extend.texi: (micromips, nomicromips, nocompression):
3454         Document new function attributes.
3455         * doc/invoke.texi (minterlink-compressed, mmicromips,
3456         m14k, m14ke, m14kec): Document new options.
3457         (minterlink-mips16): Update documentation.
3458         * doc/md.texi (ZC, ZD): Document new constraints.
3459         * configure.ac (gcc_cv_as_micromips): Check if linker
3460         supports the .set micromips directive.
3461         * configure: Regenerate.
3462         * config.in: Regenerate.
3463         * config/mips/mips-tables.opt: Regenerate.
3464         * config/mips/micromips.md: New file.
3465         * constraints.md (ZC, AD): New constraints.
3466         * config/mips/predicates.md (movep_src_register): New predicate.
3467         (movep_src_operand): New predicate.
3468         (non_volatile_mem_operand): New predicate.
3469         * config/mips/mips.md (multimem): New type.
3470         (length): Differentiate between 17-bit and 18-bit branch offsets.
3471         (MOVEP1, MOVEP2): New mode iterator.
3472         (mov_<load>l): Use ZC constraint.
3473         (mov_<load>r): Likewise.
3474         (mov_<store>l): Likewise.
3475         (mov_<store>r): Likewise.
3476         (*branch_equality<mode>_inverted): Add microMIPS support.
3477         (*branch_equality<mode>): Likewise.
3478         (*jump_absolute): Likewise.
3479         (indirect_jump_<mode>): Likewise.
3480         (tablejump_<mode>): Likewise.
3481         (<optab>_internal): Likewise.
3482         (sibcall_internal): Likewise.
3483         (sibcall_value_internal): Likewise.
3484         (prefetch): Use constraint ZD.
3485         * config/mips/mips.opt (minterlink-compressed): New option.
3486         (minterlink-mips16): Now an alias for minterlink-compressed.
3487         (mmicromips): New option.
3488         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
3489         (compare_and_swap_12): Likewise.
3490         (sync_add<mode>): Likewise.
3491         (sync_<optab>_12): Likewise.
3492         (sync_old_<optab>_12): Likewise.
3493         (sync_new_<optab>_12): Likewise.
3494         (sync_nand_12): Likewise.
3495         (sync_old_nand_12): Likewise.
3496         (sync_new_nand_12): Likewise.
3497         (sync_sub<mode>): Likewise.
3498         (sync_old_add<mode>): Likewise.
3499         (sync_old_sub<mode>): Likewise.
3500         (sync_new_add<mode>): Likewise.
3501         (sync_new_sub<mode>): Likewise.
3502         (sync_<optab><mode>): Likewise.
3503         (sync_old_<optab><mode>): Likewise.
3504         (sync_new_<optab><mode>): Likewise.
3505         (sync_nand<mode>): Likewise.
3506         (sync_old_nand<mode>): Likewise.
3507         (sync_new_nand<mode>): Likewise.
3508         (sync_lock_test_and_set<mode>): Likewise.
3509         (test_and_set_12): Likewise.
3510         (atomic_compare_and_swap<mode>): Likewise.
3511         (atomic_exchange<mode>_llsc): Likewise.
3512         (atomic_fetch_add<mode>_llsc): Likewise.
3513         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
3514         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
3515         (umips_save_restore_pattern_p): Likewise.
3516         (umips_load_store_pair_p): Likewise.
3517         (umips_output_load_store_pair): Likewise.
3518         (umips_movep_target_p): Likewise.
3519         (umips_12bit_offset_address_p): Likewise.
3520         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
3521         (mips_base_mips16): Rename this...
3522         (mips_base_compression_flags): ...to this. Update all uses.
3523         (mips_attribute_table): Add micromips, nomicromips and nocompression.
3524         (mips_mips16_decl_p): Delete.
3525         (mips_nomips16_decl_p): Delete.
3526         (mips_get_compress_on_flags): New function.
3527         (mips_get_compress_off_flags): New function.
3528         (mips_get_compress_mode): New function.
3529         (mips_get_compress_on_name): New function.
3530         (mips_get_compress_off_name): New function.
3531         (mips_insert_attributes): Support multiple compression types.
3532         (mips_merge_decl_attributes): Likewise.
3533         (umips_12bit_offset_address_p): New function.
3534         (mips_start_function_definition): Emit .set micromips directive.
3535         (mips_call_may_need_jalx_p): New function.
3536         (mips_function_ok_for_sibcall): Add microMIPS support.
3537         (mips_print_operand_punctuation): Support short delay slots and
3538         compact jumps.
3539         (umips_swm_mask, umips_swm_encoding): New.
3540         (umips_build_save_restore): New function.
3541         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
3542         (was_mips16_p): Remove.
3543         (old_compression_mode): New.
3544         (mips_set_compression_mode): New function.
3545         (mips_set_current_function): Add microMIPS support.
3546         (mips_option_override): Likewise.
3547         (umips_save_restore_pattern_p): New function.
3548         (umips_output_save_restore): New function.
3549         (umips_load_store_pair_p_1): New function.
3550         (umips_load_store_pair_p): New function.
3551         (umips_output_load_store_pair_1): New function.
3552         (umips_output_load_store_pair): New function.
3553         (umips_movep_target_p) New function.
3554         (mips_prepare_pch_save): Add microMIPS support.
3555         * config/mips/mips.h (TARGET_COMPRESSION): New.
3556         (TARGET_CPU_CPP_BUILTINS): Update macro
3557         to use new compression flags and to support microMIPS.
3558         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
3559         (MIPS_ARCH_FLOAT_SPEC): Likewise.
3560         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
3561         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
3562         (ASM_SPEC): Support mmicromips and mno-micromips.
3563         (M16STORE_REG_P): New macro.
3564         (MIPS_CALL): Support TARGET_MICROMIPS.
3565         (MICROMIPS_J): New macro.
3566         (mips_base_mips16): Rename this...
3567         (mips_base_compression_flags): ...to this.
3568         (UMIPS_12BIT_OFFSET_P): New macro.
3569         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
3570         (MULTILIB_DIRNAMES): Likewise.
3572 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
3574         PR target/52555
3575         * target-globals.c (save_target_globals): For init_reg_sets and
3576         target_reinit remporarily set this_fn_optabs to this_target_optabs.
3578 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
3580         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
3581         * config/aarch64/t-aarch64
3582         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
3584 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
3586         PR inline-asm/56148
3587         * lra-constraints.c (process_alt_operands): Reload operand
3588         conflicting with earlier clobber only if no more other conflicting
3589         operands.
3591 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
3593         PR sanitizer/56393
3594         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
3595         if not linking a shared library.
3597 2013-02-22  Seth LaForge  <sethml@google.com>
3599         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
3601 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
3603         * config/arm/arm.md (split for extendsidi): Update condition.
3604         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
3605         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
3606         (qhs_zextenddi_cstr): Likewise.
3608 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
3610         PR middle-end/56420
3611         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
3612         avoid signed wrapping.
3613         (expand_mult): Handle properly multiplication by
3614         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
3615         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
3616         in the compiler if coeff is HOST_WIDE_INT_MIN.
3617         (expand_divmod): Don't make ext_op1 static, change it's type to
3618         uhwi.  Avoid undefined behavior in -INTVAL (op1).
3620         PR rtl-optimization/50339
3621         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
3622         field.
3623         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
3624         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
3625         into splitting_ashiftrt field.
3626         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
3627         ASHIFTRT.
3628         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
3629         choices.
3631 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
3633         PR middle-end/56108
3634         * trans-mem.c (execute_tm_mark): Do not expand transactions that
3635         are sure to go irrevocable.
3637 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
3639         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
3640         scalars are valid operands.
3642 2013-02-21  Martin Jambor  <mjambor@suse.cz>
3644         PR tree-optimization/56310
3645         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
3646         only matching indices and non-negative final offsets.
3647         (intersect_aggregates_with_edge): Pass src_idx to
3648         agg_replacements_to_vector.  Pass src_idx insstead of index to
3649         intersect_with_agg_replacements.
3651 2013-02-21  Martin Jambor  <mjambor@suse.cz>
3653         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
3654         instead of hard-wired defaults.
3656 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
3658         * doc/invoke.texi (MIPS Options): Update documentation of the
3659         floating-point multiply-accumulate instruction restrictions.
3661 2013-02-21  Kostya Serebryany  <kcc@google.com>
3663         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
3664         asan_shadow_offset on x86_64 linux.
3666 2013-02-21  Richard Biener  <rguenther@suse.de>
3668         PR tree-optimization/56415
3669         Revert
3670         2013-02-11  Richard Biener  <rguenther@suse.de>
3672         PR tree-optimization/56273
3673         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3674         first VRP run.
3676 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
3678         PR bootstrap/56258
3679         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
3680         instead of @itemx.
3682         PR inline-asm/56405
3683         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
3684         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
3686 2013-02-20  Jan Hubicka  <jh@suse.cz>
3688         PR tree-optimization/56265
3689         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
3690         when target is referenced for first time.
3692 2013-02-20  Richard Biener  <rguenther@suse.de>
3694         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
3695         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
3696         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3697         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
3698         not return anything.
3699         (rename_ssa_copies): Do not remove unused locals.
3700         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
3701         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
3702         * passes.c (execute_function_todo): Do not schedule unused locals
3703         removal if cleanup_tree_cfg did something.
3704         * tree-ssa-live.c (remove_unused_locals): Dump statistics
3705         about the number of removed locals.
3707 2013-02-20  Richard Biener  <rguenther@suse.de>
3709         PR tree-optimization/56398
3710         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
3712 2013-02-20  Martin Jambor  <mjambor@suse.cz>
3714         PR tree-optimization/55334
3715         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3716         restricted pointers to arrays.
3718 2013-02-20  Richard Biener  <rguenther@suse.de>
3719             Jakub Jelinek  <jakub@redhat.com>
3721         PR tree-optimization/56396
3722         * tree-ssa-ccp.c (n_const_val): New static variable.
3723         (get_value): Return NULL for SSA names we don't have a lattice
3724         entry for.
3725         (ccp_initialize): Initialize n_const_val.
3726         * tree-ssa-copy.c (n_copy_of): New static variable.
3727         (init_copy_prop): Initialize n_copy_of.
3728         (get_value): Return NULL_TREE for SSA names we don't have a
3729         lattice entry for.
3731 2013-02-20  Martin Jambor  <mjambor@suse.cz>
3733         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3735 2013-02-20  Richard Biener  <rguenther@suse.de>
3737         * genpreds.c (write_lookup_constraint): Do not compare first
3738         letter of the constraint again.
3740 2013-02-20  Richard Biener  <rguenther@suse.de>
3742         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3743         and ceil_log2.
3744         (get_use_iv_cost): Terminate hashtable walk when coming across
3745         an empty entry.
3747 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
3749         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3750         reassociation for avx2 targets.
3752 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3754         * config/microblaze/microblaze.c: microblaze_has_clz = 0
3755         Add version check for v8.10.a to enable microblaze_has_clz
3756         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3757         version and TARGET_PATTERN_COMPARE check
3758         * config/microblaze/microblaze.md: New clzsi2 instruction
3760 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3762         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3763         function before branching.
3765 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
3767         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3768         DUMP_INSN_RTX_UID.
3769         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3771 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
3773         PR middle-end/55889
3774         * sel-sched.c: Include ira.h.
3775         (implicit_clobber_conflict_p): New function.
3776         (moveup_expr): Use it.
3777         * Makefile.in (sel-sched.o): Depend on ira.h.
3779 2013-02-19  Richard Biener  <rguenther@suse.de>
3781         PR tree-optimization/56384
3782         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3783         (vn_hash_type): Split out from ...
3784         (vn_hash_constant_with_type): ... here.
3785         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3786         (vn_phi_eq): Compare types from vn_phi_s structure.
3787         (vn_phi_lookup): Populate vn_phi_s type.
3788         (vn_phi_insert): Likewise.
3790 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3792         PR tree-optimization/56350
3793         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3794         if haven't found reduction or nested cycle operand, rather than
3795         asserting we must find it.
3797         PR tree-optimization/56381
3798         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3799         to fold_build3.
3801 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
3802             Jakub Jelinek  <jakub@redhat.com>
3804         PR target/52555
3805         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3806         (swap_optab_enable): Same.
3807         (init_all_optabs): Use argument instead of global.
3808         * tree.h (struct tree_optimization_option): New field target_optabs.
3809         * expr.h (init_all_optabs): Add argument to prototype.
3810         (TREE_OPTIMIZATION_OPTABS): New.
3811         (save_optabs_if_changed): Protoize.
3812         * optabs.h: Declare this_fn_optabs.
3813         * optabs.c (save_optabs_if_changed): New.
3814         Declare this_fn_optabs.
3815         (init_optabs): Add argument to init_all_optabs() call.
3816         * function.c (invoke_set_current_function_hook): Handle per
3817         function optabs.
3818         * function.h (struct function): New field optabs.
3819         * config/mips/mips.c (mips_set_mips16_mode): Handle when
3820         optimization_current_node has changed.
3821         * target-globals.h (save_target_globals_default_opts): Protoize.
3822         * target-globals.c (save_target_globals_default_opts): New.
3824 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3826         PR target/56347
3827         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3828         registers %fr12 and %fr12R as call used.
3830         PR target/56214
3831         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3832         and HImode, require all displacements to be an integer multiple of
3833         their mode size.
3834         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3835         only allow QImode and HImode when reload is in progress and strict is
3836         true.  Likewise for symbolic addresses.  Use base14_operand to check
3837         displacements in REG+BASE addresses.
3839 2013-02-18  Richard Biener  <rguenther@suse.de>
3841         PR tree-optimization/56366
3842         * tree-vect-loop.c (get_initial_def_for_induction): Properly
3843         handle sign-conversion of outer-loop initial induction value.
3845 2013-02-18  Richard Biener  <rguenther@suse.de>
3847         PR middle-end/56349
3848         * cfghooks.c (merge_blocks): If we merge a latch into another
3849         block adjust references to it.
3850         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3851         (verify_loop_structure): Verify that a recorded latch is in fact
3852         a latch.
3854 2013-02-18  Richard Biener  <rguenther@suse.de>
3856         PR tree-optimization/56321
3857         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3858         order SSA name release and virtual operand unlinking.
3860 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3862         * config/microblaze/microblaze.md (save_stack_block): Define.
3863         (restore_stack_block): Likewise.
3865 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3867         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3868         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3869         * config/microblaze/microblaze.c (microblaze_option_override):
3870         Bail out early for PIC modes when target does not support PIC.
3872 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3874         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3875         Replace with a microblaze version.
3876         (microblaze_trampoline_init): Adapt for microblaze.
3877         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3878         microblaze.
3880 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
3881             Dodji Seketeli  <dodji@redhat.com>
3883         PR asan/56330
3884         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
3885         (instrument_mem_region_access): Do not forget to always put
3886         instrumentation of the of 'base' and 'base + len' in a "if (len !=
3887         0) statement, even for cases where either 'base' or 'base + len'
3888         are not instrumented -- because they have been previously
3889         instrumented.  Simplify the logic by putting all the statements
3890         instrument 'base + len' inside a sequence, and then insert that
3891         sequence right before the current insertion point.  Then, to
3892         instrument 'base + len', just get an iterator on that statement.
3893         And do not forget to update the pointer to iterator the function
3894         received as argument.
3896 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
3898         PR rtl-optimization/56348
3899         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3901 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
3903         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3904         (clean_graph_dump_file): Pass base to start_graph_dump.
3906 2013-02-14  Richard Henderson  <rth@redhat.com>
3908         PR target/55941
3909         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3911 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
3913         * collect2-aix.h: Define F_LOADONLY.
3915 2013-02-14  Richard Biener  <rguenther@suse.de>
3917         PR lto/50494
3918         * varasm.c (output_constant_def_1): Get the decl representing
3919         the constant as argument.
3920         (output_constant_def): Wrap output_constant_def_1.
3921         (make_decl_rtl): Use output_constant_def_1 with the decl
3922         representing the constant.
3923         (build_constant_desc): Optionally re-use a decl already
3924         representing the constant.
3925         (tree_output_constant_def): Adjust.
3927 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
3929         Fix an asan crash
3930         * asan.c (instrument_builtin_call):  Really put the length of the
3931         second source argument into src1_len.
3933 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
3935         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3936         argument.  If it is false, don't create edge from then_bb to
3937         fallthru_bb.
3938         (insert_if_then_before_iter): Pass true to it.
3939         (build_check_stmt): Pass false to it.
3940         (transform_statements): Flush hash table only on extended basic
3941         block boundaries, rather than at the beginning of every bb.
3942         Don't flush hash table on nonfreeing_call_p calls.
3943         * tree-flow.h (nonfreeing_call_p): New prototype.
3944         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3946 2013-02-13  David S. Miller  <davem@davemloft.net>
3948         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3950 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
3952         PR target/56184
3953         * ira.c (max_regno_before_ira): Move from ...
3954         (ira): ... here.
3955         (fix_reg_equiv_init): Use max_regno_before_ira instead of
3956         vec_safe_length.
3958 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
3960         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3962 2013-02-13  Richard Biener  <rguenther@suse.de>
3964         PR lto/56295
3965         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3966         globals in MEM_REFs.
3968 2013-02-13  Richard Biener  <rguenther@suse.de>
3970         * loop-init.c (loop_optimizer_init): Clear loop state when
3971         re-initializing preserved loops.
3972         * loop-unswitch.c (unswitch_single_loop): Return whether
3973         we unswitched the loop.  Do not verify loop state here.
3974         (unswitch_loops): When we unswitched a loop discover new loops.
3976 2013-02-13  Kostya Serebryany  <kcc@google.com>
3978         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3979         on x86_64 linux.
3980         * sanitizer.def: Rename __asan_init to __asan_init_v1.
3982 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
3984         Avoid instrumenting duplicated memory access in the same basic block
3985         * Makefile.in (asan.o): Add new dependency on hash-table.h
3986         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3987         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3988         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3989         (free_mem_ref_resources, has_mem_ref_been_instrumented)
3990         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3991         (get_mem_ref_of_assignment): New functions.
3992         (get_mem_refs_of_builtin_call): Extract from
3993         instrument_builtin_call and tweak a little bit to make it fit with
3994         the new signature.
3995         (instrument_builtin_call): Use the new
3996         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
3997         of is_gimple_builtin_call.
3998         (instrument_derefs, instrument_mem_region_access): Insert the
3999         instrumented memory reference into the hash table.
4000         (maybe_instrument_assignment): Renamed instrument_assignment into
4001         this, and change it to advance the iterator when instrumentation
4002         actually happened and return true in that case.  This makes it
4003         homogeneous with maybe_instrument_assignment, and thus give a
4004         chance to callers to be more 'regular'.
4005         (transform_statements): Clear the memory reference hash table
4006         whenever we enter a new BB, when we cross a function call, or when
4007         we are done transforming statements.  Use
4008         maybe_instrument_assignment instead of instrumentation.  No more
4009         need to special case maybe_instrument_assignment and advance the
4010         iterator after calling it; it's now handled just like
4011         maybe_instrument_call.  Update comment.
4013 2013-02-13  Richard Biener  <rguenther@suse.de>
4015         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
4016         Fix loop discovery code.
4018 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
4020         PR inline-asm/56148
4021         * lra-constraints.c (process_alt_operands): Match early clobber
4022         operand with itself.  Check conflicts with earlyclobber only if
4023         the operand is not reloaded.  Prefer to reload conflicting operand
4024         if earlyclobber and matching operands are the same.
4026 2013-02-12  Richard Biener  <rguenther@suse.de>
4028         PR lto/56297
4029         * lto-streamer-out.c (write_symbol): Do not output symbols
4030         for hard register variables.
4032 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
4034         PR target/54222
4035         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
4036         (umulsidi3_insn, mulsidi3_insn): New insns.
4038 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
4040         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
4041         (struct tune_params): Add vec_costs field.
4042         * config/arm/arm.c (arm_builtin_vectorization_cost)
4043         (arm_add_stmt_cost): New functions.
4044         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
4045         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
4046         (arm_default_vec_cost): New struct of type cpu_vec_costs.
4047         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
4048         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
4049         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
4050         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
4052 2013-02-12  Richard Biener  <rguenther@suse.de>
4054         PR lto/56295
4055         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
4056         decls again if possible.
4058 2013-02-12  Richard Biener  <rguenther@suse.de>
4060         PR middle-end/56288
4061         * tree-ssa.c (verify_ssa_name): Fix check, move
4062         SSA_NAME_IN_FREE_LIST check up.
4064 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
4065             Steven Bosscher   <steven@gcc.gnu.org>
4067         PR rtl-optimization/56151
4068         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
4069         equal to op0 or op1, and last_insn pattern is CODE operation
4070         with MEM dest and one of the operands matches that MEM.
4072 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
4074         * doc/extend.texi: Document Function Multiversioning and "default"
4075         parameter string to target attribute.
4076         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
4077         target attribute parameter is "default".
4078         (ix86_compare_version_priority): Remove checks for target attribute.
4079         (ix86_mangle_function_version_assembler_name): Change error to sorry.
4080         Remove check for target attribute equal to NULL. Add assert.
4081         (ix86_generate_version_dispatcher_body): Change error to sorry.
4083 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
4084             Jack Howarth  <howarth@bromo.med.uc.edu>
4085             Patrick Marlier  <patrick.marlier@gmail.com>
4087         PR libitm/55693
4088         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
4089         define ENDFILE_SPEC as TM_DESTRUCTOR.
4090         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
4092 2013-02-11  Alexander Potapenko  <glider@google.com>
4093             Jack Howarth  <howarth@bromo.med.uc.edu>
4094             Jakub Jelinek  <jakub@redhat.com>
4096         PR sanitizer/55617
4097         * config/darwin.c (cdtor_record): Rename ctor_record.
4098         (sort_cdtor_records): Rename sort_ctor_records.
4099         (finalize_dtors): New routine to sort destructors by
4100         priority before use in assemble_integer.
4101         (machopic_asm_out_destructor): Use finalize_dtors if needed.
4103 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
4105         PR rtl-optimization/56275
4106         * simplify-rtx.c (avoid_constant_pool_reference): Check that
4107         offset is non-negative and less than cmode size before
4108         calling simplify_subreg.
4110 2013-02-11  Richard Biener  <rguenther@suse.de>
4112         PR tree-optimization/56264
4113         * cfgloop.h (fix_loop_structure): Adjust prototype.
4114         * loop-init.c (fix_loop_structure): Return the number of
4115         newly discovered loops.
4116         * tree-cfgcleanup.c (repair_loop_structures): When new loops
4117         are discovered, do a full loop-closed SSA rewrite.
4119 2013-02-11  Richard Biener  <rguenther@suse.de>
4121         PR tree-optimization/56273
4122         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
4123         first VRP run.
4124         (check_array_ref): Fix missing newline in dumps.
4125         (search_for_addr_array): Likewise.
4127 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
4129         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
4131 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
4133         PR target/56256
4134         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
4136 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
4138         PR rtl-optimization/56246
4139         * lra-constraints.c (simplify_operand_subreg): Try to reuse
4140         reload pseudo.
4141         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
4142         constraints are satisfied.
4144 2013-02-08  Jeff Law  <law@redhat.com>
4146         PR debug/53948
4147         * emit-rtl.c (reg_is_parm_p): New function.
4148         * regs.h (reg_is_parm_p): New prototype.
4149         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
4150         callee-clobbered registers.
4152 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4154         PR target/56043
4155         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
4156         If there is no implicit builtin declaration, just return NULL.
4158 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4160         * config/i386/sse.md (FMAMODEM): New mode iterator.
4161         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
4162         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
4164 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4166         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
4167         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
4168         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
4170 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4172         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
4173         (microblaze*-*-elf): Likewise.
4174         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
4175         LINK_SPEC.
4176         * config/microblaze/microblaze-c.c: Add builtin defines for
4177         _LITTLE_ENDIAN and _BIG_ENDIAN.
4178         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
4179         add to TARGET_DEFAULT flags.
4180         Expand ASM_SPEC and LINK_SPEC.
4181         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
4182         * config/microblaze/microblaze.md: Update extendsidi2 and
4183         movdi_internal instructions to use low-order / high-order reg
4184         print_operands.
4185         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
4186         options and inversemask / mask of LITTLE_ENDIAN.
4187         * config/microblaze/t-microblaze: Expand multilib options to
4188         include mlittle-endian (le) and update exceptions patterns.
4190 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
4192         PR rtl-optimization/56195
4193         * lra-constraints.c (get_reload_reg): Don't reuse regs
4194         if they have smaller mode than requested, if they have
4195         wider mode than requested, try to return a SUBREG.
4197         PR tree-optimization/56250
4198         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
4199         if type is unsigned and code isn't MULT_EXPR.
4201 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
4203         PR tree-optimization/56064
4204         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
4205         bits according to mode.
4206         * fixed-value.h (fixed_from_double_int)
4207         (const_fixed_from_double_int): Adjust comments.
4209 2013-02-08  Richard Biener  <rguenther@suse.de>
4211         PR lto/56231
4212         * lto-streamer.h (struct data_in): Remove current_file, current_line
4213         and current_col members.
4214         * lto-streamer-out.c (lto_output_location): Stream changed bits
4215         en-block for efficiency.
4216         * lto-streamer-in.c (clear_line_info): Remove.
4217         (lto_input_location): Cache current file, line and column
4218         globally via local statics.  Read changed bits en-block.
4219         (input_function): Do not call clear_line_info.
4220         (lto_read_body): Likewise.
4221         (lto_input_toplevel_asms): Likewise.
4223 2013-02-08  Michael Matz  <matz@suse.de>
4225         PR tree-optimization/52448
4226         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
4227         (nt_call_phase): New static.
4228         (add_or_mark_expr): Only mark accesses with newer phase than any
4229         call seen.
4230         (nonfreeing_call_p): New.
4231         (nt_init_block): Update nt_call_phase, mark blocks as visited.
4232         (nt_fini_block): Keep blocks marked as visited.
4233         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
4235 2013-02-08  Richard Biener  <rguenther@suse.de>
4237         * ira.c (ira): Free broken dominator information.
4239 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
4241         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
4243 2013-02-08  Marek Polacek  <polacek@redhat.com>
4245         * cfgloop.c (verify_loop_structure): Add more checking of headers.
4247 2013-02-08  Richard Biener  <rguenther@suse.de>
4249         PR middle-end/56181
4250         * cfgloop.h (flow_loops_find): Adjust.
4251         (bb_loop_header_p): Declare.
4252         * cfgloop.c (bb_loop_header_p): New function split out from ...
4253         (flow_loops_find): ... here.  Adjust function signature,
4254         support incremental loop structure update.
4255         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
4256         * cfgloopmanip.c (fix_loop_structure): Move ...
4257         * loop-init.c (fix_loop_structure): ... here.
4258         (apply_loop_flags): Split out from ...
4259         (loop_optimizer_init): ... here.
4260         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
4261         in incremental mode, only remove dead loops here.
4263 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
4265         PR target/54222
4266         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
4267         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
4268         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
4269         (*round<mode>3.libgcc): New insns for fixed-modes.
4270         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
4271         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
4272         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
4273         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
4274         implementations.  Define to __builtin_avr_absFX,
4275         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
4276         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
4277         __builtin_avr_countlsFX, respectively.
4278         * config/avr/avr-c.c (target.h): Include it.
4279         (enum avr_builtin_id): New enum.
4280         (avr_resolve_overloaded_builtin): New static function.
4281         (avr_register_target_pragmas): Use it to set
4282         targetm.resolve_overloaded_builtin.
4283         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
4284         tree nodes used by DEF_BUILTIN.
4285         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
4286         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
4287         <AVR_BUILTIN_xxBITS>: Same.
4289 2013-02-08  Richard Biener  <rguenther@suse.de>
4291         * cfgloop.c (verify_loop_structure): Properly handle
4292         a loop exiting to another loop header.
4293         * ira-int.h (ira_loops): Remove.
4294         * ira.c (ira_loops): Remove.
4295         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
4296         (do_reload): Use loop_optimizer_finalize.
4297         * ira-build.c (create_loop_tree_nodes): Use get_loops and
4298         number_of_loops to access the loop tree.
4299         (more_one_region_p): Likewise.
4300         (finish_loop_tree_nodes): Likewise.
4301         (rebuild_regno_allocno_maps): Likewise.
4302         (mark_loops_for_removal): Likewise.
4303         (mark_all_loops_for_removal): Likewise.
4304         (remove_unnecessary_regions): Likewise.
4305         (ira_build): Likewise.
4306         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4308 2013-02-08  Richard Biener  <rguenther@suse.de>
4310         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
4311         * ipa-pure-const.c (analyze_function): Avoid calling
4312         mark_irreducible_loops twice.
4313         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
4315 2013-02-07  David S. Miller  <davem@davemloft.net>
4317         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
4318         on 'reg'.
4319         * var-tracking.c (vt_add_function_parameter): Test the presence of
4320         HAVE_window_save properly and do not remap argument registers when
4321         we have a leaf function.
4323 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
4325         PR bootstrap/56227
4326         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
4327         instead of "ll".
4328         * config/i386/i386.c (ix86_print_operand): Ditto.
4330 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
4332         * lra-constraints.c (process_alt_operands): Fix recently added comment.
4334 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
4336         PR rtl-optimization/56225
4337         * lra-constraints.c (process_alt_operands): Check that reload hard
4338         reg can hold value for strict_low_part.
4340 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
4342         PR debug/56154
4343         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
4344         dwarf2out_end_function.
4345         (in_first_function_p, maybe_at_text_label_p,
4346         first_loclabel_num_not_at_text_label): New variables.
4347         (dwarf2out_var_location): In the first function find out
4348         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
4349         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
4350         functions.
4352 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
4354         PR rtl-optimization/56178
4355         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
4356         SUBREG of a register.  Tidy up related block of code.
4357         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
4358         note if the source is a register or a SUBREG of a register.
4360 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
4362         PR target/56228
4363         * config/rs6000/rs6000.md (ptrm): New mode attr.
4364         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
4365         call_value_indirect_aix<pttrsize>,
4366         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
4367         m in constraints.
4369 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4371         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
4372         if -bnortl. Convert to strcmp and strncmp.
4374 2013-02-07  Alan Modra  <amodra@gmail.com>
4376         PR target/54009
4377         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
4378         addresses won't wrap when offsetting.
4379         (rs6000_secondary_reload): Provide secondary reloads needed for
4380         wrapping LO_SUM addresses.
4382 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
4384         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
4385         MACH, just __MACH__.
4387 2013-02-06  Richard Biener  <rguenther@suse.de>
4389         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
4390         instead of calling fix_loop_structure.
4392 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
4394         PR middle-end/56217
4395         * omp-low.c (use_pointer_for_field): Return false if
4396         lower_send_shared_vars doesn't generate any copy-out code.
4398 2013-02-06  Tom de Vries  <tom@codesourcery.com>
4400         PR rtl-optimization/56131
4401         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
4402         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
4403         of the label is NULL.  Add comment.
4405 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
4407         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
4409         PR sanitizer/55374
4410         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
4411         (STATIC_LIBTSAN_LIBS): Likewise.
4412         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
4413         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
4414         is defined, don't add anything else beyond that.
4415         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
4416         (LINK_COMMAND_SPEC): Use them.
4418         PR tree-optimization/56205
4419         * tree-stdarg.c (check_all_va_list_escapes): Return true if
4420         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
4421         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
4423 2013-02-05  Richard Biener  <rguenther@suse.de>
4425         PR tree-optimization/53342
4426         PR tree-optimization/53185
4427         * tree-vectorizer.h (vect_check_strided_load): Remove.
4428         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
4429         not disallow peeling for vectorized strided loads.
4430         (vect_check_strided_load): Make static and simplify.
4431         (vect_analyze_data_refs): Adjust.
4432         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
4433         correctly when vectorizing strided loads.
4435 2013-02-05  Richard Biener  <rguenther@suse.de>
4437         * doc/install.texi: Refer to ISL, not PPL.
4439 2013-02-05  Jan Hubicka  <jh@suse.cz>
4441         PR tree-optimization/55789
4442         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
4444 2013-02-05  Jan Hubicka  <jh@suse.cz>
4446         PR tree-optimization/55789
4447         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
4448         the dead call anyway.
4450 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
4452         PR sanitizer/55374
4453         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
4455 2013-02-04  Alexander Potapenko  <glider@google.com>
4456             Jack Howarth  <howarth@bromo.med.uc.edu>
4457             Jakub Jelinek  <jakub@redhat.com>
4459         PR sanitizer/55617
4460         * config/darwin.c (sort_ctor_records): Stabilized qsort
4461         on constructor priority by using original position.
4462         (finalize_ctors): New routine to sort constructors by
4463         priority before use in assemble_integer.
4464         (machopic_asm_out_constructor): Use finalize_ctors if needed.
4466 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
4468         PR libstdc++/54314
4469         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
4470         about visibility on artificial decls.
4471         * config/sol2.c (solaris_assemble_visibility): Likewise.
4473 2013-02-04  Kai Tietz  <ktietz@redhat.com>
4475         PR target/56186
4476         * config/i386/i386.c (function_value_ms_64): Add additional valtype
4477         argument and improve checking of return-argument types for 16-byte
4478         modes.
4479         (ix86_function_value_1): Add additional valtype argument on call
4480         of function_value_64.
4481         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
4482         handling infunction_value_64 function.
4484 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
4486         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
4488 2013-02-04  Richard Biener  <rguenther@suse.de>
4490         PR tree-optimization/56188
4491         * tree-ssa-structalias.c (label_visit): Consider case with
4492         initially non-empty points-to set.
4493         (perform_var_substitution): Dump node mapping and clean up.
4495 2013-02-04  Richard Guenther  <rguenther@suse.de>
4497         PR lto/56168
4498         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
4499         node prevail as last resort.
4500         (lto_symtab_merge_decls): Remove guard on LTRANS here.
4501         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
4503 2013-02-04  Richard Biener  <rguenther@suse.de>
4505         PR tree-optimization/56113
4506         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
4507         Merge into ...
4508         (equiv_class_lookup_or_add): ... this.
4509         (label_visit): Adjust and fix error in previous patch.
4510         (perform_var_substitution): Adjust.
4512 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
4514         * config/sh/divtab.c: Fix formatting and comments throughout the file.
4515         * config/sh/sh4-300.md: Likewise.
4516         * config/sh/sh4a.md: Likewise.
4517         * config/sh/constraints.md: Likewise.
4518         * config/sh/sh.md: Likewise.
4519         * config/sh/netbsd-elf.h: Likewise.
4520         * config/sh/predicates.md: Likewise.
4521         * config/sh/sh-protos.h: Likewise.
4522         * config/sh/ushmedia.h: Likewise.
4523         * config/sh/linux.h: Likewise.
4524         * config/sh/sh.c: Likewise.
4525         * config/sh/superh.h: Likewise.
4526         * config/sh/elf.h: Likewise.
4527         * config/sh/sh4.md: Likewise.
4528         * config/sh/sh.h: Likewise.
4530 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4532         * config/pa/constraints.md: Adjust unused letters.  Change "T"
4533         constraint to match_test floating_point_store_memory_operand().
4534         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
4535         (base14_operand): New.
4536         (floating_point_store_memory_operand): New.
4537         (integer_store_memory_operand): Revise to use base14_operand and
4538         reg_plus_base_memory_operand.
4539         (move_dest_operand): Allow symbolic_memory_operands.
4540         (symbolic_memory_operand): Check for LO_SOM.
4541         (symbolic_operand): Change default case to break.
4542         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
4543         CONST_DOUBLE values to be reloaded by putting them into memory when
4544         the destination is a floating point register.
4545         (movdf): Remove code to handle CONST_DOUBLE.
4546         (movsf): Likewise.
4547         (reload_indf_r1): New.
4548         (reload_insf_r1): New.
4549         Consistently use "Q" and "T" constraints with integer and floating
4550         point move instructions, respectively.
4551         (movdi): Remove FAIL.
4552         Change predicate for source operand unamed DImode move from
4553         general_operand to move_src_operand.
4554         (umulsidi3): Change predicate for destination operand to
4555         register_operand.
4556         Likewise for similar unamed patterns.
4557         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
4558         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
4559         (hppa_legitimize_address): Simplify mask calculation.
4560         (pa_emit_move_sequence): Revised handling of secondary reloads from
4561         REG+D addresses for floating point loads and stores.  Directly handle
4562         loading CONST0_RTX (mode) to a floating point register.
4563         (pa_secondary_reload): Handle reloading DF and SFmode constant values
4564         to floating point registers.  Don't restrict secondary reloads to
4565         floating point registers to integer modes.  Revise some comments and
4566         cleanup some code.
4567         (TARGET_LEGITIMATE_ADDRESS_P): Define.
4568         (pa_legitimate_address_p): New.
4569         (pa_legitimize_reload_address): New.
4570         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
4571         (STRICT_REG_OK_FOR_BASE_P): New.
4572         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
4573         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
4575 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
4576             Andrew Dixie  <andrewd@gentrack.com>
4578         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
4579         flag set.
4581 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
4583         * expmed.c (extract_bit_field_1): Pass the full width of the
4584         structure to get_best_reg_extraction_insn.
4586 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
4588         PR target/54601
4589         * configure.ac (use_cxa_atexit): Add AIX.
4590         * configure: Regenerate.
4592         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
4594 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
4596         PR debug/54793
4597         * final.c (need_profile_function): New variable.
4598         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
4599         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
4600         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
4601         notes, targetm.asm_out.function_prologue doesn't emit anything,
4602         HAVE_prologue and profiler should be emitted before prologue,
4603         set need_profile_function instead of emitting it.
4604         (final_scan_insn): If need_profile_function, emit
4605         profile_function on the first NOTE_INSN_BASIC_BLOCK or
4606         NOTE_INSN_FUNCTION_BEG note.
4608 2013-02-01  Richard Henderson  <rth@redhat.com>
4610         * config/rs6000/rs6000.md (smulditi3): New.
4611         (umulditi3): New.
4613         * config/alpha/alpha.md (umulditi3): New.
4615 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
4617         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
4618         (ASM_OUTPUT_ALIGNED_LOCAL): New.
4620 2013-02-01  Richard Biener  <rguenther@suse.de>
4622         PR tree-optimization/56113
4623         * tree-ssa-structalias.c (label_visit): Reduce work for
4624         single-predecessor nodes.
4626 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
4628         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
4629         range isn't testing for zero.
4631 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
4633         PR middle-end/56113
4634         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
4636 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
4637             Nick Clifton  <nickc@redhat.com>
4639         * config/v850/constraints.md (Q): Define as a memory constraint.
4640         * config/v850/predicates.md (label_ref_operand): New predicate.
4641         (e3v5_shift_operand): New predicate.
4642         (ior_operator): New predicate.
4643         * config/v850/t-v850: Add e3v5 multilib.
4644         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
4645         (v850_gen_movdi): Prototype.
4646         * config/v850/v850.c: Add support for e3v5 architecture.
4647         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
4648         TARGET_V850E_UP.
4649         (construct_save_jarl): Add e3v5 long JARL support.
4650         (v850_adjust_insn_length): New function.  Adjust length of call
4651         insns when using e3v5 instructions.
4652         (v850_gen_movdi): New function: Generate instructions to move a
4653         DImode value.
4654         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
4655         (CPP_SPEC): Define __v850e3v5__ as appropriate.
4656         (TARGET_USE_FPU): Enable for e3v5.
4657         (CONST_OK_FOR_W): New macro.
4658         (ADJUST_INSN_LENGTH): Define.
4659         * config/v850/v850.md (UNSPEC_LOOP): Define.
4660         (attr cpu): Add v850e3v5.
4661         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
4662         (movdi): New pattern.
4663         (movdi_internal): New pattern.
4664         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
4665         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
4666         (cstoresf4): Likewise.
4667         (cstoredf4): Likewise.
4668         (insv): New pattern.
4669         (rotlso3_a): New pattern.
4670         (rotlsi3_b): New pattern
4671         (rotlsi3_v850e3v5): New pattern.
4672         (doloop_begin): New pattern.
4673         (fix_loop_counter): New pattern.
4674         (doloop_end): New pattern.
4675         (branch_normal): Add e3v5 long branch support.
4676         (branch_invert): Likewise.
4677         (branch_z_normal): Likewise.
4678         (branch_z_invert): Likewise.
4679         (branch_nz_normal): Likewise.
4680         (branch_nz_invert): Likewise.
4681         (call_internal_short): Add e3v5 register-indirect JARL support.
4682         (call_internal_long): Likewise.
4683         (call_value_internal_short): Likewise.
4684         (call_value_internal_long): Likewise.
4685         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
4686         (mloop): New option.
4687         * config.gcc: Add support for configuring v840e3v5 target.
4688         * doc/invoke.texi: Document new v850 specific command line options.
4690 2013-01-31  Paul Koning  <ni1d@arrl.net>
4692         PR debug/55059
4693         PR debug/54508
4694         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
4695         children if parent is a class.
4696         (prune_unused_types_prune): Don't add DW_AT_declaration.
4698 2013-01-31  Richard Biener  <rguenther@suse.de>
4700         PR tree-optimization/56157
4701         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
4702         match up operand with SLP child.
4704 2013-01-31  Jason Merrill  <jason@redhat.com>
4706         PR debug/54410
4707         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4708         parameters the first time.
4709         (gen_scheduled_generic_parms_dies): Check completeness here.
4711 2013-01-31  Richard Biener  <rguenther@suse.de>
4713         PR middle-end/53073
4714         * common.opt (faggressive-loop-optimizations): New flag,
4715         enabled by default.
4716         * doc/invoke.texi (faggressive-loop-optimizations): Document.
4717         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4718         infer_loop_bounds_from_undefined by it.
4720 2013-01-31  Richard Biener  <rguenther@suse.de>
4722         PR tree-optimization/56150
4723         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4724         visit virtual operands.
4725         (find_uses_to_rename_bb): Likewise.
4727 2013-01-31  Richard Biener  <rguenther@suse.de>
4729         PR tree-optimization/56150
4730         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4731         mixed store non-store stmts.
4733 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
4735         PR sanitizer/55374
4736         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4737         LIBASAN_EARLY_SPEC is defined.
4738         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4739         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4740         before %o.
4741         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4743         PR c++/55742
4744         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4745         invalid args instead of ICEing on it.
4746         (ix86_valid_target_attribute_tree): Return error_mark_node if
4747         ix86_valid_target_attribute_inner_p failed.
4748         (ix86_valid_target_attribute_p): Return false only if
4749         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
4750         target("default") attribute.
4751         (sorted_attr_string): Change argument from const char * to tree,
4752         merge in all target attribute arguments rather than just one.
4753         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
4754         instead of free.  Avoid using strcat.
4755         (ix86_mangle_function_version_assembler_name): Mangle
4756         target("default") as if no target attribute is present.  Adjust
4757         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
4758         instead of xmalloc and XDELETEVEC instead of free.
4759         (ix86_function_versions): Don't return true if one of the decls
4760         doesn't have target attribute.  If they don't and one of the decls
4761         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
4762         sorted_attr_string caller.  Use XDELETEVEC instead of free.
4763         (ix86_supports_function_versions): Remove.
4764         (make_name): Fix up formatting.
4765         (make_dispatcher_decl): Remove resolver_name and its initialization.
4766         Avoid leaking memory.
4767         (is_function_default_version): Return true if there is
4768         target("default") attribute rather than no target attribute at all.
4769         (make_resolver_func): Avoid leaking memory.
4770         (ix86_generate_version_dispatcher_body): Likewise.
4771         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4772         * target.def (supports_function_versions): Remove.
4773         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4774         * doc/tm.texi: Regenerated.
4776 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
4778         PR rtl-optimization/56144
4779         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4780         for values with side effects.
4782 2013-01-30  Richard Biener  <rguenther@suse.de>
4784         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4785         (sparseset_pop): Likewise.
4786         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
4787         to be able to use quick_push in the worker loop.
4789 2013-01-30  Marek Polacek  <polacek@redhat.com>
4791         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4793 2013-01-30  Richard Biener  <rguenther@suse.de>
4795         PR lto/56147
4796         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4798 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
4800         PR tree-optimization/56064
4801         * fixed-value.c (fixed_from_double_int): New function.
4802         * fixed-value.h (fixed_from_double_int): New prototype.
4803         (const_fixed_from_double_int): New static inline function.
4804         * fold-const.c (native_interpret_fixed): New static function.
4805         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4806         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4807         (native_encode_fixed): New static function.
4808         (native_encode_expr) <FIXED_CST>: Use it.
4809         (native_interpret_int): Move double_int worker code to...
4810         * double-int.c (double_int::from_buffer): ...this new static method.
4811         * double-int.h (double_int::from_buffer): Prototype it.
4813 2013-01-30  Richard Biener  <rguenther@suse.de>
4815         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4816         New pointer-map and obstack.
4817         (init_alias_vars): Allocate pointer-map and obstack.
4818         (delete_points_to_sets): Free them.
4819         (find_what_var_points_to): Cache result.
4820         (find_what_p_points_to): Adjust for changed interface of
4821         find_what_var_points_to.
4822         (compute_points_to_sets): Likewise.
4823         (ipa_pta_execute): Likewise.
4825 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4827         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4828         * configure: Regenerate.
4829         * config.in: Regenerate.
4830         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4831         #nobits/#progbits if supported.
4833 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
4835         PR target/56121
4836         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4837         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4838         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4840 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4842         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4843         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4845 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4847         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4848         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4850 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4852         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4853         declaration.
4854         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4855         * config/arm/cortex-a7.md: New bypasses using
4856         arm_mac_accumulator_is_result.
4858 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4860         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
4861         (cortex_a7_neon_mla): Likewise.
4862         (cortex_a7_fpfmad): New reservation.
4863         (cortex_a7_fpmacs): Use ffmas and update required units.
4864         (cortex_a7_fpmuld): Update required units and latency.
4865         (cortex_a7_fpmacd): Likewise.
4866         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4867         (cortex_a7_neon). Likewise.
4868         (bypass) Update participating units.
4870 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4872         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4873         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4874         from fmac to ffma.
4875         * config/arm/vfp11.md (vfp_farith): Use ffmas.
4876         (vfp_fmul): Use ffmad.
4877         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4878         (cortex_r4_fmacd): Use ffmad.
4879         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4880         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
4881         (cortex_a9_fmacd): Use ffmad.
4882         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4883         (cortex_a8_vfp_macd): Use ffmad.
4884         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4885         (cortex_a5_fpmacd): Use ffmad.
4886         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4887         (cortex_a15_vfp_macd): Use ffmad.
4888         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4890 2013-01-29  Jason Merrill  <jason@redhat.com>
4892         PR libstdc++/54314
4893         * varasm.c (default_assemble_visibility): Don't warn about
4894         visibility on artificial decls.
4896 2013-01-29  Richard Biener  <rguenther@suse.de>
4898         PR tree-optimization/56113
4899         * tree-ssa-structalias.c (equiv_class_lookup): Also return
4900         the bitmap leader.
4901         (label_visit): Free duplicate bitmaps and record the leader instead.
4902         (perform_var_substitution): Adjust.
4904 2013-01-29  Richard Biener  <rguenther@suse.de>
4906         PR tree-optimization/55270
4907         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4908         the CFG, schedule loops for fixup.
4910 2013-01-29  Nick Clifton  <nickc@redhat.com>
4912         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4913         SP_REG.
4915 2013-01-28  Leif Ekblad  <leif@rdos.net>
4917         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4918         * config/i386/i386.h (TARGET_RDOS): New macro.
4919         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4920         * config/i386/i386.c (ix86_option_override_internal): For 64bit
4921         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4922         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4923         DEFAULT_LARGE_SECTION_THRESHOLD.
4924         * config/i386/i386.md (R14_REG, R15_REG): New constants.
4925         * config/i386/rdos.h: New file.
4926         * config/i386/rdos64.h: New file.
4928 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
4930         PR other/54814
4931         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4932         TEST_HARD_REG_BIT.
4934 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
4936         PR rtl-optimization/56117
4937         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4938         call cselib_lookup_from_insn on the MEM before calling
4939         add_insn_mem_dependence.
4941 2013-01-28  Richard Biener  <rguenther@suse.de>
4943         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4944         to a stmt that didn't have one.
4945         (copy_phis_for_bb): Likewise for PHI arguments.
4946         (copy_debug_stmt): Likewise for debug stmts.
4948 2013-01-28  Richard Biener  <rguenther@suse.de>
4950         PR tree-optimization/56034
4951         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4952         (partition_builtin_p): Adjust.
4953         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
4954         it is the last partition.
4955         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4956         up the vertex for the definition.
4957         (classify_partition): Classify whether a partition is a
4958         PKIND_REDUCTION, thus has uses outside of the loop.
4959         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4960         Merge all PKIND_REDUCTION partitions into the last partition.
4961         (tree_loop_distribution): Seed partitions from reductions as well.
4963 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
4965         PR tree-optimization/56125
4966         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4967         pow(x,c) into sqrt(x) * powi(x, n/2) or
4968         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4969         optimizing for size.
4970         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4971         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4972         integer.
4974         PR tree-optimization/56094
4975         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4976         to UNKNOWN_LOCATION while gimplifying expr.
4978 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
4980         PR target/56114
4981         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4982         operand 0 in movabs insn template for -masm=intel asm alternative.
4983         (*movabs<mode>_2): Ditto for operand 1.
4985 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
4987         PR target/54663
4988         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4989         of microblaze-c.o
4991 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4993         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4994         tm_file.
4996 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4998         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4999         Undef to avoid warning.
5001 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5003         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
5004         * configure: Regenerate.
5006 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
5008         PR tree-optimization/56098
5009         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
5010         for stmts with volatile ops.
5011         (cond_store_replacement): Don't optimize if assign has volatile ops.
5012         (cond_if_else_store_replacement_1): Don't optimize if either
5013         then_assign or else_assign have volatile ops.
5014         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
5015         volatile ops.
5017 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5019         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
5021 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5023         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
5024         missing ':' in asm example.
5026 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
5028         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
5029         entries into lane and laneq entries.
5030         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
5031         Remove AdvSIMD scalar modes.
5032         (aarch64_sq<r>dmulh_laneq<mode>): New.
5033         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
5034         modes.
5035         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
5036         builtin implementations to relfect changes in RTL in aarch64-simd.md.
5037         * config/aarch64/iterators.md (VCOND): New.
5038         (VCONQ): New.
5040 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
5042         PR target/54222
5043         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
5044         Add NULL LIBNAME argument to existing definitions.
5045         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
5046         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
5047         * config/avr/avr.c (DEF_BUILTIN): Same.
5048         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
5049         (avr_expand_builtin): Expand to a vanilla call if a libgcc
5050         implementation is available (DECL_ASSEMBLER_NAME is set).
5051         (avr_fold_absfx): New static function.
5052         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
5053         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
5054         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
5055         AVR_BUILTIN_ABSLLK.
5056         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
5057         (abshk, absk, abslk, absllk): Provide as static inline functions.
5059 2013-01-25  Marek Polacek  <polacek@redhat.com>
5061         PR tree-optimization/56035
5062         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
5064 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
5066         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
5067         (*movtf_internal_rex64): Add (!o,C) alternative
5068         (*movxf_internal_rex64): Ditto.
5069         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
5071 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
5073         * doc/invoke.texi: fix typo.
5074         * doc/objc.texi: fix typo.
5076 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
5078         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
5079         for the first two alternatives.
5081 2013-01-24  Diego Novillo  <dnovillo@google.com>
5083         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
5084         (ggc-zone.o): Remove.
5085         * configure.ac: Remove option --with-gc.
5086         * configure: Re-generate.
5087         * doc/install.texi: Remove documentation for --with-gc.
5088         * gengtype.c (write_enum_defn): Remove.  Update all users.
5089         (write_Types_process_field): Remove generation of gt_e_* argument.
5090         (output_type_enum): Remove.  Update all users.
5091         (write_enum_defn): Remove.  Update all users.
5092         (enum alloc_zone): Remove.  Update all users.
5093         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
5094         * ggc-common.c (ggc_splay_alloc): Remove first argument.
5095         Update all callers.
5096         (struct ptr_data): Remove field TYPE.  Update all users.
5097         (gt_pch_note_object): Remove argument TYPE.  Update all users.
5098         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
5099         Update all users.
5100         * ggc-none.c (ggc_alloc_typed_stat): Remove.
5101         (struct alloc_zone): Remove.
5102         (ggc_internal_alloc_zone_stat): Remove.
5103         (ggc_internal_cleared_alloc_zone_stat): Remove.
5104         * ggc-page.c (ggc_alloc_typed_stat): Remove.
5105         (ggc_pch_count_object): Remove last argument.  Update all users.
5106         (ggc_pch_alloc_object): Remove last argument.  Update all users.
5107         (struct alloc_zone): Remove.
5108         * ggc-zone.c: Remove.
5109         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
5110         (struct alloc_zone): Remove.
5111         (ggc_alloc_typed_stat): Remove.
5112         (ggc_alloc_typed): Remove.
5113         (ggc_splay_alloc): Remove first argument.
5114         (rtl_zone): Remove.  Update all users.
5115         (tree_zone): Remove.  Update all users.
5116         (tree_id_zone): Remove.  Update all users.
5117         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
5118         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
5119         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
5120         * tree-ssanames.c: Remove references to zone allocator in comments.
5122 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
5124         * config/avr/avr.c (avr_out_fract): Make register numbers that
5125         might be outside of source operand signed.
5127 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
5129         * config/i386/constraints.md (Yf): New constraint.
5130         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
5131         of f constraint to conditionaly disable x87 register preferences.
5132         (*movdf_internal): Ditto.
5133         (*movsf_internal): Ditto.
5135 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
5137         PR inline-asm/55934
5138         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
5139         that have operands with impossible constraints.
5140         Add a FIXME for a speed-up opportunity.
5141         * lra-constraints.c (process_alt_operands): Verify that a class
5142         selected from constraints on asms is valid for the operand mode.
5143         (curr_insn_transform): Remove incorrect comment.
5145 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
5147         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
5148         TOC operand is a valid symbol ref in the constant pool.
5150 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
5152         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
5154 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
5156         PR target/54222
5157         * config/avr/stdfix.h: New file.
5158         * t-avr (stdfix-gcc.h): New rule to build it.
5159         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
5161 2013-01-23  Kostya Serebryany  <kcc@google.com>
5163         * config/darwin.h: remove dependency on
5164         CoreFoundation (asan on Mac OS).
5166 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
5168         PR target/49069
5169         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
5170         instead of cmpdi_operand for first comparison operand.
5171         Don't assert that comparison operands aren't both constants.
5173 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5175         * doc/install.texi (Downloading the Source): Update references to
5176         downloading separate components.
5178 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
5180         * doc/extend.texi (__int128): Improve grammar.
5182 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
5184         PR target/56028
5185         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
5186         alternative to (o,r).
5187         (*movdi_internal_rex64): Remove (!o,n) alternative.
5188         (DImode immediate->memory splitter): Remove.
5189         (DImode immediate->memory peephole2): Remove.
5190         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
5191         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
5192         alternative to (!o,*r).
5193         (*movtf_internal_sse): New pattern.
5194         (*movxf_internal_rex64): New pattern.
5195         (*movxf_internal): Disable for TARGET_64BIT.
5196         (*movdf_internal_rex64): Remove (!o,F) alternative.
5198 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
5200         PR middle-end/56074
5201         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
5202         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
5203         * tree-vect-loop-manip.c (find_loop_location): Also ignore
5204         stmt locations where LOCATION_LOCUS of the stmt location is
5205         UNKNOWN_LOCATION or BUILTINS_LOCATION.
5207         PR target/55686
5208         * config/i386/i386.md (UNSPEC_STOS): New.
5209         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
5210         *strsetqi_1): Add UNSPEC_STOS.
5212 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
5214         PR c++/56067
5215         * doc/invoke.texi: Remove left over -Wsynth example.
5217 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
5219         PR tree-optimization/56051
5220         * fold-const.c (fold_binary_loc): Don't fold
5221         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
5222         a narrowing conversion, or widening conversion from signed
5223         to unsigned.
5225 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
5227         PR rtl-optimization/56023
5228         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
5229         dependent on debug instruction.
5231 2013-01-21  Martin Jambor  <mjambor@suse.cz>
5233         PR middle-end/56022
5234         * function.c (allocate_struct_function): Call
5235         invoke_set_current_function_hook earlier.
5237 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
5239         * reload1.c (init_reload): Only initialize reload_obstack
5240         during the first call.
5242 2013-01-21  Marek Polacek  <polacek@redhat.com>
5244         * cfgloop.c (verify_loop_structure): Fix up grammar.
5246 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
5248         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
5249         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
5251 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5253         PR target/56058
5254         * config/arm/marvell-pj4.md: Update copyright year.
5255         Fix up use of alu to alu_reg and simple_alu_imm.
5257 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
5259         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
5261 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
5263         PR target/55433
5264         * lra-constraints.c (curr_insn_transform): Don't reuse original
5265         insn for secondary memory move when memory mode should be different.
5267 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5269         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
5270         atomic_storedi_1): New patterns.
5272 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5274         btver2 pipeline descriptions.
5275         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
5276         descriptions.
5277         * config/i386/i386.md (btver2_decode): New type attributes.
5278         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
5279         type attributes.
5280         * config/i386/btver2.md: New file describing btver2 pipelines.
5282 2013-01-19  Andrew Pinski  <apinski@cavium.com>
5284         PR tree-optimization/52631
5285         * tree-ssa-sccvn (visit_use): Before looking up the original
5286         statement, try looking up the simplified expression.
5288 2013-01-19  Anthony Green  <green@moxielogic.com>
5290         * config/moxie/moxie.c (moxie_expand_prologue): Set
5291         current_function_static_stack_size.
5293 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
5295         PR tree-optimization/56029
5296         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
5297         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
5299 2013-01-18  Sharad Singhai  <singhai@google.com>
5301         PR tree-optimization/55995
5302         * dumpfile.c (dump_loc): Print location only if available.
5303         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
5305 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
5307         PR target/55433
5308         * lra-constraints.c (curr_insn_transform): Reuse original insn for
5309         secondary memory move.
5310         (inherit_reload_reg): Use rclass instead of cl for
5311         check_secondary_memory_needed_p.
5313 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
5315         PR middle-end/56015
5316         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
5317         the case where writing real complex part of target modifies op1.
5319 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
5321         * config/aarch64/aarch64-simd.md
5322         (aarch64_vcond_internal<mode>): Handle unordered cases.
5323         * config/aarch64/iterators.md (v_cmp_result): New.
5325 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
5326             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5328         * config/arm/marvell-pj4.md: New file.
5329         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
5330         * config/arm/arm.md (generic_sched): Add marvell_pj4.
5331         (generic_vfp): Likewise.
5332         * config/arm/arm-cores.def: Add marvell-pj4.
5333         * config/arm/arm-tune.md: Regenerate.
5334         * config/arm/arm-tables.opt: Regenerate.
5335         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
5336         * doc/invoke.texi: Document marvell-pj4.
5338 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
5340         * config/aarch64/arm_neon.h: Map scalar types to standard types.
5342 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5344         PR debug/54114
5345         PR debug/54402
5346         PR debug/49888
5347         * var-tracking.c (negative_power_of_two_p): New.
5348         (global_get_addr_cache, local_get_addr_cache): New.
5349         (get_addr_from_global_cache, get_addr_from_local_cache): New.
5350         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
5351         heading comment.
5352         (vt_stack_offset_p): Remove.
5353         (vt_canon_true_dep): Always canonicalize loc's address.
5354         (clobber_overlapping_mems): Make sure we have a MEM.
5355         (local_get_addr_clear_given_value): New.
5356         (val_reset): Clear local cached entries.
5357         (compute_bb_dataflow): Create and release the local cache.
5358         Disable duplicate MEMs clobbering.
5359         (emit_notes_in_bb): Clobber MEMs likewise.
5360         (vt_emit_notes): Create and release the local cache.
5361         (vt_initialize, vt_finalize): Create and release the global
5362         cache, respectively.
5363         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
5365 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5367         PR libmudflap/53359
5368         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
5369         not found in the symtab.
5371 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
5373         PR debug/56006
5374         PR rtl-optimization/55547
5375         PR rtl-optimization/53827
5376         PR debug/53671
5377         PR debug/49888
5378         * alias.c (offset_overlap_p): New, factored out of...
5379         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
5380         the conservative special case for symbolic constants.  Don't
5381         adjust zero sizes on alignment.
5383 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
5385         PR rtl-optimization/52573
5386         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
5387         REG_UNUSED for the same register.
5389 2013-01-17  Richard Biener  <rguenther@suse.de>
5390             Marek Polacek  <polacek@redhat.com>
5392         PR rtl-optimization/55833
5393         * loop-unswitch.c (unswitch_loops): Move loop verification...
5394         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
5395         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
5396         Set it to true when we're removing a loop from hierarchy tree in
5397         an irreducible region.
5398         (fix_bb_placements): Adjust caller.
5399         (fix_loop_placements): Likewise.
5401 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
5403         * config/avr/builtins.def (DEF_BUILTIN): Factor out
5404         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
5405         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
5406         Remove ID.  Adjust comments.
5407         * config/avr/avr-c.c (avr_builtin_name): Remove.
5408         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
5409         * config/avr/avr.c (avr_tolower): New static function.
5410         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
5411         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
5412         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
5413         default expansion.
5415 2013-01-17  Jan Hubicka  <jh@suse.cz>
5417         PR tree-optimization/55273
5418         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
5420 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
5422         PR target/55981
5423         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
5424         store through atomic_store<mode>_1.
5425         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
5427 2013-01-17  Martin Jambor  <mjambor@suse.cz>
5429         PR tree-optimizations/55264
5430         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
5431         for virtual methods.
5432         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
5433         virtual methods before inlining is over.
5434         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
5435         virtual functions.
5436         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
5437         non-virtual.
5439 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
5441         PR rtl-optimization/56005
5442         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
5443         pending reads for prefetch.
5445 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
5447         * config/aarch64/aarch64.md
5448         (*cstoresi_neg_uxtw): New pattern.
5449         (*cmovsi_insn_uxtw): New pattern.
5450         (*<optab>si3_uxtw): New pattern.
5451         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
5452         (*<optab>si3_insn_uxtw): New pattern.
5453         (*bswapsi2_uxtw): New pattern.
5455 2013-01-16  Richard Biener  <rguenther@suse.de>
5457         * tree-inline.c (tree_function_versioning): Remove set but
5458         never used variable.
5460 2013-01-16  Richard Biener  <rguenther@suse.de>
5462         PR tree-optimization/55964
5463         * tree-flow.h (rename_variables_in_loop): Remove.
5464         (rename_variables_in_bb): Likewise.
5465         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
5466         (copy_loop_before): Adjust and delete update-ssa status.
5467         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
5468         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
5469         (rename_variables_in_loop): Remove.
5470         (slpeel_update_phis_for_duplicate_loop): Likewise.
5471         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
5472         use available cfg machinery instead of duplicating it.
5473         Update PHI nodes and perform poor-mans SSA update here.
5474         (slpeel_tree_peel_loop_to_edge): Adjust.
5476 2013-01-16  Richard Biener  <rguenther@suse.de>
5478         PR tree-optimization/54767
5479         PR tree-optimization/53465
5480         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
5481         (vrp_visit_phi_node): For PHI arguments coming via backedges
5482         drop all symbolical range information.
5483         (execute_vrp): Compute backedges.
5485 2013-01-16  Richard Biener  <rguenther@suse.de>
5487         * doc/install.texi: Update CLooG and ISL requirements to
5488         0.18.0 and 0.11.1.
5490 2013-01-16  Christian Bruel  <christian.bruel@st.com>
5492         PR target/55301
5493         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
5494         (broken_move): Handle UNSPECV_SP_SWITCH_B.
5495         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
5497 2013-01-16  DJ Delorie  <dj@redhat.com>
5499         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
5500         (UNSPECV_SP_SWITCH_E): New.
5501         (sp_switch_1): Change to an unspec.
5502         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
5503         replace $r15.
5505 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
5507         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
5508         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
5509         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
5510         (expand_mem_thread_fence): Ditto.
5511         (expand_mem_signal_fence): Ditto.
5512         (expand_atomic_load): Ditto.
5513         (expand_atomic_store): Ditto.
5515 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
5517         PR rtl-optimization/55547
5518         PR rtl-optimization/53827
5519         PR debug/53671
5520         PR debug/49888
5521         * alias.c (memrefs_conflict_p): Set sizes to negative after
5522         AND adjustments.
5524 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
5526         PR target/55940
5527         * function.c (thread_prologue_and_epilogue_insns): Always
5528         add crtl->drap_reg to set_up_by_prologue.set, even if
5529         stack_realign_drap is false.
5531 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5533         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
5534         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
5535         *call): Fix indention.
5537 2013-01-15  Tom de Vries  <tom@codesourcery.com>
5539         PR target/55876
5540         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
5541         Update comment.
5543 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
5545         PR rtl-optimization/55153
5546         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
5548 2013-01-15  Martin Jambor  <mjambor@suse.cz>
5550         PR tree-optimization/55920
5551         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
5552         accesses as grp_to_be_debug_replaced.
5554 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
5556         PR tree-optimization/55920
5557         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
5558         there is non-useless type conversion needed from debug rhs to lhs,
5559         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
5561 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
5562             Mikael Pettersson  <mikpe@it.uu.se>
5564         PR target/43961
5565         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
5566         Thumb.
5567         (ASM_OUTPUT_CASE_LABEL): Remove.
5568         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
5569         * final.c (shorten_branches): Update alignment of labels before
5570         jump tables if CASE_VECTOR_SHORTEN_MODE.
5572 2013-01-15  Richard Biener  <rguenther@suse.de>
5574         PR bootstrap/55961
5575         * system.h: Do not include gmp.h for building host tools.
5577 2013-01-15  Richard Biener  <rguenther@suse.de>
5579         PR middle-end/55882
5580         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
5581         account for bitpos when computing alignment.
5583 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
5585         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
5586         (ix86_target_macros_internal): Likewise.
5588         * config/i386/i386.c (m_CORE2I7): Removed.
5589         (m_CORE_HASWELL): New macro.
5590         (m_CORE_ALL): Likewise.
5591         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
5592         (initial_ix86_arch_features): Likewise.
5593         (processor_target_table): Initializations for Core avx2.
5594         (cpu_names): New names "core-avx2".
5595         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
5596         PROCESSOR_CORE_HASWELL.
5597         (ix86_issue_rate): New case.
5598         (ia32_multipass_dfa_lookahead): Likewise.
5599         (ix86_sched_init_global): Likewise.
5601         * config/i386/i386.h (TARGET_HASWELL): New macro.
5602         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
5603         (processor_type): New PROCESSOR_HASWELL.
5605 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
5607         PR tree-optimization/55955
5608         * tree-vect-loop.c (vectorizable_reduction): Give up early on
5609         *SHIFT_EXPR and *ROTATE_EXPR codes.
5611         PR tree-optimization/48766
5612         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
5613         -ftrapv disable -fwrapv.
5615 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
5617         PR target/55974
5618         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
5619         etc. to 1 and not to __flash.
5620         Use LL suffix for __INT24_MAX__ with -mint8.
5621         Use ULL suffix for __UINT24_MAX__ with -mint8.
5623 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
5625         * config/avr/avr-arch.h
5626         (struct base_arch_s): Use typedef avr_arch_t instead.
5627         (struct arch_info_s): Use typedef avr_arch_info_t instead.
5628         (struct mcu_type_s): Use typedef avr_mcu_t instead.
5629         * config/avr/avr.c: Same.
5630         * config/avr/avr-devices.c: Same.
5631         * config/avr/driver-avr.c: Same.
5632         * config/avr/gen-avr-mmcu-texi.c: Same.
5633         * config/avr/avr-mcus.def: Adjust comment.
5635 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
5637         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
5638         * config/aarch64/iterators.md (VALLDI): New.
5640 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
5641             Andi Kleen  <ak@linux.intel.com>
5643         PR target/55948
5644         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
5645         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
5646         memmodel flag.
5648 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
5650         * config/avr/avr-stdint.h: Remove trailing blanks.
5651         * config/avr/avr-log.h: Same.
5652         * config/avr/avr-arch.h: Same.
5653         * config/avr/avr-devices.c: Same.
5654         * config/avr/avr-dimode.md: Same.
5655         * config/avr/predicates.md: Same.
5656         * config/avr/avr-c.c: Same.  And fix typo.
5658         * config/avr/avr-protos.h: Same.  And:
5659         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
5660         (init_cumulative_args): Rename to avr_init_cumulative_args.
5661         (expand_prologue): Rename to avr_expand_prologue.
5662         (expand_epilogue): Rename to avr_expand_epilogue.
5663         (adjust_insn_length): Rename to avr_adjust_insn_length.
5664         (notice_update_cc): Rename to avr_notice_update_cc.
5665         (final_prescan_insn): Rename to avr_final_prescan_insn.
5666         * config/avr/avr.c: Same.
5667         * config/avr/avr.h: Same.
5668         * config/avr/avr.md: Remove trailing blanks.
5669         (prologue): Use avr_expand_prologue.
5670         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
5672 2013-01-14  Richard Biener  <rguenther@suse.de>
5674         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
5675         verify_location, collect_subblocks): New functions.
5676         (verify_gimple_in_cfg): Verify that locations only reference
5677         BLOCKs in the functions BLOCK tree.
5679 2013-01-14  Richard Biener  <rguenther@suse.de>
5681         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
5682         PHI argument.
5683         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
5684         unshare reference.
5685         (insert_out_of_ssa_copy_on_edge): Likewise.
5686         (rewrite_close_phi_out_of_ssa): Likewise.
5687         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
5688         debug expressions.
5689         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
5690         propagated constants.
5691         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
5692         can not be shared.
5694 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
5696         * config/avr/avr-modes.def: Add GPL copyright notice.
5698 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
5700         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
5701         MEMMODEL_MASK to determine memory model.
5702         (atomic_store<mode>): Ditto from operands[2].
5703         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
5705 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
5707         PR fortran/55935
5708         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5709         (fold_gimple_assign): Don't call unshare_expr here.
5710         (fold_ctor_reference): Call unshare_expr.
5712 2013-01-13  Terry Guo  <terry.guo@arm.com>
5714         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5715         * doc/fragments.texi: Document MULTILIB_REUSE.
5716         * gcc.c (multilib_reuse): New internal spec.
5717         (set_multilib_dir): Also search multilib from multilib_reuse.
5718         * genmultilib (tmpmultilib3): Refactor code.
5719         (tmpmultilib4): Ditto.
5720         (multilib_reuse): New multilib argument.
5722 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
5724         * Makefile.in: Update copyright.
5726 2013-01-12  Tom de Vries  <tom@codesourcery.com>
5728         PR middle-end/55890
5729         * calls.c (expand_call): Check if arg_nr is valid.
5731 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5733         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5734         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5735         documentation.  Add missing '__' in front of
5736         __builtin_ia32_packssdw256.
5738 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5740         PR target/55719
5741         * config/s390/s390.c (s390_preferred_reload_class): Do not return
5742         NO_REGS for larl operands.
5743         (s390_reload_larl_operand): Use s390_load_address instead of
5744         emit_move_insn.
5746 2013-01-11  Richard Biener  <rguenther@suse.de>
5748         * tree-cfg.c (verify_node_sharing_1): Split out from ...
5749         (verify_node_sharing): ... here.
5750         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5752 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
5754         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5755         Substitute TREECHECKING.
5756         * configure: Regenerate.
5757         * Makefile.in (TREECHECKING): New.
5759 2013-01-11  Richard Guenther  <rguenther@suse.de>
5761         PR tree-optimization/44061
5762         * tree-vrp.c (extract_range_basic): Compute zero as
5763         value-range for __builtin_constant_p of function parameters.
5765 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
5767         Update copyright years.
5769 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
5771         PR rtl-optimization/55672
5772         * lra-eliminations.c (mark_not_eliminable): Permit addition with
5773         const to be eliminable.
5775 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
5777         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5778         * configure: Regenerate.
5780 2013-01-10  Richard Biener  <rguenther@suse.de>
5782         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5784 2013-01-10  Richard Biener  <rguenther@suse.de>
5786         PR bootstrap/55792
5787         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5788         locations for virtual PHI arguments.
5789         (rewrite_update_phi_arguments): Likewise.
5791 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
5793         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5794         on to assembler.
5796 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
5798         PR tree-optimization/55921
5799         * tree-complex.c (expand_complex_asm): New function.
5800         (expand_complex_operations_1): Call it for GIMPLE_ASM.
5802 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5804         PR target/55718
5805         * config/s390/s390.c (s390_symref_operand_p)
5806         (s390_loadrelative_operand_p): Merge the two functions.
5807         (s390_check_qrst_address, print_operand_address): Add parameters
5808         to s390_loadrelative_operand_p invokation.
5809         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5810         (s390_reload_larl_operand, s390_secondary_reload): Use
5811         s390_loadrelative_operand_p instead of s390_symref_operand_p.
5812         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5814 2013-01-09  Mike Stump  <mikestump@comcast.net>
5816         * dse.c (record_store): Remove unnecessary assert.
5818 2013-01-09  Jan Hubicka  <jh@suse.cz>
5820         PR tree-optimization/55569
5821         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5822         * cfgloop.h (scale_loop_profile): Likewise.
5824 2013-01-09  Jan Hubicka  <jh@suse.cz>
5826         PR lto/45375
5827         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5828         functions.
5829         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5831 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
5833         PR middle-end/55114
5834         * expr.h (maybe_emit_group_store): Declare.
5835         * expr.c (maybe_emit_group_store): New function.
5836         * builtins.c (expand_builtin_int_roundingfn): Call it.
5837         (expand_builtin_int_roundingfn_2): Likewise.
5839 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
5841         PR rtl-optimization/55829
5842         * lra-constraints.c (match_reload): Add code for absent output.
5843         (curr_insn_transform): Add code for reloads of matched inputs
5844         without output.
5846 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
5848         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5849         attribute of movddup insn to DF.
5850         (*vec_interleave_lowv2df): Ditto.
5851         (vec_dupv2df): Ditto.
5853 2013-01-09  Jan Hubicka  <jh@suse.cz>
5855         PR tree-optimiation/55875
5856         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5857         EVERY_ITERATION parameter.
5858         (number_of_iterations_exit): Check if exit is executed every iteration.
5859         (idx_infer_loop_bounds): Similarly here.
5860         (n_of_executions_at_most): Simplify
5861         to only test for cases where statement is dominated by the
5862         particular bound; handle correctly the "postdominance" test.
5863         (scev_probably_wraps_p): Use max loop iterations info
5864         as a global bound first.
5866 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
5867             Nick Clifton  <nickc@redhat.com>
5869         * config/v850/v850.md (cbranchsf4): New pattern.
5870         (cstoresf4): New pattern.
5871         (cbranchdf4): New pattern.
5872         (cstoredf4): New pattern.
5873         (movsicc): Disallow floating point comparisons.
5874         (cmpsf_le_insn): Fix order of operators.
5875         (cmpsf_lt_insn): Likewise.
5876         (cmpsf_eq_insn): Likewise.
5877         (cmpdf_le_insn): Likewise.
5878         (cmpdf_lt_insn): Likewise.
5879         (cmpdf_eq_insn): Likewise.
5880         (cmpsf_ge_insn): Use LE comparison.
5881         (cmpdf_ge_insn): Likewise.
5882         (cmpsf_gt_insn): Use LT comparison.
5883         (cmpdf_gt_insn): Likewise.
5884         (cmpsf_ne_insn): Delete pattern.
5885         (cmpdf_ne_insn): Delete pattern.
5886         * config/v850/v850.c (v850_gen_float_compare): Use
5887         gen_cmpdf_eq_insn for NE comparison.
5888         (v850_float_z_comparison_operator)
5889         (v850_float_nz_comparison_operator): Move from here ...
5890         * config/v850/predicates.md: ... to here.  Move GT and GE
5891         comparisons into v850_float_z_comparison_operator.
5892         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5893         Delete prototype.
5894         (v850_float_nz_comparison_operator): Likewise.
5896 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5898         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5899         with calls to gen_insvsi/gen_insvdi.
5901 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5903         * config/i386/i386.c (initial_ix86_tune_features): Set up
5904         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5906 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
5907             Jakub Jelinek  <jakub@redhat.com>
5909         PR tree-optimization/48189
5910         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5911         If nitercst is 0, don't predict the exit edge.
5913 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5915         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5916         in asm_fprintf with reg_names.
5917         (aarch64_print_operand_address): Likewise.
5918         (aarch64_return_addr): Likewise.
5919         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5921 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5923         * config/pa/pa.h (VAL_U6_BITS_P): Define.
5924         (INT_U6_BITS): Likewise.
5925         * config/pa/predicates.md (uint6_operand): New predicate.
5926         (shift5_operand, shift6_operand): Likewise.
5927         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5928         arith32_operand.
5929         (lshrdi3): Use shift6_operand.
5930         (shrpsi4, shrpdi4): New insn patterns.
5931         (extzv): Delete expander.
5932         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
5933         predicates in unamed zero extract patterns.  Tighten common constraint.
5934         (extv): Delete expander.
5935         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
5936         predicates in unamed sign extract patterns.  Tighten common constraint.
5937         (insv): Delete expander.
5938         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
5939         predicates in unamed insert patterns.  Tighten common constraint.
5940         Change uint32_operand predicate to uint6_operand predicate in unamed
5941         DImode pattern to insert constant values of type 1...1xxxx.
5943 2013-01-04  Jan Hubicka  <jh@suse.cz>
5945         PR tree-optimization/55823
5946         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5947         issue.
5949 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5950             Uros Bizjak  <ubizjak@gmail.com>
5952         PR rtl-optimization/55845
5953         * df-problems.c (can_move_insns_across): Stop scanning at
5954         volatile_insn_p source instruction or give up if
5955         across_from .. across_to range contains any volatile_insn_p
5956         instructions.
5958 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
5960         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5961         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5962         Declare.
5963         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5964         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5966 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5968         PR fortran/55341
5969         * asan.c (asan_clear_shadow): New function.
5970         (asan_emit_stack_protection): Use it.
5972 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
5974         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5975         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5976         with tab instead of space.
5978 2013-01-08  Nick Clifton  <nickc@redhat.com>
5980         * config/rl78/rl78.c (rl78_expand_prologue): Always select
5981         register bank 0 at the start of an interrupt handler.
5982         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5983         MDBH registers.
5985 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
5987         * config/aarch64/aarch64-simd.md
5988         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5989         (aarch64_simd_bsl): Likewise.
5990         (aarch64_vcond_internal<mode>): Likewise.
5991         (vcond<mode><mode>): Likewise.
5992         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5993         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5995 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
5997         * config/aarch64/aarch64-builtins.c
5998         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
6000 2013-01-08  Martin Jambor  <mjambor@suse.cz>
6002         PR debug/55579
6003         * tree-sra.c (analyze_access_subtree): Return true also after
6004         potentially creating a debug-only replacement.
6006 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6008         PR middle-end/55890
6009         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
6011         PR tree-optimization/54120
6012         * tree-vrp.c (range_fits_type_p): Don't allow
6013         src_precision < precision from signed vr to unsigned_p
6014         if vr->min or vr->max is negative.
6015         (simplify_float_conversion_using_ranges): Test can_float_p
6016         against CODE_FOR_nothing.
6018 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
6019             Richard Biener  <rguenther@suse.de>
6021         PR middle-end/55851
6022         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
6023         types instead of just INTEGER_TYPE types.
6025 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
6027         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
6028         TF_SIZE): Define.
6030 2013-01-07  Steve Ellcey  <sellcey@mips.com>
6032         PR target/42661
6033         * config/mips/mips.opt: Change mad to mmad to match documentation.
6035 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6037         PR target/55897
6038         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
6039         .progmemx.data now.
6041 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6043         PR target/55897
6044         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
6045         (avr_addrspace_t): Add .section_name field.
6046         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
6047         array size.
6048         (avr_addrspace): Same.  Initialize .section_name.  Remove last
6049         NULL entry.  Put __memx into .progmemx.data.
6050         (progmem_section_prefix): Remove.
6051         (avr_asm_init_sections): No need to initialize progmem_section.
6052         (avr_asm_named_section): Use avr_addrspace[].section_name to get
6053         section name prefix.
6054         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
6055         retrieve the progmem section.
6056         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
6057         boundary to run over avr_addrspace[].
6058         (avr_register_target_pragmas): Ditto.
6060 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
6062         * varasm.c (output_constant_def_contents): For asan_protect_global
6063         protected strings, adjust DECL_ALIGN if needed, before testing for
6064         anchored symbols.
6065         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
6066         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
6067         normal decls.
6068         (output_object_block): For asan protected decls, emit asan padding
6069         after their contents.
6070         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
6071         (asan_finish_file): Test it here instead.
6073 2013-01-07  Nick Clifton  <nickc@redhat.com>
6074             Matthias Klose  <doko@debian.org>
6075             Doug Kwan  <dougkwan@google.com>
6076             H.J. Lu  <hongjiu.lu@intel.com>
6078         PR driver/55470
6079         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
6081         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
6083         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
6085         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
6087         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
6089 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6091         PR target/54461
6092         * doc/install.texi (Cross-Compiler-Specific Options): Document
6093         --with-avrlibc.
6095 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
6097         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
6098         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
6099         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
6100         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
6101         vqmovun_high_s64): Fix source operand number and update copyright.
6103 2013-01-07  Richard Biener  <rguenther@suse.de>
6105         PR middle-end/55890
6106         * gimple.h (gimple_call_builtin_p): New overload.
6107         * gimple.c (validate_call): New function.
6108         (gimple_call_builtin_p): Likewise.
6109         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6110         Use gimple_call_builtin_p.
6111         (find_func_clobbers): Likewise.
6112         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
6113         (strlen_optimize_stmt): Likewise.
6115 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6117         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
6118         (vld1q_dup_*): Likewise.
6119         (vld1_*): Likewise.
6120         (vld1q_*): Likewise.
6121         (vld1_lane_*): Likewise.
6122         (vld1q_lane_*): Likewise.
6124 2013-01-07  Richard Biener  <rguenther@suse.de>
6126         * lto-streamer.h (LTO_minor_version): Bump to 2.
6128 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
6130         * config/aarch64/aarch64-protos.h
6131         (aarch64_const_double_zero_rtx_p): Rename to...
6132         (aarch64_float_const_zero_rtx_p): ...this.
6133         (aarch64_float_const_representable_p): New.
6134         (aarch64_output_simd_mov_immediate): Likewise.
6135         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
6136         move immediate case.
6137         * config/aarch64/aarch64.c
6138         (aarch64_const_double_zero_rtx_p): Rename to...
6139         (aarch64_float_const_zero_rtx_p): ...this.
6140         (aarch64_print_operand): Allow printing of new constants.
6141         (aarch64_valid_floating_const): New.
6142         (aarch64_legitimate_constant_p): Check for valid floating-point
6143         constants.
6144         (aarch64_simd_valid_immediate): Likewise.
6145         (aarch64_vect_float_const_representable_p): New.
6146         (aarch64_float_const_representable_p): Likewise.
6147         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
6148         (aarch64_output_simd_mov_immediate): New.
6149         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
6150         (*movdf_aarch64): Likewise.
6151         * config/aarch64/constraints.md (Ufc): New.
6152         (Y): call aarch64_float_const_zero_rtx.
6153         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
6155 2013-01-07  Richard Biener  <rguenther@suse.de>
6157         PR tree-optimization/55888
6158         PR tree-optimization/55862
6159         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
6160         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
6161         not if it is contained therein.
6163 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6165         * config/avr/t-avr: Typo.
6167 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
6169         PR55243
6170         * config/avr/t-avr: Don't automatically rebuild
6171         $(srcdir)/config/avr/t-multilib
6172         $(srcdir)/config/avr/avr-tables.opt
6173         $(srcdir)/doc/avr-mmcu.texi
6174         (avr-mcus): New phony target to build them on request.
6175         (s-avr-mlib, s-avr-mmcu-texi): Remove.
6176         * avr/avr-mcus.def: Adjust comments.
6178 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
6180         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
6182 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6184         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
6186 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
6188         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
6190 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
6192         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
6193         to generate profiling.
6194         * config/rs6000/aix64.h (LIB_SPEC): Same.
6196 2013-01-04  Andrew Pinski  <apinski@cavium.com>
6198         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
6199         New function.
6200         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
6202 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
6204         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
6205         unconditionally.
6206         (ix86_expand_move): Ditto.
6207         (ix86_zero_extend_to_Pmode): Ditto.
6208         (ix86_expand_call): Ditto.
6209         (ix86_expand_special_args_builtin): Ditto.
6210         (ix86_expand_builtin): Ditto.
6212 2013-01-04  Richard Biener  <rguenther@suse.de>
6214         PR tree-optimization/55862
6215         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
6216         translating them through PHI nodes.
6218 2013-01-04  Martin Jambor  <mjambor@suse.cz>
6220         PR tree-optimization/55755
6221         * tree-sra.c (sra_modify_assign): Do not check that an access has no
6222         children when trying to avoid producing a VIEW_CONVERT_EXPR.
6224 2013-01-04  Marek Polacek  <polacek@redhat.com>
6226         PR middle-end/55859
6227         * opts.c (default_options_optimization): Clarify error message.
6229 2013-01-04  Richard Biener  <rguenther@suse.de>
6231         PR middle-end/55863
6232         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
6233         reassociation.
6235 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6237         PR target/53789
6238         * config/pa/pa.md (movsi): Revert previous change.
6239         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
6240         references.
6242 2013-01-03  Richard Henderson  <rth@redhat.com>
6244         * config/i386/i386.c (ix86_expand_move): Always assign to op1
6245         after eliminating TLS symbols.
6247 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
6249         PR bootstrap/50167
6250         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
6251         * graphite-poly.c (debug_gmp_value): Likewise.
6253 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
6255         PR target/55712
6256         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
6257         selected code model, define __code_mode_small__, __code_model_medium__,
6258         __code_model_large__, __code_model_32__ or __code_model_kernel__.
6259         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
6260         xchg temporary register with %k.  Declare temporary register as
6261         early clobbered.
6262         [__x86_64__]: For medium and large code models, preserve %rbx register.
6264 2013-01-03  Richard Biener  <rguenther@suse.de>
6266         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
6267         (dump_subscript): Adjust.
6268         (finalize_ddr_dependent): Do not dump redundant info.
6269         (analyze_siv_subscript): Adjust.
6270         (subscript_dependence_tester): Likewise.
6271         (compute_affine_dependence): Likewise.
6273 2013-01-03  Richard Biener  <rguenther@suse.de>
6275         Revert
6276         2013-01-03  Richard Biener  <rguenther@suse.de>
6278         PR tree-optimization/55857
6279         * tree-vect-stmts.c (vectorizable_load): Do not setup
6280         re-alignment for invariant loads.
6282         2013-01-02  Richard Biener  <rguenther@suse.de>
6284         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6285         invariant load do not generate a vector load from the scalar location.
6287 2013-01-03  Richard Biener  <rguenther@suse.de>
6289         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
6290         for not vectorizing.
6291         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
6292         not build INDIRECT_REFs, call get_name once only.
6293         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
6294         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
6296 2013-01-03  Richard Biener  <rguenther@suse.de>
6298         PR tree-optimization/55857
6299         * tree-vect-stmts.c (vectorizable_load): Do not setup
6300         re-alignment for invariant loads.
6302 2013-01-03  Richard Biener  <rguenther@suse.de>
6304         PR lto/55848
6305         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
6306         prefer a built-in decl.
6308 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6310         * gcc.c (process_command): Update copyright notice dates.
6311         * gcov.c (print_version): Likewise.
6312         * gcov-dump.c (print_version): Likewise.
6314         PR rtl-optimization/55838
6315         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
6316         iv0.step, iv1.step and step.
6318 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6319             Marc Glisse  <marc.glisse@inria.fr>
6321         PR tree-optimization/55832
6322         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
6323         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
6324         integer_{one,zero}_node.
6326 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
6328         PR debug/54402
6329         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
6330         * var-tracking.c (reverse_op): Don't add reverse ops to
6331         VALUEs that have already
6332         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
6334 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
6336         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
6338 2013-01-02  Teresa Johnson  <tejohnson@google.com>
6340         * dumpfile.c (dump_loc): Print filename with location.
6341         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
6342         new location_t parameter to emit complete unroll message with
6343         new dump framework.
6344         (canonicalize_loop_induction_variables): Compute loops location
6345         and pass to try_unroll_loop_completely.
6346         * loop-unroll.c (report_unroll_peel): New function.
6347         (peel_loops_completely): Use new dump format with location
6348         for main dumpfile message, and invoke report_unroll_peel on success.
6349         (decide_unrolling_and_peeling): Ditto.
6350         (decide_peel_once_rolling): Remove old dumpfile message subsumed
6351         by report_unroll_peel.
6352         (decide_peel_completely): Ditto.
6353         (decide_unroll_constant_iterations): Ditto.
6354         (decide_unroll_runtime_iterations): Ditto.
6355         (decide_peel_simple): Ditto.
6356         (decide_unroll_stupid): Ditto.
6357         * cfgloop.c (get_loop_location): New function.
6358         * cfgloop.h (get_loop_location): Declare.
6360 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
6362         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
6363         NULL.
6365 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6367         PR middle-end/55198
6368         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
6369         BLKmode objects when EXPAND_MEMORY is specified.
6371 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
6373         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
6374         in loop predicate.
6375         (fold_builtin_cpu): Do not share cpu model decls across statements.
6377 2013-01-02  Jason Merrill  <jason@redhat.com>
6379         PR c++/55804
6380         * tree.c (build_array_type_1): Revert earlier change.
6382 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
6384         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
6385         "cortex-a57".
6386         * config/aarch64/aarch64-tune.md: Re-generate.
6388 2013-01-02  Richard Biener  <rguenther@suse.de>
6390         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
6391         invariant load do not generate a vector load from the scalar location.
6393 2013-01-02  Richard Biener  <rguenther@suse.de>
6395         PR bootstrap/55784
6396         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
6397         * configure: Regenerate.
6399 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6401         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
6402         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
6403         (expand_builtin_int_roundingfn_2): Keep the original target around
6404         for the fallback case.
6406 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
6408         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
6409         to be clear for sign changes.
6411 2013-01-01  Jan Hubicka  <jh@suse.cz>
6413         * ipa-inline-analysis.c: Fix formatting.
6415 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
6417         PR tree-optimization/55831
6418         * tree-vect-loop.c (get_initial_def_for_induction): Use
6419         gsi_after_labels instead of gsi_start_bb.
6421 Copyright (C) 2013 Free Software Foundation, Inc.
6423 Copying and distribution of this file, with or without modification,
6424 are permitted in any medium without royalty provided the copyright
6425 notice and this notice are preserved.