OSDN Git Service

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