OSDN Git Service

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