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