2013-09-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blobb7c722c259e9a662016a5d008397919b66656831
1 2013-09-09  Richard Biener  <rguenther@suse.de>
3         Backport from mainline
4         2013-08-29  Richard Biener  <rguenther@suse.de>
6         PR tree-optimization/57685
7         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
8         single-use operands to avoid exponential complexity.
10 2013-09-09  Richard Biener  <rguenther@suse.de>
12         Backport from mainline
13         2013-08-30  Richard Biener  <rguenther@suse.de>
15         PR tree-optimization/58223
16         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17         (has_anti_or_output_dependence): ... this and adjust to also
18         look for output dependences.
19         (mark_nodes_having_upstream_mem_writes): Adjust.
20         (rdg_flag_uses): Likewise.
22 2013-09-03  Richard Biener  <rguenther@suse.de>
24         Backport from mainline
25         2013-08-29  Richard Biener  <rguenther@suse.de>
27         PR tree-optimization/58246
28         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
29         handle the dominance check inside a basic-block.
31 2013-09-03  Richard Biener  <rguenther@suse.de>
33         Backport from mainline
34         2013-08-30  Richard Biener  <rguenther@suse.de>
36         PR tree-optimization/58228
37         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
38         allow invariant loads in nested loop vectorization.
40 2013-09-03  Richard Biener  <rguenther@suse.de>
42         Backport from mainline
43         2013-08-30  Richard Biener  <rguenther@suse.de>
45         PR tree-optimization/58010
46         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
47         assert that we have a loop-closed PHI.
49 2013-09-01  Uros Bizjak  <ubizjak@gmail.com>
51         Backport from mainline
52         2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
54         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
55         "cmp" RTX before signed_comparison_operator check to account
56         for "code" changes.
58 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
60         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
62 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
64         PR tree-optimization/58277
65         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
66         after seeing too many stmts with vdef in between dombb and current
67         bb, invalidate everything.
69 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
71         Backport from mainline
72         2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
74         PR other/12081
75         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
76         class insn_gen_fn.
77         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
78         rtx (*) (rtx, ...) with insn_gen_fn.
79         * genoutput.c (output_insn_data): Cast gen_? function pointers to
80         insn_gen_fn::stored_funcptr.  Add initializer braces.
82         Backport from mainline
83         2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
85         PR other/12081
86         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
87         (rs6000_emit_swdiv_high_precision, rs6000_emit_swdiv_low_precision,
88         rs6000_emit_swrsqrt): Don't cast result of GEN_FCN to gen_2arg_fn_t.
90 2013-08-29  Jakub Jelinek  <jakub@redhat.com>
92         Backported from mainline
93         2013-05-27  Richard Biener  <rguenther@suse.de>
95         PR middle-end/57381
96         PR tree-optimization/57417
97         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
98         for unchanged base.
99         (set_ssa_val_to): Compare addresses using
100         get_addr_base_and_unit_offset.
102         PR tree-optimization/57396
103         * tree-affine.c (double_int_constant_multiple_p): Properly
104         return false for val == 0 and div != 0.
106         PR tree-optimization/57343
107         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
108         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
109         (number_of_iterations_cond): Do not build the folded tree.
111 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
113         PR middle-end/58257
114         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
116 2013-08-28  Richard Biener  <rguenther@suse.de>
118         Backport from mainline
119         2013-06-24  Richard Biener  <rguenther@suse.de>
121         PR middle-end/56977
122         * passes.c (init_optimization_passes): Move pass_fold_builtins
123         and pass_dce earlier with -Og.
125 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
127         Backport from mainline
128         2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
130         * config/i386/driver-i386.c (host_detect_local_cpu): Update
131         Haswell processor detection.
133         Backport from mainline
134         2013-08-27  Christian Widmer  <shadow@umbrox.de>
136         PR target/57927
137         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
138         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
139         AVX2 capable processors.
141 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
143         PR target/58218
144         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
145         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
147         PR tree-optimization/58209
148         * tree-tailcall.c (find_tail_calls): Give up for pointer result types
149         if m or a is non-NULL.
151 2013-08-21  Richard Earnshaw  <rearnsha@arm.com>
153         PR target/56979
154         * arm.c (aapcs_vfp_allocate): Decompose the argument if the
155         suggested mode for the assignment isn't compatible with the
156         registers required.
158 2013-08-20  Alan Modra  <amodra@gmail.com>
160         PR target/57865
161         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
162         (rs6000_emit_epilogue): Likewise.
164 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
165             Jakub Jelinek  <jakub@redhat.com>
167         Backport from mainline
168         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
169         destination and source operands.
171 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
173         PR tree-optimization/58006
174         * tree-parloops.c (take_address_of): Don't ICE if get_name
175         returns NULL.
176         (eliminate_local_variables_stmt): Remove clobber stmts.
178 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
180         PR tree-optimization/58164
181         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
182         walk gimple_goto_dest of GIMPLE_GOTO.
184         PR tree-optimization/58165
185         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
186         bi_call must be the last stmt in a bb, don't split_block, instead
187         use fallthru edge from it and give up if there is none.
188         Release conds vector when returning early.
190 2013-08-15  David Given  <dg@cowlark.com>
192         Backport from mainline
193         2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
195         * lra-constraints.c (process_alt_operands): Use #if HAVE_ATTR_enable
196         instead of #ifdef.
198 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
200         PR tree-optimization/58145
201         * tree-sra.c (build_ref_for_offset): If prev_base has
202         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
204 2013-08-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
206         * config/s390/htmxlintrin.h: Add file missing from last commit.
207         * config/s390/htmintrin.h: Likewise.
208         * config/s390/s390intrin.h: Likewise.
210 2013-08-14  Uros Bizjak  <ubizjak@gmail.com>
212         Backport from mainline
213         2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
215         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
216         when Pmode != word_mode.  Add length_address attribute.
217         (sse3_monitor_<mode>): Merge from sse3_monitor and
218         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
219         Pmode != word_mode.  Update insn length attribute.
220         * config/i386/i386.c (ix86_option_override_internal): Update
221         ix86_gen_monitor selection for merged sse3_monitor insn.
223 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
224             Alexandre Oliva  <aoliva@redhat.com>
226         PR target/58067
227         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
228         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
229         there also UNSPEC_PLTOFF.
231 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
233         PR sanitizer/56417
234         * asan.c (instrument_strlen_call): Fix typo in comment.
235         Use char * type even for the lhs of POINTER_PLUS_EXPR.
237 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
239         Backport from mainline
240         2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
242         PR rtl-optimization/57459
243         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
244         type when setting live regs.
246 2013-08-13  Marek Polacek  <polacek@redhat.com>
247             Jakub Jelinek  <jakub@redhat.com>
249         PR tree-optimization/57980
250         * tree-tailcall.c (process_assignment): Return false
251         when not dealing with integers or floats.
253 2013-08-12  Andrew Haley  <aph@redhat.com>
255         Backport from mainline:
256         * 2013-07-11  Andreas Schwab  <schwab@suse.de>
258         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
260 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
262         Backport from mainline
263         2013-08-12  Perez Read  <netfirewall@gmail.com>
265         PR target/58132
266         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
267         operand 0 for intel asm alternative.
268         (*movabs<mode>_2): Ditto for operand 1.
270 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
272         Backport from mainline:
273         2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
275         * config/arm/neon.md (vcond): Fix floating-point vector
276         comparisons against 0.
278 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
280         Backport from mainline:
281         2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
283         * config/arm/neon.md (movmisalign<mode>): Disable when we
284         don't allow unaligned accesses.
285         (*movmisalign<mode>_neon_store): Likewise.
286         (*movmisalign<mode>_neon_load): Likewise.
287         (*movmisalign<mode>_neon_store): Likewise.
288         (*movmisalign<mode>_neon_load): Likewise.
290 2013-08-06  Martin Jambor  <mjambor@suse.cz>
292         PR middle-end/58041
293         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
294         MEM_REF has proper alignment information.
296 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
298         PR rtl-optimization/57708
299         * recog.c (peep2_find_free_register): Validate all regs in a
300         multi-reg mode.
302 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
304         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
305         the implied StoreLoad barrier for atomic operations if before.
307 2013-08-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
309         Backports from mainline:
310         2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
312         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
313         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
314         (struct machine_function): Add tbegin_p.
315         (s390_canonicalize_comparison): Fold CC mode compares to
316         conditional jump if possible.
317         (s390_emit_jump): Return the emitted jump.
318         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
319         Handle CCRAWmode compares.
320         (s390_option_override): Default to -mhtm if available.
321         (s390_reg_clobbered_rtx): Handle floating point regs as well.
322         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
323         FPRs instead of df_regs_ever_live_p.
324         (s390_optimize_nonescaping_tx): New function.
325         (s390_init_frame_layout): Extend clobbered_regs array to cover
326         FPRs as well.
327         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
328         (s390_expand_tbegin): New function.
329         (enum s390_builtin): New enum definition.
330         (code_for_builtin): New array definition.
331         (s390_init_builtins): New function.
332         (s390_expand_builtin): New function.
333         (TARGET_INIT_BUILTINS): Define.
334         (TARGET_EXPAND_BUILTIN): Define.
335         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
336         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
337         (s390_alc_comparison): Likewise.
338         * config/s390/s390-modes.def: Add CCRAWmode.
339         * config/s390/s390.h (processor_flags): Add PF_TX.
340         (TARGET_CPU_HTM): Define macro.
341         (TARGET_HTM): Define macro.
342         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
343         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
344         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
345         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
346         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
347         values.
348         (TBEGIN_MASK, TBEGINC_MASK): New constants.
349         ("*cc_to_int"): Move up.
350         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
351         constants other than 0.
352         ("*ccraw_to_int"): New insn and splitter definition.
353         ("tbegin", "tbegin_nofloat", "tbegin_retry")
354         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
355         ("tx_assist"): New expander.
356         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
357         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
358         * config/s390/s390.opt: Add -mhtm option.
359         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
360         * config/s390/htmxlintrin.h: New file.
361         * config/s390/htmintrin.h: New file.
362         * config/s390/s390intrin.h: New file.
363         * doc/extend.texi: Document htm builtins.
364         * config.gcc: Add the new header files to extra_headers.
366         2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
368         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
369         enabled without -march=zEC12.
370         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
371         flags to be set.
373 2013-08-01  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
375         Backport from mainline
376         2013-05-13  Ganesh Gopalasubramanian
377                     <Ganesh.Gopalasubramanian@amd.com>
379         * config/i386/i386.c (processor_target_table): Modified default
380         alignment values for AMD BD and BT architectures.
382 2013-07-31  Sriraman Tallam  <tmsriram@google.com>
384         * config/i386/i386.c (dispatch_function_versions): Fix array
385         indexing of function_version_info to match actual_versions.
387 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
389         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
390         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
392 2013-07-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
394         Backport from mainline
395         2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
397         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
399         2013-07-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
401         * config/s390/linux-unwind.h: Use the proper dwarf to hard reg
402         mapping for FPRs when creating the fallback framestate.
404         2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
406         * config/s390/s390.md ("movcc"): Swap load and store instructions.
408 2013-07-25  Terry Guo  <terry.guo@arm.com>
410         Backport from mainline:
411         2013-07-25  Terry Guo  <terry.guo@arm.com>
413         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
414         shift_add/shift_sub0/shift_sub1 RTXs.
416 2013-07-22  Iain Sandoe  <iain@codesourcery.com>
418         Backport from mainline:
419         2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
421         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
422         it is not needed after split.
424         2013-07-20  Iain Sandoe  <iain@codesourcery.com>
426         PR target/51784
427         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
428         second label for nonlocal goto receivers. Don't output pic base labels
429         unless we're producing PIC; mark that action unreachable().
430         (ix86_save_reg): If the function contains a nonlocal label, save the
431         PIC base reg.
432         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
433         * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
434         (update_pic_label_number_if_needed): New.
435         (machopic_output_function_base_name): Adjust for nonlocal receiver
436         case.
437         (machopic_should_output_picbase_label): New.
438         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
439         (nonlocal_goto_receiver): New insn and split.
441 2013-07-19 Wei Mi  <wmi@google.com>
443         Backport from mainline:
444         2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
445                     Wei Mi  <wmi@google.com>
447         PR rtl-optimization/57878
448         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
449         top. Promote lra_assert to gcc_assert.
450         (reload_pseudo_compare_func): Check regs first for reload pseudos.
452 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
454         Backport from 2013-07-19 trunk r201051.
456         PR target/57516
457         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
458         * config/avr/avr.md (adjust_len): Add `round'.
459         * config/avr/avr-protos.h (avr_out_round): New prototype.
460         (avr_out_plus): Add `out_label' argument.
461         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
462         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
463         Handle the case where `insn' is just a pattern.
464         (avr_out_bitop): Handle the case where `insn' is just a pattern.
465         (avr_out_round): New function.
466         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
468 2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
470         * config/i386/bmiintrin.h (_bextr_u32): New.
471         (_bextr_u64): Ditto.
472         (_blsi_u32): New.
473         (_blsi_u64): Ditto.
474         (_blsr_u32): Ditto.
475         (_blsr_u64): Ditto.
476         (_blsmsk_u32): Ditto.
477         (_blsmsk_u64): Ditto.
478         (_tzcnt_u32): Ditto.
479         (_tzcnt_u64): Ditto.
481 2013-07-17  James Greenhalgh  <james.greenhalgh@arm.com>
483         Backport From mainline:
484         2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
486         * config/aarch64/aarch64-builtins.c
487         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
488         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
489         (st1): Likewise.
490         * config/aarch64/aarch64-simd.md
491         (aarch64_ld1<VALL:mode>): New.
492         (aarch64_st1<VALL:mode>): Likewise.
493         * config/aarch64/arm_neon.h
494         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
496 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
498         Backport from 2013-07-11 trunk r200901.
500         PR target/57631
501         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
502         name seen by assembler/linker if available.
504 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
506         Backport from 2013-07-10 trunk r200872.
508         PR target/57844
509         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
510         of my_fp.
512 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
514         Backport from 2013-07-10 trunk r200870.
516         PR target/57506
517         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
518         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
519         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
520         Remove duplicate devices.
521         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
522         * config/avr/t-multilib: Regenerate.
523         * config/avr/avr-tables.opt: Regenerate.
524         * doc/avr-mmcu.texi: Regenerate.
526 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
528         PR target/56987
529         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
531 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
533         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
534         adjust register size for TDmode and TFmode for VSX registers.
536 2013-07-08  Kai Tietz  <ktietz@redhat.com>
538         Backport from mainline
539         PR target/56892
540         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
541         hook_bool_const_tree_true.
543 2013-07-08  Uros Bizjak  <ubizjak@gmail.com>
545         Backport from mainline
546         2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
548         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
549         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
551         Backport from mainline
552         2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
554         * config/i386/sse.md (sse_movlhps): Change alternative 3
555         of operand 2 to "m".
557 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
559         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
561 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
563         PR rtl-optimization/57829
564         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
565         mask bits outside of mode are just sign-extension from mode to HWI.
567 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
569         PR target/57777
570         * config/i386/predicates.md (vsib_address_operand): Disallow
571         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
573 2013-06-30  Terry Guo  <terry.guo@arm.com>
575         Backport from mainline
576         2013-03-27  Bin Cheng  <bin.cheng@arm.com>
578         PR target/56102
579         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
580         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
581         mult-word mode.
583 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
585         PR target/57736
586         * config/i386/i386.c (ix86_expand_builtin): If target == NULL
587         and mode is VOIDmode, don't create a VOIDmode pseudo to copy result
588         into.
590 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
592         PR target/57623
593         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
594         constraints of operand 1 and 2.
596         PR target/57623
597         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
598         to match RTL canonicalization.  Swap predicates and
599         constraints of operand 1 and 2.
601         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
602         decl before the loop, initialize to NULL.
603         (vectorizable_load): Initialize ptr_incr to NULL.
605 2013-06-24  Martin Jambor  <mjambor@suse.cz>
607         PR tree-optimization/57358
608         * ipa-prop.c (parm_ref_data_preserved_p): Always return true when
609         not optimizing.
611 2013-06-24  Alan Modra  <amodra@gmail.com>
613         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
614         (gen_easy_altivec_constant): Likewise.
615         * config/rs6000/predicates.md (easy_vector_constant_add_self,
616         easy_vector_constant_msb): Likewise.
618 2013-06-21  Uros Bizjak  <ubizjak@gmail.com>
620         Backport from mainline
621         2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
623         PR target/57655
624         * config/i386/i386.c (construct_container): Report error if
625         long double is used with disabled x87 float returns.
627 2013-06-20  Wei Mi  <wmi@google.com>
629         Backport from mainline
630         2013-06-19  Wei Mi  <wmi@google.com>
632         PR rtl-optimization/57518
633         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
634         if regno is used in paradoxical subreg.
635         (update_equiv_regs): Check pdx_subregs[regno] before
636         set a reg to be equivalent with a mem.
639 2013-06-20  David Edelsohn  <dje.gcc@gmail.com>
641         Backport from mainline
642         2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
644         PR driver/57652
645         * collect2.c (collect_atexit): New.
646         (collect_exit): Delete.
647         (main): Register collect_atexit with atexit.
648         (collect_wait): Change collect_exit to exit.
649         (do_wait): Same.
650         * collect2.h (collect_exit): Delete.
651         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
653 2013-06-19  Matthias Klose  <doko@ubuntu.com>
655         PR driver/57651
656         * file-find.h (find_a_file): Add a mode parameter.
657         * file-find.c (find_a_file): Likewise.
658         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
659         with X_OK for the executables.
660         * collect2.c (main): Call find_a_file with X_OK.
662 2013-06-19  Igor Zamyatin  <igor.zamyatin@intel.com>
664         * doc/invoke.texi (core-avx2): Document.
665         (atom): Updated with MOVBE.
667 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
669         PR driver/57651
670         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
671         PERSONALITY in $PATH derived prefixes.
673 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
675         PR c++/56544
676         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
677         that now in C++ the value is correct per the C++ standards.
679 2013-06-19  Alan Modra  <amodra@gmail.com>
681         Apply mainline patches
682         2013-06-13  Alan Modra  <amodra@gmail.com>
683         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
684         * config/rs6000/rs6000.md (signbittf2): New insn.
685         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
686         (abstf2_internal, cmptf_internal2): Likewise.
687         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
689         2013-06-11  Anton Blanchard  <anton@samba.org>
690         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
691         correct shift value in little-endian mode.
693         2013-06-07  Alan Modra  <amodra@gmail.com>
694         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
695         va_list_gpr_size.
697         2013-06-04  Alan Modra  <amodra@gmail.com>
698         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
699         constant output.
701         2013-05-10  Alan Modra  <amodra@gmail.com>
702         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
703         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
704         * configure: Regenerate.
706         2013-05-09  Alan Modra  <amodra@gmail.com>
707         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
708         powerpc64le.
709         * configure: Regenerate.
711         2013-05-07  Anton Blanchard  <anton@samba.org>
712         * configure.ac (HAVE_LD_LARGE_TOC): Use right linker emulation
713         for powerpc64 little endian.
714         * configure: Regenerate.
716         2013-05-06  Alan Modra  <amodra@gmail.com>
717         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
718         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
719         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
720         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
721         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
722         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
724         2013-05-06  Alan Modra  <amodra@gmail.com>
725         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
726         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
727         (DEFAULT_ASM_ENDIAN): Define.
728         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
729         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
730         Update -K PIC clause from sysv4.h.
731         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
732         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
734         2013-05-06  Alan Modra  <amodra@gmail.com>
735         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
736         twice for little-endian.
737         (ashrdi3_no_power, ashrdi3): Support little-endian.
739         2013-04-25  Alan Modra  <amodra@gmail.com>
740         * config.gcc: Support little-endian powerpc-linux targets.
741         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
742         (LINK_OS_LINUX_SPEC): Define.
743         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
744         Preserve MASK_LITTLE_ENDIAN.
745         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
746         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
747         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
748         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
749         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
750         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
751         Correct fp word order for little-endian.  Don't shift toc entries
752         smaller than a word for little-endian.
753         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
754         (bswapdi2 splits): Correct low-part subreg for little-endian.
755         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
756         low/high where such is correct only for be.
757         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
758         little-endian for -mcall-aixdesc.
760 2013-06-12  Martin Jambor  <mjambor@suse.cz>
762         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
763         within bounds at the beginning of the function.
765 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
767         PR tree-optimization/57537
768         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
769         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
771 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
773         Backport from mainline
774         2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
776         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
777         cmp_code to construct REG_EQUAL note.
779 2013-06-10  Oleg Endo  <olegendo@gcc.gnu.org>
781         Backport from mainline
782         2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
784         PR target/56547
785         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
786         (*fmasf4, *fmasf4_media): New insns.
788 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
790         PR target/57568
791         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
792         that operands[2] doesn't overlap with operands[0].
794 2013-06-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
796         * recog.c (offsettable_address_addr_space_p): Fix calculation of
797         address mode.  Move pointer mode initialization to the same place.
799 2013-06-07  Sofiane Naci  <sofiane.naci@arm.com>
801         Backport from mainline
802         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
804 2013-06-07  Uros Bizjak  <ubizjak@gmail.com>
806         Backport from mainline
807         2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
809         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
810         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
812         Backport from mainline
813         2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
815         PR target/57379
816         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
817         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
818         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
820 2013-06-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
822         Backport from mainline.
823         2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
825         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
827 2013-06-03  James Greenhalgh  <james.greenhalgh@arm.com>
829         Backport from mainline.
830         2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
832         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
833         format specifier in 'X' case.
835 2013-05-31  Richard Henderson  <rth@redhat.com>
837         PR target/56742
838         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
839         (ix86_reorg): Call it.
841 2012-05-31  Jakub Jelinek  <jakub@redhat.com>
843         * BASE-VER: Set to 4.8.2.
844         * DEV-PHASE: Set to prerelease.
846 2013-05-31  Release Manager
848         * GCC 4.8.1 released.
850 2013-05-24  Greta Yorsh  <Greta.Yorsh@arm.com>
852         Backport from mainline
853         2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
855         PR target/56732
856         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
857         generating simple_return for naked functions.
859 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
861         PR tree-ssa/57385
862         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
863         that index is not negative.
865 2013-05-23  Martin Jambor  <mjambor@suse.cz>
867         PR middle-end/57347
868         * tree.h (contains_bitfld_component_ref_p): Declare.
869         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
870         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its caller.
871         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
872         not access a bit-field.  Assert all final offsets are byte-aligned.
874 2013-05-23  Richard Biener  <rguenther@suse.de>
876         PR rtl-optimization/57341
877         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
878         instead of true_dependence.
880 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
882         PR middle-end/57344
883         * expmed.c (store_split_bit_field): If op0 is a REG or
884         SUBREG of a REG, don't lower unit.  Handle unit not being
885         always BITS_PER_WORD.
887 2013-05-22  Uros Bizjak  <ubizjak@gmail.com>
889         PR target/57356
890         * config/i386/i386.md (*movti_internal_rex64): Emit movaps/movups
891         for non-sse2 targets.
892         (*movti_internal): Simplify mode attribute calculation.
894 2013-05-22  Richard Biener  <rguenther@suse.de>
896         Backport from mainline
897         2013-05-21  Richard Biener  <rguenther@suse.de>
899         PR tree-optimization/57318
900         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
901         estimate stmts with side-effects as likely eliminated.
903         2013-05-21  Richard Biener  <rguenther@suse.de>
905         PR tree-optimization/57330
906         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
907         preserve the call stmts fntype.
909         2013-05-21  Richard Biener  <rguenther@suse.de>
911         PR tree-optimization/57303
912         * tree-ssa-sink.c (statement_sink_location): Properly handle
913         self-assignments.
915 2013-05-21  Magnus Granberg  <baldrick@free.fr>
917         PR plugins/56754
918         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
920 2013-05-21  Eric Botcazou  <ebotcazou@adacore.com>
922         Backport from mainline
923         2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
925         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
926         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
928 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
930         PR rtl-optimization/57281
931         PR rtl-optimization/57300
932         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
933         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
934         what the other splitter did if the registers are dead.
936 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
938         Backport from mainline
939         2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
941         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
942         cache parameters using detect_caches_amd also for CYRIX,
943         NSC and TM2 signatures.
945         2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
946                     Dzianis Kahanovich  <mahatma@eu.by>
948         PR target/45359
949         PR target/46396
950         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
951         VIA/Centaur processors and determine their cache parameters
952         using detect_caches_amd.
954         2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
956         * config/i386/i386.c (ix86_option_override_internal): Update
957         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
958         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
959         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
960         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
961         of TARGET_3DNOW.
962         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
964 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
966         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
967         linking.
969         PR tree-optimization/57051
970         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
971         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
973 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
975         * omp-low.c (extract_omp_for_data): For collapsed loops,
976         if at least one of the loops is known at compile time to
977         iterate zero times, set count to 0.
978         (expand_omp_regimplify_p): New function.
979         (expand_omp_for_generic): For collapsed loops, if at least
980         one of the loops isn't known to iterate at least once,
981         add runtime check with setting count to 0.
982         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
983         For unsigned types if it isn't known at compile time that
984         the loop will iterate at least once, add runtime check to bypass
985         the whole loop if initial condition isn't true.
987 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
989         PR middle-end/57251
990         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
991         the case when both op0 and op1 have VOIDmode.
993 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
995         PR tree-optimization/57230
996         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
997         check.
999 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
1001         * config/epiphany/epiphany.c (epiphany_init): Check size of
1002         NUM_MODES_FOR_MODE_SWITCHING.
1003         (epiphany_expand_prologue):
1004         Remove CONFIG_REGNUM initial value handling code.
1005         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
1006         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
1007         (emit_set_fp_mode, epiphany_mode_after): Likewise.
1008         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
1009         Don't return 1 for FP_MODE_NONE.
1010         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
1011         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
1012         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
1013         * config/epiphany/epiphany.md (save_config): New pattern.
1015 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1017         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
1018         Add mthumb/march=armv7-a multilib.
1019         Add mthumb/march=armv7-r multilib.
1020         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
1022 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
1024         PR target/57237
1025         * config/v850/t-rtems: Add more multilibs.
1027 2013-05-10  Richard Biener  <rguenther@suse.de>
1029         PR tree-optimization/57214
1030         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
1031         not propagate from SSA names that occur in abnormal PHI nodes.
1033 2013-05-10  Alan Modra  <amodra@gmail.com>
1035         PR target/55033
1036         * varasm.c (default_elf_select_section): Move !DECL_P check..
1037         (get_named_section): ..to here before calling get_section_name.
1038         Adjust assertion.
1039         (default_section_type_flags): Add DECL_P check.
1040         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
1041         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
1043 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
1045         * config/epiphany/epiphany.c (epiphany_expand_prologue):
1046         When using gen_stack_adjust_str with a register offset, add a
1047         REG_FRAME_RELATED_EXPR note.
1049 2013-05-09  Martin Jambor  <mjambor@suse.cz>
1051         PR middle-end/56988
1052         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
1053         * ipa-cp.c (find_aggregate_values_for_callers_subset): Fill in the
1054         by_ref flag of ipa_agg_replacement_value structures.
1055         (known_aggs_to_agg_replacement_list): Likewise.
1056         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
1057         (read_agg_replacement_chain): Likewise.
1058         (ipcp_transform_function): Also check that by_ref flags match.
1060 2013-05-08  Diego Novillo  <dnovillo@google.com>
1062         PR bootstrap/54659
1064         Revert:
1066         2012-08-17  Diego Novillo  <dnovillo@google.com>
1068                 PR bootstrap/54281
1069                 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1070                 * config.in: Regenerate.
1071                 * configure: Regenerate.
1072                 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is
1073                 set.
1075 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
1077         PR tree-optimization/57200
1078         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
1079         Only call inform if the preceding warning_at returns true.
1081 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
1083         PR tree-optimization/57149
1084         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
1085         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
1086         collect_phi_def_edges, execute_late_warn_uninitialized): Use
1087         uninit_undefined_value_p instead of ssa_undefined_value_p.
1089         PR debug/57184
1090         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
1091         for modifier == EXPAND_INITIALIZER.
1093 2013-05-07  Richard Biener  <rguenther@suse.de>
1095         Backport from mainline
1096         2013-05-06  Richard Biener  <rguenther@suse.de>
1098         PR tree-optimization/57185
1099         * tree-parloops.c (add_field_for_reduction): Handle anonymous
1100         SSA names properly.
1102         2013-04-19  Richard Biener  <rguenther@suse.de>
1104         PR tree-optimization/57000
1105         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
1107 2013-05-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
1109         Backport from trunk
1110         2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1112         PR target/57150
1113         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
1114         to save TFmode registers and DImode to save TImode registers for
1115         caller save operations.
1116         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
1117         mark being partially clobbered since they only use the first
1118         double word.
1120         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
1121         and TDmode only use the upper 64-bits of each VSX register.
1123 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
1125         PR target/57108
1126         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
1128 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
1130         Backport from mainline
1131         2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
1133         PR target/57106
1134         * config/i386/i386.c (add_parameter_dependencies): Add dependence
1135         between "first_arg" and "insn", not "last" and "insn".
1137 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
1139         PR rtl-optimization/57130
1140         * combine.c (make_compound_operation) <case SUBREG>: Pass
1141         SET instead of COMPARE as in_code to the recursive call
1142         if needed.
1144         Backported from mainline
1145         2013-04-26  Jakub Jelinek  <jakub@redhat.com>
1147         PR tree-optimization/57051
1148         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
1149         and VEC_RSHIFT_EXPR if shift count is a multiple of element
1150         bitsize.
1152         2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
1154         * fold-const.c (fold_binary_loc): Call const_binop also for mixed
1155         vector-scalar operations.
1157 2013-05-03  Marek Polacek  <polacek@redhat.com>
1159         Backport from mainline
1160         2013-04-25  Marek Polacek  <polacek@redhat.com>
1162         PR tree-optimization/57066
1163         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
1165 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1167         Backport from mainline
1168         2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1170         * lra-constraints.c (process_alt_operands): Add checking alt
1171         number to choose the best alternative.
1173         2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
1175         PR target/57091
1176         * lra-constraints.c (best_small_class_operands_num): Remove.
1177         (process_alt_operands): Remove small_class_operands_num.  Take
1178         small classes operands into losers and only if the operand is not
1179         matched.  Modify debugging output.
1180         (curr_insn_transform): Remove best_small_class_operands_num.
1181         Print insn name.
1183 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1185         Backport from mainline
1186         2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
1188         PR target/57097
1189         * lra-constraints.c (process_alt_operands): Discourage a bit more
1190         using memory for pseudos.  Print cost dump for alternatives.
1191         Modify cost values for conflicts with early clobbers.
1192         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
1194 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1196         Backport from mainline
1197         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
1199         PR rtl-optimizations/57046
1200         * lra-constraints (split_reg): Set up lra_risky_transformations_p
1201         for multi-reg splits.
1203 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1205         Backport from mainline
1206         2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
1208         PR target/57018
1209         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
1210         a set sp if no stack realignment.
1212 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1214         Backport from mainline
1215         2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
1217         PR rtl-optimization/56999
1218         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
1219         related code.
1220         (lra_coalesce): Remove split_origin_bitmap and related code.
1221         * lra.c (lra): Coalesce after undoing inheritance. Recreate live
1222         ranges if necessary.
1224 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
1226         Backport from mainline
1227         2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1229         PR rtl-optimization/56847
1230         * lra-constraints.c (process_alt_operands): Discourage alternative
1231         with non-matche doffsettable memory constraint fro memory with
1232         known offset.
1234 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
1236         Backport from mainline
1237         2013-03-28  Ian Bolton  <ian.bolton@arm.com>
1239         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
1240         record only when desired or required.
1242 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
1244         PR tree-optimization/57104
1245         * tsan.c (instrument_expr): Don't instrument accesses to
1246         DECL_HARD_REGISTER VAR_DECLs.
1248 2013-04-30  Uros Bizjak  <ubizjak@gmail.com>
1250         Backport from mainline
1251         2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1253         PR target/44578
1254         * config/i386/i386.md (*zero_extendsidi2_rex64): Add "!" to m->?*y
1255         alternative.
1256         (*zero_extendsidi2): Ditto.
1258         Backport from mainline
1259         2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
1261         PR target/57098
1262         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
1264 2013-04-29  Richard Biener  <rguenther@suse.de>
1266         PR middle-end/57103
1267         * tree-cfg.c (move_stmt_op): Fix condition under which to update
1268         TREE_BLOCK.
1269         (move_stmt_r): Remove redundant checking.
1271 2013-04-29  Christian Bruel  <christian.bruel@st.com>
1273         PR target/57108
1274         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
1276 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
1278         PR tree-optimization/57083
1279         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
1280         non-singleton shift count range, zero extend low_bound for uns case.
1282 2013-04-28  Eric Botcazou  <ebotcazou@gcc.gnu.org>
1284         * stor-layout.c (finalize_size_functions): Allocate a structure and
1285         reset cfun before dumping the functions.
1287 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
1289         PR target/56866
1290         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
1291         use xop_pmacsdqh if uns_p.
1292         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
1293         the immediate rotate count.
1295 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
1297         PR rtl-optimization/57003
1298         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
1299         call note_stores with kill_clobbered_value callback again after
1300         killing regs_invalidated_by_call.
1302 2013-04-25  Ian Bolton  <ian.bolton@arm.com>
1304         Backported from mainline.
1305         2013-03-22  Ian Bolton  <ian.bolton@arm.com>
1307         * config/aarch64/aarch64.c (aarch64_print_operand): New
1308         format specifier for printing a constant in hex.
1309         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
1310         format specifier for printing second operand.
1312 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
1314         Backported from mainline.
1315         2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
1317         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
1318         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
1319         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
1321 2013-04-24  Greta Yorsh  <Greta.Yorsh@arm.com>
1323         Backported from mainline.
1324         PR target/56797
1325         * config/arm/arm.c (load_multiple_sequence): Require SP
1326         as base register for loads if SP is in the register list.
1328 2013-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1329             Steven Bosscher <steven@gcc.gnu.org>
1331         Backported from mainline.
1332         PR rtl-optimization/56605
1333         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1335 2013-04-22  Marek Polacek  <polacek@redhat.com>
1337         Backported from mainline.
1338         2013-04-22  Marek Polacek  <polacek@redhat.com>
1340         PR sanitizer/56990
1341         * tsan.c (instrument_expr): Don't instrument expression
1342         in case its size is zero.
1344 2013-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
1346         Backported from mainline.
1347         2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
1348         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
1349         (aarch64_start_file): Use the new function.
1351 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
1353         PR tree-optimization/56984
1354         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
1355         and (x >> M) >= N don't register any assertion if N << M is the
1356         minimum value.
1358 2013-04-17  David Edelsohn  <dje.gcc@gmail.com>
1360         PR target/56948
1361         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
1363 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
1365         PR tree-optimization/56962
1366         * gimple-ssa-strength-reduction.c (record_increment): Only set
1367         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
1368         either rhs1 or rhs2 is equal to c->base_expr.
1370 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1372         * emit-rtl.c (reset_all_used_flags): New function.
1373         (verify_rtl_sharing): Call reset_all_used_flags before and after
1374         performing the checks.
1376 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1378         PR target/56890
1379         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
1380         (S_MODES): Set H_MODE bit.
1381         (SF_MODES): Set only S_MODE and SF_MODE bits.
1382         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
1383         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
1384         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
1385         <MODE_FLOAT>: Likewise.
1387 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
1389         PR target/56903
1390         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
1391         lra_in_progress for return.
1393 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
1395         PR tree-optimization/56918
1396         PR tree-optimization/56920
1397         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
1398         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
1399         argument to rshift method.
1401 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1403         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as
1404         well.
1406 2013-04-11  Marek Polacek  <polacek@redhat.com>
1408         PR tree-optimization/48184
1409         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum
1410         value to 1.
1412 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
1414         Backported from mainline.
1415         2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
1417         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
1418         floating-point vector comparisons against 0.
1420 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
1422         PR tree-optimization/56899
1423         * fold-const.c (extract_muldiv_1): Apply distributive law
1424         only if TYPE_OVERFLOW_WRAPS (ctype).
1426 2013-04-10  David S. Miller  <davem@davemloft.net>
1428         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
1429         or -mcpu=hypersparc.
1431 2013-04-10  Jakub Jelinek  <jakub@redhat.com>
1433         Backported from mainline
1434         2013-04-09  Jakub Jelinek  <jakub@redhat.com>
1436         PR middle-end/56883
1437         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
1438         expand_omp_for_static_chunk): Use simple_p = true in
1439         force_gimple_operand_gsi calls when assigning to addressable decls.
1441 2013-04-09  Marek Polacek  <polacek@redhat.com>
1443         PR tree-optimization/48762
1444         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum
1445         value to 1.
1447 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1449         * config/s390/s390.c (s390_expand_insv): Only accept insertions
1450         within mode size.
1452 2013-04-08  Marek Polacek  <polacek@redhat.com>
1454         PR rtl-optimization/48182
1455         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
1456         value to 1.
1458 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1460         PR target/55487
1461         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
1462         nuses, make sure we have a label.
1464 2013-04-04  Ian Lance Taylor  <iant@google.com>
1466         Backport from mainline:
1467         * doc/standards.texi (Standards): The Go frontend supports the Go
1468         1 language standard.
1470 2013-04-04  Marek Polacek  <polacek@redhat.com>
1472         Backport from mainline:
1473         2013-04-04  Marek Polacek  <polacek@redhat.com>
1475         PR tree-optimization/48186
1476         * predict.c (maybe_hot_frequency_p): Return false if
1477         HOT_BB_FREQUENCY_FRACTION is 0.
1478         (cgraph_maybe_hot_edge_p): Likewise.
1480 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1482         Backport from mainline:
1483         2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1485         PR target/56720
1486         * config/arm/iterators.md (v_cmp_result): New mode attribute.
1487         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
1489 2013-04-04  Richard Biener  <rguenther@suse.de>
1491         PR tree-optimization/56837
1492         * tree-loop-distribution.c (classify_partition): For non-zero
1493         values require that the value has the same precision as its
1494         mode to be useful as memset value.
1496 2013-04-03  Roland McGrath  <mcgrathr@google.com>
1498         Backport from mainline:
1499         2013-03-26  Roland McGrath  <mcgrathr@google.com>
1501         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
1502         than fprintf with a non-constant, non-format string.
1504 2013-04-03  Marek Polacek  <polacek@redhat.com>
1506         Backport from mainline:
1507         2013-04-03  Marek Polacek  <polacek@redhat.com>
1509         PR sanitizer/55702
1510         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN
1511         functions.
1513 2013-04-03  Richard Biener  <rguenther@suse.de>
1515         PR tree-optimization/56817
1516         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
1517         Split out ...
1518         (tree_unroll_loops_completely_1): ... new function to manually
1519         walk the loop tree, properly defering outer loops of unrolled
1520         loops to later iterations.
1522 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
1524         PR rtl-optimization/56745
1525         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
1526         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
1528 2013-04-02  Wei Mi  <wmi@google.com>
1530         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
1531         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
1532         *<rotate_insn><mode>3_mask in i386.md.
1534 2013-04-01  Wei Mi  <wmi@google.com>
1536         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
1537         Truncate operand 2 using %b asm operand modifier.
1538         (*<shift_insn><mode>3_mask): Ditto.
1539         (*<rotate_insn><mode>3_mask): Ditto.
1541 2013-04-01  Uros Bizjak  <ubizjak@gmail.com>
1543         * config/i386/i386.md (*movsf_internal): Change type of
1544         alternatives 3,4 to imov.
1546 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
1548         PR lto/56777
1549         * doc/invoke.texi ([-fwhole-program]): Fix typo.
1551 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
1553         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
1554         Fix declaration name.
1556 2013-03-28  Gerald Pfeifer  <gerald@pfeifer.com>
1558         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
1559         * doc/extend.texi (Named Address Spaces): Ditto.
1560         (Variable Attributes): Ditto.
1562 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
1564         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
1565         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
1566         is not enabled.
1568 2013-03-27  Walter Lee  <walt@tilera.com>
1570         Backport from mainline:
1571         2013-03-27  Walter Lee  <walt@tilera.com>
1573         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
1574         double-decrement of next_scratch_regno.
1576 2013-03-27  Walter Lee  <walt@tilera.com>
1578         Backport from mainline:
1579         2013-03-27  Walter Lee  <walt@tilera.com>
1581         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
1582         input operands.
1583         (insn_v1mulus): Ditto.
1584         (insn_v2muls): Ditto.
1586 2013-03-27  Walter Lee  <walt@tilera.com>
1588         Backport from mainline:
1589         2013-03-27  Walter Lee  <walt@tilera.com>
1591         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
1592         extra tab.
1593         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
1595 2013-03-27  Walter Lee  <walt@tilera.com>
1597         Backport from mainline:
1598         2013-03-27  Walter Lee  <walt@tilera.com>
1600         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
1601         (*sibcall_value): Ditto.
1603 2013-03-27  Walter Lee  <walt@tilera.com>
1605         Backport from mainline:
1606         2013-03-27  Walter Lee  <walt@tilera.com>
1608         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
1609         (insn_mnz_v8qi): ... this ...
1610         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
1611         vector equivalent.
1612         (insn_v<n>mnz): Replaced by ...
1613         (insn_v1mnz): ... this ...
1614         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
1615         equivalent.
1616         (insn_mz_<mode>): Replaced by ...
1617         (insn_mz_v8qi): ... this ...
1618         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
1619         vector equivalent.
1620         (insn_v<n>mz): Replaced by ...
1621         (insn_v1mz): ... this ...
1622         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
1623         equivalent.
1625 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
1627         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
1629 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1631         * config/rtems.opt: Add -pthread option.
1633 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
1635         * config/aarch64/aarch64.c (aarch64_classify_address): Support
1636         PC-relative load in SI modes and above only.
1638 2013-03-26  Walter Lee  <walt@tilera.com>
1640         Backport from mainline:
1641         2013-03-26  Walter Lee  <walt@tilera.com>
1643         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
1644         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
1646 2013-03-26  Walter Lee  <walt@tilera.com>
1648         Backport from mainline:
1649         2013-03-25  Walter Lee  <walt@tilera.com>
1651         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
1652         TILEGX_INSN_SHUFFLEBYTES1.
1653         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
1654         shufflebytes1.
1655         (tilegx_builtins): Ditto.
1656         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
1658 2013-03-26  Walter Lee  <walt@tilera.com>
1660         Backport from mainline:
1661         2013-03-25  Walter Lee  <walt@tilera.com>
1663         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
1664         tests for constraint J, K, N, P.
1666 2013-03-26  Walter Lee  <walt@tilera.com>
1668         Backport from mainline:
1669         2013-03-25  Walter Lee  <walt@tilera.com>
1671         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
1672         Use indirect/pcrel encoding.
1673         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
1674         Ditto.
1676 2013-03-25  Richard Biener  <rguenther@suse.de>
1678         PR middle-end/56694
1679         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
1680         must-not-throw stmt location.
1682 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1684         * BASE-VER: Set to 4.8.1.
1685         * DEV-PHASE: Set to prerelease.
1687 2013-03-22  Release Manager
1689         * GCC 4.8.0 released.
1691 2013-03-21  Walter Lee  <walt@tilera.com>
1693         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
1695 2013-03-21  Mark Wielaard  <mjw@redhat.com>
1697         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
1699 2013-03-20  Richard Biener  <rguenther@suse.de>
1701         PR tree-optimization/56661
1702         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1703         the result does not have to be distinct.
1705 2013-03-20  Jakub Jelinek  <jakub@redhat.com>
1707         PR tree-optimization/56635
1708         * tree-ssa-phiopt.c (cond_if_else_store_replacement_1): Give up
1709         if lhs of then_assign and else_assign don't have compatible types.
1711 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
1713         PR target/56640
1714         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1715         class names.  Remove trailing comma after "ALL_REGS".
1717 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
1719         * DEV-PHASE: Set to prerelease.
1721 2013-03-14  Andi Kleen  <ak@linux.intel.com>
1723         PR target/56619
1724         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1725         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1726         Document _x* TSX intrinsics.
1728 2013-03-14  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1729             David Holsgrove <david.holsgrove@xilinx.com>
1731         * configure.ac: Add MicroBlaze TLS support detection.
1732         * configure: Regenerate.
1733         * config/microblaze/microblaze-protos.h
1734         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1735         symbol_mentioned_p, label_mentioned_p): Add prototypes.
1736         * config/microblaze/microblaze.c (microblaze_address_type): Add
1737         ADDRESS_TLS and tls_reloc address types.
1738         (microblaze_address_info): Add tls_reloc.
1739         (TARGET_HAVE_TLS): Define.
1740         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1741         microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1742         symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1743         load_tls_operand, microblaze_call_tls_get_addr,
1744         microblaze_legitimize_tls_address): New functions.
1745         (microblaze_classify_unspec): Handle UNSPEC_TLS.
1746         (get_base_reg): Use microblaze_tls_symbol_p.
1747         (microblaze_classify_address): Handle TLS.
1748         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1749         label_mentioned_p and microblaze_tls_referenced_p.
1750         (microblaze_legitimize_address): Handle TLS.
1751         (microblaze_address_insns): Handle ADDRESS_TLS.
1752         (pic_address_needs_scratch): Handle TLS.
1753         (print_operand_address): Handle TLS.
1754         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1755         (microblaze_expand_move): Handle TLS.
1756         (microblaze_legitimate_constant_p): Check
1757         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1758         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1759         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1760         (PIC_OFFSET_TABLE_REGNUM): Set.
1761         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1762         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1763         (addsi3, movsi_internal2, movdf_internal): Update constraints
1764         * config/microblaze/predicates.md (arith_plus_operand): Define
1765         (move_operand): Redefine as move_src_operand, check
1766         microblaze_tls_referenced_p.
1768 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
1770         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1771         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1773 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
1775         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1776         CC mode for AND.
1778 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
1780         PR tree-optimization/53265
1781         * common.opt (Waggressive-loop-optimizations): New option.
1782         * tree-ssa-loop-niter.c: Include tree-pass.h.
1783         (do_warn_aggressive_loop_optimizations): New function.
1784         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
1785         if number_of_latch_executions returned constant.
1786         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1787         early.  If number_of_latch_executions returned constant, set
1788         nb_iterations_upper_bound back to it.
1789         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1790         field.
1791         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1792         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1794         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1795         (MULTILIB_OSDIRNAMES): Set.
1796         * genmultilib: If defaultosdirname doesn't start with :: , set
1797         defaultosdirname2 instead, clear it and emit two . multilib_raw
1798         entries instead of just one.
1800 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1802         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1803         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1804         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1805         (SUBTARGET_OVERRIDE_OPTIONS): New.
1807 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
1809         PR target/49880
1810         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1811         (musermode): Convert to Var(TARGET_USERMODE).
1812         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1813         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1814         * config/sh/sh.c (sh_option_override): Use
1815         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1816         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1817         condition.
1818         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1819         TARGET_SH4.
1820         (udivsi3_i4_single, divsi3_i4_single): Use
1821         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1823 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
1825         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1826         default setting.
1828 2013-03-13  Richard Biener  <rguenther@suse.de>
1830         PR tree-optimization/56608
1831         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1832         calls when vectorizing basic-blocks.
1834 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
1836         PR plugins/45078
1837         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1838         tm_file.
1840 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
1842         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1844 2013-03-11  Jan Hubicka  <jh@suse.cz>
1846         PR lto/56557
1847         * lto-streamer-out.c (output_symbol_p): Skip references from
1848         constructors of external variables.
1850 2013-03-11  Jan Hubicka  <jh@suse.cz>
1852         PR middle-end/56571
1853         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1854         from pseudos.
1855         * emit-rtl.c (verify_rtx_sharing): Likewise.
1856         (copy_insn_1): Likewise.
1857         * rtl.c (copy_rtx): Likewise.
1859 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
1861         PR target/56591
1862         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1863         output_operand_lossage message.
1865 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
1867         PR target/56470
1868         * arm.c (shift_op): Validate RTL pattern on the fly.
1869         (arm_print_operand, case 'S'): Don't use shift_operator to validate
1870         the RTL.
1872 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1874         PR target/56347
1875         * config/pa/pa.md (call_value): Check for calls to powf and direct to
1876         new call patterns that clobber %fr12.
1877         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1878         split and postreload patterns.
1879         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1880         registers %fr12 and %fr12R as call used.
1882 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
1884         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1885         (canon_address, record_store, replace_read, check_mem_read_rtx,
1886         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1887         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1888         rest_of_handle_dse): Likewise.
1890 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
1892         PR middle-end/56524
1893         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1894         Add base_optabs.
1895         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1896         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1897         (save_optabs_if_changed): Replace with...
1898         (init_tree_optimization_optabs): ...this.
1899         * optabs.c (save_optabs_if_changed): Rename to...
1900         (init_tree_optimization_optabs): ...this.  Take the optimization node
1901         as argument.  Do nothing if the base optabs are already correct.
1902         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1903         to recompute optabs.
1904         * function.h (function): Remove optabs field.
1905         * function.c (invoke_set_current_function_hook): Call
1906         init_tree_optimization_optabs.  Use the result to initialize
1907         this_fn_optabs.
1909 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
1911         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1912         if GTMA_HAS_NO_INSTRUMENTATION.
1913         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1914         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1915         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1916         * gimple-pretty-print.c (dump_gimple_transaction): Handle
1917         GTMA_HAS_NO_INSTRUMENTATION.
1919 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
1921         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1922         libasan_preinit.o.
1924 2013-03-08  Marek Polacek  <polacek@redhat.com>
1925             Jakub Jelinek  <jakub@redhat.com>
1927         PR tree-optimization/56478
1928         * predict.c (is_comparison_with_loop_invariant_p): Change the
1929         type of loop_step to tree.
1930         (predict_loops): Adjust.
1931         (predict_iv_comparison): Perform the computations on double_ints.
1933 2013-03-08  Richard Biener  <rguenther@suse.de>
1935         PR tree-optimization/56570
1936         * tree-cfg.c (verify_expr_location_1): Verify locations for
1937         DECL_DEBUG_EXPR.
1938         * tree-sra.c (create_access_replacement): Strip locations
1939         from DECL_DEBUG_EXPRs.
1941 2013-03-08  Richard Biener  <rguenther@suse.de>
1943         * tree-inline.c (expand_call_inline): Do not associate
1944         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1945         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1947 2013-03-08  Richard Biener  <rguenther@suse.de>
1949         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1950         or block changes with -Og.  Fix for location / block encoding
1951         changes and PHI arguments with locations.
1953 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
1955         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1956         for all counters.
1957         (struct output_info): Likewise.
1958         (register_overhead): Remove bad gcc_assert.
1959         (bitmap_find_bit): If there is only a single bitmap element, do not
1960         count a miss as a search.
1961         (print_statistics): Update for counter type changes.
1962         (dump_bitmap_statistics): Likewise.  Print headers such that they
1963         are properly lined up with the printed counters.
1965 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
1967         PR tree-optimization/56559
1968         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1969         check that it has only a single use.
1971 2013-03-07  Richard Biener  <rguenther@suse.de>
1973         * doc/invoke.texi (fwhole-program): Discourage use in combination
1974         with -flto.
1976 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
1978         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1980         PR tree-optimization/56539
1981         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1982         instead of GSI_CONTINUE_LINKING as last argument to
1983         force_gimple_operand_gsi.  Adjust function comment.
1985         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1986         aarch64-cores.def.
1988         PR middle-end/56548
1989         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1990         promoted mode, convert the result back to the original mode.
1992 2013-03-06  Richard Biener  <rguenther@suse.de>
1994         PR middle-end/56294
1995         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1996         (insert_updated_phi_nodes_compare_uids): New function.
1997         (update_ssa): Sort symbols_to_rename after UID before
1998         traversing it to insert PHI nodes.
2000 2013-03-06  Richard Biener  <rguenther@suse.de>
2002         PR middle-end/50494
2003         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
2004         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
2006         Revert
2007         2013-02-13  Richard Biener  <rguenther@suse.de>
2009         PR lto/50494
2010         * varasm.c (output_constant_def_1): Get the decl representing
2011         the constant as argument.
2012         (output_constant_def): Wrap output_constant_def_1.
2013         (make_decl_rtl): Use output_constant_def_1 with the decl
2014         representing the constant.
2015         (build_constant_desc): Optionally re-use a decl already
2016         representing the constant.
2017         (tree_output_constant_def): Adjust.
2019 2013-03-06  Joey Ye  <joey.ye@arm.com>
2021         PR lto/50293
2022         * gcc.c (convert_white_space): New function.
2023         (main): Handles white space in function name.
2025 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
2027         PR target/56529
2028         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
2029         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
2030         to SH_DIV_CALL_TABLE for TARGET_SH2.
2031         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
2032         list.
2033         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
2034         call-table options.
2036 2013-03-05  Sterling Augustine  <saugustine@google.com>
2037             Cary Coutant  <ccoutant@google.com>
2039         PR debug/55364
2040         * dwarf2out.c (resolve_addr): Don't call
2041         remove_loc_list_addr_table_entries a second time for the same
2042         expression.
2044 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2046         PR debug/56510
2047         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
2048         (avoid_complex_debug_insns): New function.
2049         (expand_debug_locations): Call it.
2051         PR rtl-optimization/56484
2052         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
2053         lifetimes of hard registers on small register class machines.
2055 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
2057         * config/microblaze/microblaze-protos.h: Rename
2058         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
2059         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
2060         fast_interrupt.
2061         (microblaze_fast_interrupt_function_p): New function.
2062         (microblaze_is_interrupt_handler): Rename to
2063         microblaze_is_interrupt_variant and add fast_interrupt check.
2064         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
2065         (save_restore_insns): Likewise.
2066         (compute_frame_size): Likewise.
2067         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
2068         (microblaze_globalize_label): Likewise.
2069         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
2070         * config/microblaze/microblaze.md: Use wrapper
2071         microblaze_is_interrupt_variant.
2073 2013-03-05  Kai Tietz  <ktietz@redhat.com>
2075         * sdbout.c (sdbout_one_type): Switch to current function's section
2076         supporting cold/hot.
2078 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
2080         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
2081         -mxl-reorder.
2083 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2085         PR middle-end/56461
2086         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
2087         if VALGRIND_GET_VBITS is defined, temporarily make object
2088         memory all defined, and restore previous valgrind addressability
2089         and definability afterwards.  Free this_object at the end.
2091         PR middle-end/56461
2092         * lra.c (lra): Call lra_clear_live_ranges if live_p,
2093         right before calling lra_create_live_ranges, also call it
2094         when clearing live_p.  Only call lra_clear_live_ranges
2095         at the end if live_p.
2097         PR middle-end/56461
2098         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
2100 2013-03-05  Richard Biener  <rguenther@suse.de>
2102         PR tree-optimization/56521
2103         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
2104         value-id.
2106 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
2108         PR c++/55135
2109         * except.h (remove_unreachable_eh_regions): New prototype.
2110         * except.c (remove_eh_handler_splicer): New function, split out
2111         of remove_eh_handler.
2112         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
2113         warning about running it on many EH regions one at a time.
2114         (remove_unreachable_eh_regions_worker): New function, walk the
2115         EH tree in depth-first order and remove non-marked regions.
2116         (remove_unreachable_eh_regions): New function.
2117         * tree-eh.c (mark_reachable_handlers): New function, split out
2118         from remove_unreachable_handlers.
2119         (remove_unreachable_handlers): Use mark_reachable_handlers and
2120         remove_unreachable_eh_regions.
2121         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
2122         and remove_unreachable_eh_regions.
2124 2013-03-05  Richard Biener  <rguenther@suse.de>
2126         PR middle-end/56525
2127         * loop-init.c (fix_loop_structure): Remove loops in two stages,
2128         not freeing them until the end.
2130 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2132         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
2134 2013-03-05  Richard Biener  <rguenther@suse.de>
2136         PR tree-optimization/56270
2137         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
2138         of loads after scheduling an SLP instance.
2140 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2142         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
2143         tic6x.exp.
2144         (check_gcc_parallelize): Run guality.exp as a separate job from
2145         vect.exp with unsorted.exp and $(dg_target_exps) separately from
2146         struct-layout-1.exp with stackalign.exp.
2148         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
2150         PR middle-end/56461
2151         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
2152         load_index sbitmap even if some bit in it isn't set.
2154         PR middle-end/56461
2155         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
2156         (discover_iteration_bound_by_body_walk): Change queues to
2157         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
2158         spelling in comment.  Call safe_push on queues[bound_index] directly.
2159         Release queues[queue_index] in every iteration unconditionally.
2160         Release bounds vector.
2162         PR middle-end/56461
2163         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
2164         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
2165         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
2166         inner_phis vector.
2168 2013-03-05  Richard Biener  <rguenther@suse.de>
2170         PR lto/56515
2171         * tree-inline.c (remap_blocks_to_null): New function.
2172         (expand_call_inline): When expanding a call stmt without
2173         an associated block inline remap all callee blocks to NULL.
2175 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
2177         PR rtl-optimization/56494
2178         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
2179         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
2180         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
2182         PR middle-end/56461
2183         * sel-sched-ir.c (free_sched_pools): Release
2184         succs_info_pool.stack[succs_info_pool.max_top] vectors too
2185         if succs_info_pool.max_top isn't -1.
2187         PR bootstrap/56509
2188         * opts.c (opts_obstack, opts_concat): Moved to...
2189         * opts-common.c (opts_obstack, opts_concat): ... here.
2191 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2193         PR middle-end/56461
2194         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
2196 2013-03-04  Martin Jambor  <mjambor@suse.cz>
2198         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
2199         all appropriate places.
2201 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
2203         PR tree-optimization/56424
2204         * ipa-split.c (split_function): Do not set the RSO flag if result is
2205         not by reference and its type is a register type.
2207 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
2209         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New.
2210         (microblaze_legitimate_pic_operand): Likewise.
2211         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): Call
2212         new function microblaze_legitimate_pic_operand.
2213         * config/microblaze/microblaze-protos.h
2214         (microblaze_legitimate_pic_operand): Declare.
2216 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2218         * config/microblaze/predicates.md (call_insn_simple_operand):
2219         New predicate for supported rtx code types.
2220         * config/microblaze/microblaze.md (call_internal1): Use
2221         call_insn_simple_operand predicate.
2223 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
2225         PR middle-end/56461
2226         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
2227         partitions.ordered_remove.
2229         PR middle-end/56461
2230         * tree-vect-stmts.c (vectorizable_conversion): Don't call
2231         vec_oprnds0.create (1) for modifier == NONE.
2233         PR middle-end/56461
2234         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
2235         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
2236         vec_oprnds1 right before pushing anything to it for
2237         scalar_shift_arg.
2239         PR middle-end/56461
2240         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
2241         set nbbs to 0 instead of having separate code path.
2242         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
2243         instead of false as last argument if returning NULL.
2245 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
2247         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
2248         the attribute is now called "target" instead of "option".
2249         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
2250         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
2251         attribute/pragma name for TARGET_OPTION_VALID_P and
2252         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
2253         * doc/tm.texi: Regenerated.
2255 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
2257         * config/microblaze/microblaze.c:
2258         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2259         * config/microblaze/microblaze.h: Add -mxl-reorder to
2260         DRIVER_SELF_SPECS.
2261         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2262         instructions emitted if TARGET_REORDER.
2263         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2264         or 0 for -m/-mno case, but initialises as 2 to detect default use case
2265         separately.
2267 2013-03-01  Xinliang David Li  <davidxl@google.com>
2269         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2270         walk length.
2272 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
2274         PR middle-end/56461
2275         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2276         vector even when returning true.  Fix up function comment formatting.
2278         PR middle-end/56461
2279         * ira-build.c (ira_loop_nodes_count): New variable.
2280         (create_loop_tree_nodes): Initialize it.
2281         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2283         PR middle-end/56461
2284         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2285         method on dr_chain and result_chain.
2286         * tree-vect-stmts.c (vectorizable_store): Only call
2287         result_chain.create if j == 0.
2289         PR middle-end/56461
2290         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2291         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2292         before overwriting it.
2294 2013-03-01  Tobias Burnus  <burnus@net-b.de>
2296         * doc/extended.texi (C Extensions): Change order in @menu
2297         to match @node.
2298         (Other MIPS Built-in Functions): Move last MIPS entry before
2299         "picoChip Built-in Functions".
2300         (SH Built-in Functions): Move after RX Built-in Functions.
2301         * doc/gcc.texi (Introduction): Change order in @menu to match @node.
2302         * doc/md.texi (Constraints): Ditto.
2303         * gty.texi (Type Information): Ditto.
2304         (User-provided marking routines for template types): Make subsection.
2305         * doc/invoke.texi (AArch64 Options): Move before
2306         "Adapteva Epiphany Options".
2308 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
2309             Jakub Jelinek  <jakub@redhat.com>
2311         PR sanitizer/56454
2312         * asan.c (gate_asan): Lookup no_sanitize_address instead of
2313         no_address_safety_analysis attribute.
2314         * doc/extend.texi (no_address_safety_attribute): Rename to
2315         no_sanitize_address attribute, mention no_address_safety_analysis
2316         attribute as deprecated alias.
2318 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
2320         PR middle-end/56461
2321         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2322         type to vec<vec<tree> > *.
2323         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
2324         to be vec<tree> instead of vec<tree> *, set vec_defs
2325         to vNULL and call vec_defs.create (number_of_vects), adjust other
2326         uses of vec_defs.
2327         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2328         vectorizable_condition): Adjust vect_get_slp_defs callers.
2330 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2332         * config/aarch64/aarch64.c
2333         (aarch64_float_const_representable): Remove unused variable.
2335 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2337         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2339 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2341         * config/aarch64/aarch64-builtins.c
2342         (aarch64_init_simd_builtins): Make static.
2344 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
2346         * config/aarch64/aarch64.c
2347         (aarch64_simd_make_constant): Make static.
2349 2013-02-28  Martin Jambor  <mjambor@suse.cz>
2351         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2352         with no initialization to the RHS of debug statements.
2354 2013-02-28  Martin Jambor  <mjambor@suse.cz>
2356         PR tree-optimization/56294
2357         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2358         Adjust dumping.
2359         (get_access_replacement): Do not call create_access_replacement.
2360         Assert a replacement exists.
2361         (get_repl_default_def_ssa_name): Create the replacement declaration
2362         itself.
2364 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2366         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2367         final_end_function.
2369 2013-02-28  Marek Polacek  <polacek@redhat.com>
2371         PR rtl-optimization/56466
2372         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2373         if we're changing a loop.
2374         (peel_loops_completely): Likewise.
2376 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
2378         PR c++/55813
2379         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2381 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2383         PR target/56445
2384         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2385         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2386         INTX_FTYPE_FX, FX_FTYPE_INTX.
2387         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2389 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2391         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2392         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2393         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2394         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2395         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2396         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2397         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2398         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2399         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2400         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2401         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2402         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2403         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2404         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2405         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2406         (avrxmega6): Increase max flash segments from 5 to 6.
2407         * config/avr/t-multilib: Regenerate.
2408         * config/avr/avr-tables.opt: Regenerate.
2409         * doc/avr-mmcu.texi: Regenerate.
2411 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
2413         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2414         (avr_device_to_arch): Rename to avr_device_to_ld.
2415         (avr_device_to_as): New prototype.
2416         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2417         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2418         * config/avr/driver-avr.c (avr_device_to_as): New.
2419         (avr_device_to_arch): Rename to avr_device_to_ld.
2421 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2423         PR middle-end/56461
2424         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2425         method on dr_chain and result_chain.
2427         PR middle-end/56461
2428         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2429         pointer_set_destroy on not_executed_last_iteration.
2431         PR middle-end/56461
2432         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2434         PR middle-end/56461
2435         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2436         FOR_EACH_DEFINED_FUNCTION when freeing state.
2438         PR middle-end/56461
2439         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2440         pool_free.
2441         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2442         overwriting it.
2444         PR middle-end/56461
2445         * ipa-cp.c (decide_whether_version_node): Call vec_free on
2446         known_aggs[i].items and release known_aggs vector.
2448         PR middle-end/56461
2449         * ipa-reference.c (propagate): Free node_info even for alias nodes.
2451 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
2453         * config/microblaze/microblaze.c (microblaze_emit_compare):
2454         Use xor for EQ/NE comparisions.
2455         * config/microblaze/microblaze.md (cstoresf4): Add constraints
2456         (cbranchsf4): Adjust operator to comparison_operator.
2458 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2460         PR middle-end/56461
2461         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2462         vector.
2463         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2464         vec_safe_push, always update *slot.
2465         (redirect_edge_var_map_clear): Use vec_free.
2466         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2467         (free_var_map_entry): Use vec_free.
2468         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2469         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2471 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
2473         PR middle-end/45472
2474         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2475         when the may_trap_p bit of the exprs being merged differs.
2476         Reorder tests for speculativeness in the logical and operator.
2478 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
2480         * incpath.c (add_standard_paths): Use reconcat instead of concat
2481         where appropriate and avoid leaking memory.
2483         * opts.h: Include obstack.h.
2484         (opts_concat): New prototype.
2485         (opts_obstack): New declaration.
2486         * opts.c (opts_concat): New function.
2487         (opts_obstack): New variable.
2488         (init_options_struct): Call gcc_init_obstack on opts_obstack.
2489         (finish_options): Use opts_concat instead of concat
2490         and XOBNEWVEC instead of XNEWVEC.
2491         * opts-common.c (generate_canonical_option, decode_cmdline_option,
2492         generate_option): Likewise.
2493         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2494         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2496         PR target/56455
2497         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2498         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2500 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
2502         PR middle-end/56461
2503         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2505 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
2507         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2508         (arm_block_move_unaligned_straight): Likewise.
2509         (arm_adjust_block_mem): Likewise.
2511 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
2513         PR target/48901
2514         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2515         temp, cond and label.
2516         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2518         PR target/52500
2519         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2520         * config/c6x/c6x.h (dbx_register_map): Update declaration.
2522         PR target/52501
2523         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2524         of prologue/epilogue functions.
2526         PR target/52550
2527         * config/tilegx/tilegx.c (tilegx_expand_prologue):
2528         Remove unused variable cfa_offset.
2529         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2531         PR target/54639
2532         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2533         type promotion to unsigned.
2535         PR target/54640
2536         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2537         for HOST_WIDE_INT of 32 bit / same size as int.
2538         (arm_block_move_unaligned_straight): Likewise.
2539         (arm_adjust_block_mem): Likewise.
2541         PR target/54662
2542         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2543         ALL_CFLAGS.
2545 2013-02-26  Marek Polacek  <polacek@redhat.com>
2547         PR tree-optimization/56426
2548         * tree-ssa-loop.c (tree_ssa_loop_init): Always call
2549         scev_initialize.
2551 2013-02-26  Richard Biener  <rguenther@suse.de>
2553         PR target/56444
2554         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2555         unused variable loops.
2557 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
2559         PR tree-optimization/56448
2560         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2561         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2562         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2563         later operands of the references, or even first operand for
2564         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2566         PR tree-optimization/56443
2567         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2568         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2569         to type_for_mode langhook.
2571 2013-02-25  Matt Turner  <mattst88@gmail.com>
2573         * doc/invoke.texi: Document r4700.
2575 2013-02-25  Richard Biener  <rguenther@suse.de>
2577         PR tree-optimization/56175
2578         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2579         split out from ...
2580         (simplify_bitwise_binary): ... here.  Also guard the conversion
2581         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2583 2013-02-25  Catherine Moore  <clm@codesourcery.com>
2585         Revert:
2586         2013-02-24  Catherine Moore  <clm@codesourcery.com>
2587             Maciej W. Rozycki  <macro@codesourcery.com>
2588             Tom de Vries  <tom@codesourcery.com>
2589             Nathan Sidwell  <nathan@codesourcery.com>
2590             Iain Sandoe  <iain@codesourcery.com>
2591             Nathan Froyd  <froydnj@codesourcery.com>
2592             Chao-ying Fu  <fu@mips.com>
2594         * doc/extend.texi (micromips, nomicromips, nocompression):
2595         Document new function attributes.
2596         * doc/invoke.texi (minterlink-compressed, mmicromips,
2597         m14k, m14ke, m14kec): Document new options.
2598         (minterlink-mips16): Update documentation.
2599         * doc/md.texi (ZC, ZD): Document new constraints.
2600         * configure.ac (gcc_cv_as_micromips): Check if linker
2601         supports the .set micromips directive.
2602         * configure: Regenerate.
2603         * config.in: Regenerate.
2604         * config/mips/mips-tables.opt: Regenerate.
2605         * config/mips/micromips.md: New file.
2606         * constraints.md (ZC, AD): New constraints.
2607         * config/mips/predicates.md (movep_src_register): New predicate.
2608         (movep_src_operand): New predicate.
2609         (non_volatile_mem_operand): New predicate.
2610         * config/mips/mips.md (multimem): New type.
2611         (length): Differentiate between 17-bit and 18-bit branch offsets.
2612         (MOVEP1, MOVEP2): New mode iterator.
2613         (mov_<load>l): Use ZC constraint.
2614         (mov_<load>r): Likewise.
2615         (mov_<store>l): Likewise.
2616         (mov_<store>r): Likewise.
2617         (*branch_equality<mode>_inverted): Add microMIPS support.
2618         (*branch_equality<mode>): Likewise.
2619         (*jump_absolute): Likewise.
2620         (indirect_jump_<mode>): Likewise.
2621         (tablejump_<mode>): Likewise.
2622         (<optab>_internal): Likewise.
2623         (sibcall_internal): Likewise.
2624         (sibcall_value_internal): Likewise.
2625         (prefetch): Use constraint ZD.
2626         * config/mips/mips.opt (minterlink-compressed): New option.
2627         (minterlink-mips16): Now an alias for minterlink-compressed.
2628         (mmicromips): New option.
2629         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2630         (compare_and_swap_12): Likewise.
2631         (sync_add<mode>): Likewise.
2632         (sync_<optab>_12): Likewise.
2633         (sync_old_<optab>_12): Likewise.
2634         (sync_new_<optab>_12): Likewise.
2635         (sync_nand_12): Likewise.
2636         (sync_old_nand_12): Likewise.
2637         (sync_new_nand_12): Likewise.
2638         (sync_sub<mode>): Likewise.
2639         (sync_old_add<mode>): Likewise.
2640         (sync_old_sub<mode>): Likewise.
2641         (sync_new_add<mode>): Likewise.
2642         (sync_new_sub<mode>): Likewise.
2643         (sync_<optab><mode>): Likewise.
2644         (sync_old_<optab><mode>): Likewise.
2645         (sync_new_<optab><mode>): Likewise.
2646         (sync_nand<mode>): Likewise.
2647         (sync_old_nand<mode>): Likewise.
2648         (sync_new_nand<mode>): Likewise.
2649         (sync_lock_test_and_set<mode>): Likewise.
2650         (test_and_set_12): Likewise.
2651         (atomic_compare_and_swap<mode>): Likewise.
2652         (atomic_exchange<mode>_llsc): Likewise.
2653         (atomic_fetch_add<mode>_llsc): Likewise.
2654         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2655         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2656         (umips_save_restore_pattern_p): Likewise.
2657         (umips_load_store_pair_p): Likewise.
2658         (umips_output_load_store_pair): Likewise.
2659         (umips_movep_target_p): Likewise.
2660         (umips_12bit_offset_address_p): Likewise.
2661         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2662         (mips_base_mips16): Rename this...
2663         (mips_base_compression_flags): ...to this. Update all uses.
2664         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2665         (mips_mips16_decl_p): Delete.
2666         (mips_nomips16_decl_p): Delete.
2667         (mips_get_compress_on_flags): New function.
2668         (mips_get_compress_off_flags): New function.
2669         (mips_get_compress_mode): New function.
2670         (mips_get_compress_on_name): New function.
2671         (mips_get_compress_off_name): New function.
2672         (mips_insert_attributes): Support multiple compression types.
2673         (mips_merge_decl_attributes): Likewise.
2674         (umips_12bit_offset_address_p): New function.
2675         (mips_start_function_definition): Emit .set micromips directive.
2676         (mips_call_may_need_jalx_p): New function.
2677         (mips_function_ok_for_sibcall): Add microMIPS support.
2678         (mips_print_operand_punctuation): Support short delay slots and
2679         compact jumps.
2680         (umips_swm_mask, umips_swm_encoding): New.
2681         (umips_build_save_restore): New function.
2682         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2683         (was_mips16_p): Remove.
2684         (old_compression_mode): New.
2685         (mips_set_compression_mode): New function.
2686         (mips_set_current_function): Add microMIPS support.
2687         (mips_option_override): Likewise.
2688         (umips_save_restore_pattern_p): New function.
2689         (umips_output_save_restore): New function.
2690         (umips_load_store_pair_p_1): New function.
2691         (umips_load_store_pair_p): New function.
2692         (umips_output_load_store_pair_1): New function.
2693         (umips_output_load_store_pair): New function.
2694         (umips_movep_target_p) New function.
2695         (mips_prepare_pch_save): Add microMIPS support.
2696         * config/mips/mips.h (TARGET_COMPRESSION): New.
2697         (TARGET_CPU_CPP_BUILTINS): Update macro
2698         to use new compression flags and to support microMIPS.
2699         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2700         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2701         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2702         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2703         (ASM_SPEC): Support mmicromips and mno-micromips.
2704         (M16STORE_REG_P): New macro.
2705         (MIPS_CALL): Support TARGET_MICROMIPS.
2706         (MICROMIPS_J): New macro.
2707         (mips_base_mips16): Rename this...
2708         (mips_base_compression_flags): ...to this.
2709         (UMIPS_12BIT_OFFSET_P): New macro.
2710         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2711         (MULTILIB_DIRNAMES): Likewise.
2713 2013-02-25  Tom de Vries  <tom@codesourcery.com>
2715         PR rtl-optimization/56131
2716         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2717         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2718         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2720 2013-02-25  Tobias Burnus  <burnus@net-b.de>
2722         * doc/invoke.texi (-fsanitize=): Move from optimization
2723         to debugging options.
2725 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
2727         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2729 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
2730             Alexander Monakov  <amonakov@ispras.ru>
2732         PR middle-end/56077
2733         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2734         flush pending lists also on non-jumps.  Adjust comment.
2736 2013-02-24  Catherine Moore  <clm@codesourcery.com>
2737             Maciej W. Rozycki  <macro@codesourcery.com>
2738             Tom de Vries  <tom@codesourcery.com>
2739             Nathan Sidwell  <nathan@codesourcery.com>
2740             Iain Sandoe  <iain@codesourcery.com>
2741             Nathan Froyd  <froydnj@codesourcery.com>
2742             Chao-ying Fu  <fu@mips.com>
2744         * doc/extend.texi (micromips, nomicromips, nocompression):
2745         Document new function attributes.
2746         * doc/invoke.texi (minterlink-compressed, mmicromips,
2747         m14k, m14ke, m14kec): Document new options.
2748         (minterlink-mips16): Update documentation.
2749         * doc/md.texi (ZC, ZD): Document new constraints.
2750         * configure.ac (gcc_cv_as_micromips): Check if linker
2751         supports the .set micromips directive.
2752         * configure: Regenerate.
2753         * config.in: Regenerate.
2754         * config/mips/mips-tables.opt: Regenerate.
2755         * config/mips/micromips.md: New file.
2756         * constraints.md (ZC, AD): New constraints.
2757         * config/mips/predicates.md (movep_src_register): New predicate.
2758         (movep_src_operand): New predicate.
2759         (non_volatile_mem_operand): New predicate.
2760         * config/mips/mips.md (multimem): New type.
2761         (length): Differentiate between 17-bit and 18-bit branch offsets.
2762         (MOVEP1, MOVEP2): New mode iterator.
2763         (mov_<load>l): Use ZC constraint.
2764         (mov_<load>r): Likewise.
2765         (mov_<store>l): Likewise.
2766         (mov_<store>r): Likewise.
2767         (*branch_equality<mode>_inverted): Add microMIPS support.
2768         (*branch_equality<mode>): Likewise.
2769         (*jump_absolute): Likewise.
2770         (indirect_jump_<mode>): Likewise.
2771         (tablejump_<mode>): Likewise.
2772         (<optab>_internal): Likewise.
2773         (sibcall_internal): Likewise.
2774         (sibcall_value_internal): Likewise.
2775         (prefetch): Use constraint ZD.
2776         * config/mips/mips.opt (minterlink-compressed): New option.
2777         (minterlink-mips16): Now an alias for minterlink-compressed.
2778         (mmicromips): New option.
2779         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2780         (compare_and_swap_12): Likewise.
2781         (sync_add<mode>): Likewise.
2782         (sync_<optab>_12): Likewise.
2783         (sync_old_<optab>_12): Likewise.
2784         (sync_new_<optab>_12): Likewise.
2785         (sync_nand_12): Likewise.
2786         (sync_old_nand_12): Likewise.
2787         (sync_new_nand_12): Likewise.
2788         (sync_sub<mode>): Likewise.
2789         (sync_old_add<mode>): Likewise.
2790         (sync_old_sub<mode>): Likewise.
2791         (sync_new_add<mode>): Likewise.
2792         (sync_new_sub<mode>): Likewise.
2793         (sync_<optab><mode>): Likewise.
2794         (sync_old_<optab><mode>): Likewise.
2795         (sync_new_<optab><mode>): Likewise.
2796         (sync_nand<mode>): Likewise.
2797         (sync_old_nand<mode>): Likewise.
2798         (sync_new_nand<mode>): Likewise.
2799         (sync_lock_test_and_set<mode>): Likewise.
2800         (test_and_set_12): Likewise.
2801         (atomic_compare_and_swap<mode>): Likewise.
2802         (atomic_exchange<mode>_llsc): Likewise.
2803         (atomic_fetch_add<mode>_llsc): Likewise.
2804         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2805         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2806         (umips_save_restore_pattern_p): Likewise.
2807         (umips_load_store_pair_p): Likewise.
2808         (umips_output_load_store_pair): Likewise.
2809         (umips_movep_target_p): Likewise.
2810         (umips_12bit_offset_address_p): Likewise.
2811         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2812         (mips_base_mips16): Rename this...
2813         (mips_base_compression_flags): ...to this. Update all uses.
2814         (mips_attribute_table): Add micromips, nomicromips and nocompression.
2815         (mips_mips16_decl_p): Delete.
2816         (mips_nomips16_decl_p): Delete.
2817         (mips_get_compress_on_flags): New function.
2818         (mips_get_compress_off_flags): New function.
2819         (mips_get_compress_mode): New function.
2820         (mips_get_compress_on_name): New function.
2821         (mips_get_compress_off_name): New function.
2822         (mips_insert_attributes): Support multiple compression types.
2823         (mips_merge_decl_attributes): Likewise.
2824         (umips_12bit_offset_address_p): New function.
2825         (mips_start_function_definition): Emit .set micromips directive.
2826         (mips_call_may_need_jalx_p): New function.
2827         (mips_function_ok_for_sibcall): Add microMIPS support.
2828         (mips_print_operand_punctuation): Support short delay slots and
2829         compact jumps.
2830         (umips_swm_mask, umips_swm_encoding): New.
2831         (umips_build_save_restore): New function.
2832         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2833         (was_mips16_p): Remove.
2834         (old_compression_mode): New.
2835         (mips_set_compression_mode): New function.
2836         (mips_set_current_function): Add microMIPS support.
2837         (mips_option_override): Likewise.
2838         (umips_save_restore_pattern_p): New function.
2839         (umips_output_save_restore): New function.
2840         (umips_load_store_pair_p_1): New function.
2841         (umips_load_store_pair_p): New function.
2842         (umips_output_load_store_pair_1): New function.
2843         (umips_output_load_store_pair): New function.
2844         (umips_movep_target_p) New function.
2845         (mips_prepare_pch_save): Add microMIPS support.
2846         * config/mips/mips.h (TARGET_COMPRESSION): New.
2847         (TARGET_CPU_CPP_BUILTINS): Update macro
2848         to use new compression flags and to support microMIPS.
2849         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2850         (MIPS_ARCH_FLOAT_SPEC): Likewise.
2851         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2852         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2853         (ASM_SPEC): Support mmicromips and mno-micromips.
2854         (M16STORE_REG_P): New macro.
2855         (MIPS_CALL): Support TARGET_MICROMIPS.
2856         (MICROMIPS_J): New macro.
2857         (mips_base_mips16): Rename this...
2858         (mips_base_compression_flags): ...to this.
2859         (UMIPS_12BIT_OFFSET_P): New macro.
2860         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2861         (MULTILIB_DIRNAMES): Likewise.
2863 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
2865         PR target/52555
2866         * target-globals.c (save_target_globals): For init_reg_sets and
2867         target_reinit remporarily set this_fn_optabs to this_target_optabs.
2869 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
2871         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2872         * config/aarch64/t-aarch64
2873         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2875 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2877         PR inline-asm/56148
2878         * lra-constraints.c (process_alt_operands): Reload operand
2879         conflicting with earlier clobber only if no more other conflicting
2880         operands.
2882 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
2884         PR sanitizer/56393
2885         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2886         if not linking a shared library.
2888 2013-02-22  Seth LaForge  <sethml@google.com>
2890         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2892 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
2894         * config/arm/arm.md (split for extendsidi): Update condition.
2895         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2896         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2897         (qhs_zextenddi_cstr): Likewise.
2899 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
2901         PR middle-end/56420
2902         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2903         avoid signed wrapping.
2904         (expand_mult): Handle properly multiplication by
2905         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
2906         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
2907         in the compiler if coeff is HOST_WIDE_INT_MIN.
2908         (expand_divmod): Don't make ext_op1 static, change it's type to uhwi.
2909         Avoid undefined behavior in -INTVAL (op1).
2911         PR rtl-optimization/50339
2912         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2913         field.
2914         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2915         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2916         into splitting_ashiftrt field.
2917         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2918         ASHIFTRT.
2919         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2920         choices.
2922 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
2924         PR middle-end/56108
2925         * trans-mem.c (execute_tm_mark): Do not expand transactions that
2926         are sure to go irrevocable.
2928 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
2930         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2931         scalars are valid operands.
2933 2013-02-21  Martin Jambor  <mjambor@suse.cz>
2935         PR tree-optimization/56310
2936         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2937         only matching indices and non-negative final offsets.
2938         (intersect_aggregates_with_edge): Pass src_idx to
2939         agg_replacements_to_vector.  Pass src_idx insstead of index to
2940         intersect_with_agg_replacements.
2942 2013-02-21  Martin Jambor  <mjambor@suse.cz>
2944         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2945         instead of hard-wired defaults.
2947 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
2949         * doc/invoke.texi (MIPS Options): Update documentation of the
2950         floating-point multiply-accumulate instruction restrictions.
2952 2013-02-21  Kostya Serebryany  <kcc@google.com>
2954         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2955         asan_shadow_offset on x86_64 linux.
2957 2013-02-21  Richard Biener  <rguenther@suse.de>
2959         PR tree-optimization/56415
2960         Revert
2961         2013-02-11  Richard Biener  <rguenther@suse.de>
2963         PR tree-optimization/56273
2964         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2965         first VRP run.
2967 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
2969         PR bootstrap/56258
2970         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2971         instead of @itemx.
2973         PR inline-asm/56405
2974         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2975         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2977 2013-02-20  Jan Hubicka  <jh@suse.cz>
2979         PR tree-optimization/56265
2980         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph when
2981         target is referenced for first time.
2983 2013-02-20  Richard Biener  <rguenther@suse.de>
2985         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2986         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2987         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2988         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2989         not return anything.
2990         (rename_ssa_copies): Do not remove unused locals.
2991         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2992         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2993         * passes.c (execute_function_todo): Do not schedule unused locals
2994         removal if cleanup_tree_cfg did something.
2995         * tree-ssa-live.c (remove_unused_locals): Dump statistics
2996         about the number of removed locals.
2998 2013-02-20  Richard Biener  <rguenther@suse.de>
3000         PR tree-optimization/56398
3001         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip
3002         SSA default defs.
3004 2013-02-20  Martin Jambor  <mjambor@suse.cz>
3006         PR tree-optimization/55334
3007         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
3008         restricted pointers to arrays.
3010 2013-02-20  Richard Biener  <rguenther@suse.de>
3011         Jakub Jelinek  <jakub@redhat.com>
3013         PR tree-optimization/56396
3014         * tree-ssa-ccp.c (n_const_val): New static variable.
3015         (get_value): Return NULL for SSA names we don't have a lattice
3016         entry for.
3017         (ccp_initialize): Initialize n_const_val.
3018         * tree-ssa-copy.c (n_copy_of): New static variable.
3019         (init_copy_prop): Initialize n_copy_of.
3020         (get_value): Return NULL_TREE for SSA names we don't have a
3021         lattice entry for.
3023 2013-02-20  Martin Jambor  <mjambor@suse.cz>
3025         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
3027 2013-02-20  Richard Biener  <rguenther@suse.de>
3029         * genpreds.c (write_lookup_constraint): Do not compare first
3030         letter of the constraint again.
3032 2013-02-20  Richard Biener  <rguenther@suse.de>
3034         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
3035         and ceil_log2.
3036         (get_use_iv_cost): Terminate hashtable walk when coming across
3037         an empty entry.
3039 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
3041         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
3042         reassociation for avx2 targets.
3044 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3046         * config/microblaze/microblaze.c: microblaze_has_clz = 0
3047         Add version check for v8.10.a to enable microblaze_has_clz
3048         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
3049         version and TARGET_PATTERN_COMPARE check
3050         * config/microblaze/microblaze.md: New clzsi2 instruction
3052 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3054         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
3055         function before branching.
3057 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
3059         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
3060         DUMP_INSN_RTX_UID.
3061         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
3063 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
3065         PR middle-end/55889
3066         * sel-sched.c: Include ira.h.
3067         (implicit_clobber_conflict_p): New function.
3068         (moveup_expr): Use it.
3069         * Makefile.in (sel-sched.o): Depend on ira.h.
3071 2013-02-19  Richard Biener  <rguenther@suse.de>
3073         PR tree-optimization/56384
3074         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
3075         (vn_hash_type): Split out from ...
3076         (vn_hash_constant_with_type): ... here.
3077         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
3078         (vn_phi_eq): Compare types from vn_phi_s structure.
3079         (vn_phi_lookup): Populate vn_phi_s type.
3080         (vn_phi_insert): Likewise.
3082 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
3084         PR tree-optimization/56350
3085         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
3086         if haven't found reduction or nested cycle operand, rather than
3087         asserting we must find it.
3089         PR tree-optimization/56381
3090         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
3091         to fold_build3.
3093 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
3094             Jakub Jelinek  <jakub@redhat.com>
3096         PR target/52555
3097         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
3098         (swap_optab_enable): Same.
3099         (init_all_optabs): Use argument instead of global.
3100         * tree.h (struct tree_optimization_option): New field target_optabs.
3101         * expr.h (init_all_optabs): Add argument to prototype.
3102         (TREE_OPTIMIZATION_OPTABS): New.
3103         (save_optabs_if_changed): Protoize.
3104         * optabs.h: Declare this_fn_optabs.
3105         * optabs.c (save_optabs_if_changed): New.
3106         Declare this_fn_optabs.
3107         (init_optabs): Add argument to init_all_optabs() call.
3108         * function.c (invoke_set_current_function_hook): Handle per
3109         function optabs.
3110         * function.h (struct function): New field optabs.
3111         * config/mips/mips.c (mips_set_mips16_mode): Handle when
3112         optimization_current_node has changed.
3113         * target-globals.h (save_target_globals_default_opts): Protoize.
3114         * target-globals.c (save_target_globals_default_opts): New.
3116 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3118         PR target/56347
3119         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
3120         registers %fr12 and %fr12R as call used.
3122         PR target/56214
3123         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
3124         and HImode, require all displacements to be an integer multiple of
3125         their mode size.
3126         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
3127         only allow QImode and HImode when reload is in progress and strict is
3128         true.  Likewise for symbolic addresses.  Use base14_operand to check
3129         displacements in REG+BASE addresses.
3131 2013-02-18  Richard Biener  <rguenther@suse.de>
3133         PR tree-optimization/56366
3134         * tree-vect-loop.c (get_initial_def_for_induction): Properly
3135         handle sign-conversion of outer-loop initial induction value.
3137 2013-02-18  Richard Biener  <rguenther@suse.de>
3139         PR middle-end/56349
3140         * cfghooks.c (merge_blocks): If we merge a latch into another
3141         block adjust references to it.
3142         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
3143         (verify_loop_structure): Verify that a recorded latch is in fact
3144         a latch.
3146 2013-02-18  Richard Biener  <rguenther@suse.de>
3148         PR tree-optimization/56321
3149         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
3150         order SSA name release and virtual operand unlinking.
3152 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3154         * config/microblaze/microblaze.md (save_stack_block): Define.
3155         (restore_stack_block): Likewise.
3157 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3159         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
3160         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
3161         * config/microblaze/microblaze.c (microblaze_option_override):
3162         Bail out early for PIC modes when target does not support PIC.
3164 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3166         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
3167         Replace with a microblaze version.
3168         (microblaze_trampoline_init): Adapt for microblaze.
3169         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
3170         microblaze.
3172 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
3173             Dodji Seketeli  <dodji@redhat.com>
3175         PR asan/56330
3176         * asan.c (get_mem_refs_of_builtin_call): White space and style
3177         cleanup.
3178         (instrument_mem_region_access): Do not forget to always put
3179         instrumentation of the of 'base' and 'base + len' in a "if (len !=
3180         0) statement, even for cases where either 'base' or 'base + len'
3181         are not instrumented -- because they have been previously
3182         instrumented.  Simplify the logic by putting all the statements
3183         instrument 'base + len' inside a sequence, and then insert that
3184         sequence right before the current insertion point.  Then, to
3185         instrument 'base + len', just get an iterator on that statement.
3186         And do not forget to update the pointer to iterator the function
3187         received as argument.
3189 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
3191         PR rtl-optimization/56348
3192         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
3194 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
3196         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
3197         (clean_graph_dump_file): Pass base to start_graph_dump.
3199 2013-02-14  Richard Henderson  <rth@redhat.com>
3201         PR target/55941
3202         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
3204 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
3206         * collect2-aix.h: Define F_LOADONLY.
3208 2013-02-14  Richard Biener  <rguenther@suse.de>
3210         PR lto/50494
3211         * varasm.c (output_constant_def_1): Get the decl representing
3212         the constant as argument.
3213         (output_constant_def): Wrap output_constant_def_1.
3214         (make_decl_rtl): Use output_constant_def_1 with the decl
3215         representing the constant.
3216         (build_constant_desc): Optionally re-use a decl already
3217         representing the constant.
3218         (tree_output_constant_def): Adjust.
3220 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
3222         Fix an asan crash
3223         * asan.c (instrument_builtin_call):  Really put the length of the
3224         second source argument into src1_len.
3226 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
3228         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
3229         argument.  If it is false, don't create edge from then_bb to
3230         fallthru_bb.
3231         (insert_if_then_before_iter): Pass true to it.
3232         (build_check_stmt): Pass false to it.
3233         (transform_statements): Flush hash table only on extended basic
3234         block boundaries, rather than at the beginning of every bb.
3235         Don't flush hash table on nonfreeing_call_p calls.
3236         * tree-flow.h (nonfreeing_call_p): New prototype.
3237         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
3239 2013-02-13  David S. Miller  <davem@davemloft.net>
3241         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
3243 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
3245         PR target/56184
3246         * ira.c (max_regno_before_ira): Move from ...
3247         (ira): ... here.
3248         (fix_reg_equiv_init): Use max_regno_before_ira instead of
3249         vec_safe_length.
3251 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
3253         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
3255 2013-02-13  Richard Biener  <rguenther@suse.de>
3257         PR lto/56295
3258         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3259         globals in MEM_REFs.
3261 2013-02-13  Richard Biener  <rguenther@suse.de>
3263         * loop-init.c (loop_optimizer_init): Clear loop state when
3264         re-initializing preserved loops.
3265         * loop-unswitch.c (unswitch_single_loop): Return whether
3266         we unswitched the loop.  Do not verify loop state here.
3267         (unswitch_loops): When we unswitched a loop discover new
3268         loops.
3270 2013-02-13  Kostya Serebryany  <kcc@google.com>
3272         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
3273         linux.
3274         * sanitizer.def: Rename __asan_init to __asan_init_v1.
3276 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
3278         Avoid instrumenting duplicated memory access in the same basic block
3279         * Makefile.in (asan.o): Add new dependency on hash-table.h
3280         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3281         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3282         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3283         (free_mem_ref_resources, has_mem_ref_been_instrumented)
3284         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3285         (get_mem_ref_of_assignment): New functions.
3286         (get_mem_refs_of_builtin_call): Extract from
3287         instrument_builtin_call and tweak a little bit to make it fit with
3288         the new signature.
3289         (instrument_builtin_call): Use the new
3290         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
3291         of is_gimple_builtin_call.
3292         (instrument_derefs, instrument_mem_region_access): Insert the
3293         instrumented memory reference into the hash table.
3294         (maybe_instrument_assignment): Renamed instrument_assignment into
3295         this, and change it to advance the iterator when instrumentation
3296         actually happened and return true in that case.  This makes it
3297         homogeneous with maybe_instrument_assignment, and thus give a
3298         chance to callers to be more 'regular'.
3299         (transform_statements): Clear the memory reference hash table
3300         whenever we enter a new BB, when we cross a function call, or when
3301         we are done transforming statements.  Use
3302         maybe_instrument_assignment instead of instrumentation.  No more
3303         need to special case maybe_instrument_assignment and advance the
3304         iterator after calling it; it's now handled just like
3305         maybe_instrument_call.  Update comment.
3307 2013-02-13  Richard Biener  <rguenther@suse.de>
3309         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3310         Fix loop discovery code.
3312 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
3314         PR inline-asm/56148
3315         * lra-constraints.c (process_alt_operands): Match early clobber
3316         operand with itself.  Check conflicts with earlyclobber only if
3317         the operand is not reloaded.  Prefer to reload conflicting operand
3318         if earlyclobber and matching operands are the same.
3320 2013-02-12  Richard Biener  <rguenther@suse.de>
3322         PR lto/56297
3323         * lto-streamer-out.c (write_symbol): Do not output symbols
3324         for hard register variables.
3326 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
3328         PR target/54222
3329         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3330         (umulsidi3_insn, mulsidi3_insn): New insns.
3332 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
3334         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3335         (struct tune_params): Add vec_costs field.
3336         * config/arm/arm.c (arm_builtin_vectorization_cost)
3337         (arm_add_stmt_cost): New functions.
3338         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3339         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3340         (arm_default_vec_cost): New struct of type cpu_vec_costs.
3341         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3342         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3343         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3344         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3346 2013-02-12  Richard Biener  <rguenther@suse.de>
3348         PR lto/56295
3349         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3350         decls again if possible.
3352 2013-02-12  Richard Biener  <rguenther@suse.de>
3354         PR middle-end/56288
3355         * tree-ssa.c (verify_ssa_name): Fix check, move
3356         SSA_NAME_IN_FREE_LIST check up.
3358 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
3359             Steven Bosscher   <steven@gcc.gnu.org>
3361         PR rtl-optimization/56151
3362         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3363         equal to op0 or op1, and last_insn pattern is CODE operation
3364         with MEM dest and one of the operands matches that MEM.
3366 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
3368         * doc/extend.texi: Document Function Multiversioning and "default"
3369         parameter string to target attribute.
3370         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3371         target attribute parameter is "default".
3372         (ix86_compare_version_priority): Remove checks for target attribute.
3373         (ix86_mangle_function_version_assembler_name): Change error to sorry.
3374         Remove check for target attribute equal to NULL. Add assert.
3375         (ix86_generate_version_dispatcher_body): Change error to sorry.
3377 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
3378             Jack Howarth  <howarth@bromo.med.uc.edu>
3379             Patrick Marlier  <patrick.marlier@gmail.com>
3381         PR libitm/55693
3382         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3383         define ENDFILE_SPEC as TM_DESTRUCTOR.
3384         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3386 2013-02-11  Alexander Potapenko  <glider@google.com>
3387             Jack Howarth  <howarth@bromo.med.uc.edu>
3388             Jakub Jelinek  <jakub@redhat.com>
3390         PR sanitizer/55617
3391         * config/darwin.c (cdtor_record): Rename ctor_record.
3392         (sort_cdtor_records): Rename sort_ctor_records.
3393         (finalize_dtors): New routine to sort destructors by
3394         priority before use in assemble_integer.
3395         (machopic_asm_out_destructor): Use finalize_dtors if needed.
3397 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
3399         PR rtl-optimization/56275
3400         * simplify-rtx.c (avoid_constant_pool_reference): Check that
3401         offset is non-negative and less than cmode size before
3402         calling simplify_subreg.
3404 2013-02-11  Richard Biener  <rguenther@suse.de>
3406         PR tree-optimization/56264
3407         * cfgloop.h (fix_loop_structure): Adjust prototype.
3408         * loop-init.c (fix_loop_structure): Return the number of
3409         newly discovered loops.
3410         * tree-cfgcleanup.c (repair_loop_structures): When new loops
3411         are discovered, do a full loop-closed SSA rewrite.
3413 2013-02-11  Richard Biener  <rguenther@suse.de>
3415         PR tree-optimization/56273
3416         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3417         first VRP run.
3418         (check_array_ref): Fix missing newline in dumps.
3419         (search_for_addr_array): Likewise.
3421 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
3423         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3425 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
3427         PR target/56256
3428         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3430 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
3432         PR rtl-optimization/56246
3433         * lra-constraints.c (simplify_operand_subreg): Try to reuse
3434         reload pseudo.
3435         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3436         constraints are satisfied.
3438 2013-02-08  Jeff Law  <law@redhat.com>
3440         PR debug/53948
3441         * emit-rtl.c (reg_is_parm_p): New function.
3442         * regs.h (reg_is_parm_p): New prototype.
3443         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3444         callee-clobbered registers.
3446 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3448         PR target/56043
3449         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3450         If there is no implicit builtin declaration, just return NULL.
3452 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3454         * config/i386/sse.md (FMAMODEM): New mode iterator.
3455         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3456         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3458 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3460         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3461         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3462         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3464 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
3466         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3467         (microblaze*-*-elf): Likewise.
3468         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3469         LINK_SPEC.
3470         * config/microblaze/microblaze-c.c: Add builtin defines for
3471         _LITTLE_ENDIAN and _BIG_ENDIAN.
3472         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3473         add to TARGET_DEFAULT flags.
3474         Expand ASM_SPEC and LINK_SPEC.
3475         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3476         * config/microblaze/microblaze.md: Update extendsidi2 and
3477         movdi_internal instructions to use low-order / high-order reg
3478         print_operands.
3479         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3480         options and inversemask / mask of LITTLE_ENDIAN.
3481         * config/microblaze/t-microblaze: Expand multilib options to
3482         include mlittle-endian (le) and update exceptions patterns.
3484 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
3486         PR rtl-optimization/56195
3487         * lra-constraints.c (get_reload_reg): Don't reuse regs
3488         if they have smaller mode than requested, if they have
3489         wider mode than requested, try to return a SUBREG.
3491         PR tree-optimization/56250
3492         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3493         if type is unsigned and code isn't MULT_EXPR.
3495 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
3497         PR tree-optimization/56064
3498         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3499         bits according to mode.
3500         * fixed-value.h (fixed_from_double_int)
3501         (const_fixed_from_double_int): Adjust comments.
3503 2013-02-08  Richard Biener  <rguenther@suse.de>
3505         PR lto/56231
3506         * lto-streamer.h (struct data_in): Remove current_file, current_line
3507         and current_col members.
3508         * lto-streamer-out.c (lto_output_location): Stream changed bits
3509         en-block for efficiency.
3510         * lto-streamer-in.c (clear_line_info): Remove.
3511         (lto_input_location): Cache current file, line and column
3512         globally via local statics.  Read changed bits en-block.
3513         (input_function): Do not call clear_line_info.
3514         (lto_read_body): Likewise.
3515         (lto_input_toplevel_asms): Likewise.
3517 2013-02-08  Michael Matz  <matz@suse.de>
3519         PR tree-optimization/52448
3520         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3521         (nt_call_phase): New static.
3522         (add_or_mark_expr): Only mark accesses with newer phase than any
3523         call seen.
3524         (nonfreeing_call_p): New.
3525         (nt_init_block): Update nt_call_phase, mark blocks as visited.
3526         (nt_fini_block): Keep blocks marked as visited.
3527         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3529 2013-02-08  Richard Biener  <rguenther@suse.de>
3531         * ira.c (ira): Free broken dominator information.
3533 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
3535         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3537 2013-02-08  Marek Polacek  <polacek@redhat.com>
3539         * cfgloop.c (verify_loop_structure): Add more checking of headers.
3541 2013-02-08  Richard Biener  <rguenther@suse.de>
3543         PR middle-end/56181
3544         * cfgloop.h (flow_loops_find): Adjust.
3545         (bb_loop_header_p): Declare.
3546         * cfgloop.c (bb_loop_header_p): New function split out from ...
3547         (flow_loops_find): ... here.  Adjust function signature,
3548         support incremental loop structure update.
3549         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
3550         * cfgloopmanip.c (fix_loop_structure): Move ...
3551         * loop-init.c (fix_loop_structure): ... here.
3552         (apply_loop_flags): Split out from ...
3553         (loop_optimizer_init): ... here.
3554         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
3555         in incremental mode, only remove dead loops here.
3557 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
3559         PR target/54222
3560         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3561         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3562         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3563         (*round<mode>3.libgcc): New insns for fixed-modes.
3564         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3565         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3566         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3567         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3568         implementations.  Define to __builtin_avr_absFX,
3569         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3570         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3571         __builtin_avr_countlsFX, respectively.
3572         * config/avr/avr-c.c (target.h): Include it.
3573         (enum avr_builtin_id): New enum.
3574         (avr_resolve_overloaded_builtin): New static function.
3575         (avr_register_target_pragmas): Use it to set
3576         targetm.resolve_overloaded_builtin.
3577         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3578         tree nodes used by DEF_BUILTIN.
3579         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3580         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3581         <AVR_BUILTIN_xxBITS>: Same.
3583 2013-02-08  Richard Biener  <rguenther@suse.de>
3585         * cfgloop.c (verify_loop_structure): Properly handle
3586         a loop exiting to another loop header.
3587         * ira-int.h (ira_loops): Remove.
3588         * ira.c (ira_loops): Remove.
3589         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3590         (do_reload): Use loop_optimizer_finalize.
3591         * ira-build.c (create_loop_tree_nodes): Use get_loops and
3592         number_of_loops to access the loop tree.
3593         (more_one_region_p): Likewise.
3594         (finish_loop_tree_nodes): Likewise.
3595         (rebuild_regno_allocno_maps): Likewise.
3596         (mark_loops_for_removal): Likewise.
3597         (mark_all_loops_for_removal): Likewise.
3598         (remove_unnecessary_regions): Likewise.
3599         (ira_build): Likewise.
3600         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3602 2013-02-08  Richard Biener  <rguenther@suse.de>
3604         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3605         * ipa-pure-const.c (analyze_function): Avoid calling
3606         mark_irreducible_loops twice.
3607         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3609 2013-02-07  David S. Miller  <davem@davemloft.net>
3611         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3612         on 'reg'.
3613         * var-tracking.c (vt_add_function_parameter): Test the presence of
3614         HAVE_window_save properly and do not remap argument registers when
3615         we have a leaf function.
3617 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
3619         PR bootstrap/56227
3620         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3621         instead of "ll".
3622         * config/i386/i386.c (ix86_print_operand): Ditto.
3624 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
3626         * lra-constraints.c (process_alt_operands): Fix recently added comment.
3628 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
3630         PR rtl-optimization/56225
3631         * lra-constraints.c (process_alt_operands): Check that reload hard
3632         reg can hold value for strict_low_part.
3634 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
3636         PR debug/56154
3637         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3638         dwarf2out_end_function.
3639         (in_first_function_p, maybe_at_text_label_p,
3640         first_loclabel_num_not_at_text_label): New variables.
3641         (dwarf2out_var_location): In the first function find out
3642         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3643         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3644         functions.
3646 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
3648         PR rtl-optimization/56178
3649         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3650         SUBREG of a register.  Tidy up related block of code.
3651         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3652         note if the source is a register or a SUBREG of a register.
3654 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
3656         PR target/56228
3657         * config/rs6000/rs6000.md (ptrm): New mode attr.
3658         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3659         call_value_indirect_aix<pttrsize>,
3660         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3661         m in constraints.
3663 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3665         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3666         if -bnortl. Convert to strcmp and strncmp.
3668 2013-02-07  Alan Modra  <amodra@gmail.com>
3670         PR target/54009
3671         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3672         addresses won't wrap when offsetting.
3673         (rs6000_secondary_reload): Provide secondary reloads needed for
3674         wrapping LO_SUM addresses.
3676 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
3678         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3679         MACH, just __MACH__.
3681 2013-02-06  Richard Biener  <rguenther@suse.de>
3683         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3684         instead of calling fix_loop_structure.
3686 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
3688         PR middle-end/56217
3689         * omp-low.c (use_pointer_for_field): Return false if
3690         lower_send_shared_vars doesn't generate any copy-out code.
3692 2013-02-06  Tom de Vries  <tom@codesourcery.com>
3694         PR rtl-optimization/56131
3695         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3696         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
3697         of the label is NULL.  Add comment.
3699 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
3701         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3703         PR sanitizer/55374
3704         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3705         (STATIC_LIBTSAN_LIBS): Likewise.
3706         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3707         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3708         is defined, don't add anything else beyond that.
3709         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3710         (LINK_COMMAND_SPEC): Use them.
3712         PR tree-optimization/56205
3713         * tree-stdarg.c (check_all_va_list_escapes): Return true if
3714         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3715         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3717 2013-02-05  Richard Biener  <rguenther@suse.de>
3719         PR tree-optimization/53342
3720         PR tree-optimization/53185
3721         * tree-vectorizer.h (vect_check_strided_load): Remove.
3722         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3723         not disallow peeling for vectorized strided loads.
3724         (vect_check_strided_load): Make static and simplify.
3725         (vect_analyze_data_refs): Adjust.
3726         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3727         correctly when vectorizing strided loads.
3729 2013-02-05  Richard Biener  <rguenther@suse.de>
3731         * doc/install.texi: Refer to ISL, not PPL.
3733 2013-02-05  Jan Hubicka  <jh@suse.cz>
3735         PR tree-optimization/55789
3736         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3738 2013-02-05  Jan Hubicka  <jh@suse.cz>
3740         PR tree-optimization/55789
3741         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3742         the dead call anyway.
3744 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
3746         PR sanitizer/55374
3747         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3749 2013-02-04  Alexander Potapenko  <glider@google.com>
3750             Jack Howarth  <howarth@bromo.med.uc.edu>
3751             Jakub Jelinek  <jakub@redhat.com>
3753         PR sanitizer/55617
3754         * config/darwin.c (sort_ctor_records): Stabilized qsort
3755         on constructor priority by using original position.
3756         (finalize_ctors): New routine to sort constructors by
3757         priority before use in assemble_integer.
3758         (machopic_asm_out_constructor): Use finalize_ctors if needed.
3760 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
3762         PR libstdc++/54314
3763         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3764         about visibility on artificial decls.
3765         * config/sol2.c (solaris_assemble_visibility): Likewise.
3767 2013-02-04  Kai Tietz  <ktietz@redhat.com>
3769         PR target/56186
3770         * config/i386/i386.c (function_value_ms_64): Add additional valtype
3771         argument and improve checking of return-argument types for 16-byte
3772         modes.
3773         (ix86_function_value_1): Add additional valtype argument on call
3774         of function_value_64.
3775         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3776         handling infunction_value_64 function.
3778 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
3780         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3782 2013-02-04  Richard Biener  <rguenther@suse.de>
3784         PR tree-optimization/56188
3785         * tree-ssa-structalias.c (label_visit): Consider case with
3786         initially non-empty points-to set.
3787         (perform_var_substitution): Dump node mapping and clean up.
3789 2013-02-04  Richard Guenther  <rguenther@suse.de>
3791         PR lto/56168
3792         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3793         node prevail as last resort.
3794         (lto_symtab_merge_decls): Remove guard on LTRANS here.
3795         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3797 2013-02-04  Richard Biener  <rguenther@suse.de>
3799         PR tree-optimization/56113
3800         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3801         Merge into ...
3802         (equiv_class_lookup_or_add): ... this.
3803         (label_visit): Adjust and fix error in previous patch.
3804         (perform_var_substitution): Adjust.
3806 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
3808         * config/sh/divtab.c: Fix formatting and comments throughout the file.
3809         * config/sh/sh4-300.md: Likewise.
3810         * config/sh/sh4a.md: Likewise.
3811         * config/sh/constraints.md: Likewise.
3812         * config/sh/sh.md: Likewise.
3813         * config/sh/netbsd-elf.h: Likewise.
3814         * config/sh/predicates.md: Likewise.
3815         * config/sh/sh-protos.h: Likewise.
3816         * config/sh/ushmedia.h: Likewise.
3817         * config/sh/linux.h: Likewise.
3818         * config/sh/sh.c: Likewise.
3819         * config/sh/superh.h: Likewise.
3820         * config/sh/elf.h: Likewise.
3821         * config/sh/sh4.md: Likewise.
3822         * config/sh/sh.h: Likewise.
3824 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3826         * config/pa/constraints.md: Adjust unused letters.  Change "T"
3827         constraint to match_test floating_point_store_memory_operand().
3828         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3829         (base14_operand): New.
3830         (floating_point_store_memory_operand): New.
3831         (integer_store_memory_operand): Revise to use base14_operand and
3832         reg_plus_base_memory_operand.
3833         (move_dest_operand): Allow symbolic_memory_operands.
3834         (symbolic_memory_operand): Check for LO_SOM.
3835         (symbolic_operand): Change default case to break.
3836         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3837         CONST_DOUBLE values to be reloaded by putting them into memory when
3838         the destination is a floating point register.
3839         (movdf): Remove code to handle CONST_DOUBLE.
3840         (movsf): Likewise.
3841         (reload_indf_r1): New.
3842         (reload_insf_r1): New.
3843         Consistently use "Q" and "T" constraints with integer and floating
3844         point move instructions, respectively.
3845         (movdi): Remove FAIL.
3846         Change predicate for source operand unamed DImode move from
3847         general_operand to move_src_operand.
3848         (umulsidi3): Change predicate for destination operand to
3849         register_operand.
3850         Likewise for similar unamed patterns.
3851         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3852         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3853         (hppa_legitimize_address): Simplify mask calculation.
3854         (pa_emit_move_sequence): Revised handling of secondary reloads from
3855         REG+D addresses for floating point loads and stores.  Directly handle
3856         loading CONST0_RTX (mode) to a floating point register.
3857         (pa_secondary_reload): Handle reloading DF and SFmode constant values
3858         to floating point registers.  Don't restrict secondary reloads to
3859         floating point registers to integer modes.  Revise some comments and
3860         cleanup some code.
3861         (TARGET_LEGITIMATE_ADDRESS_P): Define.
3862         (pa_legitimate_address_p): New.
3863         (pa_legitimize_reload_address): New.
3864         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3865         (STRICT_REG_OK_FOR_BASE_P): New.
3866         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
3867         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3869 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
3870             Andrew Dixie  <andrewd@gentrack.com>
3872         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3873         flag set.
3875 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
3877         * expmed.c (extract_bit_field_1): Pass the full width of the
3878         structure to get_best_reg_extraction_insn.
3880 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
3882         PR target/54601
3883         * configure.ac (use_cxa_atexit): Add AIX.
3884         * configure: Regenerate.
3886         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3888 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
3890         PR debug/54793
3891         * final.c (need_profile_function): New variable.
3892         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3893         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3894         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3895         notes, targetm.asm_out.function_prologue doesn't emit anything,
3896         HAVE_prologue and profiler should be emitted before prologue,
3897         set need_profile_function instead of emitting it.
3898         (final_scan_insn): If need_profile_function, emit
3899         profile_function on the first NOTE_INSN_BASIC_BLOCK or
3900         NOTE_INSN_FUNCTION_BEG note.
3902 2013-02-01  Richard Henderson  <rth@redhat.com>
3904         * config/rs6000/rs6000.md (smulditi3): New.
3905         (umulditi3): New.
3907         * config/alpha/alpha.md (umulditi3): New.
3909 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
3911         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3912         (ASM_OUTPUT_ALIGNED_LOCAL): New.
3914 2013-02-01  Richard Biener  <rguenther@suse.de>
3916         PR tree-optimization/56113
3917         * tree-ssa-structalias.c (label_visit): Reduce work for
3918         single-predecessor nodes.
3920 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
3922         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3923         range isn't testing for zero.
3925 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
3927         PR middle-end/56113
3928         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3930 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
3931             Nick Clifton  <nickc@redhat.com>
3933         * config/v850/constraints.md (Q): Define as a memory constraint.
3934         * config/v850/predicates.md (label_ref_operand): New predicate.
3935         (e3v5_shift_operand): New predicate.
3936         (ior_operator): New predicate.
3937         * config/v850/t-v850: Add e3v5 multilib.
3938         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3939         (v850_gen_movdi): Prototype.
3940         * config/v850/v850.c: Add support for e3v5 architecture.
3941         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3942         TARGET_V850E_UP.
3943         (construct_save_jarl): Add e3v5 long JARL support.
3944         (v850_adjust_insn_length): New function.  Adjust length of call
3945         insns when using e3v5 instructions.
3946         (v850_gen_movdi): New function: Generate instructions to move a
3947         DImode value.
3948         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3949         (CPP_SPEC): Define __v850e3v5__ as appropriate.
3950         (TARGET_USE_FPU): Enable for e3v5.
3951         (CONST_OK_FOR_W): New macro.
3952         (ADJUST_INSN_LENGTH): Define.
3953         * config/v850/v850.md (UNSPEC_LOOP): Define.
3954         (attr cpu): Add v850e3v5.
3955         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3956         (movdi): New pattern.
3957         (movdi_internal): New pattern.
3958         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3959         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3960         (cstoresf4): Likewise.
3961         (cstoredf4): Likewise.
3962         (insv): New pattern.
3963         (rotlso3_a): New pattern.
3964         (rotlsi3_b): New pattern
3965         (rotlsi3_v850e3v5): New pattern.
3966         (doloop_begin): New pattern.
3967         (fix_loop_counter): New pattern.
3968         (doloop_end): New pattern.
3969         (branch_normal): Add e3v5 long branch support.
3970         (branch_invert): Likewise.
3971         (branch_z_normal): Likewise.
3972         (branch_z_invert): Likewise.
3973         (branch_nz_normal): Likewise.
3974         (branch_nz_invert): Likewise.
3975         (call_internal_short): Add e3v5 register-indirect JARL support.
3976         (call_internal_long): Likewise.
3977         (call_value_internal_short): Likewise.
3978         (call_value_internal_long): Likewise.
3979         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3980         (mloop): New option.
3981         * config.gcc: Add support for configuring v840e3v5 target.
3982         * doc/invoke.texi: Document new v850 specific command line options.
3984 2013-01-31  Paul Koning  <ni1d@arrl.net>
3986         PR debug/55059
3987         PR debug/54508
3988         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3989         children if parent is a class.
3990         (prune_unused_types_prune): Don't add DW_AT_declaration.
3992 2013-01-31  Richard Biener  <rguenther@suse.de>
3994         PR tree-optimization/56157
3995         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3996         match up operand with SLP child.
3998 2013-01-31  Jason Merrill  <jason@redhat.com>
4000         PR debug/54410
4001         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
4002         parameters the first time.
4003         (gen_scheduled_generic_parms_dies): Check completeness here.
4005 2013-01-31  Richard Biener  <rguenther@suse.de>
4007         PR middle-end/53073
4008         * common.opt (faggressive-loop-optimizations): New flag,
4009         enabled by default.
4010         * doc/invoke.texi (faggressive-loop-optimizations): Document.
4011         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
4012         infer_loop_bounds_from_undefined by it.
4014 2013-01-31  Richard Biener  <rguenther@suse.de>
4016         PR tree-optimization/56150
4017         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
4018         visit virtual operands.
4019         (find_uses_to_rename_bb): Likewise.
4021 2013-01-31  Richard Biener  <rguenther@suse.de>
4023         PR tree-optimization/56150
4024         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
4025         mixed store non-store stmts.
4027 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
4029         PR sanitizer/55374
4030         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
4031         LIBASAN_EARLY_SPEC is defined.
4032         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
4033         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
4034         before %o.
4035         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
4037         PR c++/55742
4038         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
4039         invalid args instead of ICEing on it.
4040         (ix86_valid_target_attribute_tree): Return error_mark_node if
4041         ix86_valid_target_attribute_inner_p failed.
4042         (ix86_valid_target_attribute_p): Return false only if
4043         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
4044         target("default") attribute.
4045         (sorted_attr_string): Change argument from const char * to tree,
4046         merge in all target attribute arguments rather than just one.
4047         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
4048         instead of free.  Avoid using strcat.
4049         (ix86_mangle_function_version_assembler_name): Mangle
4050         target("default") as if no target attribute is present.  Adjust
4051         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
4052         instead of xmalloc and XDELETEVEC instead of free.
4053         (ix86_function_versions): Don't return true if one of the decls
4054         doesn't have target attribute.  If they don't and one of the decls
4055         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
4056         sorted_attr_string caller.  Use XDELETEVEC instead of free.
4057         (ix86_supports_function_versions): Remove.
4058         (make_name): Fix up formatting.
4059         (make_dispatcher_decl): Remove resolver_name and its initialization.
4060         Avoid leaking memory.
4061         (is_function_default_version): Return true if there is
4062         target("default") attribute rather than no target attribute at all.
4063         (make_resolver_func): Avoid leaking memory.
4064         (ix86_generate_version_dispatcher_body): Likewise.
4065         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
4066         * target.def (supports_function_versions): Remove.
4067         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
4068         * doc/tm.texi: Regenerated.
4070 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
4072         PR rtl-optimization/56144
4073         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
4074         for values with side effects.
4076 2013-01-30  Richard Biener  <rguenther@suse.de>
4078         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
4079         (sparseset_pop): Likewise.
4080         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
4081         to be able to use quick_push in the worker loop.
4083 2013-01-30  Marek Polacek  <polacek@redhat.com>
4085         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
4087 2013-01-30  Richard Biener  <rguenther@suse.de>
4089         PR lto/56147
4090         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
4092 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
4094         PR tree-optimization/56064
4095         * fixed-value.c (fixed_from_double_int): New function.
4096         * fixed-value.h (fixed_from_double_int): New prototype.
4097         (const_fixed_from_double_int): New static inline function.
4098         * fold-const.c (native_interpret_fixed): New static function.
4099         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
4100         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
4101         (native_encode_fixed): New static function.
4102         (native_encode_expr) <FIXED_CST>: Use it.
4103         (native_interpret_int): Move double_int worker code to...
4104         * double-int.c (double_int::from_buffer): ...this new static method.
4105         * double-int.h (double_int::from_buffer): Prototype it.
4107 2013-01-30  Richard Biener  <rguenther@suse.de>
4109         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
4110         New pointer-map and obstack.
4111         (init_alias_vars): Allocate pointer-map and obstack.
4112         (delete_points_to_sets): Free them.
4113         (find_what_var_points_to): Cache result.
4114         (find_what_p_points_to): Adjust for changed interface of
4115         find_what_var_points_to.
4116         (compute_points_to_sets): Likewise.
4117         (ipa_pta_execute): Likewise.
4119 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4121         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
4122         * configure: Regenerate.
4123         * config.in: Regenerate.
4124         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
4125         #nobits/#progbits if supported.
4127 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
4129         PR target/56121
4130         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
4131         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
4132         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
4134 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4136         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
4137         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
4139 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4141         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
4142         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
4144 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4146         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
4147         declaration.
4148         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
4149         * config/arm/cortex-a7.md: New bypasses using
4150         arm_mac_accumulator_is_result.
4152 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4154         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
4155         (cortex_a7_neon_mla): Likewise.
4156         (cortex_a7_fpfmad): New reservation.
4157         (cortex_a7_fpmacs): Use ffmas and update required units.
4158         (cortex_a7_fpmuld): Update required units and latency.
4159         (cortex_a7_fpmacd): Likewise.
4160         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
4161         (cortex_a7_neon). Likewise.
4162         (bypass) Update participating units.
4164 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
4166         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
4167         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
4168         from fmac to ffma.
4169         * config/arm/vfp11.md (vfp_farith): Use ffmas.
4170         (vfp_fmul): Use ffmad.
4171         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
4172         (cortex_r4_fmacd): Use ffmad.
4173         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
4174         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
4175         (cortex_a9_fmacd): Use ffmad.
4176         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
4177         (cortex_a8_vfp_macd): Use ffmad.
4178         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
4179         (cortex_a5_fpmacd): Use ffmad.
4180         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
4181         (cortex_a15_vfp_macd): Use ffmad.
4182         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
4184 2013-01-29  Jason Merrill  <jason@redhat.com>
4186         PR libstdc++/54314
4187         * varasm.c (default_assemble_visibility): Don't warn about
4188         visibility on artificial decls.
4190 2013-01-29  Richard Biener  <rguenther@suse.de>
4192         PR tree-optimization/56113
4193         * tree-ssa-structalias.c (equiv_class_lookup): Also return
4194         the bitmap leader.
4195         (label_visit): Free duplicate bitmaps and record the leader instead.
4196         (perform_var_substitution): Adjust.
4198 2013-01-29  Richard Biener  <rguenther@suse.de>
4200         PR tree-optimization/55270
4201         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
4202         the CFG, schedule loops for fixup.
4204 2013-01-29  Nick Clifton  <nickc@redhat.com>
4206         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
4207         SP_REG.
4209 2013-01-28  Leif Ekblad  <leif@rdos.net>
4211         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
4212         * config/i386/i386.h (TARGET_RDOS): New macro.
4213         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
4214         * config/i386/i386.c (ix86_option_override_internal): For 64bit
4215         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
4216         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
4217         DEFAULT_LARGE_SECTION_THRESHOLD.
4218         * config/i386/i386.md (R14_REG, R15_REG): New constants.
4219         * config/i386/rdos.h: New file.
4220         * config/i386/rdos64.h: New file.
4222 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
4224         PR other/54814
4225         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
4226         TEST_HARD_REG_BIT.
4228 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
4230         PR rtl-optimization/56117
4231         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
4232         call cselib_lookup_from_insn on the MEM before calling
4233         add_insn_mem_dependence.
4235 2013-01-28  Richard Biener  <rguenther@suse.de>
4237         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
4238         to a stmt that didn't have one.
4239         (copy_phis_for_bb): Likewise for PHI arguments.
4240         (copy_debug_stmt): Likewise for debug stmts.
4242 2013-01-28  Richard Biener  <rguenther@suse.de>
4244         PR tree-optimization/56034
4245         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
4246         (partition_builtin_p): Adjust.
4247         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
4248         it is the last partition.
4249         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
4250         up the vertex for the definition.
4251         (classify_partition): Classify whether a partition is a
4252         PKIND_REDUCTION, thus has uses outside of the loop.
4253         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
4254         Merge all PKIND_REDUCTION partitions into the last partition.
4255         (tree_loop_distribution): Seed partitions from reductions as well.
4257 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
4259         PR tree-optimization/56125
4260         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4261         pow(x,c) into sqrt(x) * powi(x, n/2) or
4262         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4263         optimizing for size.
4264         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4265         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4266         integer.
4268         PR tree-optimization/56094
4269         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4270         to UNKNOWN_LOCATION while gimplifying expr.
4272 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
4274         PR target/56114
4275         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4276         operand 0 in movabs insn template for -masm=intel asm alternative.
4277         (*movabs<mode>_2): Ditto for operand 1.
4279 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
4281         PR target/54663
4282         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4283         of microblaze-c.o
4285 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4287         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4288         tm_file.
4290 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4292         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4293         Undef to avoid warning.
4295 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4297         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4298         * configure: Regenerate.
4300 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
4302         PR tree-optimization/56098
4303         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4304         for stmts with volatile ops.
4305         (cond_store_replacement): Don't optimize if assign has volatile ops.
4306         (cond_if_else_store_replacement_1): Don't optimize if either
4307         then_assign or else_assign have volatile ops.
4308         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4309         volatile ops.
4311 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
4313         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4315 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
4317         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4318         missing ':' in asm example.
4320 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
4322         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4323         entries into lane and laneq entries.
4324         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4325         Remove AdvSIMD scalar modes.
4326         (aarch64_sq<r>dmulh_laneq<mode>): New.
4327         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4328         modes.
4329         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4330         builtin implementations to relfect changes in RTL in aarch64-simd.md.
4331         * config/aarch64/iterators.md (VCOND): New.
4332         (VCONQ): New.
4334 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
4336         PR target/54222
4337         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4338         Add NULL LIBNAME argument to existing definitions.
4339         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4340         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4341         * config/avr/avr.c (DEF_BUILTIN): Same.
4342         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4343         (avr_expand_builtin): Expand to a vanilla call if a libgcc
4344         implementation is available (DECL_ASSEMBLER_NAME is set).
4345         (avr_fold_absfx): New static function.
4346         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4347         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4348         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4349         AVR_BUILTIN_ABSLLK.
4350         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4351         (abshk, absk, abslk, absllk): Provide as static inline functions.
4353 2013-01-25  Marek Polacek  <polacek@redhat.com>
4355         PR tree-optimization/56035
4356         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4358 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
4360         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4361         (*movtf_internal_rex64): Add (!o,C) alternative
4362         (*movxf_internal_rex64): Ditto.
4363         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4365 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
4367         * doc/invoke.texi: fix typo.
4368         * doc/objc.texi: fix typo.
4370 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
4372         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4373         for the first two alternatives.
4375 2013-01-24  Diego Novillo  <dnovillo@google.com>
4377         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
4378         (ggc-zone.o): Remove.
4379         * configure.ac: Remove option --with-gc.
4380         * configure: Re-generate.
4381         * doc/install.texi: Remove documentation for --with-gc.
4382         * gengtype.c (write_enum_defn): Remove.  Update all users.
4383         (write_Types_process_field): Remove generation of gt_e_* argument.
4384         (output_type_enum): Remove.  Update all users.
4385         (write_enum_defn): Remove.  Update all users.
4386         (enum alloc_zone): Remove.  Update all users.
4387         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4388         * ggc-common.c (ggc_splay_alloc): Remove first argument.
4389         Update all callers.
4390         (struct ptr_data): Remove field TYPE.  Update all users.
4391         (gt_pch_note_object): Remove argument TYPE.  Update all users.
4392         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4393         Update all users.
4394         * ggc-none.c (ggc_alloc_typed_stat): Remove.
4395         (struct alloc_zone): Remove.
4396         (ggc_internal_alloc_zone_stat): Remove.
4397         (ggc_internal_cleared_alloc_zone_stat): Remove.
4398         * ggc-page.c (ggc_alloc_typed_stat): Remove.
4399         (ggc_pch_count_object): Remove last argument.  Update all users.
4400         (ggc_pch_alloc_object): Remove last argument.  Update all users.
4401         (struct alloc_zone): Remove.
4402         * ggc-zone.c: Remove.
4403         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
4404         (struct alloc_zone): Remove.
4405         (ggc_alloc_typed_stat): Remove.
4406         (ggc_alloc_typed): Remove.
4407         (ggc_splay_alloc): Remove first argument.
4408         (rtl_zone): Remove.  Update all users.
4409         (tree_zone): Remove.  Update all users.
4410         (tree_id_zone): Remove.  Update all users.
4411         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
4412         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
4413         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
4414         * tree-ssanames.c: Remove references to zone allocator in comments.
4416 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
4418         * config/avr/avr.c (avr_out_fract): Make register numbers that
4419         might be outside of source operand signed.
4421 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
4423         * config/i386/constraints.md (Yf): New constraint.
4424         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4425         of f constraint to conditionaly disable x87 register preferences.
4426         (*movdf_internal): Ditto.
4427         (*movsf_internal): Ditto.
4429 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
4431         PR inline-asm/55934
4432         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4433         that have operands with impossible constraints.
4434         Add a FIXME for a speed-up opportunity.
4435         * lra-constraints.c (process_alt_operands): Verify that a class
4436         selected from constraints on asms is valid for the operand mode.
4437         (curr_insn_transform): Remove incorrect comment.
4439 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
4441         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4442         TOC operand is a valid symbol ref in the constant pool.
4444 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
4446         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4448 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
4450         PR target/54222
4451         * config/avr/stdfix.h: New file.
4452         * t-avr (stdfix-gcc.h): New rule to build it.
4453         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4455 2013-01-23  Kostya Serebryany  <kcc@google.com>
4457         * config/darwin.h: remove dependency on
4458         CoreFoundation (asan on Mac OS).
4460 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
4462         PR target/49069
4463         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4464         instead of cmpdi_operand for first comparison operand.
4465         Don't assert that comparison operands aren't both constants.
4467 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
4469         * doc/install.texi (Downloading the Source): Update references to
4470         downloading separate components.
4472 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
4474         * doc/extend.texi (__int128): Improve grammar.
4476 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
4478         PR target/56028
4479         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4480         alternative to (o,r).
4481         (*movdi_internal_rex64): Remove (!o,n) alternative.
4482         (DImode immediate->memory splitter): Remove.
4483         (DImode immediate->memory peephole2): Remove.
4484         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4485         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4486         alternative to (!o,*r).
4487         (*movtf_internal_sse): New pattern.
4488         (*movxf_internal_rex64): New pattern.
4489         (*movxf_internal): Disable for TARGET_64BIT.
4490         (*movdf_internal_rex64): Remove (!o,F) alternative.
4492 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
4494         PR middle-end/56074
4495         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4496         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4497         * tree-vect-loop-manip.c (find_loop_location): Also ignore
4498         stmt locations where LOCATION_LOCUS of the stmt location is
4499         UNKNOWN_LOCATION or BUILTINS_LOCATION.
4501         PR target/55686
4502         * config/i386/i386.md (UNSPEC_STOS): New.
4503         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4504         *strsetqi_1): Add UNSPEC_STOS.
4506 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
4508         PR c++/56067
4509         * doc/invoke.texi: Remove left over -Wsynth example.
4511 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
4513         PR tree-optimization/56051
4514         * fold-const.c (fold_binary_loc): Don't fold
4515         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4516         a narrowing conversion, or widening conversion from signed
4517         to unsigned.
4519 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
4521         PR rtl-optimization/56023
4522         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4523         dependent on debug instruction.
4525 2013-01-21  Martin Jambor  <mjambor@suse.cz>
4527         PR middle-end/56022
4528         * function.c (allocate_struct_function): Call
4529         invoke_set_current_function_hook earlier.
4531 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
4533         * reload1.c (init_reload): Only initialize reload_obstack
4534         during the first call.
4536 2013-01-21  Marek Polacek  <polacek@redhat.com>
4538         * cfgloop.c (verify_loop_structure): Fix up grammar.
4540 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
4542         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4543         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4545 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4547         PR target/56058
4548         * config/arm/marvell-pj4.md: Update copyright year.
4549         Fix up use of alu to alu_reg and simple_alu_imm.
4551 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
4553         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4555 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
4557         PR target/55433
4558         * lra-constraints.c (curr_insn_transform): Don't reuse original
4559         insn for secondary memory move when memory mode should be different.
4561 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4563         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4564         atomic_storedi_1): New patterns.
4566 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4568         btver2 pipeline descriptions.
4569         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4570         descriptions.
4571         * config/i386/i386.md (btver2_decode): New type attributes.
4572         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4573         type attributes.
4574         * config/i386/btver2.md: New file describing btver2 pipelines.
4576 2013-01-19  Andrew Pinski  <apinski@cavium.com>
4578         PR tree-optimization/52631
4579         * tree-ssa-sccvn (visit_use): Before looking up the original
4580         statement, try looking up the simplified expression.
4582 2013-01-19  Anthony Green  <green@moxielogic.com>
4584         * config/moxie/moxie.c (moxie_expand_prologue): Set
4585         current_function_static_stack_size.
4587 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
4589         PR tree-optimization/56029
4590         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4591         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4593 2013-01-18  Sharad Singhai  <singhai@google.com>
4595         PR tree-optimization/55995
4596         * dumpfile.c (dump_loc): Print location only if available.
4597         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4599 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
4601         PR target/55433
4602         * lra-constraints.c (curr_insn_transform): Reuse original insn for
4603         secondary memory move.
4604         (inherit_reload_reg): Use rclass instead of cl for
4605         check_secondary_memory_needed_p.
4607 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
4609         PR middle-end/56015
4610         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4611         the case where writing real complex part of target modifies op1.
4613 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
4615         * config/aarch64/aarch64-simd.md
4616         (aarch64_vcond_internal<mode>): Handle unordered cases.
4617         * config/aarch64/iterators.md (v_cmp_result): New.
4619 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
4620             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4622         * config/arm/marvell-pj4.md: New file.
4623         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4624         * config/arm/arm.md (generic_sched): Add marvell_pj4.
4625         (generic_vfp): Likewise.
4626         * config/arm/arm-cores.def: Add marvell-pj4.
4627         * config/arm/arm-tune.md: Regenerate.
4628         * config/arm/arm-tables.opt: Regenerate.
4629         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4630         * doc/invoke.texi: Document marvell-pj4.
4632 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
4634         * config/aarch64/arm_neon.h: Map scalar types to standard types.
4636 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4638         PR debug/54114
4639         PR debug/54402
4640         PR debug/49888
4641         * var-tracking.c (negative_power_of_two_p): New.
4642         (global_get_addr_cache, local_get_addr_cache): New.
4643         (get_addr_from_global_cache, get_addr_from_local_cache): New.
4644         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
4645         heading comment.
4646         (vt_stack_offset_p): Remove.
4647         (vt_canon_true_dep): Always canonicalize loc's address.
4648         (clobber_overlapping_mems): Make sure we have a MEM.
4649         (local_get_addr_clear_given_value): New.
4650         (val_reset): Clear local cached entries.
4651         (compute_bb_dataflow): Create and release the local cache.
4652         Disable duplicate MEMs clobbering.
4653         (emit_notes_in_bb): Clobber MEMs likewise.
4654         (vt_emit_notes): Create and release the local cache.
4655         (vt_initialize, vt_finalize): Create and release the global
4656         cache, respectively.
4657         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4659 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4661         PR libmudflap/53359
4662         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4663         not found in the symtab.
4665 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
4667         PR debug/56006
4668         PR rtl-optimization/55547
4669         PR rtl-optimization/53827
4670         PR debug/53671
4671         PR debug/49888
4672         * alias.c (offset_overlap_p): New, factored out of...
4673         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
4674         the conservative special case for symbolic constants.  Don't
4675         adjust zero sizes on alignment.
4677 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
4679         PR rtl-optimization/52573
4680         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4681         REG_UNUSED for the same register.
4683 2013-01-17  Richard Biener  <rguenther@suse.de>
4684             Marek Polacek  <polacek@redhat.com>
4686         PR rtl-optimization/55833
4687         * loop-unswitch.c (unswitch_loops): Move loop verification...
4688         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
4689         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4690         Set it to true when we're removing a loop from hierarchy tree in
4691         an irreducible region.
4692         (fix_bb_placements): Adjust caller.
4693         (fix_loop_placements): Likewise.
4695 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
4697         * config/avr/builtins.def (DEF_BUILTIN): Factor out
4698         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4699         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4700         Remove ID.  Adjust comments.
4701         * config/avr/avr-c.c (avr_builtin_name): Remove.
4702         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4703         * config/avr/avr.c (avr_tolower): New static function.
4704         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
4705         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4706         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4707         default expansion.
4709 2013-01-17  Jan Hubicka  <jh@suse.cz>
4711         PR tree-optimization/55273
4712         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4714 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
4716         PR target/55981
4717         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4718         store through atomic_store<mode>_1.
4719         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4721 2013-01-17  Martin Jambor  <mjambor@suse.cz>
4723         PR tree-optimizations/55264
4724         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4725         for virtual methods.
4726         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4727         virtual methods before inlining is over.
4728         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4729         virtual functions.
4730         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4731         non-virtual.
4733 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
4735         PR rtl-optimization/56005
4736         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4737         pending reads for prefetch.
4739 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
4741         * config/aarch64/aarch64.md
4742         (*cstoresi_neg_uxtw): New pattern.
4743         (*cmovsi_insn_uxtw): New pattern.
4744         (*<optab>si3_uxtw): New pattern.
4745         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4746         (*<optab>si3_insn_uxtw): New pattern.
4747         (*bswapsi2_uxtw): New pattern.
4749 2013-01-16  Richard Biener  <rguenther@suse.de>
4751         * tree-inline.c (tree_function_versioning): Remove set but
4752         never used variable.
4754 2013-01-16  Richard Biener  <rguenther@suse.de>
4756         PR tree-optimization/55964
4757         * tree-flow.h (rename_variables_in_loop): Remove.
4758         (rename_variables_in_bb): Likewise.
4759         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4760         (copy_loop_before): Adjust and delete update-ssa status.
4761         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4762         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
4763         (rename_variables_in_loop): Remove.
4764         (slpeel_update_phis_for_duplicate_loop): Likewise.
4765         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4766         use available cfg machinery instead of duplicating it.
4767         Update PHI nodes and perform poor-mans SSA update here.
4768         (slpeel_tree_peel_loop_to_edge): Adjust.
4770 2013-01-16  Richard Biener  <rguenther@suse.de>
4772         PR tree-optimization/54767
4773         PR tree-optimization/53465
4774         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4775         (vrp_visit_phi_node): For PHI arguments coming via backedges
4776         drop all symbolical range information.
4777         (execute_vrp): Compute backedges.
4779 2013-01-16  Richard Biener  <rguenther@suse.de>
4781         * doc/install.texi: Update CLooG and ISL requirements to
4782         0.18.0 and 0.11.1.
4784 2013-01-16  Christian Bruel  <christian.bruel@st.com>
4786         PR target/55301
4787         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4788         (broken_move): Handle UNSPECV_SP_SWITCH_B.
4789         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4791 2013-01-16  DJ Delorie  <dj@redhat.com>
4793         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4794         (UNSPECV_SP_SWITCH_E): New.
4795         (sp_switch_1): Change to an unspec.
4796         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
4797         replace $r15.
4799 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
4801         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4802         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4803         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4804         (expand_mem_thread_fence): Ditto.
4805         (expand_mem_signal_fence): Ditto.
4806         (expand_atomic_load): Ditto.
4807         (expand_atomic_store): Ditto.
4809 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
4811         PR rtl-optimization/55547
4812         PR rtl-optimization/53827
4813         PR debug/53671
4814         PR debug/49888
4815         * alias.c (memrefs_conflict_p): Set sizes to negative after
4816         AND adjustments.
4818 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4820         PR target/55940
4821         * function.c (thread_prologue_and_epilogue_insns): Always
4822         add crtl->drap_reg to set_up_by_prologue.set, even if
4823         stack_realign_drap is false.
4825 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
4827         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4828         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4829         *call): Fix indention.
4831 2013-01-15  Tom de Vries  <tom@codesourcery.com>
4833         PR target/55876
4834         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4835         Update comment.
4837 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
4839         PR rtl-optimization/55153
4840         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4842 2013-01-15  Martin Jambor  <mjambor@suse.cz>
4844         PR tree-optimization/55920
4845         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4846         accesses as grp_to_be_debug_replaced.
4848 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4850         PR tree-optimization/55920
4851         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4852         there is non-useless type conversion needed from debug rhs to lhs,
4853         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4855 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
4856             Mikael Pettersson  <mikpe@it.uu.se>
4858         PR target/43961
4859         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4860         Thumb.
4861         (ASM_OUTPUT_CASE_LABEL): Remove.
4862         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4863         * final.c (shorten_branches): Update alignment of labels before
4864         jump tables if CASE_VECTOR_SHORTEN_MODE.
4866 2013-01-15  Richard Biener  <rguenther@suse.de>
4868         PR bootstrap/55961
4869         * system.h: Do not include gmp.h for building host tools.
4871 2013-01-15  Richard Biener  <rguenther@suse.de>
4873         PR middle-end/55882
4874         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4875         account for bitpos when computing alignment.
4877 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
4879         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4880         (ix86_target_macros_internal): Likewise.
4882         * config/i386/i386.c (m_CORE2I7): Removed.
4883         (m_CORE_HASWELL): New macro.
4884         (m_CORE_ALL): Likewise.
4885         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4886         (initial_ix86_arch_features): Likewise.
4887         (processor_target_table): Initializations for Core avx2.
4888         (cpu_names): New names "core-avx2".
4889         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4890         PROCESSOR_CORE_HASWELL.
4891         (ix86_issue_rate): New case.
4892         (ia32_multipass_dfa_lookahead): Likewise.
4893         (ix86_sched_init_global): Likewise.
4895         * config/i386/i386.h (TARGET_HASWELL): New macro.
4896         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4897         (processor_type): New PROCESSOR_HASWELL.
4899 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
4901         PR tree-optimization/55955
4902         * tree-vect-loop.c (vectorizable_reduction): Give up early on
4903         *SHIFT_EXPR and *ROTATE_EXPR codes.
4905         PR tree-optimization/48766
4906         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4907         -ftrapv disable -fwrapv.
4909 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4911         PR target/55974
4912         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4913         etc. to 1 and not to __flash.
4914         Use LL suffix for __INT24_MAX__ with -mint8.
4915         Use ULL suffix for __UINT24_MAX__ with -mint8.
4917 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4919         * config/avr/avr-arch.h
4920         (struct base_arch_s): Use typedef avr_arch_t instead.
4921         (struct arch_info_s): Use typedef avr_arch_info_t instead.
4922         (struct mcu_type_s): Use typedef avr_mcu_t instead.
4923         * config/avr/avr.c: Same.
4924         * config/avr/avr-devices.c: Same.
4925         * config/avr/driver-avr.c: Same.
4926         * config/avr/gen-avr-mmcu-texi.c: Same.
4927         * config/avr/avr-mcus.def: Adjust comment.
4929 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
4931         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4932         * config/aarch64/iterators.md (VALLDI): New.
4934 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
4935             Andi Kleen  <ak@linux.intel.com>
4937         PR target/55948
4938         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4939         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4940         memmodel flag.
4942 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4944         * config/avr/avr-stdint.h: Remove trailing blanks.
4945         * config/avr/avr-log.h: Same.
4946         * config/avr/avr-arch.h: Same.
4947         * config/avr/avr-devices.c: Same.
4948         * config/avr/avr-dimode.md: Same.
4949         * config/avr/predicates.md: Same.
4950         * config/avr/avr-c.c: Same.  And fix typo.
4952         * config/avr/avr-protos.h: Same.  And:
4953         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4954         (init_cumulative_args): Rename to avr_init_cumulative_args.
4955         (expand_prologue): Rename to avr_expand_prologue.
4956         (expand_epilogue): Rename to avr_expand_epilogue.
4957         (adjust_insn_length): Rename to avr_adjust_insn_length.
4958         (notice_update_cc): Rename to avr_notice_update_cc.
4959         (final_prescan_insn): Rename to avr_final_prescan_insn.
4960         * config/avr/avr.c: Same.
4961         * config/avr/avr.h: Same.
4962         * config/avr/avr.md: Remove trailing blanks.
4963         (prologue): Use avr_expand_prologue.
4964         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4966 2013-01-14  Richard Biener  <rguenther@suse.de>
4968         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4969         verify_location, collect_subblocks): New functions.
4970         (verify_gimple_in_cfg): Verify that locations only reference
4971         BLOCKs in the functions BLOCK tree.
4973 2013-01-14  Richard Biener  <rguenther@suse.de>
4975         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4976         PHI argument.
4977         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4978         unshare reference.
4979         (insert_out_of_ssa_copy_on_edge): Likewise.
4980         (rewrite_close_phi_out_of_ssa): Likewise.
4981         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4982         debug expressions.
4983         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4984         propagated constants.
4985         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4986         can not be shared.
4988 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
4990         * config/avr/avr-modes.def: Add GPL copyright notice.
4992 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
4994         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4995         MEMMODEL_MASK to determine memory model.
4996         (atomic_store<mode>): Ditto from operands[2].
4997         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4999 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
5001         PR fortran/55935
5002         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
5003         (fold_gimple_assign): Don't call unshare_expr here.
5004         (fold_ctor_reference): Call unshare_expr.
5006 2013-01-13  Terry Guo  <terry.guo@arm.com>
5008         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
5009         * doc/fragments.texi: Document MULTILIB_REUSE.
5010         * gcc.c (multilib_reuse): New internal spec.
5011         (set_multilib_dir): Also search multilib from multilib_reuse.
5012         * genmultilib (tmpmultilib3): Refactor code.
5013         (tmpmultilib4): Ditto.
5014         (multilib_reuse): New multilib argument.
5016 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
5018         * Makefile.in: Update copyright.
5020 2013-01-12  Tom de Vries  <tom@codesourcery.com>
5022         PR middle-end/55890
5023         * calls.c (expand_call): Check if arg_nr is valid.
5025 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
5027         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
5028         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5029         documentation.  Add missing '__' in front of
5030         __builtin_ia32_packssdw256.
5032 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5034         PR target/55719
5035         * config/s390/s390.c (s390_preferred_reload_class): Do not return
5036         NO_REGS for larl operands.
5037         (s390_reload_larl_operand): Use s390_load_address instead of
5038         emit_move_insn.
5040 2013-01-11  Richard Biener  <rguenther@suse.de>
5042         * tree-cfg.c (verify_node_sharing_1): Split out from ...
5043         (verify_node_sharing): ... here.
5044         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
5046 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
5048         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
5049         Substitute TREECHECKING.
5050         * configure: Regenerate.
5051         * Makefile.in (TREECHECKING): New.
5053 2013-01-11  Richard Guenther  <rguenther@suse.de>
5055         PR tree-optimization/44061
5056         * tree-vrp.c (extract_range_basic): Compute zero as
5057         value-range for __builtin_constant_p of function parameters.
5059 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
5061         Update copyright years.
5063 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
5065         PR rtl-optimization/55672
5066         * lra-eliminations.c (mark_not_eliminable): Permit addition with
5067         const to be eliminable.
5069 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
5071         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
5072         * configure: Regenerate.
5074 2013-01-10  Richard Biener  <rguenther@suse.de>
5076         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
5078 2013-01-10  Richard Biener  <rguenther@suse.de>
5080         PR bootstrap/55792
5081         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
5082         locations for virtual PHI arguments.
5083         (rewrite_update_phi_arguments): Likewise.
5085 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
5087         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
5088         on to assembler.
5090 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
5092         PR tree-optimization/55921
5093         * tree-complex.c (expand_complex_asm): New function.
5094         (expand_complex_operations_1): Call it for GIMPLE_ASM.
5096 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5098         PR target/55718
5099         * config/s390/s390.c (s390_symref_operand_p)
5100         (s390_loadrelative_operand_p): Merge the two functions.
5101         (s390_check_qrst_address, print_operand_address): Add parameters
5102         to s390_loadrelative_operand_p invokation.
5103         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
5104         (s390_reload_larl_operand, s390_secondary_reload): Use
5105         s390_loadrelative_operand_p instead of s390_symref_operand_p.
5106         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
5108 2013-01-09  Mike Stump  <mikestump@comcast.net>
5110         * dse.c (record_store): Remove unnecessary assert.
5112 2013-01-09  Jan Hubicka  <jh@suse.cz>
5114         PR tree-optimization/55569
5115         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
5116         * cfgloop.h (scale_loop_profile): Likewise.
5118 2013-01-09  Jan Hubicka  <jh@suse.cz>
5120         PR lto/45375
5121         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
5122         functions.
5123         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
5125 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
5127         PR middle-end/55114
5128         * expr.h (maybe_emit_group_store): Declare.
5129         * expr.c (maybe_emit_group_store): New function.
5130         * builtins.c (expand_builtin_int_roundingfn): Call it.
5131         (expand_builtin_int_roundingfn_2): Likewise.
5133 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
5135         PR rtl-optimization/55829
5136         * lra-constraints.c (match_reload): Add code for absent output.
5137         (curr_insn_transform): Add code for reloads of matched inputs
5138         without output.
5140 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
5142         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
5143         attribute of movddup insn to DF.
5144         (*vec_interleave_lowv2df): Ditto.
5145         (vec_dupv2df): Ditto.
5147 2013-01-09  Jan Hubicka  <jh@suse.cz>
5149         PR tree-optimiation/55875
5150         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
5151         EVERY_ITERATION parameter.
5152         (number_of_iterations_exit): Check if exit is executed every iteration.
5153         (idx_infer_loop_bounds): Similarly here.
5154         (n_of_executions_at_most): Simplify
5155         to only test for cases where statement is dominated by the
5156         particular bound; handle correctly the "postdominance" test.
5157         (scev_probably_wraps_p): Use max loop iterations info
5158         as a global bound first.
5160 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
5161             Nick Clifton  <nickc@redhat.com>
5163         * config/v850/v850.md (cbranchsf4): New pattern.
5164         (cstoresf4): New pattern.
5165         (cbranchdf4): New pattern.
5166         (cstoredf4): New pattern.
5167         (movsicc): Disallow floating point comparisons.
5168         (cmpsf_le_insn): Fix order of operators.
5169         (cmpsf_lt_insn): Likewise.
5170         (cmpsf_eq_insn): Likewise.
5171         (cmpdf_le_insn): Likewise.
5172         (cmpdf_lt_insn): Likewise.
5173         (cmpdf_eq_insn): Likewise.
5174         (cmpsf_ge_insn): Use LE comparison.
5175         (cmpdf_ge_insn): Likewise.
5176         (cmpsf_gt_insn): Use LT comparison.
5177         (cmpdf_gt_insn): Likewise.
5178         (cmpsf_ne_insn): Delete pattern.
5179         (cmpdf_ne_insn): Delete pattern.
5180         * config/v850/v850.c (v850_gen_float_compare): Use
5181         gen_cmpdf_eq_insn for NE comparison.
5182         (v850_float_z_comparison_operator)
5183         (v850_float_nz_comparison_operator): Move from here ...
5184         * config/v850/predicates.md: ... to here.  Move GT and GE
5185         comparisons into v850_float_z_comparison_operator.
5186         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
5187         Delete prototype.
5188         (v850_float_nz_comparison_operator): Likewise.
5190 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5192         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
5193         with calls to gen_insvsi/gen_insvdi.
5195 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5197         * config/i386/i386.c (initial_ix86_tune_features): Set up
5198         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
5200 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
5201             Jakub Jelinek  <jakub@redhat.com>
5203         PR tree-optimization/48189
5204         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
5205         If nitercst is 0, don't predict the exit edge.
5207 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5209         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
5210         in asm_fprintf with reg_names.
5211         (aarch64_print_operand_address): Likewise.
5212         (aarch64_return_addr): Likewise.
5213         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
5215 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5217         * config/pa/pa.h (VAL_U6_BITS_P): Define.
5218         (INT_U6_BITS): Likewise.
5219         * config/pa/predicates.md (uint6_operand): New predicate.
5220         (shift5_operand, shift6_operand): Likewise.
5221         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
5222         arith32_operand.
5223         (lshrdi3): Use shift6_operand.
5224         (shrpsi4, shrpdi4): New insn patterns.
5225         (extzv): Delete expander.
5226         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
5227         predicates in unamed zero extract patterns.  Tighten common constraint.
5228         (extv): Delete expander.
5229         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
5230         predicates in unamed sign extract patterns.  Tighten common constraint.
5231         (insv): Delete expander.
5232         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
5233         predicates in unamed insert patterns.  Tighten common constraint.
5234         Change uint32_operand predicate to uint6_operand predicate in unamed
5235         DImode pattern to insert constant values of type 1...1xxxx.
5237 2013-01-04  Jan Hubicka  <jh@suse.cz>
5239         PR tree-optimization/55823
5240         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
5241         issue.
5243 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5244             Uros Bizjak  <ubizjak@gmail.com>
5246         PR rtl-optimization/55845
5247         * df-problems.c (can_move_insns_across): Stop scanning at
5248         volatile_insn_p source instruction or give up if
5249         across_from .. across_to range contains any volatile_insn_p
5250         instructions.
5252 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
5254         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
5255         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
5256         Declare.
5257         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5258         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5260 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5262         PR fortran/55341
5263         * asan.c (asan_clear_shadow): New function.
5264         (asan_emit_stack_protection): Use it.
5266 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
5268         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5269         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5270         with tab instead of space.
5272 2013-01-08  Nick Clifton  <nickc@redhat.com>
5274         * config/rl78/rl78.c (rl78_expand_prologue): Always select
5275         register bank 0 at the start of an interrupt handler.
5276         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5277         MDBH registers.
5279 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
5281         * config/aarch64/aarch64-simd.md
5282         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5283         (aarch64_simd_bsl): Likewise.
5284         (aarch64_vcond_internal<mode>): Likewise.
5285         (vcond<mode><mode>): Likewise.
5286         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5287         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5289 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
5291         * config/aarch64/aarch64-builtins.c
5292         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5294 2013-01-08  Martin Jambor  <mjambor@suse.cz>
5296         PR debug/55579
5297         * tree-sra.c (analyze_access_subtree): Return true also after
5298         potentially creating a debug-only replacement.
5300 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5302         PR middle-end/55890
5303         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5305         PR tree-optimization/54120
5306         * tree-vrp.c (range_fits_type_p): Don't allow
5307         src_precision < precision from signed vr to unsigned_p
5308         if vr->min or vr->max is negative.
5309         (simplify_float_conversion_using_ranges): Test can_float_p
5310         against CODE_FOR_nothing.
5312 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
5313             Richard Biener  <rguenther@suse.de>
5315         PR middle-end/55851
5316         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5317         types instead of just INTEGER_TYPE types.
5319 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
5321         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5322         TF_SIZE): Define.
5324 2013-01-07  Steve Ellcey  <sellcey@mips.com>
5326         PR target/42661
5327         * config/mips/mips.opt: Change mad to mmad to match documentation.
5329 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5331         PR target/55897
5332         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5333         .progmemx.data now.
5335 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5337         PR target/55897
5338         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5339         (avr_addrspace_t): Add .section_name field.
5340         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5341         array size.
5342         (avr_addrspace): Same.  Initialize .section_name.  Remove last
5343         NULL entry.  Put __memx into .progmemx.data.
5344         (progmem_section_prefix): Remove.
5345         (avr_asm_init_sections): No need to initialize progmem_section.
5346         (avr_asm_named_section): Use avr_addrspace[].section_name to get
5347         section name prefix.
5348         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
5349         retrieve the progmem section.
5350         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5351         boundary to run over avr_addrspace[].
5352         (avr_register_target_pragmas): Ditto.
5354 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
5356         * varasm.c (output_constant_def_contents): For asan_protect_global
5357         protected strings, adjust DECL_ALIGN if needed, before testing for
5358         anchored symbols.
5359         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5360         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
5361         normal decls.
5362         (output_object_block): For asan protected decls, emit asan padding
5363         after their contents.
5364         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5365         (asan_finish_file): Test it here instead.
5367 2013-01-07  Nick Clifton  <nickc@redhat.com>
5368             Matthias Klose  <doko@debian.org>
5369             Doug Kwan  <dougkwan@google.com>
5370             H.J. Lu  <hongjiu.lu@intel.com>
5372         PR driver/55470
5373         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5375         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5377         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5379         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5381         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5383 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5385         PR target/54461
5386         * doc/install.texi (Cross-Compiler-Specific Options): Document
5387         --with-avrlibc.
5389 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
5391         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5392         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5393         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5394         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5395         vqmovun_high_s64): Fix source operand number and update copyright.
5397 2013-01-07  Richard Biener  <rguenther@suse.de>
5399         PR middle-end/55890
5400         * gimple.h (gimple_call_builtin_p): New overload.
5401         * gimple.c (validate_call): New function.
5402         (gimple_call_builtin_p): Likewise.
5403         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5404         Use gimple_call_builtin_p.
5405         (find_func_clobbers): Likewise.
5406         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5407         (strlen_optimize_stmt): Likewise.
5409 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
5411         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5412         (vld1q_dup_*): Likewise.
5413         (vld1_*): Likewise.
5414         (vld1q_*): Likewise.
5415         (vld1_lane_*): Likewise.
5416         (vld1q_lane_*): Likewise.
5418 2013-01-07  Richard Biener  <rguenther@suse.de>
5420         * lto-streamer.h (LTO_minor_version): Bump to 2.
5422 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
5424         * config/aarch64/aarch64-protos.h
5425         (aarch64_const_double_zero_rtx_p): Rename to...
5426         (aarch64_float_const_zero_rtx_p): ...this.
5427         (aarch64_float_const_representable_p): New.
5428         (aarch64_output_simd_mov_immediate): Likewise.
5429         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5430         move immediate case.
5431         * config/aarch64/aarch64.c
5432         (aarch64_const_double_zero_rtx_p): Rename to...
5433         (aarch64_float_const_zero_rtx_p): ...this.
5434         (aarch64_print_operand): Allow printing of new constants.
5435         (aarch64_valid_floating_const): New.
5436         (aarch64_legitimate_constant_p): Check for valid floating-point
5437         constants.
5438         (aarch64_simd_valid_immediate): Likewise.
5439         (aarch64_vect_float_const_representable_p): New.
5440         (aarch64_float_const_representable_p): Likewise.
5441         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5442         (aarch64_output_simd_mov_immediate): New.
5443         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5444         (*movdf_aarch64): Likewise.
5445         * config/aarch64/constraints.md (Ufc): New.
5446         (Y): call aarch64_float_const_zero_rtx.
5447         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5449 2013-01-07  Richard Biener  <rguenther@suse.de>
5451         PR tree-optimization/55888
5452         PR tree-optimization/55862
5453         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5454         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5455         not if it is contained therein.
5457 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5459         * config/avr/t-avr: Typo.
5461 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
5463         PR55243
5464         * config/avr/t-avr: Don't automatically rebuild
5465         $(srcdir)/config/avr/t-multilib
5466         $(srcdir)/config/avr/avr-tables.opt
5467         $(srcdir)/doc/avr-mmcu.texi
5468         (avr-mcus): New phony target to build them on request.
5469         (s-avr-mlib, s-avr-mmcu-texi): Remove.
5470         * avr/avr-mcus.def: Adjust comments.
5472 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
5474         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5476 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5478         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5480 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
5482         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5484 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
5486         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5487         to generate profiling.
5488         * config/rs6000/aix64.h (LIB_SPEC): Same.
5490 2013-01-04  Andrew Pinski  <apinski@cavium.com>
5492         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5493         New function.
5494         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5496 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
5498         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5499         unconditionally.
5500         (ix86_expand_move): Ditto.
5501         (ix86_zero_extend_to_Pmode): Ditto.
5502         (ix86_expand_call): Ditto.
5503         (ix86_expand_special_args_builtin): Ditto.
5504         (ix86_expand_builtin): Ditto.
5506 2013-01-04  Richard Biener  <rguenther@suse.de>
5508         PR tree-optimization/55862
5509         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5510         translating them through PHI nodes.
5512 2013-01-04  Martin Jambor  <mjambor@suse.cz>
5514         PR tree-optimization/55755
5515         * tree-sra.c (sra_modify_assign): Do not check that an access has no
5516         children when trying to avoid producing a VIEW_CONVERT_EXPR.
5518 2013-01-04  Marek Polacek  <polacek@redhat.com>
5520         PR middle-end/55859
5521         * opts.c (default_options_optimization): Clarify error message.
5523 2013-01-04  Richard Biener  <rguenther@suse.de>
5525         PR middle-end/55863
5526         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5527         reassociation.
5529 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5531         PR target/53789
5532         * config/pa/pa.md (movsi): Revert previous change.
5533         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5534         references.
5536 2013-01-03  Richard Henderson  <rth@redhat.com>
5538         * config/i386/i386.c (ix86_expand_move): Always assign to op1
5539         after eliminating TLS symbols.
5541 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
5543         PR bootstrap/50167
5544         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5545         * graphite-poly.c (debug_gmp_value): Likewise.
5547 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
5549         PR target/55712
5550         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5551         selected code model, define __code_mode_small__, __code_model_medium__,
5552         __code_model_large__, __code_model_32__ or __code_model_kernel__.
5553         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5554         xchg temporary register with %k.  Declare temporary register as
5555         early clobbered.
5556         [__x86_64__]: For medium and large code models, preserve %rbx register.
5558 2013-01-03  Richard Biener  <rguenther@suse.de>
5560         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5561         (dump_subscript): Adjust.
5562         (finalize_ddr_dependent): Do not dump redundant info.
5563         (analyze_siv_subscript): Adjust.
5564         (subscript_dependence_tester): Likewise.
5565         (compute_affine_dependence): Likewise.
5567 2013-01-03  Richard Biener  <rguenther@suse.de>
5569         Revert
5570         2013-01-03  Richard Biener  <rguenther@suse.de>
5572         PR tree-optimization/55857
5573         * tree-vect-stmts.c (vectorizable_load): Do not setup
5574         re-alignment for invariant loads.
5576         2013-01-02  Richard Biener  <rguenther@suse.de>
5578         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5579         invariant load do not generate a vector load from the scalar location.
5581 2013-01-03  Richard Biener  <rguenther@suse.de>
5583         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5584         for not vectorizing.
5585         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5586         not build INDIRECT_REFs, call get_name once only.
5587         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
5588         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5590 2013-01-03  Richard Biener  <rguenther@suse.de>
5592         PR tree-optimization/55857
5593         * tree-vect-stmts.c (vectorizable_load): Do not setup
5594         re-alignment for invariant loads.
5596 2013-01-03  Richard Biener  <rguenther@suse.de>
5598         PR lto/55848
5599         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5600         prefer a built-in decl.
5602 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5604         * gcc.c (process_command): Update copyright notice dates.
5605         * gcov.c (print_version): Likewise.
5606         * gcov-dump.c (print_version): Likewise.
5608         PR rtl-optimization/55838
5609         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5610         iv0.step, iv1.step and step.
5612 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5613             Marc Glisse  <marc.glisse@inria.fr>
5615         PR tree-optimization/55832
5616         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5617         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5618         integer_{one,zero}_node.
5620 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
5622         PR debug/54402
5623         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5624         * var-tracking.c (reverse_op): Don't add reverse ops to
5625         VALUEs that have already
5626         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5628 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
5630         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5632 2013-01-02  Teresa Johnson  <tejohnson@google.com>
5634         * dumpfile.c (dump_loc): Print filename with location.
5635         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5636         new location_t parameter to emit complete unroll message with
5637         new dump framework.
5638         (canonicalize_loop_induction_variables): Compute loops location
5639         and pass to try_unroll_loop_completely.
5640         * loop-unroll.c (report_unroll_peel): New function.
5641         (peel_loops_completely): Use new dump format with location
5642         for main dumpfile message, and invoke report_unroll_peel on success.
5643         (decide_unrolling_and_peeling): Ditto.
5644         (decide_peel_once_rolling): Remove old dumpfile message subsumed
5645         by report_unroll_peel.
5646         (decide_peel_completely): Ditto.
5647         (decide_unroll_constant_iterations): Ditto.
5648         (decide_unroll_runtime_iterations): Ditto.
5649         (decide_peel_simple): Ditto.
5650         (decide_unroll_stupid): Ditto.
5651         * cfgloop.c (get_loop_location): New function.
5652         * cfgloop.h (get_loop_location): Declare.
5654 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
5656         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5657         NULL.
5659 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5661         PR middle-end/55198
5662         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5663         BLKmode objects when EXPAND_MEMORY is specified.
5665 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
5667         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5668         in loop predicate.
5669         (fold_builtin_cpu): Do not share cpu model decls across statements.
5671 2013-01-02  Jason Merrill  <jason@redhat.com>
5673         PR c++/55804
5674         * tree.c (build_array_type_1): Revert earlier change.
5676 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
5678         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5679         "cortex-a57".
5680         * config/aarch64/aarch64-tune.md: Re-generate.
5682 2013-01-02  Richard Biener  <rguenther@suse.de>
5684         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5685         invariant load do not generate a vector load from the scalar location.
5687 2013-01-02  Richard Biener  <rguenther@suse.de>
5689         PR bootstrap/55784
5690         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5691         * configure: Regenerate.
5693 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5695         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5696         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5697         (expand_builtin_int_roundingfn_2): Keep the original target around
5698         for the fallback case.
5700 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
5702         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5703         to be clear for sign changes.
5705 2013-01-01  Jan Hubicka  <jh@suse.cz>
5707         * ipa-inline-analysis.c: Fix formatting.
5709 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
5711         PR tree-optimization/55831
5712         * tree-vect-loop.c (get_initial_def_for_induction): Use
5713         gsi_after_labels instead of gsi_start_bb.
5715 Copyright (C) 2013 Free Software Foundation, Inc.
5717 Copying and distribution of this file, with or without modification,
5718 are permitted in any medium without royalty provided the copyright
5719 notice and this notice are preserved.