re PR translation/52264 (translatable string typo: "refernece")
[gcc.git] / gcc / ChangeLog
1 2012-02-16 Jakub Jelinek <jakub@redhat.com>
2
3 PR translation/52264
4 * cgraphunit.c (verify_cgraph_node): Fix a typo.
5
6 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
7
8 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
9
10 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11
12 PR target/52199
13 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14 force_reg instead of copy_to_reg for better optimization. Force
15 non-register or memory operands into a register.
16
17 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
18
19 * extend.texi: Reserve upper bits of memory model for future use.
20
21 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
22 Anatoly Sokolov <aesok@post.ru>
23 Eric Weddington <eric.weddington@atmel.com>
24
25 PR target/52261
26 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
27 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
28 Rewrite initializers for .macro.
29 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
30 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
31 atxmega32d4, atxmega32x1.
32 avrxmega4: atxmega64a3, atxmega64d3.
33 avrxmega5: atxmega64a1, atxmega64a1u.
34 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
35 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
36 avrxmega7: atxmega128a1, atxmega128a1u.
37 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
38 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
39 (struct base_arch_s): Rename reserved to xmega_p.
40 Rename reserved2 to have_rampd.
41 (AVR_XMEGA): New define.
42 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
43 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
44 * config/avr/predicates.md (io_address_operand): Take into
45 account SFR offset.
46 (low_io_address_operand): Ditto.
47 (high_io_address_operand): Ditto.
48 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
49 (enabled, movhi_sp_r): Use them.
50 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
51 cpp_define_formatted to built-in define __AVR_ARCH__.
52 (__AVR_XMEGA__): New built-in define.
53 (__AVR_HAVE_RAMPD__): New built-in define.
54 (__AVR_HAVE_RAMPX__): New built-in define.
55 (__AVR_HAVE_RAMPY__): New built-in define.
56 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
57
58 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
59 (avr_option_override): Initialize them.
60 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
61 (avr_init_expanders): Initialize them. No more block several calls.
62 (emit_push_sfr): New static function.
63 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
64 Handle AVR_XMEGA.
65 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
66 (avr_print_operand): Print addreeses as symbols for
67 RAMPX, RAMPY, RAMPD, CCP.
68 (output_movhi): Handle AVR_XMEGA when writing to SP.
69 (avr_out_movhi_mr_r_xmega): New static function.
70 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
71 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
72 __RAMPD__, __CCP__ as needed.
73
74 * config/avr/multilib.h: Regenerate.
75 * config/avr/t-multilib: Regenerate.
76 * config/avr/avr-tables.opt: Regenerate.
77
78 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
79
80 PR tree-optimization/50561
81 * graphite-flattening.c (lst_project_loop): Do not
82 remove old scattering dimensions after flattening.
83 (lst_do_flatten): Likewise.
84
85 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
86
87 * doc/extend.texi (AVR Built-in Functions): Remove doc for
88 __builtin_avr_map8, __builtin_avr_map16.
89 Document __builtin_avr_insert_bits.
90
91 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
92 (insert_bits): New insn.
93 (adjust_len.map_bits): Rename to insert_bits.
94 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
95 * avr-protos.h (avr_out_map_bits): Remove.
96 (avr_out_insert_bits, avr_has_nibble_0xf): New.
97 * config/avr/constraints.md (Cxf,C0f): New.
98 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
99 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
100 New built-in define __BUILTIN_AVR_INSERT_BITS.
101 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
102 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
103 (avr_move_bits): Rewrite.
104 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
105 functions.
106 (avr_map_op_t): New typedef.
107 (avr_map_op): New static variable.
108 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
109 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
110 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
111 (bdesc_3arg, avr_expand_triop_builtin): New.
112 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
113 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
114 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
115 (avr_map_equal_p, avr_map_sig_p): Remove.
116 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
117 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
118 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
119 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
120 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
121 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
122
123 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
124
125 * config/c6x/c6x.md (reserve_cycles): New attribute.
126 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
127 don't reserve functional units after the branch occurs.
128
129 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
130
131 PR middle-end/52142
132 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
133 functions into non-tm_pure functions.
134
135 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
136
137 PR lto/52178
138 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
139 (iterative_hash_canonical_type): Likewise.
140 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
141 the dead edges.
142
143 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
144
145 * haifa-sched.c (prune_ready_list): Ensure that if there is a
146 sched-group insn, it either remains alone or the entire list is
147 pruned.
148
149 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
150
151 * doc/install.texi (Prerequisites): Fix grammar.
152 (Configuration): Likewise.
153
154 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
155
156 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
157 MPC as part of GCC before describing configuring with --with-gmp etc.
158 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
159 sources are present.
160
161 2012-02-14 Jakub Jelinek <jakub@redhat.com>
162
163 PR debug/51950
164 * dwarf2out.c (clone_tree_hash): New function.
165 (copy_decls_walk): Use it instead of clone_tree.
166
167 2012-02-14 Richard Guenther <rguenther@suse.de>
168
169 PR tree-optimization/52244
170 PR tree-optimization/51528
171 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
172 replacements for integral types.
173
174 2012-02-14 Walter Lee <walt@tilera.com>
175
176 * config.gcc: Handle tilegx and tilepro.
177 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
178 tilegx and tilepro.
179 Add HAVE_AS_TLS check for tilegx and tilepro.
180 * configure: Regenerate.
181 * doc/contrib.texi: Add Mat Hostetter and self.
182 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
183 Document instruction intrinsics and network accessing intrinsics.
184 (TILEPro Built-in Functions): New node. Document instruction
185 intrinsics and network accessing intrinsics.
186 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
187 (Specific, tilepro-*-linux*): Likewise.
188 * doc/invoke.texi (TILE-Gx Options): New section.
189 (TILEPro Options): New section.
190 * doc/md.texi (TILE-Gx): New section.
191 (TILEPro): New section.
192 * common/config/tilegx/tilegx-common.c: New file.
193 * common/config/tilepro/tilepro-common.c: New file.
194 * config/tilegx/constraints.md: New file.
195 * config/tilegx/linux.h: New file.
196 * config/tilegx/mul-tables.c: New file.
197 * config/tilegx/predicates.md: New file.
198 * config/tilegx/sync.md: New file.
199 * config/tilegx/t-tilegx: New file.
200 * config/tilegx/tilegx-builtins.h: New file.
201 * config/tilegx/tilegx-c.c: New file.
202 * config/tilegx/tilegx-generic.md: New file.
203 * config/tilegx/tilegx-modes.def: New file.
204 * config/tilegx/tilegx-multiply.h: New file.
205 * config/tilegx/tilegx-protos.h: New file.
206 * config/tilegx/tilegx.c: New file.
207 * config/tilegx/tilegx.h: New file.
208 * config/tilegx/tilegx.md: New file.
209 * config/tilegx/tilegx.opt: New file.
210 * config/tilepro/constraints.md: New file.
211 * config/tilepro/gen-mul-tables.cc: New file.
212 * config/tilepro/linux.h: New file.
213 * config/tilepro/mul-tables.c: New file.
214 * config/tilepro/predicates.md: New file.
215 * config/tilepro/t-tilepro: New file.
216 * config/tilepro/tilepro-builtins.h: New file.
217 * config/tilepro/tilepro-c.c: New file.
218 * config/tilepro/tilepro-generic.md: New file.
219 * config/tilepro/tilepro-modes.def: New file.
220 * config/tilepro/tilepro-multiply.h: New file.
221 * config/tilepro/tilepro-protos.h: New file.
222 * config/tilepro/tilepro.c: New file.
223 * config/tilepro/tilepro.h: New file.
224 * config/tilepro/tilepro.md: New file.
225 * config/tilepro/tilepro.opt: New file.
226
227 2012-02-14 Jakub Jelinek <jakub@redhat.com>
228
229 PR tree-optimization/52210
230 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
231 vect_model_simple_cost with two entry vect_def_type array instead
232 of an address of dt.
233
234 2012-02-14 Richard Guenther <rguenther@suse.de>
235
236 PR lto/52178
237 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
238 Do not stream DECL_QUALIFIER.
239 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
240 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
241 (find_decls_types_r): Do not walk DECL_QUALIFIER.
242
243 2012-02-14 Jakub Jelinek <jakub@redhat.com>
244
245 PR c/52181
246 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
247 newdecl.
248
249 2012-02-13 Jakub Jelinek <jakub@redhat.com>
250
251 PR bootstrap/52172
252 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
253 * cselib.c (cselib_subst_to_values_from_insn): New function.
254 * sched-deps.c (add_insn_mem_dependence,
255 sched_analyze_1, sched_analyze_2): Use it.
256
257 2012-02-13 Jan Hubicka <jh@suse.cz>
258
259 PR middle-end/52214
260 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
261
262 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
263
264 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
265 (GTM_SELF_SPECS): Define if not already defined.
266 (driver_self_specs): Add GTM_SELF_SPECS.
267 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
268 (GTM_SELF_SPECS): Define.
269 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
270 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
271
272 2012-02-13 Jakub Jelinek <jakub@redhat.com>
273
274 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
275 away if seen.
276
277 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is
278 non-NULL.
279
280 PR middle-end/52230
281 * omp-low.c (expand_omp_for): If a static schedule without
282 chunk size has NULL region->cont, force fd.chunk_size to be
283 integer_zero_node.
284
285 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
286
287 PR c/52190
288 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
289
290 2012-02-13 Richard Guenther <rguenther@suse.de>
291
292 PR translation/52211
293 * passes.c (enable_disable_pass): Fix typo.
294
295 2012-02-13 Jakub Jelinek <jakub@redhat.com>
296
297 PR middle-end/52209
298 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
299 XOR for reduce_bit_field if type is unsigned.
300
301 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
302
303 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
304 disallow changes from SFmode to mode with different size in FP regs.
305
306 2012-02-12 Robert Millan <rmh@gnu.org>
307 Gerald Pfeifer <gerald@pfeifer.com>
308
309 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
310 Tweak comment.
311
312 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
313
314 PR rtl-optimization/52175
315 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
316 to frame-related instructions.
317
318 2012-02-10 Jason Merrill <jason@redhat.com>
319
320 PR c++/51910
321 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
322 (demangle_new_symbols): Fill it.
323 (scan_linker_output): Walk it.
324 (start_tweaking): Split out from scan_linker_output.
325 (maybe_tweak): Update sym->chosen.
326 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
327
328 2012-02-11 Jakub Jelinek <jakub@redhat.com>
329
330 PR debug/52132
331 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use
332 get_true_reg.
333
334 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
335
336 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
337 having the same mode as previous compare.
338
339 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
340
341 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
342 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
343 (nonlocal_goto_internal): Likewise.
344 (nonlocal_goto): Emit a use and an indirect jump directly.
345
346 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
347
348 PR c/52190
349 * doc/extend.texi : Update comments for __atomic_compare_exchange and
350 __atomic_{is,always}_lock_free.
351
352 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
353
354 PR target/52146
355 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
356 negative constant address for x32.
357
358 2012-02-10 Richard Henderson <rth@redhat.com>
359
360 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
361 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
362 for GIMPLE_TRANSACTION. Tidy if's into a switch.
363
364 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
365 Ira Rosen <irar@il.ibm.com>
366
367 PR tree-optimization/50031
368 * targhooks.c (default_builtin_vectorization_cost): Handle
369 vec_promote_demote.
370 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
371 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
372 all types of reduction and pattern statements.
373 (vect_estimate_min_profitable_iters): Likewise.
374 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
375 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
376 for explicit realigns.
377 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
378 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
379 vec_promote_demote.
380 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
381 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
382 vec_perm for VSX and handle vec_promote_demote.
383
384 2012-02-10 Jakub Jelinek <jakub@redhat.com>
385
386 PR middle-end/52177
387 * builtins.c (fold_builtin_atomic_always_lock_free,
388 expand_builtin_atomic_always_lock_free,
389 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
390 Return and/or test boolean_true_node/boolean_false_node instead of
391 integer_one_node/integer_zero_node.
392
393 2012-02-10 Jan Hubicka <jh@suse.cz>
394
395 PR middle-end/48600
396 * predict.c (predict_paths_for_bb): Prevent looping.
397 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
398
399 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
400
401 * config/arm/arm.c (output_move_double): In one case properly
402 count number of instructions that will be emitted.
403
404 2012-02-10 Richard Guenther <rguenther@suse.de>
405
406 PR translation/52193
407 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
408
409 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
410
411 PR middle-end/52140
412 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
413
414 2012-02-09 Jakub Jelinek <jakub@redhat.com>
415
416 PR debug/52165
417 * var-tracking.c (emit_note_insn_var_location): If
418 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
419 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
420 non-NOTE_DURING_CALL_P insn.
421
422 2012-02-09 Bin Cheng <bin.cheng@arm.com>
423
424 PR middle-end/51867
425 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
426
427 2012-02-08 Magnus Granberg <zorry@gentoo.org>
428
429 PR driver/48524
430 * gcc.c (switch_matches) Support switches with separated form,
431 -D and -U.
432
433 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
434
435 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
436 (SP_ADDR): Ditto.
437 (RAMPZ_ADDR): Ditto.
438 * config/avr/avr.c (avr_addr_t): New typedef.
439 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
440 (avr_init_expanders): Initialize it.
441 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
442 SREG_ADDR.
443 (expand_epilogue): Ditto.
444 (avr_print_operand): Ditto.
445 (avr_file_start): Ditto.
446 (avr_emit_movmemhi): Ditto.
447
448 2012-02-08 Richard Guenther <rguenther@suse.de>
449
450 PR tree-optimization/46886
451 * tree-flow.h (do_while_loop_p): Declare.
452 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
453 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
454
455 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
456
457 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
458 always succeed for integers larger than a native word.
459
460 2012-02-08 Richard Guenther <rguenther@suse.de>
461
462 PR rtl-optimization/52170
463 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
464 properly handle integer vector modes.
465
466 2012-02-08 Jakub Jelinek <jakub@redhat.com>
467
468 PR gcov-profile/52150
469 * coverage.c: Include target.h.
470 (build_var): Call targetm.strip_name_encoding on the assembler name.
471 Change one _ into . or $ if the target allows it.
472 * Makefile.in (coverage.o): Depend on $(TARGET_H).
473
474 PR rtl-optimization/52139
475 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
476 is a BARRIER after emit_insn_after_noloc, move BB_END
477 to the last non-BARRIER insn before it.
478
479 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
480
481 PR middle-end/24306
482 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
483 (mips_gimplify_va_arg_expr): Call it instead of
484 std_gimplify_va_arg_expr.
485
486 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
487
488 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
489 message for -mno-pointers-to-nested-function.
490
491 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
492
493 PR middle-end/51994
494 * expr.c (get_inner_reference): If there is an offset, add a negative
495 bit position to it (if any).
496
497 2012-02-07 Jakub Jelinek <jakub@redhat.com>
498
499 PR rtl-optimization/52060
500 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
501 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
502 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
503 and/or i0src_copy2 when needed.
504
505 2012-02-07 Jakub Jelinek <jakub@redhat.com>
506
507 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
508 or LTOPLUGINSONAME if have_c.
509
510 * config/freebsd-spec.h: Add comment about what macros can be defined
511 in this header.
512 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
513 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
514 here instead.
515
516 2012-02-07 Richard Guenther <rguenther@suse.de>
517
518 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
519 newline in -alias dumps.
520
521 2012-02-07 Kai Tietz <ktietz@redhat.com>
522 Dave Korn <dave.korn.cygwin@gmail.com>
523
524 PR target/40068
525 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
526 Take care that typinfo gets dllexport-attribute.
527
528 2012-02-07 Jakub Jelinek <jakub@redhat.com>
529
530 PR middle-end/52074
531 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
532 if modifier < EXPAND_SUM call force_operand on the result.
533
534 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
535
536 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
537 adding __forwarder_dst__ prefix if a forwarder_section attribute is
538 present.
539 (epiphany_function_type): Replace types for specific interrupts with
540 EPIPHANY_FUNCTION_INTERRUPT.
541 (EPIPHANY_INTERRUPT_P): Update.
542 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
543 New static function.
544 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
545 <disinterrupt>: Affects type identity.
546 (epiphany_handle_interrupt_attribute): Handle variable number of
547 arguments.
548 (epiphany_compute_function_type): Update for new
549 epiphany_function_type definition.
550 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
551 handlers with a longcall forwarder.
552 (epiphany_start_function): Handle multiple interrupt arguments and/or
553 forwarder_section attribute.
554
555 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
556 libgloss.
557
558 2012-02-07 Alan Modra <amodra@gmail.com>
559
560 PR target/52107
561 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
562 subregs of TFmode.
563
564 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
565
566 PR tree-optimization/50969
567 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
568 use vec_perm rather than vector_stmt.
569 (vect_model_load_cost): Likewise.
570 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
571 vec_perm to be the same as other vector statements.
572 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
573 cost of vec_perm for TARGET_VSX.
574
575 2012-02-06 Richard Guenther <rguenther@suse.de>
576
577 PR tree-optimization/52115
578 * tree-sra.c (access_has_replacements_p): New function.
579 (sra_modify_assign): Use it to decide whether a use is uninitialized.
580
581 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
582
583 PR middle-end/52047
584 * trans-mem.c (expand_call_tm): Add an assertion.
585 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
586 functions.
587
588 2012-02-06 Richard Guenther <rguenther@suse.de>
589
590 PR tree-optimization/50955
591 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
592 raise cost of expressions that replace an address with an
593 expression based on a different pointer.
594
595 2012-02-06 Jakub Jelinek <jakub@redhat.com>
596
597 PR target/52129
598 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
599 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
600
601 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
602
603 PR c++/48680
604 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
605 -Weffc++ and specify guidelines come from second edition.
606
607 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
608
609 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
610 (sibcall_value_multiple_internal, call_split, call_internal_direct)
611 (call_direct_split, call_value_split, call_value_internal_direct)
612 (call_value_direct_split, call_value_multiple_split): Use jal and
613 jal_macro attributes.
614
615 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
616
617 * reload1.c (reload_regs_reach_end_p): Replace with...
618 (reload_reg_rtx_reaches_end_p): ...this function.
619 (new_spill_reg_store): Update commentary.
620 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
621 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
622 before setting new_spill_reg_store.
623 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
624 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
625 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
626 for non-spill reload registers.
627
628 2012-02-05 Ira Rosen <irar@il.ibm.com>
629
630 PR tree-optimization/52091
631 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
632 (vect_is_simple_use_1): Likewise.
633 * tree-vect-loop.c (vectorizable_reduction): Update calls
634 to vect_is_simple_use_1 and vect_is_simple_use.
635 (vectorizable_live_operation): Likewise.
636 * tree-vect-patterns.c (widened_name_p,
637 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
638 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
639 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
640 vectorizable_shift,vectorizable_operation, vectorizable_store,
641 vectorizable_load): Likewise.
642 (vect_is_simple_cond): Add an argument, pass it to
643 vect_is_simple_use_1.
644 (vectorizable_condition): Update calls to vect_is_simple_cond,
645 vect_is_simple_use.
646 (vect_is_simple_use): Add an argument, the statement in which
647 OPERAND is used. Check that if OPERAND's def stmt is a double
648 reduction phi node, the use is a phi node too.
649 (vect_is_simple_use_1): Add an argument, pass it to
650 vect_is_simple_use.
651 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
652 to vect_is_simple_use.
653
654 2012-02-04 Jakub Jelinek <jakub@redhat.com>
655
656 PR rtl-optimization/52095
657 * modulo-sched.c (dump_insn_locator): New function.
658 (loop_canon_p, sms_schedule): Use it.
659
660 PR rtl-optimization/52113
661 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
662 even for decomposable shift/zext insns.
663
664 2012-02-03 Jakub Jelinek <jakub@redhat.com>
665 Zdenek Dvorak <ook@ucw.cz>
666
667 PR rtl-optimization/52092
668 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
669 on get_iv_value result.
670
671 2012-02-02 Andrew Pinski <apinski@cavium.com>
672
673 PR middle-end/47982
674 PR middle-end/43967
675 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
676
677 2012-02-02 Jakub Jelinek <jakub@redhat.com>
678
679 PR middle-end/48071
680 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
681
682 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
683
684 PR rtl-optimization/49800
685 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
686 (sched_finish): Call regstat_free_n_sets_and_refs.
687
688 2012-02-02 Jia Liu <proljc@gmail.com>
689
690 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
691 than operand 2.
692
693 2012-02-02 Jan Hubicka <jh@suse.cz>
694 Tom de Vries <tom@codesourcery.com>
695
696 PR middle-end/51998
697 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
698 * varpool.c (varpool_analyze_pending_decls): Likewise.
699
700 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
701 Jayant R Sonar <jayant.sonar@kpitcummins.com>
702
703 * config.gcc: Add cr16-* support.
704
705 * doc/extend.texi: Document cr16 extensions.
706 * doc/install.texi: Document cr16 install.
707 * doc/invoke.texi: Document cr16 options.
708 * doc/md.texi: Document cr16 constraints.
709
710 * common/config/cr16/cr16-common.c: New file.
711 * config/cr16/cr16.c: New file.
712 * config/cr16/cr16.h: New file.
713 * config/cr16/cr16.md: New file.
714 * config/cr16/cr16.opt: New file.
715 * config/cr16/cr16-protos.h: New file.
716 * config/cr16/predicates.md: New file.
717 * config/cr16/constraints.md: New file.
718 * config/cr16/t-cr16: New file.
719
720 2012-02-02 Jakub Jelinek <jakub@redhat.com>
721
722 PR target/52086
723 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
724 that operands[2] is either immediate, or q_regs_operand.
725
726 PR tree-optimization/52073
727 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
728 a pattern stmt for pattern uses, ignore uses outside of the loop.
729
730 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
731
732 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
733 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
734 (OUT_AS1, OUT_AS2): Remove.
735
736 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
737
738 PR rtl-optimization/51374
739 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
740 to cross other volatile_refs_p insns.
741
742 2012-02-01 Richard Guenther <rguenther@suse.de>
743
744 * doc/invoke.texi (fno-inline): Clarify documentation.
745 (finline-small-functions): Likewise.
746 (finline-functions): Likewise.
747 * common.opt (finline): Adjust comment and documentation.
748 (finline-small-functions): Clarify documentation.
749 (finline-functions): Likewise.
750 (finline-functions-called-once): Likewise.
751
752 2012-02-01 Tristan Gingold <gingold@adacore.com>
753
754 * c-typeck.c (composite_type): Keep mode for pointers.
755
756 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
757
758 * function.h (regno_reg_rtx): Adjust comment.
759 * reginfo.c (init_reg_modes_target): Only use the previous mode
760 if it fits within one register. Remove MIPS comment.
761
762 2012-01-31 Jakub Jelinek <jakub@redhat.com>
763
764 PR bootstrap/52058
765 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
766
767 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
768
769 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
770 to srak instruction.
771
772 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
773
774 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
775
776 2012-01-31 Jakub Jelinek <jakub@redhat.com>
777
778 PR bootstrap/52041
779 PR bootstrap/52039
780 PR target/51974
781 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
782
783 2012-01-31 Richard Guenther <rguenther@suse.de>
784
785 PR tree-optimization/51528
786 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
787 assigns.
788
789 2012-01-31 Jakub Jelinek <jakub@redhat.com>
790
791 PR bootstrap/52041
792 PR bootstrap/52039
793 PR target/51974
794 * ree.c (add_removable_extension): Change def_map argument
795 to unsigned *, store in def_map 1 + offset into *insn_list vector
796 instead of pointers into the vector.
797 (find_removable_extensions): Adjust caller.
798
799 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
800
801 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
802 Transform all "* quoted-c-code" to { c-code }.
803 Remove redundant test for "optimize" in combine patterns.
804 Move (include "avr-dimode.md") to end of file.
805
806 2012-01-30 Bin Cheng <bin.cheng@arm.com>
807
808 PR target/51835
809 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
810 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
811
812 2012-01-30 Richard Guenther <rguenther@suse.de>
813
814 PR tree-optimization/52028
815 * tree-loop-distribution.c (ldist_gen): Properly update
816 virtual SSA form.
817
818 2012-01-30 Jakub Jelinek <jakub@redhat.com>
819
820 PR debug/52027
821 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
822 set_cur_line_info_table if not emitting debug info.
823
824 PR tree-optimization/52046
825 * tree-vect-patterns.c (check_bool_pattern): Give up if
826 a comparison could throw.
827
828 PR debug/52048
829 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
830
831 2012-01-30 Richard Guenther <rguenther@suse.de>
832
833 PR tree-optimization/52045
834 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
835 SSA form if cfgcleanup did anything.
836
837 2012-01-30 Richard Guenther <rguenther@suse.de>
838
839 PR tree-optimization/52045
840 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
841 before computing final todo.
842
843 2012-01-30 Richard Guenther <rguenther@suse.de>
844
845 PR tree-optimization/51528
846 * tree-sra.c (sra_modify_assign): Re-factor in preparation
847 for PR51528 fix.
848
849 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
850
851 * df-problems.c (df_kill_notes): Check that the use refers
852 to the note under examination.
853
854 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
855
856 PR target/51920
857 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
858 parameter and use short-lived pseudos.
859 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
860 (sparc_expand_vector_init): Const-ify local variables and adjust
861 calls to above functions.
862
863 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
864
865 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
866
867 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
868
869 * doc/invoke.texi: Make usage of "compile time" and
870 "run time"/"runtime" consistent throughout the file.
871
872 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
873
874 * config/alpha/alpha.c (alpha_option_override): Default to
875 full IEEE compliance mode for Go language.
876
877 2011-01-29 Tijl Coosemans <tijl@coosemans.org>
878
879 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
880 (LINK_SSP_SPEC): Define.
881
882 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
883
884 PR target/51871
885 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
886 stubs.
887
888 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
889
890 * doc/invoke.texi: Correct hyphenation of "floating point",
891 "double precision", and related terminology throughout the file.
892
893 2012-01-28 Jakub Jelinek <jakub@redhat.com>
894
895 PR target/52006
896 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
897 arm_general_register_operand predicate for operand 2 instead of
898 register_operand.
899
900 2012-01-27 Ian Lance Taylor <iant@google.com>
901
902 PR go/47656
903 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
904 * builtins.c (expand_builtin_init_trampoline): Add onstack
905 parameter. Change caller.
906 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
907 * tree.c (build_common_builtin_nodes): Declare
908 __builtin_init_heap_trampoline.
909
910 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
911
912 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
913 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
914 * config/avr/avr.c: Ditto.
915 (avr_regnames): Remove because unused.
916 * config/avr/avr.md (*cpse.ne): New peephole.
917 (*cpse.eq): New peephole from former cpse peepholes.
918
919 2012-01-27 Michael Eager <eager@eagercon.com>
920
921 * config/microblaze.c (microblaze_emit_compare): Correct
922 test after pcmp instruction.
923
924 2012-01-27 Richard Guenther <rguenther@suse.de>
925
926 PR tree-optimization/52020
927 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
928
929 2012-01-27 Richard Guenther <rguenther@suse.de>
930
931 * ipa-pure-const.c (check_stmt): Clobbers do not make a
932 function non-const/pure.
933
934 2012-01-27 Richard Guenther <rguenther@suse.de>
935
936 PR tree-optimization/50444
937 * tree-sra.c (build_ref_for_offset): Properly adjust the
938 MEM_REF type for unaligned accesses.
939
940 2012-01-27 Richard Guenther <rguenther@suse.de>
941
942 PR tree-optimization/50444
943 * expr.c (mem_ref_refers_to_non_mem_p): New function.
944 (expand_assignment): Use it. Properly handle misaligned
945 bases when expanding stores to component references.
946 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
947 refactor that case.
948
949 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
950
951 PR middle-end/51389
952 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
953 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
954 * tree-data-ref.c (find_data_references_in_loop): Make static.
955 (compute_all_dependences): Change return type to bool. Bail out
956 for too many datarefs in a loop. Move the hunk resetting the data
957 dependences vector from ...
958 (compute_data_dependences_for_loop): ... here. Account for
959 compute_all_dependences returning false.
960 (compute_data_dependences_for_bb): Likewise.
961 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
962 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
963
964 2012-01-27 Richard Guenther <rguenther@suse.de>
965
966 PR middle-end/51959
967 * expr.c (store_field): Use the alias-set of the scratch memory
968 for storing to it.
969
970 2012-01-27 Tom de Vries <tom@codesourcery.com>
971
972 PR tree-optimization/51990
973 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
974 WITH_SIZE_EXPR.
975 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
976
977 2012-01-27 Jakub Jelinek <jakub@redhat.com>
978
979 PR debug/52001
980 * var-tracking.c (reverse_op): Don't add any reverse operation
981 if V already has any constant locations.
982
983 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
984
985 * doc/invoke.texi: Correct usage of "command line" (noun)
986 vs "command-line" (adjective) throughout.
987
988 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
989
990 * doc/invoke.texi (Language Independent Options): Move
991 -Wcoverage-mismatch blurb from here....
992 (Warning Options): ...to here.
993
994 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
995
996 * config/rs6000/rs6000.c (rs6000_option_override_internal):
997 Set rs6000_always_hint to false for 476.
998
999 2012-01-27 Matthias Klose <doko@ubuntu.com>
1000
1001 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
1002 system root.
1003 * incpath.c (add_standard_paths): Likewise.
1004
1005 2012-01-27 Richard Henderson <rth@redhat.com>
1006
1007 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1008 * config/m68k/sync.md (atomic_test_and_set): Rename from
1009 sync_test_and_setqi and adjust the operands.
1010 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
1011 and unconditionally enable.
1012
1013 2012-01-27 Richard Henderson <rth@redhat.com>
1014
1015 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1016 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
1017 (ldstub): Rename from ldstubqi.
1018 (ldstub<I24MODE>): Remove.
1019
1020 2012-01-27 Richard Henderson <rth@redhat.com>
1021
1022 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
1023 * c-cppbuiltin.c (cpp_atomic_builtins): Define
1024 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
1025 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
1026 * doc/tm.texi: Rebuild.
1027
1028 2012-01-27 Richard Henderson <rth@redhat.com>
1029
1030 * optabs.c (gen_atomic_test_and_set): Remove default.
1031 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
1032
1033 2012-01-26 Jakub Jelinek <jakub@redhat.com>
1034
1035 PR rtl-optimization/51978
1036 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
1037 (combine_reaching_defs): Likewise.
1038 (struct re_info): Remove.
1039 (add_removable_extension): Remove x and data arguments,
1040 add insn, insn_list and def_map. Use the arguments directly
1041 instead of using struct re_info.
1042 (find_removable_extensions): Don't call add_removable_extension
1043 through note_stores, instead just call it with single_set
1044 result if non-NULL.
1045 (find_and_remove_re): Pass curr_cand->expr instead of
1046 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
1047
1048 2012-01-26 Michael Matz <matz@suse.de>
1049
1050 PR tree-optimization/46590
1051 * cfgexpand.c: Revert last change (r183305).
1052 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
1053 regs.
1054 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
1055 checking for emptiness.
1056
1057 2012-01-26 Jakub Jelinek <jakub@redhat.com>
1058
1059 PR middle-end/51895
1060 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
1061 non-addressable non-BLKmode base correctly.
1062
1063 2012-01-26 Michael Matz <matz@suse.de>
1064
1065 PR tree-optimization/48794
1066 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
1067 regions referenced from RESX/EH_DISPATCH.
1068
1069 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1070
1071 * config/s390/s390.h: Make BRANCH_COST an option.
1072 * config/s390/s390.opt: New option -mbranch-cost.
1073
1074 2012-01-26 Richard Henderson <rth@redhat.com>
1075
1076 Revert 2012-01-24 change:
1077 * trans-mem.c (requires_barrier): Do not instrument thread local
1078 variables and emit save/restore for them.
1079
1080 2012-01-25 Jakub Jelinek <jakub@redhat.com>
1081
1082 PR middle-end/51986
1083 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
1084 for pat == 0.
1085
1086 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
1087
1088 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
1089 ASM_OPERANDS.
1090
1091 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
1092
1093 PR target/49868
1094 Rename __pgm to __flash.
1095 Rename __pgm1 to __flash1.
1096 Rename __pgm2 to __flash2.
1097 Rename __pgm3 to __flash3.
1098 Rename __pgm4 to __flash4.
1099 Rename __pgm5 to __flash5.
1100 Rename __pgmx to __memx.
1101 * doc/extend.texi (AVR Named Address Spaces)
1102 Rename address space names as indicated above.
1103 * config/avr/avr.c (avr_addrspace): Ditto.
1104
1105 * config/avr/avr-protos.h
1106 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
1107 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
1108 * config/avr/predicates.md: Ditto.
1109 * config/avr/avr.c Ditto, and
1110 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
1111 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
1112
1113 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
1114 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
1115 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
1116 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
1117 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
1118 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
1119 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
1120 * config/avr/avr.c: Ditto.
1121 * config/avr/avr.md: Ditto.
1122
1123 2012-01-25 Jason Merrill <jason@redhat.com>
1124
1125 PR c++/51992
1126 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
1127
1128 2012-01-25 Jakub Jelinek <jakub@redhat.com>
1129
1130 PR tree-optimization/51987
1131 * tree-data-ref.c (get_references_in_stmt): Handle references in
1132 non-volatile GIMPLE_ASM.
1133
1134 2012-01-25 Richard Guenther <rguenther@suse.de>
1135
1136 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
1137 bases are dereferenced.
1138
1139 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
1140
1141 PR rtl-optimization/48374
1142 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
1143
1144 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
1145
1146 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
1147 compute_data_dependences_for_loop returns false.
1148 * tree-parloops.c (loop_parallel_p): Likewise.
1149
1150 2012-01-25 Richard Guenther <rguenther@suse.de>
1151
1152 * tree.h (get_pointer_alignment_1): Declare.
1153 * builtins.c (get_pointer_alignment_1): New function.
1154 (get_pointer_alignment): Use it.
1155
1156 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1157
1158 PR rtl-optimization/48308
1159 * combine.c (enum undo_kind): Add UNDO_LINKS.
1160 (struct undo): Add member l to other_contents and where.
1161 (do_SUBST_LINK): New.
1162 (SUBST_LINK): New.
1163 (try_combine): Handle LOG_LINKS for the dummy i1 case.
1164 (undo_all): Handle UNDO_LINKS.
1165
1166 2012-01-25 Richard Henderson <rth@redhat.com>
1167
1168 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
1169 mem inputs.
1170
1171 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1172
1173 * optabs.c (gen_atomic_test_and_set): Use each argument.
1174
1175 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1176
1177 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
1178 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
1179 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
1180 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
1181 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
1182 TARGET_PAIRED_SINGLE_FLOAT.
1183
1184 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1185
1186 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
1187 (in_struct, return_val): Remove MEM documentation.
1188 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
1189 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
1190 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
1191 and MEM_SCALAR.
1192 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1193 * cfgexpand.c (add_alias_set_conflicts): Likewise.
1194 * expr.c (store_field): Likewise.
1195 * function.c (assign_stack_temp_for_type): Likewise.
1196 * ifcvt.c (noce_try_cmove_arith): Likewise.
1197 * reload1.c (reload): Likewise.
1198 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
1199 (alpha_set_memflags): Likewise.
1200 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
1201
1202 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
1203
1204 * rtl.h (true_dependence, canon_true_dependence): Remove varies
1205 parameter.
1206 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
1207 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
1208 (true_dependence_1, true_dependence, canon_true_dependence): Remove
1209 varies parameter.
1210 * cselib.c (cselib_rtx_varies_p): Delete.
1211 (cselib_invalidate_mem): Update call to canon_true_dependence.
1212 * dse.c (record_store, check_mem_read_rtx): Likewise.
1213 (scan_reads_nospill): Likewise.
1214 * cse.c (check_dependence): Likewise.
1215 (cse_rtx_varies_p): Delete.
1216 * expr.c (safe_from_p): Update call to true_dependence.
1217 * ira.c (validate_equiv_mem_from_store): Likewise.
1218 (memref_referenced_p): Likewise.
1219 * postreload-gcse.c (find_mem_conflicts): Likewise.
1220 * sched-deps.c (sched_analyze_2): Likewise.
1221 * store-motion.c (load_kills_store): Likewise.
1222 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
1223 * gcse.c (mems_conflict_for_gcse_p): Likewise.
1224 (compute_transp): Update call to canon_true_dependence.
1225
1226 2012-01-25 Richard Henderson <rth@redhat.com>
1227
1228 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
1229 (maybe_emit_atomic_test_and_set): New.
1230 (expand_sync_lock_test_and_set): Use it.
1231 (expand_atomic_test_and_set): Likewise.
1232 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
1233 the implementation; clarify implementation defined details.
1234 * doc/md.texi (atomic_test_and_set): Document.
1235
1236 2012-01-25 Richard Henderson <rth@redhat.com>
1237
1238 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
1239
1240 2012-01-25 Richard Henderson <rth@redhat.com>
1241
1242 PR target/51968
1243 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
1244 to effect no-op split.
1245
1246 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
1247
1248 PR lto/51698
1249 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
1250 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
1251 (BT_FN_VOID_PTR_INT_SIZE): New.
1252 (BT_FN_UINT_UINT_VAR): Remove.
1253 (BT_FN_UINT32_UINT32_VAR): New.
1254 (BT_FN_DOUBLE_VPTR): Remove.
1255 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
1256
1257 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
1258 (_ITM_changeTransactionMode): Same.
1259 (_ITM_memmoveRtWt): Change return type to void.
1260 (_ITM_memcpyRtWt): Same.
1261 (_ITM_memsetW): Same.
1262 (_ITM_RaRD): Change types to double.
1263 (_ITM_RD): Same.
1264 (_ITM_RaWD): Same.
1265 (_ITM_RfWD): Same.
1266
1267 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
1268
1269 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
1270 Patrick Marlier <patrick.marlier@gmail.com>
1271
1272 * trans-mem.c (requires_barrier): Do not instrument thread local
1273 variables and emit save/restore for them.
1274
1275 2012-01-24 Jason Merrill <jason@redhat.com>
1276
1277 PR c++/51812
1278 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
1279 output static aliases.
1280
1281 2012-01-24 Jakub Jelinek <jakub@redhat.com>
1282
1283 PR driver/47249
1284 * common.opt (-pie, -shared, pie, shared): Change from Common to
1285 Driver.
1286 * gcc.c (display_help): Display help for -pie and -shared.
1287
1288 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
1289
1290 PR target/49868
1291 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
1292 Remove note on size/offset limitation.
1293 (AVR Variable Attributes): Add example how to read data located
1294 with progmem. Refer to named address spaces.
1295 * doc/invoke.texi (AVR Options): Fix typo.
1296
1297 2012-01-24 Richard Guenther <rguenther@suse.de>
1298
1299 Forward-port to trunk
1300 2010-09-21 Jakub Jelinek <jakub@redhat.com>
1301
1302 PR middle-end/45678
1303 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
1304 op0 isn't sufficiently aligned and there is movmisalignM
1305 insn for mode, use it to load op0 into a temporary register.
1306
1307 2012-01-24 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR target/51957
1310 * target.def (const_not_ok_for_debug_p): New hook.
1311 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
1312 documentation.
1313 * doc/tm.texi: Regenerated.
1314 * dwarf2out.c (const_ok_for_output_1): If
1315 targetm.const_not_ok_for_debug_p returns true, fail.
1316 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
1317 function.
1318 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
1319
1320 2012-01-23 Kai Tietz <ktietz@redhat.com>
1321
1322 PR target/51900
1323 * config/i386/predicates.md (symbolic_operand): Allow
1324 UNSPEC_PCREL as PIC expression for lea.
1325 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
1326 * config/i386/i386.c (ix86_delegitimize_address): Handle
1327 UNSPEC_PCREL for none-MEM, too.
1328
1329 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
1330
1331 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
1332 (ipa_tm_create_version_alias): Same.
1333
1334 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
1335
1336 PR libitm/51830
1337 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
1338 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
1339
1340 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
1341 Patrick Marlier <patrick.marlier@gmail.com>
1342 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1343
1344 PR lto/51916
1345 * lto-wrapper.c (run_gcc): Pass the LTO section name to
1346 simple_object_start_read.
1347
1348 2012-01-23 Richard Guenther <rguenther@suse.de>
1349
1350
1351 PR tree-optimization/51895
1352 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
1353 parameter decomposition into BLKmode components.
1354
1355 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
1356
1357 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
1358 fake variables for restrict-qualified pointers whose pointed-to type
1359 contains a placeholder.
1360
1361 2012-01-23 Richard Guenther <rguenther@suse.de>
1362
1363 PR tree-optimization/51949
1364 * ipa-split.c (execute_split_functions): Do not split malloc functions.
1365
1366 2012-01-23 Jakub Jelinek <jakub@redhat.com>
1367
1368 PR rtl-optimization/51933
1369 * ree.c (transform_ifelse): Return true right away if dstreg is
1370 already wider or equal to cand->mode.
1371 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
1372 (make_defs_and_copies_lists): Remove defs_list and copies_list
1373 arguments, add state argument, just truncate state->work_list
1374 instead of always allocating and freeing the vector. Assert that
1375 get_defs succeeds instead of returning 2. Changed return type to bool.
1376 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
1377 have ext_src_mode, see if it has been modified already with the
1378 right kind of extension and has been extended before from the
1379 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
1380 just return true. Remember the original mode in state->modified array.
1381 (combine_reaching_defs): Add state argument. Don't allocate and
1382 free here def_list, copied_list and vec vectors, instead just
1383 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
1384 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
1385 Add state variable, clear vectors in it, initialize state.modified
1386 if needed. Free all the vectors at the end and state.modified too.
1387 Don't skip a candidate if the extension expression has been modified.
1388
1389 2012-01-22 Douglas B Rupp <rupp@gnat.com>
1390
1391 PR target/47096
1392 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
1393 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
1394 (extra_options) interix.opt -> i386/interix.opt"
1395 (extra_objs):Add winnt-stubs.o
1396 * configure.ac: Add interix to target_os .comm on PE check.
1397 * configure: Regenerate.
1398 * config/interix3.h: Delete and move bits to..
1399 * config/interix.h: Delete and move bits to..
1400 * config/i386/i386-interix3.h: Delete and move bits to..
1401 * config/i386/i386-interix.h: ..here.
1402 (TARGET_CPU_DEFAULT): Remove redefinition.
1403 (TARGET_ASM_CONSTRUCTOR): Undefine.
1404 (SUBTARGET_SWITCHES): Define for ms-bitfields.
1405 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
1406 (PTRDIFF_TYPE): Define.
1407 (LONG_DOUBLE_TYPE_SIZE): Define.
1408 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
1409 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1410 (TARGET_SECTION_TYPE_FLAGS): Define.
1411 (ASM_DECLARE_FUNCTION_NAME): Define.
1412 (ASM_OUTPUT_EXTERNAL): Define.
1413 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
1414 (ASM_OUTPUT_ALIGNED_BSS): Define.
1415 (PCC_BITFIELD_TYPE_MATTERS): Define.
1416 (USE_CONST_SECTION): Define.
1417 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
1418 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
1419 (SUPPORTS_ONE_ONLY): Remove.
1420 (I386_PE_STRIP_ENCODING): Define.
1421 * config/interix.opt: Delete and move bits to..
1422 * config/i386/interix.opt: ..here. New.
1423 (mpe-aligned-commons): Add.
1424 * config/i386/t-interix: Add copyright header.
1425 (winnt-stubs.o): Add rule.
1426
1427 2012-01-22 Jason Merrill <jason@redhat.com>
1428
1429 PR c++/51832
1430 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
1431 for extra name aliases.
1432
1433 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
1434
1435 PR rtl-optimization/51924
1436 * ree.c (combine_set_extension): Improve debugging message.
1437 (combine_reaching_defs): Likewise.
1438 (get_defs): Rename confusingly named variable.
1439 (find_and_remove_re): Skip a candidate if the extension expression has
1440 been modified.
1441
1442 2012-01-21 Robert Millan <rmh@gnu.org>
1443 Gerald Pfeifer <gerald@pfeifer.com>
1444
1445 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
1446 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
1447
1448 2012-01-20 Jakub Jelinek <jakub@redhat.com>
1449
1450 PR tree-optimization/51914
1451 * tree-vect-stmts.c (vectorizable_conversion): For
1452 cvt_type && modifier == WIDEN, put temporary with cvt_type
1453 at the beginning of vec_dsts and set vec_dest to temporary
1454 with vectype_out.
1455
1456 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
1457
1458 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
1459
1460 2011-01-20 Tijl Coosemans <tijl@coosemans.org>
1461
1462 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
1463 * config/rs6000/rs6000.c: Likewise.
1464
1465 2012-01-20 Jakub Jelinek <jakub@redhat.com>
1466
1467 PR target/51915
1468 * config/arm/arm.c (arm_count_output_move_double_insns): Call
1469 output_move_double on a copy of operands array.
1470
1471 2012-01-20 Cary Coutant <ccoutant@google.com>
1472 Dodji Seketeli <dodji@redhat.com>
1473
1474 PR debug/45682
1475 * dwarf2out.c (copy_declaration_context): Return ref to parent
1476 of declaration DIE, if necessary.
1477 (remove_child_or_replace_with_skeleton): Add new parameter; update
1478 caller. Place skeleton DIE under parent DIE of original declaration.
1479 Move call to copy_declaration_context to here ...
1480 (break_out_comdat_types): ... from here.
1481
1482 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1483
1484 PR rtl-optimization/51856
1485 * reload.c (find_reloads_subreg_address): Set the address_reloaded
1486 flag to reloaded.
1487
1488 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1489
1490 PR target/51819
1491 * config/arm/arm.c (arm_print_operand): Correct output of alignment
1492 hints for neon loads and stores.
1493
1494 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
1495
1496 PR target/49868
1497 PR target/50887
1498 * doc/extend.texi (Named Address Spaces): Split into subsections.
1499 (AVR Named Address Spaces): New subsection.
1500 (M32C Named Address Spaces): New subsection.
1501 (RL78 Named Address Spaces): New subsection.
1502 (SPU Named Address Spaces): New subsection.
1503 (Variable Attributes): New anchor "AVR Variable Attributes".
1504 (AVR Variable Attributes): Rewrite and avoid wording
1505 "address space" in this context.
1506 * doc/invoke.texi (AVR Options): Rewrite and add documentation
1507 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
1508 (AVR Built-in Macros): New subsubsection therein.
1509 * doc/md.texi (AVR constraints): Remove "C04", "R".
1510
1511 2012-01-20 Richard Guenther <rguenther@suse.de>
1512
1513 PR tree-optimization/51903
1514 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
1515 when removing stmts.
1516
1517 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1518
1519 PR target/50313
1520 * config/arm/arm.c (arm_load_pic_register): Use
1521 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
1522 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
1523 (arm_pic_static_addr): Likewise.
1524 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
1525 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
1526 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
1527 (pic_load_addr_unified): New.
1528
1529 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
1530
1531 PR target/51106
1532 * function.c (instantiate_virtual_regs_in_insn): Use
1533 delete_insn_and_edges when removing a wrong asm insn.
1534
1535 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
1536
1537 PR rtl-optimization/40761
1538 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
1539 Add new member loop_num.
1540 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
1541 (ira_build): Remove the parameter.
1542
1543 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
1544 (ira.c): Do not build CFG loops for one region allocation. Remove
1545 argument from ira_build call.
1546
1547 * ira-build.c (init_loop_tree_node): New function.
1548 (create_loop_tree_nodes): Use it. Separate the case when CFG
1549 loops are not built.
1550 (more_one_region_p): Check current_loops.
1551 (finish_loop_tree_nodes): Separate the case when CFG loops are not
1552 built.
1553 (add_loop_to_tree): Process loop equal to NULL too.
1554 (form_loop_tree): Separate the case when CFG loops are not built.
1555 Use explicitly number for the root.
1556 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
1557 an assertion.
1558 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
1559 instead of loop->num.
1560 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
1561 (mark_all_loops_for_removal): Ditto.
1562 (remove_unnecessary_regions): Separate the case when CFG loops
1563 are not built.
1564 (ira_build): Remove the parameter. Use explicit number of regions
1565 when CFG loops are not built.
1566
1567 * ira-color.c (print_loop_title): Separate the case for the root node.
1568 Use loop_num instead of loop->num.
1569 (move_spill_restore): Use loop_num instead of loop->num.
1570
1571 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
1572 (change_loop): Ditto.
1573 (change_loop): Use loop_num instead of loop->num.
1574
1575 * ira-lives.c (process_bb_node_lives): Ditto.
1576
1577 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
1578
1579 * ira-conflicts.c (print_allocno_conflicts): Ditto.
1580
1581 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1582
1583 PR libmudflap/40778
1584 * tree-mudflap.c (mf_artificial): New function.
1585 (execute_mudflap_function_ops, execute_mudflap_function_decls,
1586 mx_register_decls, mudflap_enqueue_decl): Use it.
1587
1588 PR target/51876
1589 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
1590 numbers in the insn pattern.
1591
1592 2012-01-19 Michael Matz <matz@suse.de>
1593
1594 PR tree-optimization/46590
1595 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
1596 use it in remembering which conflicts we already created.
1597 (add_scope_conflicts): Adjust call to above, (de)allocate helper
1598 bitmap.
1599
1600 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
1601
1602 PR lto/51280
1603 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
1604 (merge_and_complain): Same.
1605
1606 2012-01-19 Jakub Jelinek <jakub@redhat.com>
1607
1608 PR bootstrap/50237
1609 * config/initfini-array.h: Guard content of the header
1610 with #ifdef HAVE_INITFINI_ARRAY.
1611 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
1612 Add initfini-array.h to tm_file here.
1613 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
1614 * config.gcc: Don't add initfini-array.h to tm_file here.
1615 * configure: Regenerated.
1616
1617 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
1618
1619 PR rtl-optimization/51505
1620 * df-problems.c (df_kill_notes): New parameter live. Update comment.
1621 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
1622 (df_note_bb_compute): Update the call to df_kill_notes.
1623
1624 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
1625
1626 * trans-mem.c (requires_barrier): Remove call to is_global_var.
1627
1628 2012-01-18 Richard Guenther <rguenther@suse.de>
1629
1630 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
1631 of conversions to void *.
1632
1633 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1634 Richard Sandiford <rdsandiford@googlemail.com>
1635
1636 PR middle-end/50325
1637 PR middle-end/51192
1638 * optabs.h (simplify_expand_binop): Declare.
1639 * optabs.c (simplify_expand_binop): Make global.
1640 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
1641 endian targets if the source cannot be exactly covered by word
1642 mode chunks.
1643
1644 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1645
1646 PR bootstrap/51872
1647 * hard-reg-set.h (struct hard_reg_set_container): New type.
1648 * target.h (struct hard_reg_set_container): Forward declare.
1649 * target.def (set_up_by_prologue): New target hook.
1650 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
1651 * doc/tm.texi: Regenerated.
1652 * function.c (thread_prologue_and_epilogue_insns): Change
1653 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
1654 Call targetm.set_up_by_prologue on it.
1655 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
1656 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
1657
1658 2012-01-17 Nick Clifton <nickc@redhat.com>
1659
1660 * config/rx/rx.c (rx_can_use_simple_return): New function.
1661 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
1662 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
1663
1664 2012-01-17 Richard Guenther <rguenther@suse.de>
1665
1666 PR middle-end/51782
1667 * expr.c (expand_assignment): Take address-space information
1668 from the address operand of MEM_REF and TARGET_MEM_REF.
1669 (expand_expr_real_1): Likewise.
1670
1671 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1672
1673 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
1674 reload dump is requested.
1675
1676 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
1677
1678 PR other/51165
1679 * trans-mem.c (requires_barrier): Call may_be_aliased.
1680
1681 2012-01-17 Jakub Jelinek <jakub@redhat.com>
1682
1683 PR tree-optimization/51877
1684 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
1685 call arguments and fndecls compare equal, instead return false if they
1686 don't. Return true only if lhs1 and lhs2 are either both NULL, or
1687 both SSA_NAMEs that are valueized the same, or they satisfy
1688 operand_equal_p.
1689
1690 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1691
1692 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
1693 Solaris 11+.
1694 * configure: Regenerate.
1695
1696 2012-01-16 Jan Hubicka <jh@suse.cz>
1697
1698 PR c/12245
1699 PR c++/14179
1700 * convert.c (convert_to_integer): Use fold_convert for
1701 converting an INTEGER_CST to integer type.
1702
1703 2012-01-16 Jason Merrill <jason@redhat.com>
1704
1705 PR c++/14179
1706 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
1707
1708 2012-01-16 Jakub Jelinek <jakub@redhat.com>
1709
1710 PR bootstrap/51860
1711 * config/s390/s390.c (s390_chunkify_start): Don't skip
1712 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
1713 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
1714 If insn is followed by NOTE_INSN_VAR_LOCATION or
1715 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
1716 Don't use location of note insns.
1717
1718 PR tree-optimization/51865
1719 * tree-inline.c (tree_function_versioning): Call remap_decl
1720 on DECL_RESULT whenever it has VOID_TYPE_P type.
1721
1722 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
1723
1724 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
1725 for calls to locally-binding MIPS16 functions if only the return
1726 type uses float regs.
1727
1728 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
1729 Richard Sandiford <rdsandiford@googlemail.com>
1730
1731 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
1732 (SYMBOL_32_HIGH): Likewise.
1733 (mips_output_tls_reloc_directive): Declare.
1734 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
1735 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
1736 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
1737 (mips_lo_relocs, mips_hi_relocs): Make extern.
1738 (mips16_stub_function): Move up file.
1739 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
1740 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
1741 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
1742 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
1743 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
1744 (mips_get_tp): Add MIPS16 support.
1745 (mips_legitimize_tls_address): Remove MIPS16 sorry().
1746 Generalize DTPREL and TPREL handling.
1747 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
1748 Add MIPS16 TLS support.
1749 (mips_output_tls_reloc_directive): New function.
1750 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
1751 * config/mips/predicates.md (symbolic_operand_with_high)
1752 (tls_reloc_operand): New predicates.
1753 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
1754 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
1755 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
1756 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
1757 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
1758 (*tls_get_tp_mips16_call_<mode>): Likewise.
1759
1760 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
1761
1762 PR rtl-optimization/51821
1763 * recog.c (peep2_find_free_register): Determine clobbered registers
1764 from insn pattern.
1765
1766 2012-01-14 Denis Chertykov <chertykov@gmail.com>
1767
1768 PR target/50925
1769 * config/avr/avr-protos.h: Revert change of 2012-01-09.
1770 * config/avr/avr.c: Likewise.
1771 * config/avr/avr.h: Likewise.
1772
1773 2012-01-13 Ian Lance Taylor <iant@google.com>
1774
1775 PR c++/50012
1776 * tree.h (TYPE_QUALS): Add cast to int.
1777 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
1778
1779 2012-01-13 Ian Lance Taylor <iant@google.com>
1780
1781 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
1782 comparing param_index to VEC_length result.
1783
1784 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
1785
1786 * c-decl.c: Do not include tree-mudflap.h
1787 * tree-optimize.c: Likewise.
1788 * Makefile.in: Update dependencies.
1789
1790 2012-01-13 Richard Guenther <rguenther@suse.de>
1791
1792 PR middle-end/8081
1793 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
1794 variable-sized result always use RSO.
1795
1796 2012-01-12 DJ Delorie <dj@redhat.com>
1797
1798 * cfgexpand.c (convert_debug_memory_address): Allow any valid
1799 pointer type, not just the default pointer type.
1800
1801 2012-01-09 Richard Henderson <rth@redhat.com>
1802 Denis Chertykov <chertykov@gmail.com>
1803
1804 PR target/50925
1805 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
1806 * config/avr/avr.c (avr_can_eliminate): Simplify.
1807 (avr_initial_elimination_offset): Likewise.
1808 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
1809 (expand_epilogue): Likewise.
1810 (avr_legitimize_address): Gut.
1811 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
1812 (avr_hard_regno_nregs): New.
1813 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
1814 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
1815 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
1816 add soft frame pointer.
1817 (CALL_USED_REGISTERS): Likewise.
1818 (REG_CLASS_CONTENTS): Likewise.
1819 (REGISTER_NAMES): Likewise.
1820 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
1821 (HARD_FRAME_POINTER_REGNUM): New.
1822 (FRAME_POINTER_REGNUM): Use soft frame pointer.
1823 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
1824 remove the HARD_FRAME_POINTER self-elimination.
1825
1826 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
1827
1828 PR target/51756
1829 * config/avr/avr.c (avr_encode_section_info): Test for absence of
1830 DECL_EXTERNAL when checking for initializers of progmem variables.
1831
1832 2012-01-12 Ira Rosen <irar@il.ibm.com>
1833
1834 PR tree-optimization/51799
1835 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
1836 that the last operation is a type demotion.
1837
1838 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
1839
1840 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
1841 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
1842
1843 2012-01-11 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR bootstrap/51796
1846 * combine.c (distribute_notes): If i3 is a noreturn call,
1847 allow old_size to be equal to args_size and make sure the
1848 noreturn call gets REG_ARGS_SIZE note.
1849 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
1850 on noreturn calls even when the delta is 0.
1851
1852 2012-01-11 Nathan Sidwell <nathan@acm.org>
1853
1854 * gcov.c (STRING_SIZE): Remove.
1855 (generate_results): Erase annotations for source files with no
1856 coverage information.
1857 (read_line): New.
1858 (output_lines): Use it.
1859
1860 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1861
1862 * gimple.h (gimplify_body): Remove first argument.
1863 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
1864 pointer set here, instead just pass DATA to walk_tree.
1865 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
1866 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
1867 (unvisit_body): Likewise, but with unmark_visited.
1868 (gimplify_body): Remove BODY_P argument and adjust.
1869 (gimplify_function_tree): Adjust call to gimplify_body.
1870 * omp-low.c (finalize_task_copyfn): Likewise.
1871
1872 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
1873
1874 * tree.h (build_function_decl_skip_args): Add boolean parameter.
1875 (build_function_type_skip_args): Delete.
1876 * tree.c (build_function_type_skip_args): Make static and add
1877 SKIP_RETURN parameter. Fix thinko in the handling of variants.
1878 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
1879 pass it to build_function_type_skip_args.
1880 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
1881 (tree_function_versioning): Likewise.
1882 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
1883 build_function_decl_skip_args.
1884 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
1885 and pass it to build_function_decl_skip_args/tree_function_versioning.
1886 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
1887 * ipa-inline-transform.c (save_inline_function_body): Likewise.
1888 * trans-mem.c (ipa_tm_create_version): Likewise.
1889 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
1890 * tree-inline.c (declare_return_variable): Remove always-true test.
1891 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
1892 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
1893 * ipa-split.c (split_function): Skip the return value for the split
1894 part if it doesn't return.
1895
1896 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1897
1898 PR tree-optimization/49642
1899 * ipa-split.c (forbidden_dominators): New variable.
1900 (check_forbidden_calls): New function.
1901 (dominated_by_forbidden): Likewise.
1902 (consider_split): Check for forbidden dominators.
1903 (execute_split_functions): Initialize and free forbidden
1904 dominators info; call check_forbidden_calls.
1905
1906 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1907
1908 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
1909
1910 2012-01-11 Nick Clifton <nickc@redhat.com>
1911
1912 * config/rx/rx.md (return): Define pattern.
1913
1914 2012-01-11 Richard Guenther <rguenther@suse.de>
1915
1916 * doc/extend.texi (malloc attribute): Adjust according to
1917 implementation.
1918
1919 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
1920 Patrick Marlier <patrick.marlier@gmail.com>
1921
1922 PR middle-end/51516
1923 * trans-mem.c (get_cg_data): Traverse aliases if requested.
1924 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
1925 (ipa_tm_note_irrevocable): Same.
1926 (ipa_tm_scan_irr_block): Same.
1927 (ipa_tm_decrement_clone_counts): Same.
1928 (ipa_tm_scan_irr_function): Same.
1929 (ipa_tm_create_version_alias): Same.
1930 (ipa_tm_create_version): Same.
1931 (ipa_tm_transform_calls_redirect): Same.
1932 (ipa_tm_transform_calls): Same.
1933 (ipa_tm_transform_transaction): Same.
1934 (ipa_tm_execute): Same.
1935
1936 2012-01-10 Richard Guenther <rguenther@suse.de>
1937
1938 PR middle-end/51806
1939 * opts.c (common_handle_option): Handle -Werror.
1940
1941 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
1942
1943 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
1944 operand number.
1945
1946 2012-01-10 Jason Merrill <jason@redhat.com>
1947
1948 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
1949 information.
1950
1951 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1952
1953 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
1954 supports R_386_TLS_GD_PLT reloc.
1955 (gcc_cv_as_ix86_tlsldmplt): Check if linker
1956 supports R_386_TLS_LDM_PLT reloc.
1957 * configure: Regenerate.
1958 * config.in: Regenerate.
1959
1960 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
1961
1962 PR target/49868
1963 Extend __pgmx semantics to linearize memory.
1964 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
1965 determine if code comes inline or from libgcc.
1966 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
1967 (movmem_qi, movmem_qi): Set constraint #2 to "n".
1968 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
1969 (movmemx_qi, movmemx_hi): New insns.
1970 (xload_<mode>_libgcc): Rewrite to new insn condition.
1971 (xload_<mode>): Remove insns.
1972 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
1973 cases that don't satisfy avr_xload_libgcc_p().
1974 (avr_addr_space_convert): Allow converting in any direction.
1975 (avr_addr_space_subset_p): Return always true.
1976 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
1977 (avr_emit_movmemhi): Ditto.
1978 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
1979 (avr_out_movmem): Ditto.
1980 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
1981 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
1982 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
1983 (avr_encode_section_info): Encode 'progmem' in symbol flags.
1984 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
1985
1986 2012-01-10 Richard Guenther <rguenther@suse.de>
1987
1988 PR tree-optimization/50913
1989 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
1990 Require data-refs to be representable by Graphite with respect
1991 to any loop nest.
1992
1993 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
1994
1995 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
1996 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
1997
1998 2012-01-10 Tom de Vries <tom@codesourcery.com>
1999
2000 PR rtl-optimization/51271
2001 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
2002 handling annulled branch.
2003
2004 2012-01-10 Richard Henderson <rth@redhat.com>
2005
2006 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
2007 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
2008 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
2009 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
2010 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
2011 arm_expand_vec_perm_const): New.
2012 * config/arm/arm-protos.h: Update.
2013 * config/arm/neon.md (UNSPEC_VCONCAT): New.
2014 (*neon_vswp<VDQX>): New.
2015 (neon_vcombine<VDX>): Use neon_split_vcombine.
2016 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
2017 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
2018 (vec_perm<VE>): New.
2019
2020 2012-01-10 Richard Henderson <rth@redhat.com>
2021
2022 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
2023 use it if reload_completed.
2024 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
2025 arm_output_asm_insn, arm_process_output_memory_barrier,
2026 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
2027 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
2028 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
2029 arm_process_output_sync_insn, arm_output_sync_insn,
2030 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
2031 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
2032 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
2033 (emit_unlikely_jump): New.
2034 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
2035 (arm_split_atomic_op): New.
2036 * config/arm/arm-protos.h: Update.
2037 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
2038 (struct arm_sync_generator): Remove.
2039 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
2040 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
2041 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
2042 (VUNSPEC_LL, VUNSPEC_SC): New.
2043 (sync_result, sync_memory, sync_required_value, sync_new_value,
2044 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
2045 (attr length): Don't use arm_sync_loop_insns.
2046 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
2047 (movsfcc, movdfcc): Likewise.
2048 * config/arm/constraints.md (Ua): New.
2049 * config/arm/prediates.md (mem_noofs_operand): New.
2050 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
2051 (sync_clobber, sync_t2_reqd): Remove.
2052 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
2053 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
2054 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
2055 (arm_sync_compare_and_swap<SIDI>): Remove.
2056 (arm_sync_compare_and_swap<NARROW>): Remove.
2057 (arm_sync_lock_test_and_set<SIDI>): Remove.
2058 (arm_sync_lock_test_and_set<NARROW>): Remove.
2059 (arm_sync_new_<syncop><SIDI>): Remove.
2060 (arm_sync_new_<syncop><NARROW>): Remove.
2061 (arm_sync_new_nand<SIDI>): Remove.
2062 (arm_sync_new_nand<NARROW>): Remove.
2063 (arm_sync_old_<syncop><SIDI>): Remove.
2064 (arm_sync_old_<syncop><NARROW>): Remove.
2065 (arm_sync_old_nand<SIDI>): Remove.
2066 (arm_sync_old_nand<NARROW>): Remove.
2067 (*memory_barrier): Merge arm_output_memory_barrier.
2068 (atomic_compare_and_swap<QHSD>): New.
2069 (atomic_compare_and_swap<NARROW>_1): New.
2070 (atomic_compare_and_swap<SIDI>_1): New.
2071 (atomic_exchange<QHSD>): New.
2072 (cas_cmp_operand, cas_cmp_str): New.
2073 (atomic_op_operand, atomic_op_str): New.
2074 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
2075 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
2076 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
2077 (arm_load_exclusive<NARROW>): New.
2078 (arm_load_exclusivesi, arm_load_exclusivedi): New.
2079 (arm_store_exclusive<QHSD>): New.
2080
2081 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2082
2083 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
2084 reload patterns if -mvsx-scalar-memory.
2085
2086 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
2087 generated, even -mno-vsx-scalar-double was used.
2088 (vsx_xscvdpsp_scalar): Likewise.
2089 (vsx_xscvspdp_scalar2): Likewise.
2090
2091 2012-01-09 Tom de Vries <tom@codesourcery.com>
2092 Andrew Pinski <apinski@cavium.com>
2093
2094 PR debug/51471
2095 * reorg.c (fill_slots_from_thread): Don't speculate
2096 frame-related insns.
2097
2098 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
2099
2100 * sched-int.h (bb_note): Move to...
2101 * basic-block.h: ...here.
2102 * haifa-sched.c (bb_note): Move to...
2103 * cfgrtl.c: ...here.
2104 * function.c (next_block_for_reg): New function.
2105 (move_insn_for_shrink_wrap): Likewise.
2106 (prepare_shrink_wrap): Rewrite to use the above.
2107
2108 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
2109
2110 * gimple.c (is_gimple_non_addressable): Remove.
2111 * gimple.h: Remove is_gimple_non_addressable.
2112 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
2113 is_gimple_non_addressable.
2114 * trans-mem.c (expand_assign_tm): Same.
2115
2116 2012-01-09 Richard Guenther <rguenther@suse.de>
2117
2118 PR tree-optimization/51775
2119 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
2120 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
2121
2122 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2123
2124 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
2125 tuning parameters.
2126 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
2127
2128 2012-01-09 Richard Guenther <rguenther@suse.de>
2129
2130 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
2131
2132 2012-01-08 Jan Hubicka <jh@suse.cz>
2133
2134 PR tree-optimize/51680
2135 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
2136 on when known_vals needs to be computed; cleanup.
2137
2138 2012-01-08 Jan Hubicka <jh@suse.cz>
2139
2140 PR tree-optimize/51694
2141 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
2142
2143 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
2144
2145 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
2146 for -std=c++98 and -std=c++11 too.
2147
2148 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
2149
2150 * cfgloop.c (cancel_loop): Add free() of bbs array.
2151
2152 2012-01-07 Jan Hubicka <jh@suse.cz>
2153
2154 PR tree-optimization/51600
2155 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
2156 that benefits small functions.
2157
2158 2012-01-07 Jan Hubicka <jh@suse.cz>
2159
2160 * ipa-inline.c (want_inline_small_function_p): Fix formating.
2161
2162 2012-01-07 Jan Hubicka <jh@suse.cz>
2163
2164 PR tree-optimization/51680
2165 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
2166 whose inlining reduce unit size.
2167
2168 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
2169
2170 PR bootstrap/51725
2171 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
2172 Add canonical node to containing_mem chain after the non-canonical
2173 one, even if there weren't any locs to propagate.
2174 (remove_useless_values): Keep only canonical values.
2175 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
2176 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
2177 canonicalize mem_chain elements that are not discarded.
2178
2179 2012-01-06 Jakub Jelinek <jakub@redhat.com>
2180
2181 PR target/47333
2182 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
2183 before emitting functions.
2184
2185 PR gcov-profile/50127
2186 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
2187 clear_aux_for_blocks.
2188
2189 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
2190
2191 PR debug/51746
2192 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
2193
2194 2012-01-06 Arnaud Charlet <charlet@adacore.com>
2195
2196 * c-decl.c (ext_block): Moved up.
2197 (collect_all_refs, for_each_global_decl): Take ext_block into account.
2198
2199 2012-01-06 Han Shen <shenhan@google.com>
2200
2201 Translate built-in include paths for sysroot.
2202 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
2203 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
2204
2205 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
2206 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
2207
2208 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
2209 control whether sysroot should be prepended to gxx include dir.
2210
2211 * configure: Regenerate.
2212
2213 2012-01-06 Torvald Riegel <triegel@redhat.com>
2214
2215 PR rtl-optimization/51771
2216 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
2217 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
2218
2219 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
2220
2221 PR tree-optimization/51315
2222 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
2223 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
2224
2225 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
2226
2227 PR target/51681
2228 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
2229 for shrp pattern. Correctly handle and fixup shift variable.
2230 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
2231
2232 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2233
2234 PR debug/51762
2235 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
2236 note when !ACCUMULATE_OUTGOING_ARGS.
2237
2238 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
2239
2240 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
2241 condition.
2242 (extract_range_from_unary_expr_1): Avoid useless computations.
2243
2244 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2245
2246 PR rtl-optimization/51767
2247 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
2248 of jump_block and add an extra edge for degenerated asm gotos.
2249
2250 PR middle-end/51768
2251 * stmt.c (check_unique_operand_names): Don't ICE during error
2252 reporting if i is from labels chain.
2253
2254 PR middle-end/44777
2255 * profile.c (branch_prob): Split bbs that have exit edge
2256 and need a fake entry edge too.
2257
2258 2012-01-05 Jan Hubicka <jh@suse.cz>
2259
2260 PR middle-end/49710
2261 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
2262 unlooping loops.
2263
2264 2012-01-05 Richard Guenther <rguenther@suse.de>
2265
2266 PR lto/50490
2267 * tree-streamer-out.c (write_ts_optimization): New function.
2268 (streamer_write_tree_body): Call it.
2269 * tree-streamer-in.c (lto_input_ts_optimization): New function.
2270 (streamer_read_tree_body): Call it.
2271 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
2272
2273 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2274
2275 PR middle-end/51761
2276 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
2277 * gimplify.c (gimplify_cleanup_point_expr): Save and set
2278 in_cleanup_point_expr before gimplify_stmt call and restore it
2279 afterwards.
2280 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
2281 in_cleanup_point_expr is false.
2282
2283 2012-01-05 Richard Guenther <rguenther@suse.de>
2284
2285 PR middle-end/51764
2286 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
2287 to c.opt.
2288 * toplev.c (process_options): Reject combining mudflap and LTO.
2289 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
2290
2291 2012-01-05 Richard Guenther <rguenther@suse.de>
2292
2293 PR tree-optimization/51760
2294 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
2295 not VARYING.
2296 (bit_value_unop): Handle UNDEFINED operands.
2297 (bit_value_binop): Likewise.
2298
2299 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
2300
2301 * config/avr/avr.c (avr_replace_prefix): Remove.
2302 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
2303 (avr_asm_function_rodata_section): Ditto.
2304 (avr_asm_select_section): Ditto.
2305
2306 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2307
2308 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
2309 insertion.
2310
2311 2012-01-05 Jakub Jelinek <jakub@redhat.com>
2312
2313 PR bootstrap/51648
2314 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
2315 calls that have any non-fake successor edges.
2316
2317 PR debug/51746
2318 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
2319
2320 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
2321
2322 PR tree-optimization/51624
2323 * tree-sra.c (build_ref_for_model): When replicating a chain of
2324 COMPONENT_REFs, stop as soon as the offset would become negative.
2325
2326 2012-01-04 Jakub Jelinek <jakub@redhat.com>
2327
2328 PR debug/51695
2329 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
2330 in .debug_loc on the floor.
2331
2332 2012-01-04 Andrew Pinski <apinski@cavium.com>
2333
2334 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
2335
2336 2012-01-04 Andrew Pinski <apinski@cavium.com>
2337 Adam Nemet <anemet@caviumnetworks.com>
2338
2339 * config/mips/mips.md (size): Add SI and DI.
2340 (SIZE): New mode attribute.
2341 (U): New code attribute.
2342 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
2343 (mips_lbux_<mode>): Delete.
2344 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
2345 (mips_lhx): Use gen_mips_lhx_extsi.
2346 (mips_lhx_<mode>): Delete.
2347 (mips_lwx): Delete.
2348 (mips_l<size>x): New expand.
2349 (mips_lwx_<mode>): Delete.
2350 (mips_l<GPR:size>x_<P:mode>): New pattern.
2351 (*mips_lw<u>x_<P:mode>_ext): Likewise.
2352 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
2353 * config/mips/mips.c (mips_lx_address_p): New function.
2354 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
2355 (dsp64): New availability predicate.
2356 (mips_builtins): Add an entry for __builtin_mips_ldx.
2357 * config/mips/mips.h (ISA_HAS_LBX): New define.
2358 (ISA_HAS_LBUX): Likewise.
2359 (ISA_HAS_LHX): Likewise.
2360 (ISA_HAS_LHUX): Likewise.
2361 (ISA_HAS_LWX): Likewise.
2362 (ISA_HAS_LWUX): Likewise.
2363 (ISA_HAS_LDX): Likewise.
2364 * doc/extend.texi (__builtin_mips_ldx): Document.
2365
2366 2012-01-04 Tristan Gingold <gingold@adacore.com>
2367
2368 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
2369 when long pointers are used.
2370 * config.build (*-*-*vms*): Handle all OpenVMS targets.
2371 (alpha64-dec-*vms*, alpha*-dec-*vms*)
2372 (ia64-hp-*vms*): Remove.
2373 * config/vms/xm-vms64.h: Delete.
2374
2375 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
2376
2377 PR middle-end/51472
2378 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
2379
2380 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
2381
2382 * opts.c (finish_options): Remove duplicate sorry.
2383
2384 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
2385
2386 PR middle-end/51696
2387 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
2388 correctly.
2389
2390 2012-01-04 Richard Guenther <rguenther@suse.de>
2391
2392 PR middle-end/51750
2393 * tree.c (size_low_cst): New function.
2394 * tree.h (size_low_cst): Declare.
2395 * fold-const.c (fold_comparison): Use it to extract the low
2396 part of the POINTER_PLUS_EXPR offset.
2397
2398 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
2399
2400 Fix clearing ZERO_REG
2401 * config/avr/avr.md (cc): Add alternative "ldi".
2402 (movqi_insn): Use it in cc attribute.
2403 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
2404 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
2405 (output_reload_insisf): Use ZERO_REG to pre-clear register.
2406
2407 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2408
2409 * configure: Regenerate.
2410
2411 2012-01-04 Richard Guenther <rguenther@suse.de>
2412
2413 PR tree-optimization/49651
2414 * tree-ssa-structalias.c (type_can_have_subvars): New function.
2415 (var_can_have_subvars): Use it.
2416 (get_constraint_for_1): Only consider subfields if there can be any.
2417
2418 2012-01-03 Jakub Jelinek <jakub@redhat.com>
2419
2420 PR bootstrap/51725
2421 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
2422 to its new canonical_cselib_val and the cselib_val was in
2423 first_containing_mem chain, but the canonical_cselib_val was not,
2424 add the latter into the chain.
2425 (cselib_invalidate_mem): Compare canonical_cselib_val of
2426 addr_list chain elt with v.
2427
2428 PR pch/51722
2429 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
2430 dwarf2out_undef): Allocate e.info using ggc_strdup instead
2431 of xstrdup.
2432 (output_macinfo_op): Don't ggc_strdup fd->filename.
2433 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
2434 then ggc_strdup it. Don't free inc->info or cur->info.
2435 (output_macinfo): Don't free ref->info or file->info.
2436
2437 2012-01-03 Ira Rosen <irar@il.ibm.com>
2438
2439 PR tree-optimization/51269
2440 * tree-vect-loop-manip.c (set_prologue_iterations): Make
2441 first_niters a pointer.
2442 (slpeel_tree_peel_loop_to_edge): Likewise.
2443 (vect_do_peeling_for_loop_bound): Update call to
2444 slpeel_tree_peel_loop_to_edge.
2445 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
2446 here. Remove it from the parameters list.
2447 (vect_do_peeling_for_alignment): Update calls and compute
2448 wide_prolog_niters.
2449
2450 2012-01-03 Richard Guenther <rguenther@suse.de>
2451
2452 PR tree-optimization/51070
2453 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
2454 Properly handle calls.
2455
2456 2012-01-03 Richard Guenther <rguenther@suse.de>
2457
2458 PR tree-optimization/51692
2459 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
2460 the LHS of allocation stmts.
2461
2462 2012-01-03 Olivier Hainque <hainque@adacore.com>
2463
2464 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
2465
2466 2012-01-03 Olivier Hainque <hainque@adacore.com>
2467
2468 * collect2.c (main): In AIX specific computations for vector
2469 insertions, use CONST_CAST2 to cast from char ** to const char **.
2470
2471 2012-01-03 Richard Guenther <rguenther@suse.de>
2472
2473 PR debug/51650
2474 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
2475 the context of a limbo DIE when it does not already exist.
2476
2477 2012-01-03 Jakub Jelinek <jakub@redhat.com>
2478
2479 PR tree-optimization/51719
2480 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
2481 but direct call is, clear direct call's lhs and don't add fallthrough
2482 edge from dcall_bb to join_bb and PHIs.
2483
2484 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2485
2486 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
2487 the instructions emitted by the pattern.
2488 ("*TDC_insn_<mode>"): Add comment.
2489
2490 2012-01-03 Richard Guenther <rguenther@suse.de>
2491
2492 PR middle-end/51730
2493 * fold-const.c (fold_comparison): Properly canonicalize
2494 tree offset and HOST_WIDE_INT bit position.
2495
2496 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
2497
2498 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
2499 operands for extzv pattern.
2500
2501 2012-01-02 Jakub Jelinek <jakub@redhat.com>
2502
2503 PR bootstrap/51725
2504 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
2505 on mem_elt first.
2506
2507 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
2508
2509 * doc/invoke.texi (-flto and related options): Copy-edit.
2510
2511 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2512
2513 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
2514
2515 2012-01-02 Jakub Jelinek <jakub@redhat.com>
2516
2517 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
2518 New patterns.
2519
2520 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2521
2522 * expr.h (move_by_pieces_ninsns): Declare.
2523 * expr.c (move_by_pieces_ninsns): Make external.
2524 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
2525 (mips_store_by_pieces_p): Likewise.
2526 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
2527 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
2528 * config/mips/mips.c (mips_move_by_pieces_p): New function.
2529 (mips_store_by_pieces_p): Likewise.
2530
2531 2012-01-02 Jakub Jelinek <jakub@redhat.com>
2532
2533 * passes.c (register_one_dump_file): Free full_name.
2534
2535 * reload1.c (reload): Don't allocate reg_max_ref_width here.
2536 (calculate_elim_costs_all_insns): Free offsets_at and
2537 offsets_known_at at the end and clear the pointers.
2538
2539 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2540
2541 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
2542 this option introduced in r180739.
2543
2544 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2545
2546 PR target/51345
2547 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
2548 (tmake_file target=avr): Add avr/t-multilib.
2549
2550 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
2551 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
2552 * config/avr/genmultilib.awk: New file.
2553 * config/avr/t-multilib: New auto-generated file.
2554 * config/avr/multilib.h: New auto-generated file.
2555 * config/avr/t-avr (AVR_MCUS): New variable.
2556 (genopt.sh): Use it.
2557 (s-mlib): Depend on t-multilib.
2558 (t-multilib, multilib.h): New dependencies.
2559 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
2560 (MULTILIB_OPTIONS): Remove.
2561 (MULTILIB_MATCHES): Remove.
2562 (MULTILIB_DIRNAMES): Remove.
2563 (MULTILIB_EXCEPTIONS): Remove:
2564 * config/avr/genopt.sh: Don't use hard coded file name;
2565 pass AVR_MCUS from t-avr instead.
2566
2567 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2568
2569 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
2570
2571 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
2572
2573 Implement light-weight DImode support.
2574 * config/avr/avr-dimode.md: New file.
2575 * config/avr/avr.md: Include it.
2576 (adjust_len): Add plus64, compare64.
2577 (HIDI): Remove code iterator.
2578 (code_stdname): New code attribute.
2579 (rotx, rotsmode): Remove DI.
2580 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
2581 as code iterator.
2582 * config/avr/avr-protos.h (avr_have_dimode): New.
2583 (avr_out_plus64, avr_out_compare64): New.
2584 * config/avr/avr.c (avr_out_compare): Handle DImode.
2585 (avr_have_dimode): New variable definition and initialization.
2586 (avr_out_compare64, avr_out_plus64): New functions.
2587 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
2588 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
2589 (avr_compare_pattern): Skip DImode comparisons.
2590
2591 2012-01-02 Revital Eres <revital.eres@linaro.org>
2592
2593 * ddg.c (def_has_ccmode_p): New function.
2594 (add_cross_iteration_register_deps,
2595 create_ddg_dep_from_intra_loop_link): Call it.
2596
2597 2012-01-02 Richard Guenther <rguenther@suse.de>
2598
2599 PR other/51679
2600 * invoke.texi (fassociative-math): Remove spurious paranthesis.
2601
2602 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2603
2604 * gcc.c (process_command): Update copyright notice dates.
2605 * gcov.c (print_version): Likewise.
2606 * gcov-dump.c (print_version): Likewise.
2607 * mips-tfile.c (main): Likewise.
2608 * mips-tdump.c (main): Likewise.
2609
2610 2012-01-01 Ira Rosen <irar@il.ibm.com>
2611
2612 PR tree-optimization/51704
2613 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
2614 a use is inside the basic block or loop before accessing its vect info.
2615
2616 2012-01-01 Jan Hubicka <jhjh@suse.cz>
2617
2618 PR rtl-optimization/51069
2619 * cfgloopmanip.c (remove_path): Removing path making irreducible
2620 region unconditional makes BB part of the region.
2621
2622 2012-01-01 Jakub Jelinek <jakub@redhat.com>
2623
2624 PR tree-optimization/51683
2625 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
2626 calls with side-effects.
2627 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2628 \f
2629 Copyright (C) 2012 Free Software Foundation, Inc.
2630
2631 Copying and distribution of this file, with or without modification,
2632 are permitted in any medium without royalty provided the copyright
2633 notice and this notice are preserved.