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