OSDN Git Service

PR target/52006
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
2
3         PR target/52006
4         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
5         arm_general_register_operand predicate for operand 2 instead of
6         register_operand.
7
8 2012-01-27  Ian Lance Taylor  <iant@google.com>
9
10         PR go/47656
11         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
12         * builtins.c (expand_builtin_init_trampoline): Add onstack
13         parameter.  Change caller.
14         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
15         * tree.c (build_common_builtin_nodes): Declare
16         __builtin_init_heap_trampoline.
17
18 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
19
20         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
21         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
22         * config/avr/avr.c: Ditto.
23         (avr_regnames): Remove because unused.
24         * config/avr/avr.md (*cpse.ne): New peephole.
25         (*cpse.eq): New peephole from former cpse peepholes.
26
27 2012-01-27  Michael Eager  <eager@eagercon.com>
28
29         * config/microblaze.c (microblaze_emit_compare): Correct
30         test after pcmp instruction.
31
32 2012-01-27  Richard Guenther  <rguenther@suse.de>
33
34         PR tree-optimization/52020
35         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
36
37 2012-01-27  Richard Guenther  <rguenther@suse.de>
38
39         * ipa-pure-const.c (check_stmt): Clobbers do not make a
40         function non-const/pure.
41
42 2012-01-27  Richard Guenther  <rguenther@suse.de>
43
44         PR tree-optimization/50444
45         * tree-sra.c (build_ref_for_offset): Properly adjust the
46         MEM_REF type for unaligned accesses.
47
48 2012-01-27  Richard Guenther  <rguenther@suse.de>
49
50         PR tree-optimization/50444
51         * expr.c (mem_ref_refers_to_non_mem_p): New function.
52         (expand_assignment): Use it.  Properly handle misaligned
53         bases when expanding stores to component references.
54         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
55         refactor that case.
56
57 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
58
59         PR middle-end/51389
60         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
61         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
62         * tree-data-ref.c (find_data_references_in_loop): Make static.
63         (compute_all_dependences): Change return type to bool.  Bail out
64         for too many datarefs in a loop.  Move the hunk resetting the data
65         dependences vector from ...
66         (compute_data_dependences_for_loop): ... here.  Account for
67         compute_all_dependences returning false.
68         (compute_data_dependences_for_bb): Likewise.
69         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
70         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
71
72 2012-01-27  Richard Guenther  <rguenther@suse.de>
73
74         PR middle-end/51959
75         * expr.c (store_field): Use the alias-set of the scratch memory
76         for storing to it.
77
78 2012-01-27  Tom de Vries  <tom@codesourcery.com>
79
80         PR tree-optimization/51990
81         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle WITH_SIZE_EXPR.
82         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
83
84 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
85
86         PR debug/52001
87         * var-tracking.c (reverse_op): Don't add any reverse operation
88         if V already has any constant locations.
89
90 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
91
92         * doc/invoke.texi: Correct usage of "command line" (noun)
93         vs "command-line" (adjective) throughout.
94
95 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
96
97         * doc/invoke.texi (Language Independent Options): Move
98         -Wcoverage-mismatch blurb from here....
99         (Warning Options): ...to here.
100
101 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
102
103         * config/rs6000/rs6000.c (rs6000_option_override_internal):
104         Set rs6000_always_hint to false for 476.
105
106 2012-01-27  Matthias Klose  <doko@ubuntu.com>
107
108         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
109           system root.
110         * incpath.c (add_standard_paths): Likewise.
111
112 2012-01-27  Richard Henderson  <rth@redhat.com>
113
114         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
115         * config/m68k/sync.md (atomic_test_and_set): Rename from
116         sync_test_and_setqi and adjust the operands.
117         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
118         and unconditionally enable.
119
120 2012-01-27  Richard Henderson  <rth@redhat.com>
121
122         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
123         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
124         (ldstub): Rename from ldstubqi.
125         (ldstub<I24MODE>): Remove.
126
127 2012-01-27  Richard Henderson  <rth@redhat.com>
128
129         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
130         * c-cppbuiltin.c (cpp_atomic_builtins): Define
131         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
132         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
133         * doc/tm.texi: Rebuild.
134
135 2012-01-27  Richard Henderson  <rth@redhat.com>
136
137         * optabs.c (gen_atomic_test_and_set): Remove default.
138         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
139
140 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
141
142         PR rtl-optimization/51978
143         * ree.c (make_defs_and_copies_lists): Change set_pat type
144         to const_rtx.
145         (combine_reaching_defs): Likewise.
146         (struct re_info): Remove.
147         (add_removable_extension): Remove x and data arguments,
148         add insn, insn_list and def_map.  Use the arguments directly
149         instead of using struct re_info.
150         (find_removable_extensions): Don't call add_removable_extension
151         through note_stores, instead just call it with single_set
152         result if non-NULL.
153         (find_and_remove_re): Pass curr_cand->expr instead of
154         PATTERN (curr_cand->insn) as set_pat argument to
155         combine_reaching_defs.
156
157 2012-01-26  Michael Matz  <matz@suse.de>
158
159         PR tree-optimization/46590
160         * cfgexpand.c: Revert last change (r183305).
161         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
162         regs.
163         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
164         checking for emptiness.
165
166 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
167
168         PR middle-end/51895
169         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
170         non-addressable non-BLKmode base correctly.
171
172 2012-01-26  Michael Matz  <matz@suse.de>
173
174         PR tree-optimization/48794
175         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
176         regions referenced from RESX/EH_DISPATCH.
177
178 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
179
180         * config/s390/s390.h: Make BRANCH_COST an option.
181         * config/s390/s390.opt: New option -mbranch-cost.
182
183 2012-01-26  Richard Henderson  <rth@redhat.com>
184
185         Revert 2012-01-24 change:
186         * trans-mem.c (requires_barrier): Do not instrument thread local
187         variables and emit save/restore for them.
188
189 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
190
191         PR middle-end/51986
192         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
193         for pat == 0.
194
195 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
196
197         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
198         ASM_OPERANDS.
199
200 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
201
202         PR target/49868
203         Rename __pgm to __flash.
204         Rename __pgm1 to __flash1.
205         Rename __pgm2 to __flash2.
206         Rename __pgm3 to __flash3.
207         Rename __pgm4 to __flash4.
208         Rename __pgm5 to __flash5.
209         Rename __pgmx to __memx.
210         * doc/extend.texi (AVR Named Address Spaces)
211         Rename address space names as indicated above.
212         * config/avr/avr.c (avr_addrspace): Ditto.
213
214         * config/avr/avr-protos.h
215         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
216         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
217         * config/avr/predicates.md: Ditto.
218         * config/avr/avr.c Ditto, and
219         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
220         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
221
222         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
223         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
224         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
225         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
226         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
227         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
228         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
229         * config/avr/avr.c: Ditto.
230         * config/avr/avr.md: Ditto.
231
232 2012-01-25  Jason Merrill  <jason@redhat.com>
233
234         PR c++/51992
235         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
236
237 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
238
239         PR tree-optimization/51987
240         * tree-data-ref.c (get_references_in_stmt): Handle references in
241         non-volatile GIMPLE_ASM.
242
243 2012-01-25  Richard Guenther  <rguenther@suse.de>
244
245         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
246         bases are dereferenced.
247
248 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
249
250         PR rtl-optimization/48374
251         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors. 
252
253 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
254
255         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
256         compute_data_dependences_for_loop returns false.
257         * tree-parloops.c (loop_parallel_p): Likewise.
258
259 2012-01-25  Richard Guenther  <rguenther@suse.de>
260
261         * tree.h (get_pointer_alignment_1): Declare.
262         * builtins.c (get_pointer_alignment_1): New function.
263         (get_pointer_alignment): Use it.
264
265 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
266
267         PR rtl-optimization/48308
268         * combine.c (enum undo_kind): Add UNDO_LINKS.
269         (struct undo): Add member l to other_contents and where.
270         (do_SUBST_LINK): New.
271         (SUBST_LINK): New.
272         (try_combine): Handle LOG_LINKS for the dummy i1 case.
273         (undo_all): Handle UNDO_LINKS.
274
275 2012-01-25  Richard Henderson  <rth@redhat.com>
276
277         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
278         mem inputs.
279
280 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
281
282         * optabs.c (gen_atomic_test_and_set): Use each argument.
283
284 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
285
286         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
287         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
288         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
289         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
290         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
291         TARGET_PAIRED_SINGLE_FLOAT.
292
293 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
294
295         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
296         (in_struct, return_val): Remove MEM documentation.
297         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
298         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
299         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
300         and MEM_SCALAR.
301         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
302         * cfgexpand.c (add_alias_set_conflicts): Likewise.
303         * expr.c (store_field): Likewise.
304         * function.c (assign_stack_temp_for_type): Likewise.
305         * ifcvt.c (noce_try_cmove_arith): Likewise.
306         * reload1.c (reload): Likewise.
307         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
308         (alpha_set_memflags): Likewise.
309         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
310
311 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
312
313         * rtl.h (true_dependence, canon_true_dependence): Remove varies
314         parameter.
315         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
316         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
317         (true_dependence_1, true_dependence, canon_true_dependence): Remove
318         varies parameter.
319         * cselib.c (cselib_rtx_varies_p): Delete.
320         (cselib_invalidate_mem): Update call to canon_true_dependence.
321         * dse.c (record_store, check_mem_read_rtx): Likewise.
322         (scan_reads_nospill): Likewise.
323         * cse.c (check_dependence): Likewise.
324         (cse_rtx_varies_p): Delete.
325         * expr.c (safe_from_p): Update call to true_dependence.
326         * ira.c (validate_equiv_mem_from_store): Likewise.
327         (memref_referenced_p): Likewise.
328         * postreload-gcse.c (find_mem_conflicts): Likewise.
329         * sched-deps.c (sched_analyze_2): Likewise.
330         * store-motion.c (load_kills_store): Likewise.
331         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
332         * gcse.c (mems_conflict_for_gcse_p): Likewise.
333         (compute_transp): Update call to canon_true_dependence.
334
335 2012-01-25  Richard Henderson  <rth@redhat.com>
336
337         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
338         (maybe_emit_atomic_test_and_set): New.
339         (expand_sync_lock_test_and_set): Use it.
340         (expand_atomic_test_and_set): Likewise.
341         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
342         the implementation; clarify implementation defined details.
343         * doc/md.texi (atomic_test_and_set): Document.
344
345 2012-01-25  Richard Henderson  <rth@redhat.com>
346
347         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
348
349 2012-01-25  Richard Henderson  <rth@redhat.com>
350
351         PR target/51968
352         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
353         to effect no-op split.
354
355 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
356
357         PR lto/51698
358         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
359         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
360         (BT_FN_VOID_PTR_INT_SIZE): New.
361         (BT_FN_UINT_UINT_VAR): Remove.
362         (BT_FN_UINT32_UINT32_VAR): New.
363         (BT_FN_DOUBLE_VPTR): Remove.
364         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
365
366         * gtm-builtins.def (_ITM_abortTransaction): Set return type to
367         void.
368         (_ITM_changeTransactionMode): Same.
369         (_ITM_memmoveRtWt): Change return type to void.
370         (_ITM_memcpyRtWt): Same.
371         (_ITM_memsetW): Same.
372         (_ITM_RaRD): Change types to double.
373         (_ITM_RD): Same.
374         (_ITM_RaWD): Same.
375         (_ITM_RfWD): Same.
376
377         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
378
379 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
380             Patrick Marlier  <patrick.marlier@gmail.com>
381
382         * trans-mem.c (requires_barrier): Do not instrument thread local
383         variables and emit save/restore for them.
384
385 2012-01-24  Jason Merrill  <jason@redhat.com>
386
387         PR c++/51812
388         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
389         output static aliases.
390
391 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
392
393         PR driver/47249
394         * common.opt (-pie, -shared, pie, shared): Change from Common to
395         Driver.
396         * gcc.c (display_help): Display help for -pie and -shared.
397
398 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
399
400         PR target/49868
401         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
402         Remove note on size/offset limitation.
403         (AVR Variable Attributes): Add example how to read data located
404         with progmem.  Refer to named address spaces.
405         * doc/invoke.texi (AVR Options): Fix typo.
406
407 2012-01-24  Richard Guenther  <rguenther@suse.de>
408
409         Forward-port to trunk
410         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
411
412         PR middle-end/45678
413         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
414         op0 isn't sufficiently aligned and there is movmisalignM
415         insn for mode, use it to load op0 into a temporary register.
416
417 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
418
419         PR target/51957
420         * target.def (const_not_ok_for_debug_p): New hook.
421         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
422         documentation.
423         * doc/tm.texi: Regenerated.
424         * dwarf2out.c (const_ok_for_output_1): If
425         targetm.const_not_ok_for_debug_p returns true, fail.
426         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
427         function.
428         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
429
430 2012-01-23  Kai Tietz  <ktietz@redhat.com>
431
432         PR target/51900
433         * config/i386/predicates.md (symbolic_operand): Allow
434         UNSPEC_PCREL as PIC expression for lea.
435         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
436         * config/i386/i386.c (ix86_delegitimize_address): Handle
437         UNSPEC_PCREL for none-MEM, too.
438
439 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
440
441         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
442         (ipa_tm_create_version_alias): Same.
443
444 2012-01-18  Uros Bizjak  <ubizjak@gmail.com>
445
446         PR libitm/51830
447         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
448         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
449
450 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
451             Patrick Marlier  <patrick.marlier@gmail.com>
452             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
453
454         PR lto/51916
455         * lto-wrapper.c (run_gcc): Pass the LTO section name to
456         simple_object_start_read.
457
458 2012-01-23  Richard Guenther  <rguenther@suse.de>
459
460
461         PR tree-optimization/51895
462         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
463         parameter decomposition into BLKmode components.
464
465 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
466
467         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
468         fake variables for restrict-qualified pointers whose pointed-to type
469         contains a placeholder.
470
471 2012-01-23  Richard Guenther  <rguenther@suse.de>
472
473         PR tree-optimization/51949
474         * ipa-split.c (execute_split_functions): Do not split malloc functions.
475
476 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
477
478         PR rtl-optimization/51933
479         * ree.c (transform_ifelse): Return true right away if dstreg is
480         already wider or equal to cand->mode.
481         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
482         (make_defs_and_copies_lists): Remove defs_list and copies_list
483         arguments, add state argument, just truncate state->work_list
484         instead of always allocating and freeing the vector.  Assert that
485         get_defs succeeds instead of returning 2.  Changed return type to bool.
486         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
487         have ext_src_mode, see if it has been modified already with the
488         right kind of extension and has been extended before from the
489         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
490         just return true.  Remember the original mode in state->modified array.
491         (combine_reaching_defs): Add state argument.  Don't allocate and
492         free here def_list, copied_list and vec vectors, instead just
493         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
494         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
495         Add state variable, clear vectors in it, initialize state.modified
496         if needed.  Free all the vectors at the end and state.modified too.
497         Don't skip a candidate if the extension expression has been modified.
498
499 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
500
501         PR target/47096
502         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
503          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
504         (extra_options) interix.opt -> i386/interix.opt"
505         (extra_objs):Add winnt-stubs.o
506         * configure.ac: Add interix to target_os .comm on PE check.
507         * configure: Regenerate.
508         * config/interix3.h: Delete and move bits to..
509         * config/interix.h: Delete and move bits to..
510         * config/i386/i386-interix3.h: Delete and move bits to..
511         * config/i386/i386-interix.h: ..here.
512         (TARGET_CPU_DEFAULT): Remove redefinition.
513         (TARGET_ASM_CONSTRUCTOR): Undefine.
514         (SUBTARGET_SWITCHES): Define for ms-bitfields.
515         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
516         (PTRDIFF_TYPE): Define.
517         (LONG_DOUBLE_TYPE_SIZE): Define.
518         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
519         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
520         (TARGET_SECTION_TYPE_FLAGS): Define.
521         (ASM_DECLARE_FUNCTION_NAME): Define.
522         (ASM_OUTPUT_EXTERNAL): Define.
523         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
524         (ASM_OUTPUT_ALIGNED_BSS): Define.
525         (PCC_BITFIELD_TYPE_MATTERS): Define.
526         (USE_CONST_SECTION): Define.
527         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
528         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
529         (SUPPORTS_ONE_ONLY): Remove.
530         (I386_PE_STRIP_ENCODING): Define.
531         * config/interix.opt: Delete and move bits to..
532         * config/i386/interix.opt: ..here. New.
533         (mpe-aligned-commons): Add.
534         * config/i386/t-interix: Add copyright header.
535         (winnt-stubs.o): Add rule.
536
537 2012-01-22  Jason Merrill  <jason@redhat.com>
538
539         PR c++/51832
540         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
541         for extra name aliases.
542
543 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
544
545         PR rtl-optimization/51924
546         * ree.c (combine_set_extension): Improve debugging message.
547         (combine_reaching_defs): Likewise.
548         (get_defs): Rename confusingly named variable.
549         (find_and_remove_re): Skip a candidate if the extension expression has
550         been modified.
551
552 2012-01-21  Robert Millan  <rmh@gnu.org>
553             Gerald Pfeifer  <gerald@pfeifer.com>
554
555         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
556         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
557
558 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
559
560         PR tree-optimization/51914
561         * tree-vect-stmts.c (vectorizable_conversion): For
562         cvt_type && modifier == WIDEN, put temporary with cvt_type
563         at the beginning of vec_dsts and set vec_dest to temporary
564         with vectype_out.
565
566 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
567
568         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
569
570 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
571
572         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
573         * config/rs6000/rs6000.c: Likewise.
574
575 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
576
577         PR target/51915
578         * config/arm/arm.c (arm_count_output_move_double_insns): Call
579         output_move_double on a copy of operands array.
580
581 2012-01-20  Cary Coutant  <ccoutant@google.com>
582             Dodji Seketeli  <dodji@redhat.com>
583
584         PR debug/45682
585         * dwarf2out.c (copy_declaration_context): Return ref to parent
586         of declaration DIE, if necessary.
587         (remove_child_or_replace_with_skeleton): Add new parameter; update
588         caller.  Place skeleton DIE under parent DIE of original declaration.
589         Move call to copy_declaration_context to here ...
590         (break_out_comdat_types): ... from here.
591
592 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
593
594         PR rtl-optimization/51856
595         * reload.c (find_reloads_subreg_address): Set the address_reloaded
596         flag to reloaded.
597
598 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
599
600         PR target/51819
601         * config/arm/arm.c (arm_print_operand): Correct output of alignment
602         hints for neon loads and stores.
603
604 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
605
606         PR target/49868
607         PR target/50887
608         * doc/extend.texi (Named Address Spaces): Split into subsections.
609         (AVR Named Address Spaces): New subsection.
610         (M32C Named Address Spaces): New subsection.
611         (RL78 Named Address Spaces): New subsection.
612         (SPU Named Address Spaces): New subsection.
613         (Variable Attributes): New anchor "AVR Variable Attributes".
614         (AVR Variable Attributes): Rewrite and avoid wording
615         "address space" in this context.
616         * doc/invoke.texi (AVR Options): Rewrite and add documentation
617         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
618         (AVR Built-in Macros): New subsubsection therein.
619         * doc/md.texi (AVR constraints): Remove "C04", "R".
620
621 2012-01-20  Richard Guenther  <rguenther@suse.de>
622
623         PR tree-optimization/51903
624         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
625         when removing stmts.
626
627 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
628
629         PR target/50313
630         * config/arm/arm.c (arm_load_pic_register): Use
631         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
632         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
633         (arm_pic_static_addr): Likewise.
634         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
635         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
636         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
637         (pic_load_addr_unified): New.
638
639 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
640
641         PR target/51106
642         * function.c (instantiate_virtual_regs_in_insn): Use
643         delete_insn_and_edges when removing a wrong asm insn.
644
645 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
646
647         PR rtl-optimization/40761
648         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
649         Add new member loop_num.
650         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
651         (ira_build): Remove the parameter.
652
653         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
654         (ira.c): Do not build CFG loops for one region allocation.  Remove
655         argument from ira_build call.
656
657         * ira-build.c (init_loop_tree_node): New function.
658         (create_loop_tree_nodes): Use it.  Separate the case when CFG
659         loops are not built.
660         (more_one_region_p): Check current_loops.
661         (finish_loop_tree_nodes): Separate the case when CFG loops are not
662         built.
663         (add_loop_to_tree): Process loop equal to NULL too.
664         (form_loop_tree): Separate the case when CFG loops are not built.
665         Use explicitly number for the root.
666         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
667         an assertion.
668         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
669         instead of loop->num.
670         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
671         (mark_all_loops_for_removal): Ditto.
672         (remove_unnecessary_regions): Separate the case when CFG loops
673         are not built.
674         (ira_build): Remove the parameter.  Use explicit number of regions
675         when CFG loops are not built.
676
677         * ira-color.c (print_loop_title): Separate the case for the root node.
678         Use loop_num instead of loop->num.
679         (move_spill_restore): Use loop_num instead of loop->num.
680
681         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
682         (change_loop): Ditto.
683         (change_loop): Use loop_num instead of loop->num.
684
685         * ira-lives.c (process_bb_node_lives): Ditto.
686
687         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
688
689         * ira-conflicts.c (print_allocno_conflicts): Ditto.
690
691 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
692
693         PR libmudflap/40778
694         * tree-mudflap.c (mf_artificial): New function.
695         (execute_mudflap_function_ops, execute_mudflap_function_decls,
696         mx_register_decls, mudflap_enqueue_decl): Use it.
697
698         PR target/51876
699         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
700         numbers in the insn pattern.
701
702 2012-01-19  Michael Matz  <matz@suse.de>
703
704         PR tree-optimization/46590
705         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
706         use it in remembering which conflicts we already created.
707         (add_scope_conflicts): Adjust call to above, (de)allocate helper
708         bitmap.
709
710 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
711
712         PR lto/51280
713         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
714         (merge_and_complain): Same.
715
716 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
717
718         PR bootstrap/50237
719         * config/initfini-array.h: Guard content of the header
720         with #ifdef HAVE_INITFINI_ARRAY.
721         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
722         Add initfini-array.h to tm_file here.
723         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
724         * config.gcc: Don't add initfini-array.h to tm_file here.
725         * configure: Regenerated.
726
727 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
728
729         PR rtl-optimization/51505
730         * df-problems.c (df_kill_notes): New parameter live. Update comment.
731         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
732         (df_note_bb_compute): Update the call to df_kill_notes.
733
734 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
735
736         * trans-mem.c (requires_barrier): Remove call to is_global_var.
737
738 2012-01-18  Richard Guenther  <rguenther@suse.de>
739
740         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
741         of conversions to void *.
742
743 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
744             Richard Sandiford  <rdsandiford@googlemail.com>
745
746         PR middle-end/50325
747         PR middle-end/51192
748         * optabs.h (simplify_expand_binop): Declare.
749         * optabs.c (simplify_expand_binop): Make global.
750         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
751         endian targets if the source cannot be exactly covered by word
752         mode chunks.
753
754 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
755
756         PR bootstrap/51872
757         * hard-reg-set.h (struct hard_reg_set_container): New type.
758         * target.h (struct hard_reg_set_container): Forward declare.
759         * target.def (set_up_by_prologue): New target hook.
760         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
761         * doc/tm.texi: Regenerated.
762         * function.c (thread_prologue_and_epilogue_insns): Change
763         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
764         Call targetm.set_up_by_prologue on it.
765         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
766         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
767
768 2012-01-17  Nick Clifton  <nickc@redhat.com>
769
770         * config/rx/rx.c (rx_can_use_simple_return): New function.
771         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
772         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
773
774 2012-01-17  Richard Guenther  <rguenther@suse.de>
775
776         PR middle-end/51782
777         * expr.c (expand_assignment): Take address-space information
778         from the address operand of MEM_REF and TARGET_MEM_REF.
779         (expand_expr_real_1): Likewise.
780
781 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
782
783         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
784         reload dump is requested.
785
786 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
787
788         PR other/51165
789         * trans-mem.c (requires_barrier): Call may_be_aliased.
790
791 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
792
793         PR tree-optimization/51877
794         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
795         call arguments and fndecls compare equal, instead return false if they
796         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
797         both SSA_NAMEs that are valueized the same, or they satisfy
798         operand_equal_p.
799
800 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
801
802         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
803         Solaris 11+.
804         * configure: Regenerate.
805
806 2012-01-16  Jan Hubicka  <jh@suse.cz>
807
808         PR c/12245
809         PR c++/14179
810         * convert.c (convert_to_integer): Use fold_convert for
811         converting an INTEGER_CST to integer type.
812
813 2012-01-16  Jason Merrill  <jason@redhat.com>
814
815         PR c++/14179
816         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
817
818 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
819
820         PR bootstrap/51860
821         * config/s390/s390.c (s390_chunkify_start): Don't skip
822         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
823         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
824         If insn is followed by NOTE_INSN_VAR_LOCATION or
825         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
826         Don't use location of note insns.
827
828         PR tree-optimization/51865
829         * tree-inline.c (tree_function_versioning): Call remap_decl
830         on DECL_RESULT whenever it has VOID_TYPE_P type.
831
832 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
833
834         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
835         for calls to locally-binding MIPS16 functions if only the return
836         type uses float regs.
837
838 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
839             Richard Sandiford  <rdsandiford@googlemail.com>
840
841         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
842         (SYMBOL_32_HIGH): Likewise.
843         (mips_output_tls_reloc_directive): Declare.
844         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
845         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
846         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
847         (mips_lo_relocs, mips_hi_relocs): Make extern.
848         (mips16_stub_function): Move up file.
849         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
850         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
851         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
852         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
853         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
854         (mips_get_tp): Add MIPS16 support.
855         (mips_legitimize_tls_address): Remove MIPS16 sorry().
856         Generalize DTPREL and TPREL handling.
857         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
858         Add MIPS16 TLS support.
859         (mips_output_tls_reloc_directive): New function.
860         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
861         * config/mips/predicates.md (symbolic_operand_with_high)
862         (tls_reloc_operand): New predicates.
863         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
864         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
865         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
866         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
867         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
868         (*tls_get_tp_mips16_call_<mode>): Likewise.
869
870 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
871
872         PR rtl-optimization/51821
873         * recog.c (peep2_find_free_register): Determine clobbered registers
874         from insn pattern.
875
876 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
877
878         PR target/50925
879         * config/avr/avr-protos.h: Revert change of 2012-01-09.
880         * config/avr/avr.c: Likewise.
881         * config/avr/avr.h: Likewise.
882
883 2012-01-13  Ian Lance Taylor  <iant@google.com>
884
885         PR c++/50012
886         * tree.h (TYPE_QUALS): Add cast to int.
887         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
888
889 2012-01-13  Ian Lance Taylor  <iant@google.com>
890
891         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
892         comparing param_index to VEC_length result.
893
894 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
895
896         * c-decl.c: Do not include tree-mudflap.h
897         * tree-optimize.c: Likewise.
898         * Makefile.in: Update dependencies.
899
900 2012-01-13  Richard Guenther  <rguenther@suse.de>
901
902         PR middle-end/8081
903         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
904         variable-sized result always use RSO.
905
906 2012-01-12  DJ Delorie  <dj@redhat.com>
907
908         * cfgexpand.c (convert_debug_memory_address): Allow any valid
909         pointer type, not just the default pointer type.
910
911 2012-01-09  Richard Henderson  <rth@redhat.com>
912             Denis Chertykov  <chertykov@gmail.com>
913
914         PR target/50925
915         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
916         * config/avr/avr.c (avr_can_eliminate): Simplify.
917         (avr_initial_elimination_offset): Likewise.
918         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
919         (expand_epilogue): Likewise.
920         (avr_legitimize_address): Gut.
921         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
922         (avr_hard_regno_nregs): New.
923         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
924         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
925         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
926         add soft frame pointer.
927         (CALL_USED_REGISTERS): Likewise.
928         (REG_CLASS_CONTENTS): Likewise.
929         (REGISTER_NAMES): Likewise.
930         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
931         (HARD_FRAME_POINTER_REGNUM): New.
932         (FRAME_POINTER_REGNUM): Use soft frame pointer.
933         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
934         remove the HARD_FRAME_POINTER self-elimination.
935
936 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
937
938         PR target/51756
939         * config/avr/avr.c (avr_encode_section_info): Test for absence of
940         DECL_EXTERNAL when checking for initializers of progmem variables.
941
942 2012-01-12  Ira Rosen  <irar@il.ibm.com>
943
944         PR tree-optimization/51799
945         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
946         that the last operation is a type demotion.
947
948 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
949
950         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
951         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
952
953 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
954
955         PR bootstrap/51796
956         * combine.c (distribute_notes): If i3 is a noreturn call,
957         allow old_size to be equal to args_size and make sure the
958         noreturn call gets REG_ARGS_SIZE note.
959         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
960         on noreturn calls even when the delta is 0.
961
962 2012-01-11  Nathan Sidwell  <nathan@acm.org>
963
964         * gcov.c (STRING_SIZE): Remove.
965         (generate_results): Erase annotations for source files with no
966         coverage information.
967         (read_line): New.
968         (output_lines): Use it.
969
970 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
971
972         * gimple.h (gimplify_body): Remove first argument.
973         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
974         pointer set here, instead just pass DATA to walk_tree.
975         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
976         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
977         (unvisit_body): Likewise, but with unmark_visited.
978         (gimplify_body): Remove BODY_P argument and adjust.
979         (gimplify_function_tree): Adjust call to gimplify_body.
980         * omp-low.c (finalize_task_copyfn): Likewise.
981
982 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
983
984         * tree.h (build_function_decl_skip_args): Add boolean parameter.
985         (build_function_type_skip_args): Delete.
986         * tree.c (build_function_type_skip_args): Make static and add
987         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
988         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
989         pass it to build_function_type_skip_args.
990         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
991         (tree_function_versioning): Likewise.
992         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
993         build_function_decl_skip_args.
994         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
995         and pass it to build_function_decl_skip_args/tree_function_versioning.
996         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
997         * ipa-inline-transform.c (save_inline_function_body): Likewise.
998         * trans-mem.c (ipa_tm_create_version): Likewise.
999         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
1000         * tree-inline.c (declare_return_variable): Remove always-true test.
1001         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
1002         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
1003         * ipa-split.c (split_function): Skip the return value for the split
1004         part if it doesn't return.
1005
1006 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1007
1008         PR tree-optimization/49642
1009         * ipa-split.c (forbidden_dominators): New variable.
1010         (check_forbidden_calls): New function.
1011         (dominated_by_forbidden): Likewise.
1012         (consider_split): Check for forbidden dominators.
1013         (execute_split_functions): Initialize and free forbidden
1014         dominators info; call check_forbidden_calls.
1015
1016 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1017
1018         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
1019
1020 2012-01-11  Nick Clifton  <nickc@redhat.com>
1021
1022         * config/rx/rx.md (return): Define pattern.
1023
1024 2012-01-11  Richard Guenther  <rguenther@suse.de>
1025
1026         * doc/extend.texi (malloc attribute): Adjust according to
1027         implementation.
1028
1029 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
1030             Patrick Marlier  <patrick.marlier@gmail.com>
1031
1032         PR middle-end/51516
1033         * trans-mem.c (get_cg_data): Traverse aliases if requested.
1034         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
1035         (ipa_tm_note_irrevocable): Same.
1036         (ipa_tm_scan_irr_block): Same.
1037         (ipa_tm_decrement_clone_counts): Same.
1038         (ipa_tm_scan_irr_function): Same.
1039         (ipa_tm_create_version_alias): Same.
1040         (ipa_tm_create_version): Same.
1041         (ipa_tm_transform_calls_redirect): Same.
1042         (ipa_tm_transform_calls): Same.
1043         (ipa_tm_transform_transaction): Same.
1044         (ipa_tm_execute): Same.
1045
1046 2012-01-10  Richard Guenther  <rguenther@suse.de>
1047
1048         PR middle-end/51806
1049         * opts.c (common_handle_option): Handle -Werror.
1050
1051 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
1052
1053         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
1054         operand number.
1055
1056 2012-01-10  Jason Merrill  <jason@redhat.com>
1057
1058         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
1059         information.
1060
1061 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1062
1063         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
1064         supports R_386_TLS_GD_PLT reloc.
1065         (gcc_cv_as_ix86_tlsldmplt): Check if linker
1066         supports R_386_TLS_LDM_PLT reloc.
1067         * configure: Regenerate.
1068         * config.in: Regenerate.
1069
1070 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
1071
1072         PR target/49868
1073         Extend __pgmx semantics to linearize memory.
1074         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
1075         determine if code comes inline or from libgcc.
1076         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
1077         (movmem_qi, movmem_qi): Set constraint #2 to "n".
1078         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
1079         (movmemx_qi, movmemx_hi): New insns.
1080         (xload_<mode>_libgcc): Rewrite to new insn condition.
1081         (xload_<mode>): Remove insns.
1082         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
1083         cases that don't satisfy avr_xload_libgcc_p().
1084         (avr_addr_space_convert): Allow converting in any direction.
1085         (avr_addr_space_subset_p): Return always true.
1086         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
1087         (avr_emit_movmemhi): Ditto.
1088         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
1089         (avr_out_movmem): Ditto.
1090         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
1091         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
1092         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
1093         (avr_encode_section_info): Encode 'progmem' in symbol flags.
1094         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
1095
1096 2012-01-10  Richard Guenther  <rguenther@suse.de>
1097
1098         PR tree-optimization/50913
1099         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
1100         Require data-refs to be representable by Graphite with respect
1101         to any loop nest.
1102
1103 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
1104
1105         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
1106         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
1107
1108 2012-01-10  Tom de Vries  <tom@codesourcery.com>
1109
1110         PR rtl-optimization/51271
1111         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
1112         handling annulled branch.
1113
1114 2012-01-10  Richard Henderson  <rth@redhat.com>
1115
1116         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
1117         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
1118         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
1119         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
1120         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
1121         arm_expand_vec_perm_const): New.
1122         * config/arm/arm-protos.h: Update.
1123         * config/arm/neon.md (UNSPEC_VCONCAT): New.
1124         (*neon_vswp<VDQX>): New.
1125         (neon_vcombine<VDX>): Use neon_split_vcombine.
1126         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
1127         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
1128         (vec_perm<VE>): New.
1129
1130 2012-01-10  Richard Henderson  <rth@redhat.com>
1131
1132         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
1133         use it if reload_completed.
1134         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
1135         arm_output_asm_insn, arm_process_output_memory_barrier,
1136         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
1137         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
1138         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
1139         arm_process_output_sync_insn, arm_output_sync_insn,
1140         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
1141         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
1142         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
1143         (emit_unlikely_jump): New.
1144         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
1145         (arm_split_atomic_op): New.
1146         * config/arm/arm-protos.h: Update.
1147         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
1148         (struct arm_sync_generator): Remove.
1149         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
1150         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
1151         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
1152         (VUNSPEC_LL, VUNSPEC_SC): New.
1153         (sync_result, sync_memory, sync_required_value, sync_new_value,
1154         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
1155         (attr length): Don't use arm_sync_loop_insns.
1156         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
1157         (movsfcc, movdfcc): Likewise.
1158         * config/arm/constraints.md (Ua): New.
1159         * config/arm/prediates.md (mem_noofs_operand): New.
1160         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
1161         (sync_clobber, sync_t2_reqd): Remove.
1162         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
1163         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
1164         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
1165         (arm_sync_compare_and_swap<SIDI>): Remove.
1166         (arm_sync_compare_and_swap<NARROW>): Remove.
1167         (arm_sync_lock_test_and_set<SIDI>): Remove.
1168         (arm_sync_lock_test_and_set<NARROW>): Remove.
1169         (arm_sync_new_<syncop><SIDI>): Remove.
1170         (arm_sync_new_<syncop><NARROW>): Remove.
1171         (arm_sync_new_nand<SIDI>): Remove.
1172         (arm_sync_new_nand<NARROW>): Remove.
1173         (arm_sync_old_<syncop><SIDI>): Remove.
1174         (arm_sync_old_<syncop><NARROW>): Remove.
1175         (arm_sync_old_nand<SIDI>): Remove.
1176         (arm_sync_old_nand<NARROW>): Remove.
1177         (*memory_barrier): Merge arm_output_memory_barrier.
1178         (atomic_compare_and_swap<QHSD>): New.
1179         (atomic_compare_and_swap<NARROW>_1): New.
1180         (atomic_compare_and_swap<SIDI>_1): New.
1181         (atomic_exchange<QHSD>): New.
1182         (cas_cmp_operand, cas_cmp_str): New.
1183         (atomic_op_operand, atomic_op_str): New.
1184         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
1185         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
1186         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
1187         (arm_load_exclusive<NARROW>): New.
1188         (arm_load_exclusivesi, arm_load_exclusivedi): New.
1189         (arm_store_exclusive<QHSD>): New.
1190
1191 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1192
1193         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
1194         reload patterns if -mvsx-scalar-memory.
1195
1196         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
1197         generated, even -mno-vsx-scalar-double was used.
1198         (vsx_xscvdpsp_scalar): Likewise.
1199         (vsx_xscvspdp_scalar2): Likewise.
1200
1201 2012-01-09  Tom de Vries  <tom@codesourcery.com>
1202             Andrew Pinski  <apinski@cavium.com>
1203
1204         PR debug/51471
1205         * reorg.c (fill_slots_from_thread): Don't speculate
1206         frame-related insns.
1207
1208 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
1209
1210         * sched-int.h (bb_note): Move to...
1211         * basic-block.h: ...here.
1212         * haifa-sched.c (bb_note): Move to...
1213         * cfgrtl.c: ...here.
1214         * function.c (next_block_for_reg): New function.
1215         (move_insn_for_shrink_wrap): Likewise.
1216         (prepare_shrink_wrap): Rewrite to use the above.
1217
1218 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
1219
1220         * gimple.c (is_gimple_non_addressable): Remove.
1221         * gimple.h: Remove is_gimple_non_addressable.
1222         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
1223         is_gimple_non_addressable.
1224         * trans-mem.c (expand_assign_tm): Same.
1225
1226 2012-01-09  Richard Guenther  <rguenther@suse.de>
1227
1228         PR tree-optimization/51775
1229         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
1230         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
1231
1232 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
1233
1234         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
1235         tuning parameters.
1236         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
1237
1238 2012-01-09  Richard Guenther  <rguenther@suse.de>
1239
1240         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
1241
1242 2012-01-08  Jan Hubicka  <jh@suse.cz>
1243
1244         PR tree-optimize/51680
1245         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
1246         on when known_vals needs to be computed; cleanup.
1247
1248 2012-01-08  Jan Hubicka  <jh@suse.cz>
1249
1250         PR tree-optimize/51694
1251         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
1252
1253 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
1254
1255         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
1256         for -std=c++98 and -std=c++11 too.
1257
1258 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
1259
1260         * cfgloop.c (cancel_loop): Add free() of bbs array.
1261
1262 2012-01-07  Jan Hubicka  <jh@suse.cz>
1263
1264         PR tree-optimization/51600
1265         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
1266         that benefits small functions.
1267
1268 2012-01-07  Jan Hubicka  <jh@suse.cz>
1269
1270         * ipa-inline.c (want_inline_small_function_p): Fix formating.
1271
1272 2012-01-07  Jan Hubicka  <jh@suse.cz>
1273
1274         PR tree-optimization/51680
1275         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
1276         whose inlining reduce unit size.
1277
1278 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
1279
1280         PR bootstrap/51725
1281         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
1282         Add canonical node to containing_mem chain after the non-canonical
1283         one, even if there weren't any locs to propagate.
1284         (remove_useless_values): Keep only canonical values.
1285         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
1286         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
1287         canonicalize mem_chain elements that are not discarded.
1288
1289 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
1290
1291         PR target/47333
1292         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
1293         before emitting functions.
1294
1295         PR gcov-profile/50127
1296         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
1297         clear_aux_for_blocks.
1298
1299 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
1300
1301         PR debug/51746
1302         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
1303
1304 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
1305
1306         * c-decl.c (ext_block): Moved up.
1307         (collect_all_refs, for_each_global_decl): Take ext_block into account.
1308
1309 2012-01-06  Han Shen  <shenhan@google.com>
1310
1311         Translate built-in include paths for sysroot.
1312         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
1313         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
1314
1315         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
1316         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
1317
1318         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
1319         control whether sysroot should be prepended to gxx include dir.
1320
1321         * configure: Regenerate.
1322
1323 2012-01-06  Torvald Riegel  <triegel@redhat.com>
1324
1325         PR rtl-optimization/51771
1326         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
1327         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
1328
1329 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1330
1331         PR tree-optimization/51315
1332         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
1333         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
1334
1335 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
1336
1337         PR target/51681
1338         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
1339         for shrp pattern.  Correctly handle and fixup shift variable.
1340         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
1341
1342 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
1343
1344         PR debug/51762
1345         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
1346         note when !ACCUMULATE_OUTGOING_ARGS.
1347
1348 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
1349
1350         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
1351         condition.
1352         (extract_range_from_unary_expr_1): Avoid useless computations.
1353
1354 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
1355
1356         PR rtl-optimization/51767
1357         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
1358         of jump_block and add an extra edge for degenerated asm gotos.
1359
1360         PR middle-end/51768
1361         * stmt.c (check_unique_operand_names): Don't ICE during error
1362         reporting if i is from labels chain.
1363
1364         PR middle-end/44777
1365         * profile.c (branch_prob): Split bbs that have exit edge
1366         and need a fake entry edge too.
1367
1368 2012-01-05  Jan Hubicka  <jh@suse.cz>
1369
1370         PR middle-end/49710
1371         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
1372         unlooping loops.
1373
1374 2012-01-05  Richard Guenther  <rguenther@suse.de>
1375
1376         PR lto/50490
1377         * tree-streamer-out.c (write_ts_optimization): New function.
1378         (streamer_write_tree_body): Call it.
1379         * tree-streamer-in.c (lto_input_ts_optimization): New function.
1380         (streamer_read_tree_body): Call it.
1381         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
1382
1383 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
1384
1385         PR middle-end/51761
1386         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
1387         * gimplify.c (gimplify_cleanup_point_expr): Save and set
1388         in_cleanup_point_expr before gimplify_stmt call and restore it
1389         afterwards.
1390         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
1391         in_cleanup_point_expr is false.
1392
1393 2012-01-05  Richard Guenther  <rguenther@suse.de>
1394
1395         PR middle-end/51764
1396         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
1397         to c.opt.
1398         * toplev.c (process_options): Reject combining mudflap and LTO.
1399         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
1400
1401 2012-01-05  Richard Guenther  <rguenther@suse.de>
1402
1403         PR tree-optimization/51760
1404         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
1405         not VARYING.
1406         (bit_value_unop): Handle UNDEFINED operands.
1407         (bit_value_binop): Likewise.
1408
1409 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
1410
1411         * config/avr/avr.c (avr_replace_prefix): Remove.
1412         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
1413         (avr_asm_function_rodata_section): Ditto.
1414         (avr_asm_select_section): Ditto.
1415
1416 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1417
1418         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
1419         insertion.
1420
1421 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
1422
1423         PR bootstrap/51648
1424         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
1425         calls that have any non-fake successor edges.
1426
1427         PR debug/51746
1428         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
1429
1430 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
1431
1432         PR tree-optimization/51624
1433         * tree-sra.c (build_ref_for_model): When replicating a chain of
1434         COMPONENT_REFs, stop as soon as the offset would become negative.
1435
1436 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
1437
1438         PR debug/51695
1439         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
1440         in .debug_loc on the floor.
1441
1442 2012-01-04  Andrew Pinski  <apinski@cavium.com>
1443
1444         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
1445
1446 2012-01-04  Andrew Pinski  <apinski@cavium.com>
1447             Adam Nemet  <anemet@caviumnetworks.com>
1448
1449         * config/mips/mips.md (size): Add SI and DI.
1450         (SIZE): New mode attribute.
1451         (U): New code attribute.
1452         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
1453         (mips_lbux_<mode>): Delete.
1454         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
1455         (mips_lhx): Use gen_mips_lhx_extsi.
1456         (mips_lhx_<mode>): Delete.
1457         (mips_lwx): Delete.
1458         (mips_l<size>x): New expand.
1459         (mips_lwx_<mode>): Delete.
1460         (mips_l<GPR:size>x_<P:mode>): New pattern.
1461         (*mips_lw<u>x_<P:mode>_ext): Likewise.
1462         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
1463         * config/mips/mips.c (mips_lx_address_p): New function.
1464         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
1465         (dsp64): New availability predicate.
1466         (mips_builtins): Add an entry for __builtin_mips_ldx.
1467         * config/mips/mips.h (ISA_HAS_LBX): New define.
1468         (ISA_HAS_LBUX): Likewise.
1469         (ISA_HAS_LHX): Likewise.
1470         (ISA_HAS_LHUX): Likewise.
1471         (ISA_HAS_LWX): Likewise.
1472         (ISA_HAS_LWUX): Likewise.
1473         (ISA_HAS_LDX): Likewise.
1474         * doc/extend.texi (__builtin_mips_ldx): Document.
1475
1476 2012-01-04  Tristan Gingold  <gingold@adacore.com>
1477
1478         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
1479         when long pointers are used.
1480         * config.build (*-*-*vms*): Handle all OpenVMS targets.
1481         (alpha64-dec-*vms*, alpha*-dec-*vms*)
1482         (ia64-hp-*vms*): Remove.
1483         * config/vms/xm-vms64.h: Delete.
1484
1485 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
1486
1487         PR middle-end/51472
1488         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
1489
1490 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
1491
1492         * opts.c (finish_options): Remove duplicate sorry.
1493
1494 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
1495
1496         PR middle-end/51696
1497         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
1498         correctly.
1499
1500 2012-01-04  Richard Guenther  <rguenther@suse.de>
1501
1502         PR middle-end/51750
1503         * tree.c (size_low_cst): New function.
1504         * tree.h (size_low_cst): Declare.
1505         * fold-const.c (fold_comparison): Use it to extract the low
1506         part of the POINTER_PLUS_EXPR offset.
1507
1508 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
1509
1510         Fix clearing ZERO_REG
1511         * config/avr/avr.md (cc): Add alternative "ldi".
1512         (movqi_insn): Use it in cc attribute.
1513         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
1514         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
1515         (output_reload_insisf): Use ZERO_REG to pre-clear register.
1516
1517 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1518
1519         * configure: Regenerate.
1520
1521 2012-01-04  Richard Guenther  <rguenther@suse.de>
1522
1523         PR tree-optimization/49651
1524         * tree-ssa-structalias.c (type_can_have_subvars): New function.
1525         (var_can_have_subvars): Use it.
1526         (get_constraint_for_1): Only consider subfields if there can be any.
1527
1528 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
1529
1530         PR bootstrap/51725
1531         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
1532         to its new canonical_cselib_val and the cselib_val was in
1533         first_containing_mem chain, but the canonical_cselib_val was not,
1534         add the latter into the chain.
1535         (cselib_invalidate_mem): Compare canonical_cselib_val of
1536         addr_list chain elt with v.
1537
1538         PR pch/51722
1539         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
1540         dwarf2out_undef): Allocate e.info using ggc_strdup instead
1541         of xstrdup.
1542         (output_macinfo_op): Don't ggc_strdup fd->filename.
1543         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
1544         then ggc_strdup it.  Don't free inc->info or cur->info.
1545         (output_macinfo): Don't free ref->info or file->info.
1546
1547 2012-01-03  Ira Rosen  <irar@il.ibm.com>
1548
1549         PR tree-optimization/51269
1550         * tree-vect-loop-manip.c (set_prologue_iterations): Make
1551         first_niters a pointer.
1552         (slpeel_tree_peel_loop_to_edge): Likewise.
1553         (vect_do_peeling_for_loop_bound): Update call to
1554         slpeel_tree_peel_loop_to_edge.
1555         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
1556         here.  Remove it from the parameters list.
1557         (vect_do_peeling_for_alignment): Update calls and compute
1558         wide_prolog_niters.
1559
1560 2012-01-03  Richard Guenther  <rguenther@suse.de>
1561
1562         PR tree-optimization/51070
1563         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
1564         Properly handle calls.
1565
1566 2012-01-03  Richard Guenther  <rguenther@suse.de>
1567
1568         PR tree-optimization/51692
1569         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
1570         the LHS of allocation stmts.
1571
1572 2012-01-03  Olivier Hainque  <hainque@adacore.com>
1573
1574         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
1575
1576 2012-01-03  Olivier Hainque  <hainque@adacore.com>
1577
1578         * collect2.c (main): In AIX specific computations for vector
1579         insertions, use CONST_CAST2 to cast from char ** to const char **.
1580
1581 2012-01-03  Richard Guenther  <rguenther@suse.de>
1582
1583         PR debug/51650
1584         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
1585         the context of a limbo DIE when it does not already exist.
1586
1587 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
1588
1589         PR tree-optimization/51719
1590         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
1591         but direct call is, clear direct call's lhs and don't add fallthrough
1592         edge from dcall_bb to join_bb and PHIs.
1593
1594 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1595
1596         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
1597         the instructions emitted by the pattern.
1598         ("*TDC_insn_<mode>"): Add comment.
1599
1600 2012-01-03  Richard Guenther  <rguenther@suse.de>
1601
1602         PR middle-end/51730
1603         * fold-const.c (fold_comparison): Properly canonicalize
1604         tree offset and HOST_WIDE_INT bit position.
1605
1606 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
1607
1608         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
1609         operands for extzv pattern.
1610
1611 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1612
1613         PR bootstrap/51725
1614         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
1615         on mem_elt first.
1616
1617 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
1618
1619         * doc/invoke.texi (-flto and related options): Copy-edit.
1620
1621 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1622
1623         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
1624
1625 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1626
1627         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
1628         New patterns.
1629
1630 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1631
1632         * expr.h (move_by_pieces_ninsns): Declare.
1633         * expr.c (move_by_pieces_ninsns): Make external.
1634         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
1635         (mips_store_by_pieces_p): Likewise.
1636         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
1637         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
1638         * config/mips/mips.c (mips_move_by_pieces_p): New function.
1639         (mips_store_by_pieces_p): Likewise.
1640
1641 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
1642
1643         * passes.c (register_one_dump_file): Free full_name.
1644
1645         * reload1.c (reload): Don't allocate reg_max_ref_width here.
1646         (calculate_elim_costs_all_insns): Free offsets_at and
1647         offsets_known_at at the end and clear the pointers.
1648
1649 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1650
1651         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
1652         this option introduced in r180739.
1653
1654 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1655
1656         PR target/51345
1657         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
1658         (tmake_file target=avr): Add avr/t-multilib.
1659
1660         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
1661         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
1662         * config/avr/genmultilib.awk: New file.
1663         * config/avr/t-multilib: New auto-generated file.
1664         * config/avr/multilib.h: New auto-generated file.
1665         * config/avr/t-avr (AVR_MCUS): New variable.
1666         (genopt.sh): Use it.
1667         (s-mlib): Depend on t-multilib.
1668         (t-multilib, multilib.h): New dependencies.
1669         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
1670         (MULTILIB_OPTIONS): Remove.
1671         (MULTILIB_MATCHES): Remove.
1672         (MULTILIB_DIRNAMES): Remove.
1673         (MULTILIB_EXCEPTIONS): Remove:
1674         * config/avr/genopt.sh: Don't use hard coded file name;
1675         pass AVR_MCUS from t-avr instead.
1676
1677 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1678
1679         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
1680
1681 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
1682
1683         Implement light-weight DImode support.
1684         * config/avr/avr-dimode.md: New file.
1685         * config/avr/avr.md: Include it.
1686         (adjust_len): Add plus64, compare64.
1687         (HIDI): Remove code iterator.
1688         (code_stdname): New code attribute.
1689         (rotx, rotsmode): Remove DI.
1690         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
1691         as code iterator.
1692         * config/avr/avr-protos.h (avr_have_dimode): New.
1693         (avr_out_plus64, avr_out_compare64): New.
1694         * config/avr/avr.c (avr_out_compare): Handle DImode.
1695         (avr_have_dimode): New variable definition and initialization.
1696         (avr_out_compare64, avr_out_plus64): New functions.
1697         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
1698         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
1699         (avr_compare_pattern): Skip DImode comparisons.
1700
1701 2012-01-02  Revital Eres  <revital.eres@linaro.org>
1702
1703         * ddg.c (def_has_ccmode_p): New function.
1704         (add_cross_iteration_register_deps,
1705         create_ddg_dep_from_intra_loop_link): Call it.
1706
1707 2012-01-02  Richard Guenther  <rguenther@suse.de>
1708
1709         PR other/51679
1710         * invoke.texi (fassociative-math): Remove spurious paranthesis.
1711
1712 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
1713
1714         * gcc.c (process_command): Update copyright notice dates.
1715         * gcov.c (print_version): Likewise.
1716         * gcov-dump.c (print_version): Likewise.
1717         * mips-tfile.c (main): Likewise.
1718         * mips-tdump.c (main): Likewise.
1719
1720 2012-01-01  Ira Rosen  <irar@il.ibm.com>
1721
1722         PR tree-optimization/51704
1723         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
1724         a use is inside the basic block or loop before accessing its vect info.
1725
1726 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
1727
1728         PR rtl-optimization/51069
1729         * cfgloopmanip.c (remove_path): Removing path making irreducible
1730         region unconditional makes BB part of the region.
1731
1732 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
1733
1734         PR tree-optimization/51683
1735         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
1736         calls with side-effects.
1737         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
1738 \f
1739 Copyright (C) 2012 Free Software Foundation, Inc.
1740
1741 Copying and distribution of this file, with or without modification,
1742 are permitted in any medium without royalty provided the copyright
1743 notice and this notice are preserved.