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