OSDN Git Service

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