OSDN Git Service

PR target/49868
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
2
3         PR target/49868
4         PR target/50887
5         * doc/extend.texi (Named Address Spaces): Split into subsections.
6         (AVR Named Address Spaces): New subsection.
7         (M32C Named Address Spaces): New subsection.
8         (RL78 Named Address Spaces): New subsection.
9         (SPU Named Address Spaces): New subsection.
10         (Variable Attributes): New anchor "AVR Variable Attributes".
11         (AVR Variable Attributes): Rewrite and avoid wording
12         "address space" in this context.
13         * doc/invoke.texi (AVR Options): Rewrite and add documentation
14         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
15         (AVR Built-in Macros): New subsubsection therein.
16         * doc/md.texi (AVR constraints): Remove "C04", "R".
17
18 2012-01-20  Richard Guenther  <rguenther@suse.de>
19
20         PR tree-optimization/51903
21         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
22         when removing stmts.
23
24 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
25
26         PR target/50313
27         * config/arm/arm.c (arm_load_pic_register): Use
28         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
29         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
30         (arm_pic_static_addr): Likewise.
31         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
32         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
33         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
34         (pic_load_addr_unified): New.
35
36 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
37
38         PR target/51106
39         * function.c (instantiate_virtual_regs_in_insn): Use
40         delete_insn_and_edges when removing a wrong asm insn.
41
42 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
43
44         PR rtl-optimization/40761
45         * ira-int.h (struct ira_loop_tree_node): Add comment for member
46         loop.  Add new member loop_num.
47         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
48         (ira_build): Remove the parameter.
49
50         * ira.c (ira_print_disposition): Use loop_num instead of
51         loop->num.
52         (ira.c): Do not build CFG loops for one region allocation.  Remove
53         argument from ira_build call.
54
55         * ira-build.c (init_loop_tree_node): New function.
56         (create_loop_tree_nodes): Use it.  Separate the case when CFG
57         loops are not built.
58         (more_one_region_p): Check current_loops.
59         (finish_loop_tree_nodes): Separate the case when CFG loops are not
60         built.
61         (add_loop_to_tree): Process loop equal to NULL too.
62         (form_loop_tree): Separate the case when CFG loops are not built.
63         Use explicitly number for the root.
64         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
65         an assertion.
66         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
67         instead of loop->num.
68         (mark_loops_for_removal): Ditto.  Use loop_num instead of
69         loop->num.
70         (mark_all_loops_for_removal): Ditto.
71         (remove_unnecessary_regions): Separate the case when CFG loops
72         are not built.
73         (ira_build): Remove the parameter.  Use explicit number of regions
74         when CFG loops are not built.
75
76         * ira-color.c (print_loop_title): Separate the case for the root
77         node.  Use loop_num instead of loop->num.
78         (move_spill_restore): Use loop_num instead of loop->num.
79
80         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
81         (change_loop): Ditto.
82         (change_loop): Use loop_num instead of loop->num.
83
84         * ira-lives.c (process_bb_node_lives): Ditto.
85
86         * ira-costs.c (print_allocno_costs, find_costs_and_classes):
87         Ditto.
88
89         * ira-conflicts.c (print_allocno_conflicts): Ditto.
90
91 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
92
93         PR libmudflap/40778
94         * tree-mudflap.c (mf_artificial): New function.
95         (execute_mudflap_function_ops, execute_mudflap_function_decls,
96         mx_register_decls, mudflap_enqueue_decl): Use it.
97
98         PR target/51876
99         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
100         numbers in the insn pattern.
101
102 2012-01-19  Michael Matz  <matz@suse.de>
103
104         PR tree-optimization/46590
105         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
106         use it in remembering which conflicts we already created.
107         (add_scope_conflicts): Adjust call to above, (de)allocate helper
108         bitmap.
109
110 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
111
112         PR lto/51280
113         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
114         (merge_and_complain): Same.
115
116 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
117
118         PR bootstrap/50237
119         * config/initfini-array.h: Guard content of the header
120         with #ifdef HAVE_INITFINI_ARRAY.
121         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
122         Add initfini-array.h to tm_file here.
123         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker
124         test.
125         * config.gcc: Don't add initfini-array.h to tm_file here.
126         * configure: Regenerated.
127
128 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
129
130         PR rtl-optimization/51505
131         * df-problems.c (df_kill_notes): New parameter live. Update comment.
132         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
133         (df_note_bb_compute): Update the call to df_kill_notes. 
134
135 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
136
137         * trans-mem.c (requires_barrier): Remove call to is_global_var.
138
139 2012-01-18  Richard Guenther  <rguenther@suse.de>
140
141         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
142         of conversions to void *.
143
144 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
145             Richard Sandiford  <rdsandiford@googlemail.com>
146
147         PR middle-end/50325
148         PR middle-end/51192
149         * optabs.h (simplify_expand_binop): Declare.
150         * optabs.c (simplify_expand_binop): Make global.
151         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
152         endian targets if the source cannot be exactly covered by word
153         mode chunks.
154
155 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
156
157         PR bootstrap/51872
158         * hard-reg-set.h (struct hard_reg_set_container): New type.
159         * target.h (struct hard_reg_set_container): Forward declare.
160         * target.def (set_up_by_prologue): New target hook.
161         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
162         * doc/tm.texi: Regenerated.
163         * function.c (thread_prologue_and_epilogue_insns): Change
164         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
165         Call targetm.set_up_by_prologue on it.
166         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
167         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
168
169 2012-01-17  Nick Clifton  <nickc@redhat.com>
170
171         * config/rx/rx.c (rx_can_use_simple_return): New function.
172         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
173         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
174
175 2012-01-17  Richard Guenther  <rguenther@suse.de>
176
177         PR middle-end/51782
178         * expr.c (expand_assignment): Take address-space information
179         from the address operand of MEM_REF and TARGET_MEM_REF.
180         (expand_expr_real_1): Likewise.
181
182 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
183
184         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
185         reload dump is requested.
186
187 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
188
189         PR other/51165
190         * trans-mem.c (requires_barrier): Call may_be_aliased.
191
192 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
193
194         PR tree-optimization/51877
195         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
196         call arguments and fndecls compare equal, instead return false if they
197         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
198         both SSA_NAMEs that are valueized the same, or they satisfy
199         operand_equal_p.
200
201 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
202
203         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
204         Solaris 11+.
205         * configure: Regenerate.
206
207 2012-01-16  Jan Hubicka  <jh@suse.cz>
208
209         PR c/12245
210         PR c++/14179
211         * convert.c (convert_to_integer): Use fold_convert for
212         converting an INTEGER_CST to integer type.
213
214 2012-01-16  Jason Merrill  <jason@redhat.com>
215
216         PR c++/14179
217         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
218
219 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
220
221         PR bootstrap/51860
222         * config/s390/s390.c (s390_chunkify_start): Don't skip
223         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
224         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
225         If insn is followed by NOTE_INSN_VAR_LOCATION or
226         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
227         Don't use location of note insns.
228
229         PR tree-optimization/51865
230         * tree-inline.c (tree_function_versioning): Call remap_decl
231         on DECL_RESULT whenever it has VOID_TYPE_P type.
232
233 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
234
235         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
236         for calls to locally-binding MIPS16 functions if only the return
237         type uses float regs.
238
239 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
240             Richard Sandiford  <rdsandiford@googlemail.com>
241
242         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
243         (SYMBOL_32_HIGH): Likewise.
244         (mips_output_tls_reloc_directive): Declare.
245         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
246         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
247         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
248         (mips_lo_relocs, mips_hi_relocs): Make extern.
249         (mips16_stub_function): Move up file.
250         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
251         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
252         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
253         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead
254         of SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1
255         if it's false.
256         (mips_get_tp): Add MIPS16 support.
257         (mips_legitimize_tls_address): Remove MIPS16 sorry().
258         Generalize DTPREL and TPREL handling.
259         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
260         Add MIPS16 TLS support.
261         (mips_output_tls_reloc_directive): New function.
262         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
263         * config/mips/predicates.md (symbolic_operand_with_high)
264         (tls_reloc_operand): New predicates.
265         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
266         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
267         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
268         (*unshifted_high): New instruction.  Use it for MIPS16
269         high splitter.
270         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
271         (*tls_get_tp_mips16_call_<mode>): Likewise.
272
273 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
274
275         PR rtl-optimization/51821
276         * recog.c (peep2_find_free_register): Determine clobbered registers
277         from insn pattern.
278
279 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
280
281         PR target/50925
282         * config/avr/avr-protos.h: Revert change of 2012-01-09.
283         * config/avr/avr.c: Likewise.
284         * config/avr/avr.h: Likewise.
285
286 2012-01-13  Ian Lance Taylor  <iant@google.com>
287
288         PR c++/50012
289         * tree.h (TYPE_QUALS): Add cast to int.
290         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
291
292 2012-01-13  Ian Lance Taylor  <iant@google.com>
293
294         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
295         comparing param_index to VEC_length result.
296
297 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
298
299         * c-decl.c: Do not include tree-mudflap.h
300         * tree-optimize.c: Likewise.
301         * Makefile.in: Update dependencies.
302
303 2012-01-13  Richard Guenther  <rguenther@suse.de>
304
305         PR middle-end/8081
306         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
307         variable-sized result always use RSO.
308
309 2012-01-12  DJ Delorie  <dj@redhat.com>
310
311         * cfgexpand.c (convert_debug_memory_address): Allow any valid
312         pointer type, not just the default pointer type.
313
314 2012-01-09  Richard Henderson  <rth@redhat.com>
315             Denis Chertykov  <chertykov@gmail.com>
316
317         PR target/50925
318         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
319         * config/avr/avr.c (avr_can_eliminate): Simplify.
320         (avr_initial_elimination_offset): Likewise.
321         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
322         (expand_epilogue): Likewise.
323         (avr_legitimize_address): Gut.
324         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
325         (avr_hard_regno_nregs): New.
326         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
327         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
328         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
329         add soft frame pointer.
330         (CALL_USED_REGISTERS): Likewise.
331         (REG_CLASS_CONTENTS): Likewise.
332         (REGISTER_NAMES): Likewise.
333         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
334         (HARD_FRAME_POINTER_REGNUM): New.
335         (FRAME_POINTER_REGNUM): Use soft frame pointer.
336         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
337         remove the HARD_FRAME_POINTER self-elimination.
338
339 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
340
341         PR target/51756
342         * config/avr/avr.c (avr_encode_section_info): Test for absence of
343         DECL_EXTERNAL when checking for initializers of progmem variables.
344
345 2012-01-12  Ira Rosen  <irar@il.ibm.com>
346
347         PR tree-optimization/51799
348         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
349         that the last operation is a type demotion.
350
351 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
352
353         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
354         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
355
356 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
357
358         PR bootstrap/51796
359         * combine.c (distribute_notes): If i3 is a noreturn call,
360         allow old_size to be equal to args_size and make sure the
361         noreturn call gets REG_ARGS_SIZE note.
362         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
363         on noreturn calls even when the delta is 0.
364
365 2012-01-11  Nathan Sidwell  <nathan@acm.org>
366
367         * gcov.c (STRING_SIZE): Remove.
368         (generate_results): Erase annotations for source files with no
369         coverage information.
370         (read_line): New.
371         (output_lines): Use it.
372
373 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
374
375         * gimple.h (gimplify_body): Remove first argument.
376         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
377         pointer set here, instead just pass DATA to walk_tree.
378         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
379         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
380         (unvisit_body): Likewise, but with unmark_visited.
381         (gimplify_body): Remove BODY_P argument and adjust.
382         (gimplify_function_tree): Adjust call to gimplify_body.
383         * omp-low.c (finalize_task_copyfn): Likewise.
384
385 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
386
387         * tree.h (build_function_decl_skip_args): Add boolean parameter.
388         (build_function_type_skip_args): Delete.
389         * tree.c (build_function_type_skip_args): Make static and add
390         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
391         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
392         pass it to build_function_type_skip_args.
393         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
394         (tree_function_versioning): Likewise.
395         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
396         build_function_decl_skip_args.
397         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
398         and pass it to build_function_decl_skip_args/tree_function_versioning.
399         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
400         * ipa-inline-transform.c (save_inline_function_body): Likewise.
401         * trans-mem.c (ipa_tm_create_version): Likewise.
402         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
403         * tree-inline.c (declare_return_variable): Remove always-true test.
404         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
405         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
406         * ipa-split.c (split_function): Skip the return value for the split
407         part if it doesn't return.
408
409 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
410
411         PR tree-optimization/49642
412         * ipa-split.c (forbidden_dominators): New variable.
413         (check_forbidden_calls): New function.
414         (dominated_by_forbidden): Likewise.
415         (consider_split): Check for forbidden dominators.
416         (execute_split_functions): Initialize and free forbidden
417         dominators info; call check_forbidden_calls.
418
419 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
420
421         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
422
423 2012-01-11  Nick Clifton  <nickc@redhat.com>
424
425         * config/rx/rx.md (return): Define pattern.
426
427 2012-01-11  Richard Guenther  <rguenther@suse.de>
428
429         * doc/extend.texi (malloc attribute): Adjust according to
430         implementation.
431
432 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
433             Patrick Marlier  <patrick.marlier@gmail.com>
434
435         PR middle-end/51516
436         * trans-mem.c (get_cg_data): Traverse aliases if requested.
437         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
438         (ipa_tm_note_irrevocable): Same.
439         (ipa_tm_scan_irr_block): Same.
440         (ipa_tm_decrement_clone_counts): Same.
441         (ipa_tm_scan_irr_function): Same.
442         (ipa_tm_create_version_alias): Same.
443         (ipa_tm_create_version): Same.
444         (ipa_tm_transform_calls_redirect): Same.
445         (ipa_tm_transform_calls): Same.
446         (ipa_tm_transform_transaction): Same.
447         (ipa_tm_execute): Same.
448
449 2012-01-10  Richard Guenther  <rguenther@suse.de>
450
451         PR middle-end/51806
452         * opts.c (common_handle_option): Handle -Werror.
453
454 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
455
456         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
457         operand number.
458
459 2012-01-10  Jason Merrill  <jason@redhat.com>
460
461         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
462         information.
463
464 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
465
466         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
467         supports R_386_TLS_GD_PLT reloc.
468         (gcc_cv_as_ix86_tlsldmplt): Check if linker
469         supports R_386_TLS_LDM_PLT reloc.
470         * configure: Regenerate.
471         * config.in: Regenerate.
472
473 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
474
475         PR target/49868
476         Extend __pgmx semantics to linearize memory.
477         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
478         determine if code comes inline or from libgcc.
479         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
480         (movmem_qi, movmem_qi): Set constraint #2 to "n".
481         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
482         (movmemx_qi, movmemx_hi): New insns.
483         (xload_<mode>_libgcc): Rewrite to new insn condition.
484         (xload_<mode>): Remove insns.
485         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
486         cases that don't satisfy avr_xload_libgcc_p().
487         (avr_addr_space_convert): Allow converting in any direction.
488         (avr_addr_space_subset_p): Return always true.
489         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
490         (avr_emit_movmemhi): Ditto.
491         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
492         (avr_out_movmem): Ditto.
493         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
494         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
495         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
496         (avr_encode_section_info): Encode 'progmem' in symbol flags.
497         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
498
499 2012-01-10  Richard Guenther  <rguenther@suse.de>
500
501         PR tree-optimization/50913
502         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
503         Require data-refs to be representable by Graphite with respect
504         to any loop nest.
505
506 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
507
508         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
509         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
510
511 2012-01-10  Tom de Vries  <tom@codesourcery.com>
512
513         PR rtl-optimization/51271
514         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
515         handling annulled branch.
516
517 2012-01-10  Richard Henderson  <rth@redhat.com>
518
519         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
520         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
521         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
522         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
523         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
524         arm_expand_vec_perm_const): New.
525         * config/arm/arm-protos.h: Update.
526         * config/arm/neon.md (UNSPEC_VCONCAT): New.
527         (*neon_vswp<VDQX>): New.
528         (neon_vcombine<VDX>): Use neon_split_vcombine.
529         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
530         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
531         (vec_perm<VE>): New.
532
533 2012-01-10  Richard Henderson  <rth@redhat.com>
534
535         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
536         use it if reload_completed.
537         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
538         arm_output_asm_insn, arm_process_output_memory_barrier,
539         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
540         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
541         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
542         arm_process_output_sync_insn, arm_output_sync_insn,
543         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
544         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
545         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
546         (emit_unlikely_jump): New.
547         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
548         (arm_split_atomic_op): New.
549         * config/arm/arm-protos.h: Update.
550         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
551         (struct arm_sync_generator): Remove.
552         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
553         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
554         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
555         (VUNSPEC_LL, VUNSPEC_SC): New.
556         (sync_result, sync_memory, sync_required_value, sync_new_value,
557         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
558         (attr length): Don't use arm_sync_loop_insns.
559         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
560         (movsfcc, movdfcc): Likewise.
561         * config/arm/constraints.md (Ua): New.
562         * config/arm/prediates.md (mem_noofs_operand): New.
563         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
564         (sync_clobber, sync_t2_reqd): Remove.
565         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
566         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
567         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
568         (arm_sync_compare_and_swap<SIDI>): Remove.
569         (arm_sync_compare_and_swap<NARROW>): Remove.
570         (arm_sync_lock_test_and_set<SIDI>): Remove.
571         (arm_sync_lock_test_and_set<NARROW>): Remove.
572         (arm_sync_new_<syncop><SIDI>): Remove.
573         (arm_sync_new_<syncop><NARROW>): Remove.
574         (arm_sync_new_nand<SIDI>): Remove.
575         (arm_sync_new_nand<NARROW>): Remove.
576         (arm_sync_old_<syncop><SIDI>): Remove.
577         (arm_sync_old_<syncop><NARROW>): Remove.
578         (arm_sync_old_nand<SIDI>): Remove.
579         (arm_sync_old_nand<NARROW>): Remove.
580         (*memory_barrier): Merge arm_output_memory_barrier.
581         (atomic_compare_and_swap<QHSD>): New.
582         (atomic_compare_and_swap<NARROW>_1): New.
583         (atomic_compare_and_swap<SIDI>_1): New.
584         (atomic_exchange<QHSD>): New.
585         (cas_cmp_operand, cas_cmp_str): New.
586         (atomic_op_operand, atomic_op_str): New.
587         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
588         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
589         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
590         (arm_load_exclusive<NARROW>): New.
591         (arm_load_exclusivesi, arm_load_exclusivedi): New.
592         (arm_store_exclusive<QHSD>): New.
593
594 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
595
596         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
597         reload patterns if -mvsx-scalar-memory.
598
599         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
600         generated, even -mno-vsx-scalar-double was used.
601         (vsx_xscvdpsp_scalar): Likewise.
602         (vsx_xscvspdp_scalar2): Likewise.
603
604 2012-01-09  Tom de Vries  <tom@codesourcery.com>
605             Andrew Pinski  <apinski@cavium.com>
606
607         PR debug/51471
608         * reorg.c (fill_slots_from_thread): Don't speculate
609         frame-related insns.
610
611 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
612
613         * sched-int.h (bb_note): Move to...
614         * basic-block.h: ...here.
615         * haifa-sched.c (bb_note): Move to...
616         * cfgrtl.c: ...here.
617         * function.c (next_block_for_reg): New function.
618         (move_insn_for_shrink_wrap): Likewise.
619         (prepare_shrink_wrap): Rewrite to use the above.
620
621 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
622
623         * gimple.c (is_gimple_non_addressable): Remove.
624         * gimple.h: Remove is_gimple_non_addressable.
625         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
626         is_gimple_non_addressable.
627         * trans-mem.c (expand_assign_tm): Same.
628
629 2012-01-09  Richard Guenther  <rguenther@suse.de>
630
631         PR tree-optimization/51775
632         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
633         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
634
635 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
636
637         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
638         tuning parameters.
639         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
640
641 2012-01-09  Richard Guenther  <rguenther@suse.de>
642
643         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
644
645 2012-01-08  Jan Hubicka  <jh@suse.cz>
646
647         PR tree-optimize/51680
648         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
649         on when known_vals needs to be computed; cleanup.
650
651 2012-01-08  Jan Hubicka  <jh@suse.cz>
652
653         PR tree-optimize/51694
654         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
655
656 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
657
658         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
659         for -std=c++98 and -std=c++11 too.
660
661 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
662
663         * cfgloop.c (cancel_loop): Add free() of bbs array.
664
665 2012-01-07  Jan Hubicka  <jh@suse.cz>
666
667         PR tree-optimization/51600
668         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
669         that benefits small functions.
670
671 2012-01-07  Jan Hubicka  <jh@suse.cz>
672
673         * ipa-inline.c (want_inline_small_function_p): Fix formating.
674
675 2012-01-07  Jan Hubicka  <jh@suse.cz>
676
677         PR tree-optimization/51680
678         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
679         whose inlining reduce unit size.
680
681 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
682
683         PR bootstrap/51725
684         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
685         Add canonical node to containing_mem chain after the non-canonical
686         one, even if there weren't any locs to propagate.
687         (remove_useless_values): Keep only canonical values.
688         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
689         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
690         canonicalize mem_chain elements that are not discarded.
691
692 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
693
694         PR target/47333
695         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
696         before emitting functions.
697
698         PR gcov-profile/50127
699         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
700         clear_aux_for_blocks.
701
702 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
703
704         PR debug/51746
705         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
706
707 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
708
709         * c-decl.c (ext_block): Moved up.
710         (collect_all_refs, for_each_global_decl): Take ext_block into account.
711
712 2012-01-06  Han Shen  <shenhan@google.com>
713
714         Translate built-in include paths for sysroot.
715         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
716         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
717
718         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
719         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
720
721         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
722         control whether sysroot should be prepended to gxx include dir.
723
724         * configure: Regenerate.
725
726 2012-01-06  Torvald Riegel  <triegel@redhat.com>
727
728         PR rtl-optimization/51771
729         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
730         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
731
732 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
733
734         PR tree-optimization/51315
735         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
736         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
737
738 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
739
740         PR target/51681
741         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
742         for shrp pattern.  Correctly handle and fixup shift variable.
743         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
744
745 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
746
747         PR debug/51762
748         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
749         note when !ACCUMULATE_OUTGOING_ARGS.
750
751 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
752
753         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
754         condition.
755         (extract_range_from_unary_expr_1): Avoid useless computations.
756
757 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
758
759         PR rtl-optimization/51767
760         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
761         of jump_block and add an extra edge for degenerated asm gotos.
762
763         PR middle-end/51768
764         * stmt.c (check_unique_operand_names): Don't ICE during error
765         reporting if i is from labels chain.
766
767         PR middle-end/44777
768         * profile.c (branch_prob): Split bbs that have exit edge
769         and need a fake entry edge too.
770
771 2012-01-05  Jan Hubicka  <jh@suse.cz>
772
773         PR middle-end/49710
774         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
775         unlooping loops.
776
777 2012-01-05  Richard Guenther  <rguenther@suse.de>
778
779         PR lto/50490
780         * tree-streamer-out.c (write_ts_optimization): New function.
781         (streamer_write_tree_body): Call it.
782         * tree-streamer-in.c (lto_input_ts_optimization): New function.
783         (streamer_read_tree_body): Call it.
784         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
785
786 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
787
788         PR middle-end/51761
789         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
790         * gimplify.c (gimplify_cleanup_point_expr): Save and set
791         in_cleanup_point_expr before gimplify_stmt call and restore it
792         afterwards.
793         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
794         in_cleanup_point_expr is false.
795
796 2012-01-05  Richard Guenther  <rguenther@suse.de>
797
798         PR middle-end/51764
799         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
800         to c.opt.
801         * toplev.c (process_options): Reject combining mudflap and LTO.
802         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
803
804 2012-01-05  Richard Guenther  <rguenther@suse.de>
805
806         PR tree-optimization/51760
807         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
808         not VARYING.
809         (bit_value_unop): Handle UNDEFINED operands.
810         (bit_value_binop): Likewise.
811
812 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
813
814         * config/avr/avr.c (avr_replace_prefix): Remove.
815         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
816         (avr_asm_function_rodata_section): Ditto.
817         (avr_asm_select_section): Ditto.
818
819 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
820
821         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
822         insertion.
823
824 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
825
826         PR bootstrap/51648
827         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
828         calls that have any non-fake successor edges.
829
830         PR debug/51746
831         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
832
833 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
834
835         PR tree-optimization/51624
836         * tree-sra.c (build_ref_for_model): When replicating a chain of
837         COMPONENT_REFs, stop as soon as the offset would become negative.
838
839 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
840
841         PR debug/51695
842         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
843         in .debug_loc on the floor.
844
845 2012-01-04  Andrew Pinski  <apinski@cavium.com>
846
847         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
848
849 2012-01-04  Andrew Pinski  <apinski@cavium.com>
850             Adam Nemet  <anemet@caviumnetworks.com>
851
852         * config/mips/mips.md (size): Add SI and DI.
853         (SIZE): New mode attribute.
854         (U): New code attribute.
855         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
856         (mips_lbux_<mode>): Delete.
857         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
858         (mips_lhx): Use gen_mips_lhx_extsi.
859         (mips_lhx_<mode>): Delete.
860         (mips_lwx): Delete.
861         (mips_l<size>x): New expand.
862         (mips_lwx_<mode>): Delete.
863         (mips_l<GPR:size>x_<P:mode>): New pattern.
864         (*mips_lw<u>x_<P:mode>_ext): Likewise.
865         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
866         * config/mips/mips.c (mips_lx_address_p): New function.
867         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
868         (dsp64): New availability predicate.
869         (mips_builtins): Add an entry for __builtin_mips_ldx.
870         * config/mips/mips.h (ISA_HAS_LBX): New define.
871         (ISA_HAS_LBUX): Likewise.
872         (ISA_HAS_LHX): Likewise.
873         (ISA_HAS_LHUX): Likewise.
874         (ISA_HAS_LWX): Likewise.
875         (ISA_HAS_LWUX): Likewise.
876         (ISA_HAS_LDX): Likewise.
877         * doc/extend.texi (__builtin_mips_ldx): Document.
878
879 2012-01-04  Tristan Gingold  <gingold@adacore.com>
880
881         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
882         when long pointers are used.
883         * config.build (*-*-*vms*): Handle all OpenVMS targets.
884         (alpha64-dec-*vms*, alpha*-dec-*vms*)
885         (ia64-hp-*vms*): Remove.
886         * config/vms/xm-vms64.h: Delete.
887
888 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
889
890         PR middle-end/51472
891         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
892
893 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
894
895         * opts.c (finish_options): Remove duplicate sorry.
896
897 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
898
899         PR middle-end/51696
900         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
901         correctly.
902
903 2012-01-04  Richard Guenther  <rguenther@suse.de>
904
905         PR middle-end/51750
906         * tree.c (size_low_cst): New function.
907         * tree.h (size_low_cst): Declare.
908         * fold-const.c (fold_comparison): Use it to extract the low
909         part of the POINTER_PLUS_EXPR offset.
910
911 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
912
913         Fix clearing ZERO_REG
914         * config/avr/avr.md (cc): Add alternative "ldi".
915         (movqi_insn): Use it in cc attribute.
916         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
917         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
918         (output_reload_insisf): Use ZERO_REG to pre-clear register.
919
920 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
921
922         * configure: Regenerate.
923
924 2012-01-04  Richard Guenther  <rguenther@suse.de>
925
926         PR tree-optimization/49651
927         * tree-ssa-structalias.c (type_can_have_subvars): New function.
928         (var_can_have_subvars): Use it.
929         (get_constraint_for_1): Only consider subfields if there can be any.
930
931 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
932
933         PR bootstrap/51725
934         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
935         to its new canonical_cselib_val and the cselib_val was in
936         first_containing_mem chain, but the canonical_cselib_val was not,
937         add the latter into the chain.
938         (cselib_invalidate_mem): Compare canonical_cselib_val of
939         addr_list chain elt with v.
940
941         PR pch/51722
942         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
943         dwarf2out_undef): Allocate e.info using ggc_strdup instead
944         of xstrdup.
945         (output_macinfo_op): Don't ggc_strdup fd->filename.
946         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
947         then ggc_strdup it.  Don't free inc->info or cur->info.
948         (output_macinfo): Don't free ref->info or file->info.
949
950 2012-01-03  Ira Rosen  <irar@il.ibm.com>
951
952         PR tree-optimization/51269
953         * tree-vect-loop-manip.c (set_prologue_iterations): Make
954         first_niters a pointer.
955         (slpeel_tree_peel_loop_to_edge): Likewise.
956         (vect_do_peeling_for_loop_bound): Update call to
957         slpeel_tree_peel_loop_to_edge.
958         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
959         here.  Remove it from the parameters list.
960         (vect_do_peeling_for_alignment): Update calls and compute
961         wide_prolog_niters.
962
963 2012-01-03  Richard Guenther  <rguenther@suse.de>
964
965         PR tree-optimization/51070
966         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
967         Properly handle calls.
968
969 2012-01-03  Richard Guenther  <rguenther@suse.de>
970
971         PR tree-optimization/51692
972         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
973         the LHS of allocation stmts.
974
975 2012-01-03  Olivier Hainque  <hainque@adacore.com>
976
977         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
978
979 2012-01-03  Olivier Hainque  <hainque@adacore.com>
980
981         * collect2.c (main): In AIX specific computations for vector
982         insertions, use CONST_CAST2 to cast from char ** to const char **.
983
984 2012-01-03  Richard Guenther  <rguenther@suse.de>
985
986         PR debug/51650
987         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
988         the context of a limbo DIE when it does not already exist.
989
990 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
991
992         PR tree-optimization/51719
993         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
994         but direct call is, clear direct call's lhs and don't add fallthrough
995         edge from dcall_bb to join_bb and PHIs.
996
997 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
998
999         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
1000         the instructions emitted by the pattern.
1001         ("*TDC_insn_<mode>"): Add comment.
1002
1003 2012-01-03  Richard Guenther  <rguenther@suse.de>
1004
1005         PR middle-end/51730
1006         * fold-const.c (fold_comparison): Properly canonicalize
1007         tree offset and HOST_WIDE_INT bit position.
1008
1009 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
1010
1011         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
1012         operands for extzv pattern.
1013
1014 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1015
1016         PR bootstrap/51725
1017         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
1018         on mem_elt first.
1019
1020 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
1021
1022         * doc/invoke.texi (-flto and related options): Copy-edit.
1023
1024 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1025
1026         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
1027
1028 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1029
1030         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
1031         New patterns.
1032
1033 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1034
1035         * expr.h (move_by_pieces_ninsns): Declare.
1036         * expr.c (move_by_pieces_ninsns): Make external.
1037         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
1038         (mips_store_by_pieces_p): Likewise.
1039         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
1040         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
1041         * config/mips/mips.c (mips_move_by_pieces_p): New function.
1042         (mips_store_by_pieces_p): Likewise.
1043
1044 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1045
1046         * passes.c (register_one_dump_file): Free full_name.
1047
1048         * reload1.c (reload): Don't allocate reg_max_ref_width here.
1049         (calculate_elim_costs_all_insns): Free offsets_at and
1050         offsets_known_at at the end and clear the pointers.
1051
1052 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1053
1054         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
1055         this option introduced in r180739.
1056
1057 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1058
1059         PR target/51345
1060         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
1061         (tmake_file target=avr): Add avr/t-multilib.
1062
1063         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
1064         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
1065         * config/avr/genmultilib.awk: New file.
1066         * config/avr/t-multilib: New auto-generated file.
1067         * config/avr/multilib.h: New auto-generated file.
1068         * config/avr/t-avr (AVR_MCUS): New variable.
1069         (genopt.sh): Use it.
1070         (s-mlib): Depend on t-multilib.
1071         (t-multilib, multilib.h): New dependencies.
1072         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
1073         (MULTILIB_OPTIONS): Remove.
1074         (MULTILIB_MATCHES): Remove.
1075         (MULTILIB_DIRNAMES): Remove.
1076         (MULTILIB_EXCEPTIONS): Remove:
1077         * config/avr/genopt.sh: Don't use hard coded file name;
1078         pass AVR_MCUS from t-avr instead.
1079
1080 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1081
1082         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
1083
1084 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1085
1086         Implement light-weight DImode support.
1087         * config/avr/avr-dimode.md: New file.
1088         * config/avr/avr.md: Include it.
1089         (adjust_len): Add plus64, compare64.
1090         (HIDI): Remove code iterator.
1091         (code_stdname): New code attribute.
1092         (rotx, rotsmode): Remove DI.
1093         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
1094         as code iterator.
1095         * config/avr/avr-protos.h (avr_have_dimode): New.
1096         (avr_out_plus64, avr_out_compare64): New.
1097         * config/avr/avr.c (avr_out_compare): Handle DImode.
1098         (avr_have_dimode): New variable definition and initialization.
1099         (avr_out_compare64, avr_out_plus64): New functions.
1100         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
1101         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
1102         (avr_compare_pattern): Skip DImode comparisons.
1103
1104 2012-01-02  Revital Eres  <revital.eres@linaro.org>
1105
1106         * ddg.c (def_has_ccmode_p): New function.
1107         (add_cross_iteration_register_deps,
1108         create_ddg_dep_from_intra_loop_link): Call it.
1109
1110 2012-01-02  Richard Guenther  <rguenther@suse.de>
1111
1112         PR other/51679
1113         * invoke.texi (fassociative-math): Remove spurious paranthesis.
1114
1115 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
1116
1117         * gcc.c (process_command): Update copyright notice dates.
1118         * gcov.c (print_version): Likewise.
1119         * gcov-dump.c (print_version): Likewise.
1120         * mips-tfile.c (main): Likewise.
1121         * mips-tdump.c (main): Likewise.
1122
1123 2012-01-01  Ira Rosen  <irar@il.ibm.com>
1124
1125         PR tree-optimization/51704
1126         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
1127         a use is inside the basic block or loop before accessing its vect info.
1128
1129 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
1130
1131         PR rtl-optimization/51069
1132         * cfgloopmanip.c (remove_path): Removing path making irreducible
1133         region unconditional makes BB part of the region.
1134
1135 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
1136
1137         PR tree-optimization/51683
1138         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
1139         calls with side-effects.
1140         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1141 \f
1142 Copyright (C) 2012 Free Software Foundation, Inc.
1143
1144 Copying and distribution of this file, with or without modification,
1145 are permitted in any medium without royalty provided the copyright
1146 notice and this notice are preserved.